@charset "utf-8";
/* =========================================================
   style.css
   2025 — CMS用基本デフォルトスタイル 

　「投稿single」は
<div class="cms-content">
  <?php the_content(); ?>
</div>
の形で出すので、「.cms-content」の中にだけ効くようになってます
========================================================= */
/* =========================================================
   WordPress 画像アラインメント（alignleft / right / center）
========================================================= */
.cms-content .alignleft {
  float: left;
  margin: 0 1.5em 1em 0;
}
.cms-content .alignright {
  float: right;
  margin: 0 0 1em 1.5em;
}
.cms-content .aligncenter {
  display: block;
  margin: 2em auto;
  text-align: center;
}
/* =========================================================
   キャプション付き画像（wp-caption）
========================================================= */
.cms-content .wp-caption {
  max-width: 100%;
  margin: 1.2em auto;
  text-align: center;
}
.cms-content .wp-caption img {
  display: block;
  max-width: 100%;
  height: auto;
}
.cms-content .wp-caption-text {
  font-size: 0.85em;
  line-height: 1.4;
  color: #666;
  margin-top: 0.3em;
}
/* =========================================================
   WP 画像全般（サイズクラス / align クラス）
========================================================= */
.cms-content img[class*="wp-image-"], .cms-content img[class*="align"] {
  max-width: 100%;
  height: auto;
}
/* =========================================================
   Gutenberg 画像ブロック（保険用）
========================================================= */
.cms-content .wp-block-image {
  margin: 1.2em auto;
}
.cms-content .wp-block-image img {
  height: auto;
  max-width: 100%;
}
/* =========================================================
   埋め込み（YouTube / Google Maps / iframe）
========================================================= */
.cms-content .wp-block-embed, .cms-content .wp-block-embed__wrapper, .cms-content .embed-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.cms-content .wp-block-embed iframe, .cms-content .embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* =========================================================
   テーブル（table / th / td）
========================================================= */
.cms-content .wp-block-table, .cms-content .wp-block-table table, .cms-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}
.cms-content .wp-block-table th, .cms-content .wp-block-table td, .cms-content table th, .cms-content table td {
  border: 1px solid #ddd;
  padding: 0.6em 0.8em;
}
.cms-content .wp-block-table thead th, .cms-content table thead th {
  background: #f5f5f5;
  font-weight: 700;
}
/* =========================================================
   引用（blockquote / cite）
========================================================= */
.cms-content blockquote, .cms-content .wp-block-quote {
  border-left: 4px solid #ccc;
  padding-left: 1em;
  margin: 1.5em 0;
  color: #555;
  font-style: italic;
}
.cms-content blockquote cite, .cms-content .wp-block-quote cite {
  display: block;
  margin-top: 0.5em;
  color: #777;
  font-style: normal;
}
/* =========================================================
   コード（pre / code）
========================================================= */
.cms-content pre, .cms-content code {
  font-family: Consolas, Monaco, monospace;
}
.cms-content pre {
  background: #f4f4f4;
  padding: 1em;
  overflow-x: auto;
  border-radius: 6px;
  margin: 1.5em 0;
}
.cms-content code {
  background: #eee;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
/* =========================================================
   リスト（ul / ol） ※WordPress本文内用
========================================================= */
/*これはデフォルト。このサイトデフォルトのものに置き換え
.cms-content ul,
.cms-content .wp-block-list ul {
  list-style: disc;
  padding-left: 1.5em;
  margin: 1em 0;
}

.cms-content ol,
.cms-content .wp-block-list ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin: 1em 0;
}

.cms-content li {
  margin-bottom: 0.3em;
}*/
.cms-content ul, .cms-content .wp-block-list ul {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
}
.cms-content li {
  position: relative;
  padding-left: 1.5em; /* ドット幅 + 文字との間隔 */
  line-height: 1.5;
}
.cms-content li ::before {
  content: "•"; /* 行頭ドット */
  position: absolute;
  left: 0;
  font-weight: 700; /* 少し太めに */
}
/* 間隔調整 */
.cms-content ul > li + li {
  margin-top: 0.4em;
}
/* =========================================================
   ギャラリー（旧 gallery ショートコード）
========================================================= */
.cms-content .gallery {
  margin: 1.5em auto;
}
.cms-content .gallery-item {
  display: inline-block;
  text-align: center;
  width: 33.33%;
  margin-bottom: 1em;
}
.cms-content .gallery-item img {
  max-width: 100%;
  height: auto;
}
/* =========================================================
   WordPress が吐く細かいクラス（互換用）
========================================================= */
.cms-content .sticky {}
.cms-content .screen-reader-text {
  position: absolute !important;
  left: -9999px !important;
}
.cms-content .bypostauthor {}
.cms-content .wp-block-separator {
  border: none;
  border-bottom: 1px solid #ccc;
  margin: 2em 0;
}
/* ================================
   WP-PageNavi カスタムデザイン
   ================================ */
.wp-pagenavi {
  display: flex;
  gap: 0.5em; /* ボタン間の余白 */
  justify-content: center;
  align-items: center;
  font-size: 14px;
  padding-top: 3em;
}
.wp-pagenavi a, .wp-pagenavi span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
  box-sizing: border-box;
}
.wp-pagenavi .current {
  background-color: #666; /* 濃いグレー */
  color: #fff; /* 数字は白 */
  border-color: #666;
  cursor: default;
}
.wp-pagenavi a:hover {
  background-color: #e5e5e5;
  text-decoration: none;
}
/* 「…」部分 */
.wp-pagenavi .extend {
  border: none;
  width: auto;
  padding: 0 6px;
  color: #666;
}
/* 前へ・次へ（← →）の色調整 */
.wp-pagenavi .previouspostslink, .wp-pagenavi .nextpostslink {
  font-size: 16px;
  line-height: 1;
  width: 3.5em;
}
@media (max-width: 767px) {
  .wp-pagenavi a, .wp-pagenavi span {
    width: 32px !important;
    height: 32px !important;
  }
  .wp-pagenavi {
    gap: 0.2em;
  }
}
/* =========================================================
   オリジナル要素
========================================================= */
.cms-content {
  padding-bottom: 5em;
}
@media (max-width: 767px) {
  .cms-content {
    padding-bottom: 2em;
  }
}
/* =========================================================
   問い合わせフォーム
========================================================= */
/* フォーム全体 */
.p-form {
  padding: 4em 0;
}
/* 各項目 */
.p-form__item {
  margin-bottom: 2em;
  display: flex;
  flex-wrap: wrap;
}
/* ラベル */
.p-form__label {
  font-weight: 700;
  margin-bottom: 0.5em;
  font-size: 1rem;
  width: 18em;
  display: flex;
  justify-content: space-between;
  padding-right: 2em;
  padding-top: 0.4em;
}
/* 必須・任意 */
.p-form__req {
  font-size: .8em;
  text-align: center;
  width: 3.5em;
  height: 1.7em;
  margin-top: 0.4em;
  background: #d50913;
  color: #fff;
}
.p-form__opt {
  font-size: .8em;
  text-align: center;
  width: 3.5em;
  height: 1.7em;
  margin-top: 0.4em;
  background: #E4F2FA;
}
/* テキスト・メール・セレクト共通 */
.p-form input[type="text"], .p-form input[type="email"], .p-form select, .p-form textarea {
  width: 100%;
  padding: .8em;
  border: 1px solid #999;
  font-size: 1rem;
  box-sizing: border-box;
  flex: 1;
  min-height: 3.2em;
}
/* テキストエリア */
.p-form textarea {
  min-height: 160px;
}
/* 電話 （3分割） */
.p-form__tel {
  display: flex;
  gap: .5em;
  align-items: center;
}
.mwform-tel-field input[type="text"] {
  width: auto !important;
}
/* select▼アイコンをカスタムにする */
.p-form select {
  appearance: none; /* デフォルト矢印を消す */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23333" stroke-width="1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right .5em center; /* 右端からの距離を調整 */
  background-size: 1.8em; /* ← 矢印のサイズ（大きく細くできる） */
  padding-right: 2.4em; /* 矢印分の余白 */
}
/* --- p-form__submit --- */
.p-form__submit {
  text-align: center;
  margin-top: 2em;
}
.p-form__submit button, .p-form__submit input {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* ←中央寄せに変更 */
  position: relative; /* ←アイコンを右端に絶対配置するため */
  min-width: 350px;
  max-width: 100%;
  margin: auto;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 500px;
  background: #fff;
  border: 1px solid #333;
  line-height: 1.2;
  padding: 1.2em 1.4em 1em;
  color: inherit;
  font-weight: 700;
  background: url("/assets/img/link_02.svg") no-repeat center right 1.6em / .6em;
  cursor: pointer;
  transition: 0.3s;
  letter-spacing: 0.08em;
}
.p-form__submit button:hover, .p-form__submit input:hover {
  background: #0F6BB9 url("/assets/img/link_02--hover.svg") no-repeat center right 1.6em / .6em;
  color: #fff;
  text-decoration: none;
}
.p-form__submit button:hover::after, .p-form__submit input:hover::after {
  background: url("/assets/img/link_02--hover.svg") no-repeat center / contain;
}
@media (max-width: 767px) {
  .p-form input[type="text"], .p-form input[type="email"], .p-form select, .p-form textarea {
    padding: .4em;
    height: 2.8em;
  }
  .p-form__item {
    flex-direction: column;
  }
  .p-form__label {
    width: auto;
    flex-direction: column;
    padding-right: 0;
    padding-top: 0.4em;
  }
}
/*---- 画面ごとのスタイル -----*/
/* 現在ステップ　.is-currentは使わず、プラグインが出すクラス名で分ける */
.mw_wp_form_input .c-step__item.step-2, .mw_wp_form_confirm .c-step__item.step-3, .mw_wp_form_complete .c-step__item.step-4 {
  background: #49A1D1;
  color: #fff;
}
/* -- エラー系 -- */
.p-form .error {
  font-weight: 700;
  color: red !important;
  width: 100%;
  text-align: right;
}
/* -- 入力画面 -- */
.mw_wp_form_input .p-form__message--02 {
  display: none;
}
/* -- 確認画面 -- */
.mw_wp_form_confirm .p-form__label {
  padding-top: 0;
}
.mw_wp_form_confirm .p-form__message--01 {
  display: none;
}
.mw_wp_form_confirm .p-form__submit button.btn {
  background-image: none;
}
/* =========================================================
   問い合わせフォーム（CF7用）
========================================================= */
.p-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
}
.p-form__submit input {
  margin: 0;
}
.p-form__submit .wpcf7-spinner {
  display: none;
}
/* ===== p-form 内の<p>は全部透過 ===== */
.p-form p:not(.p-form__submit) {
  display: contents;
  margin: 0;
  padding: 0;
}
.wpcf7-form-control-wrap {
  width: 100%;
  flex: 1;
}
/* 画面ごとのスタイル*/
.page-contact-form .c-step__item.step-2, .page-contact-confirm .c-step__item.step-3, .page-contact-thanks .c-step__item.step-4 {
  background: #49A1D1;
  color: #fff;
}
/* -- 入力画面 -- */
.page-contact-form .p-form__message--02 {
  display: none;
}
/* -- 確認画面 -- */
.page-contact-confirm .p-form__label {
  padding-top: 0;
}
.page-contact-thanks .p-form__message--01, .page-contact-thanks .p-form__message--02 {
  display: none;
}
input.wpcf7-previous {
  background-image: none !important;
}
/* 確認画面だけ 見た目を“表示用”にする */
/* ▼ 確認画面：テキスト入力・メール・電話・会社名など */
.page-contact-confirm input:not([type="button"]):not([type="submit"]), .page-contact-confirm select {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none;
  color: inherit;
  padding-left: 0;
  min-height: 2em;
}
/* textarea 用の特別ルール：resize だけは許可する */
.page-contact-confirm textarea {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  /* 編集不可に見せる */
  pointer-events: auto;
  cursor: default;
  caret-color: transparent;
  /* リサイズだけ可能に */
  resize: vertical;
  padding: 0 !important;
  height: 6em !important;
  min-height: 0 !important;
}
.page-contact-confirm input[type="text"], .page-contact-confirm input[type="email"], .page-contact-confirm select {
  padding: 0 !important;
  height: auto;
}
/* ▼ ボタン類はそのまま動作させる */
.page-contact-confirm input[type="button"], .page-contact-confirm input[type="submit"] {
  pointer-events: auto; /* 念のため明示しておく */
  opacity: 1;
}
@media (max-width: 767px) {
  .p-form__submit {
    flex-direction: column;
  }
}