/*
 * ならいごと帳 LP
 * 端末のダークモードに関係なく、明るい配色で表示する（ブランドの印象を固定するため）。
 */
:root {
  color-scheme: light;

  --bg: #fffaf2;
  --surface: #ffffff;
  --ink: #3a3238;
  --muted: #6f6570;
  --line: #f0e4d6;

  /* ブランド */
  --brand: #ef6f5e;        /* コーラル: ロゴ・差し色 */
  --brand-deep: #c9483a;   /* 白文字を載せるボタン */
  --brand-text: #b3402f;   /* 小さい赤系の文字 */

  /* パステル（背景・タグ） */
  --yellow: #ffd66b;
  --yellow-soft: #fff4d1;
  --pink: #ff9eb1;
  --pink-soft: #ffe8ee;
  --mint: #7fd6bb;
  --mint-soft: #e4f7f0;
  --sky: #8cc8f2;
  --sky-soft: #e6f3fd;
  --lilac: #bfa8f0;
  --lilac-soft: #f0eafc;
  --peach: #ffb98a;
  --peach-soft: #ffeede;

  /* タグの文字（パステル背景の上でも読める濃さ） */
  --green-text: #1f7a5c;
  --purple-text: #6a48b0;

  --radius: 18px;
  --shadow: 0 12px 28px rgba(201, 124, 90, 0.14);
  --heading: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-text); }

h1, h2, h3 { font-family: var(--heading); line-height: 1.45; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 6.4vw, 3.4rem); letter-spacing: 0.03em; }
h2 { font-size: clamp(1.45rem, 3.8vw, 2rem); text-align: center; margin-bottom: 1.4em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }

/* 色の組（タグ・アバター・アイコン共通） */
.c-yellow { background: var(--yellow-soft); color: #8a5a00; }
.c-pink   { background: var(--pink-soft);   color: #b0304f; }
.c-mint   { background: var(--mint-soft);   color: var(--green-text); }
.c-sky    { background: var(--sky-soft);    color: #1d6aa3; }
.c-lilac  { background: var(--lilac-soft);  color: var(--purple-text); }
.c-peach  { background: var(--peach-soft);  color: #a2501a; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 250, 242, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--heading); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line), 2px 2px 0 var(--yellow); flex: none; }

/* ボタン */
.btn { display: inline-block; background: var(--brand-deep); color: #fff; font-weight: 700; text-decoration: none; border: 0; border-radius: 999px; padding: 15px 30px; font-size: 1.02rem; font-family: inherit; cursor: pointer; box-shadow: 0 5px 0 #9e3528; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 #9e3528; }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 #9e3528; }
.btn:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.btn-small { padding: 8px 18px; font-size: 0.9rem; box-shadow: 0 3px 0 #9e3528; }
.btn-small:hover { box-shadow: 0 1px 0 #9e3528; }
.btn-block { display: block; width: 100%; margin-top: 12px; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* ヒーロー */
.hero { position: relative; overflow: hidden; padding: 56px 0 80px; background:
  radial-gradient(circle at 12% 18%, var(--yellow-soft) 0 140px, transparent 141px),
  radial-gradient(circle at 92% 12%, var(--pink-soft) 0 180px, transparent 181px),
  radial-gradient(circle at 80% 95%, var(--mint-soft) 0 160px, transparent 161px),
  var(--bg); }
.hero-inner { position: relative; display: grid; gap: 44px; align-items: center; grid-template-columns: 1.1fr 1fr; }
.eyebrow { display: inline-block; background: var(--surface); border: 2px solid var(--brand); color: var(--brand-text); font-weight: 700; font-size: 0.9rem; border-radius: 999px; padding: 3px 14px; margin-bottom: 1em; }
.marker { background: linear-gradient(transparent 60%, var(--yellow) 60%); padding: 0 0.1em; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 32em; }

.genres { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 0; }
.genres li { font-size: 0.85rem; font-weight: 700; border-radius: 999px; padding: 4px 14px; }

.hero-cta { margin-top: 30px; }
.note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.deco { position: absolute; font-family: var(--heading); font-weight: 700; }
.deco-note { top: 14%; right: 44%; font-size: 2.4rem; color: var(--pink); transform: rotate(-12deg); }
.deco-abc { bottom: 12%; left: 4%; font-size: 1.3rem; color: var(--sky); transform: rotate(-8deg); }
.deco-star { top: 8%; left: 46%; font-size: 1.4rem; color: var(--yellow); }
.deco-dot { width: 14px; height: 14px; border-radius: 50%; }
.d1 { top: 30%; left: 3%; background: var(--mint); }
.d2 { bottom: 20%; right: 6%; background: var(--lilac); width: 18px; height: 18px; }
.d3 { top: 70%; left: 48%; background: var(--peach); width: 10px; height: 10px; }

.hero-video { margin: 0; justify-self: center; width: 100%; max-width: 360px; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--yellow); background: var(--bg); }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* セクション */
.section { padding: 76px 0; }
.bg-yellow { background: var(--yellow-soft); }
.bg-mint { background: var(--mint-soft); }
.bg-pink { background: var(--pink-soft); }
.bg-sky { background: var(--sky-soft); }

.icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; margin-bottom: 12px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 58px; height: 58px; border-radius: 50%; }
.icon-lg svg { width: 30px; height: 30px; }

.pains { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.pains li { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.pains p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.features { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.feature { background: var(--surface); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.feature-num { font-family: var(--heading); font-weight: 700; color: var(--brand-text); font-size: 0.95rem; letter-spacing: 0.1em; margin-bottom: 0.2em; }
.feature p:last-child { color: var(--muted); font-size: 0.95rem; margin: 0; }
.parents { text-align: center; margin: 40px auto 0; max-width: 36em; background: var(--surface); border-radius: 999px; padding: 14px 24px; }

.price-card { position: relative; background: var(--surface); border: 3px solid var(--ink); border-radius: 26px; padding: 36px 24px 30px; text-align: center; box-shadow: 10px 10px 0 var(--pink); }
.price-plan { display: inline-block; font-weight: 700; color: #8a5a00; background: var(--yellow-soft); border-radius: 999px; padding: 2px 16px; margin-bottom: 0.6em; }
.price { font-family: var(--heading); font-size: 1.3rem; margin-bottom: 0.3em; }
.price-num { font-size: 3.6rem; font-weight: 700; letter-spacing: 0.02em; color: var(--brand-deep); }
.price-sub { font-weight: 700; }
.price-note { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* フォーム */
.form-lead { text-align: center; color: var(--muted); }
.signup { background: var(--surface); border-radius: 26px; padding: 30px 26px; box-shadow: var(--shadow); }
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
label, legend { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
legend { padding: 0; }
input[type="email"], input[type="text"], select { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 11px 14px; min-height: 50px; }
input[type="email"]:focus, input[type="text"]:focus, select:focus { border-color: var(--sky); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--brand-deep); flex: none; }
.check-box { background: var(--yellow-soft); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }
.req, .opt, .hint { font-size: 0.72rem; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 0.1em; }
.req { background: var(--pink-soft); color: var(--brand-text); }
.opt, .hint { background: #f4efe8; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: var(--pink-soft); color: var(--brand-text); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 0.93rem; }
.thanks { background: var(--surface); border: 3px solid var(--mint); border-radius: 26px; padding: 34px 24px; text-align: center; }
.thanks:focus { outline: none; }

/* FAQ */
details { background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 0 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; }
details[open] { border-color: var(--yellow); }
details p { color: var(--muted); padding-bottom: 4px; }

/* フッター */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0; font-size: 0.88rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }
.logo-footer { font-size: 1rem; }
.by { font-family: var(--body); font-weight: 400; font-size: 0.8rem; color: var(--muted); }

/* 本文ページ（プライバシーポリシー） */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: 1.7rem; }
.doc h2 { font-size: 1.15rem; text-align: left; margin: 2em 0 0.6em; }
.doc ol, .doc ul { padding-left: 1.4em; }

@media (max-width: 820px) {
  .hero { padding: 32px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; }
  .pains, .features { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .deco-note { right: 8%; top: 4%; }
  .deco-star, .d3 { display: none; }
  .hero-video { max-width: 320px; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .signup { padding: 22px 16px; }
  .btn { width: 100%; text-align: center; }
  .btn-small { width: auto; }
  .parents { border-radius: 18px; }
  .deco-note, .d1 { display: none; }
  .hero-video { box-shadow: 6px 6px 0 var(--yellow); }
  .price-card { box-shadow: 6px 6px 0 var(--pink); }
}

/* 記事（ひな形） */
.article h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
.article h1 .sub { display: block; font-size: 0.55em; color: var(--muted); font-weight: 500; margin-top: 0.4em; }
.article h2 { border-left: 6px solid var(--yellow); padding-left: 12px; }
.crumb { font-size: 0.85rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.points li { margin-bottom: 14px; }
.template-box { position: relative; background: var(--surface); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--mint); padding: 56px 20px 20px; margin: 16px 0; }
.template-box pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--body); font-size: 0.95rem; line-height: 1.9; }
.copy-btn { position: absolute; top: 12px; right: 12px; }
.small { font-size: 0.85rem; color: var(--muted); }
.cta-box { background: var(--pink-soft); border-radius: 22px; padding: 28px 24px; margin-top: 48px; text-align: center; }
.cta-title { font-family: var(--heading); font-weight: 700; font-size: 1.25rem; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 560px) { .copy-btn { position: static; margin-bottom: 12px; width: auto; } .template-box { padding-top: 20px; } }
.more { margin-top: 28px; font-size: 0.95rem; }
