/* =========================================================================
   ATHLETA Taiwan — 聯絡我們（/contact）ページ固有スタイル
   レイアウトはサイト共通の .page-grid（左 .sidebar ＋ 本文 .product-field）に統一。
   ここはこのページ専用の「サイドバー連絡チャネル・フォームカード・送信完了」だけを持つ。
   入力欄の意匠は design-components.css の .field（共有）に集約。
   ========================================================================= */

/* 必須マーク（小さな青）。 */
.req-mark { color: var(--blue); font-weight: 900; }

/* ── 左サイドバー：連絡チャネル（.sidebar の中身。共有 .side-section を流用）──
   サイト標準のサイドバー言語に合わせ、枠線なし・hover で淡く点く行。 */
.c-channel {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: background .14s ease;
}
.c-channel + .c-channel { margin-top: 2px; }
.c-channel:hover { background: color-mix(in srgb, var(--ink) 3.5%, transparent); }
.c-channel-ic {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: color-mix(in srgb, var(--blue) 10%, var(--surface));
  color: var(--blue);
}
.c-channel-ic svg { width: 18px; height: 18px; }
.c-channel-body { display: grid; gap: 2px; min-width: 0; }
.c-channel-body strong { font-size: 13px; font-weight: 820; letter-spacing: .01em; }
.c-channel-sub { color: var(--muted); font-size: 11.5px; font-weight: 560; line-height: 1.45; }

/* サイドバーの説明テキスト（服務時間など）。 */
.side-note { margin: 0; padding: 0 11px; color: var(--muted); font-size: 12px; font-weight: 560; line-height: 1.7; }

/* ── 本文：フォームカード ─────────────────────────────────────────────
   .product-field は記事と同じ列。フォームは読みやすい幅で左寄せ（記事の prose と同様）。 */
.contact-card {
  max-width: 680px;
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 28px 26px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02), 0 22px 48px -34px rgba(20, 22, 26, .35);
}
.contact-card > h2 { margin: 0 0 6px; font-size: 19px; font-weight: 850; letter-spacing: -.01em; }
.contact-card > .sub { margin: 0 0 24px; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.7; }

/* フォーム内 grid はカード幅いっぱいに（共有 .form-grid の max-width を解除）。 */
.contact-form .form-grid { max-width: none; }

/* textarea の高さだけページで微調整（箱の意匠は共有 .field）。 */
.contact-form textarea { min-height: 136px; }

/* ── 詢問類型 = 押しボタン式（radio ピル） ────────────────────────────
   select を廃止し全種類を一目で見せる。見た目は売場 chip（.scene-grid）と同じ
   「選択＝青淡ピル」の流儀。<label class="type-pill"> が共有 .field label の
   小見出し意匠を継がないよう、ここで打ち消して部品として整える。 */
.contact-form .field-label { font-size: 12px; font-weight: 820; color: var(--muted); letter-spacing: .02em; }
.type-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.contact-form .field .type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 740;
  letter-spacing: 0;
  cursor: pointer;
  user-select: none;
}
.type-pill input { position: absolute; opacity: 0; pointer-events: none; }
.contact-form .field .type-pill:hover { border-color: color-mix(in srgb, var(--ink) 26%, var(--line)); }
.contact-form .field .type-pill:has(input:checked) {
  border-color: transparent;
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
  color: var(--blue);
  font-weight: 820;
}
.contact-form .field .type-pill:has(input:focus-visible) {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent);
}

/* 入力エラー（共有 .field の文脈内オーバーライド＝再定義ではない）。 */
.contact-form .field.is-error input,
.contact-form .field.is-error select,
.contact-form .field.is-error textarea {
  border-color: var(--danger, #d23b3b);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger, #d23b3b) 13%, transparent);
}
.contact-form .field-msg { margin: 0; color: var(--danger, #d23b3b); font-size: 11.5px; font-weight: 760; }

/* 同意文＋送信ボタンの行。 */
.contact-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.contact-consent {
  margin: 0;
  flex: 1 1 260px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
}
.contact-consent a { color: var(--blue); font-weight: 760; text-decoration: underline; text-underline-offset: 2px; }
.contact-foot .btn { flex: 0 0 auto; min-width: 150px; }
.contact-foot .btn[aria-busy="true"] { opacity: .65; pointer-events: none; }

/* スパムbot よけ（画面外へ。表示しない）。 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── 送信完了 ─────────────────────────────────────────────────────── */
.contact-done { text-align: center; padding: 18px 8px 10px; }
.contact-done h2 { margin: 18px 0 10px; font-size: 22px; font-weight: 850; letter-spacing: -.01em; }
.contact-done p { margin: 0 auto; max-width: 44ch; color: var(--muted); font-size: 14px; font-weight: 560; line-height: 1.8; }
.contact-done .done-mark {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 14%, var(--surface));
}
.contact-done .done-mark::after {
  content: ""; width: 22px; height: 12px;
  border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue);
  transform: rotate(-45deg) translate(1px, -2px);
  border-radius: 1px;
}
.done-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ── レスポンシブ ─────────────────────────────────────────────────── */
@media (max-width: 940px) {
  /* サイドバーは base.css で本文上に積まれる（position:static）。連絡チャネルは
     横スペースが広がるので 2 列に並べて高さを節約する。 */
  .contact-sidebar .cat-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
  .contact-sidebar .cat-section h2 { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .contact-sidebar .cat-section { grid-template-columns: 1fr; }
  .contact-card { padding: 22px 18px 22px; border-radius: 14px; }
  .contact-foot .btn { width: 100%; }
}
