:root {
  --bg: #f5f2ea; --card: #ffffff; --ink: #23303f; --sub: #5d6878; --line: #e2ddd0;
  --slate: #5f7390; --slate-soft: #e7ecf3; --bill: #c9a24f; --bill-soft: #f6eedb; --reed: #4f7a5a; --reed-soft: #e5efe6;
  --link: #3e5f8a; --shadow: 0 2px 10px rgba(35, 48, 63, 0.07); --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #151b23; --card: #1e2632; --ink: #e7ebf1; --sub: #a6b0bf; --line: #2e3846;
    --slate: #9fb2cc; --slate-soft: #243042; --bill: #e3c47f; --bill-soft: #3a3222; --reed: #8fc39c; --reed-soft: #1f3326; --link: #9dc0ee; --shadow: 0 2px 10px rgba(0,0,0,.35); }
}
:root[data-theme="dark"] { --bg: #151b23; --card: #1e2632; --ink: #e7ebf1; --sub: #a6b0bf; --line: #2e3846;
  --slate: #9fb2cc; --slate-soft: #243042; --bill: #e3c47f; --bill-soft: #3a3222; --reed: #8fc39c; --reed-soft: #1f3326; --link: #9dc0ee; --shadow: 0 2px 10px rgba(0,0,0,.35); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.85;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
a { color: var(--link); }
img { max-width: 100%; height: auto; display: block; }
.in { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ヘッダー */
.site-head { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-head .in { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 6px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 18px; white-space: nowrap; margin-right: auto; }
.logo.small { font-size: 15px; }
.langs { display: flex; gap: 4px; flex-wrap: wrap; }
.langs a { text-decoration: none; color: var(--sub); font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.langs a[aria-current] { background: var(--slate); color: #fff; border-color: var(--slate); font-weight: 700; }
.cat-nav { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; font-size: 14px; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.cat-nav a:hover { color: var(--link); text-decoration: underline; }

/* 本文の枠 */
.wrap { max-width: 1120px; margin: 0 auto; padding: 16px 16px 48px; }
.wrap.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
main { min-width: 0; }
.article { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 24px 28px; }
.crumbs { font-size: 13px; color: var(--sub); }
.crumbs a { color: var(--sub); }
.article h1 { font-size: 28px; line-height: 1.4; margin: 8px 0 4px; }
.meta { font-size: 13px; color: var(--sub); margin: 0 0 12px; }
.lead { font-size: 17px; }
.body h2, .related h2 { font-size: 22px; line-height: 1.45; margin: 36px 0 12px; padding: 6px 0 6px 12px; border-left: 6px solid var(--bill); }
.body h3 { font-size: 18px; margin: 24px 0 8px; }
.body ul, .body ol { padding-left: 1.4em; }
.body li { margin: 4px 0; }
.note { background: var(--bill-soft); border-radius: 10px; padding: 10px 14px; margin: 16px 0; }
.note p { margin: 4px 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--slate-soft); white-space: nowrap; }

/* 写真 */
.photo { margin: 18px 0; }
.photo img { border-radius: 12px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--slate-soft); }
.photo figcaption { font-size: 13px; color: var(--sub); margin-top: 6px; }
.photo .credit { display: block; font-size: 11px; opacity: 0.85; }
.hero-photo { margin: 12px 0 18px; }

/* カード */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 12px 0; }
.card-link { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--slate); }
.card-link b { display: block; font-size: 16px; line-height: 1.5; }
.card-link span { display: block; font-size: 13px; color: var(--sub); line-height: 1.6; margin-top: 4px; }

/* 会える場所への案内 */
.cta { display: grid; gap: 4px; background: linear-gradient(135deg, var(--reed-soft), var(--slate-soft)); border-radius: var(--r); padding: 14px 16px; margin: 20px 0; }
.cta b { font-size: 16px; }
.cta span { font-size: 14px; color: var(--sub); }
.btn { display: inline-block; justify-self: start; background: var(--slate); color: #fff; text-decoration: none; font-weight: 700; padding: 8px 18px; border-radius: 999px; margin-top: 4px; }
.btn:hover { filter: brightness(1.1); }

/* 物販の案内（Amazon アソシエイト）。「PR」の札を右上に */
.cta.shop { position: relative; background: linear-gradient(135deg, var(--bill-soft), var(--slate-soft)); }
.cta.shop .pr { position: absolute; top: 8px; right: 10px; font-size: 11px; font-weight: 700; color: var(--sub); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; background: var(--card); }
.cta.shop b { padding-right: 36px; }
/* 小さいリンクも本文の列に入れる（絵の列に入ると、絵の列が文字の幅まで広がってボタンが細くなる。2026-10-24 本番で踏んだ） */
.cta.shop .shop-sub { grid-column: 2; font-size: 13px; color: var(--link); justify-self: start; }
.cta.shop .cta-m { grid-row: 1 / span 4; }
/* スマホでは絵を小さくして、見出しとボタンを1行に収める（「ぬいぐる／み」「はこ／ちら」で折り返していた） */
@media (max-width: 480px) {
  .cta.shop { column-gap: 10px; }
  .cta.shop .cta-m { width: 48px; height: auto; align-self: start; margin-top: 4px; }
  .cta.shop .btn { white-space: nowrap; font-size: 15px; padding: 8px 16px; }
}
.site-foot .shop-note { font-size: 12px; color: var(--sub); }

/* サイドバー */
.side { display: grid; gap: 14px; position: sticky; top: 108px; }
.side .cta { margin: 0; }
.side-box { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 16px; }
.side-box h2, .tail h2 { font-size: 15px; margin: 0 0 6px; color: var(--sub); }
.side-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.side-list li { padding: 4px 0; border-top: 1px dashed var(--line); }
.side-list li:first-child { border-top: 0; }
.side-list small { color: var(--sub); }
.side-list a[aria-current] { font-weight: 700; }
.toc-list { margin: 0; padding-left: 1.3em; font-size: 14px; }
.toc-list li { margin: 3px 0; }
.kws { display: flex; flex-wrap: wrap; gap: 6px; }
.kw { font-size: 12px; text-decoration: none; background: var(--slate-soft); color: var(--ink); padding: 2px 10px; border-radius: 999px; }
.side .sticky { max-height: 50vh; overflow-y: auto; }

/* スマホでの置き場所（サイドバーは隠し、目次は冒頭・ほかは記事末へ） */
.toc-mobile, .cta-mobile, .tail { display: none; }
.toc-mobile { background: var(--slate-soft); border-radius: 10px; padding: 8px 14px; margin: 10px 0; }
.toc-mobile summary { font-weight: 700; cursor: pointer; }
.tail { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin-top: 16px; }
.tail h2 { margin-top: 14px; }
.tail h2:first-child { margin-top: 0; }

/* トップ */
.home-hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; margin-bottom: 8px; }
.hero-text h1 { font-size: 40px; line-height: 1.25; margin: 8px 0; letter-spacing: 0.02em; }
.hero-text .lead { font-size: 18px; color: var(--sub); }
.home-hero .photo { margin: 0; }
.home-intro { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 4px 22px; }
.home-cat h2 { font-size: 22px; margin: 28px 0 4px; padding-left: 12px; border-left: 6px solid var(--reed); }

/* フッター */
.site-foot { border-top: 1px solid var(--line); background: var(--card); padding: 20px 0 28px; font-size: 13px; color: var(--sub); }
.site-foot .in { display: grid; gap: 8px; }
.foot-links a { color: var(--sub); }
.foot-series { border-top: 1px dashed var(--line); padding-top: 10px; }
.foot-series .foot-h { margin: 0 0 4px; font-weight: 700; color: var(--ink, inherit); }
.foot-series ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot-series a { color: var(--sub); }

@media (max-width: 900px) {
  .wrap.with-side { display: block; }
  .side { display: none; }
  .toc-mobile, .cta-mobile, .tail { display: block; }
  .home-hero { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .article { padding: 16px 16px 22px; border-radius: 12px; }
  .article h1 { font-size: 23px; }
  .hero-text h1 { font-size: 30px; }
  .body h2, .related h2 { font-size: 19px; }
  .logo { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .home-intro { padding: 2px 16px; }
}
.credits .thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; }
.photo img { object-position: center 30%; }
html[lang="zh-Hans"] body { font-family: system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif; }
html[lang="zh-Hant"] body { font-family: system-ui, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Hiragino Sans CNS", sans-serif; }
html[lang="hi"] body { font-family: system-ui, "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", Mangal, sans-serif; }

/* ===== ポータル化：サムネ・図・数字 ===== */
:root { --f-bird: #8fa3be; --f-bill: #eab53d; --f-ink: #34507a; --f-soft: #e7ecf3; --f-warn: #c8402f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --f-bird: #9fb2cc; --f-bill: #e3c47f; --f-ink: #c9d7ec; --f-soft: #263244; --f-warn: #ff8f80; } }
:root[data-theme="dark"] { --f-bird: #9fb2cc; --f-bill: #e3c47f; --f-ink: #c9d7ec; --f-soft: #263244; --f-warn: #ff8f80; }

/* カード：サムネつき */
.card-link { padding: 0 0 12px; overflow: hidden; display: flex; flex-direction: column; }
.card-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--slate-soft); }
.card-link b { padding: 4px 14px 0; }
.card-link .card-desc { padding: 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-cat { align-self: flex-start; margin: 10px 14px 0; font-size: 11px; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: var(--slate-soft); color: var(--ink); }
.card-cat.c-life { background: #dfe8f8; color: #2b4a7a; } .card-cat.c-words { background: #f6ead0; color: #7a5a1a; }
.card-cat.c-meet { background: #dcefe2; color: #2e5a3e; } .card-cat.c-world { background: #dde6f6; color: #34507a; }
.card-cat.c-fun { background: #fadde3; color: #8a3248; }
.cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }

/* 図 */
.fig { margin: 20px 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.figsvg { width: 100%; height: auto; display: block; }
.fig figcaption { font-size: 13px; color: var(--sub); margin-top: 6px; }
.fig .credit { display: block; font-size: 11px; }
.figsvg text { fill: var(--ink); font-family: inherit; }
.f-label { font-size: 15px; } .f-small { font-size: 13px; } .f-big { font-size: 34px; font-weight: 800; } .f-strong { font-weight: 700; }
.f-bird { fill: var(--f-bird); } .f-bill { fill: var(--f-bill); } .f-eye { fill: var(--f-ink); }
.f-person { fill: var(--line); } .f-leg { fill: var(--f-bird); }
.f-axis { stroke: var(--sub); stroke-width: 2; } .f-dash { stroke: var(--sub); stroke-width: 1.5; stroke-dasharray: 4 4; }
.f-barS { fill: var(--f-bill); } .f-barP { fill: var(--f-bird); opacity: 0.75; }
.f-ring { fill: none; stroke: var(--f-soft); stroke-width: 26; } .f-ringS { fill: none; stroke: var(--f-bill); stroke-width: 26; }
.f-track { stroke: var(--f-bird); stroke-width: 6; stroke-linecap: round; } .f-dot { fill: var(--card); stroke: var(--f-ink); stroke-width: 4; }
.f-dotS { fill: var(--f-bill); stroke: var(--f-ink); stroke-width: 3; } .f-dotC { fill: var(--f-warn); stroke: var(--card); stroke-width: 2; }
.f-egg { fill: #fff; stroke: var(--f-ink); stroke-width: 2; }
.f-node { fill: var(--f-soft); stroke: var(--f-bird); stroke-width: 2; } .f-nodeS { fill: var(--bill-soft); stroke: var(--f-bill); stroke-width: 3; }
.f-tree { fill: none; stroke: var(--f-bird); stroke-width: 3; }
.f-cont { stroke: var(--card); stroke-width: 3; } .f-wild { fill: #b9dcc3; } .f-zoo { fill: #c9d8f0; } .f-none { fill: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .f-wild { fill: #2f5a3d; } :root:not([data-theme="light"]) .f-zoo { fill: #2f4566; } }
.f-land { fill: var(--f-soft); stroke: var(--f-bird); stroke-width: 2; } .f-range { fill: #b9dcc3; opacity: 0.85; }

/* トップ：ヒーロー・数字・見出し */
.hero-text .logo-bird { width: 120px; height: 120px; }
.go-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn.ghost { background: transparent; color: var(--slate); border: 2px solid var(--slate); }
.home-stats h2, .home-map h2, .home-cat h2 { display: flex; align-items: center; gap: 8px; font-size: 22px; margin: 30px 0 10px; padding: 0; border: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-tile { display: grid; gap: 2px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px; text-decoration: none; color: var(--ink); transition: transform .15s; }
.stat-tile:hover { transform: translateY(-2px); }
.stat-tile img { width: 100%; height: auto; border-radius: 8px; }
.stat-tile b { font-size: 20px; line-height: 1.3; margin-top: 6px; }
.stat-tile span { font-size: 13px; color: var(--sub); }
.home-intro { margin-top: 20px; }
@media (max-width: 700px) { .stat-grid { grid-template-columns: 1fr 1fr; } .stat-tile b { font-size: 17px; } }
@media (max-width: 480px) { .cards { grid-template-columns: 1fr; } .home-stats h2, .home-map h2, .home-cat h2 { font-size: 19px; } }

/* マスコット（/m/*.svg）を置く場所 */
.masc { display: inline-block; flex: none; vertical-align: middle; }
.h-m { margin-right: 8px; vertical-align: -0.35em; }
.home-cat h2, .home-stats h2, .home-map h2, .related h2 { display: flex; align-items: center; }
.side-box h2 { display: flex; align-items: center; }
.lead-box { display: flex; align-items: center; gap: 12px; background: var(--slate-soft); border-radius: var(--r); padding: 10px 14px; margin: 12px 0 16px; }
.lead-box .lead { margin: 0; }
.cta { grid-template-columns: auto 1fr; column-gap: 14px; }
.cta .cta-m { grid-row: 1 / span 3; align-self: center; }
.cta b, .cta span, .cta .btn { grid-column: 2; justify-self: start; }
.note { position: relative; padding-left: 58px; }
.note .note-m { position: absolute; left: 10px; top: 10px; }
.foot-m { margin-right: 4px; }
.hero-cool { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 300px; background: radial-gradient(circle at 50% 60%, var(--slate-soft), transparent 70%); border-radius: var(--r); }
.hero-cool > img { width: min(100%, 300px); height: auto; }
.hero-chibi { position: absolute; right: 6%; bottom: 4%; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.nf { text-align: center; }
@media (max-width: 720px) {
  .lead-box .lead-m { width: 48px; height: 48px; }
  .hero-cool { min-height: 220px; }
  .hero-cool > img { width: 200px; }
  .hero-chibi .masc { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) { .hero-chibi { animation: none; } }

/* トップの入口タイル・2列の一覧（参考：となりのハシビロコウ） */
.home-nav h2, .home-list h2 { display: flex; align-items: center; font-size: 22px; margin: 28px 0 10px; }
.nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nav-tile { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow); text-decoration: none; }
.nav-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.nav-tile:hover img { transform: scale(1.05); }
.nav-tile span { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 22px 14px 10px; background: linear-gradient(transparent, rgba(20, 30, 45, .72)); color: #fff; }
.nav-tile b { font-size: 18px; }
.nav-tile small { font-size: 13px; opacity: .9; }
.home-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.home-list { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 4px 16px 14px; }
.home-list h2 { font-size: 19px; margin: 10px 0 6px; }
.mini { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line, #e3e7ec); text-decoration: none; color: var(--ink); }
.mini img { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; }
.mini span { display: grid; gap: 4px; }
.mini b { font-size: 14px; line-height: 1.5; }
.mini .card-cat { justify-self: start; }
.more { display: inline-block; margin-top: 10px; font-weight: 700; }
.card-cat.c-near { background: #e3f0ea; color: #2c5a48; }
@media (max-width: 720px) {
  .nav-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav-tile b { font-size: 15px; }
  .home-cols { grid-template-columns: 1fr; }
}
.home-cols { margin-top: 24px; }
.mini .card-cat { margin: 0; }
/* 予約が消えたあとも本数をそろえる */
.side-list.latest li:nth-child(n+7) { display: none; }
.related .cards > a:nth-child(n+5) { display: none; }

/* メイン訴求（トップの大きな一文） */
.hero-text .catch { font-size: 30px; font-weight: 800; line-height: 1.4; margin: 6px 0 4px; letter-spacing: .02em; color: var(--ink); }
@media (max-width: 720px) { .hero-text .catch { font-size: 22px; } }
.hero-text .catch span { display: inline-block; }

/* データ表（[[table:]] [[spec:]]）・症状判別表（[[diagnose:]]）・計算ツール（[[tool:]]） */
.data-table table caption { caption-side: top; text-align: left; font-weight: 700; padding: 6px 2px; color: var(--ink); }
.data-table th[scope="row"] { text-align: left; white-space: nowrap; background: var(--slate-soft); }
.data-table.spec table { max-width: 560px; }
.data-table.spec th[scope="row"] { width: 38%; }
.data-source { font-size: 13px; color: var(--sub); margin: -8px 0 16px; }
details.data-source summary { cursor: pointer; display: inline-block; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
details.data-source ul { margin: 6px 0 0; padding-left: 1.2em; }
details.data-source li { margin: 2px 0; overflow-wrap: anywhere; }
.diagnose td, .diagnose th { vertical-align: top; }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 16px 0; box-shadow: var(--shadow); }
.tool label { display: block; font-size: 14px; color: var(--sub); margin: 8px 0 4px; }
.tool input, .tool select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); max-width: 100%; }
.tool .tool-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; }
.tool .tool-out { margin-top: 12px; font-size: 18px; font-weight: 700; }
.tool .tool-out small { font-weight: 400; color: var(--sub); font-size: 13px; display: block; }
/* 案内役の名前（コウくん） */
.note .note-n { display: block; font-size: 12px; font-weight: 700; color: var(--slate); margin-bottom: 2px; }

/* 記事の冒頭のあらすじ（H2 を先に並べる。2026-10-25 本人「目次の内容を先出し」） */
.synopsis { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--slate, #5d7290); border-radius: var(--r); padding: 12px 16px; margin: 0 0 16px; }
.synopsis .syn-h { margin: 0 0 2px; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--sub); }
.synopsis .syn-l { margin: 0 0 6px; font-size: 14px; }
.synopsis ol { margin: 0; padding-left: 22px; font-size: 14px; line-height: 1.7; }
.synopsis li { margin: 2px 0; }
.synopsis a { color: var(--ink); }
.synopsis .syn-m { margin: 6px 0 0; font-size: 13px; color: var(--sub); }
/* サイドバー（幅300px）の案内は小さく。絵を細くして、文章とボタンに幅を回す（物販の箱が330px超の縦長になっていた） */
.side .cta { column-gap: 10px; padding: 12px 14px; }
.side .cta .cta-m { width: 44px; height: auto; align-self: start; margin-top: 2px; }
.side .cta b { font-size: 14px; line-height: 1.5; }
.side .cta span { font-size: 12px; line-height: 1.6; }
.side .cta .btn { font-size: 13px; padding: 6px 12px; }
.side .cta.shop .shop-sub { font-size: 12px; }

/* スマホのヘッダー（2026-10-26 本人「スマホ版の言語表示とか、タブにして」）：言語は「日本語 ▾」の1つのボタン、カテゴリは横に送れる1行のタブ */
.lang-sw { display: none; position: relative; flex: none; }
.lang-sw summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.lang-sw summary::-webkit-details-marker { display: none; }
.lang-sw summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -3px 0 0 3px; }
.lang-sw[open] summary { background: var(--slate); border-color: var(--slate); color: #fff; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; display: grid; min-width: 160px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 4px; }
.lang-list a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.lang-list a[aria-current] { background: var(--slate-soft); font-weight: 700; }
@media (max-width: 900px) {
  .site-head .langs { display: none; }
  .lang-sw { display: block; }
  .site-head .in { flex-wrap: nowrap; }
  .site-head .logo { min-width: 0; }
  .site-head .logo span { overflow: hidden; text-overflow: ellipsis; }
  .site-head .cat-nav.in { flex-wrap: nowrap; gap: 6px; padding-top: 2px; }
  .cat-nav a { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: var(--card); }
  .cat-nav a[aria-current] { background: var(--slate); border-color: var(--slate); color: #fff; }
}
