:root {
    --ink: #1e3a34;
    --ink-deep: #18323A;
    --ink-soft: #4a655f;
    --cream: #faf8f2;
    --paper: #ffffff;
    --accent: #2e7d68;
    --accent-deep: #1f5c4c;
    --mint: #e7f3ee;
    --mint-line: #c4dfd4;
    --sand: #f1ede3;
    --line: #e2ddd0;
    --red: #c0392b;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    background: #e9e6de;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
    color: var(--ink);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
  }
  .deck { display: flex; flex-direction: column; align-items: center; gap: 36px; padding: 40px 16px 80px; }

  /* ---- page frame ---- */
  .page {
    position: relative;
    width: 1280px;
    min-height: 720px;
    background: var(--cream);
    border-radius: 6px;
    box-shadow: 0 10px 34px rgba(24, 50, 58, 0.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .page::before {
    content: "SAMPLE";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-22deg);
    font-size: 200px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: rgba(30, 58, 52, 0.05);
    pointer-events: none;
    white-space: nowrap;
    z-index: 5;
  }
  .page-body { flex: 1; position: relative; z-index: 1; display: flex; flex-direction: column; }
  .page-foot {
    position: relative; z-index: 6;
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 44px 14px;
    font-size: 11.5px; color: #8a9a90;
  }
  .page-foot .brand { font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; font-size: 14px; letter-spacing: 0.06em; color: var(--accent-deep); }
  .page-foot .brand span { font-family: inherit; }
  .pno { background: var(--mint); color: var(--accent-deep); border-radius: 999px; padding: 2px 12px; font-weight: 600; }

  .sample-chip {
    position: absolute; top: 20px; right: 20px; z-index: 7;
    background: var(--ink-deep); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
    padding: 4px 14px; border-radius: 999px; opacity: 0.85;
  }

  h2.ptitle {
    font-size: 34px; line-height: 1.4; color: var(--ink-deep);
    font-weight: 700; margin-bottom: 14px;
  }
  .plead { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 22px; }
  .plead strong { color: var(--ink-deep); }

  /* ---- cover / TOC ---- */
  .cover .page-body { padding: 44px 52px 0; }
  .intro .page-body { padding: 40px 60px 20px; justify-content: center; }
  .intro-head {
    margin-bottom: 26px; padding-bottom: 18px; border-bottom: 2px solid var(--ink-deep);
    display: flex; justify-content: space-between; align-items: flex-end; gap: 30px;
  }
  .intro-head .titleblock { flex: 1; }
  .intro-head .brandline { font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; letter-spacing: 0.1em; color: var(--accent-deep); margin-bottom: 10px; }
  .intro-head h1 { font-size: 46px; letter-spacing: 0.02em; color: var(--ink-deep); line-height: 1.25; margin-bottom: 10px; }
  .intro-head h1 .tag {
    display: inline-block; vertical-align: middle; margin-left: 16px;
    background: var(--accent); color: #fff; font-size: 15px; font-weight: 700;
    letter-spacing: 0.14em; border-radius: 6px; padding: 4px 14px; transform: translateY(-6px);
  }
  .intro-head .sub { font-size: 16px; color: var(--ink-soft); }
  .intro-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 34px; align-items: start; }
  .intro-lead { font-size: 15px; color: var(--ink); margin-bottom: 16px; line-height: 1.9; }
  .intro-lead strong { color: var(--accent-deep); }
  .spec { border-top: 1px solid var(--line); }
  .spec .row { display: flex; gap: 16px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
  .spec .row .k { flex: 0 0 96px; font-weight: 700; color: var(--accent-deep); font-size: 12.5px; padding-top: 1px; }
  .spec .row .v { flex: 1; color: var(--ink); }
  .spec .row .v b { font-weight: 700; }
  .spec .row .v .note { display: block; font-size: 11.5px; color: #8a9a90; margin-top: 2px; }
  .intro-note {
    background: var(--sand); border-radius: 10px; padding: 12px 20px; margin-top: 18px;
    font-size: 12px; color: var(--ink-soft); line-height: 1.75;
  }
  .intro-note .t {
    font-weight: 700; color: var(--ink-deep); font-size: 12.5px;
    margin-right: 10px; padding-right: 10px; border-right: 1px solid #d5cdba;
  }
  .videos {
    background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
    padding: 15px 20px 16px; margin-bottom: 14px;
  }
  .videos .t { font-size: 13px; font-weight: 700; color: var(--ink-deep); margin-bottom: 3px; }
  .videos .lead { font-size: 11.5px; color: #8a9a90; margin-bottom: 10px; }
  .vrow {
    display: flex; align-items: center; gap: 11px; padding: 8px 0;
    border-top: 1px solid var(--line); text-decoration: none; color: inherit;
  }
  .vrow .play {
    flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--accent);
    display: flex; align-items: center; justify-content: center;
  }
  .vrow .play svg { width: 11px; height: 11px; fill: #fff; margin-left: 2px; }
  .vrow .meta { flex: 1; }
  .vrow .name { display: block; font-size: 13px; font-weight: 700; color: var(--ink-deep); }
  .vrow .url { display: block; font-size: 11px; color: #8a9a90; }
  .vrow .len { font-size: 11.5px; color: var(--accent-deep); font-weight: 700; white-space: nowrap; }
  .videos .vnote { font-size: 10.5px; color: #97a69c; line-height: 1.6; margin-top: 9px; border-top: 1px solid var(--line); padding-top: 8px; }
  .pagecount { flex: 0 0 auto; text-align: right; padding-bottom: 2px; }
  .pagecount .big { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
  .pagecount .big b { font-size: 34px; color: var(--accent-deep); font-weight: 800; line-height: 1.1; }
  .pagecount .varnote { font-size: 11px; color: #7e948b; margin-top: 2px; }
  .cover-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid var(--ink-deep); padding-bottom: 18px; margin-bottom: 20px; }
  .cover-head .brandline { font-family: "Cormorant Garamond", Georgia, serif; font-size: 17px; letter-spacing: 0.1em; color: var(--accent-deep); margin-bottom: 6px; }
  .cover-head h1 { font-size: 40px; letter-spacing: 0.02em; color: var(--ink-deep); line-height: 1.3; }
  .cover-head h1 .tag {
    display: inline-block; vertical-align: middle; margin-left: 14px;
    background: var(--accent); color: #fff; font-size: 14px; font-weight: 700;
    letter-spacing: 0.14em; border-radius: 6px; padding: 3px 12px; transform: translateY(-4px);
  }
  .cover-stats { text-align: right; }
  .cover-stats .big { font-size: 15px; color: var(--ink-soft); }
  .cover-stats .big b { font-size: 34px; color: var(--accent-deep); font-weight: 800; }
  .cover-stats .varnote { font-size: 11px; color: #93a198; margin-top: 2px; }
  .cover-note { font-size: 12.5px; color: #86948b; margin-bottom: 12px; }
  .case-band {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 0;
    background: var(--mint); border: 1px solid var(--mint-line); border-radius: 8px;
    padding: 9px 18px; margin-bottom: 16px; font-size: 13px; color: var(--ink);
  }
  .case-band .cell { display: flex; align-items: baseline; gap: 8px; }
  .case-band .cell + .cell { border-left: 1px solid var(--mint-line); margin-left: 16px; padding-left: 16px; }
  .case-band .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent-deep); white-space: nowrap; }
  .case-band b { font-weight: 700; }
  .toc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 30px; }
  .toc-group { margin-bottom: 14px; break-inside: avoid; }
  .toc-group .g {
    font-size: 12.5px; font-weight: 700; color: var(--accent-deep);
    border-left: 4px solid var(--accent); padding-left: 8px; margin-bottom: 6px;
    letter-spacing: 0.04em;
  }
  .toc ol { list-style: none; }
  .toc li {
    display: flex; gap: 8px; align-items: baseline;
    font-size: 12px; line-height: 1.5; padding: 2.5px 0;
    border-bottom: 1px dotted #ddd8ca; color: var(--ink-soft);
  }
  .toc li .n { flex: 0 0 22px; text-align: right; font-weight: 700; color: #a8b4aa; font-size: 11px; }
  .toc li.pick { color: var(--ink-deep); font-weight: 700; }
  .toc li.pick .n { color: var(--accent); }
  .toc li.pick::after { content: "★"; color: var(--accent); margin-left: auto; font-size: 11px; }
  .toc-legend { margin-top: 6px; font-size: 11.5px; color: #86948b; }
  .toc-legend b { color: var(--accent-deep); }

  /* ---- summary page ---- */
  .pad { padding: 46px 52px 0; }
  .pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
  .pillar { background: var(--sand); border-radius: 10px; padding: 20px 22px; }
  .pillar .ic {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent-deep); display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
  }
  .pillar .ic svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .pillar h3 { font-size: 17px; margin-bottom: 8px; color: var(--ink-deep); }
  .pillar p { font-size: 13.5px; color: var(--ink-soft); }
  .sos-bridge { font-size: 15px; margin-bottom: 14px; }
  .sos-bridge strong { color: var(--accent-deep); }
  .sos-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
  .sos {
    background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent-deep);
    border-radius: 8px; padding: 18px 20px 14px; text-align: center; position: relative;
  }
  .sos .num {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    width: 30px; height: 30px; border-radius: 50%; background: var(--accent-deep); color: #fff;
    font-weight: 700; font-size: 14px; line-height: 30px;
  }
  .sos h4 { font-size: 17px; margin: 6px 0 4px; color: var(--ink-deep); }
  .sos p { font-size: 13.5px; color: var(--ink-soft); }
  .closing { font-size: 15.5px; color: var(--ink-deep); }
  .closing b { border-bottom: 3px solid var(--mint-line); }

  /* ---- split layouts ---- */
  .split { flex: 1; display: flex; flex-direction: row; }
  .split .txt { flex: 1.25; padding: 46px 44px 0 52px; }
  .split .art { flex: 1; position: relative; min-height: 100%; }
  .split .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .split.rev .art { order: 0; }
  .split.rev .txt { order: 1; padding: 46px 52px 0 44px; }

  /* ---- structure page ---- */
  .steps3 { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
  .step3 {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px;
  }
  .step3 .n {
    flex: 0 0 40px; height: 40px; border-radius: 8px; background: var(--sand);
    color: var(--accent-deep); font-weight: 800; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
  }
  .step3 h3 { font-size: 18px; color: var(--ink-deep); margin-bottom: 4px; }
  .step3 p { font-size: 13.5px; color: var(--ink-soft); }

  /* ---- lipid page ---- */
  .timeline { position: relative; margin: 10px 0 20px 10px; padding-left: 26px; }
  .timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--mint-line); }
  .tl-item { position: relative; margin-bottom: 16px; }
  .tl-item::before {
    content: ""; position: absolute; left: -26px; top: 5px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--cream); border: 3px solid var(--accent);
  }
  .tl-item .when { font-size: 12.5px; font-weight: 700; color: #8a9a90; letter-spacing: 0.04em; }
  .tl-item .val { font-size: 19px; font-weight: 700; color: var(--ink-deep); }
  .tl-item.alert .val { color: var(--red); }
  .tl-item.alert::before { border-color: var(--red); }
  .tl-item .val small { font-size: 12.5px; font-weight: 600; }
  .databox {
    background: var(--mint); border: 1px solid var(--mint-line); border-radius: 10px;
    padding: 14px 20px; font-size: 13.5px; margin-bottom: 16px;
  }
  .databox .t { font-weight: 700; color: var(--accent-deep); margin-bottom: 4px; }
  .databox .ratio { font-weight: 700; color: var(--ink-deep); }
  .fine { font-size: 11.5px; color: #93a198; }

  /* ---- minerals page ---- */
  .nutrient { margin-bottom: 18px; }
  .nutrient .head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
  .nutrient .head .dot {
    width: 34px; height: 34px; border-radius: 50%; background: var(--mint);
    display: flex; align-items: center; justify-content: center;
  }
  .nutrient .head .dot svg { width: 18px; height: 18px; stroke: var(--accent-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .nutrient .head h3 { font-size: 19px; color: var(--ink-deep); }
  .nutrient p { font-size: 13.8px; color: var(--ink-soft); }
  .nutrient p b { color: var(--ink-deep); }
  .notebox {
    background: var(--mint); border-radius: 8px; padding: 12px 18px;
    font-size: 13px; color: var(--accent-deep);
  }

  /* ---- cause list (symptom → nutrition) ---- */
  .cause { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
  .cause .no {
    flex: 0 0 30px; height: 30px; border-radius: 6px; background: var(--accent-deep); color: #fff;
    font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center;
  }
  .cause h3 { font-size: 17px; color: var(--ink-deep); margin-bottom: 2px; }
  .cause p { font-size: 13.5px; color: var(--ink-soft); }

  /* ---- protein page ---- */
  .protein .page-body { justify-content: center; }
  .protein .bgphoto {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.16; z-index: 0;
  }
  .dayplan { margin-bottom: 14px; }
  .dayplan .dp-head { font-size: 14px; color: var(--ink-deep); margin-bottom: 10px; }
  .dayplan .dp-head b { color: var(--accent-deep); }
  .dp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 10px; }
  .meal {
    background: rgba(255,255,255,0.86); border: 1px solid var(--line);
    border-top: 4px solid var(--accent); border-radius: 8px; padding: 12px 16px; text-align: center;
  }
  .meal .when { font-size: 15px; font-weight: 700; color: var(--accent-deep); }
  .meal .amt { font-size: 17px; font-weight: 800; color: var(--ink-deep); margin-bottom: 4px; }
  .meal p { font-size: 12.8px; color: var(--ink-soft); }
  .dp-total { font-size: 15px; font-weight: 700; color: var(--ink-deep); text-align: right; }

  /* ---- closing CTA page ---- */
  .cta-page { background: var(--ink-deep); }
  .cta-page::before { color: rgba(255,255,255,0.045); }
  .cta-page .page-body { padding: 56px 72px 0; justify-content: center; color: #eaf3f0; }
  .cta-page .eyebrow {
    font-size: 12px; letter-spacing: 0.18em; color: #8fb8ac; margin-bottom: 14px;
  }
  .cta-page h2 { font-size: 33px; line-height: 1.45; color: #ffffff; margin-bottom: 16px; }
  .cta-page h2 em { font-style: normal; color: #7fd0b4; }
  .cta-page .body { font-size: 15px; color: #c3d8d2; max-width: 780px; margin-bottom: 26px; }
  .ladder { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 18px; }
  .rung {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px; padding: 20px 22px 22px; display: flex; flex-direction: column;
  }
  .rung.primary { background: rgba(126,208,180,0.11); border-color: rgba(126,208,180,0.42); }
  .rung .step { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: #7fd0b4; margin-bottom: 8px; }
  .rung h3 { font-size: 18px; color: #fff; line-height: 1.4; margin-bottom: 8px; }
  .rung p { font-size: 12.8px; color: #b3cdc6; flex: 1; margin-bottom: 14px; }
  .rung .price { font-size: 12px; color: #8fb8ac; margin-bottom: 10px; }
  .cta-btn {
    display: block; text-align: center; background: rgba(255,255,255,0.1); color: #eaf3f0;
    border: 1px solid rgba(255,255,255,0.3); font-weight: 700; font-size: 14.5px;
    border-radius: 8px; padding: 11px 16px; text-decoration: none;
  }
  .rung.primary .cta-btn { background: #2e9d7e; border-color: #2e9d7e; color: #fff; }
  .cta-url { display: block; font-size: 11px; color: #7fa298; margin-top: 7px; text-align: center; word-break: break-all; }
  .cta-foot { font-size: 12.5px; color: #93b3aa; max-width: 900px; }
  .cta-page .page-foot { color: #7e9a93; }
  .cta-page .page-foot .brand { color: #8fb8ac; }

  @media (max-width: 1320px) {
    .page { width: 96vw; min-height: calc(96vw * 0.5625); }
    .page::before { font-size: 15vw; }
  }
  @page { size: 1280px 720px; margin: 0; }
  @media print {
    body { background: none; }
    .deck { padding: 0; gap: 0; display: block; }
    .page {
      width: 1280px; min-height: 720px; height: 720px;
      box-shadow: none; border-radius: 0; page-break-after: always; overflow: hidden;
    }
    .page:last-child { page-break-after: auto; }
  }

.cta-aux { font-size: 12.5px; color: #93b3aa; margin-bottom: 14px; }
.cta-aux a { color: #bfe0d6; }
.sample-xnav { color: #7f958d; }
