/* kaketa.org の 共通（トップ・映し方）。ブランドブック（claude/brand-kaketa.md）：画用紙 70・すみ 20・ひだまり 10。書体は Zen Maru Gothic だけ */
:root { --w: 680px; --wide: 1080px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --k-paper: #1C1A18; --k-paper-2: #252220; --k-card: #2A2724; --k-ink: #F3EEE5; --k-ink-2: #B2AB9F; --k-line: #3A3632; --k-sun-soft: #3A3220; --k-shadow: rgba(0, 0, 0, .3); }
}
:root[data-theme="dark"] { --k-paper: #1C1A18; --k-paper-2: #252220; --k-card: #2A2724; --k-ink: #F3EEE5; --k-ink-2: #B2AB9F; --k-line: #3A3632; --k-sun-soft: #3A3220; --k-shadow: rgba(0, 0, 0, .3); }
html { scroll-behavior: smooth; }
body { background: var(--k-paper); color: var(--k-ink); font-family: var(--round); font-size: 16px; line-height: 1.85; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--k-mikan); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wide), 100% - 32px); margin: 0 auto; }
.narrow { width: min(var(--w), 100% - 32px); margin: 0 auto; }
h1, h2, h3 { line-height: 1.4; margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
h2 { font-size: clamp(24px, 5vw, 32px); font-weight: 700; letter-spacing: .02em; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
.lead { color: var(--k-ink-2); }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--k-ink-2); letter-spacing: .12em; }
.note { font-size: 13px; color: var(--k-ink-2); line-height: 1.7; }
section { padding: 80px 0; }
section.tint { background: var(--k-paper-2); }
.sec-h { display: grid; gap: 10px; margin-bottom: 36px; max-width: 720px; }
.sec-h.c { margin-inline: auto; text-align: center; justify-items: center; }
.nw { white-space: nowrap; }
b.hl { background: linear-gradient(transparent 62%, var(--k-sun-soft) 62%); }

/* ボタン（おとな 44px 以上・主は すみ、ほかは 線だけ・押すと 3px 沈む） */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 2px solid var(--k-ink); background: transparent; color: var(--k-ink); transition: transform .08s; white-space: nowrap; }
.btn:active { transform: translateY(3px); }
.btn.pri { background: var(--k-ink); color: var(--k-paper); box-shadow: 0 3px 0 var(--k-shadow); }
.btn.sun { background: var(--k-sun); color: #2B2F45; border-color: var(--k-sun); box-shadow: 0 3px 0 rgba(43, 47, 69, .12); }
.btn.big { min-height: 56px; padding: 12px 30px; font-size: 17px; }
.btn.ghost { border-color: transparent; padding-inline: 12px; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-sub { font-size: 13px; color: var(--k-ink-2); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--k-sun); padding-bottom: 1px; }
.more::after { content: "→"; }

/* ヘッダー */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--k-paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(6px); -webkit-backdrop-filter: saturate(1.2) blur(6px); border-bottom: 2px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--k-line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; padding-top: env(safe-area-inset-top, 0px); }
.logo { display: inline-flex; align-items: flex-end; font-size: 26px; font-weight: 900; letter-spacing: .04em; text-decoration: none; line-height: 1; }
.logo .arch { width: 1.3em; margin-right: .28em; color: currentColor; }
.top nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.top nav a.tl { font-size: 14px; font-weight: 700; text-decoration: none; padding: 8px 10px; border-radius: 999px; color: var(--k-ink-2); }
.top nav a.tl:hover, .top nav a.tl[aria-current] { color: var(--k-ink); }
.top .btn { min-height: 40px; padding: 6px 18px; font-size: 14px; margin-left: 6px; }
@media (max-width: 760px) { .top nav a.tl { display: none; } .top nav a.tl.keep { display: inline-flex; } }

/* 機械の わく（本物の 画面を 入れる） */
.phone { background: #2B2F45; border-radius: 30px; padding: 7px; box-shadow: 0 12px 28px rgba(43, 47, 69, .14); }
.phone img { display: block; width: 100%; height: auto; border-radius: 24px; aspect-ratio: 390 / 844; background: #FFFDF8; object-fit: cover; }
.phone.crop img { aspect-ratio: 390 / 770; object-position: top; }
.tablet { background: #2B2F45; border-radius: 26px; padding: 12px; box-shadow: 0 12px 28px rgba(43, 47, 69, .14); }
.tablet img { display: block; width: 100%; height: auto; border-radius: 14px; aspect-ratio: 1180 / 820; background: #FFFDF8; }
.screen { position: relative; background: #2B2F45; border-radius: 20px; padding: 10px; box-shadow: 0 14px 32px rgba(43, 47, 69, .16); }
.screen::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 22%; height: 9px; translate: -50% 0; border-radius: 0 0 12px 12px; background: #2B2F45; opacity: .85; }
.screen img { display: block; width: 100%; height: auto; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; }

/* カード */
.card { background: var(--k-card); border: 2px solid var(--k-line); border-radius: 22px; padding: 24px; box-shadow: 0 3px 0 var(--k-shadow); }

/* 線の アイコン（24 グリッド・線 1.9px・塗らない） */
.ic { width: 48px; height: 48px; border-radius: 16px; background: var(--k-sun-soft); display: grid; place-items: center; flex: none; }
.ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* 手じゅん（番号） */
.nsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: n; }
.nsteps > li { counter-increment: n; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.nsteps > li::before { content: counter(n); width: 32px; height: 32px; border-radius: 50%; background: var(--k-sun); color: #2B2F45; font-weight: 900; display: grid; place-items: center; font-size: 15px; }
.nsteps b { display: block; }
.nsteps span { color: var(--k-ink-2); font-size: 15px; }
code, .url { font-family: var(--round); font-weight: 700; background: var(--k-paper-2); border-radius: 8px; padding: 1px 8px; word-break: break-all; }

/* よくある しつもん */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--k-card); border: 2px solid var(--k-line); border-radius: 18px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--k-ink-2); }
.faq details[open] summary::after { content: "−"; }
.faq details p, .faq details > div { padding: 0 0 14px; color: var(--k-ink-2); font-size: 15px; }
.faq a { color: var(--k-ink); font-weight: 700; }

/* さいごの ひとこと・フッター */
.end { text-align: center; padding: 96px 0; }
.end .narrow { display: grid; gap: 18px; justify-items: center; }
.end .arch { width: 72px; margin: 0; }
.end h2 { font-size: clamp(26px, 6vw, 38px); font-weight: 900; }
.end .cta { justify-content: center; }
footer { border-top: 2px solid var(--k-line); padding: 28px 0 calc(env(safe-area-inset-bottom, 0px) + 32px); font-size: 14px; color: var(--k-ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--k-ink); }
footer .c { margin-left: auto; }

/* スマホ：下に いつも「無料ではじめる」 */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; gap: 10px; align-items: center; padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 10px); background: color-mix(in srgb, var(--k-paper) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 2px solid var(--k-line); transform: translateY(110%); transition: transform .3s cubic-bezier(.3, 1.2, .5, 1); }
.dock .btn { flex: 1; min-height: 50px; }
.dock .btn.ghost { flex: none; }
.dock.on { transform: none; }
@media (max-width: 760px) { .dock { display: flex; } footer { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); } }

/* ぽん（出てくる） */
.rise { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s cubic-bezier(.3, 1.3, .5, 1); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
@media print { .top, .tryz, .dock { display: none; } }
