/* 茶寮 ひより — 和モダン・甘味処
   白漆喰・抹茶・墨。縦書きの見出しと細い罫線、余白で凛とした空気を */
:root {
  --bg: #F7F4EC;
  --bg-2: #EFEADD;
  --white: #FCFBF7;
  --matcha: #5F7A3E;
  --matcha-dark: #4A6130;
  --matcha-light: #DDE5D3;
  --sumi: #2B2B26;
  --moss: #2D3A2A;
  --muted: #6A675C;
  --line: #D9D3C2;
  --beni: #B3473B;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --shadow: 0 18px 40px -28px rgba(43, 43, 38, .55);
}
*, *::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(--bg); color: var(--sumi); font-family: var(--serif); font-size: 15.5px; line-height: 2.05; letter-spacing: .08em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--matcha); 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(--sumi); color: #fff; }
.skip:focus { top: 12px; }
.container { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: clamp(84px, 11vw, 140px) 0; }
.head { margin-bottom: clamp(36px, 5vw, 56px); }
.head--center { text-align: center; }
.label { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .4em; color: var(--matcha); }
.label::before { content: ""; width: 8px; height: 8px; background: var(--matcha); transform: rotate(45deg); }
.h2 { font-weight: 500; font-size: clamp(25px, 3vw, 33px); line-height: 1.75; letter-spacing: .16em; margin-top: 10px; }
.h2 + p { margin-top: 20px; color: var(--muted); }
.note { margin-top: 12px; color: var(--muted); font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 36px; background: var(--moss); color: #fff; border: 0; cursor: pointer; font-size: 15px; letter-spacing: .3em; transition: background .3s; }
.btn:hover { background: var(--matcha); }

/* ---------- ヘッダー ---------- */
.site-header { position: fixed; z-index: 60; inset: 0 0 auto; display: flex; align-items: center; gap: 28px; height: 74px; padding: 0 clamp(18px, 3.5vw, 48px); transition: background .4s, box-shadow .4s; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -26px; z-index: -1; background: linear-gradient(rgba(247, 244, 236, .9), rgba(247, 244, 236, .55) 62%, rgba(247, 244, 236, 0)); pointer-events: none; transition: opacity .4s; }
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-scrolled { background: rgba(247, 244, 236, .95); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--sumi); font-size: 20px; }
.logo-txt b { display: block; font-weight: 600; font-size: 19px; letter-spacing: .3em; line-height: 1.3; }
.logo-txt small { display: block; font-family: var(--sans); font-size: 9.5px; letter-spacing: .36em; color: var(--muted); }
.gnav { display: flex; gap: 26px; margin-left: auto; }
.gnav a { text-decoration: none; font-size: 14px; letter-spacing: .2em; position: relative; }
.gnav a::after { content: ""; position: absolute; left: 0; right: .2em; bottom: -4px; height: 1px; background: var(--matcha); transform: scaleX(0); transition: transform .35s; }
.gnav a:hover::after { transform: scaleX(1); }
.h-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--sumi); text-decoration: none; font-size: 13.5px; letter-spacing: .2em; background: rgba(252, 251, 247, .6); transition: background .3s, color .3s; }
.h-btn:hover { background: var(--sumi); color: #fff; }

/* ---------- ヒーロー ---------- */
.hero { overflow-x: clip; position: relative; display: grid; grid-template-columns: 1.7fr 1fr; min-height: 100svh; }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-text { display: flex; flex-direction: row-reverse; justify-content: center; align-items: flex-start; gap: 34px; padding: 130px 30px 60px; background: var(--white); position: relative; }
.hero-text::before { content: ""; position: absolute; left: -60px; top: 50%; width: 120px; height: 120px; border-radius: 50%; background: var(--matcha-light); transform: translateY(-50%); z-index: 1; mix-blend-mode: multiply; }
.hero h1 { writing-mode: vertical-rl; font-weight: 500; font-size: clamp(34px, 3.6vw, 48px); letter-spacing: .36em; line-height: 1.7; }
.hero h1 span { display: block; }
.hero h1 span:last-child { padding-top: 2.4em; }
.hero-lead { writing-mode: vertical-rl; font-size: 14.5px; line-height: 2.4; color: var(--muted); letter-spacing: .24em; margin-top: 5em; }
.hero-season { writing-mode: vertical-rl; font-family: var(--sans); font-size: 12px; letter-spacing: .3em; color: var(--beni); border-right: 1px solid var(--beni); padding-right: 10px; margin-top: 9em; }

/* ---------- 和菓子暦 ---------- */
.koyomi { background: var(--white); }
.ko-tabs { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); max-width: 860px; margin: 0 auto 40px; }
.ko-tabs button { position: relative; min-height: 64px; border: 0; border-left: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 15px; letter-spacing: .14em; line-height: 1.4; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background .3s, color .3s; }
.ko-tabs button:first-child { border-left: 0; }
.ko-tabs button small { font-family: var(--sans); font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.ko-tabs button[aria-selected="true"] { background: var(--moss); color: #fff; }
.ko-tabs button[aria-selected="true"] small { color: rgba(255, 255, 255, .75); }
.ko-tabs button.is-now::after { content: "いま"; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-family: var(--sans); font-size: 10.5px; background: var(--beni); color: #fff; padding: 0 8px; line-height: 1.8; letter-spacing: .1em; }
.ko-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; max-width: 960px; margin-inline: auto; }
.ko-panel figure { position: relative; }
.ko-panel img { width: 100%; aspect-ratio: 1; object-fit: cover; animation: fadeup .7s ease both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ko-panel figure::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, .6); pointer-events: none; }
.ko-name { font-size: 28px; font-weight: 500; letter-spacing: .24em; }
.ko-yomi { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: .3em; }
.ko-desc { margin-top: 18px; color: var(--muted); }
.ko-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ko-meta li { font-family: var(--sans); font-size: 12.5px; padding: 2px 14px; border: 1px solid var(--line); letter-spacing: .1em; }
.ko-kigo { margin-top: 22px; font-size: 14px; color: var(--matcha-dark); border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- 点て方 ---------- */
.tate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.tate-photo img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.steps { margin-top: 26px; border-top: 1px solid var(--line); }
.steps li { border-bottom: 1px solid var(--line); }
.steps button { width: 100%; display: flex; align-items: center; gap: 16px; padding: 16px 4px; background: none; border: 0; cursor: pointer; text-align: left; font-size: 16.5px; letter-spacing: .16em; }
.steps button span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--matcha); color: var(--matcha); font-size: 15px; flex-shrink: 0; transition: background .3s, color .3s; }
.steps button[aria-expanded="true"] span { background: var(--matcha); color: #fff; }
.steps button::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg); transition: transform .3s; }
.steps button[aria-expanded="true"]::after { transform: rotate(-135deg); }
.steps p { padding: 0 4px 18px 54px; font-size: 14.5px; color: var(--muted); }
.timer { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.timer-btn { position: relative; width: 96px; height: 96px; border-radius: 50%; border: 0; background: conic-gradient(var(--matcha) calc(var(--p, 0) * 1%), var(--matcha-light) 0); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.timer-btn::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg); }
.timer-btn span, .timer-btn small { position: relative; }
.timer-btn span { font-size: 30px; line-height: 1; }
.timer-btn small { font-family: var(--sans); font-size: 11px; margin-top: -18px; }
.timer p { font-size: 14px; color: var(--muted); }

/* ---------- お品書き ---------- */
.oshinagaki { background: var(--bg-2); }
.oshi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 34px); }
.oshi { background: var(--white); padding: 14px 14px 24px; box-shadow: var(--shadow); }
.oshi img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.oshi h3 { font-weight: 500; font-size: 18px; letter-spacing: .2em; margin-top: 18px; padding: 0 6px; }
.oshi p { font-size: 13.5px; color: var(--muted); padding: 0 6px; margin-top: 6px; line-height: 1.9; }
.oshi b { display: block; text-align: right; font-size: 22px; font-weight: 500; padding: 8px 6px 0; }
.oshi b small { font-size: 12px; margin-left: 2px; }
.drinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; max-width: 860px; margin: 48px auto 0; border-top: 1px solid var(--line); }
.drinks li { display: flex; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.drinks b { font-weight: 500; }
.drinks b::after { content: "円"; font-size: 11px; margin-left: 2px; }

/* ---------- 抹茶体験 ---------- */
.taiken-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.taiken-photo { margin-top: 26px; }
.taiken-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.rsv { background: var(--white); padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rsv-head { font-size: 19px; letter-spacing: .2em; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.rsv-head small { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--muted); letter-spacing: .08em; }
.f-label { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; margin: 14px 0 8px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days button { padding: 6px 0; border: 1px solid var(--line); background: #fff; cursor: pointer; line-height: 1.4; font-family: var(--sans); font-size: 11px; color: var(--muted); }
.days button b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--sumi); }
.days button.sun b { color: var(--beni); }
.days button[aria-checked="true"] { background: var(--moss); border-color: var(--moss); color: #fff; }
.days button[aria-checked="true"] b { color: #fff; }
.days button:disabled { opacity: .4; cursor: default; background: var(--bg); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slots button { min-height: 48px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; line-height: 1.2; }
.slots button small { display: block; font-family: var(--sans); font-size: 10.5px; color: var(--matcha-dark); }
.slots button[aria-checked="true"] { background: var(--matcha); border-color: var(--matcha); color: #fff; }
.slots button[aria-checked="true"] small { color: #fff; }
.slots button:disabled { opacity: .45; cursor: default; background: var(--bg); text-decoration: line-through; }
.row { display: grid; grid-template-columns: .45fr 1fr; gap: 12px; margin-top: 18px; }
.f { display: block; margin-bottom: 12px; }
.f > span { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: .12em; margin-bottom: 6px; }
.f input, .f select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); background: #fff; font-size: 16px; border-radius: 0; }
.f select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232B2B26'/%3E%3C/svg%3E") right 14px center / 11px no-repeat; }
.f input:focus, .f select:focus { outline: none; border-color: var(--matcha); }
.f .is-invalid { border-color: var(--beni); }
.err { display: block; min-height: 1em; color: var(--beni); font-family: var(--sans); font-size: 12px; margin-top: 4px; line-height: 1.6; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-family: var(--sans); font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--matcha); }
.sum { margin: 18px 0 14px; padding: 12px 16px; background: var(--bg); font-family: var(--sans); font-size: 14px; }
.sum b { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.rsv .btn { width: 100%; }
.done { text-align: center; padding: 30px 0; }
.done:focus { outline: none; }
.done-mark { width: 72px; height: 72px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--matcha); color: #fff; font-size: 28px; }
.done h3 { font-weight: 500; font-size: 21px; letter-spacing: .2em; margin-top: 18px; }
.done p { margin-top: 10px; }

/* ---------- 手みやげ ---------- */
.omiyage { background: var(--white); }
.omi-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.omi-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.omi-calc { margin-top: 26px; padding: 22px; border: 1px solid var(--line); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--sumi); margin-bottom: 16px; }
.seg button { min-height: 48px; border: 0; border-left: 1px solid var(--sumi); background: transparent; cursor: pointer; font-size: 15px; letter-spacing: .14em; }
.seg button:first-child { border-left: 0; }
.seg button[aria-checked="true"] { background: var(--sumi); color: #fff; }
.omi-price { margin-top: 16px; font-size: 15px; }
.omi-price b { font-size: 28px; font-weight: 500; margin: 0 4px; }
.omi-date { font-family: var(--sans); font-size: 13px; color: var(--matcha-dark); margin-top: 4px; }

/* ---------- お席 ---------- */
.seki-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.seki-photo img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.info { margin-top: 24px; border-top: 1px solid var(--line); }
.info div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.info dt { color: var(--matcha-dark); letter-spacing: .2em; }
.okami { display: flex; gap: 16px; align-items: center; margin-top: 26px; }
.okami img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex-shrink: 0; }
.okami figcaption { font-size: 13.5px; color: var(--muted); line-height: 1.9; }
.okami b { display: block; font-weight: 500; font-size: 15.5px; color: var(--sumi); letter-spacing: .2em; }

/* ---------- フッター ---------- */
.site-footer { background: var(--moss); color: rgba(255, 255, 255, .85); text-align: center; padding: 64px 20px 30px; }
.f-logo { font-size: 24px; letter-spacing: .5em; color: #fff; padding-left: .5em; }
.f-sub { font-family: var(--sans); font-size: 10.5px; letter-spacing: .4em; opacity: .65; margin-top: 4px; }
.f-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 30px; margin-top: 28px; }
.f-nav a { font-size: 14px; letter-spacing: .2em; text-decoration: none; padding: 4px 0; opacity: .85; }
.f-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.f-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; margin-top: 18px; font-family: var(--sans); font-size: 13px; opacity: .8; }
.f-info span { white-space: nowrap; }
.demo-note { max-width: 640px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); font-family: var(--sans); font-size: 12px; opacity: .8; }
.copy { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; margin-top: 12px; opacity: .55; }

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 1.1s ease, transform 1.1s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1080px) { .gnav { display: none; } .h-btn { margin-left: auto; } }
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo img { height: 62svh; min-height: 340px; }
  .hero-text { padding: 46px 24px 56px; flex-direction: row-reverse; }
  .hero-text::before { left: auto; right: -40px; top: 0; }
  .hero h1 { font-size: clamp(30px, 8vw, 38px); }
  .hero-lead { margin-top: 3em; height: 15em; }
  .hero-season { display: none; }
  .ko-tabs { grid-template-columns: repeat(3, 1fr); }
  .ko-tabs button:nth-child(4) { border-left: 0; }
  .ko-tabs button:nth-child(n+4) { border-top: 1px solid var(--line); }
  .ko-panel, .tate-grid, .taiken-grid, .omi-grid, .seki-grid { grid-template-columns: 1fr; }
  .ko-panel figure { max-width: 420px; }
  .oshi-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(74%, 320px); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(50% - 50vw); padding: 6px max(18px, calc(50vw - 50%)) 26px; scroll-padding-inline: max(18px, calc(50vw - 50%)); scrollbar-width: none; }
  .oshi-grid::-webkit-scrollbar { display: none; }
  .oshi { scroll-snap-align: start; }
  .drinks { grid-template-columns: 1fr 1fr; gap: 0 24px; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .site-header { height: 62px; gap: 12px; }
  .logo-mark { width: 36px; height: 36px; font-size: 17px; }
  .logo-txt b { font-size: 16px; letter-spacing: .2em; }
  .h-btn { padding: 0 12px; font-size: 12px; letter-spacing: .1em; min-height: 40px; }
  .days { gap: 4px; }
  .days button b { font-size: 16px; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .row { grid-template-columns: 1fr; gap: 0; }
  .drinks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ko-panel img { animation: 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; }

/* ---- 管理画面から変えたときの表示（売り切れ）---- */
.oshi figure { position: relative; }
.oshi.is-soldout img { filter: grayscale(.8) opacity(.6); }
.oshi-sold { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 6px 16px; background: rgba(43, 43, 38, .85); color: #fff; font-size: 13px; letter-spacing: .2em; white-space: nowrap; }
.oshi.is-soldout b { text-decoration: line-through; opacity: .5; }
.drinks li.is-soldout { opacity: .45; }
