/* 純喫茶 こまどり — レトロ・アットホーム
   生成り・えんじ・こげ茶・からし。昭和の喫茶店のマッチ箱や伝票のような装飾で、温かく懐かしく */
:root {
  --cream: #F6EEDC;
  --cream-2: #EFE2C6;
  --paper: #FBF6EA;
  --red: #9E2B25;
  --red-dark: #7C1F1A;
  --brown: #4A2C1D;
  --ink: #2E1E14;
  --mustard: #E9B54A;
  --green: #2E6B4A;
  --muted: #6D5646;
  --line: #D9C7A6;
  --deco: "Kaisei Decol", "Zen Old Mincho", serif;
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --hand: "Yomogi", "Zen Old Mincho", cursive;
  --shadow: 0 16px 34px -22px rgba(46, 30, 20, .6);
  --paper-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .28 0 0 0 0 .15 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream) var(--paper-tex); color: var(--ink); font-family: var(--serif); font-size: 16px; line-height: 1.95; letter-spacing: .05em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul, ol, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 8px 14px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(76px, 10vw, 124px) 0; }
.head { margin-bottom: clamp(30px, 4vw, 46px); }
.head--center { text-align: center; }
.label { display: inline-flex; align-items: center; gap: 12px; font-family: var(--deco); font-size: 13px; letter-spacing: .32em; color: var(--red); }
.label::before, .label::after { content: "★"; font-size: 9px; color: var(--mustard); }
.h2 { font-family: var(--deco); font-weight: 700; font-size: clamp(25px, 3.2vw, 34px); line-height: 1.55; color: var(--brown); margin-top: 8px; letter-spacing: .08em; }
.h2 + p { margin-top: 18px; }
.note { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(46, 30, 20, .96); color: var(--cream); border-bottom: 3px double var(--mustard); }
.header-inner { display: flex; align-items: center; gap: 26px; width: min(1240px, calc(100% - 32px)); margin-inline: auto; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 50px; height: 50px; }
.logo span { font-family: var(--deco); font-size: 21px; font-weight: 700; letter-spacing: .18em; line-height: 1.25; white-space: nowrap; }
.logo small { display: block; font-family: var(--serif); font-size: 10.5px; letter-spacing: .3em; color: var(--mustard); font-style: italic; }
.gnav { display: flex; gap: 22px; margin-left: auto; }
.gnav a { text-decoration: none; font-size: 14.5px; letter-spacing: .14em; padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.gnav a:hover { color: var(--mustard); border-color: var(--mustard); }
.h-open { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 14px; border: 1px solid rgba(246, 238, 220, .4); border-radius: 999px; white-space: nowrap; }
.h-open i { width: 9px; height: 9px; border-radius: 50%; background: #8C7B6B; }
.h-open.is-open i { background: #7FD08E; box-shadow: 0 0 8px #7FD08E; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; min-height: min(88svh, 820px); display: grid; align-items: end; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.12) saturate(1.05); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(46, 30, 20, .55) 100%), linear-gradient(transparent 55%, rgba(46, 30, 20, .35)); }
.hero-card { position: relative; z-index: 1; margin: 0 0 clamp(36px, 6vw, 72px) clamp(20px, 6vw, 90px); width: min(470px, calc(100% - 40px)); background: var(--paper) var(--paper-tex); padding: 34px 34px 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); border: 1px solid var(--line); outline: 6px solid var(--paper); outline-offset: -14px; }
.hero-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--red); pointer-events: none; }
.hero-since { text-align: center; }
.hero-since span { display: inline-block; font-size: 12.5px; letter-spacing: .3em; color: #fff; background: var(--red); padding: 2px 16px; }
.hero h1 { font-family: var(--deco); font-weight: 700; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.45; text-align: center; color: var(--brown); margin-top: 16px; letter-spacing: .1em; }
.hero-lead { text-align: center; font-size: 14.5px; color: var(--muted); margin-top: 14px; line-height: 2; }
.hero-morning { margin-top: 18px; text-align: center; font-family: var(--hand); font-size: 17px; color: var(--green); border-top: 1px dashed var(--line); padding-top: 12px; min-height: 2.4em; }
.hero-morning b { color: var(--red); font-weight: 400; }

/* ---------- 流れる文字 ---------- */
.ticker { background: var(--red); color: var(--cream); overflow: hidden; border-top: 3px double var(--mustard); border-bottom: 3px double var(--mustard); }
.ticker p { display: flex; gap: 24px; width: max-content; padding: 10px 0; font-family: var(--deco); font-size: 16px; letter-spacing: .2em; animation: slide 40s linear infinite; }
.ticker p > :nth-child(even) { color: var(--mustard); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 本日の黒板 ---------- */
.today-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.blackboard { position: relative; background: #2B3A2F radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .07), transparent 60%); color: #F3F0E6; padding: 40px 38px 46px; border: 14px solid #6B4426; border-radius: 6px; box-shadow: inset 0 0 40px rgba(0, 0, 0, .45), var(--shadow); font-family: var(--hand); }
.blackboard::before { content: ""; position: absolute; left: 22%; right: 22%; bottom: -14px; height: 14px; background: #5A381E; }
.bb-date { font-size: 17px; color: #F7D774; }
.bb-title { font-family: var(--hand); font-weight: 400; font-size: 34px; margin-top: 2px; letter-spacing: .1em; }
.bb-list { margin-top: 18px; display: grid; gap: 14px; }
.bb-list div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; border-bottom: 1px dashed rgba(243, 240, 230, .3); padding-bottom: 10px; }
.bb-list dt { font-size: 21px; }
.bb-list dt .lbl { display: block; font-size: 14.5px; color: #BFE3C8; }
.bb-list dt small { display: block; font-size: 14.5px; color: rgba(243, 240, 230, .75); }
.bb-list dd { font-size: 22px; color: #F7D774; }
.bb-list .sold dt, .bb-list .sold dd { text-decoration: line-through; opacity: .55; }
.bb-list .sold dd::after { content: " 売切"; color: #F28B82; text-decoration: none; display: inline-block; margin-left: 4px; }
.bb-note { margin-top: 16px; font-size: 16px; color: #BFE3C8; }
.bb-chalk { position: absolute; right: 30px; bottom: -6px; width: 46px; height: 8px; background: #fff; border-radius: 3px; transform: rotate(-8deg); box-shadow: 54px 2px 0 #F7D774; }
.today-side p:not(.label) { color: var(--muted); }
.today-photo { margin-top: 24px; }
.today-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 8px solid var(--paper); box-shadow: var(--shadow); transform: rotate(1deg); }

/* ---------- お品書き ---------- */
.menu { background: var(--paper) var(--paper-tex); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.menu-tabs { display: flex; justify-content: center; gap: 0; margin-bottom: 34px; }
.menu-tabs button { min-width: 120px; min-height: 50px; padding: 0 22px; border: 2px solid var(--brown); background: transparent; cursor: pointer; font-family: var(--deco); font-size: 17px; letter-spacing: .2em; }
.menu-tabs button + button { border-left: 0; }
.menu-tabs button[aria-selected="true"] { background: var(--brown); color: var(--cream); }
.menu-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 980px; margin-inline: auto; }
.menu-panel:not([hidden]) { animation: fade .5s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.menu-panel figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 10px solid var(--cream); box-shadow: 0 0 0 2px var(--red), var(--shadow); }
.price-list { display: grid; gap: 4px; padding: 26px 30px; background: var(--cream); border: 1px solid var(--line); position: relative; }
.price-list::before { content: "MENU"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--red); color: var(--cream); font-family: var(--deco); font-size: 12px; letter-spacing: .3em; padding: 0 14px; }
.price-list li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px dotted var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list span { font-size: 17px; font-weight: 600; letter-spacing: .08em; }
.price-list small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); letter-spacing: .04em; }
.price-list i { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-5px); }
.price-list b { font-family: var(--deco); font-size: 22px; color: var(--red); }
.price-list b::after { content: "円"; font-family: var(--serif); font-size: 12px; margin-left: 2px; color: var(--muted); }

/* ---------- モーニング ---------- */
.morning-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.morning-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--shadow); border: 10px solid var(--paper); }
.morning-grid p:not(.label) { color: var(--muted); }
.clock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
.clock li { position: relative; text-align: center; padding: 12px 8px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.6; }
.clock li b { display: block; font-family: var(--deco); font-size: 17px; color: var(--brown); }
.clock li.is-now { background: var(--red); border-color: var(--red); color: var(--cream); }
.clock li.is-now b { color: #fff; }
.clock li.is-now::after { content: "いま"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--mustard); color: var(--ink); font-size: 11px; padding: 0 10px; border-radius: 999px; }

/* ---------- クリームソーダ ---------- */
.soda { background: linear-gradient(180deg, transparent, rgba(233, 181, 74, .12)); }
.soda-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.soda-grid p:not(.label):not(.soda-msg) { color: var(--muted); }
.soda-pick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.soda-pick button { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px 0 8px; border-radius: 999px; border: 2px solid var(--brown); background: var(--paper); cursor: pointer; font-size: 15.5px; font-weight: 600; transition: transform .25s; }
.soda-pick button::before { content: ""; width: 32px; height: 32px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12), inset 0 6px 0 rgba(255, 255, 255, .35); }
.soda-pick button:hover { transform: translateY(-2px); }
.soda-pick button[aria-checked="true"] { background: var(--brown); color: var(--cream); }
.soda-msg { margin-top: 18px; font-family: var(--hand); font-size: 19px; color: var(--green); min-height: 1.9em; }
.soda-photo { position: relative; justify-self: center; width: min(100%, 440px); }
.soda-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% 18px 18px; border: 10px solid var(--paper); box-shadow: var(--shadow); transition: opacity .35s; }
.soda-photo img.is-fade { opacity: 0; }
.soda-badge { position: absolute; right: -8px; top: 18%; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: var(--cream); font-family: var(--deco); font-size: 18px; letter-spacing: .1em; transform: rotate(12deg); box-shadow: 0 0 0 4px var(--cream), 0 0 0 6px var(--red); }

/* ---------- 店の歩み ---------- */
.story { background: var(--brown); color: var(--cream); }
.story .h2 { color: var(--cream); }
.story .label { color: var(--mustard); }
.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 10px solid var(--cream); filter: sepia(.1); }
.story-photo figcaption { text-align: center; font-size: 14px; margin-top: 12px; letter-spacing: .2em; color: var(--mustard); }
.master-msg { margin-top: 20px; font-size: 16.5px; line-height: 2.1; padding: 18px 22px; border-left: 3px solid var(--mustard); background: rgba(246, 238, 220, .06); }
.history { margin-top: 28px; position: relative; }
.history::before { content: ""; position: absolute; left: 37px; top: 8px; bottom: 8px; width: 1px; background: rgba(233, 181, 74, .5); }
.history li { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 10px 0; font-size: 14.5px; }
.history b { font-family: var(--deco); font-size: 18px; color: var(--mustard); text-align: center; background: var(--brown); position: relative; z-index: 1; }
.history span { color: rgba(246, 238, 220, .85); }

/* ---------- 常連さん ---------- */
.voice-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.voice-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 10px solid var(--paper); box-shadow: var(--shadow); transform: rotate(-2deg); }
.notes { display: grid; gap: 18px; }
.notes li { background: #FFFBEF repeating-linear-gradient(transparent 0 31px, #E6D6B6 31px 32px); padding: 18px 24px 16px; font-family: var(--hand); font-size: 19px; line-height: 32px; box-shadow: var(--shadow); transform: rotate(var(--r)); border-left: 4px solid var(--red); }
.notes span { display: block; text-align: right; font-size: 14.5px; color: var(--muted); }
.js .notes li.reveal { transform: translateY(18px) rotate(var(--r)); }
.js .notes li.reveal.is-in { transform: rotate(var(--r)); }

/* ---------- 店舗案内 ---------- */
.access { background: var(--paper) var(--paper-tex); border-top: 1px solid var(--line); }
.access-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hours { width: 100%; border-collapse: collapse; margin-top: 22px; border: 2px solid var(--brown); background: var(--cream); }
.hours th, .hours td { padding: 12px 18px; border-bottom: 1px dotted var(--line); text-align: left; }
.hours th { width: 7em; font-family: var(--deco); color: var(--red); letter-spacing: .14em; }
.info { margin-top: 22px; }
.info div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.info dt { color: var(--muted); }
.access-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 10px solid var(--cream); box-shadow: 0 0 0 2px var(--red), var(--shadow); }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: rgba(246, 238, 220, .85); text-align: center; padding: 56px 20px 30px; border-top: 3px double var(--mustard); }
.f-logo { font-family: var(--deco); font-size: 26px; letter-spacing: .3em; color: var(--cream); }
.f-since { font-size: 12px; letter-spacing: .4em; color: var(--mustard); margin-top: 4px; }
.f-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; margin: 26px auto 0; font-size: 13.5px; line-height: 1.8; color: rgba(246, 238, 220, .78); }
.f-info span { white-space: nowrap; }
.f-info b { font-weight: 400; color: var(--mustard); margin-right: 10px; letter-spacing: .14em; font-size: 12px; }
.f-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; margin-top: 22px; }
.f-nav a { font-size: 13.5px; letter-spacing: .14em; text-decoration: none; opacity: .85; padding: 4px 0; }
.f-nav a:hover { color: var(--mustard); opacity: 1; }
.demo-note { max-width: 680px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid rgba(246, 238, 220, .15); font-size: 12.5px; opacity: .8; }
.copy { font-size: 12px; margin-top: 12px; letter-spacing: .2em; opacity: .55; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1060px) { .gnav { display: none; } .h-open { margin-left: auto; } }
@media (max-width: 880px) {
  .hero { min-height: 0; display: block; }
  .hero-photo { position: relative; height: 54svh; min-height: 320px; }
  .hero-card { margin: -70px auto 0; }
  .today-grid, .morning-grid, .soda-grid, .story-grid, .voice-grid, .access-grid, .menu-panel { grid-template-columns: 1fr; }
  .menu-panel figure { max-width: 300px; margin-inline: auto; }
  .story-photo, .voice-photo { max-width: 340px; }
  .access-photo { max-width: 360px; justify-self: center; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .header-inner { min-height: 62px; gap: 10px; }
  .logo svg { width: 42px; height: 42px; }
  .logo svg { width: 38px; height: 38px; }
  .logo span { font-size: 16px; letter-spacing: .08em; }
  .h-open { font-size: 11px; padding: 3px 9px; margin-left: auto; }
  .hero-card { padding: 30px 24px 22px; }
  .blackboard { padding: 30px 22px 36px; border-width: 10px; }
  .bb-title { font-size: 28px; }
  .bb-list dt { font-size: 18px; }
  .bb-list dd { font-size: 19px; }
  .menu-tabs button { min-width: 0; flex: 1; padding: 0 8px; font-size: 15px; letter-spacing: .1em; }
  .price-list { padding: 22px 18px; }
  .price-list span { font-size: 15.5px; }
  .clock { gap: 6px; }
  .clock li { padding: 12px 4px; font-size: 11.5px; }
  .clock li b { font-size: 15px; }
  .soda-badge { width: 84px; height: 84px; font-size: 15px; right: 0; }
  .history li { grid-template-columns: 60px 1fr; gap: 10px; }
  .history::before { left: 29px; }
  .notes li { font-size: 17px; padding: 16px 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker p, .menu-panel:not([hidden]) { animation: none; }
  .js .reveal, .js .notes li.reveal { opacity: 1; transform: rotate(var(--r, 0deg)); transition: none; }
  .soda-photo img { transition: none; }
}

/* ---- 日本語の改行（全サイト共通・2026-10-17 追加）----
   見出し・ボタンは文節で折り返し（Chrome/Edge）、本文は最後の行に1〜2文字だけ残るのを防ぐ。
   :where() で詳細度を0にしているので、各サイトの個別指定が常に優先される */
:where(h1, h2, h3, h4, h5, h6, dt, th, figcaption, button, label, [class*="lead"]) { word-break: auto-phrase; overflow-wrap: anywhere; text-wrap: balance; }
:where(p, li, dd, td, blockquote) { text-wrap: pretty; line-break: strict; }
:where(time, .nw) { white-space: nowrap; }
@media (max-width: 420px) { .header-inner { gap: 8px; } .logo { gap: 8px; } .logo span { font-size: 15px; letter-spacing: .03em; } .logo small { letter-spacing: .12em; } .h-open { padding: 3px 8px; gap: 6px; } }

/* ---- 管理画面から変えたときの表示（売り切れ）---- */
.price-list li.is-soldout span, .price-list li.is-soldout b { opacity: .5; }
.price-list li.is-soldout b { text-decoration: line-through; }
.sold-tag { display: inline-block; margin-left: 8px; padding: 0 8px; background: var(--red); color: var(--cream); font-style: normal; font-size: 11px; letter-spacing: .1em; vertical-align: 2px; }
