/* 焼き菓子店 ひとさじ — レトロかわいい焼き菓子
   クリーム・トマト色・深緑。昔の包み紙のような波線と星、丸い文字で、缶をあけるときのわくわくを */
:root {
  --cream: #FFF8EE;
  --peach: #F7D9C4;
  --tomato: #D95F43;
  --tomato-2: #C24A30;
  --green: #4E6B5C;
  --green-2: #3D5649;
  --brown: #3E2C23;
  --butter: #F3DDB4;
  --muted: #7C6A5E;
  --line: rgba(62, 44, 35, .14);
  --en: "Lilita One", "Zen Maru Gothic", sans-serif;
  --jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12'%3E%3Cpath d='M0 6q10-8 20 0t20 0v6H0z' fill='%23D95F43'/%3E%3C/svg%3E");
  --dots: radial-gradient(circle, rgba(217, 95, 67, .14) 1.6px, transparent 1.8px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--brown); font-family: var(--jp); font-weight: 500; font-size: 15.5px; line-height: 1.9; letter-spacing: .03em; -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, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
:focus-visible { outline: 3px solid var(--green); 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(--tomato); color: #fff; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.section { position: relative; padding: clamp(80px, 10vw, 124px) 0; }
.head { margin-bottom: clamp(28px, 4vw, 46px); }
.head--center { text-align: center; }
.label { display: inline-block; padding: 4px 16px 2px; border-radius: 99px; background: var(--green); color: var(--cream); font-family: var(--en); font-size: 15px; letter-spacing: .1em; }
.h2 { font-weight: 900; font-size: clamp(27px, 3.6vw, 40px); line-height: 1.4; margin-top: 12px; }
.note { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.head--center .note { max-width: 620px; margin-inline: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 2.5px solid var(--brown); border-radius: 99px; cursor: pointer; text-decoration: none; font-weight: 900; font-size: 15.5px; transition: transform .2s, box-shadow .2s; }
.btn--tomato { background: var(--tomato); color: #fff; box-shadow: 0 5px 0 var(--brown); }
.btn--tomato:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--brown); }
.btn--tomato:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--brown); }
.btn--green { background: var(--green); color: #fff; min-height: 48px; padding: 0 20px; box-shadow: 0 4px 0 var(--brown); }
.btn--full { width: 100%; }

/* ---------- ヘッダー ---------- */
.site-header { position: fixed; z-index: 60; inset: 0 0 auto; display: flex; align-items: center; gap: 28px; height: 72px; padding: 0 clamp(16px, 3vw, 40px); background: var(--cream); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 12px; background: var(--wave) repeat-x; background-size: 40px 12px; transform: scaleY(-1); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: .1em; line-height: 1.1; }
.logo-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tomato); color: var(--cream); font-size: 22px; letter-spacing: 0; box-shadow: inset 0 0 0 3px var(--cream), 0 0 0 2px var(--tomato); }
.logo small { display: block; font-family: var(--en); font-size: 10px; letter-spacing: .14em; color: var(--green); }
.gnav { display: flex; gap: 22px; margin-left: auto; }
.gnav a { text-decoration: none; font-weight: 700; font-size: 14.5px; }
.gnav a:hover { color: var(--tomato); }
.h-btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border-radius: 99px; background: var(--tomato); color: #fff; text-decoration: none; font-weight: 900; font-size: 14px; white-space: nowrap; box-shadow: 0 3px 0 var(--brown); }

/* ---------- ヒーロー ---------- */
.hero { position: relative; padding: 120px 0 0; background: var(--peach); background-image: var(--dots); background-size: 22px 22px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; padding-bottom: 70px; }
.hero-tag { display: inline-block; padding: 4px 16px; border: 2px solid var(--brown); border-radius: 99px; background: var(--cream); font-weight: 900; font-size: 13.5px; transform: rotate(-2deg); }
.hero h1 { margin-top: 18px; font-weight: 900; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.3; }
.hero h1 span { color: var(--tomato); text-shadow: 3px 3px 0 var(--cream), 5px 5px 0 var(--brown); }
.hero-lead { margin-top: 18px; }
.cd { margin-top: 26px; padding: 18px 22px; border: 2.5px solid var(--brown); border-radius: 22px; background: var(--cream); box-shadow: 6px 6px 0 var(--brown); }
.cd-k { font-weight: 900; font-size: 15px; color: var(--green); }
.cd-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }
.cd-nums p { text-align: center; }
.cd-nums b { display: block; font-family: var(--en); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; color: var(--tomato); font-variant-numeric: tabular-nums; }
.cd-nums span { font-size: 12px; font-weight: 700; }
.cd-when { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.cd.is-live .cd-k { color: var(--tomato); font-size: 22px; }
.cd.is-live .cd-k::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--tomato); vertical-align: 2px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.stock { margin-top: 10px; }
.stock-bar { height: 14px; border: 2px solid var(--brown); border-radius: 99px; background: #fff; overflow: hidden; }
.stock-bar i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--tomato) 0 8px, var(--tomato-2) 8px 16px); transition: width .8s; }
.stock p { margin-top: 4px; font-weight: 700; font-size: 14px; }
.stock b { font-family: var(--en); font-weight: 400; font-size: 22px; color: var(--tomato); }
.demo-sw { margin-top: 16px; padding: 0; border: 0; background: none; cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.hero-photo { position: relative; }
.hero-photo img { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 8px solid var(--cream); box-shadow: 0 20px 40px rgba(62, 44, 35, .25); }
.sticker { position: absolute; right: 2%; bottom: 6%; display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: var(--green); color: var(--cream); font-family: var(--en); font-size: 42px; line-height: .9; text-align: center; transform: rotate(12deg); box-shadow: 0 0 0 4px var(--cream), 0 0 0 7px var(--green); }
.sticker small { display: block; font-family: var(--jp); font-weight: 900; font-size: 13px; }
.ribbon { overflow: hidden; background: var(--tomato); color: var(--cream); border-block: 3px solid var(--brown); }
.ribbon-track { display: flex; gap: 18px; width: max-content; padding: 10px 0 8px; font-family: var(--en); font-size: 24px; letter-spacing: .08em; white-space: nowrap; animation: slide 30s linear infinite; }
.ribbon-track i { font-style: normal; color: var(--butter); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 缶の中身 ---------- */
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.map svg { display: block; width: 100%; max-width: 460px; margin: 0 auto; filter: drop-shadow(0 16px 24px rgba(62, 44, 35, .18)); }
.ck { cursor: pointer; transition: transform .25s; transform-box: fill-box; transform-origin: center; }
.ck:hover, .ck:focus-visible { transform: scale(1.08); }
.ck:focus { outline: none; }
.ck.is-on { transform: scale(1.1); }
.ck.is-on > *:first-child { stroke: var(--tomato); stroke-width: 4; }
.ck.is-dim { opacity: .3; }
.ck.is-warn > *:first-child { stroke: #C9302C; stroke-width: 4; stroke-dasharray: 5 4; }
.detail { min-height: 320px; padding: 24px; border: 2.5px solid var(--brown); border-radius: 26px; background: #fff; box-shadow: 8px 8px 0 var(--green); }
.detail figure { overflow: hidden; border-radius: 18px; }
.detail img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.detail h3 { margin-top: 14px; font-weight: 900; font-size: 22px; }
.detail h3 small { margin-left: 8px; font-family: var(--en); font-weight: 400; font-size: 15px; color: var(--tomato); letter-spacing: .06em; }
.detail .cnt { display: inline-block; margin-left: 6px; padding: 0 10px; border-radius: 99px; background: var(--butter); font-size: 12.5px; vertical-align: 3px; }
.detail p { margin-top: 6px; font-size: 14.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags span { padding: 1px 12px; border-radius: 99px; border: 1.5px solid var(--brown); font-size: 12.5px; font-weight: 700; }
.tags span.hit { background: #C9302C; border-color: #C9302C; color: #fff; }

/* ---------- アレルギー ---------- */
.allergy { background: var(--butter); }
.allergy::before, .reserve::before, .faq::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 12px; background: var(--wave) repeat-x; background-size: 40px 12px; transform: scaleY(-1); }
.allergy::before { filter: hue-rotate(0); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12'%3E%3Cpath d='M0 6q10-8 20 0t20 0v6H0z' fill='%23FFF8EE'/%3E%3C/svg%3E"); }
.al { padding: clamp(18px, 3vw, 28px); border: 2.5px solid var(--brown); border-radius: 26px; background: var(--cream); }
.al-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.al-chips button { min-height: 40px; padding: 0 16px; border: 2px solid var(--brown); border-radius: 99px; background: #fff; cursor: pointer; font-weight: 700; font-size: 14px; }
.al-chips button[aria-pressed="true"] { background: #C9302C; border-color: #C9302C; color: #fff; }
.al-chips button[aria-pressed="true"]::before { content: "✕ "; }
.al-out { min-height: 1.9em; margin: 14px 0; font-weight: 700; }
.al-out .ok { color: var(--green); }
.al-out .ng { color: #C9302C; }
.al-scroll { overflow-x: auto; }
.al-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; background: #fff; border-radius: 14px; overflow: hidden; }
.al-table th, .al-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.al-table thead th { background: var(--green); color: var(--cream); font-weight: 700; font-size: 12.5px; }
.al-table thead th.on { background: #C9302C; }
.al-table tbody th { text-align: left; padding-left: 14px; white-space: nowrap; }
.al-table td.y { color: var(--tomato); font-weight: 900; }
.al-table td.y.on { background: #C9302C; color: #fff; }
.al-table td.n { color: #C9BBAE; }
.al-table tr.is-ng th { color: #C9302C; }
.al-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* ---------- 予約販売 ---------- */
.reserve { background: var(--cream); }
.reserve::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12'%3E%3Cpath d='M0 6q10-8 20 0t20 0v6H0z' fill='%23F3DDB4'/%3E%3C/svg%3E"); }
.rs { max-width: 820px; margin: 0 auto; padding: clamp(22px, 4vw, 40px); border: 2.5px solid var(--brown); border-radius: 30px; background: #fff; box-shadow: 10px 10px 0 var(--tomato); }
.rs-closed { text-align: center; }
.rs-closed-k { font-weight: 900; font-size: 22px; color: var(--green); }
.rs-closed .f { max-width: 460px; margin: 18px auto 0; text-align: left; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; }
.rs-closed-done { margin-top: 12px; font-weight: 700; color: var(--green); }
.f { display: block; margin-top: 18px; }
.f > span, .f > legend { display: block; margin-bottom: 8px; font-weight: 900; font-size: 14px; }
.f input, .f select { width: 100%; min-height: 50px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--cream); }
.f input:focus, .f select:focus { outline: none; border-color: var(--tomato); }
.f input.is-invalid { border-color: #C9302C; }
.items { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border: 2px solid var(--line); border-radius: 18px; }
.item img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.item h3 { font-weight: 900; font-size: 16px; }
.item p { font-size: 12.5px; color: var(--muted); }
.item .pr { font-family: var(--en); font-weight: 400; font-size: 20px; color: var(--tomato); }
.item.is-on { border-color: var(--tomato); background: #FFF3EC; }
.qty { display: grid; grid-template-columns: 40px 40px 40px; align-items: center; border: 2px solid var(--brown); border-radius: 99px; overflow: hidden; }
.qty button { height: 40px; border: 0; background: var(--butter); cursor: pointer; font-weight: 900; font-size: 18px; }
.qty button:disabled { opacity: .35; cursor: default; }
.qty output { text-align: center; font-family: var(--en); font-size: 20px; }
.item .left { display: block; font-size: 11.5px; font-weight: 700; color: var(--tomato); }
.dates { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dates button { padding: 6px 0; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; line-height: 1.25; }
.dates button b { display: block; font-family: var(--en); font-weight: 400; font-size: 22px; }
.dates button span { font-size: 11px; }
.dates button[aria-checked="true"] { border-color: var(--green); background: var(--green); color: #fff; }
.dates button:disabled { opacity: .35; cursor: not-allowed; }
.chk { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-size: 14px; cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--tomato); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.err { display: block; min-height: 1em; margin-top: 4px; color: #C9302C; font-size: 12.5px; font-weight: 700; }
.bill { margin: 20px 0; padding: 16px 18px; border: 2px dashed var(--brown); border-radius: 18px; background: var(--cream); font-size: 14px; }
.bill p { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.bill .total { margin-top: 8px; padding-top: 10px; border-top: 2px dashed var(--line); font-weight: 900; }
.bill .total span:last-child { font-family: var(--en); font-weight: 400; font-size: 28px; color: var(--tomato); }
.bill small { color: var(--green); font-weight: 700; }
.done { text-align: center; }
.done-k { font-weight: 900; font-size: 26px; color: var(--tomato); }
.done p + p { margin-top: 12px; }

/* ---------- お店のこと ---------- */
.story { background: var(--green); color: var(--cream); }
.story .label { background: var(--tomato); }
.story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.baker { position: relative; }
.baker img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px 24px 24px; border: 6px solid var(--cream); }
.story-grid p:not(.label) { margin-top: 16px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 50px; }
.steps figure { overflow: hidden; border-radius: 20px; background: var(--cream); color: var(--brown); }
.steps img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.steps figcaption { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 900; font-size: 14.5px; }
.steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tomato); color: #fff; font-family: var(--en); font-weight: 400; }

/* ---------- Q&A ---------- */
.faq { background: var(--peach); }
.faq::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12'%3E%3Cpath d='M0 6q10-8 20 0t20 0v6H0z' fill='%234E6B5C'/%3E%3C/svg%3E"); }
.faq-grid { display: grid; grid-template-columns: .6fr 1.4fr; gap: clamp(24px, 5vw, 60px); align-items: start; }
.qa details { margin-bottom: 10px; border: 2px solid var(--brown); border-radius: 18px; background: var(--cream); }
.qa summary { position: relative; padding: 16px 50px 16px 20px; cursor: pointer; list-style: none; font-weight: 900; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; display: grid; place-items: center; border-radius: 50%; background: var(--tomato); color: #fff; font-family: var(--en); font-size: 18px; transition: transform .25s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding: 0 20px 18px; font-size: 14.5px; }

/* ---------- フッター ---------- */
.site-footer { position: relative; padding: 50px 20px 60px; background: var(--brown); color: var(--cream); text-align: center; }
.f-logo { font-weight: 900; font-size: 30px; letter-spacing: .14em; }
.f-sub { margin-top: 4px; font-size: 13px; opacity: .75; }
.demo-note { max-width: 640px; margin: 16px auto 0; font-size: 12.5px; opacity: .7; line-height: 1.9; }

/* ---------- 動き ---------- */
.js .reveal { opacity: 0; transform: translateY(24px) rotate(-.6deg); transition: opacity .8s ease, transform .8s cubic-bezier(.34, 1.3, .64, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1000px) { .gnav { display: none; } .h-btn { margin-left: auto; } }
@media (max-width: 880px) {
  .hero-grid, .map-grid, .story-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { max-width: 440px; margin: 10px auto 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .baker { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { height: 64px; }
  .logo { font-size: 19px; }
  .logo-badge { width: 38px; height: 38px; font-size: 19px; }
  .h-btn { padding: 0 14px; font-size: 13px; }
  .hero { padding-top: 96px; }
  .hero h1 { font-size: 36px; }
  .cd { padding: 14px 14px; }
  .sticker { width: 86px; height: 86px; font-size: 32px; }
  .item { grid-template-columns: 64px 1fr; }
  .item img { width: 64px; height: 64px; }
  .item .qty { grid-column: 1 / 3; justify-self: end; }
  .dates { grid-template-columns: repeat(4, 1fr); }
  .row { grid-template-columns: 1fr; gap: 0; }
  .rs { box-shadow: 6px 6px 0 var(--tomato); }
  .inline { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon-track, .cd.is-live .cd-k::before { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .btn:active, .ck:hover { transform: 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; }

/* ---- フッターのナビと営業情報（2026-10-17 追加）---- 色と書体はフッターから受け継ぐ */
.pf-fnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 28px; margin: 26px auto 0; padding: 0 16px; }
.pf-fnav a { padding: 6px 0; font-size: 13px; letter-spacing: .12em; text-decoration: none; color: inherit; opacity: .82; transition: opacity .2s; }
.pf-fnav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.pf-finfo { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; margin: 12px auto 0; padding: 0 16px; font-size: 12.5px; line-height: 1.8; opacity: .72; }
.pf-finfo span { white-space: nowrap; }
@media (max-width: 600px) { .pf-fnav { gap: 0 20px; } .pf-finfo { flex-direction: column; align-items: center; gap: 0; } .pf-finfo span { white-space: normal; text-wrap: balance; text-align: center; } }
