/* ===== デザイントークン：色・文字・余白・角丸はここだけ直す ===== */
:root {
  /* 色 */
  --color-ink: #14213D;
  --color-text: #2D3748;
  --color-muted: #4A5568;
  --color-subtle: #667281;
  --color-bg: #F4F6F8;
  --color-surface: #FFFFFF;
  --color-border: #DCE1E7;
  --color-divider: #E8ECF0;
  --color-accent: #C2410C;
  --color-accent-dark: #9A3412;
  --color-on-accent: #FFFFFF;
  --color-on-ink: #CBD5E1;
  --color-open: #15803D;
  --color-open-bg: #ECFDF3;
  --color-open-text: #14532D;
  --color-idle: #94A3B8;
  --color-cafe: #5B4636;
  --color-marker: #FFE27A;

  /* 文字 */
  --font-sans: 'Zen Kaku Gothic New', sans-serif;
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-lg: 15px;
  --text-xl: 16px;
  --text-2xl: 18px;
  --text-stat: 22px;
  --text-heading: clamp(24px, 3.4vw, 30px);
  --text-hero: clamp(20px, 6.2vw, 28px);

  /* 余白 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-section: clamp(64px, 9vw, 96px);

  /* 形 */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow-card: 0 8px 24px rgba(20, 33, 61, 0.10);
  --shadow-soft: 0 1px 2px rgba(20, 33, 61, 0.04), 0 6px 16px rgba(20, 33, 61, 0.04);
  --container: 720px;
  --tap: 48px;
  --tap-lg: 54px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ===== 土台 ===== */
html { scroll-padding-top: var(--space-4); }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.7;
  word-break: auto-phrase;
  line-break: strict;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--color-ink); }
a:hover { color: var(--color-accent-dark); }
summary { cursor: pointer; }
.nb { display: inline-block; }
/* 蛍光ペンの強調。HTML では <mark> で囲む */
mark { color: inherit; background: linear-gradient(var(--color-marker), var(--color-marker)) no-repeat 0 100% / 100% 26%; }

/* 仮の内容の目印。準備中モードでだけ下線が出る。公開前に class="tbd" がなくなるまで差し替える */
[data-mode="preparing"] .tbd { text-decoration: underline dotted var(--color-accent) 2px; text-underline-offset: 3px; }

/* ===== レイアウト ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.section { padding-top: var(--space-section); }
.section-band { margin-top: var(--space-section); padding-bottom: var(--space-section); background: var(--color-surface); }
.section-band .card:not(.stat-dark) { background: var(--color-bg); border-color: transparent; box-shadow: none; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.cards { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ===== 見出し・文 ===== */
.section-head { display: flex; flex-direction: column; gap: var(--space-2); }
.eyebrow { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; color: var(--color-accent-dark); }
.eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--color-accent); }
.heading { font-size: var(--text-heading); font-weight: 900; line-height: 1.4; }
.lead { font-size: var(--text-lg); line-height: 1.85; color: var(--color-text); }
.note { font-size: var(--text-sm); color: var(--color-muted); }

/* ===== ボタン ===== */
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-lg); font-weight: 700; text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn-primary:hover { color: var(--color-on-accent); background: var(--color-accent-dark); }
.btn:not([href]) { background: var(--color-divider); color: var(--color-muted); cursor: not-allowed; }
.btn-outline { border: 2px solid var(--color-ink); }
.btn-lg { min-height: var(--tap-lg); font-size: var(--text-xl); }
.text-link { font-size: var(--text-md); text-align: center; }
.text-link:not([href]) { color: var(--color-muted); cursor: not-allowed; }

/* ===== 写真 ===== */
.photo {
  position: relative; display: flex; align-items: flex-end; box-sizing: border-box;
  height: 200px; padding: var(--space-3); overflow: hidden;
  background: linear-gradient(160deg, #3B4A5C, #66788C);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-rounded { border-radius: var(--radius-md); }
.photo-md { height: 180px; }
.photo-full { height: auto; aspect-ratio: 2 / 1; }

/* ===== カード ===== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.card-media { flex: 1 1 100%; overflow: hidden; }
.card-media-wide { flex-basis: 280px; }
.card-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); }
.card-title { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-2xl); font-weight: 900; }
.card-text { font-size: var(--text-md); color: var(--color-text); }

/* ===== ヘッダー ===== */
.site-header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-sub { font-size: var(--text-2xs); font-weight: 700; color: var(--color-muted); }
.brand-name { font-size: var(--text-lg); font-weight: 900; }

/* ===== ヒーロー ===== */
/* 背景は写真が届くまで見せるぼかし画像 */
.hero-photo { height: clamp(240px, 37.5vw, 480px); background: url(data:image/webp;base64,UklGRqgAAABXRUJQVlA4IJwAAACQAwCdASogABAABABoJZQC/PagWztn4tyHC9glrLP0dp4kspiQAMtO/YRmdYWab2+3kmaDBNks9dt3qWRyXUb1sCTXTuqwWrDRTNGWu97kFWkNaX8ZvwtjvUHEs8BOhZuw1zdJY9rROdSJHr7RBye/nIV+T1F3/JpQD1fjlcPhoDjMq1MOCYxCydtHslDqZOO/M5Nqd7e95cKouAA=) 30% 10% / cover; }
.hero-photo img { object-position: 30% 10%; }
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 33, 61, 0.38), transparent 42%);
}
.hero-badge {
  position: absolute; z-index: 1; top: var(--space-3);
  left: max(var(--space-5), calc((100% - var(--container)) / 2 + var(--space-5)));
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  background: var(--color-ink); color: var(--color-on-accent);
  font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.04em;
}
.hero-card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-4);
  margin-top: -48px; padding: var(--space-6) var(--space-5);
  background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.hero-head { display: flex; flex-direction: column; gap: var(--space-2); }
@media (min-width: 760px) {
  .hero-card {
    display: grid; grid-template-columns: minmax(0, 1fr) 256px; gap: var(--space-3) var(--space-5);
    align-items: center; margin-top: -72px; padding: var(--space-6) 28px;
  }
  .hero-head { grid-row: span 2; }
}
.hero-kicker { font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); }
.hero-title { font-size: var(--text-hero); line-height: 1.45; font-weight: 900; letter-spacing: 0.01em; }

/* 営業状態。data-state は status.js が切り替える */
.hours-box { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.hours-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); font-size: var(--text-md); }
.hours-row > :last-child { margin-left: auto; white-space: nowrap; }
.hours-label { font-weight: 700; }
.status { background: var(--color-bg); color: var(--color-text); }
.status .status-label { font-size: var(--text-lg); }
.status .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--color-idle); }
.status[data-state="open"] { background: var(--color-open-bg); color: var(--color-open-text); }
.status[data-state="open"] .dot { background: var(--color-open); }

.quick-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); padding-top: var(--space-4); }
.quick-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1);
  min-height: 68px; font-size: var(--text-xs); font-weight: 700; text-decoration: none;
}
.quick-nav svg { color: var(--color-accent-dark); }

/* ===== レンタル ===== */
.rental-card { display: flex; }
.rental-card .photo { flex: none; width: 116px; height: auto; min-height: 112px; }
.rental-row { display: flex; flex-direction: column; justify-content: center; gap: var(--space-1); padding: var(--space-3) var(--space-4); }
.rental-name { font-size: var(--text-xl); font-weight: 700; }
.rental-price { font-size: var(--text-md); color: var(--color-text); line-height: 1.6; white-space: nowrap; }
@media (min-width: 760px) {
  .card-media { flex-basis: 200px; }
  .rental-card { display: block; }
  .rental-card .photo { width: auto; height: 140px; }
}
.steps-box { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); }
.steps-title { font-size: var(--text-2xl); font-weight: 900; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.steps li {
  display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3);
  border-radius: var(--radius-sm); background: var(--color-bg);
  font-size: var(--text-md); font-weight: 700;
}
.step-no { font-size: var(--text-xs); font-weight: 900; color: var(--color-accent-dark); }
.cta-group { display: flex; flex-direction: column; gap: var(--space-3); }

/* ===== ロケーション ===== */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.stat { display: flex; flex-direction: column; gap: 2px; padding: var(--space-4); }
.stat-label { font-size: var(--text-xs); font-weight: 700; color: var(--color-muted); }
.stat-value { font-size: var(--text-stat); font-weight: 900; }
.stat-value-sm { font-size: var(--text-2xl); }
.stat-note { font-size: var(--text-xs); color: var(--color-muted); }
.stat-dark { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-on-accent); }
.stat-dark .stat-label { color: var(--color-on-ink); }

.route { display: flex; flex-direction: column; padding: var(--space-4) var(--space-5); }
.route li { display: flex; align-items: center; gap: var(--space-3); min-height: 28px; font-size: var(--text-md); font-weight: 500; color: var(--color-muted); }
.route-mark { flex: none; box-sizing: content-box; width: 12px; height: 12px; margin: 0 1px; border-radius: 50%; border: 2px solid var(--color-idle); background: var(--color-surface); }
.route-goal { color: var(--color-ink); font-weight: 700; }
.route-goal .route-mark { border-color: var(--color-ink); }
.route-here { color: var(--color-ink); font-size: var(--text-xl); font-weight: 900; }
.route-here .route-mark { width: 18px; height: 18px; margin: 0; border: 0; background: var(--color-accent); }
.route .route-leg { min-height: 30px; font-size: var(--text-sm); font-weight: 400; color: var(--color-subtle); }
.route-line { flex: none; align-self: stretch; width: 2px; margin: 0 8px; background: var(--color-on-ink); }

/* ===== カフェ ===== */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-2);
  border-radius: var(--radius-full); background: var(--color-cafe); color: var(--color-on-accent);
  font-size: var(--text-xs); font-weight: 700;
}
.badge-takeout { background: var(--color-open-text); }
.menu li {
  display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-divider); font-size: var(--text-lg);
}
.menu li:last-child { border-bottom: 0; }
.menu-price { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ===== 店舗情報 ===== */
.info { padding: var(--space-2) var(--space-5); }
.info > div { display: flex; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-divider); }
.info > div:last-child { border-bottom: 0; }
.info dt { flex: none; width: 96px; font-size: var(--text-md); font-weight: 700; color: var(--color-muted); }
.info dd { font-size: var(--text-lg); }
.map { display: block; width: 100%; height: clamp(220px, 32vw, 300px); border: 0; border-radius: var(--radius-md); }

/* ===== お店について ===== */
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tags li { padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 700; }
.tags-group { display: flex; flex-direction: column; gap: var(--space-2); }
.tags-label { font-size: var(--text-xs); font-weight: 700; color: var(--color-muted); }
.tags-now li { border: 1px solid var(--color-ink); background: var(--color-ink); color: var(--color-on-accent); }
.tags-planned li { border: 1px dashed var(--color-idle); color: var(--color-muted); }

/* ===== FAQ・問い合わせ ===== */
.faq { display: flex; flex-direction: column; gap: var(--space-2); }
.faq details { padding: var(--space-4) var(--space-5); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  font-size: var(--text-lg); font-weight: 700; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; font-size: var(--text-heading); font-weight: 500; line-height: 1;
  color: var(--color-accent-dark); transition: rotate 0.25s var(--ease-out);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq p { margin-top: var(--space-3); font-size: var(--text-md); color: var(--color-text); }
.contact { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.contact a {
  flex: 1 1 200px; display: flex; flex-direction: column; justify-content: center;
  min-height: 64px; padding: 0 var(--space-5); text-decoration: none;
}
.contact-label { font-size: var(--text-xs); font-weight: 700; color: var(--color-muted); }
.contact-value { font-size: var(--text-xl); font-weight: 700; }

/* ===== フッター ===== */
.site-footer { margin-top: var(--space-section); background: var(--color-ink); color: var(--color-on-ink); }
.site-footer-inner {
  display: flex; flex-direction: column; gap: var(--space-6);
  padding-top: 36px; padding-bottom: 36px; font-size: var(--text-sm);
}
.footer-name { font-size: var(--text-2xl); font-weight: 900; color: var(--color-on-accent); }
.footer-nav {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); padding: var(--space-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18); border-bottom: 1px solid rgba(255, 255, 255, 0.18); font-weight: 700;
}
.footer-nav a { color: var(--color-on-accent); text-decoration: none; }
.footer-legal { font-size: var(--text-xs); }

/* ===== 画面下の固定ボタン：出すタイミングは cta-bar.js ===== */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--color-border);
  visibility: hidden; transform: translateY(100%);
  transition: transform 0.2s, visibility 0.2s;
}
.cta-bar.is-shown { visibility: visible; transform: none; }
.cta-bar-inner { display: flex; gap: var(--space-3); padding-top: 10px; padding-bottom: 10px; }
.cta-bar .btn-outline { flex: none; width: 52px; padding: 0; box-sizing: border-box; }
.cta-bar .btn-primary { flex: 1 1 auto; }

/* ===== PC の調整：元の指定より後に書く ===== */
@media (min-width: 760px) {
  .hours-row { gap: var(--space-2); padding: var(--space-3); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ===== 操作したときの反応 ===== */
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.btn { transition: background-color 0.2s, transform 0.15s var(--ease-out); }
.btn[href]:active { transform: scale(0.98); }
.quick-nav a, .contact a { transition: transform 0.2s var(--ease-out), box-shadow 0.2s, border-color 0.2s; }
.quick-nav a:active, .contact a:active { transform: scale(0.97); }
.card-media .photo img { transition: scale 0.5s var(--ease-out); }
@media (hover: hover) {
  .quick-nav a:hover, .contact a:hover { transform: translateY(-2px); border-color: var(--color-idle); box-shadow: var(--shadow-card); }
  .card-media:hover .photo img { scale: 1.05; }
}

/* ===== 動き：動きを減らす設定の端末では出さない ===== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; interpolate-size: allow-keywords; }

  /* ファーストビュー */
  .hero-photo img { animation: hero-zoom 1.6s var(--ease-out) backwards; }
  .hero-badge { animation: rise 0.6s var(--ease-out) 0.5s backwards; }
  .hero-card { animation: rise 0.7s var(--ease-out) 0.15s backwards; }
  .hero-title mark { animation: marker-draw 0.6s ease-out 0.8s backwards; }
  .quick-nav a { animation: rise 0.5s var(--ease-out) backwards; }
  .quick-nav a:nth-child(1) { animation-delay: 0.45s; }
  .quick-nav a:nth-child(2) { animation-delay: 0.52s; }
  .quick-nav a:nth-child(3) { animation-delay: 0.59s; }
  .quick-nav a:nth-child(4) { animation-delay: 0.66s; }
  @supports (animation-timeline: scroll()) {
    .hero-photo img {
      scale: 1.06;
      animation: hero-zoom 1.6s var(--ease-out) backwards, hero-drift linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0 480px;
    }
  }

  /* スクロールで出す。クラスは motion.js が付ける */
  .will-reveal { opacity: 0; }
  .will-reveal.is-in { opacity: 1; animation: rise 0.6s var(--ease-out) calc(var(--i, 0) * 70ms) backwards; }
  .will-reveal:not(.is-in) mark { background-size: 0 26%; }
  .will-reveal.is-in mark { animation: marker-draw 0.6s ease-out 0.4s backwards; }

  /* 今いる場所と営業中の印 */
  .route-here .route-mark, .status[data-state="open"] .dot { animation: ping 2.4s ease-out infinite; }

  /* FAQ の開閉 */
  .faq details::details-content {
    height: 0; overflow: clip;
    transition: height 0.25s var(--ease-out), content-visibility 0.25s allow-discrete;
  }
  .faq details[open]::details-content { height: auto; }
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes hero-zoom { from { scale: 1.14; } }
@keyframes hero-drift { to { translate: 0 28px; } }
@keyframes marker-draw { from { background-size: 0 26%; } }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(194, 65, 12, 0.45); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(194, 65, 12, 0); }
}
