/* 案10 ALIME ― 8つのシリーズで選ぶ。 refs #1379 */
:root {
  --frost: #F8F9FB;   /* 冷たい白（地） */
  --plate: #ECEDEF;   /* 写真台（商品写真の背景に合わせた灰） */
  --navy: #121C33;    /* 紺（文字・濃い面） */
  --navy-2: #1D2A47;  /* 紺の中間（濃い面の上の面） */
  --gold: #C6A35A;    /* 金（紺の上の文字・罫） */
  --gold-ink: #7A5E1E;/* 金墨（白地の上の金色の文字） */
  --slate: #586174;   /* 補助の文字 */
  --rule: #D4D8E0;    /* 罫 */
  --mist: #B9C1D0;    /* 紺の上の補助の文字 */

  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --latin: "Jost", "Zen Kaku Gothic New", sans-serif;
  --wrap: 1200px;
  --gut: 24px;
}
@media (max-width: 767px) { :root { --gut: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--frost); color: var(--navy);
  font-family: var(--gothic); font-size: 16px; line-height: 1.85; letter-spacing: .02em;
  line-break: strict; overflow-wrap: anywhere; word-break: normal;
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.nb { white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.cover :focus-visible, .fam-band :focus-visible, .brand :focus-visible, .site-foot :focus-visible { outline-color: var(--gold); }

/* ---------- ロゴ（ALIME＋双球菌のしるし） ---------- */
.logo { display: inline-flex; align-items: baseline; gap: 0; text-decoration: none; color: var(--navy); }
.logo-word { font-family: var(--latin); font-weight: 400; font-size: 25px; letter-spacing: .34em; line-height: 1; margin-right: -.1em; }
.logo-mark { position: relative; display: inline-block; width: 15px; height: 8px; margin-left: 2px; transform: translateY(-14px); }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.logo-mark::before { left: 0; }
.logo-mark::after { left: 7px; opacity: .72; }
.logo-sub { font-size: 12px; letter-spacing: .12em; color: var(--slate); margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--rule); line-height: 1.4; align-self: center; }

/* ---------- ヘッダー ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(248, 249, 251, .96); border-bottom: 1px solid var(--rule); }
.head-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.gnav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.gnav a { text-decoration: none; padding: 6px 0; }
.gnav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); }
.gnav-shop { border: 1px solid var(--navy); padding: 7px 16px !important; }
.gnav-shop:hover { background: var(--navy); color: var(--frost); text-decoration: none !important; }
.menu-btn { display: none; }
@media (max-width: 959px) {
  .logo-sub { display: none; }
  .menu-btn { display: block; font: 500 14px/1 var(--gothic); color: var(--navy); background: none; border: 1px solid var(--navy); padding: 10px 14px; }
  .gnav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--frost); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 20px; }
  .gnav.is-open { display: flex; }
  .gnav a { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
  .gnav-shop { margin-top: 14px; text-align: center; }
}

/* ---------- 見出し・共通 ---------- */
.h2 { font-family: var(--mincho); font-weight: 700; font-size: 34px; line-height: 1.4; letter-spacing: .06em; }
.h2-inv { color: var(--frost); }
.sec { padding: 104px 0; }
.sec-head { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.sec-lead { color: var(--slate); max-width: 38em; }
.note { font-size: 13px; color: var(--slate); margin-top: 16px; }
@media (max-width: 767px) {
  .h2 { font-size: 26px; }
  .sec { padding: 72px 0; }
  .sec-head { grid-template-columns: 1fr; margin-bottom: 28px; }
}

/* ---------- 表紙 ---------- */
.cover { background: var(--navy); color: var(--frost); }
.cover-in { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; padding-top: 72px; padding-bottom: 72px; align-items: start; }
.cover-kicker { font-size: 14px; color: var(--gold); letter-spacing: .12em; }
.cover-title { font-family: var(--mincho); font-weight: 700; font-size: 66px; line-height: 1.28; letter-spacing: .08em; margin: 20px 0 28px; }
.cover-lead { max-width: 34em; color: #DCE1EA; font-size: 16px; line-height: 2; }
.toc { margin-top: 48px; display: grid; grid-template-columns: repeat(3, max-content); justify-content: space-between; gap: 28px; border-top: 1px solid rgba(198, 163, 90, .5); padding-top: 24px; }
.toc-fam-name { font-size: 13px; color: var(--gold); letter-spacing: .08em; margin-bottom: 10px; }
.toc li + li { border-top: 1px solid rgba(185, 193, 208, .22); }
.toc a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; text-decoration: none; }
.toc a:hover .toc-name { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--gold); }
.toc-name { font-family: var(--mincho); font-weight: 500; font-size: 17px; line-height: 1.5; white-space: nowrap; }
.toc a { min-width: 12em; }
@media (max-width: 1199px) { .toc { grid-template-columns: repeat(2, max-content); justify-content: start; column-gap: 48px; } }
.toc-n { font-family: var(--latin); font-size: 13px; color: var(--mist); white-space: nowrap; }
.cover-fig { position: relative; }
.cover-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 70%; }
.cover-fig figcaption, .fam-fig figcaption {
  position: absolute; right: 0; bottom: 0; background: rgba(18, 28, 51, .88); color: var(--frost);
  font-size: 12px; padding: 4px 10px; line-height: 1.6;
}
@media (max-width: 959px) {
  .cover-in { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .cover-title { font-size: 46px; }
  .toc { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
  .cover-fig img { aspect-ratio: 4 / 4.4; }
}
@media (max-width: 400px) { .cover-title { font-size: 40px; } }
@media (max-width: 767px) {
  /* SP: 写真を目次より先に見せる */
  .cover-text { display: contents; }
  .cover-in { gap: 0; }
  .cover-kicker { order: 1; } .cover-title { order: 2; } .cover-lead { order: 3; }
  .cover-fig { order: 4; margin-top: 32px; }
  .toc { order: 5; }
}

/* ---------- 比較表 ---------- */
.ctable { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.ctable thead th { text-align: left; font-weight: 500; font-size: 13px; color: var(--slate); padding: 0 14px 12px; border-bottom: 2px solid var(--navy); }
.ctable .num { text-align: right; white-space: nowrap; }
.ctable col.c-name { width: 21%; } .ctable col.c-who { width: 14%; } .ctable col.c-form { width: 16%; }
.ctable col.c-price { width: 12%; } .ctable col.c-cap { width: 9%; }
.ctable td, .ctable tbody th { padding: 16px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; font-weight: 400; }
.ctable td.num { font-family: var(--latin); font-size: 15px; }
.ct-fam th { font-family: var(--mincho); font-weight: 700 !important; font-size: 15px; color: var(--gold-ink); padding: 28px 14px 8px !important; border-bottom: 1px solid var(--gold) !important; letter-spacing: .06em; }
.ct-name a { font-family: var(--mincho); font-weight: 700; font-size: 18px; text-decoration: none; line-height: 1.5; display: block; }
.ct-name a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.ct-count { display: block; font-size: 12px; color: var(--slate); }
@media (max-width: 899px) {
  .ctable, .ctable tbody, .ctable tr, .ctable td, .ctable th { display: block; width: 100%; }
  .ctable thead, .ctable colgroup { display: none; }
  .ctable tr { border-bottom: 1px solid var(--rule); padding: 14px 0 16px; }
  .ctable tr.ct-fam { border-bottom: 0; padding: 0; }
  .ct-fam th { padding: 28px 0 8px !important; }
  .ctable td, .ctable tbody th { border: 0; padding: 3px 0; }
  .ctable tbody th.ct-name { padding-bottom: 8px; }
  .ct-name a { display: inline; font-size: 20px; }
  .ct-count { display: inline; margin-left: 10px; }
  .ctable td { display: grid; grid-template-columns: 105px 1fr; gap: 12px; text-align: left !important; white-space: normal !important; }
  .ctable td::before { content: attr(data-label); font-size: 12px; color: var(--slate); padding-top: 2px; }
  .ctable td.num { font-size: 15px; }
}

/* ---------- 動物の札 ---------- */
.animals { padding-top: 0; }
.aplates { display: grid; grid-template-columns: repeat(4, 1fr) .7fr; gap: 0; border-top: 2px solid var(--navy); }
.aplate {
  font: inherit; color: var(--navy); text-align: left; background: transparent; border: 0; border-right: 1px solid var(--rule);
  padding: 22px 20px 26px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-height: 100%;
}
.aplate:last-child { border-right: 0; }
.aplate:hover { background: var(--plate); }
.aplate[aria-pressed="true"] { background: var(--navy); color: var(--frost); }
.aplate[aria-pressed="true"] .ap-count, .aplate[aria-pressed="true"] .ap-series { color: var(--mist); }
.ap-name { font-family: var(--mincho); font-weight: 700; font-size: 32px; line-height: 1.3; letter-spacing: .06em; }
.ap-count { font-size: 13px; color: var(--gold-ink); }
.aplate[aria-pressed="true"] .ap-count { color: var(--gold); }
.ap-series { font-size: 13px; line-height: 1.75; color: var(--slate); margin-top: 6px; }
@media (max-width: 899px) {
  .aplates { grid-template-columns: 1fr 1fr; }
  .aplate { border-bottom: 1px solid var(--rule); }
  .aplate:nth-child(2n) { border-right: 0; }
  .aplate-all { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 14px; padding: 16px 20px; }
  .ap-name { font-size: 26px; }
  .aplate { padding: 18px 16px 20px; }
}

/* ---------- カタログ ---------- */
.catalog { border-top: 1px solid var(--rule); padding-top: 64px; }
.animals.sec { padding-bottom: 72px; }
.cat-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.filter-status { font-size: 14px; color: var(--slate); }
.family[hidden], .spread[hidden], .prod[hidden] { display: none; }

.fam-band { background: var(--navy); color: var(--frost); }
.fam-band-in { display: grid; grid-template-columns: 4fr 8fr; gap: 0; padding: 0 !important; max-width: none; }
.fam-text { padding: 56px 48px 56px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); display: flex; flex-direction: column; justify-content: center; }
.fam-count { font-size: 13px; color: var(--gold); letter-spacing: .06em; }
.fam-name { font-family: var(--mincho); font-weight: 700; font-size: 32px; line-height: 1.4; letter-spacing: .06em; margin: 10px 0 16px; }
.fam-lead { color: #DCE1EA; font-size: 15px; }
.fam-series { margin-top: 22px; border-top: 1px solid rgba(198, 163, 90, .5); }
.fam-series li { border-bottom: 1px solid rgba(185, 193, 208, .22); }
.fam-series a { display: block; padding: 9px 0; font-family: var(--mincho); font-weight: 500; font-size: 17px; text-decoration: none; }
.fam-series a:hover { color: var(--gold); }
.fam-fig { position: relative; }
.fam-fig img { width: 100%; height: 100%; min-height: 420px; max-height: 560px; object-fit: cover; }
@media (max-width: 959px) {
  .fam-band-in { grid-template-columns: 1fr; }
  .fam-text { padding: 40px var(--gut) 32px; }
  .fam-name { font-size: 26px; }
  .fam-fig img { min-height: 0; aspect-ratio: 3 / 2; }
}

.spread { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; padding: 72px 0; border-bottom: 1px solid var(--rule); }
.family .spread:last-child { border-bottom: 0; padding-bottom: 104px; }
.sp-info { align-self: start; position: sticky; top: 88px; }
.sp-name { font-family: var(--mincho); font-weight: 700; font-size: 40px; line-height: 1.35; letter-spacing: .06em; }
.sp-one { font-family: var(--mincho); font-weight: 500; font-size: 19px; line-height: 1.8; margin: 18px 0 12px; padding-left: 16px; border-left: 3px solid var(--gold); }
.sp-lead { color: var(--slate); font-size: 14px; }
.sp-dl { margin-top: 22px; border-top: 1px solid var(--navy); font-size: 14px; line-height: 1.7; }
.sp-dl > div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.sp-dl dt { color: var(--slate); font-size: 13px; padding-top: 1px; }
.sp-howto { margin-top: 16px; font-size: 14px; }
.sp-howto a { color: var(--gold-ink); text-underline-offset: 4px; }
.sp-fig { margin-top: 28px; background: var(--plate); }
.sp-fig img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.sp-fig figcaption { font-size: 12px; color: var(--slate); padding: 8px 12px; background: var(--frost); }
@media (max-width: 899px) {
  .spread { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .family .spread:last-child { padding-bottom: 64px; }
  .sp-info { position: static; }
  .sp-name { font-size: 30px; }
  .sp-one { font-size: 17px; }
}

/* 商品 */
.prods { display: grid; gap: 0; border-top: 1px solid var(--navy); }
.prod { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.prod-plate { background: var(--plate); align-self: start; }
.prod-plate img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.prod-name { font-weight: 700; font-size: 17px; line-height: 1.6; }
.prod-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.tag { font-size: 12px; line-height: 1.5; padding: 2px 8px; background: var(--navy); color: var(--frost); }
.tag-form { background: transparent; color: var(--navy); border: 1px solid var(--rule); }
.price { display: flex; align-items: baseline; gap: 4px; }
.price-n { font-family: var(--latin); font-weight: 400; font-size: 26px; letter-spacing: .02em; line-height: 1.3; }
.price-u { font-size: 13px; color: var(--slate); }
.price-none { font-size: 14px; color: var(--slate); }
.buy {
  display: inline-block; margin-top: 12px; background: var(--navy); color: var(--frost); text-decoration: none;
  font-size: 14px; font-weight: 500; padding: 10px 20px; border: 1px solid var(--navy);
}
.buy:hover { background: var(--frost); color: var(--navy); }
.buy-none { margin-top: 12px; font-size: 14px; color: var(--navy); border: 1px dashed var(--slate); display: inline-block; padding: 8px 14px; }
.prod-more { margin-top: 14px; font-size: 14px; }
.prod-more summary, .ht summary { cursor: pointer; list-style: none; }
.prod-more summary::-webkit-details-marker, .ht summary::-webkit-details-marker { display: none; }
.prod-more summary { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 8px; }
.prod-more summary::after, .ht summary::after { content: "＋"; font-family: var(--latin); text-decoration: none; display: inline-block; }
.prod-more[open] summary::after, .ht[open] summary::after { content: "－"; }
.pm-in { margin-top: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--rule); }
.ht-t { font-size: 12px; color: var(--slate); margin-top: 10px; }
.ht-t:first-child { margin-top: 0; }
.ht-x { font-size: 14px; line-height: 1.8; }
@media (max-width: 599px) {
  .prod { grid-template-columns: 120px 1fr; gap: 14px; padding: 18px 0; }
  .prod-name { font-size: 15px; }
  .price-n { font-size: 22px; }
  .buy { padding: 10px 14px; }
}

/* ---------- 与え方 ---------- */
.howto { background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.howto-list { border-top: 2px solid var(--navy); }
.ht { border-bottom: 1px solid var(--rule); }
.ht summary { display: flex; align-items: baseline; gap: 16px; padding: 18px 4px; }
.ht summary::after { margin-left: auto; font-size: 18px; color: var(--gold-ink); }
.ht-name { font-family: var(--mincho); font-weight: 700; font-size: 20px; }
.ht-n { font-size: 13px; color: var(--slate); }
.ht-in { padding: 0 4px 24px; display: grid; gap: 16px; }
.hg { display: grid; grid-template-columns: 4fr 8fr; gap: 24px; padding-top: 16px; border-top: 1px dashed var(--rule); }
.hg:first-child { border-top: 0; padding-top: 0; }
.hg-for { font-size: 13px; font-weight: 500; line-height: 1.8; }
@media (max-width: 767px) { .hg { grid-template-columns: 1fr; gap: 8px; } .ht-name { font-size: 18px; } }

/* ---------- つくり手 ---------- */
.brand { background: var(--navy-2); color: #DCE1EA; padding: 104px 0; }
.brand-in { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; }
.brand-text > p { margin-top: 24px; max-width: 36em; }
.facts { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid rgba(198, 163, 90, .5); }
.facts > div { padding: 14px 0; border-bottom: 1px solid rgba(185, 193, 208, .22); }
.facts dt { font-family: var(--mincho); font-weight: 700; font-size: 17px; color: var(--frost); }
.facts dd { font-size: 14px; margin-top: 4px; }
.years { margin-top: 36px; }
.years li { display: grid; grid-template-columns: 5em 1fr; gap: 16px; padding: 8px 0; font-size: 14px; }
.years .y { font-family: var(--latin); font-size: 20px; color: var(--gold); line-height: 1.3; }
.brand .brand-note { font-size: 14px; color: var(--mist); }
.brand-figs { display: grid; grid-template-columns: 1fr; gap: 24px; align-content: start; }
.brand-figs figure { background: var(--navy); }
.brand-figs figcaption { font-size: 12px; color: var(--mist); padding: 8px 2px 0; background: var(--navy-2); }
.bf-2 { width: 56%; justify-self: end; }
@media (max-width: 899px) {
  .brand { padding: 72px 0; }
  .brand-in { grid-template-columns: 1fr; gap: 40px; }
  .facts { grid-template-columns: 1fr; }
  .brand-figs { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .bf-2 { width: 100%; }
}

/* ---------- お問い合わせ ---------- */
.contact-in { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: end; }
.contact-in p { margin-top: 12px; color: var(--slate); }
.contact-box { border-top: 2px solid var(--navy); padding-top: 20px; }
.contact-box .tel { margin: 0; }
.tel a { font-family: var(--latin); font-size: 44px; font-weight: 300; letter-spacing: .04em; text-decoration: none; color: var(--navy); line-height: 1.2; }
.contact-box .tel-hours { margin-top: 4px; font-size: 14px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px !important; }
.btn-line, .btn-fill { display: inline-block; padding: 12px 20px; font-size: 14px; font-weight: 500; text-decoration: none; border: 1px solid var(--navy); }
.btn-line { color: var(--navy); }
.btn-line:hover { background: var(--plate); }
.btn-fill { background: var(--navy); color: var(--frost); }
.btn-fill:hover { background: var(--frost); color: var(--navy); }
@media (max-width: 767px) { .contact-in { grid-template-columns: 1fr; gap: 24px; } .tel a { font-size: 36px; } }

/* ---------- フッター ---------- */
.site-foot { background: var(--navy); color: var(--mist); padding: 56px 0 48px; font-size: 13px; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: end; }
.foot-logo { color: var(--frost); display: flex; align-items: baseline; }
.foot-logo .logo-mark { transform: translateY(-14px); }
.foot-co { width: 240px; margin-top: 22px; }
.foot-addr { margin-top: 10px; }
.foot-notes p + p { margin-top: 2px; }
.copy { margin-top: 12px !important; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
