/* お問い合わせ・PC／スマートフォンレビュー版
   共通の書体・配色・ヘッダーはstyle.css。
   PCは左右、820px以下は案内→用件選択→予約・入力欄の縦並び。 */
.contact-page .site-nav [aria-current="page"] { color: var(--green); }
.contact-breadcrumb { display: flex; align-items: center; gap: 12px; padding-block: 18px; font-size: 13px; color: #697a89; }
.contact-breadcrumb a { color: var(--navy); }
.contact-breadcrumb a:hover { text-decoration: underline; }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; padding-block: 32px 90px; }

/* 左：大きな表題と相談の案内。参考画像の余白・上下の並びを維持。 */
.contact-guide { padding-top: 4px; }
.contact-guide .eyebrow { font-size: 13px; letter-spacing: .12em; margin-bottom: 22px; }
.contact-guide h1 { font-size: 46px; line-height: 1.4; margin-bottom: 32px; }
.contact-guide-lead { color: var(--navy); font-size: 24px; font-weight: 700; line-height: 1.75; margin-bottom: 24px; }
.contact-guide-description { font-size: 18px; line-height: 1.9; text-wrap: pretty; word-break: auto-phrase; }
.contact-check-list { padding: 26px 28px; margin-block: 30px 24px; background: var(--mist); border: 1px solid #dae7e0; border-radius: 4px; }
.contact-check-list li { position: relative; padding-left: 32px; font-size: 17px; line-height: 1.8; }
.contact-check-list li + li { margin-top: 16px; }
.contact-check-list li::before { content: "✓"; position: absolute; top: 5px; left: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; line-height: 1; }
.contact-free-note { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; font-size: 15px; color: var(--navy); }
.contact-free-note span { color: var(--green); font-weight: 700; }
.contact-partner-note { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 28px; font-size: 16px; text-wrap: pretty; word-break: auto-phrase; }

/* 右：用件選択の面と、予約または入力欄。選択を緑の枠で示す。 */
.contact-panel { padding: 32px; background: #f6f9f9; border: 1px solid var(--line); border-radius: 6px; }
.contact-panel h2 { font-size: 26px; line-height: 1.6; margin-bottom: 12px; }
.contact-panel-intro { font-size: 17px; margin-bottom: 24px; }
.contact-options { min-width: 0; padding: 0; margin: 0; border: 0; scroll-margin-top: 100px; }
.contact-options legend { font-size: 17px; color: var(--navy); font-weight: 700; margin-bottom: 14px; }
.field-status { display: inline-block; font-size: 12px; font-weight: 400; color: var(--green); margin-left: 6px; vertical-align: middle; }
.field-status.optional { color: #697a89; }
.contact-option { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 14px; align-items: start; padding: 18px 20px; border: 2px solid #dbe4e9; border-radius: 3px; background: #fff; cursor: pointer; }
.contact-option + .contact-option { margin-top: 12px; }
.contact-option:has(input:checked) { border-color: var(--green); background: #f0f7f3; }
.contact-option:hover { border-color: #79aa93; }
.contact-option:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.contact-option input { width: 20px; height: 20px; margin: 5px 0 0; accent-color: var(--green); cursor: pointer; }
.contact-option-title { display: block; color: var(--navy); font-size: 18px; font-weight: 700; line-height: 1.6; }
.contact-option-description { display: block; font-size: 15px; line-height: 1.8; margin-top: 3px; }
.contact-booking { border-top: 1px solid #cfdfd8; margin-top: 28px; padding-top: 26px; }
.contact-booking h3 { font-size: 18px; line-height: 1.7; margin-bottom: 10px; }
.contact-booking > p:not(.contact-booking-note) { font-size: 16px; line-height: 1.8; }
.contact-booking-button { width: 100%; min-height: 58px; margin-top: 22px; }
.contact-booking-note { text-align: center; margin-top: 12px; font-size: 12px; line-height: 1.8; }
.contact-email-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 18px; padding: 12px 0; border: 0; background: none; color: var(--blue); font-size: 14px; font-weight: 700; line-height: 1.7; cursor: pointer; }
.contact-email-toggle svg { width: 18px; height: 18px; }
.contact-email-toggle:hover { text-decoration: underline; text-underline-offset: 5px; }

/* 入力欄：会社名・名前は左右、メール・本文は全幅。 */
.contact-fields { margin-top: 28px; }
.contact-booking:not([hidden]) + .contact-fields:not([hidden]) { border-top: 1px solid #cfdfd8; padding-top: 26px; }
.contact-booking[hidden], .contact-fields[hidden] { display: none; }
.contact-form-heading { color: var(--navy); font-size: 18px; font-weight: 700; margin-bottom: 22px; }
.contact-field-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.contact-field { min-width: 0; margin-bottom: 24px; }
.contact-field label { display: block; margin-bottom: 10px; font-size: 17px; color: var(--navy); font-weight: 700; }
.contact-field input, .contact-field textarea { display: block; width: 100%; border: 1px solid #bacdd8; border-radius: 3px; padding: 12px 14px; color: var(--ink); background: #fff; font: inherit; font-size: 17px; line-height: 1.7; }
.contact-field input { min-height: 54px; }
.contact-field textarea { min-height: 170px; resize: vertical; }
.contact-field input:focus-visible, .contact-field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.contact-field textarea::placeholder { color: #6d7d8a; font-size: 15px; opacity: 1; }
.contact-field-help { font-size: 13px; color: #697a89; line-height: 1.8; margin-top: 8px; }
.contact-information-note { font-size: 13px; line-height: 1.8; }
.contact-information-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.contact-marketing { margin-top: 18px; }
.contact-marketing-choice { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 12px; align-items: start; padding-block: 10px; min-height: 44px; color: var(--navy); font-size: 15px; line-height: 1.8; cursor: pointer; }
.contact-marketing-choice input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--green); cursor: pointer; }
.contact-marketing-choice:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 4px; }
.contact-marketing .contact-field-help { margin-top: 4px; }
.contact-submit { width: 100%; min-height: 58px; margin-top: 22px; }
.contact-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.contact-captcha { margin-top: 22px; }
.contact-captcha-label { font-size: 14px; color: var(--navy); margin-bottom: 12px; }
#contact-captcha-widget { min-width: 0; }
.contact-result { margin-top: 20px; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; scroll-margin-top: 100px; }
.contact-result[hidden] { display: none; }
.contact-result[data-state="success"] { color: var(--green); }
.contact-result[data-state="error"] { color: #9d3030; }
.contact-page .preview-dialog h2 { font-size: 21px; margin-bottom: 16px; }
.contact-noscript { font-size: 14px; margin-top: 24px; }
.contact-direct { margin-top: 24px; padding-top: 22px; border-top: 1px solid #cfdfd8; }
.contact-direct p { font-size: 14px; }
.contact-direct a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-size: 18px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.contact-direct a:hover { color: var(--green); }

/* 小さなPCでも左右を維持。本文を小さくせず、高さで調整。 */
@media (min-width:821px) and (max-width:1160px) {
  .contact-layout { grid-template-columns: .8fr 1.2fr; gap: 32px; }
  .contact-guide h1 { font-size: 38px; }
  .contact-guide-lead { font-size: 21px; }
  .contact-panel { padding: 26px; }
  .contact-panel h2 { font-size: 24px; }
  .contact-option { padding: 16px; gap: 12px; }
  .contact-check-list { padding: 24px 20px; }
  .contact-free-note { gap: 8px 14px; }
}

/* タブレット・スマートフォン：短い案内から用件選択へ。
   PCの説明文は残し、スマホでは重複する説明とチェック項目を省く。 */
@media (max-width:820px) {
  .contact-breadcrumb { padding-block: 16px; font-size: 12px; }
  .contact-layout { grid-template-columns: minmax(0,1fr); gap: 28px; padding-block: 16px 60px; }
  .contact-guide { padding-top: 0; }
  .contact-guide .eyebrow { margin-bottom: 16px; }
  .contact-guide h1 { font-size: 32px; margin-bottom: 18px; }
  .contact-guide h1 br { display: none; }
  .contact-guide-lead { font-size: 21px; margin-bottom: 0; }
  .contact-guide-description, .contact-check-list, .contact-partner-note { display: none; }
  .contact-free-note { margin-block: 14px 0; }
  .contact-panel { padding: 28px; }
  .contact-panel h2 { font-size: 25px; }
  .contact-options { scroll-margin-top: 88px; }
  .contact-fields { scroll-margin-top: 88px; }
  .contact-booking h3, .contact-booking > p:not(.contact-booking-note) { display: none; }
  .contact-booking-button { margin-top: 0; }
  .contact-page .preview-dialog { max-height: calc(100dvh - 40px); overflow-y: auto; }
}

/* 小さなスマートフォン：入力欄は1列、押せる面積と16px以上の入力文字を確保。 */
@media (max-width:520px) {
  .contact-layout { gap: 24px; padding-block: 8px 48px; }
  .contact-guide .eyebrow { margin-bottom: 12px; }
  .contact-guide h1 { font-size: clamp(24px,7.2vw,30px); line-height: 1.45; }
  .contact-guide-lead { font-size: 19px; line-height: 1.7; }
  .contact-free-note { gap: 8px 14px; font-size: 14px; }
  .contact-panel { padding: 24px 18px; }
  .contact-panel h2 { font-size: 23px; line-height: 1.5; }
  .contact-panel-intro { font-size: 16px; margin-bottom: 22px; }
  .contact-options legend { font-size: 16px; }
  .contact-option { padding: 16px 12px; gap: 10px; }
  .contact-option-title { font-size: 17px; }
  .contact-option-description { font-size: 14px; }
  .contact-booking { margin-top: 24px; padding-top: 22px; }
  .contact-booking h3 { font-size: 18px; }
  .contact-booking-button, .contact-submit { padding-inline: 16px; gap: 12px; font-size: 16px; }
  .contact-booking-note { font-size: 12px; }
  .contact-email-toggle { min-height: 48px; text-align: left; }
  .contact-field-pair { grid-template-columns: minmax(0,1fr); gap: 0; }
  .contact-form-heading { font-size: 18px; margin-bottom: 20px; }
  .contact-field label { font-size: 16px; }
  .contact-field input, .contact-field textarea { font-size: 16px; padding-inline: 12px; }
  .contact-field textarea { min-height: 190px; }
  .contact-page .preview-dialog { padding: 24px; }
  .contact-page .preview-dialog h2 { font-size: 20px; }
}
