  :root {
    --bg: #f0ebe0;          /* 生成りの紙 */
    --surface: #faf7ef;     /* クリームの紙 */
    --surface-2: #ece5d7;
    --border: #ddd2bf;
    --text: #453c33;        /* クレヨンこげ茶 */
    --text-muted: #837567;
    --ink: #5c4a3d;
    --accent: #3f7f68;      /* 深いわかば */
    --coral: #e8705c;       /* クレヨンコーラル */
    --honey: #e5a63d;       /* はちみつ */
    --wakaba: #7fb8a4;
    --ame: #8fb8c9;
    --cheek: #f0a08c;
    --shadow: 0 1px 2px rgba(92, 74, 61, 0.1);
    --maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN W4", sans-serif;
    --daruma: "Darumadrop One", var(--maru);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  img.deco { pointer-events: none; user-select: none; }
  h1, h2, h3 { font-family: var(--maru); font-weight: 900; letter-spacing: 0.04em; line-height: 1.5; margin: 0; }
  p { margin: 0; }
  a { color: var(--accent); }

  .wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; position: relative; }

  /* ── ヘッダー ── */
  header.site {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 247, 239, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 2px solid var(--border);
  }
  header.site .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
  .brand img { height: 30px; display: block; }
  nav.main { display: flex; gap: 22px; margin-left: auto; font-family: var(--maru); font-weight: 700; font-size: 14.5px; }
  nav.main a { color: var(--ink); text-decoration: none; }
  nav.main a:hover { color: var(--coral); }

  /* ── ボタン（ピル型・押すと沈む） ── */
  .btn {
    display: inline-block; font-family: var(--maru); font-weight: 700;
    border-radius: 999px; padding: 12px 30px; font-size: 16px;
    text-decoration: none; border: 1.5px solid transparent;
    transition: transform 0.05s ease; cursor: pointer;
  }
  .btn:active { transform: translateY(1px); }
  .btn:focus-visible { outline: 3px solid rgba(232, 112, 92, 0.55); outline-offset: 2px; }
  .btn-primary { background: var(--accent); color: #fff; border-color: #35705b; box-shadow: var(--shadow); }
  .btn-primary:hover { background: #35705b; }
  .btn-ghost { background: var(--surface); color: var(--ink); border-color: #cdbfa6; }
  .btn-ghost:hover { border-color: var(--coral); color: var(--coral); }
  .btn-sm { padding: 8px 20px; font-size: 14px; }

  /* ── ヒーロー ── */
  .hero { position: relative; padding: 88px 0 140px; }
  .hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
  .eyebrow {
    display: inline-block; font-family: var(--maru); font-weight: 700; font-size: 13.5px;
    color: var(--ink); background: var(--surface); border: 1.5px solid var(--border);
    border-radius: 999px; padding: 4px 16px; margin-bottom: 20px;
  }
  .eyebrow b { color: var(--coral); }
  .hero h1 { font-size: clamp(34px, 5vw, 52px); color: var(--ink); }
  .hero h1 .stress { color: var(--coral); }
  .hero .lede { margin-top: 22px; font-size: 17px; color: var(--text); max-width: 34em; }
  .hero .cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
  .hero-note { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

  /* ヒーローの骨子モック */
  .mock {
    background: var(--surface); border: 2px solid var(--border); border-radius: 14px;
    box-shadow: 0 6px 0 rgba(92, 74, 61, 0.06), var(--shadow);
    padding: 22px 22px 18px; position: relative;
  }
  .mock .mock-title { font-family: var(--maru); font-weight: 700; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
  .block {
    background: #fff; border: 1.5px solid var(--border); border-radius: 12px;
    padding: 12px 14px; margin: 10px 0; position: relative;
  }
  .block.nested { margin-left: 34px; }
  .block .tag {
    display: inline-block; font-family: var(--maru); font-weight: 700; font-size: 11px;
    color: #fff; border-radius: 999px; padding: 1px 10px; margin-bottom: 4px;
  }
  .tag-shucho { background: var(--coral); }
  .tag-konkyo { background: var(--wakaba); }
  .tag-kadai { background: var(--ame); }
  .tag-kouka { background: var(--accent); }
  .tag-haikei { background: var(--honey); }
  .block b { display: block; font-size: 13.5px; color: var(--ink); line-height: 1.6; }
  .block small { color: var(--text-muted); font-size: 12px; line-height: 1.6; display: block; }
  .tsunagi {
    position: absolute; left: 16px; margin-top: -12px; width: 2px; height: 14px;
    border-left: 2px dashed #cdbfa6;
  }

  /* ── セクション共通 ── */
  section { position: relative; padding: 96px 0; }
  .sec-head { text-align: center; margin-bottom: 56px; position: relative; }
  .sec-head .kikker {
    font-family: var(--daruma); font-size: 18px; letter-spacing: 0.14em;
    color: var(--coral); display: block; margin-bottom: 8px;
  }
  .sec-head h2 { font-size: clamp(26px, 3.6vw, 36px); color: var(--ink); display: inline-block; position: relative; }
  .sec-head h2 .crayon-line {
    display: block; height: 10px; margin-top: 2px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="220" height="10" viewBox="0 0 220 10"><path d="M4 6 C 40 2, 80 9, 116 5 S 190 3, 216 6" fill="none" stroke="%23e5a63d" stroke-width="5" stroke-linecap="round" opacity="0.75"/></svg>') center / 100% 10px no-repeat;
  }
  .sec-lede { text-align: center; color: var(--text-muted); max-width: 40em; margin: -36px auto 56px; font-size: 16px; }

  .alt { background: var(--surface); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); }

  /* ── 課題カード ── */
  .cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .pain {
    background: var(--surface); border: 2px solid var(--border); border-radius: 14px;
    padding: 26px 24px; box-shadow: var(--shadow);
  }
  .alt .pain, .alt .feat { background: #fff; }
  .pain h3 { font-size: 18px; color: var(--ink); margin-bottom: 10px; }
  .pain p { font-size: 14.5px; color: var(--text-muted); }
  .pain .mark { font-family: var(--daruma); font-size: 26px; color: var(--ame); display: block; margin-bottom: 6px; }

  /* ── 3ステップ ── */
  .step { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 44px 0; }
  .step + .step { border-top: 2px dashed var(--border); }
  .step .num {
    font-family: var(--daruma); font-size: 44px; color: var(--coral); line-height: 1;
    display: inline-block; margin-bottom: 6px;
  }
  .step.s2 .num { color: var(--honey); }
  .step.s3 .num { color: var(--accent); }
  .step h3 { font-size: 24px; color: var(--ink); margin-bottom: 14px; }
  .step p { color: var(--text); font-size: 15.5px; }
  .step p + p { margin-top: 10px; }
  .step .visual { position: relative; }
  .step.visual-first .visual { order: -1; }
  .quotes { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
  .quote {
    font-family: var(--maru); font-weight: 700; font-size: 13.5px; color: var(--ink);
    background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px;
    padding: 6px 16px; width: fit-content;
  }
  .alt-card { background: #fff; }

  /* ブリーフのモック */
  .brief-row { display: flex; align-items: baseline; gap: 10px; margin: 12px 0; }
  .brief-row .q {
    flex: none; font-family: var(--maru); font-weight: 700; font-size: 12px; color: #fff;
    background: var(--wakaba); border-radius: 999px; padding: 2px 12px;
  }
  .brief-row .a { font-size: 13.5px; color: var(--ink); border-bottom: 2px dashed #cdbfa6; flex: 1; padding-bottom: 2px; }
  .brief-row.ghost .a { color: var(--text-muted); }
  .brief-row.ghost .q { background: var(--surface-2); color: var(--text-muted); }

  /* 構成のモック */
  .slide-row { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
  .slide-thumb {
    flex: none; width: 74px; height: 46px; background: #fff; border: 1.5px solid var(--border);
    border-radius: 6px; position: relative; overflow: hidden;
  }
  .slide-thumb::before { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 7px; border-radius: 3px; background: var(--surface-2); }
  .slide-thumb::after { content: ""; position: absolute; left: 8px; right: 22px; top: 21px; height: 5px; border-radius: 3px; background: var(--surface-2); }
  .slide-thumb.cover::before { top: 16px; height: 9px; background: var(--cheek); }
  .slide-thumb.cover::after { display: none; }
  .slide-row .meta b { display: block; font-size: 13px; color: var(--ink); line-height: 1.5; }
  .slide-row .meta small { font-size: 11.5px; color: var(--text-muted); }
  .role-chip {
    display: inline-block; font-family: var(--maru); font-weight: 700; font-size: 10.5px;
    color: var(--ink); background: var(--surface-2); border-radius: 999px; padding: 0 8px; margin-right: 6px;
  }

  /* ── 特徴 ── */
  .cards4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .feat {
    background: var(--surface); border: 2px solid var(--border); border-radius: 14px;
    padding: 26px 26px 24px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  }
  .feat h3 { font-size: 19px; color: var(--ink); margin-bottom: 10px; }
  .feat p { font-size: 14.5px; color: var(--text-muted); padding-right: 84px; }
  .feat .buddy { position: absolute; right: 14px; bottom: 10px; width: 72px; }

  /* ── できること（機能紹介） ── */
  .cap {
    background: var(--surface); border: 2px solid var(--border); border-radius: 14px;
    padding: 24px 22px 22px; box-shadow: var(--shadow);
  }
  .cap h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
  .cap p { font-size: 14.5px; color: var(--text-muted); }
  .anshin {
    margin-top: 22px; background: var(--surface); border: 2px solid var(--border);
    border-radius: 14px; padding: 18px 26px; box-shadow: var(--shadow);
  }
  .anshin .t {
    font-family: var(--maru); font-weight: 900; font-size: 14.5px; color: var(--accent);
    margin-right: 6px;
  }
  .anshin ul {
    list-style: none; margin: 6px 0 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 14px; color: var(--text-muted);
  }
  .anshin li::before { content: "✓ "; color: var(--wakaba); font-weight: 700; }

  /* ── おためし ── */
  .trial-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .tstep {
    background: var(--surface); border: 2px solid var(--border); border-radius: 14px;
    padding: 26px 24px; box-shadow: var(--shadow);
  }
  .tstep .tnum { font-family: var(--daruma); font-size: 32px; color: var(--coral); line-height: 1; display: block; margin-bottom: 8px; }
  .tstep:nth-child(2) .tnum { color: var(--honey); }
  .tstep:nth-child(3) .tnum { color: var(--accent); }
  .tstep h3 { font-size: 18px; color: var(--ink); margin-bottom: 10px; }
  .tstep p { font-size: 14.5px; color: var(--text-muted); }
  .trial-note {
    margin-top: 26px; background: var(--surface); border: 2px dashed #cdbfa6;
    border-radius: 14px; padding: 20px 26px;
  }
  .trial-note .t { font-family: var(--maru); font-weight: 900; font-size: 14.5px; color: var(--ink); }
  .trial-note ul { margin: 8px 0 0; padding-left: 1.3em; font-size: 14px; color: var(--text-muted); }
  .trial-note li + li { margin-top: 4px; }
  .trial-cta { text-align: center; margin-top: 32px; }

  /* ── ちがい比較 ── */
  .vs-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: var(--surface); border: 2px solid var(--border); border-radius: 14px; overflow: hidden;
    box-shadow: var(--shadow); font-size: 15px;
  }
  .vs-table th, .vs-table td { padding: 16px 20px; text-align: left; vertical-align: top; line-height: 1.7; }
  .vs-table thead th { font-family: var(--maru); font-weight: 900; font-size: 15.5px; background: var(--surface-2); color: var(--ink); }
  .vs-table thead th.storifo { background: var(--accent); color: #fff; }
  .vs-table tbody th { font-family: var(--maru); font-weight: 700; font-size: 13.5px; color: var(--text-muted); width: 8.5em; }
  .vs-table tbody tr + tr th, .vs-table tbody tr + tr td { border-top: 1.5px solid var(--border); }
  .vs-table td.storifo { background: rgba(127, 184, 164, 0.14); color: var(--ink); }
  .alt .vs-table { background: #fff; }
  .vs-note { text-align: center; color: var(--text-muted); font-size: 14px; margin-top: 22px; }

  /* ── CTA ── */
  .last-cta { text-align: center; padding: 110px 0 130px; }
  .last-cta h2 { font-size: clamp(28px, 4vw, 40px); color: var(--ink); }
  .last-cta p { margin: 18px auto 34px; color: var(--text-muted); max-width: 36em; }
  .last-cta .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
  .last-cta .hero-note { margin-top: 16px; }

  /* ── フッター ── */
  footer.site { background: var(--surface); border-top: 2px solid var(--border); padding: 48px 0 40px; }
  footer.site .cols { display: flex; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
  footer.site .brandcol img { height: 26px; }
  footer.site .brandcol p { font-size: 13px; color: var(--text-muted); margin-top: 12px; max-width: 26em; }
  footer.site h4 { font-family: var(--maru); font-size: 13.5px; color: var(--ink); margin: 0 0 10px; }
  footer.site ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
  footer.site li { margin: 6px 0; }
  footer.site a { color: var(--text-muted); text-decoration: none; }
  footer.site a:hover { color: var(--coral); }
  .copyright { margin-top: 36px; font-size: 12px; color: var(--text-muted); text-align: center; }

  /* ── 挿絵の配置（すみ・ふち・非干渉） ── */
  .deco { position: absolute; }
  @media (max-width: 860px) {
    .hero .wrap, .step { grid-template-columns: 1fr; }
    .step.visual-first .visual { order: 0; }
    .cards3, .cards4 { grid-template-columns: 1fr; }
    .deco.hide-sp { display: none; }
    /* モバイルはページ間リンク（.sp-keep）だけ残す */
    header.site .wrap { gap: 12px; }
    nav.main { gap: 12px; }
    nav.main a { display: none; white-space: nowrap; }
    nav.main a.sp-keep { display: inline; }
    .btn-sm { white-space: nowrap; padding: 8px 14px; }
    .feat p { padding-right: 70px; }
    .trial-steps { grid-template-columns: 1fr; }
    .vs-table { font-size: 13.5px; }
    .vs-table th, .vs-table td { padding: 12px 12px; }
    .vs-table tbody th { width: 6em; }
  }

/* ── サブページ共通（features.html / trial.html） ── */
.page-hero { padding: 72px 0 8px; text-align: center; position: relative; }
.page-hero .kikker {
  font-family: var(--daruma); font-size: 18px; letter-spacing: 0.14em;
  color: var(--coral); display: block; margin-bottom: 8px;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); color: var(--ink); }
.page-hero .lede { margin: 16px auto 0; color: var(--text-muted); max-width: 40em; font-size: 16px; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 30px auto 0; max-width: 940px; }
.toc a {
  font-family: var(--maru); font-weight: 700; font-size: 13.5px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px;
  padding: 6px 16px; text-decoration: none;
}
.toc a:hover { border-color: var(--coral); color: var(--coral); }
.chapter { padding: 72px 0; position: relative; }
.chapter .sec-head { margin-bottom: 40px; }
.cap ul { margin: 8px 0 0; padding-left: 1.2em; font-size: 13.5px; color: var(--text-muted); }
.cap ul li + li { margin-top: 3px; }
.cap .mini {
  display: inline-block; font-family: var(--maru); font-weight: 700; font-size: 11px;
  color: var(--ink); background: var(--surface-2); border-radius: 999px; padding: 1px 10px;
  margin: 0 4px 4px 0;
}
.chapter-cta { text-align: center; margin-top: 36px; }
.qa { max-width: 720px; margin: 0 auto; }
.qa dt {
  font-family: var(--maru); font-weight: 700; font-size: 15.5px; color: var(--ink);
  margin-top: 22px;
}
.qa dt::before { content: "Q. "; color: var(--coral); }
.qa dd { margin: 6px 0 0; font-size: 14.5px; color: var(--text-muted); }
.qa dd::before { content: "A. "; color: var(--accent); font-family: var(--maru); font-weight: 700; }
.page-cta { text-align: center; padding: 80px 0 100px; }
.page-cta h2 { font-size: clamp(24px, 3.4vw, 32px); color: var(--ink); margin-bottom: 26px; }

/* ── つかいどころ（案件別訴求）と深リンク ── */
.alt .cap, .alt .tstep, .alt .anshin, .alt .trial-note { background: #fff; }
.cap .scene {
  display: block; font-family: var(--maru); font-weight: 700; font-size: 12.5px;
  color: var(--text-muted); margin-bottom: 6px;
}
.cap .chips { margin-top: 10px; }
a.mini {
  display: inline-block; font-family: var(--maru); font-weight: 700; font-size: 11.5px;
  color: var(--ink); background: var(--surface-2); border-radius: 999px; padding: 2px 12px;
  margin: 0 6px 6px 0; text-decoration: none;
}
a.mini:hover { background: var(--wakaba); color: #fff; }
.cap .more {
  display: inline-block; margin-top: 10px; font-family: var(--maru); font-weight: 700;
  font-size: 12.5px; color: var(--accent); text-decoration: none;
}
.cap .more:hover { color: var(--coral); }
