/* デザイン案05「小さな体に、毎日の乳酸菌。」 博物図鑑・フィールドノート。refs #1379 */
:root {
  --paper: #fbfcf9;      /* 紙の白 */
  --ink: #24352b;        /* 墨緑（本文） */
  --ink-soft: #4b5c52;   /* 補足の文字 */
  --leaf: #8db255;       /* 若草（線・飾り） */
  --leaf-deep: #3f6420;  /* 若草の濃いところ（文字・リンク） */
  --sky: #bcd9ea;        /* 空色（方眼・飾り） */
  --sky-deep: #275a80;   /* 空色の濃いところ（ボタン） */
  --wash-sky: #edf5fa;
  --wash-leaf: #f1f6e8;
  --rule: #c9d4cb;
  --hand: 'Klee One', 'BIZ UDPGothic', sans-serif;
  --body: 'BIZ UDPGothic', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.85;
  line-break: strict; word-break: keep-all; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-deep); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { top: 12px; }
.illus { mix-blend-mode: multiply; }
/* Klee One はかなが全角幅なので、プロポーショナル詰めで手書きのノートらしく */
.mark-name, .hero-title, .label dt, .sec-head h2, .idx-label, .idx-btn, .sp-name, .sp-count, .sp-cols, .amt, .price,
.leaf-name, .leaf-note h3, .birdcare-text h3, .note-text h3, .what h3, .shelf-head h3, .chips-t, .ht-t,
.specimen figcaption, .step-n, .years .y, .contact h2, .tel, .hero-plate figcaption { font-feature-settings: "palt" 1; }
/* 水彩の白地を紙になじませる（multiply は背景色を持つ親の上で効く） */
.hero, .kotori, .goods { background-color: var(--paper); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px;
  border-radius: 6px; font-weight: 700; text-decoration: none; font-size: 15px; line-height: 1.4;
}
.btn-sky { background: var(--sky-deep); color: #fff; }
.btn-sky:hover { background: #1d4766; }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); background: var(--paper); }
.btn-line:hover { background: var(--wash-leaf); }

/* ---------- ヘッダー ---------- */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 14px 0; flex-wrap: wrap; }
.mark { display: flex; align-items: baseline; gap: 14px; text-decoration: none; color: var(--ink); flex-wrap: wrap; }
.mark-name { font-family: var(--hand); font-weight: 600; font-size: 28px; color: var(--leaf-deep); letter-spacing: .02em; line-height: 1.2; }
.mark-sub { font-size: 13px; color: var(--ink-soft); }
.gnav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; }
.gnav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.gnav a:hover { border-bottom-color: var(--leaf); }

/* ---------- ヒーロー ---------- */
.hero { padding: 40px 0 56px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; }
.hero-title { font-family: var(--hand); font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.4; letter-spacing: .03em; color: var(--ink); }
.hero-lead { margin-top: 18px; font-size: 17px; max-width: 30em; }
.hero-lead + .hero-lead { margin-top: 6px; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-plate { margin: 0; }
.hero-plate img { mix-blend-mode: multiply; width: 100%; }
.hero-plate figcaption, .birdcare-fig figcaption { font-family: var(--hand); font-size: 14px; color: var(--ink-soft); text-align: right; margin-top: 4px; }

/* 標本ラベル */
.label { margin: 32px 0 0; border: 3px double var(--ink); background: #fff; padding: 6px 16px; max-width: 30em; }
.label > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--rule); }
.label > div:last-child { border-bottom: 0; }
.label dt { font-family: var(--hand); font-size: 14px; color: var(--ink-soft); }
.label dd { margin: 0; font-size: 15px; line-height: 1.6; }

/* ---------- 見出し ---------- */
.sec-head { max-width: 46em; margin-bottom: 32px; }
.sec-head h2 { font-family: var(--hand); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.45; letter-spacing: .03em; }
.sec-head p { margin-top: 12px; color: var(--ink-soft); }

/* ---------- 図鑑 ---------- */
.zukan { position: relative; background: var(--wash-sky); padding: 72px 0 80px; }
.zukan::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--sky) 1px, transparent 1px), linear-gradient(90deg, var(--sky) 1px, transparent 1px);
  background-size: 24px 24px;
}
.zukan > .wrap { position: relative; }
.zukan-body { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 36px; align-items: start; }
.zukan-index { position: sticky; top: 16px; }
.idx-label { font-family: var(--hand); font-size: 15px; color: var(--leaf-deep); margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.idx-label::after { content: ""; flex: 1; height: 1px; background: var(--leaf); }
.idx-list + .idx-label { margin-top: 18px; }
.idx-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.idx-btn {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; min-height: 56px;
  background: #fff; border: 1px solid var(--rule); border-radius: 30px; cursor: pointer;
  font-family: var(--hand); font-weight: 600; font-size: 16px; color: var(--ink); text-align: left; line-height: 1.3;
}
.idx-btn img { width: 48px; height: 48px; border-radius: 50%; background: #fff; flex: none; }
.idx-btn:hover { border-color: var(--leaf); }
.idx-btn[aria-pressed="true"] { border: 2px solid var(--sky-deep); color: var(--sky-deep); background: #fff; padding: 3px 9px 3px 3px; }

.sp-page { background: #fff; border: 1px solid var(--rule); padding: 28px 28px 12px; }
.sp-page + .sp-page { margin-top: 24px; }
.sp-head { display: flex; gap: 24px; align-items: center; padding-bottom: 18px; border-bottom: 3px double var(--ink); }
.sp-fig { width: 150px; height: 150px; flex: none; }
.sp-name { font-family: var(--hand); font-size: 2.4rem; line-height: 1.3; }
.sp-count { font-family: var(--hand); color: var(--leaf-deep); font-size: 17px; margin-top: 4px; }
.sp-tip { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.sp-cols { display: grid; grid-template-columns: 84px minmax(0, 1fr) 210px 168px; gap: 16px; padding: 10px 0 6px; font-family: var(--hand); font-size: 13px; color: var(--ink-soft); border-bottom: 1px solid var(--rule); }
.sp-cols span:first-child { grid-column: 1 / 3; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 210px 168px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--rule); }
.row:last-child { border-bottom: 0; }
.row-ph img { width: 84px; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--rule); }
.row-series { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.row-name h4 { font-size: 15px; font-weight: 700; line-height: 1.55; }
.row-name h4 a { color: var(--ink); }
.row-memo { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin-top: 2px; }
.row-amt { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.amt { font-family: var(--hand); font-weight: 600; font-size: 1.45rem; color: var(--leaf-deep); line-height: 1.35; }
.per { font-size: 12px; border: 1px solid var(--leaf-deep); color: var(--leaf-deep); border-radius: 3px; padding: 0 5px; line-height: 1.6; }
.row-buy { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.row-buy .price { font-size: 15px; }

/* ---------- 価格・購入 ---------- */
.price { font-family: var(--hand); font-weight: 600; font-size: 1.25rem; line-height: 1.3; }
.tax { font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--ink-soft); margin-left: 2px; }
.buy {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px;
  background: var(--sky-deep); color: #fff; border-radius: 6px; font-weight: 700; font-size: 14px; text-decoration: none; line-height: 1.4;
}
.buy:hover { background: #1d4766; }
.buy-s { min-height: 40px; padding: 6px 12px; font-size: 13.5px; }
.ask { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- 小鳥 ---------- */
.kotori { padding: 88px 0 72px; }
.leaves { display: grid; grid-template-columns: 1fr 1fr minmax(0, .9fr); gap: 32px; align-items: end; }
.leaf { margin: 0; }
.leaf img { mix-blend-mode: multiply; width: 100%; max-width: 340px; margin-inline: auto; }
.leaf figcaption { border-top: 3px double var(--ink); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.leaf-name { font-family: var(--hand); font-weight: 600; font-size: 1.7rem; line-height: 1.4; }
.leaf-goods { font-size: 15px; }
.leaf-note { border: 1px solid var(--rule); background: var(--wash-leaf); padding: 20px 22px; align-self: center; }
.leaf-note h3, .birdcare-text h3, .note-text h3, .what h3 { font-family: var(--hand); font-size: 1.35rem; line-height: 1.5; }
.leaf-note p { margin-top: 8px; font-size: 15px; }
.birdcare { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; margin-top: 64px; }
.birdcare-fig { margin: 0; }
.birdcare-fig img { mix-blend-mode: multiply; width: 100%; }
.memo { list-style: none; margin: 14px 0 0; padding: 0; }
.memo li { position: relative; padding-left: 22px; margin-top: 8px; }
.memo li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 10px; height: 10px; border: 2px solid var(--leaf); border-radius: 50%; }
.fair { margin-top: 18px; font-size: 14px; color: var(--ink-soft); border-top: 1px dashed var(--rule); padding-top: 12px; }

/* ---------- 商品 ---------- */
.goods { padding: 80px 0 40px; border-top: 1px solid var(--rule); }
.goods-dc { background: var(--wash-leaf); padding-bottom: 80px; }
.dc-head { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: center; margin-bottom: 8px; }
.dc-fig { mix-blend-mode: multiply; width: 100%; }
.shelf + .shelf { margin-top: 48px; }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding-bottom: 10px; margin-bottom: 20px; border-bottom: 1px solid var(--ink); }
.shelf-head h3 { font-family: var(--hand); font-size: 1.6rem; line-height: 1.4; }
.shelf-head p { font-size: 14.5px; color: var(--ink-soft); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 24px; }
.card { display: flex; flex-direction: column; scroll-margin-top: 24px; }
.card:target .card-label { outline: 3px solid var(--sky-deep); outline-offset: -3px; }
.card-ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--rule); background: #fff; }
.card-label { flex: 1; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--ink); border-top: 0; padding: 14px 16px 16px; position: relative; }
.card-label::before { content: ""; position: absolute; left: 6px; right: 6px; top: 5px; border-top: 1px solid var(--ink); }
.card-name { font-size: 16px; font-weight: 700; line-height: 1.55; margin-top: 4px; }
.card-lead { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips-t { font-family: var(--hand); font-size: 13px; color: var(--ink-soft); margin-right: 2px; }
.chip { font-family: var(--body); font-size: 13px; padding: 4px 10px; min-height: 30px; border-radius: 20px; border: 1px solid var(--leaf-deep); color: var(--leaf-deep); background: #fff; cursor: pointer; line-height: 1.4; }
.chip:hover { background: var(--wash-leaf); }
.howto { border-top: 1px dashed var(--rule); padding-top: 6px; font-size: 14px; line-height: 1.7; }
.howto summary { cursor: pointer; font-weight: 700; color: var(--leaf-deep); padding: 6px 0; min-height: 32px; }
.howto p { margin-top: 2px; }
.ht-t { font-family: var(--hand); font-weight: 600; color: var(--ink-soft); margin-top: 10px !important; }
.card-buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 4px; }

/* ---------- つくり手のノート ---------- */
.note { position: relative; padding: 88px 0; border-top: 1px solid var(--rule); background: #fff; }
.note::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--wash-sky) 1px, transparent 1px), linear-gradient(90deg, var(--wash-sky) 1px, transparent 1px);
  background-size: 24px 24px;
}
.note > .wrap { position: relative; }
.note-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 2.4fr); gap: 40px; align-items: start; }
.specimen { margin: 0; background: #fff; padding: 12px 12px 10px; border: 1px solid var(--rule); position: relative; }
.specimen::before { content: ""; position: absolute; top: -9px; left: 50%; width: 76px; height: 18px; margin-left: -38px; background: rgba(188, 217, 234, .75); }
.specimen figcaption { font-family: var(--hand); font-size: 14px; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }
.specimen-box img { width: 100%; }
.note-text h3 + p { margin-top: 8px; }
.note-text h3:not(:first-child) { margin-top: 28px; }
.steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 12px; }
.step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--leaf-deep); color: var(--leaf-deep); display: grid; place-items: center; font-family: var(--hand); font-weight: 600; }
.years { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.years::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; border-top: 1.5px solid var(--leaf); }
.years li { position: relative; padding: 28px 14px 0 0; font-size: 14.5px; line-height: 1.6; }
.years li::before { content: ""; position: absolute; left: 0; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2px solid var(--leaf-deep); }
.years .y { display: block; font-family: var(--hand); font-weight: 600; font-size: 1.25rem; color: var(--leaf-deep); }
.what { margin-top: 56px; max-width: 46em; border: 3px double var(--ink); background: #fff; padding: 20px 24px; }
.what p { margin-top: 8px; }

/* ---------- お問い合わせ・フッター ---------- */
.contact { padding: 72px 0; border-top: 1px solid var(--rule); background: var(--wash-sky); }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact h2 { font-family: var(--hand); font-size: 2rem; line-height: 1.4; }
.contact h2 + p { margin-top: 10px; }
.tel { font-family: var(--hand); font-weight: 600; font-size: 2.4rem; line-height: 1.4; margin-top: 8px; }
.tel a { color: var(--ink); text-decoration: none; }
.hours { color: var(--ink-soft); }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.maker img { width: 240px; margin-top: 12px; }
.addr { font-size: 14px; color: var(--ink-soft); }
.site-foot { background: var(--ink); color: #fff; padding: 32px 0 40px; font-size: 14px; }
.site-foot p + p { margin-top: 4px; }

/* ---------- タブレット ---------- */
@media (max-width: 1080px) {
  .sp-cols { display: none; }
  .row { grid-template-columns: 84px minmax(0, 1fr); gap: 6px 16px; }
  .row-ph { grid-row: span 3; align-self: start; }
  .row-buy { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; }
  .note-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .specimen-box { display: none; }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-plate { order: -1; margin-inline: -8px; }
  .zukan-body { grid-template-columns: 1fr; }
  .zukan-index { position: static; }
  .zukan-pages { scroll-margin-top: 12px; }
  .leaves { grid-template-columns: 1fr 1fr; }
  .leaf-note { grid-column: 1 / -1; }
  .birdcare { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
  .dc-head { grid-template-columns: 1fr; }
  .dc-fig { max-width: 420px; }
  .note-grid { grid-template-columns: 1fr; }
  .specimen { max-width: 420px; }
  .years { grid-template-columns: 1fr; padding-left: 4px; }
  .years::before { left: 10px; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 1.5px solid var(--leaf); }
  .years li { padding: 0 0 16px 32px; }
  .years li::before { left: 4px; top: 6px; }
  .years .y { display: inline; margin-right: 10px; font-size: 1.1rem; }
  .contact-in { grid-template-columns: 1fr; }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .wrap { width: calc(100% - 32px); }
  .head-in { padding: 10px 0 6px; gap: 2px; }
  .mark-name { font-size: 24px; }
  .mark-sub { font-size: 12px; }
  .gnav { gap: 0 16px; font-size: 14px; }
  .hero { padding: 16px 0 44px; }
  .hero-lead { font-size: 16px; }
  .hero-act .btn { flex: 1 1 100%; }
  .label { padding: 4px 12px; }
  .label > div { grid-template-columns: 5.4em 1fr; gap: 8px; }
  .zukan, .kotori, .note { padding: 56px 0; }
  .goods { padding-top: 56px; }
  .sec-head { margin-bottom: 24px; }
  .idx-btn { font-size: 15px; gap: 6px; padding-right: 6px; min-height: 52px; }
  .idx-btn img { width: 42px; height: 42px; }
  .sp-page { padding: 18px 14px 6px; }
  .sp-head { gap: 14px; }
  .sp-fig { width: 96px; height: 96px; }
  .sp-name { font-size: 1.8rem; }
  .row { grid-template-columns: 72px minmax(0, 1fr); gap: 4px 12px; }
  .row-ph img { width: 72px; }
  .amt { font-size: 1.3rem; }
  .leaves { gap: 16px; }
  .leaf-name { font-size: 1.35rem; }
  .leaf-goods { font-size: 14px; }
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; border: 1px solid var(--ink); background: #fff; }
  .card-ph { aspect-ratio: 1; object-fit: cover; border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .card-label { border: 0; padding: 12px 12px 14px; align-self: stretch; }
  .card-label::before { display: none; }
  .card-name { font-size: 15px; margin-top: 0; }
  .card-buy { flex-direction: column; align-items: stretch; }
  .card-buy .buy { width: 100%; }
  .tel { font-size: 2rem; }
}
