:root {
  --paper: #F5F6F1;
  --paper-2: #ECEEE5;
  --ink: #262A20;
  --ink-soft: #545A4A;
  --olive: #B1A887;     /* ロゴ色。装飾専用（文字には使わない） */
  --moss: #4F5639;      /* リンク・ボタン */
  --line: #D6D8CA;
  --navy: #1C2747;      /* 商品エリアのみ */
  --navy-2: #26335A;
  --gold: #D2B46B;
  --white: #FFFFFF;

  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --hand: "Klee One", "Zen Kaku Gothic New", serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
}
h1, h2, h3, .about-text p:first-child, .hero-lead, .product-desc, .contact-card p { word-break: auto-phrase; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); text-underline-offset: .25em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand span { font-weight: 700; font-size: 19px; letter-spacing: .06em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--moss); text-decoration: underline; }
.nav .btn-sm { color: var(--white); }
.btn-sm {
  background: var(--moss); color: var(--white); text-decoration: none;
  padding: 8px 18px; border-radius: 999px; font-size: 14px;
}
.btn-sm:hover { background: var(--ink); color: var(--white); }
.menu-toggle { display: none; }

@media (max-width: 760px) {
  .menu-toggle {
    display: block; margin-left: auto; background: none; border: 1px solid var(--line);
    border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 14px; color: var(--ink);
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .btn-sm { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 12vw, 150px) 0 clamp(72px, 10vw, 128px); }
.hero-mark {
  position: absolute; right: max(-80px, calc(50% - 720px)); top: 50%;
  width: min(520px, 55vw); transform: translateY(-50%);
  opacity: .22; pointer-events: none;
}
.hero h1 {
  position: relative; margin: 0;
  font-weight: 700; font-size: clamp(32px, 6.4vw, 76px);
  line-height: 1.32; letter-spacing: .02em;
}
.hero h1 .line { display: block; }
.hero h1 .line > span { display: inline-block; }  /* 狭い画面では句の切れ目で折り返す */
.blank {
  position: relative; margin: clamp(40px, 6vw, 64px) 0 0;
  font-size: clamp(18px, 2.4vw, 26px); line-height: 1.6; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .3em .5em;
}
.blank-field {
  display: inline-block; width: 15.5em; max-width: 100%;
  border-bottom: 2px solid var(--olive);
  padding: 0 .3em .05em; min-height: 1.6em;
  font-family: var(--hand); font-weight: 600; color: var(--ink);
  font-size: 1.15em;
}
.caret {
  display: inline-block; width: 2px; height: 1em; margin-left: 2px;
  background: var(--moss); vertical-align: -0.12em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 360px) { .blank-field { font-size: 1em; } }
@media (prefers-reduced-motion: reduce) { .caret { display: none; } }
.hero-lead { position: relative; max-width: 34em; margin: 28px 0 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 220px 1fr; gap: 24px 48px; }
.section h2 {
  margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .1em; line-height: 1.5;
}
.section h2 small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); letter-spacing: .06em; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

.about-text { max-width: 36em; font-size: 17px; }
.about-text p { margin: 0 0 1.2em; }
.about-text p:first-child { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; line-height: 1.7; letter-spacing: .04em; }

/* ---------- product (navy) ---------- */
.product { background: var(--navy); color: #E9ECF4; border-top: 0; }
.product h2 { color: var(--white); }
.product h2 small { color: #AEB6CC; }
.product-body { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; margin-top: 56px; }
.pack { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .45)) drop-shadow(0 24px 40px rgba(0, 0, 0, .4)); }
.product-name { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--white); letter-spacing: .08em; line-height: 1.4; }
.product-name span { display: block; font-size: 14px; font-weight: 500; color: var(--gold); letter-spacing: .14em; }
.product-desc { margin: 16px 0 36px; max-width: 32em; }
@media (max-width: 760px) {
  .product-body { grid-template-columns: 1fr; }
  .pack { max-width: 200px; margin: 0 auto; }
}

/* 規格書ふうの表 */
.spec { margin: 0; border-top: 2px solid var(--gold); }
.spec-title { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: #AEB6CC; padding: 10px 0; border-bottom: 1px solid #3A4670; }
.spec div.row { display: grid; grid-template-columns: 10em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid #3A4670; }
.spec dt { color: #AEB6CC; font-size: 14px; }
.spec dd { margin: 0; color: var(--white); }
.spec dd b { color: var(--gold); font-weight: 700; font-size: 1.1em; }
@media (max-width: 520px) { .spec div.row { grid-template-columns: 1fr; gap: 2px; } }
.note { font-size: 12px; color: #9AA3BC; margin: 12px 0 0; line-height: 1.7; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 28px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #E2C885; color: var(--navy); }
.btn-ghost { border: 1px solid #6D7799; color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.product :focus-visible { outline-color: var(--gold); }

/* ---------- news ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--ink-soft); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 2px; }
@media (max-width: 520px) { .news-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- company ---------- */
.company { margin: 0; border-top: 1px solid var(--line); }
.company div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.company dt { color: var(--ink-soft); font-size: 14px; padding-top: 2px; }
.company dd { margin: 0; }
.company ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 520px) { .company div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 28px;
}
.contact-card h3 { margin: 0 0 6px; font-size: 17px; }
.contact-card p { margin: 0 0 20px; color: var(--ink-soft); font-size: 15px; }
.btn-moss { background: var(--moss); color: var(--white); }
.btn-moss:hover { background: var(--ink); color: var(--white); }
.tel { margin-top: 28px; color: var(--ink-soft); font-size: 15px; }
.tel a { font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .06em; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-2); padding: 40px 0; font-size: 13px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.site-footer .brand span { font-size: 16px; }

/* ---------- product detail page ---------- */
.page-hero { background: var(--navy); color: #E9ECF4; padding: clamp(48px, 8vw, 96px) 0; }
.crumb { font-size: 13px; margin: 0 0 32px; color: #AEB6CC; }
.crumb a { color: #AEB6CC; }
.crumb a:hover { color: var(--white); }
.prose { max-width: 38em; }
.prose h3 { font-size: 18px; margin: 2.2em 0 .6em; }
.prose p { margin: 0 0 1.2em; }

/* ---------- headings used as page titles ---------- */
.h2-like { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .1em; line-height: 1.5; }
.hint { font-size: 13px; color: var(--ink-soft); margin: 6px 0 0; }
.site-footer small a { color: var(--ink-soft); }

/* ---------- contact form ---------- */
.form-lead { margin: 0 0 32px; color: var(--ink-soft); }
.req-mark {
  display: inline-block; font-size: 11px; font-weight: 700; line-height: 1;
  padding: 4px 6px; border-radius: 3px; background: var(--moss); color: var(--white);
  vertical-align: .15em; letter-spacing: .04em;
}
.form { max-width: 40em; }
.field { margin: 0 0 28px; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid #BFC2B0; border-radius: 6px; padding: 12px 14px;
}
.field textarea { resize: vertical; line-height: 1.8; }
.field input:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--moss) 35%, transparent); outline-offset: 0; border-color: var(--moss); }
[aria-invalid=true] { border-color: #A33A2A !important; }
.field-error { margin: 6px 0 0; color: #A33A2A; font-size: 14px; }
.form-alert { background: #F6E7E3; border-left: 4px solid #A33A2A; padding: 14px 18px; margin: 0 0 32px; border-radius: 0 6px 6px 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; padding: 10px 18px; border: 1px solid #BFC2B0; border-radius: 999px; background: var(--white); font-size: 15px; }
.choice input:checked + span { background: var(--moss); border-color: var(--moss); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--moss); outline-offset: 3px; }
.agree { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; }
.agree input { width: 20px; height: 20px; accent-color: var(--moss); }
.btn-submit { border: 0; cursor: pointer; font-family: inherit; min-width: 220px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { max-width: 36em; }
.done-title { font-size: 22px; font-weight: 700; margin: 0 0 16px; }

/* ---------- product lineup (2商品以上) ---------- */
.lineup { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.lineup > li { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px); padding: 44px 0; border-bottom: 1px solid var(--line); }
.thumb { background: var(--c, var(--paper-2)); border-radius: 6px; aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 28px; }
.thumb img { max-height: 100%; width: auto; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .3)); }
.thumb .ph { width: 62%; aspect-ratio: 3 / 5; border: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 10px; display: grid; place-items: center; text-align: center; font-size: 12px; color: var(--ink-soft); line-height: 1.6; }
.lineup .cat { margin: 0 0 4px; font-size: 13px; color: var(--ink-soft); }
.lineup h3 { margin: 0; font-size: clamp(24px, 3vw, 30px); letter-spacing: .08em; line-height: 1.4; }
.lineup h3 a { color: inherit; text-decoration: none; }
.lineup h3 a:hover { text-decoration: underline; }
.lineup .desc { margin: 12px 0 24px; max-width: 34em; }
.mini-spec { margin: 0; border-top: 2px solid var(--c, var(--olive)); max-width: 34em; }
.mini-spec div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mini-spec dt { color: var(--ink-soft); font-size: 13px; padding-top: 2px; }
.mini-spec dd { margin: 0; }
.lineup .actions { margin-top: 24px; }
.btn-line { border: 1px solid var(--moss); color: var(--moss); }
.btn-line:hover { background: var(--moss); color: var(--white); }
.soon { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); margin-left: 8px; vertical-align: .3em; letter-spacing: .04em; }
@media (max-width: 760px) {
  .lineup > li { grid-template-columns: 1fr; }
  .thumb { max-width: 260px; aspect-ratio: 1; }
}
@media (max-width: 520px) { .mini-spec div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- イムノリン解説ページ（ingredients/immunolin.html） ---------- */
.ing-hero h1 { margin: 0; font-size: clamp(30px, 5.4vw, 46px); line-height: 1.4; letter-spacing: .08em; color: var(--white); }
.ing-hero h1 small { display: block; margin-top: .5em; font-size: .46em; letter-spacing: .1em; color: var(--gold); }
.ing-hero .lead { max-width: 38em; margin: 24px 0 0; }
.ing-facts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.ing-facts li { background: var(--navy-2); padding: 14px 16px; display: grid; gap: 2px; min-width: 0; }
.ing-facts span { font-size: 12px; color: #AEB6CC; }
.ing-facts b { font-size: 17px; color: var(--white); }
@media (max-width: 760px) { .ing-facts { grid-template-columns: repeat(2, 1fr); } }
.ing-note { margin: 14px 0 0; font-size: 12px; color: #AEB6CC; }
.ing-steps { list-style: none; counter-reset: s; margin: 0 0 1.2em; padding: 0; display: grid; gap: 10px; }
.ing-steps li { counter-increment: s; background: var(--white); border: 1px solid var(--line); padding: 12px 16px 12px 52px; position: relative; display: grid; }
.ing-steps li::before { content: counter(s); position: absolute; left: 16px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--moss); color: var(--white); font-size: 13px; display: grid; place-items: center; line-height: 1; }
.ing-steps span { font-size: 14px; color: var(--ink-soft); }
.ing-callout { background: var(--paper-2); border-left: 3px solid var(--olive); padding: 14px 18px; font-size: 15px; }
.ing-callout b { display: block; }
.ing-faq { border-top: 1px solid var(--line); max-width: 44em; }
.ing-faq details { border-bottom: 1px solid var(--line); }
.ing-faq summary { cursor: pointer; list-style: none; padding: 14px 36px 14px 0; font-weight: 700; position: relative; }
.ing-faq summary::-webkit-details-marker { display: none; }
.ing-faq summary::before { content: "Q"; color: var(--moss); margin-right: 10px; }
.ing-faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; color: var(--moss); font-size: 20px; }
.ing-faq details[open] summary::after { content: "−"; }
.ing-faq details p { margin: 0; padding: 0 0 16px 26px; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .4em; }
