/* 個別相談会 公開ページ ─ クリーム基調・紺×金・高視認/入力しやすさ重視。
   申込カレンダーは第1/2/3希望を色分け。グラデーションは使わない。 */
:root {
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --didone: "Cormorant Garamond", serif;

  /* メイン＝ブランドの紺。アクセント＝金 */
  --primary: #34548C;
  --primary-d: #284273;
  --primary-l: #E7ECF6;
  --gold: #B8923F;
  --gold-d: #8A6B2C;
  --gold-l: #F3EAD6;

  /* 希望順位の色（明るくはっきり区別できる3色） */
  --r1: #E23B3B; --r1-l: #FCE4E3;   /* 第1＝鮮やかな赤 */
  --r2: #2F6FE0; --r2-l: #E7EEFD;   /* 第2＝鮮やかな青 */
  --r3: #2FA94F; --r3-l: #E4F6EA;   /* 第3＝鮮やかな緑 */

  /* ヘッダー（ブランドの紺×金） */
  --ink-head: #0D1220;
  --gold-soft: #C9A65A;

  --text: #2A2620;
  --mut: #6E685C;
  --line: #E3DAC6;
  --line-strong: #D6CBB2;
  --field-bg: #FFFFFF;
  --err: #C0593B;
  --card-sh: 0 1px 2px rgba(60,48,20,.04), 0 8px 22px rgba(60,48,20,.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: radial-gradient(130% 90% at 50% 0%, #F8F4EC 0%, #EFE7D6 70%, #E8DEC9 100%) fixed;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.8;
  font-size: 16px;
  padding-top: 72px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

.wrap { max-width: 800px; margin: 0 auto; padding: 0 18px 90px; }

/* ============================================================ HEADER（ブランド統一） */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(13,18,31,.95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,166,90,.2);
}
.header-in { max-width: 1320px; margin-inline: auto; padding: 0 18px; display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; text-decoration: none; }
.brand .emblem { width: 42px; height: 42px; display: block; }
.brand-txt { line-height: 1.25; }
.brand-txt .co { font-family: var(--serif); font-size: .98rem; font-weight: 600; letter-spacing: .08em; color: #F3F0E8; }
.brand-txt .en { display: block; font-family: var(--didone); font-size: .58rem; letter-spacing: .32em; color: var(--gold-soft); text-transform: uppercase; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 22px; list-style: none; }
.gnav a { font-size: .82rem; letter-spacing: .06em; color: #EDEFF3; padding: 6px 0; position: relative; white-space: nowrap; text-decoration: none; }
.gnav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold-soft); transition: right .3s; }
.gnav a:hover::after { right: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; font-family: var(--sans); font-weight: 700; cursor: pointer; border: none; transition: .25s; text-decoration: none; }
.btn--gold { background: var(--gold-soft); color: #1a1206; font-size: .82rem; padding: .85em 1.7em; border-radius: 999px; }
.btn--gold:hover { background: var(--gold); color: #fff; transform: translateY(-1px); }
.btn .ar { transition: transform .25s; }
.btn:hover .ar { transform: translateX(3px); }
.header-cta { flex-shrink: 0; }
.nav-toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 6px; background: none; border: none; cursor: pointer; margin-left: auto; }
.nav-toggle span { height: 2px; background: var(--gold-soft); display: block; }

/* ============================================================ ページ見出し */
.page-title { text-align: center; padding: 44px 0 4px; }
.page-title .en { font-family: var(--didone); color: var(--gold-d); letter-spacing: .3em; font-size: .8rem; text-transform: uppercase; font-weight: 600; }
.page-title h1 { font-family: var(--serif); font-weight: 700; color: var(--text); font-size: clamp(1.5rem, 1rem + 2vw, 2rem); letter-spacing: .04em; margin-top: 10px; }
.page-title .lead { color: var(--mut); font-size: .92rem; margin-top: 14px; }
.page-title .lead b { color: var(--primary-d); }

/* ステップ見出し（番号バッジ） */
.step-head { display: flex; align-items: center; gap: 12px; margin: 34px 0 12px; }
.step-head .no { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.step-head h2 { font-size: 1.12rem; font-weight: 700; letter-spacing: .03em; color: var(--text); }

/* ============================================================ 週ナビ */
.week-nav { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 12px; }
.week-nav .range { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.week-nav .wk-btn { font-family: inherit; font-weight: 600; cursor: pointer; background: #fff; color: var(--primary-d); border: 1.5px solid var(--line-strong); padding: 9px 16px; border-radius: 10px; font-size: .88rem; }
.week-nav .wk-btn:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-l); }
.week-nav .wk-btn:disabled { opacity: .35; cursor: default; }

/* 凡例 */
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 14px; font-size: .85rem; color: var(--mut); }
.legend .li { display: inline-flex; align-items: center; gap: 7px; }
.legend .dot { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.legend .r1 { background: var(--r1); } .legend .r2 { background: var(--r2); } .legend .r3 { background: var(--r3); }
.legend .free { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--primary); color: var(--primary-d); display: grid; place-items: center; font-weight: 700; }
.legend .tag-req { color: var(--err); font-weight: 700; } .legend .tag-opt { color: var(--mut); }

/* ============================================================ カレンダー
   横スクロールはさせない：table-layout:fixed で必ず7日ぶんを画面内に収める */
.cal-scroll { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--card-sh); }
.cal { border-collapse: collapse; width: 100%; table-layout: fixed; }
.cal thead th:first-child { width: 64px; }  /* 時刻列。残りを7等分して曜日列にする */
.cal th, .cal td { border: 1px solid var(--line); text-align: center; }
.cal thead th { padding: 11px 2px; background: #FBF7EE; }
.cal thead .d { font-family: var(--didone); font-size: 1.1rem; font-weight: 600; color: var(--text); }
.cal thead .w { display: block; font-size: .72rem; color: var(--mut); margin-top: 1px; }
.cal thead .sat .w { color: var(--primary); } .cal thead .sun .w { color: var(--err); }
.cal tbody th { padding: 0 12px; background: #FBF7EE; font-weight: 700; font-size: .9rem; color: var(--text); white-space: nowrap; }
.cal td { padding: 5px; height: 54px; }
.cal .none { color: #CFC6B4; font-size: 1rem; }

/* ○ 選択ボタン → クリックで第1→2→3、色で区別 */
.cal .slot-pick {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--primary); background: #fff; color: var(--primary-d);
  font-size: 1.15rem; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .1s, background .1s; font-family: inherit;
}
.cal .slot-pick:hover { background: var(--primary-l); transform: scale(1.08); }
.cal .slot-pick.sel { color: #fff; border-color: transparent; }
.cal .slot-pick.r1 { background: var(--r1); box-shadow: 0 0 0 3px var(--r1-l); }
.cal .slot-pick.r2 { background: var(--r2); box-shadow: 0 0 0 3px var(--r2-l); }
.cal .slot-pick.r3 { background: var(--r3); box-shadow: 0 0 0 3px var(--r3-l); }

.cal-note { color: var(--mut); font-size: .82rem; margin-top: 10px; }

/* 選択中の希望リスト（色付きチップ） */
.picked { margin: 22px 0 6px; padding: 16px 18px; border: 1px solid var(--line); background: #fff; border-radius: 14px; box-shadow: var(--card-sh); }
.picked-empty { color: var(--mut); font-size: .9rem; }
.picked-list { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.picked-list li { display: flex; align-items: center; gap: 12px; }
.picked-list .rank { flex: none; min-width: 76px; text-align: center; color: #fff; font-weight: 700; font-size: .82rem; padding: 5px 10px; border-radius: 999px; }
.picked-list li.r1 .rank { background: var(--r1); } .picked-list li.r2 .rank { background: var(--r2); } .picked-list li.r3 .rank { background: var(--r3); }
.picked-list .lbl { font-weight: 600; color: var(--text); }
.picked-list .rm { margin-left: auto; cursor: pointer; background: #fff; border: 1.5px solid var(--line-strong); color: var(--mut); border-radius: 999px; padding: 5px 13px; font-size: .8rem; font-family: inherit; }
.picked-list .rm:hover { color: var(--err); border-color: var(--err); }

/* ============================================================ フォーム */
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 26px 8px; box-shadow: var(--card-sh); margin-top: 16px; }
.form-sec { margin-top: 8px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .92rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.field .req { display: inline-block; background: var(--err); color: #fff; font-size: .68rem; padding: 2px 8px; border-radius: 5px; margin-left: 8px; vertical-align: 2px; }
.field .opt { display: inline-block; background: #EFE9DC; color: var(--mut); font-size: .68rem; padding: 2px 8px; border-radius: 5px; margin-left: 8px; vertical-align: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; padding: 14px 15px; font-size: 16px; color: var(--text);
  background: var(--field-bg); border: 1.5px solid var(--line-strong); border-radius: 10px; font-family: inherit;
}
.field input::placeholder, .field textarea::placeholder { color: #B5AC98; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-l); }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.field .hint { color: var(--mut); font-size: .82rem; margin-top: 6px; }

/* 実施形態のラジオ＋来店アクセス案内 */
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-opt { display: flex; align-items: center; gap: 9px; flex: 1 1 200px; padding: 13px 16px;
  background: var(--field-bg); border: 1.5px solid var(--line-strong); border-radius: 10px; cursor: pointer; font-weight: 500; }
.radio-opt input[type="radio"] { width: 19px; height: 19px; accent-color: var(--primary); }
.radio-opt:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-l); background: var(--primary-l); }
.visit-access { margin-top: 14px; padding: 15px 18px; background: #F4EFE4; border: 1px solid var(--line-strong); border-radius: 10px; }
.visit-access .va-head { font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--primary-d); }
.visit-access .va-body { font-size: .9rem; line-height: 1.85; color: var(--text); }

.btn-gold {
  display: inline-block; width: 100%; padding: 18px; text-align: center;
  background: var(--primary); color: #fff; font-size: 1.1rem; font-weight: 700; letter-spacing: .06em;
  border: none; border-radius: 12px; cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 20px rgba(52,84,140,.28); transition: background .2s, transform .12s;
}
.btn-gold:hover { background: var(--primary-d); transform: translateY(-1px); }

.errors { background: #F8E7E0; border: 1px solid #E4B7A8; border-left: 4px solid var(--err); border-radius: 10px; padding: 14px 18px; margin: 22px 0; font-size: .9rem; color: #9A4630; }
.errors ul { margin-left: 1.2em; }

.field.consent { text-align: center; margin: 24px 0 8px; }
.field.consent label { display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 500; cursor: pointer; }
.field.consent input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--primary); }
.field.consent a { color: var(--primary-d); font-weight: 700; }

.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* ============================================================ 完了（thanks） */
.done-box { text-align: center; padding: 56px 0 20px; }
.done-box .mark { width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%; background: var(--primary-l); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 700; }
.done-box h1 { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; margin-bottom: 14px; color: var(--text); }
.done-box p { color: var(--mut); font-size: .95rem; }
.done-box .next { margin: 30px auto 0; max-width: 540px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px 26px; box-shadow: var(--card-sh); list-style: none; counter-reset: st; }
.done-box .next .row { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.done-box .next .row:last-child { border-bottom: none; }
.done-box .next .row .n { flex: none; counter-increment: st; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.done-box .next .row .n::before { content: counter(st); }
.done-box .next .row .t { font-size: .92rem; color: var(--text); }
.done-box .next .row .t b { color: var(--primary-d); }

/* ============================================================ 事前ワーク（クリーム基調＋色分けカード・特別感／グラデ無し） */
.pw-intro { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 14px; padding: 22px 24px; margin: 6px 0 30px; box-shadow: var(--card-sh); }
.pw-intro .who { display: inline-block; background: var(--gold-l); color: var(--gold-d); border-radius: 999px; padding: 4px 14px; font-size: .82rem; font-weight: 700; margin-bottom: 12px; }
.pw-intro h2 { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.pw-intro p { font-size: .9rem; color: var(--mut); line-height: 1.85; }
.pw-intro p b { color: var(--primary-d); }

body.page-prework { counter-reset: grp; }
body.page-prework .wrap { max-width: 780px; }
.page-prework .fp-group {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px 4px; margin-bottom: 20px; box-shadow: var(--card-sh);
  border-top: 5px solid var(--gc, var(--primary));
}
.page-prework .fp-group > h2 {
  display: flex; align-items: center; gap: 12px; font-size: 1.08rem; font-weight: 700;
  color: var(--text); letter-spacing: .02em; margin-bottom: 20px;
}
.page-prework .fp-group > h2::before {
  counter-increment: grp; content: counter(grp);
  flex: none; width: 34px; height: 34px; border-radius: 12px;
  background: var(--gc, var(--primary)); color: #fff; font-family: var(--didone); font-weight: 700; font-size: 1.1rem;
  display: grid; place-items: center;
}
/* グループごとに色を巡回（緑なし・クリームに映える配色） */
.page-prework .fp-group:nth-of-type(6n+1){ --gc:#34548C; }  /* 紺 */
.page-prework .fp-group:nth-of-type(6n+2){ --gc:#C0593B; }  /* テラコッタ */
.page-prework .fp-group:nth-of-type(6n+3){ --gc:#B8923F; }  /* 金 */
.page-prework .fp-group:nth-of-type(6n+4){ --gc:#7E5A86; }  /* プラム */
.page-prework .fp-group:nth-of-type(6n+5){ --gc:#4E6E9E; }  /* スレートブルー */
.page-prework .fp-group:nth-of-type(6n+6){ --gc:#C77F6A; }  /* テラコッタ淡 */
.page-prework .form-sec { margin-top: 0; }

/* ============================================================ フッター */
footer.site-foot { text-align: center; color: var(--mut); font-size: .8rem; line-height: 1.9; padding: 28px 18px 40px; border-top: 1px solid var(--line); margin-top: 60px; }
footer.site-foot .f-co { font-weight: 700; color: var(--text); }

/* ============================================================ レスポンシブ */
@media (max-width: 980px) {
  .gnav { position: fixed; top: 72px; left: 0; right: 0; display: none; background: var(--ink-head); border-bottom: 1px solid rgba(201,166,90,.2); }
  body.nav-open .gnav { display: block; }
  .gnav ul { flex-direction: column; gap: 0; padding: 6px 22px; }
  .gnav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(201,166,90,.12); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  /* スマホでも横スクロールなしで7日ぶんを表示する（列・文字・○を縮める） */
  .cal thead th:first-child { width: 42px; }
  .cal thead th { padding: 8px 1px; }
  .cal thead .d { font-size: .84rem; }
  .cal thead .w { font-size: .6rem; }
  .cal tbody th { padding: 0 2px; font-size: .72rem; }
  .cal td { padding: 2px 1px; height: 46px; }
  .cal .slot-pick { width: 32px; height: 32px; font-size: .95rem; }
  .card { padding: 20px 18px 4px; }
}
@media (max-width: 380px) {
  .cal thead th:first-child { width: 38px; }
  .cal tbody th { font-size: .66rem; }
  .cal td { height: 42px; }
  .cal .slot-pick { width: 28px; height: 28px; font-size: .88rem; }
}
