@charset "UTF-8";
/* =========================================================
   contact.css
   お問い合わせの3画面（入力 / 入力内容の確認 / 受付完了）で共通のスタイル。
   contact.html・contact-confirm.html・contact-thanks.html が読み込む。

   共通パーツ（ヘッダー・フッター・パンくず・ページ見出し・丸矢印）は
   common.css を参照。

   WordPress では Contact Form 7 を使う。CF7 が出力する
   <span class="wpcf7-form-control-wrap"> などの入れ子が増えるため、
   入力欄そのものは要素セレクタ（input / textarea）でも当たるようにしている。
   ========================================================= */

/* =========================================================
   お問い合わせの手順（1 入力 → 2 確認 → 3 完了）
   ========================================================= */
.p-contact__steps {
  padding-top: 88px;
}

.p-contact__steps-list {
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-contact__step {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 手順のあいだの線。デザインでは独立した要素だが、
   リストの項目は3つに保ちたいので擬似要素で引いている。
   線の右側は項目内の gap（10px）が担うので、右の余白は 16px でよい
   （左は「リストの間隔 10px ＋ 線の余白 16px」＝ 26px）。
   これで線の左右の空きがどちらも 26px になり、手順のあいだは 92px */
.p-contact__step:not(:first-child)::before {
  content: "";
  flex: none;
  width: 40px;
  height: 1.5px;
  margin-inline: 26px 16px;
  background-color: #adadad;
}

/* 通過済みの手順までの線はティールで少し太い。
   線は「その手順の左側」に引かれるので、現在地の手前までが塗られる
   （＝現在の手順にも付く） */
.p-contact__step.is-current::before,
.p-contact__step.is-done::before {
  height: 2px;
  background-color: #3ea1ac;
  border-radius: 16px;
}

.p-contact__step-num {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #adadad;
  border-radius: 50%;
  color: #adadad;
  font-family: "Roboto", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.p-contact__step-name {
  color: #adadad;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.4;
}

.p-contact__step.is-current .p-contact__step-num,
.p-contact__step.is-done .p-contact__step-num {
  background-color: #3ea1ac;
  border-color: #3ea1ac;
  color: #fff;
}

.p-contact__step.is-current .p-contact__step-name,
.p-contact__step.is-done .p-contact__step-name {
  color: #333;
}

/* =========================================================
   白い面（フォーム・確認・完了で共通）
   ========================================================= */
.p-contact__body {
  padding-top: 60px;
}

/* 入力ページはフォームのあとに何も無いので、ここで下の余白を取る。
   確認・完了ページは下に続くボタンのブロックが持つ */
.p-contact__body--form {
  padding-bottom: 160px;
}

/* 面（白・角丸8px）は共通の .c-panel。ここは内側の余白だけ */
.p-contact__panel {
  padding: 64px 80px;
}

/* =========================================================
   入力フォーム
   ========================================================= */
.p-contact__fields {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.p-contact__field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* お問い合わせ項目（ラジオ）は fieldset ＋ legend。legend には flex の gap が効かない
   （ブラウザの仕様で legend は並びの外に置かれる）ので、見出しの下の間隔を直接持たせる */
fieldset.p-contact__field > legend {
  margin-bottom: 12px;
}

.p-contact__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
}

/* 任意・必須のバッジ */
.p-contact__badge {
  flex: none;
  padding: 4px 10px;
  background-color: #adadad;
  border-radius: 4px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.72px;
}

.p-contact__badge--required {
  background-color: #c22214;
}

/* --- 入力欄 --- */
.p-contact__panel input[type="text"],
.p-contact__panel input[type="tel"],
.p-contact__panel input[type="email"],
.p-contact__panel textarea {
  display: block;
  width: 100%;
  background-color: #fff;
  border: 1px solid #adadad;
  border-radius: 8px;
  color: #333;
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 500;
}

.p-contact__panel input[type="text"],
.p-contact__panel input[type="tel"],
.p-contact__panel input[type="email"] {
  height: 64px;
  padding: 0 21px;
}

.p-contact__panel textarea {
  height: 200px;
  padding: 17px 21px;
  line-height: 1.8;
  resize: vertical;
}

.p-contact__panel ::placeholder {
  color: #adadad;
  opacity: 1;
}

/* --- ラジオボタン（お問い合わせ項目） --- */
.p-contact__radios {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p-contact__radio {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 15px 21px;
  background-color: #fff;
  border: 1px solid #adadad;
  border-radius: 8px;
  color: #333;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

/* 選んだ項目は枠もティールになる */
.p-contact__radio:has(input:checked) {
  border-color: #3ea1ac;
}

.p-contact__radio input[type="radio"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  background-color: #fff;
  border: 1px solid #adadad;
  border-radius: 50%;
  appearance: none;
  cursor: pointer;
}

.p-contact__radio input[type="radio"]:checked {
  border-color: #3ea1ac;
  /* 内側の 10px の丸。border の内側に描くので box-shadow で作る */
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 9px #3ea1ac;
}

.p-contact__radio input[type="radio"]:focus-visible {
  outline: 2px solid #3ea1ac;
  outline-offset: 2px;
}

/* --- 添付ファイル --- */
.p-contact__file {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding-left: 21px;
  padding-right: 13px;
  background-color: #fff;
  border: 1px solid #adadad;
  border-radius: 8px;
}

/* 実際の input[type=file] は隠し、ラベルをボタンとして見せる */
.p-contact__file input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.p-contact__file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #adadad;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ファイルを選んだら名前を本文の色で出す（main.js が .is-selected を付ける） */
.p-contact__file.is-selected .p-contact__file-name {
  color: #333;
}

.p-contact__file-button {
  flex: none;
  padding: 8px 16px;
  background-color: #333;
  border-radius: 4px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.p-contact__file input[type="file"]:focus-visible + .p-contact__file-button {
  outline: 2px solid #3ea1ac;
  outline-offset: 2px;
}

/* =========================================================
   ボタン
   ========================================================= */
/* スパム対策（Cloudflare Turnstile）の確認欄。確認ボタンの上の中央に置く。
   本番以外は Cloudflare のテスト用キーで出る（inc/contact.php） */
.p-contact__turnstile {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.p-contact__turnstile:empty {
  display: none;
}

.p-contact__turnstile + .p-contact__submit {
  padding-top: 24px;
}

.p-contact__submit {
  display: flex;
  justify-content: center;
  padding-top: 48px;
}

.p-contact__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 400px;
  max-width: 460px;
  padding: 18px 28px;
  background-color: #3ea1ac;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* 共通の丸矢印より矢印がひとまわり大きい（デザイン実測値） */
.p-contact__button-arrow {
  width: 36px;
  height: 36px;
}

.p-contact__button-arrow img {
  width: 14.792px;
  height: 8.875px;
}

/* 確認・完了ページのボタンまわり。
   中央寄せは中身を直接包む箱（.l-inner とフォーム）に当てる。
   外側だけに当てると、幅いっぱいの .l-inner の中でボタンが左に寄ってしまう */
.p-contact__actions {
  padding-top: 40px;
  padding-bottom: 160px;
}

.p-contact__actions .l-inner,
.p-contact__actions-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-contact__actions-form {
  width: 100%;
}

/* 「入力内容を修正する」。下線つきの文字だけ */
.p-contact__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-bottom: 5px;
  border-bottom: 1.5px solid #333;
  background: none;
  color: #333;
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

/* 左向きの矢印（← 入力内容を修正する）。
   CF7 のフォーム欄には画像の URL を書けないので、矢印アイコン（右向き・白）を
   型抜き（mask）に使って文字色で塗り、左右反転して出す */
.p-contact__back::before {
  content: "";
  flex: none;
  width: 14px;
  height: 8.7px;
  background-color: currentColor;
  -webkit-mask: url(../img/icon-arrow.svg) no-repeat center / contain;
  mask: url(../img/icon-arrow.svg) no-repeat center / contain;
  transform: scaleX(-1);
}

/* =========================================================
   入力内容の確認
   ========================================================= */
.p-contact__list {
  display: flex;
  flex-direction: column;
}

.p-contact__list-row {
  display: flex;
  align-items: stretch;
}

.p-contact__list dt {
  flex: none;
  width: 220px;
  padding: 20px 40px 22px 20px;
  border-bottom: 1px solid #3ea1ac;
  color: #333;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
}

.p-contact__list dd {
  flex: 1;
  min-width: 0;
  padding: 20px 30px 22px;
  border-bottom: 1px solid #d4d4d4;
  color: #333;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.6;
}

/* 1行目だけ上にも罫線が入り、上の余白も 1px 広い（デザイン実測値） */
.p-contact__list-row:first-child dt {
  padding-top: 21px;
  border-top: 1px solid #3ea1ac;
}

.p-contact__list-row:first-child dd {
  padding-top: 21px;
  border-top: 1px solid #d4d4d4;
}

/* =========================================================
   受付完了
   このページだけページ見出し（パンくず・タイトル）が無く、
   弧だけの短いヒーローになる
   ========================================================= */
.p-contact__hero--done {
  /* デザインは 167px（ヘッダー1段のとき）。2段になったぶん 40px 足す */
  height: 207px;
  padding-top: 0;
}

.p-contact__done-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.p-contact__done-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background-color: #3ea1ac;
  border-radius: 50%;
}

.p-contact__done-title {
  color: #333;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.4px;
  text-align: center;
}

.p-contact__done-body {
  width: 880px;
  max-width: 100%;
  margin-inline: auto;
  padding-top: 40px;
  color: #333;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.48px;
  text-align: center;
}

.p-contact__done-body p + p {
  margin-top: 24px;
}

/* トップページへ戻るボタン。送信ボタンと違い白地 */
.p-contact__link-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 400px;
  max-width: 100%;
  margin-top: 16px;
  padding: 19.5px 29.5px;
  background-color: #fff;
  border: 1.5px solid #3ea1ac;
  border-radius: 12px;
  color: #333;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
}

/* =========================================================
   768〜1199px / 767px以下
   ========================================================= */
@media (max-width: 1199px) {
  /* --- 手順 --- */
  .p-contact__steps {
    padding-top: 50px;
  }

  /* SPは画面の幅いっぱいに均等配置する */
  .p-contact__steps-list {
    justify-content: space-between;
  }

  /* SPは項目のあいだを space-between で分けるので、
     線の左の余白は分配ぶんに任せ、右だけ項目内の gap と合わせる */
  .p-contact__step:not(:first-child)::before {
    width: 24px;
    margin-inline: 0 10px;
  }

  .p-contact__step-num {
    width: 28px;
    height: 28px;
    font-size: 1.3rem;
  }

  .p-contact__step-name {
    font-size: 1.6rem;
  }

  /* --- 白い面 --- */
  .p-contact__body {
    padding-top: 32px;
  }

  .p-contact__body--form {
    padding-bottom: 80px;
  }

  .p-contact__panel {
    padding: 28px 16px;
  }

  /* --- フォーム --- */
  .p-contact__fields {
    gap: 24px;
  }

  .p-contact__field {
    gap: 10px;
  }

  fieldset.p-contact__field > legend {
    margin-bottom: 10px;
  }

  .p-contact__label {
    font-size: 1.5rem;
  }

  .p-contact__badge {
    padding: 3px 8px;
    font-size: 1.1rem;
    letter-spacing: 0.66px;
  }

  .p-contact__panel input[type="text"],
  .p-contact__panel input[type="tel"],
  .p-contact__panel input[type="email"] {
    height: 52px;
    padding-inline: 17px;
  }

  .p-contact__panel input[type="text"],
  .p-contact__panel input[type="tel"],
  .p-contact__panel input[type="email"],
  .p-contact__panel textarea {
    font-size: 1.5rem;
  }

  .p-contact__panel textarea {
    height: 160px;
    padding: 15px 17px;
  }

  .p-contact__radio {
    gap: 10px;
    min-height: 56px;
    padding: 13px 17px;
    font-size: 1.5rem;
    line-height: 1.5;
  }

  /* SPはファイル名とボタンを縦に積む */
  .p-contact__file {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    height: auto;
    padding: 14px 9px 14px 17px;
  }

  .p-contact__file-name {
    flex: none;
    width: 100%;
    font-size: 1.4rem;
  }

  .p-contact__file-button {
    padding: 7px 12px;
    font-size: 1.1rem;
  }

  /* --- ボタン --- */
  .p-contact__submit {
    padding-top: 32px;
  }

  .p-contact__button {
    justify-content: space-between;
    width: 100%;
    max-width: none;
    height: 60px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 1.6rem;
  }

  .p-contact__button-arrow {
    width: 30px;
    height: 30px;
  }

  .p-contact__button-arrow img {
    width: 12.327px;
    height: 7.396px;
  }

  .p-contact__actions {
    padding-top: 32px;
    padding-bottom: 80px;
  }

  .p-contact__back {
    gap: 6px;
    margin-top: 20px;
    font-size: 1.4rem;
  }

  .p-contact__back::before {
    width: 12px;
    height: 7.5px;
  }

  /* --- 確認 --- */
  .p-contact__panel--confirm {
    padding: 24px 16px;
  }

  .p-contact__list dt {
    width: 98px;
    padding: 16px 8px 17px 0;
    font-size: 1.4rem;
  }

  .p-contact__list dd {
    padding: 16px 0 17px 12px;
    font-size: 1.4rem;
  }

  .p-contact__list-row:first-child dt,
  .p-contact__list-row:first-child dd {
    padding-top: 17px;
  }

  /* --- 完了 --- */
  .p-contact__hero--done {
    height: 126px;
  }

  .p-contact__panel--done {
    padding: 40px 20px;
  }

  .p-contact__done-head {
    gap: 15px;
  }

  .p-contact__done-icon {
    width: 44px;
    height: 44px;
  }

  .p-contact__done-icon img {
    width: 20.429px;
    height: 14.929px;
  }

  .p-contact__done-title {
    font-size: 2rem;
    letter-spacing: 0.8px;
  }

  /* SPは中央揃えではなく左揃え（デザインどおり） */
  .p-contact__done-body {
    width: 100%;
    padding-top: 28px;
    font-size: 1.4rem;
    text-align: left;
  }

  .p-contact__done-body p + p {
    margin-top: 20px;
  }

  .p-contact__link-button {
    width: 100%;
    height: 60px;
    padding: 0 23px;
    border-width: 1px;
    border-radius: 8px;
  }

  /* 完了ページのボタンブロックはデザイン上ここだけ余白が狭い */
  .p-contact__actions--done {
    padding-top: 28px;
  }
}

/* =========================================================
   ホバー
   ========================================================= */
@media (hover: hover) and (min-width: 768px) {
  .p-contact__button:hover {
    background-color: #35909a;
  }

  .p-contact__button:hover .c-arrow-btn img {
    animation: c-arrow-loop 0.4s 1;
  }

  /* 下線つきの文字だけのリンクなので、太さや位置は変えない */
  .p-contact__back:hover {
    opacity: 0.6;
  }

  .p-contact__link-button:hover {
    color: #3ea1ac;
  }

  .p-contact__link-button:hover .c-arrow-btn {
    background-color: #3ea1ac;
  }

  .p-contact__link-button:hover .c-arrow-btn img {
    animation: c-arrow-loop 0.4s 1;
  }

  .p-contact__radio:hover {
    border-color: #3ea1ac;
  }

  .p-contact__file-button:hover {
    opacity: 0.8;
  }
}

/* =========================================================
   Contact Form 7 に合わせるための指定
   CF7 の CSS は読み込んでいない（inc/contact.php）ので、
   CF7 が出すマークアップへの対応と、CF7 側で隠していた要素の
   扱いはここで持つ。
   フォームのひな型は inc/contact-form-template.html
   ========================================================= */

/* CF7 が隠していた要素（送信用の隠し項目・読み上げ用の結果） */
.wpcf7 .hidden-fields-container {
  display: none;
}

.wpcf7 .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 入力欄を包む span。幅いっぱいにする */
.p-contact__panel .wpcf7-form-control-wrap {
  display: block;
}

/* 添付ファイルのボタンの中では包みを消す（input は隠しているため） */
.p-contact__file-button .wpcf7-form-control-wrap {
  display: contents;
}

/* --- ラジオボタン（CF7 は span.wpcf7-list-item > label で出す） --- */
.p-contact__radios .wpcf7-list-item {
  display: block;
  margin: 0;
}

.p-contact__radios .wpcf7-list-item > label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 15px 21px;
  background-color: #fff;
  border: 1px solid #adadad;
  border-radius: 8px;
  color: #333;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.p-contact__radios .wpcf7-list-item > label:has(input:checked) {
  border-color: #3ea1ac;
}

.p-contact__radios input[type="radio"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  background-color: #fff;
  border: 1px solid #adadad;
  border-radius: 50%;
  appearance: none;
  cursor: pointer;
}

.p-contact__radios input[type="radio"]:checked {
  border-color: #3ea1ac;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 9px #3ea1ac;
}

.p-contact__radios input[type="radio"]:focus-visible {
  outline: 2px solid #3ea1ac;
  outline-offset: 2px;
}

/* --- ボタンの丸矢印 --- */
/* CF7 のフォーム欄には PHP が書けず画像の URL を入れられないので、
   矢印は CSS の背景で出す */
.p-contact__button-arrow:empty {
  background: #333 url(../img/icon-arrow.svg) no-repeat center / 14.792px 8.875px;
}

/* --- 入力エラー --- */
.p-contact__panel .wpcf7-not-valid,
.p-contact__field.is-error input,
.p-contact__field.is-error textarea {
  border-color: #c22214;
}

.wpcf7-not-valid-tip,
.p-contact__error {
  display: block;
  margin-top: 8px;
  color: #c22214;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.5;
}

/* 送信結果のメッセージ（送信に失敗したとき・入力に誤りがあったときに出る） */
.wpcf7-response-output {
  margin-top: 24px;
  padding: 14px 20px;
  border: 1px solid #c22214;
  border-radius: 8px;
  color: #c22214;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
}

.wpcf7-response-output:empty {
  display: none;
}

/* 送信できたら完了ページへ移動するので、成功のメッセージは出さない */
.wpcf7 form.sent .wpcf7-response-output {
  display: none;
}

/* 送信中はボタンを押せないように見せる */
.wpcf7 form.submitting .p-contact__confirm-actions {
  opacity: 0.6;
  pointer-events: none;
}

/* --- 確認画面（main.js が入力画面と切り替える） --- */
.p-contact__confirm-actions {
  padding-top: 40px;
}

.p-contact__confirm-actions .p-contact__back {
  cursor: pointer;
}

/* 改行を含む「お問い合わせ内容」もそのまま見せる */
.p-contact__list dd {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 1199px) {
  .p-contact__radios .wpcf7-list-item > label {
    gap: 10px;
    min-height: 56px;
    padding: 13px 17px;
    font-size: 1.5rem;
    line-height: 1.5;
  }

  .p-contact__button-arrow:empty {
    background-size: 12.327px 7.396px;
  }

  .p-contact__confirm-actions {
    padding-top: 32px;
  }
}

@media (hover: hover) and (min-width: 768px) {
  .p-contact__radios .wpcf7-list-item > label:hover {
    border-color: #3ea1ac;
  }
}

/* =========================================================
   翻訳（GTranslate）表示時の調整（2026-11-30）
   ========================================================= */
/* SP の手順ナビ（1 入力 → 2 確認 → 3 完了）が英語だと画面からはみ出す */
@media (max-width: 767px) {
  html:is(.translated-ltr, .translated-rtl) .p-contact__step {
    gap: 6px;
    min-width: 0;
  }

  html:is(.translated-ltr, .translated-rtl) .p-contact__step:not(:first-child)::before {
    width: 12px;
    margin-inline: 0 6px;
  }

  html:is(.translated-ltr, .translated-rtl) .p-contact__step-name {
    font-size: 1.2rem;
    line-height: 1.2;
  }
}
