/* =====================================================================
   GREENHOUND COFFEE — ROASTERY & DOG LOUNGE
   styles.css : 商用クオリティ・モバイルファースト
   ===================================================================== */

/* ---------------------------------------------------------------------
   DESIGN TOKENS
--------------------------------------------------------------------- */
:root {
  /* palette */
  --green-deep: #0B5C45;
  --green: #0E6E54;
  /* --emerald: クリーム/cream-deep 上の小文字ラベル(.eyebrow 等)で AA(4.5:1) を満たす濃さに調整 */
  --emerald: #136B52;
  --cream: #F6F1E7;
  --cream-deep: #ECE3CF;
  --gold: #C9A36A;
  /* --gold-bright: 深緑背景上の情報テキスト(.brand-sub/.tier-star/footer 見出し等)用に AA を満たす明るい金 */
  --gold-bright: #E0C28E;
  --espresso: #241E1A;
  --sage: #7FB9A5;
  /* --sage-bright: 深緑背景上のラベル(.flip-back dt 等)で AA を満たす明るいセージ */
  --sage-bright: #C9E4DA;
  --line: #D9CFB8;

  /* derived */
  --gold-soft: rgba(201, 163, 106, 0.18);
  --green-glass: rgba(11, 92, 69, 0.92);
  --on-green: #F6F1E7;
  --on-cream: #241E1A;
  --muted-cream: rgba(246, 241, 231, 0.72);
  --muted-espresso: rgba(36, 30, 26, 0.66);

  /* fonts */
  --font-display: "Playfair Display", "Shippori Mincho B1", serif;
  --font-jp-head: "Shippori Mincho B1", "Noto Serif JP", serif;
  --font-body: "Noto Sans JP", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;

  /* metrics */
  --header-h: 72px;
  --max-w: 1280px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 18px 50px -22px rgba(11, 92, 69, 0.42);
  --shadow-card: 0 26px 60px -30px rgba(36, 30, 26, 0.55);
}

/* ---------------------------------------------------------------------
   RESET / BASE
--------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* 固定ヘッダー(--header-h)の下にアンカー先見出しが隠れないようオフセットを確保 */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

/* JS の scrollIntoView / focus 経由でも同じオフセットを効かせる */
section[id],
#top { scroll-margin-top: calc(var(--header-h) + 16px); }
/* hero(#top) は全画面表示なのでオフセット不要（先頭に吸着させる） */
#top { scroll-margin-top: 0; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--on-cream);
  background: var(--cream);
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
input, button { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--espresso); }

/* focus visibility — accessibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream-deep); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 8px; border: 2px solid var(--cream-deep); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  background: var(--green-deep);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------------------------------------------------------------------
   SHARED LAYOUT HELPERS
--------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

.section {
  padding-block: clamp(72px, 11vw, 140px);
  position: relative;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--gold);
}

.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.display-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.005em;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  margin-block: 18px 10px;
}

.jp-title {
  font-family: var(--font-jp-head);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.12em;
  color: var(--green-deep);
}

.lede {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: var(--muted-espresso);
  line-height: 2;
  margin-top: 20px;
}

/* buttons */
.btn {
  --btn-pad-y: 15px;
  --btn-pad-x: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--gold { background: var(--gold); color: var(--espresso); box-shadow: 0 14px 30px -14px rgba(201, 163, 106, 0.8); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -14px rgba(201, 163, 106, 0.9); }
.btn--ghost { border-color: rgba(246, 241, 231, 0.55); color: var(--cream); }
.btn--ghost:hover { background: rgba(246, 241, 231, 0.12); transform: translateY(-3px); border-color: var(--cream); }
.btn--outline-green { border-color: var(--green); color: var(--green); background: transparent; }
.btn--outline-green:hover { background: var(--green); color: var(--cream); transform: translateY(-3px); }

/* image placeholder fallback (品のあるグラデ) */
.img-frame { position: relative; overflow: hidden; background: var(--cream-deep); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
img.img-fallback {
  background-image:
    radial-gradient(120% 120% at 20% 10%, rgba(127, 185, 165, 0.55), transparent 55%),
    linear-gradient(135deg, var(--green-deep), var(--green) 45%, var(--emerald));
  position: relative;
}
img.img-fallback::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.85);
  background: linear-gradient(135deg, rgba(11, 92, 69, 0.5), rgba(28, 138, 107, 0.35));
}

/* decorative paw scatter */
.paw {
  position: absolute;
  color: var(--gold);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.paw svg { width: 100%; height: 100%; fill: currentColor; }

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ---------------------------------------------------------------------
   EMBLEM (self-made SVG roundel)
--------------------------------------------------------------------- */
.emblem { display: block; }
.emblem .emblem-ring-text { animation: emblem-spin 36s linear infinite; transform-origin: 100px 100px; }
.emblem--hero { width: clamp(112px, 17vw, 168px); height: clamp(112px, 17vw, 168px); }
.emblem--header { width: 46px; height: 46px; }
.emblem--footer { width: 120px; height: 120px; }
@keyframes emblem-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------
   HEADER / NAV
--------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: var(--green-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(201, 163, 106, 0.28);
  box-shadow: 0 12px 34px -24px rgba(0, 0, 0, 0.7);
}

.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.16em;
}
.brand-sub {
  font-family: var(--font-ui);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-bright);
}

.primary-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list a {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--cream);
  position: relative;
  padding-block: 6px;
  opacity: 0.92;
  transition: opacity 0.3s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-list a:hover, .nav-list a:focus-visible { opacity: 1; }
.nav-list a:hover::after, .nav-list a:focus-visible::after { width: 100%; }

.header-cta { display: none; }

/* hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: transparent;
  border: 1px solid rgba(246, 241, 231, 0.4);
  border-radius: 12px;
  padding: 0 11px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 30, 24, 0.55);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  backdrop-filter: blur(2px);
}
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(84vw, 360px);
  background: var(--green-deep);
  color: var(--cream);
  padding: calc(var(--header-h) + 16px) 30px 40px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-panel a {
  font-family: var(--font-jp-head);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(201, 163, 106, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-panel a span { font-family: var(--font-ui); font-size: 11px; color: var(--gold-bright); letter-spacing: 0.2em; }
.drawer-cta { margin-top: 20px; }
.drawer-cta .btn { width: 100%; }

/* ---------------------------------------------------------------------
   HERO
--------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--cream);
  isolation: isolate;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* 明るい16:9素材に合わせ、白飛びを抑えつつコピーの可読性を確保する深緑グラデ。
     下部はやや濃いめにしてヒーローコピーのコントラストを担保。 */
  background:
    linear-gradient(180deg, rgba(11, 92, 69, 0.50) 0%, rgba(11, 92, 69, 0.42) 40%, rgba(20, 30, 26, 0.70) 100%),
    radial-gradient(120% 90% at 80% 20%, rgba(28, 138, 107, 0.28), transparent 60%);
}
.hero-inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(40px, 8vh, 90px) clamp(20px, 5vw, 64px);
  display: grid;
  gap: 26px;
  justify-items: start;
}
.hero-emblem-wrap { color: var(--cream); }
.hero-sub {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 7.2vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  max-width: 16ch;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-tagline {
  font-family: var(--font-jp-head);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.6vw, 1.6rem);
  letter-spacing: 0.08em;
  color: var(--cream);
  max-width: 28ch;
}
.hero-tagline-en {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--muted-cream);
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-cream);
}
.hero-scroll .scroll-bead {
  width: 2px; height: 42px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll .scroll-bead::after {
  content: "";
  position: absolute;
  left: 0; top: -10px;
  width: 2px; height: 10px;
  background: var(--cream);
  animation: scroll-bead 1.8s var(--ease) infinite;
}
@keyframes scroll-bead { 0% { top: -10px; } 100% { top: 42px; } }

/* ---------------------------------------------------------------------
   STATEMENT
--------------------------------------------------------------------- */
.statement { background: var(--cream); }
.statement-grid {
  display: grid;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.statement-figure {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-card);
}
.statement-figure .img-frame { border-radius: var(--radius-lg); height: 100%; }
.statement-figure::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.statement-copy .display-title { color: var(--green-deep); }
.statement-quote {
  font-family: var(--font-jp-head);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.8vw, 1.7rem);
  line-height: 2;
  color: var(--espresso);
  margin-top: 22px;
}
.statement-quote .accent { color: var(--emerald); }
.statement-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.5;
  display: block;
  height: 1.6rem;
}

/* ---------------------------------------------------------------------
   PILLARS
--------------------------------------------------------------------- */
.pillars { background: var(--cream-deep); }
.pillars-grid {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
  margin-top: 56px;
}
.pillar {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); border-color: var(--gold); }
.pillar-index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.pillar-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--green-deep);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin: 18px 0 22px;
}
.pillar-icon svg { width: 30px; height: 30px; }
.pillar h3 {
  font-family: var(--font-jp-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--green-deep);
  margin-bottom: 6px;
}
.pillar .pillar-en {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--emerald);
}
.pillar p {
  margin-top: 14px;
  font-size: 0.93rem;
  color: var(--muted-espresso);
  line-height: 2;
}

/* ---------------------------------------------------------------------
   DOGS — flip cards
--------------------------------------------------------------------- */
.dogs { background: var(--green-deep); color: var(--cream); overflow: hidden; }
.dogs .eyebrow { color: var(--sage-bright); }
.dogs .eyebrow::before { background: var(--gold); }
.dogs .display-title { color: var(--cream); }
.dogs .jp-title { color: var(--gold); }
.dogs .lede { color: var(--muted-cream); }

.dogs-grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 26px);
  margin-top: 56px;
}

.flip-card {
  position: relative;
  perspective: 1400px;
  background: transparent;
  text-align: left;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
}
/* カード全面を覆う透明トグル（操作とフォーカスリングの基点） */
.flip-toggle {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: var(--radius-lg);
}
.flip-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease);
  transform-style: preserve-3d;
  border-radius: var(--radius-lg);
}
/* 状態モデルは .is-flipped を正とする（タッチ端末でのホバー残留による二重状態を回避）。
   ホバー/フォーカスによる反転は fine pointer（マウス等）でのみ有効化する。 */
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-inner,
  .flip-card.is-focus-flip .flip-inner,
  .flip-card:has(.flip-toggle:focus-visible) .flip-inner { transform: rotateY(180deg); }
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.flip-front { background: var(--espresso); }
.flip-front .img-frame { height: 100%; }
/* 看板犬6頭は撮影トーンがバラつくため、共通の暖色プリセット(彩度+コントラスト+ごく軽い暖色)で
   ハウススタイルに寄せ、深緑グリッド上での統一感を高める。 */
.flip-front .img-frame img {
  transition: transform 1s var(--ease);
  object-position: center 30%;
  filter: saturate(1.06) contrast(1.04) brightness(1.02) sepia(0.06);
}
@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-front .img-frame img { transform: scale(1.06); }
}
.flip-front-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  background: linear-gradient(transparent, rgba(11, 30, 24, 0.85));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.flip-front-name {
  font-family: var(--font-jp-head);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--cream);
}
.flip-front-breed {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--sage-bright);
  text-transform: uppercase;
}
.flip-hint {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(246, 241, 231, 0.16);
  display: grid;
  place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}
.flip-hint svg { width: 18px; height: 18px; }

.flip-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--cream);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  border: 1.5px solid rgba(201, 163, 106, 0.35);
}
.flip-back-name { font-family: var(--font-jp-head); font-weight: 700; font-size: 1.4rem; color: var(--gold-bright); line-height: 1.2; }
.flip-back-name strong { font-weight: 700; }
.flip-back dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 0.86rem; }
.flip-back dt {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-bright);
  align-self: start;
  padding-top: 3px;
}
.flip-back dd { color: var(--cream); line-height: 1.7; }
.flip-treat {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gold);
  border-top: 1px solid rgba(201, 163, 106, 0.3);
  padding-top: 12px;
}

/* ---------------------------------------------------------------------
   MENU — tabs
--------------------------------------------------------------------- */
.menu { background: var(--cream); }
.tablist {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 40px 0 12px;
  padding: 6px;
  background: var(--cream-deep);
  border-radius: 999px;
  border: 1px solid var(--line);
}
.tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 11px 22px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-espresso);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.tab[aria-selected="true"] {
  background: var(--green-deep);
  color: var(--cream);
  box-shadow: 0 10px 24px -14px rgba(11, 92, 69, 0.8);
}
.tab:hover[aria-selected="false"] { color: var(--green-deep); }

.tabpanel { margin-top: 36px; }
.tabpanel[hidden] { display: none; }
.menu-grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 26px);
}
.menu-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.menu-card .img-frame { aspect-ratio: 1 / 1; }
.menu-card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.menu-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.menu-card-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--green-deep); }
.menu-card-name-ja { font-family: var(--font-jp-head); font-weight: 500; font-size: 0.86rem; color: var(--muted-espresso); }
.menu-card-price {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--espresso);
  white-space: nowrap;
}
.menu-card-price small { font-size: 0.7em; font-weight: 600; color: var(--muted-espresso); }
.menu-card-desc { font-size: 0.88rem; color: var(--muted-espresso); line-height: 1.9; }
.dog-safe {
  align-self: flex-start;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.dog-safe svg { width: 13px; height: 13px; }

/* ---------------------------------------------------------------------
   ROASTING — scroll lit index
--------------------------------------------------------------------- */
.roasting { background: var(--espresso); color: var(--cream); overflow: hidden; }
.roasting .eyebrow { color: var(--gold); }
.roasting .display-title { color: var(--cream); }
.roasting .jp-title { color: var(--sage); }
.roasting .lede { color: var(--muted-cream); }
.roast-steps {
  margin-top: 56px;
  display: grid;
  gap: clamp(8px, 2vw, 18px);
  counter-reset: roast;
}
.roast-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 3vw, 34px);
  align-items: start;
  padding: clamp(20px, 3vw, 32px) 0;
  border-top: 1px solid rgba(201, 163, 106, 0.22);
  /* 未点灯でも本文が AA を満たす明るさを確保（点灯演出は番号の発光で表現） */
  opacity: 0.62;
  transition: opacity 0.7s var(--ease);
}
.roast-step:last-child { border-bottom: 1px solid rgba(201, 163, 106, 0.22); }
.roast-step.is-lit { opacity: 1; }
.roast-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1;
  color: rgba(201, 163, 106, 0.4);
  transition: color 0.7s var(--ease), text-shadow 0.7s var(--ease);
}
.roast-step.is-lit .roast-num { color: var(--gold); text-shadow: 0 0 30px rgba(201, 163, 106, 0.45); }
.roast-step h3 {
  font-family: var(--font-jp-head);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: var(--cream);
  letter-spacing: 0.06em;
}
.roast-step .roast-en {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--emerald);
  display: block;
  margin-bottom: 8px;
}
.roast-step p { margin-top: 10px; color: var(--muted-cream); font-size: 0.95rem; line-height: 2; max-width: 56ch; }

/* ---------------------------------------------------------------------
   REWARDS
--------------------------------------------------------------------- */
.rewards { background: var(--green-deep); color: var(--cream); overflow: hidden; }
.rewards .eyebrow { color: var(--sage); }
.rewards .display-title { color: var(--cream); }
.rewards .lede { color: var(--muted-cream); }
.rewards-stats {
  display: grid;
  gap: 22px;
  margin: 50px 0;
}
.stat {
  text-align: center;
  padding: 26px 18px;
  border: 1px solid rgba(201, 163, 106, 0.28);
  border-radius: var(--radius-lg);
  background: rgba(246, 241, 231, 0.04);
}
.stat-stars { color: var(--gold); margin-bottom: 12px; min-height: 26px; font-size: 1.2rem; letter-spacing: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1;
  color: var(--gold);
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-cream);
  margin-top: 10px;
}
.tier-grid { display: grid; gap: clamp(18px, 2.6vw, 24px); }
.tier {
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 36px);
  background: linear-gradient(165deg, rgba(246, 241, 231, 0.08), rgba(246, 241, 231, 0.02));
  border: 1px solid rgba(246, 241, 231, 0.16);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.tier:hover { transform: translateY(-8px); border-color: var(--gold); }
.tier--gold { border-color: rgba(201, 163, 106, 0.55); background: linear-gradient(165deg, rgba(201, 163, 106, 0.18), rgba(201, 163, 106, 0.04)); }
.tier-name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.14em; color: var(--cream); }
.tier-star { font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--gold-bright); }
.tier-perks { font-size: 0.92rem; color: var(--muted-cream); line-height: 2; }
.tier-flag {
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--espresso);
  background: var(--gold);
  padding: 5px 12px;
  border-radius: 999px;
}

/* burst star */
.burst-star {
  position: absolute;
  color: var(--gold);
  pointer-events: none;
  opacity: 0;
  z-index: 3;
}
.burst-star svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------------------------------------------------------------------
   HOUSE RULES
--------------------------------------------------------------------- */
.rules { background: var(--cream-deep); }
.rules-grid { display: grid; gap: clamp(30px, 5vw, 56px); align-items: start; margin-top: 50px; }
.rules-list { display: grid; gap: 14px; }
.rule-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.rule-item:hover { border-color: var(--gold); transform: translateX(4px); }
.rule-check {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}
.rule-check svg { width: 20px; height: 20px; }
.rule-item p { font-size: 0.96rem; color: var(--espresso); line-height: 1.8; }
.rules-aside {
  background: var(--green-deep);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  position: relative;
  overflow: hidden;
}
.rules-aside h3 { font-family: var(--font-jp-head); font-weight: 700; font-size: 1.4rem; color: var(--gold); margin-bottom: 14px; }
.rules-aside p { color: var(--muted-cream); line-height: 2; font-size: 0.95rem; }
.rules-aside .paw { opacity: 0.18; }

/* ---------------------------------------------------------------------
   ACCESS
--------------------------------------------------------------------- */
.access { background: var(--cream); }
.access-grid { display: grid; gap: clamp(26px, 4vw, 48px); align-items: stretch; margin-top: 50px; }
.access-info { display: flex; flex-direction: column; }
.access-table { margin-top: 26px; display: grid; gap: 4px; }
.access-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.access-row dt {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald);
  padding-top: 3px;
}
.access-row dd { font-size: 0.96rem; color: var(--espresso); line-height: 1.8; }
.access-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.access-media { display: grid; gap: 18px; }
.access-photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
/* interior-wide.jpg は横長素材(ratio 1.72)のため枠も横長(16/10)で本来の構図を活かす */
.access-photo .img-frame { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
.access-photo .img-frame img { object-position: center; }

/* decorative map (no external API) */
.map-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(127, 185, 165, 0.18) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(127, 185, 165, 0.18) 38px 39px),
    linear-gradient(150deg, #e9efe6, #dfe9df);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}
.map-road { position: absolute; background: var(--cream); box-shadow: 0 0 0 1px var(--line); }
.map-road--h { left: -5%; right: -5%; top: 58%; height: 18px; transform: rotate(-4deg); }
.map-road--v { top: -5%; bottom: -5%; left: 34%; width: 14px; }
.map-road--d { left: 10%; right: 24%; top: 22%; height: 12px; transform: rotate(22deg); }
.map-block { position: absolute; background: rgba(127, 185, 165, 0.22); border: 1px solid rgba(28, 138, 107, 0.25); border-radius: 4px; }
.map-block.b1 { left: 8%; top: 10%; width: 18%; height: 22%; }
.map-block.b2 { right: 12%; top: 14%; width: 22%; height: 26%; }
.map-block.b3 { left: 14%; bottom: 12%; width: 24%; height: 24%; }
.map-block.b4 { right: 16%; bottom: 16%; width: 18%; height: 20%; }
.map-pin {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.map-pin-dot {
  width: 46px; height: 46px;
  background: var(--green-deep);
  border: 3px solid var(--gold);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 24px -10px rgba(11, 92, 69, 0.7);
}
.map-pin-dot svg { width: 22px; height: 22px; transform: rotate(45deg); fill: var(--gold); }
.map-pin-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green-deep);
  background: var(--cream);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   FOOTER
--------------------------------------------------------------------- */
.site-footer { background: var(--green-deep); color: var(--cream); position: relative; overflow: hidden; }
.site-footer .paw { opacity: 0.1; }
.footer-top {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  padding-block: clamp(60px, 8vw, 90px);
  border-bottom: 1px solid rgba(201, 163, 106, 0.24);
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; max-width: 380px; }
.footer-brand .brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.14em; }
.footer-brand .brand-sub { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.28em; color: var(--gold-bright); }
.footer-brand p { color: var(--muted-cream); line-height: 2; font-size: 0.92rem; }

.newsletter h3 { font-family: var(--font-jp-head); font-weight: 700; font-size: 1.2rem; color: var(--gold); margin-bottom: 8px; }
.newsletter p { color: var(--muted-cream); font-size: 0.9rem; line-height: 1.9; margin-bottom: 18px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  background: rgba(246, 241, 231, 0.08);
  border: 1px solid rgba(246, 241, 231, 0.28);
  border-radius: 999px;
  padding: 13px 20px;
  color: var(--cream);
  font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(246, 241, 231, 0.5); }
.newsletter-form input:focus-visible { border-color: var(--gold); outline-offset: 1px; }
.newsletter-form button { flex-shrink: 0; }
.newsletter-msg {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--sage-bright);
  min-height: 1.2em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.newsletter-msg svg { width: 16px; height: 16px; fill: var(--sage-bright); }

.footer-nav h4, .footer-contact h4 {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 16px;
}
.footer-nav ul { display: grid; gap: 10px; }
.footer-nav a { color: var(--muted-cream); font-size: 0.92rem; transition: color 0.3s var(--ease); }
.footer-nav a:hover { color: var(--cream); }
.footer-contact p { color: var(--muted-cream); font-size: 0.92rem; line-height: 1.9; }

.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 231, 0.28);
  display: grid;
  place-items: center;
  color: var(--cream);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--espresso); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--muted-cream); }
.footer-bottom .footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a { font-size: 0.82rem; color: var(--muted-cream); }
.footer-bottom a:hover { color: var(--gold-bright); }
.footer-credit {
  padding-bottom: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(246, 241, 231, 0.55);
}
.footer-credit a { color: rgba(246, 241, 231, 0.7); text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--gold-bright); }

/* ---------------------------------------------------------------------
   BACK TO TOP
--------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 900;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--gold);
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s var(--ease);
  box-shadow: var(--shadow-soft);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--green); transform: translateY(-3px); }
.back-to-top svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------------- */
@media (min-width: 600px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .dogs-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .rewards-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-form-extra { grid-column: span 2; }
}

@media (min-width: 880px) {
  .primary-nav { display: block; }
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }

  .statement-grid { grid-template-columns: 0.9fr 1.1fr; }
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .dogs-grid { grid-template-columns: repeat(3, 1fr); }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .tier-grid { grid-template-columns: repeat(3, 1fr); }
  .rules-grid { grid-template-columns: 1.4fr 1fr; }
  .access-grid { grid-template-columns: 1fr 1fr; }

  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-newsletter-wrap { grid-column: 1 / -1; }
}

@media (min-width: 1080px) {
  .footer-top {
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    align-items: start;
  }
  .footer-newsletter-wrap { grid-column: auto; }
}

@media (min-width: 1200px) {
  .hero-inner { gap: 30px; }
}

/* ---------------------------------------------------------------------
   REDUCED MOTION
--------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .emblem .emblem-ring-text { animation: none !important; }
  .hero-scroll .scroll-bead::after { animation: none !important; }
  /* reduced-motion ではホバー由来の反転を抑止し、明示トグル(.is-flipped)のみ反映 */
  .flip-card:hover .flip-inner,
  .flip-card.is-focus-flip .flip-inner,
  .flip-card:has(.flip-toggle:focus-visible) .flip-inner { transform: none; }
  .flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }
  .flip-front .img-frame img { transform: none !important; }
}
