/* alime.pet デザイン案 02「顕微鏡のなかの、小さな同居人。」 refs #1379
   色は「染色した菌」から。青＝乳酸菌、紫＝ビフィズス菌、赤紫＝酪酸菌。この 3 色は菌を表すときだけに使う */
:root {
  --slide: #F5F8FC;     /* スライドガラスの白（地） */
  --paper: #FFFFFF;
  --ink: #15233F;       /* 墨（本文） */
  --ink-2: #44536E;     /* 補足 */
  --stain: #1F4FBF;     /* 染色の青＝乳酸菌・主色 */
  --stain-deep: #173C93;
  --pale: #E6EEFA;      /* レンズの光（面） */
  --line: #C6D4EA;      /* 方眼・罫 */
  --violet: #6A3DB0;    /* ビフィズス菌 */
  --rose: #B03058;      /* 酪酸菌 */

  --font: "Murecho", "Hiragino Sans", "Yu Gothic", sans-serif;
  --r-s: 4px; --r-m: 10px;
  --gut: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--slide); color: var(--ink);
  font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1.85;
  line-break: strict; overflow-wrap: anywhere; word-break: normal;
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--stain); }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--stain); outline-offset: 3px; border-radius: 2px; }
.nw { white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }

/* 数字は計測値のように: 細い字面・等幅 */
.num, .price-n, .tl-year, .contact-tel, .f-count-n, .step-no { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- 記号 ---------- */
.g { width: 24px; height: 14px; flex: none; }
.g-lab { color: var(--stain); }
.g-bif { color: var(--violet); }
.g-but { color: var(--rose); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1.4; text-decoration: none; text-align: center;
  border: 2px solid var(--stain); transition: background-color .15s, color .15s;
}
.btn-solid { background: var(--stain); color: #fff; }
.btn-solid:hover { background: var(--stain-deep); border-color: var(--stain-deep); }
.btn-line { background: var(--paper); color: var(--stain); }
.btn-line:hover { background: var(--pale); }
.btn-text { background: none; border: 0; padding: 6px 2px; color: var(--stain); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- ヘッダー ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(245, 248, 252, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 3px; text-decoration: none; color: var(--ink); }
.mark-word { font-weight: 800; font-size: 24px; letter-spacing: .01em; line-height: 1; }
.mark-dot { width: 20px; height: 12px; color: var(--stain); margin-top: 8px; }
.head-nav { display: flex; align-items: center; gap: 22px; }
.head-nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.head-nav a:hover { color: var(--stain); }
.head-nav .head-cta { color: #fff; background: var(--stain); padding: 8px 16px; border-radius: 999px; font-weight: 700; }
.head-nav .head-cta:hover { color: #fff; background: var(--stain-deep); }

/* ---------- ヒーロー ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before { /* 方眼（研究ノート） */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px; opacity: .45;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%); mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.hero-kicker { font-size: 14px; font-weight: 700; color: var(--stain); margin-bottom: 18px; }
.hero-title { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; line-height: 1.32; letter-spacing: .01em; }
.hero-lead { margin-top: 24px; max-width: 32em; font-size: 17px; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.field { justify-self: center; width: 100%; max-width: 460px; }
.field-lens {
  position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #F2EFEA;
  box-shadow: 0 0 0 10px var(--paper), 0 0 0 11px var(--line), 0 0 0 26px var(--slide), 0 0 0 27px var(--line);
  margin: 27px;
}
.field-lens img { width: 100%; height: 100%; object-fit: cover; }
.reticle { position: absolute; inset: 0; width: 100%; height: 100%; }
.reticle line { stroke: var(--ink); stroke-width: 1.2; opacity: .55; }
.field-cap { display: block; margin-top: 18px; text-align: center; }
.field-name { display: block; font-weight: 700; font-size: 16px; }
.field-note { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.7; margin-top: 2px; }

/* ピントが合う一瞬（ページを開いたときの 1 回だけ） */
.field-lens img { transform: scale(1.06); filter: blur(7px); transition: filter 1.3s cubic-bezier(.2, .7, .2, 1) .15s, transform 1.6s cubic-bezier(.2, .7, .2, 1) .15s; }
.reticle { opacity: 0; transition: opacity .6s ease 1.1s; }
.is-ready .field-lens img { transform: none; filter: none; }
.is-ready .reticle { opacity: 1; }

/* スライドガラスの標本ラベル */
.slide {
  margin-top: 56px; display: grid; grid-template-columns: 220px minmax(0, 1fr);
  border-radius: var(--r-s); background: rgba(230, 238, 250, .75); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 #fff;
}
.slide-label { background: var(--paper); border-right: 1px solid var(--line); padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; border-radius: var(--r-s) 0 0 var(--r-s); }
.slide-sp { font-size: 15px; font-weight: 500; color: var(--stain-deep); line-height: 1.4; }
.slide-sp i { font-style: italic; }
.slide-ja { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.slide-data { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.slide-data div { padding: 16px 18px; border-left: 1px dashed var(--line); }
.slide-data div:first-child { border-left: 0; }
.slide-data dt { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.slide-data dd { font-size: 15px; font-weight: 700; line-height: 1.55; margin-top: 4px; }

/* ---------- セクション共通 ---------- */
.sec { padding: 104px 0; }
.sec-pale { background: var(--pale); }
.sec-head { max-width: 40em; }
.sec h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.45; letter-spacing: .01em; }
.sec-lead { margin-top: 18px; font-size: 17px; color: var(--ink); max-width: 36em; }
.sub-title { font-size: 20px; font-weight: 700; margin: 64px 0 18px; padding-top: 18px; border-top: 2px solid var(--ink); }

/* 乳酸菌とは */
.flow { margin-top: 48px; }
.flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: f; }
.flow-step { position: relative; padding: 28px 24px 26px; background: var(--paper); border: 1px solid var(--line); text-align: center; }
.flow-step + .flow-step { border-left: 0; }
.flow-step + .flow-step::before { /* 矢印 */
  content: ""; position: absolute; left: -11px; top: 62px; width: 20px; height: 20px; background: var(--paper);
  border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg); z-index: 1;
}
.flow-step:first-child { border-radius: var(--r-m) 0 0 var(--r-m); }
.flow-step:last-child { border-radius: 0 var(--r-m) var(--r-m) 0; }
.flow-ic { width: 72px; height: 72px; margin: 0 auto 10px; }
.ic-sugar rect { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.ic-lab circle { fill: var(--stain); }
.ic-acid path { fill: var(--pale); stroke: var(--stain); stroke-width: 2.5; }
.ic-guard circle, .ic-guard path { fill: none; stroke: var(--ink-2); stroke-width: 3; }
.flow-name { font-size: 20px; font-weight: 800; line-height: 1.4; }
.is-lab .flow-name { color: var(--stain); }
.flow-txt { font-size: 15px; color: var(--ink-2); }
#basics { padding-top: 72px; }
.young { margin-top: 40px; display: flex; align-items: center; gap: 28px; max-width: 760px; }
.young-ic { width: 120px; height: 60px; flex: none; color: var(--stain); }
.young-ic .other { fill: var(--line); }
.young p { font-size: 16px; }

/* フェカリス菌 */
.faecalis-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.traits { display: grid; gap: 14px; }
.trace { margin-bottom: 14px; background: var(--paper); border-radius: var(--r-m); padding: 18px 20px 16px; }
.trace svg { width: 100%; height: auto; display: block; }
.trace-g ellipse { fill: var(--stain); fill-opacity: .9; stroke: var(--stain-deep); stroke-width: 1.5; }
.trace figcaption { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin-top: 8px; }
.traits li { display: flex; align-items: center; gap: 18px; background: var(--paper); border-radius: var(--r-m); padding: 18px 22px; }
.traits svg { width: 44px; height: 44px; flex: none; }
.tr-line { fill: none; stroke: var(--stain); stroke-width: 3; stroke-linecap: round; }
.tr-fill { fill: var(--stain); }
.tr-cut { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.traits h3 { font-size: 20px; font-weight: 700; }

/* 製法 */
.process-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.process-photo, .howto-photo, .about-photo, .small-batch-photo { position: relative; }
.process-photo img, .howto-photo img, .about-photo img, .small-batch-photo img { border-radius: var(--r-m); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.process-photo figcaption, .howto-photo figcaption, .about-photo figcaption, .small-batch-photo figcaption {
  position: absolute; right: 10px; bottom: 10px; background: rgba(21, 35, 63, .82); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 999px; line-height: 1.6;
}
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { position: relative; }
.step img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--r-s); }
.step-no { position: absolute; top: -14px; left: -6px; width: 40px; height: 40px; border-radius: 50%; background: var(--stain); color: #fff; font-weight: 700; font-size: 18px; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--slide); }
.step h3 { font-size: 18px; font-weight: 700; margin-top: 16px; }
.step p { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.step .step-no { color: #fff; margin-top: 0; font-size: 18px; }
.step + .step::after { content: none; }

.small-batch { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; background: var(--paper); border-radius: var(--r-m); padding: 28px; border: 1px solid var(--line); }
.small-batch-text h3 { font-size: 24px; font-weight: 800; line-height: 1.5; }
.small-batch-text p { margin-top: 12px; }
.shapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.shapes li { text-align: center; font-size: 14px; font-weight: 700; }
.shapes img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 100%; max-width: 110px; margin: 0 auto 8px; border: 1px solid var(--line); }

/* 動物 */
.animal-list { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.animal {
  width: 100%; display: grid; justify-items: center; gap: 6px; padding: 26px 12px 22px; cursor: pointer;
  background: var(--paper); border: 2px solid transparent; border-radius: var(--r-m); transition: border-color .15s;
}
.animal:hover { border-color: var(--line); }
.animal[aria-pressed="true"] { border-color: var(--stain); }
.animal img { width: 128px; height: 128px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 6px var(--pale); margin-bottom: 10px; }
.animal-name { font-size: 22px; font-weight: 800; line-height: 1.3; }
.animal-count { font-size: 14px; color: var(--ink-2); }

/* 菌の構成 */
.legend { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.legend-item { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border-radius: var(--r-m); padding: 18px 20px; border: 1px solid var(--line); }
.legend-item .g { width: 36px; height: 21px; margin-top: 4px; }
.legend-name { font-weight: 800; font-size: 17px; line-height: 1.5; }
.legend-item p:not(.legend-name) { font-size: 14px; color: var(--ink-2); line-height: 1.75; margin-top: 2px; }

.series-table { }
.srow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.srow-head { padding: 0 0 8px; border-bottom: 1px solid var(--ink); }
.srow-head p { font-size: 12px; font-weight: 700; color: var(--ink-2); line-height: 1.6; }
.srow-head p:last-child { text-align: right; }
.series-key { font-size: 13px; color: var(--ink-2); margin: -6px 0 16px; }
.srow-name h4 { font-size: 17px; font-weight: 800; line-height: 1.5; }
.srow-name p { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin-top: 2px; }
.srow-bac { display: flex; flex-direction: column; gap: 4px; }
.srow-glyph { display: flex; gap: 6px; }
.srow-glyph .g { width: 30px; height: 18px; }
.srow-bac p { font-size: 13px; font-weight: 700; line-height: 1.6; }
.srow-none { font-size: 13px; color: var(--ink-2); }
.srow-go { display: grid; justify-items: end; gap: 6px; }
.srow-an { font-size: 13px; color: var(--ink-2); }
.btn-row { background: var(--paper); border: 1.5px solid var(--stain); color: var(--stain); border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn-row:hover { background: var(--pale); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-add { font-size: 13px; line-height: 1.5; padding: 3px 10px; border-radius: var(--r-s); background: var(--pale); color: var(--ink); }
.chip-add.is-part { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.chip-add .part, .key-part { display: inline-block; margin-left: 6px; font-size: 11px; line-height: 1.5; padding: 0 5px; border-radius: 3px; background: var(--ink-2); color: #fff; vertical-align: 1px; }
.key-part { margin: 0 2px 0 0; }
.chips-sm .chip-add { font-size: 12px; padding: 2px 8px; }

/* しぼり込み */
.filters { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px 24px 16px; }
.f-group { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.f-group legend { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 0; margin-bottom: 8px; }
.f-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; cursor: pointer;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 500; line-height: 1.4; text-align: left;
}
.chip:hover { border-color: var(--stain); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-g { display: inline-flex; gap: 2px; background: var(--paper); border-radius: 999px; padding: 2px 4px; }
.chip-g .g { width: 18px; height: 11px; }
.chip-t { min-width: 0; }
.chip-n { margin-left: 6px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip-n { color: #D9E3F5; }
.f-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; border-top: 1px dashed var(--line); padding-top: 12px; }
.f-count { font-size: 15px; }
.f-count-n { font-size: 28px; font-weight: 300; color: var(--stain); margin: 0 2px; }
.f-tools { display: flex; align-items: center; gap: 16px; }
.f-sort { font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.f-sort select { min-height: 40px; padding: 4px 10px; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--paper); }
.f-series { margin-top: 10px; font-size: 14px; font-weight: 700; }

.cards { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.card-photo { background: #fff; }
.card-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-bac { display: flex; align-items: center; gap: 10px; padding: 8px 18px; font-size: 13px; font-weight: 700; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--slide); line-height: 1.5; }
.card-bac.is-three { background: #F1ECF9; }
.card-glyph { display: inline-flex; gap: 4px; flex: none; }
.card-glyph .g { width: 20px; height: 12px; }
.card-body { padding: 16px 18px 14px; flex: 1; }
.card-series { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.card-name { font-size: 17px; font-weight: 700; line-height: 1.55; margin-top: 2px; }
.card-for { font-size: 13px; color: var(--ink-2); margin: 6px 0 10px; }
.card-more { margin: 0 18px; border-top: 1px dashed var(--line); }
.card-more summary { cursor: pointer; padding: 10px 0; font-size: 14px; font-weight: 700; color: var(--stain); list-style: none; display: flex; align-items: center; gap: 8px; }
.card-more summary::-webkit-details-marker { display: none; }
.card-more summary::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.card-more[open] summary::before { transform: rotate(45deg); }
.more-in { padding-bottom: 10px; }
.hw-title { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-top: 10px; }
.hw-title:first-child { margin-top: 0; }
.hw-text, .hw-none { font-size: 14px; line-height: 1.8; }
.ing b { font-weight: 700; }
.t-lab { color: var(--stain); }
.t-bif { color: var(--violet); }
.t-but { color: var(--rose); }
.card-foot { padding: 12px 18px 18px; display: grid; gap: 12px; }
.price { display: flex; align-items: baseline; gap: 4px; }
.price-n { font-size: 30px; font-weight: 300; letter-spacing: .01em; line-height: 1.2; }
.price-u { font-size: 13px; color: var(--ink-2); }
.price-none { font-size: 14px; color: var(--ink-2); }
.btn-buy { width: 100%; }
.ask { font-size: 14px; line-height: 1.7; background: var(--slide); padding: 10px 14px; border-radius: var(--r-s); }
.ask a { font-weight: 700; }
.empty { margin-top: 24px; padding: 32px; text-align: center; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r-m); }
.empty p { margin-bottom: 16px; }
.price-note { margin-top: 24px; font-size: 13px; color: var(--ink-2); }

/* 与え方 */
.howto-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: end; }
.charts { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.chart { background: var(--paper); border-radius: var(--r-m); padding: 24px 24px 20px; }
.chart-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 14px; }
.chart-title { font-size: 18px; font-weight: 800; }
.chart-sub { font-size: 13px; color: var(--ink-2); }
.chart-body { --lab: 9.5em; position: relative; }
.bar { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr) 4.6em; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--pale); }
.bar-label { font-size: 14px; font-weight: 700; line-height: 1.35; grid-column: 1; grid-row: 1; }
.bar-kg { display: block; font-size: 12px; font-weight: 400; color: var(--ink-2); }
.bar-track { grid-column: 2; grid-row: 1; position: relative; height: 14px; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / var(--n, 10)) 100%; border-radius: 2px; }
.chart-body[data-max="5"] .bar-track { --n: 5; }
.bar-fill { position: absolute; top: 2px; bottom: 2px; background: var(--stain); border-radius: 999px; min-width: 10px; }
.bar-val { grid-column: 3; grid-row: 1; text-align: right; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.axis { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr) 4.6em; gap: 12px; margin-top: 4px; }
.axis-in { grid-column: 2; position: relative; height: 18px; font-size: 11px; color: var(--ink-2); }
.axis-in span { position: absolute; transform: translateX(-50%); white-space: nowrap; }

/* ブランドの背景 */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: start; }
.about-photo { margin-top: 32px; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 4.4em minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 14px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 25px; width: 12px; height: 12px; border-radius: 50%; background: var(--stain); box-shadow: 0 0 0 4px var(--slide); }
.tl-year { font-size: 26px; font-weight: 300; line-height: 1.2; color: var(--stain-deep); }
.tl-txt { font-size: 16px; font-weight: 500; }

/* お問い合わせ */
.contact { background: var(--ink); color: #fff; padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.contact h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; line-height: 1.45; }
.contact p { margin-top: 14px; color: #E3EAF6; }
.contact-box { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r-m); padding: 28px; }
.contact-tel { margin-top: 0 !important; }
.contact-tel a { color: #fff; font-size: clamp(32px, 4vw, 44px); font-weight: 300; text-decoration: none; letter-spacing: .02em; }
.contact-hours { font-size: 15px; margin-top: 4px !important; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.contact .btn-solid { background: #fff; color: var(--ink); border-color: #fff; }
.contact .btn-solid:hover { background: var(--pale); }
.contact .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.contact .btn-line:hover { background: rgba(255, 255, 255, .1); }
.contact :focus-visible { outline-color: #fff; }

/* フッター */
.site-foot { background: var(--paper); padding: 40px 0 48px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-co img { width: 220px; }
.foot-co p { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.foot-notes p { font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.foot-copy { margin-top: 8px; }

/* ---------- タブレット ---------- */
@media (max-width: 1024px) {
  .head-nav a:not(.head-cta) { display: none; }
  .slide { grid-template-columns: 1fr; }
  .slide-label { border-right: 0; border-bottom: 1px solid var(--line); border-radius: var(--r-s) var(--r-s) 0 0; }
  .slide-data { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slide-data div { border-left: 0; border-top: 1px dashed var(--line); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .srow-head { display: none; }
  .series-table { border-top: 1px solid var(--ink); }
  .srow-go { justify-items: start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .charts { grid-template-columns: 1fr; }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .head-in { height: 56px; }
  .mark-word { font-size: 21px; }
  .hero { padding: 28px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .field { order: -1; max-width: 320px; }
  .field-lens { margin: 20px; box-shadow: 0 0 0 7px var(--paper), 0 0 0 8px var(--line), 0 0 0 19px var(--slide), 0 0 0 20px var(--line); }
  .hero-kicker { font-size: 13px; margin-bottom: 10px; }
  .hero-lead { font-size: 15px; margin-top: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .slide { margin-top: 36px; }
  .slide-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide-data div { padding: 12px 16px; }
  .slide-data dd { font-size: 14px; }

  .sec { padding: 64px 0; }
  .sec-lead { font-size: 15px; }
  .sub-title { margin-top: 48px; }

  .flow-steps { grid-template-columns: 1fr 1fr; }
  .flow-step { padding: 20px 12px 18px; }
  .flow-step + .flow-step { border-left: 1px solid var(--line); }
  .flow-step:nth-child(2n) { border-left: 0; }
  .flow-step:nth-child(n+3) { border-top: 0; }
  .flow-step + .flow-step::before { display: none; }
  .flow-step:first-child { border-radius: var(--r-m) 0 0 0; }
  .flow-step:nth-child(2) { border-radius: 0 var(--r-m) 0 0; }
  .flow-step:nth-child(3) { border-radius: 0 0 0 var(--r-m); }
  .flow-step:last-child { border-radius: 0 0 var(--r-m) 0; }
  .flow-ic { width: 56px; height: 56px; }
  .flow-name { font-size: 17px; }
  .flow-txt { font-size: 13px; }
  .young { flex-direction: column; align-items: flex-start; gap: 12px; }

  .faecalis-grid, .process-head, .howto-head, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .traits li { padding: 14px 16px; }
  .traits h3 { font-size: 18px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 14px; margin-top: 40px; }
  .step h3 { font-size: 16px; }
  .step p { font-size: 14px; }
  .step .step-no { width: 34px; height: 34px; font-size: 16px; }
  .small-batch { grid-template-columns: 1fr; padding: 16px; gap: 20px; margin-top: 48px; }
  .small-batch-text h3 { font-size: 20px; }

  .animal-list { grid-template-columns: 1fr 1fr; gap: 12px; }
  .animal { padding: 18px 8px 16px; }
  .animal img { width: 96px; height: 96px; }
  .animal-name { font-size: 18px; }

  .legend { grid-template-columns: 1fr; gap: 10px; }
  .srow { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
  .srow-head { display: none; }
  .series-table { border-top: 1px solid var(--ink); }
  .srow-bac { flex-direction: row; align-items: center; gap: 10px; }
  .srow-go { grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: stretch; }
  .srow-go .btn-row { justify-self: end; }

  .filters { padding: 16px 14px 12px; }
  .chip { font-size: 13px; padding: 6px 12px; min-height: 40px; }
  .f-tools { width: 100%; justify-content: space-between; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .card-photo { grid-column: 1; grid-row: 1; padding: 14px 0 0 14px; background: none; }
  .card-photo img { aspect-ratio: 1; border-radius: var(--r-s); }
  .card-body { grid-column: 2; grid-row: 1; padding: 14px 14px 12px; }
  .card-name { font-size: 16px; }
  .card-for { margin: 4px 0 8px; }
  .card-bac { grid-column: 1 / -1; grid-row: 2; padding: 7px 14px; }
  .card-more { grid-column: 1 / -1; grid-row: 3; margin: 0 14px; border-top: 0; }
  .card-foot { grid-column: 1 / -1; grid-row: 4; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 4px 14px 14px; }
  .card-foot .ask { grid-column: 1 / -1; }
  .price-n { font-size: 26px; }
  .btn-buy { min-height: 46px; padding: 8px 12px; font-size: 14px; }
  .field { max-width: 280px; }

  .chart { padding: 18px 14px 14px; }
  .chart-body { --lab: 6.6em; }
  .bar, .axis { gap: 8px; grid-template-columns: var(--lab) minmax(0, 1fr) 4.4em; }
  .bar-label { font-size: 13px; }
  .bar-val { font-size: 14px; }

  .timeline { padding-left: 26px; }
  .timeline li { grid-template-columns: 4.2em minmax(0, 1fr); gap: 12px; }
  .timeline li::before { left: -26px; top: 22px; }
  .tl-year { font-size: 22px; }
  .tl-txt { font-size: 15px; }
  .contact { padding: 56px 0; }
  .contact-box { padding: 20px; }
  .contact-links .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .field-lens img { transform: none; filter: none; }
  .reticle { opacity: 1; }
}
