/* 申込・初回カウンセリングフォーム。
   **FLLW本体とはCSSを共有していません。**紙（PDF）と同じ明るい配色にしてあります。
   25分書き続ける画面なので、行間と入力欄の高さを優先しています。

   書体は端末のものだけを使います。**外部オリジンからWebフォントを読まないこと**
   （電波の弱い場所で最初の描画が止まる。FLLW本体で実際に起きました）。 */

:root {
  --accent: #b8893b;
  --ink: #23211d;
  --muted: #6f6a61;
  --faint: #a49d91;
  --line: #e3ded4;
  --bg: #faf8f4;
  --panel: #fff;
  --err: #b5473a;
  --radius: 10px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 15px; line-height: 1.7;
  padding-bottom: 96px;
}

.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }

/* 見出し ------------------------------------------------------- */
header.top { border-bottom: 1px solid var(--line); background: var(--panel); padding: 22px 0 18px; }
.program { font-size: 11px; letter-spacing: .16em; color: var(--accent); font-weight: 700; }
header.top h1 { font-size: 21px; margin: 4px 0 0; letter-spacing: .01em; }
header.top .coach { font-size: 13px; color: var(--muted); margin-top: 2px; }
.intro { margin: 14px 0 0; font-size: 14px; }
.notice {
  margin: 12px 0 0; padding: 10px 12px; font-size: 13px; line-height: 1.65;
  background: #fdf6e8; border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0;
}

/* 進み具合（画面の上に貼りつく） -------------------------------- */
.bar {
  position: sticky; top: 0; z-index: 5; background: rgba(250, 248, 244, .96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.bar .inner { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 12px; color: var(--muted); }
.bar .track { display: block; flex: 1; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }

/* 節 ----------------------------------------------------------- */
section.sec { margin: 26px 0 0; }
section.sec > h2 {
  font-size: 13px; letter-spacing: .1em; color: var(--accent); font-weight: 700;
  margin: 0 0 2px; padding-bottom: 5px; border-bottom: 1px solid var(--line);
}
section.sec > h2 .n { color: var(--faint); margin-right: 6px; }
section.sec > .snote { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

/* 設問 --------------------------------------------------------- */
.q { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 12px 0 0; }
.q.miss { border-color: var(--err); box-shadow: 0 0 0 2px rgba(181, 71, 58, .12); }
.q .lab { font-weight: 700; font-size: 14.5px; line-height: 1.6; }
.q .lab .no { color: var(--accent); font-size: 12px; margin-right: 6px; font-weight: 700; }
.q .lab .req { color: var(--err); font-size: 11px; margin-left: 6px; font-weight: 700; }
.q .hint { font-size: 12.5px; color: var(--muted); margin: 3px 0 0; }
.q .field { margin-top: 9px; }
.q .sub { font-size: 12.5px; color: var(--muted); margin: 10px 0 3px; }

input[type="text"], input[type="email"], input[type="number"], textarea, select {
  width: 100%; font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px;
}
textarea { min-height: 76px; resize: vertical; line-height: 1.65; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }

.measure { display: flex; gap: 8px; }
.measure input { flex: 1; }
.measure select { width: 84px; flex: none; }
.withunit { display: flex; align-items: center; gap: 8px; }
.withunit input { flex: 1; }
.withunit .u { font-size: 13px; color: var(--muted); }

/* 選択肢 ------------------------------------------------------- */
.opts { display: flex; flex-direction: column; gap: 6px; }
.opt {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px;
}
.opt input { accent-color: var(--accent); width: 17px; height: 17px; flex: none; margin: 0; }
.opt.on { border-color: var(--accent); background: #fdf6e8; font-weight: 700; }

/* 1-10 --------------------------------------------------------- */
.scale { display: flex; gap: 4px; }
.scale button {
  flex: 1; min-width: 0; padding: 9px 0; font: inherit; font-size: 13px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 7px; color: var(--muted);
}
.scale button.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.scale-ends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 4px; }

/* 送信 --------------------------------------------------------- */
.foot { margin: 28px 0 0; }
.foot .err { color: var(--err); font-size: 13.5px; margin: 0 0 10px; font-weight: 700; }
button.send {
  width: 100%; padding: 15px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius);
}
button.send:disabled { opacity: .55; cursor: default; }
.foot .small { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* 送信できたあと ----------------------------------------------- */
.done { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; margin: 40px 0; text-align: center; }
.done h2 { font-size: 15px; letter-spacing: .12em; color: var(--accent); margin: 0 0 10px; }
.done p { margin: 0; font-size: 14.5px; text-align: left; }

/* 規約などの文書ページ（いまは準備中の器だけ） --------------------- */
.doc { padding-top: 48px; padding-bottom: 48px; max-width: 640px; }
.doc h1 { font-size: 20px; margin: 0 0 6px; }
.doc .stub { color: var(--accent); font-weight: 700; margin: 0 0 18px; }
.doc a { color: var(--accent); }

/* 迷惑投稿よけ。人には見せない ---------------------------------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 400px) {
  body { font-size: 14.5px; }
  .scale button { padding: 8px 0; font-size: 12px; }
}
