/* chokoWORK  https://choko.work/
   コンセプト：毎月ひとブロックずつ積み上がる。板チョコの割れ目をモチーフにした「ブロック」で、小さく始めて育てる感じを出す */

:root {
  --bg: #f3f4f8;
  --surface: #ffffff;
  --ink: #1b2030;
  --muted: #566078;
  --accent: #2740e8;
  --accent-ink: #ffffff;
  --accent-soft: #e4e8ff;
  --pop: #ffcc2e;
  --pop-ink: #3a2c00;
  --line: #dde1ec;
  --ok: #1f8a4c;
  --err: #c0392b;
  --err-bg: #fdecea;
  --ok-bg: #e7f6ec;
  --shadow: 0 1px 0 rgba(27, 32, 48, .06), 0 8px 24px rgba(27, 32, 48, .06);
  --font-body: "Zen Maru Gothic", "Yu Gothic", "Meiryo", sans-serif;
  --font-display: "Mochiy Pop One", "Zen Maru Gothic", "Yu Gothic", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 10px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11141d;
    --surface: #1a1f2e;
    --ink: #eef0f7;
    --muted: #a5adc2;
    --accent: #8d9cff;
    --accent-ink: #11141d;
    --accent-soft: #252c4d;
    --pop: #ffcc2e;
    --pop-ink: #3a2c00;
    --line: #2b3247;
    --ok: #5fd08d;
    --err: #ff8f82;
    --err-bg: #3a1f1f;
    --ok-bg: #173223;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11141d;
  --surface: #1a1f2e;
  --ink: #eef0f7;
  --muted: #a5adc2;
  --accent: #8d9cff;
  --accent-ink: #11141d;
  --accent-soft: #252c4d;
  --pop: #ffcc2e;
  --pop-ink: #3a2c00;
  --line: #2b3247;
  --ok: #5fd08d;
  --err: #ff8f82;
  --err-bg: #3a1f1f;
  --ok-bg: #173223;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--pop); color: var(--pop-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  margin: 0 calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 21px; letter-spacing: .01em; line-height: 1; }
.logo b { color: var(--accent); font-weight: inherit; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.nav a:hover { color: var(--accent); }
.nav .btn { color: var(--accent-ink); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; line-height: 1.4; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(39, 64, 232, .25); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { padding: 8px 18px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- 見出し ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; margin: 0 0 8px; }
h1, h2, h3 { margin: 0; line-height: 1.4; text-wrap: balance; }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 4vw, 34px); letter-spacing: .01em; }
h3 { font-size: 18px; font-weight: 700; }
.lead { color: var(--muted); max-width: 44em; margin: 12px 0 0; text-wrap: pretty; }
p, li { text-wrap: pretty; }
.sub-note { font-weight: 500; font-size: 13px; }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
section { padding-block: 72px 8px; }
.sec-head { margin-bottom: 32px; }

/* ---------- ヒーロー ---------- */
.hero { padding-block: 56px 24px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 5.2vw, 52px); line-height: 1.35; letter-spacing: .005em; }
.hero h1 mark { background: linear-gradient(transparent 62%, var(--pop) 62%); color: inherit; padding: 0 .1em; }
.hero p.sub { font-size: 17px; color: var(--muted); margin: 20px 0 0; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; padding: 0; margin: 24px 0 0; }
.badges li { font-size: 13px; font-weight: 700; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }

/* 板チョコ風ブロックボード */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.board-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.board-title b { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
.bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.blk {
  position: relative; min-height: 84px; padding: 10px 10px 10px 12px; border-radius: 8px;
  background: var(--accent-soft); color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.5;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: inset 0 -3px 0 rgba(39, 64, 232, .18), inset 0 2px 0 rgba(255, 255, 255, .25);
}
.blk small { font-family: var(--font-mono); font-weight: 500; font-size: 11px; color: var(--muted); }
.blk.done { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22), inset 0 2px 0 rgba(255, 255, 255, .22); }
.blk.done small { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
.blk.now { background: var(--pop); color: var(--pop-ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15), inset 0 2px 0 rgba(255, 255, 255, .4); }
.blk.now small { color: var(--pop-ink); }
.blk.empty { background: transparent; border: 2px dashed var(--line); color: var(--muted); box-shadow: none; }
.board-note { margin: 14px 0 0; font-size: 12px; color: var(--muted); }

/* 受付状況 */
.intake { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 13px; font-weight: 700; }
.intake .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.i-paused { display: none; }
[data-intake="paused"] .i-open { display: none; }
[data-intake="paused"] span.i-paused { display: inline; }
[data-intake="paused"] p.i-paused { display: block; }
[data-intake="paused"] .intake .dot { background: var(--pop); }
.intake-box { margin-bottom: 16px; padding: 14px 20px; border: 1px dashed var(--line); border-radius: var(--radius); font-size: 14px; }
.intake-box p { margin: 0; }
.intake-box .intake { margin: 0 0 4px; }
.hero-intake { margin: 20px 0 0; max-width: 30em; }

/* お知らせ（目立たせない） */
.news { padding-block: 36px 0; }
.news .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; padding-block: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news h2 { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--muted); letter-spacing: .08em; }
.news dl { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; flex: 1 1 320px; min-width: 0; }
.news dt { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.news dd { margin: 0; font-size: 14px; flex: 1 1 260px; min-width: 0; }

/* ---------- 悩み ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.worry { position: relative; padding-top: 44px; }
.worry::before { content: "”"; position: absolute; top: 4px; left: 18px; font-family: var(--font-display); font-size: 48px; line-height: 1; color: var(--pop); }
.worry h3 { font-size: 16px; }

/* ---------- 比較表 ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 14px; background: var(--bg); }
.compare thead th.us { background: var(--accent-soft); border-bottom: 3px solid var(--accent); }
.logo-sm { font-size: 19px; gap: 8px; pointer-events: none; }
.logo-sm .logo-mark { width: 24px; height: 24px; }
.compare tbody th { width: 22%; font-weight: 700; white-space: nowrap; }
.compare td.us { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); font-weight: 700; }
.compare td.them { color: var(--muted); }

/* ---------- 枠のしくみ ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-weight: 500; margin-bottom: 12px; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.callout { margin-top: 20px; padding: 18px 22px; border-radius: var(--radius); background: var(--pop); color: var(--pop-ink); font-weight: 700; }
.callout p { margin: 0; }

/* ---------- 料金 ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.plan.main { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -13px; left: 22px; font-size: 12px; font-weight: 700; background: var(--accent); color: var(--accent-ink); padding: 2px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan .for { margin: 0; color: var(--muted); font-size: 14px; }
.price { font-family: var(--font-mono); font-size: 34px; line-height: 1.2; letter-spacing: -.02em; }
.price small { font-size: 14px; letter-spacing: 0; color: var(--muted); font-family: var(--font-body); }
.hours { margin: 0; font-size: 14px; font-weight: 700; color: var(--accent); }
.plan ul { margin: 6px 0 0; padding-left: 1.2em; font-size: 15px; }
.plan li { margin-bottom: 4px; }
.fine { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.fine li { margin-bottom: 4px; }
.options { margin-top: 16px; padding: 18px 22px; border: 1px dashed var(--line); border-radius: var(--radius); font-size: 15px; }
.options b { margin-right: .5em; }

/* ---------- 流れ・3か月 ---------- */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; counter-reset: f; }
.flow li { counter-increment: f; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; }
.flow li::before { content: "STEP " counter(f); display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); margin-bottom: 4px; }
.flow h3 { font-size: 16px; margin-bottom: 4px; }
.flow p { margin: 0; font-size: 14px; color: var(--muted); }
.months { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.month { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; }
.month:nth-child(2) { border-top-color: color-mix(in srgb, var(--accent) 65%, var(--pop)); }
.month:nth-child(3) { border-top-color: var(--pop); }
.month h3 { font-size: 16px; margin-bottom: 6px; }
.month p { margin: 0; font-size: 14px; color: var(--muted); }
.month .m { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; }

/* ---------- 選ばれる理由 ---------- */
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.reason { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.reason svg { width: 48px; height: 48px; }
.reason h3 { font-size: 17px; margin-bottom: 4px; }
.reason p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 22px; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }
.faq .ans p { margin: 0 0 8px; }

/* ---------- 運営 ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
.about dl { margin: 0; display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 10px 16px; font-size: 15px; }
.about dt { font-weight: 700; color: var(--muted); }
.about dd { margin: 0; }

/* ---------- フォーム ---------- */
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field > label, .field > .lab { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.req { color: var(--err); font-size: 12px; margin-left: 6px; }
.opt { color: var(--muted); font-size: 12px; margin-left: 6px; font-weight: 500; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink);
}
input:focus, textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
textarea { min-height: 160px; resize: vertical; }
.checks { display: grid; gap: 8px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 15px; cursor: pointer; }
.checks input { margin-top: 7px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { display: none; padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-size: 15px; }
.msg.show { display: block; }
.msg.err { background: var(--err-bg); color: var(--err); border: 1px solid var(--err); }
.msg.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok); font-weight: 700; }
.form-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---------- フッター ---------- */
.site-footer { margin-top: 80px; padding-block: 32px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 0; }

/* 運営者名は検索に載せないため画像で表示する */
.opname { height: .95em; width: auto; vertical-align: -.09em; }

/* ---------- 下層ページ ---------- */
.doc { padding-block: 48px 0; max-width: 760px; margin: 0 auto; }
.doc h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 4vw, 34px); margin-bottom: 24px; }
.doc h2 { font-family: var(--font-body); font-weight: 700; font-size: 19px; margin: 32px 0 8px; }
.doc p, .doc li { font-size: 15px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .hero .wrap, .about { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { gap: 32px; }
  section { padding-block: 56px 4px; }
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 2px solid var(--accent); }
  .site-header .wrap { position: relative; }
}
@media (max-width: 520px) {
  .contact-box { padding: 22px 18px; }
  .about dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .about dd { margin-bottom: 10px; }
  .bar { gap: 6px; }
  .blk { min-height: 78px; font-size: 12px; padding: 8px; }
}
