/* ウリカフェHP。元はCodexのモック（design/tokens-hp.css + design/mocks/hp.css、T000）。ここが本物の正本 */
/* T000: 勤怠アプリ案Bの白黒ラベルを、喫茶店の紙と木の色へ。 */
:root {
  --bg: #f7f5f0;
  --surface: #fffdf8;
  --surface-2: #ede7dd;
  --ink: #171412;
  --ink-sub: #5f5952;
  --line: #171412;
  --primary: #171412;
  --on-primary: #fffdf8;
  --accent: #8c422e;
  --focus: #8c422e;
  --placeholder: #e4e4e4;
  --placeholder-ink: #626262;
  --font-body: 15px;
  --font-sub: 14px;
  --font-min: 12px;
  --leading-body: 1.8;
  --leading-heading: 1.4;
  --tracking-label: .16em;
  /* 書体はWebフォントで固定（端末の標準の字に任せない）。docs/design-rules.md */
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;  /* 詰め組み(palt)が効く書体だけ。Zen Kaku は Google Fonts 版に palt が無い */
  --font-heading: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-s: 2px;
  --tap: 44px;
  --button-height: 52px;
  --mark-size: 48px;
  --stroke: 1.6;
  --border-width: 1px;
  --double-width: 4px;
  --card-border: 1px solid var(--line);
}

/* ワイヤーと同じ構成・写真比率を保つ基礎レイアウト。 */
[hidden]{display:none!important}
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --sub:var(--ink-sub);--box:var(--placeholder);--box-ink:var(--placeholder-ink);--soft:var(--surface-2);
  --gut:16px;--max:1080px;
}
html{-webkit-text-size-adjust:100%}
body{font-family:system-ui,-apple-system,"Hiragino Sans","Yu Gothic UI",sans-serif;color:var(--ink);background:var(--bg);line-height:1.6;font-size:15px;padding-bottom:72px}
a{color:inherit}
img,svg{display:block}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gut)}

/* 写真の置き場 */
.ph{background:var(--box);color:var(--box-ink);display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;line-height:1.4;padding:8px;border-radius:4px;position:relative;overflow:hidden}
.ph::before{content:"";position:absolute;inset:0;background:linear-gradient(to top right,transparent calc(50% - .5px),#ccc calc(50% - .5px),#ccc calc(50% + .5px),transparent calc(50% + .5px))}
.ph span{position:relative;background:var(--box);padding:2px 6px}
.r43{aspect-ratio:4/3}.r11{aspect-ratio:1/1}.r169{aspect-ratio:16/9}.r34{aspect-ratio:3/4}

/* 上のバー */
.top{position:sticky;top:0;z-index:10;background:var(--bg);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;height:56px}
.logo{display:flex;align-items:center;gap:8px;font-weight:700;text-decoration:none;letter-spacing:.04em}
.logo i{width:36px;height:36px;border:2px solid var(--ink);border-radius:50%;display:flex;align-items:center;justify-content:center;font-style:normal;font-size:9px}
.nav{display:none;gap:28px;font-size:14px}
.nav a{text-decoration:none}
.nav a[aria-current]{border-bottom:2px solid var(--ink)}
.menu-btn{width:44px;height:44px;border:1px solid var(--line);border-radius:6px;background:none;display:flex;align-items:center;justify-content:center}

/* 節 */
section{padding:40px 0;border-bottom:1px solid #eee}
.h2{font-size:20px;font-weight:700;margin-bottom:4px;letter-spacing:.04em}
.en{font-size:11px;color:var(--sub);letter-spacing:.2em;margin-bottom:16px;display:block}
.lead{color:var(--sub);font-size:14px;margin-bottom:16px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border:2px solid var(--ink);border-radius:6px;text-decoration:none;font-weight:700;font-size:15px;background:var(--bg)}
.btn.fill{background:var(--ink);color:#fff}
.btn.block{display:flex;width:100%}
.more{display:block;text-align:right;margin-top:16px;font-size:14px;font-weight:700}

/* 最初の画面 */
.hero{position:relative;border-bottom:none;padding:0}
.hero .ph{height:min(62svh,520px);border-radius:0}
.hero-card{background:var(--bg);margin:-72px var(--gut) 0;position:relative;border:2px solid var(--ink);border-radius:6px;padding:16px}
.hero-card .big{font-size:22px;font-weight:700;line-height:1.35}
.hero-card .facts{display:flex;flex-wrap:wrap;gap:4px 16px;margin:8px 0 12px;font-size:14px}
.hero-card .row{display:grid;grid-template-columns:1fr 1fr;gap:8px}

/* 横にめくる列 */
.rail{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px;margin-right:calc(var(--gut)*-1)}
.rail>*{flex:0 0 78%;scroll-snap-align:start}
.dots{display:flex;gap:6px;justify-content:center;margin-top:8px}
.dots i{width:6px;height:6px;border-radius:50%;background:var(--line)}
.dots i:first-child{background:var(--ink)}

.seats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}
.seats div{border:1px solid var(--line);border-radius:6px;padding:10px 6px;text-align:center;font-size:12px}
.seats b{display:block;font-size:20px}
.ways{display:grid;gap:8px}
.ways li{list-style:none;display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:6px;padding:12px}
.ways li .ic{width:40px;height:40px;flex:0 0 40px;border:1.5px solid var(--ink);border-radius:50%}
.ways small{display:block;color:var(--sub);font-size:12px}

/* 品のカード */
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px 12px}
.item .ph{margin-bottom:8px}
.item .nm{font-weight:700;font-size:14px;line-height:1.4}
.item .pr{font-size:14px}
.item .ds{font-size:12px;color:var(--sub);line-height:1.5}

/* 営業・アクセスの枠（全ページ共通） */
.visit{background:var(--soft)}
.visit dl{display:grid;grid-template-columns:5em 1fr;gap:8px 12px;font-size:14px;margin-bottom:16px}
.visit dt{color:var(--sub)}
.visit .acts{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.visit .acts .btn{padding:0 4px;font-size:13px;flex-direction:column;min-height:64px;gap:2px}
.visit .acts .btn i{width:20px;height:20px;border:1.5px solid currentColor;border-radius:50%}

footer{padding:32px 0 24px;font-size:13px;color:var(--sub)}
footer .links{display:flex;flex-wrap:wrap;gap:8px 20px;margin-bottom:12px}

/* 下の固定バー（スマホのみ） */
.dock{position:fixed;left:0;right:0;bottom:0;z-index:20;background:var(--bg);border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr 1fr;padding:6px 8px calc(6px + env(safe-area-inset-bottom));gap:6px}
.dock a{min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;font-size:11px;font-weight:700;gap:2px;border-radius:6px}
.dock a i{width:20px;height:20px;border:1.5px solid currentColor;border-radius:50%}
.dock a.main{background:var(--ink);color:#fff}

/* ページ内の見出し・チップ */
.pagehead{padding:28px 0 8px;border:none}
.pagehead h1{font-size:24px;letter-spacing:.04em}
.chips{position:sticky;top:56px;z-index:9;background:var(--bg);display:flex;gap:8px;overflow-x:auto;padding:10px var(--gut);border-bottom:1px solid var(--line)}
.chips a{flex:0 0 auto;border:1px solid var(--ink);border-radius:999px;padding:6px 14px;font-size:13px;text-decoration:none;min-height:36px;display:flex;align-items:center}
.chips a:first-child{background:var(--ink);color:#fff}

.mlist{display:grid;gap:12px}
.mrow{display:grid;grid-template-columns:96px 1fr;gap:12px;align-items:center;border-bottom:1px solid #eee;padding-bottom:12px}
.mrow .nm{font-weight:700}
.mrow .pr{font-weight:700}
.mrow .ds{font-size:12px;color:var(--sub)}
.mrow .tg{display:inline-block;font-size:11px;border:1px solid var(--line);border-radius:4px;padding:0 6px;margin-right:4px}

/* 豆 */
.bean{border:1px solid var(--line);border-radius:6px;padding:14px;display:grid;gap:8px}
.bean .nm{font-weight:700;font-size:16px}
.roast{display:grid;grid-template-columns:3em 1fr 3em;align-items:center;gap:8px;font-size:11px;color:var(--sub)}
.roast .bar{display:grid;grid-template-columns:repeat(5,1fr);gap:3px}
.roast .bar i{height:8px;border:1px solid var(--ink);border-radius:2px}
.roast .bar i.on{background:var(--ink)}
.tags{display:flex;gap:6px;flex-wrap:wrap}
.tags span{font-size:12px;border:1px solid var(--ink);border-radius:999px;padding:1px 10px}
.bean .pr{display:flex;justify-content:space-between;font-size:14px;border-top:1px dashed var(--line);padding-top:8px}

/* アクセス */
.hours{border:2px solid var(--ink);border-radius:6px;padding:16px}
.hours .t{font-size:28px;font-weight:700;letter-spacing:.02em}
.steps{counter-reset:s;display:grid;gap:16px}
.steps li{list-style:none;display:grid;grid-template-columns:1fr;gap:6px}
.steps li b::before{counter-increment:s;content:counter(s) ". "}
.from{display:grid;gap:8px}
.from div{border:1px solid var(--line);border-radius:6px;padding:12px}
.from b{display:block}
.from span{font-size:13px;color:var(--sub)}
table.spec{width:100%;border-collapse:collapse;font-size:14px}
table.spec th,table.spec td{text-align:left;padding:10px 0;border-bottom:1px solid #eee;vertical-align:top}
table.spec th{width:6em;color:var(--sub);font-weight:400}

/* PC */
@media (min-width:900px){
  :root{--gut:32px}
  body{padding-bottom:0;font-size:16px}
  .dock{display:none}
  .nav{display:flex}
  .menu-btn{display:none}
  .top .wrap{height:72px}
  .chips{top:72px}
  section{padding:72px 0}
  .h2{font-size:26px}
  .hero .ph{height:min(78vh,720px)}
  .hero-card{position:absolute;left:max(32px,calc((100% - var(--max))/2 + 32px));bottom:48px;margin:0;width:420px}
  .rail{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:auto auto;overflow:visible;margin-right:0}
  .rail>*{flex:none}
  .rail>*:first-child{grid-row:span 2;aspect-ratio:auto}
  .dots{display:none}
  .split{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
  .seats{margin-top:0}
  .grid2.g4{grid-template-columns:repeat(4,1fr)}
  .grid3pc{grid-template-columns:repeat(6,1fr)!important}
  .visit .acts{max-width:480px}
  .mlist{grid-template-columns:1fr 1fr;gap:16px 40px}
  .mrow{grid-template-columns:120px 1fr}
  .beans{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
  .steps{grid-template-columns:repeat(3,1fr)}
  .from{grid-template-columns:repeat(3,1fr)}
}

/* 喫茶店の白黒ラベル。装飾は枠と文字に、色は写真に。 */
html { scroll-padding-top: 140px; }
body { font-family: var(--font-sans); line-height: var(--leading-body); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
a { text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
.icon { width: 22px; height: 22px; flex: 0 0 22px; }
.photo { position: relative; overflow: hidden; background: var(--surface-2); }
.photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.ph { border-radius: 0; border: 1px solid #ccc; }
.ph span { padding: 4px 8px; }
.top { background: var(--surface); border-bottom: 4px double var(--ink); }
.top .wrap { height: 64px; }
.logo { font-size: 14px; letter-spacing: .07em; min-height: 48px; }
.logo .mark { width: 44px; height: 48px; object-fit: contain; }
.menu-btn { border: 1px solid var(--ink); border-radius: 0; }
.nav a { min-width: 44px; min-height: 48px; display: flex; align-items: center; }
.nav a[aria-current] { border-bottom: 2px solid var(--accent); }
section { padding: 48px 0; border-bottom: 1px solid #d9d2c7; }
.h2 { display: table; max-width: 100%; padding: 5px 12px; background: var(--ink); color: var(--on-primary); font-size: 20px; font-family: var(--font-heading); line-height: 1.5; letter-spacing: .08em; }
.en { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .2em; margin-top: 8px; margin-bottom: 24px; }
.lead { line-height: 1.9; }
.btn { min-height: var(--button-height); border-radius: 0; border-width: 1px; background: var(--surface); position: relative; }
.btn.fill { background: var(--primary); color: var(--on-primary); border: 4px double var(--on-primary); outline: 1px solid var(--ink); outline-offset: -1px; }
.btn:hover { background: var(--surface-2); }
.btn.fill:hover { background: #342a23; }
[aria-disabled="true"] { color: #68635d; background: #e4e1db; border: 1px solid #b7b0a6; cursor: default; text-decoration: none; }
.btn.fill[aria-disabled="true"] { background: #e4e1db; color: #68635d; border: 1px solid #b7b0a6; outline: none; }
.hero { padding: 0 0 12px; }
.hero > .photo { height: clamp(260px, 48svh, 420px); }
.hero > .photo img { object-position: 52% 48%; }
.hero-card { padding: 20px 16px; background: var(--surface); border: 5px double var(--ink); border-radius: 0; margin-top: -48px; }
.hero-card .big { font-family: var(--font-heading); font-size: 26px; letter-spacing: .03em; line-height: 1.5; }
.hero-card .facts { display: grid; gap: 0; margin: 10px 0 16px; font-size: 13px; }
.hero-card .row .btn { font-size: 14px; padding: 0 8px; }
.rail { gap: 16px; }
.rail > * { flex-basis: 80%; }
.rail .photo { aspect-ratio: 4 / 3; }
.dots i { background: #c4bbae; }
.dots i.active { background: var(--ink); }
.seats { border: 4px double var(--ink); gap: 0; background: var(--surface); }
.seats div { border: 0; border-radius: 0; padding: 14px 6px; }
.seats div + div { border-left: 1px solid #d9d2c7; }
.seats b { font-family: Georgia, serif; font-size: 28px; line-height: 1.4; }
.ways li { border: 0; border-bottom: 1px solid #d9d2c7; border-radius: 0; padding: 12px 0; }
.ways li .ic { border: 0; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.ways li .icon { width: 28px; height: 28px; }
.item .photo { margin-bottom: 10px; }
.item .nm { font-family: var(--font-heading); font-size: 16px; }
.item .pr { color: var(--accent); margin-top: 6px; font-weight: 700; }
.item .ds { margin-top: 2px; }
.tags span { border-color: #b7b0a6; border-radius: 2px; background: var(--surface); padding: 3px 10px; }
.visit { background: var(--surface-2); border-top: 4px double var(--ink); }
.visit dl { line-height: 1.9; }
.visit .acts .btn { min-height: 72px; gap: 6px; }
.more { min-height: 44px; display: flex; justify-content: flex-end; align-items: center; }
footer { padding: 32px 0; background: var(--surface); }
footer .links { gap: 0 20px; }
footer .links a { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; }
.dock { border-top: 4px double var(--ink); background: var(--surface); }
.dock a { border-radius: 0; min-height: 48px; }
.dock a.main { background: var(--ink); color: var(--on-primary); }
.pagehead { padding: 32px 0 16px; }
.pagehead h1 { font-family: var(--font-heading); font-size: 30px; border-bottom: 4px double var(--ink); padding-bottom: 14px; letter-spacing: .08em; }
.pagehead .lead { margin-top: 16px; margin-bottom: 0; }
.chips { top: 68px; padding: 10px 16px; background: var(--surface); }
.chips a { min-height: 44px; min-width: 44px; border-radius: 2px; }
.mrow { border-bottom: 1px solid #d9d2c7; gap: 16px; padding-bottom: 16px; }
.mrow .nm { font-family: var(--font-heading); line-height: 1.6; }
.mrow .pr { color: var(--accent); }
.mrow .tg { border-radius: 0; }
.bean { border: 4px double var(--ink); border-radius: 0; padding: 20px; background: var(--surface); gap: 14px; }
.bean .nm { font-family: var(--font-heading); font-size: 18px; }
.bean .pr { border-top: 1px solid #d9d2c7; padding-top: 14px; }
.bean .pr b { color: var(--accent); }
.roast .bar i { height: 10px; border-radius: 0; }
.hours { border: 5px double var(--ink); border-radius: 0; padding: 24px 20px; background: var(--surface); }
.hours .t { font-family: Georgia, var(--font-sans); font-size: 34px; }
.steps { gap: 28px; }
.steps li b { font-family: var(--font-heading); }
.steps li b::before { color: var(--accent); }
.from { gap: 16px; }
.from div { border: 1px solid var(--ink); border-radius: 0; padding: 20px; background: var(--surface); }
.from b { font-family: var(--font-heading); margin-bottom: 8px; }
table.spec th, table.spec td { padding: 16px 0; border-bottom-color: #d9d2c7; overflow-wrap: anywhere; }
table.spec th { width: 6em; }
table.spec a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; }
.copy-address { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; background: none; border: 0; text-decoration: underline; text-underline-offset: .25em; font-size: 13px; }
.copy-status { display: block; font-size: 12px; color: var(--accent); }

@media (max-width: 899px) {
  .nav[data-open="true"] { display: flex; position: absolute; top: 100%; left: 0; right: 0; padding: 16px; gap: 0; flex-direction: column; background: var(--surface); border-bottom: 4px double var(--ink); box-shadow: 0 12px 16px #17141218; }
  .nav[data-open="true"] a { padding: 8px 16px; }
}
@media (min-width: 900px) {
  html { scroll-padding-top: 160px; }
  .top .wrap { height: 84px; }
  .logo { font-size: 17px; gap: 12px; }
  .logo .mark { width: 48px; height: 52px; }
  .nav { gap: 32px; }
  section { padding: 80px 0; }
  .h2 { font-size: 26px; padding: 5px 18px; }
  .hero { padding: 0; }
  .hero > .photo { height: min(76vh, 720px); }
  .hero > .photo img { object-position: center 56%; }
  .hero-card { width: 460px; padding: 28px; bottom: 48px; margin: 0; }
  .hero-card .big { font-size: 34px; }
  .hero-card .facts { font-size: 15px; margin: 16px 0 24px; }
  .hero-card .row .btn { font-size: 15px; }
  .rail > :first-child { aspect-ratio: auto; }
  .rail { grid-template-columns: 2fr 1fr 1fr; }
  .pagehead { padding: 56px 0 24px; }
  .pagehead h1 { font-size: 40px; }
  .chips { top: 88px; padding-left: max(32px, calc((100% - 1080px) / 2 + 32px)); }
  .visit .acts { max-width: 560px; }
  .visit dl { max-width: 700px; }
  .beans { gap: 20px !important; }
  .hours .t { font-size: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background-color .15s ease; }
}
/* スクロール後も選択中の点は1つだけ。 */
.dots i:first-child:not(.active) { background: #c4bbae; }

/* ブログ */
.post-list { display: grid; gap: 24px; }
.post-card { display: grid; gap: 6px; text-decoration: none; }
.post-card .photo { margin-bottom: 4px; }
.post-card time, .post time { color: var(--sub); font-size: 13px; margin-right: 8px; }
.post-card .tt { font-family: var(--font-heading); font-weight: 700; font-size: 17px; line-height: 1.6; }
.post-card:hover .tt { text-decoration: underline; text-decoration-thickness: 2px; }
.draft { display: inline-block; justify-self: start; margin-left: 0; font-size: 12px; font-weight: 700; color: var(--on-primary); background: var(--accent); padding: 0 8px; }
.post { padding: 24px 0 48px; }
.post .wrap { max-width: 720px; }
.crumbs { font-size: 13px; color: var(--sub); margin-bottom: 16px; }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.post h1 { font-family: var(--font-heading); font-size: 26px; line-height: 1.5; letter-spacing: .04em; border-bottom: 4px double var(--ink); padding-bottom: 12px; margin-bottom: 8px; }
.post > .wrap > .photo { margin: 20px 0 8px; }
.prose { font-size: 16px; line-height: 2; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-family: var(--font-heading); font-size: 20px; line-height: 1.5; margin-top: 2em; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.prose h3 { font-size: 17px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose .photo, .prose .ph { margin: 1.6em 0; }
.prose a { font-weight: 700; }
.post-next { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 40px; }  /* スマホは縦に1つずつ（2列だと「行き方・営業を見る」が折り返す） */
@media (min-width:900px) {
  .post-list { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .post-next { grid-template-columns: 1fr 1fr; }
  .post h1 { font-size: 32px; }
}

/* ===== 文字と並びの決まり（docs/design-rules.md）。ここより上の大きさ指定はここで上書きする ===== */
:root {
  --fs-label: 13px;  /* 英字ラベル・日付・下のバー・タグ */
  --fs-sub: 14px;    /* 補足・説明・表の見出し・フッター */
  --fs-body: 16px;   /* 本文・ボタン・メニュー */
  --fs-name: 18px;   /* 品名・豆の名前・ロゴ */
  --fs-h2: 22px;
  --fs-h1: 28px;
}
@media (min-width:900px) { :root { --fs-h2: 26px; --fs-h1: 36px; } }

body { font-family: var(--font-sans); font-size: var(--fs-body); }
h1, h2, h3, .h2, .nm, .big, .tt { font-family: var(--font-heading); }
/* 日本語の改行は文節で: 組み立て時に文節の切れ目へ <wbr> を入れてある（tools/build.mjs phraseBreaks）。
   keep-all＝<wbr>以外では折り返さない。長すぎる語だけは break-word で逃がす。text-wrap: pretty は使わない */
main, header, footer, .dock { word-break: keep-all; overflow-wrap: break-word; }
/* 和文は詰め組み（palt）。等幅のままだと「メ ニ ュ ー」のように間延びする */
body { font-feature-settings: "palt"; letter-spacing: .03em; }

.en, .dock a, .tags span, .mrow .tg, .roast, .ph, .ph span, .seats div, .post-card time, .post time, .crumbs, .draft { font-size: var(--fs-label); }
.ds, small, .item .ds, .bean .ds, .ways small, .mrow .ds, .visit dt, table.spec th, footer, .more, .hero-card .facts, .chips a, .copy-address, .visit .acts .btn, .bean .pr, .dots { font-size: var(--fs-sub); }
p, .lead, .visit dl, .visit dd, table.spec, table.spec td, .btn, .hero-card .row .btn, .nav, .item .pr, .mrow, .hours p, .prose { font-size: var(--fs-body); }
.nm, .item .nm, .bean .nm, .mrow .nm, .logo, .post-card .tt { font-size: var(--fs-name); }
.h2, .prose h2 { font-size: var(--fs-h2); }
.pagehead h1, .post h1, .hero-card .big { font-size: var(--fs-h1); }
/* 大きな数字（席数・営業時間）と英語版の店名（.brand）は飾りとして別扱い */
.seats b { font-size: 28px; }
.hours .t { font-size: 34px; }
@media (min-width:900px) { .hours .t { font-size: 40px; } }
.lead { color: var(--ink); }

/* 文字のリンクは「最低幅」で広げない＝短い語だけ箱が余って間隔と下線がずれる。左右の余白で押せる広さを取る */
.nav { gap: 0; }
.nav a { min-width: 0; padding: 0 14px; justify-content: center; position: relative; border-bottom: 0; }
.nav a[aria-current] { border-bottom: 0; }
.nav a[aria-current]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; background: var(--accent); }
footer .links { gap: 0; margin-left: -10px; }
footer .links a { min-width: 0; padding: 0 10px; justify-content: center; }
footer .links a[aria-disabled="true"] { background: none; border: 0; color: var(--sub); text-decoration: none; }

/* メニューの値段の一覧（品名と値段を1行ずつ）。写真のある品だけ .mrow */
.plist { list-style: none; margin-top: 8px; }
.plist li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #d9d2c7; font-size: var(--fs-body); }
.plist .pr { color: var(--accent); font-weight: 700; white-space: nowrap; }
.plist-opt li { font-size: var(--fs-sub); padding: 8px 0; }
.mlist + .plist { margin-top: 16px; }
.split > .plist { margin-top: 0; }
.note { margin-top: 12px; font-size: var(--fs-sub); color: var(--sub); }
.h3 { font-family: var(--font-heading); font-size: var(--fs-name); margin-top: 32px; }

/* 豆: 焙煎度はお店のラベルと同じ8段階 */
.roast .bar.bar8 { grid-template-columns: repeat(8, 1fr); }
.bean .rl { font-size: var(--fs-label); color: var(--sub); margin-top: -8px; }
.bean small { font-family: var(--font-sans); font-weight: 400; font-size: var(--fs-sub); color: var(--sub); }
/* 文字の列は縮められるように（keep-all で長い語が縮まず、1fr の列が画面からはみ出した 2026-10-21） */
.mrow { grid-template-columns: 96px minmax(0, 1fr); }
.plist li { grid-template-columns: minmax(0, 1fr) auto; }
@media (min-width:900px) { .mrow { grid-template-columns: 120px minmax(0, 1fr); } }
/* 並びの中の部品は、中の長い語に合わせて広がらない（「エスプレッソティラミス」で隣の列が押し出され、文字が切れた 2026-10-21）。
   keep-all で語の途中では折れないので、列が縮められないと画面の外へはみ出す。新しく grid を作ったらここに足す */
:where(.grid2, .split, .mlist, .beans, .post-list, .steps, .from, .seats, .visit .acts, .hero-card .row, .post-next, .rail) > * { min-width: 0; }

/* 駅まわりの略図（src/partials/access-map.html）。文字が13px未満にならないよう、スマホでは描いた大きさのまま・PCでも広げすぎない */
.area-map { max-width: 560px; margin: 0 auto; }
.area-map svg { display: block; width: 100%; height: auto; border: 1px solid var(--ink); font-family: var(--font-sans); }
.area-map figcaption { margin-top: 8px; font-size: var(--fs-sub); color: var(--sub); }

/* アクセス: 住所などの表は詰めて、すぐ下の地図・道順に目が行くように（2026-10-21 柴山さん） */
table.spec.tight th, table.spec.tight td { padding: 8px 0; line-height: 1.6; }
table.spec.tight th { width: 4.5em; }
.access-info { padding-bottom: 20px; }
.access-map { padding-top: 24px; }
.access-info .hours + div { margin-top: 12px; }
@media (min-width:900px) { .access-info .hours + div { margin-top: 0; } }

/* 小さい写真を並べる（元の写真が小さいもの用） */
.thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 160px)); gap: 12px; margin-top: 16px; }

/* よくある質問（src/faq.json） */
.faq dt { font-weight: 700; font-size: var(--fs-body); padding-top: 16px; border-top: 1px solid #d9d2c7; }
.faq dt:first-child { border-top: 0; padding-top: 0; }
.faq dd { font-size: var(--fs-body); line-height: 1.8; margin: 6px 0 16px; }

/* 注意書き（メニューは変わることがある 2026-10-23）。枠で囲んで目に入るように。色は文字だけでなく枠と見出しでも分かる */
.notice { margin-top: 16px; padding: 12px 14px; border: 2px solid var(--accent); background: var(--surface); font-size: var(--fs-sub); line-height: 1.8; }
.notice b { display: block; color: var(--accent); font-size: var(--fs-sub); margin-bottom: 2px; }

/* 営業時間が2つ（平日・土日祝 2026-10-23） */
.hours .t + .t { margin-top: 4px; }
.hours .t .d { display: inline-block; min-width: 3.6em; font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 700; color: var(--sub); vertical-align: middle; margin-right: 8px; }

/* 時刻の範囲（8:00〜18:00 など）を途中で折り返さない */
.nw { white-space: nowrap; }

/* ---------- 英語版（/en/）。書体は 2026-10-28 決定 B''＝店名だけ Cormorant Garamond、ほかは全部 Inter（docs/en/requirements.md） ---------- */
.page-en { font-family: "Inter", var(--font-sans); font-feature-settings: normal; letter-spacing: 0; }
.page-en :is(h1, h2, h3, .h2, .h3, .nm, .big, .tt, .steps li b) { font-family: "Inter", var(--font-sans); letter-spacing: 0; }
.page-en .h2 { letter-spacing: .02em; }
.page-en main, .page-en header, .page-en footer, .page-en .dock { word-break: normal; overflow-wrap: break-word; }
.page-en .ja { display: block; font-family: var(--font-sans); font-size: var(--fs-label); color: var(--ink-sub); font-weight: 400; letter-spacing: .03em; }
.top .lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); font-size: var(--fs-sub); text-decoration: none; font-family: var(--font-sans); }
.page-en .logo { font-family: "Cormorant Garamond", serif; font-size: var(--fs-h2); letter-spacing: .08em; }
.page-en .en-first { padding-top: 16px; }
.page-en h1 .brand { display: block; font-family: "Cormorant Garamond", serif; font-size: 40px; line-height: 1.1; letter-spacing: .08em; }
.page-en h1 .sub { display: block; font-size: var(--fs-name); font-weight: 400; line-height: 1.5; margin-top: 8px; }
.page-en .shopdata { border: 1px solid var(--ink); background: var(--surface); padding: 16px; margin-top: 16px; }
.page-en .today { font-size: var(--fs-h2); font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.page-en .shopdata dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0 0 16px; font-size: var(--fs-sub); }
.page-en .shopdata dt { color: var(--ink-sub); }
.page-en .shopdata dd { margin: 0; }
.page-en .pay { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; }
.page-en .pay li { border: 1px solid var(--ink-sub); padding: 6px 12px; font-size: var(--fs-sub); background: var(--surface); }
.page-en .pay li.cash { border: 2px solid var(--ink); font-weight: 700; }
.page-en .band { background: var(--ink); color: var(--on-primary); padding: 16px; margin-bottom: 12px; }
.page-en .band-title { font-weight: 700; margin: 0 0 8px; }
.page-en .order3 { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; counter-reset: o; }
.page-en .order3 li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: center; font-size: var(--fs-body); }
.page-en .order3 .icon { width: 32px; height: 32px; }
.page-en .order3 li span::before { counter-increment: o; content: counter(o) ". "; font-weight: 700; }
.page-en .menu-sec { margin-top: 8px; }
.page-en .menu-sec .h3 small { font-family: "Inter", var(--font-sans); font-size: var(--fs-sub); font-weight: 400; color: var(--ink-sub); }
.page-en .mrow .nm { font-weight: 700; font-size: var(--fs-body); }
.page-en .mrow .pr { font-weight: 700; color: var(--accent); margin-top: 4px; }
.page-en .plist li > span:first-child { display: block; }
.page-en .plist small { display: block; font-size: var(--fs-sub); color: var(--ink-sub); }
.page-en .short { padding-left: 1.2em; margin: 0; }
.page-en .short li { margin: 6px 0; font-size: var(--fs-body); }
.page-en .en-steps { list-style: none; padding: 0; display: grid; gap: 20px; margin-bottom: 16px; }
.page-en .en-steps li { position: relative; }
.page-en .en-steps .num { position: absolute; top: 8px; left: 8px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--on-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-body); }
.page-en .en-steps b { display: block; margin-top: 8px; font-size: var(--fs-body); }
.page-en .en-steps small { display: block; font-size: var(--fs-sub); color: var(--ink-sub); }
.page-en .en-steps b::before { content: none; }
.page-en .taxi { border: 2px dashed var(--ink); background: var(--surface); padding: 16px; margin: 20px 0 8px; }
.page-en .taxi-title { font-weight: 700; margin: 0 0 6px; }
.page-en .taxi-ja { font-family: var(--font-sans); font-size: var(--fs-name); font-weight: 700; line-height: 1.6; margin: 0 0 6px; letter-spacing: .03em; }
.page-en .know4 { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.page-en .know4 li { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; border: 1px solid var(--ink-sub); background: var(--surface); padding: 12px; font-size: var(--fs-sub); }
.page-en .know4 .icon { width: 28px; height: 28px; }
.page-en .faq dt { font-weight: 700; }
.page-en footer p { margin: 0 0 8px; }
@media (min-width: 900px) {
  .page-en h1 .brand { font-size: 56px; }
  .page-en .en-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-en .know4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-en .menu-sec { break-inside: avoid; }
}
.page-en .shopdata dd a { display: inline-flex; align-items: center; min-height: 44px; }
/* 英語版: 看板メニューの時間・全メニューの開閉・支払いの1行（2026-10-28 柴山さん「メニューは看板に絞る」「支払いは小さく」） */
.page-en .mrow .when { display: block; font-size: var(--fs-sub); color: var(--ink-sub); }
.page-en .fullmenu { margin-top: 20px; border-top: 1px solid var(--ink); }
.page-en .fullmenu summary { display: flex; align-items: center; min-height: 52px; font-weight: 700; font-size: var(--fs-body); cursor: pointer; }
.page-en .fullmenu[open] summary { border-bottom: 1px solid #d9d2c7; }
.page-en .more-pay { font-size: var(--fs-sub); }
.page-en .fullmenu summary { justify-content: space-between; list-style: none; }
.page-en .fullmenu summary::-webkit-details-marker { display: none; }
.page-en .fullmenu summary::after { content: "+"; font-size: var(--fs-h2); font-weight: 400; line-height: 1; }
.page-en .fullmenu[open] summary::after { content: "−"; }
/* 日本語版の上のバーの「English」。メニューのボタンの左に置く（2026-10-28 英語版を11/1に一緒に出す） */
.top .lang { margin-left: auto; margin-right: 8px; }
.page-en .top .lang { margin-right: 0; }
@media (min-width: 900px) { .top .lang { margin-left: 16px; margin-right: 0; order: 3; } }
/* 幅の狭いiPhone（390未満。ロゴ216＋English81＋メニュー44＋余白で389px要る）は上のバーに入りきらない＝English はメニューの中へ。それ以外はメニューの中には出さない */
.nav .nav-lang { display: none; }
@media (max-width: 389px) { .top .lang { display: none; } .nav .nav-lang { display: flex; } }
/* 日本語でない設定の人への「View in English」。下のバーの上に固定（画面を押し下げない） */
.en-hint { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 4px; background: var(--ink); color: var(--on-primary); border-radius: 2px; box-shadow: 0 4px 16px rgba(0,0,0,.2); font-family: "Inter", var(--font-sans); }
.en-hint a { flex: 1; display: flex; align-items: center; min-height: 48px; padding: 0 16px; color: inherit; font-weight: 700; font-size: var(--fs-body); text-decoration: none; }
.en-hint a::after { content: " →"; }
.en-hint button { width: 48px; height: 48px; background: none; border: 0; color: inherit; font-size: var(--fs-h2); cursor: pointer; }
@media (min-width: 900px) { .en-hint { left: auto; right: 24px; bottom: 24px; width: 320px; } }
/* 支払いは「How to order」の2の下に（2026-10-28 柴山さん） */
.page-en .paynote { display: block; font-size: var(--fs-sub); opacity: .85; margin-top: 2px; }
.page-en .paynote a { color: inherit; }
.page-en .paynote a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }

/* ブログ本文の表（Markdownの表）: 320幅で横にはみ出さない（2026-11-12 のぶヒョンの記事で18px）。2列とも折り返す */
.prose table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 16px 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid #d9d2c7; overflow-wrap: anywhere; line-break: strict; }
.prose thead th { color: var(--sub); font-weight: 400; }
