@charset "UTF-8";
/* --- 見出し --------------------------------------------------------------
   ★共通の `.c-heading--underline`（下線が文字幅と同じ）をそのまま使う。
   ★カンプ実測（1680 → 1920 換算）… 文字 24px ／ 下線までの距離 14px
   ★`.c-heading--underline`(0,1,0) と同詳細度だが、
     ★contact.css は style.css より**後に読み込む**ので上書きできる。 */
.contact-title {
  --underline-gap: 14px;
  margin-top: 62px;
  /* ★`.c-pagehead__cat` と同じリズム */
  font-size: 1.5rem;
  font-weight: 500;
  line-height: calc(34 / 24);
}

@media (max-width: 600px) {
  .contact-title {
    /* ★SPは `.c-pagehead__breadcrumb` が消えるので、
       ★`.c-pagehead__cat` の SP 値（87px）と同じ位置から始める。 */
    --underline-gap: 10px;
    margin-top: 87px;
    font-size: 1.25rem;
    line-height: calc(29 / 20);
  }
}

/* --- フォーム全体 --------------------------------------------------------
   ★幅は `.l-column`（--w-column 960px）に収める。
     ★カンプのフォーム幅は 820 / 1680 ＝ 48.8%（★1920 換算 937px）で、
     ★既存の下層コンテンツ幅 960px とほぼ同じだったため、共通側に合わせた。 */
.contact-form {
  margin-top: 110px;
  /* ★下線 → 1つ目の項目（カンプ実測 100px ÷ zoom.9） */
}

@media (max-width: 600px) {
  .contact-form {
    margin-top: 60px;
  }
}

/* ★項目どうしの間隔。★カンプの実測は 46〜56px と揃っていないので、
   ★最も多い 54px を代表値として採り、★zoom(.9) を戻して 60px とした。
   ★★余白は **`margin-bottom` ではなく隣接セレクタの `margin-top`** で持つ。
     ★理由：★`margin-bottom` だと最後の項目にも余白が残り、★次の注意文の
       ★`margin-top: 32px` と**相殺**して 60px のほうが勝ってしまう（★実測で発覚）。
     ★`:last-of-type` で消す手もあるが、★同じ `div` の `__agree` が最後に来るため
       ★**最後の `__row` には当たらない**。★上方向基準ならこの問題が起きない。 */
.contact-form__row + .contact-form__row {
  margin-top: 60px;
}

@media (max-width: 600px) {
  .contact-form__row + .contact-form__row {
    margin-top: 40px;
  }
}

/* ★ラベル … ★フォームまわりだけ**ゴシック**にする。
     ★このサイトの本文は明朝だが、★入力欄の文字が明朝だと読みにくく、
       ★カンプもゴシックで描かれている。★パンくず・`.c-linkbtn` と同じ例外扱い。 */
.contact-form__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--c-text);
  font-family: var(--ff-gothic);
  font-size: 1rem;
  font-weight: 500;
  line-height: calc(23 / 16);
}

@media (max-width: 600px) {
  .contact-form__label {
    gap: 8px;
    margin-bottom: 16px;
    font-size: .875rem;
  }
}

.contact-form__required {
  color: var(--c-accent);
  font-size: .875rem;
  font-weight: 700;
}

@media (max-width: 600px) {
  .contact-form__required {
    font-size: .75rem;
  }
}

/* ★入力欄 … ★高さは `height` で持つ（★`min-height` は使わない方針）。
   ★`font-size` を 16px 以上にしておくと、★iOS Safari で focus 時に
     ★画面が勝手に拡大しない（★15px 以下だと拡大される）。 */
.contact-form__input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-gothic);
  font-size: 1rem;
}

@media (max-width: 600px) {
  .contact-form__input {
    height: 44px;
    padding: 0 12px;
  }
}

.contact-form__input:focus {
  border-color: var(--c-text-sub);
  outline: 0;
}

/* ★お問い合わせ内容（複数行） */
.contact-form__input--area {
  height: 140px;
  padding: 14px 16px;
  line-height: calc(28 / 16);
  resize: vertical;
}

@media (max-width: 600px) {
  .contact-form__input--area {
    height: 120px;
    padding: 12px;
  }
}

/* ★郵便番号 … ★カンプでは 115px / 1680（★1920 換算 131px）の小さい枠 */
.contact-form__input--zip {
  width: 130px;
}

@media (max-width: 600px) {
  .contact-form__input--zip {
    width: 120px;
  }
}

/* ★件名（プルダウン） */
.contact-form__select {
  position: relative;
}

.contact-form__input--select {
  appearance: none;
  padding-right: 48px;
  cursor: pointer;
}

/* ★右端の山形 … ★`select` には疑似要素が置けないので、★親（`__select`）に置く。
   ★`pointer-events: none` を入れないと、★矢印の上でクリックしても開かなくなる。 */
.contact-form__select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--c-text-sub);
  border-bottom: 1px solid var(--c-text-sub);
  rotate: 45deg;
  translate: 0 -70%;
  pointer-events: none;
}

/* ★姓／名 ・ 姓(ふりがな)／名(ふりがな) の2列
   ★カンプの列幅は 395px / 1680（★1920 換算 451px）、★間は 34px。
     ★960px 幅では (960 − 34) ÷ 2 ＝ 463px になる。 */
.contact-form__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

@media (max-width: 600px) {
  .contact-form__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* --- 同意まわり ----------------------------------------------------------
   ★カンプでは3行の注意文 → 赤いリンク → チェックボックス → ボタン の順。 */
.contact-form__note {
  /* ★住所の入力欄 → 注意文。★カンプ実測 28px（★zoom を戻して 32px）。
     ★項目間より**狭い**のがカンプの意図。 */
  margin-top: 32px;
  color: var(--c-text);
  font-family: var(--ff-gothic);
  font-size: 1rem;
  line-height: calc(30 / 16);
  text-align: center;
}

@media (max-width: 600px) {
  .contact-form__note {
    margin-top: 24px;
    font-size: .875rem;
    line-height: calc(26 / 14);
  }
}

.contact-form__privacy {
  color: var(--c-accent);
  font-weight: 700;
}

.contact-form__agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 600px) {
  .contact-form__agree {
    margin-top: 24px;
  }
}

.contact-form__check {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--c-accent);
  cursor: pointer;
}

@media (max-width: 600px) {
  .contact-form__check {
    width: 20px;
    height: 20px;
  }
}

.contact-form__agree-label {
  color: var(--c-text);
  font-family: var(--ff-gothic);
  font-size: 1rem;
  cursor: pointer;
}

@media (max-width: 600px) {
  .contact-form__agree-label {
    font-size: .875rem;
  }
}

/* ★送信ボタン … ★共通の `.c-btn`（300×60・角丸15px・影つき）をそのまま使う。
     ★カンプのボタンは 264×58 / 1680（★1920 換算 302×66）で、★300×60 とほぼ同寸。
   ★`.c-btn` は `display: grid` なので `margin-inline: auto` で中央に置ける。 */
.contact-form__submit {
  margin: 64px auto 160px;
}

@media (max-width: 600px) {
  .contact-form__submit {
    margin: 40px auto 100px;
  }
}

/* --- 確認画面（2026-10-10 追加） -------------------------------------------
   ★素にはない部分。JS（ikyo_contact_a.js）が同じページ内に差し込む。
   ★色・線・文字は素の値だけ：文字 var(--c-text)／線 var(--c-line)／注意の色 var(--c-accent)／
     ボタンは共通の .c-btn と同じ形（300×60・角丸15px・影・ホバー）。新しい色・形は無い。
   ★作り直すときは scripts\ikyo_contact_confirm.css を直して build_ikyo_theme.py を流す（contact.css に連結される）。 */
.contact-form.is-confirm > .contact-form__row,
.contact-form.is-confirm > .contact-form__note,
.contact-form.is-confirm > .contact-form__agree,
.contact-form.is-confirm > .contact-form__submit {
  display: none;
}

.contact-confirm__lead {
  margin: 0 0 32px;
  color: var(--c-text);
  font-family: var(--ff-gothic);
  font-size: 1rem;
  line-height: calc(30 / 16);
  text-align: center;
}

.contact-confirm__list {
  margin: 0;
  border-top: 1px solid var(--c-line);
}

.contact-confirm__row {
  display: flex;
  gap: 24px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--c-line);
}

.contact-confirm__label {
  flex: 0 0 240px;
  margin: 0;
  color: var(--c-text);
  font-family: var(--ff-gothic);
  font-size: 1rem;
  font-weight: 500;
}

.contact-confirm__value {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--c-text);
  font-family: var(--ff-gothic);
  font-size: 1rem;
  line-height: calc(30 / 16);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.contact-confirm__value.is-empty {
  color: var(--c-text-sub);
}

.contact-submit--confirm {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 64px auto 160px;
}

.contact-submit__btn {
  display: grid;
  place-items: center;
  width: 300px;
  height: 60px;
  border: 1px solid #f7f7f7;
  border-radius: 15px;
  background: #f7f7f7;
  box-shadow: 0 3px 6px rgb(0 0 0 / .16);
  color: var(--c-text);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: color .5s cubic-bezier(.19, 1, .22, 1), background-color .5s cubic-bezier(.19, 1, .22, 1), border-color .5s cubic-bezier(.19, 1, .22, 1), box-shadow .5s cubic-bezier(.19, 1, .22, 1);
}

.contact-submit__btn:hover {
  border-color: #e60012;
  background: #fff;
  box-shadow: 0 3px 6px rgb(0 0 0 / 0);
  color: #e60012;
}

.contact-submit__btn--back {
  border-color: var(--c-line);
  background: #fff;
}

.contact-submit__btn:disabled {
  opacity: .5;
  cursor: default;
}

/* 入力チェックの表示（JS が .contact-form__error を差し込む） */
.contact-form__error {
  margin: 8px 0 0;
  color: var(--c-accent);
  font-family: var(--ff-gothic);
  font-size: .875rem;
  line-height: calc(26 / 14);
}

@media (max-width: 600px) {
  .contact-confirm__lead {
    margin-bottom: 24px;
    font-size: .875rem;
    line-height: calc(26 / 14);
    /* 文節の切れ目で折り返す（「押／してください」のような中途半端な折り返しを避ける） */
    word-break: auto-phrase;
    text-wrap: balance;
  }

  .contact-confirm__row {
    flex-direction: column;
    gap: 6px;
    padding: 18px 4px;
  }

  .contact-confirm__label {
    flex: none;
    font-size: .875rem;
  }

  .contact-confirm__value {
    font-size: .875rem;
    line-height: calc(26 / 14);
  }

  .contact-submit--confirm {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 40px auto 100px;
  }

  .contact-submit__btn {
    width: 100%;
    max-width: 300px;
  }
}

/* --- 完了ページ（/contact/thanks/）2026-11-09 No.687 ---------------------------
   最後の段落（ご利用ありがとうございました。）とフッター線のあいだを空ける。下だけ。上は .contact-form__note の 32px／SP 24px のまま。
   値はサイトの既存の値：PC 48px（home.css .home-card .c-heading の margin-top・about.css .about-biz-text の margin）／
   SP 32px（style.css .gnav__langrow の margin-top・この contact.css の .contact-form__note の PC の margin-top）。
   .l-column の直下に注意文の段落が並ぶのは完了ページだけ（入力画面の注意文は form.contact-form の中）。 */
.l-column > .contact-form__note:last-child {
  margin-bottom: 48px;
}

@media (max-width: 600px) {
  .l-column > .contact-form__note:last-child {
    margin-bottom: 32px;
  }
}
