/* ============================================================
   炉端 和灯 (WATOU) — restaurant.css
   Skova Digital デモサイト用スタイル（セルフホストフォント版）
   ============================================================ */
/* ===== CSS変数 ===== */
:root {
  --bg:        #0f0c0a;
  --bg2:       #1a1410;
  --bg3:       #221a14;
  --text:      #f5ede0;
  --muted:     #a89880;
  --accent:    #c04030;
  --accent-lt: #d04838;
  --gold:      #d4a843;
  --gold-lt:   #e8be5a;
  --border:    #2e2018;
}

/* ===== リセット・ベース ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.9;
  letter-spacing: 0.025em;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Shippori Mincho", "Zen Old Mincho", serif;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== フォーカスインジケーター ===== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== アニメーション ===== */
.reveal-fade {
  opacity: 0;
  transition: opacity 0.9s ease-out;
}
.reveal-fade.is-visible { opacity: 1; }

.reveal-slide-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal-slide-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal-slide-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal-slide-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-slide-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-slide-up.is-visible { opacity: 1; transform: translateY(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

/* ===== 提灯アニメーション ===== */
@keyframes lantern-sway {
  0%, 100% { transform: rotate(-4deg); }
  50%       { transform: rotate(4deg); }
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .reveal-fade, .reveal-slide-right, .reveal-slide-left,
  .reveal-slide-up, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== ナビゲーション ===== */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 12, 10, 0.0);
  backdrop-filter: blur(0px);
  transition: background 300ms, backdrop-filter 300ms, border-color 300ms, transform 300ms ease;
  border-bottom: 1px solid transparent;
}
#site-nav.scrolled {
  background: rgba(15, 12, 10, 0.96);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--border);
}
#site-nav.hidden-up {
  transform: translateY(-100%);
}

.nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.nav-logo-main {
  font-family: "Shippori Mincho", serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.nav-logo-sub {
  font-size: 0.5625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 200ms;
  letter-spacing: 0.05em;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 300ms ease-out;
}
@media (hover: hover) {
  .nav-link:hover { color: var(--accent); }
  .nav-link:hover::after { width: 100%; }
}

.nav-cta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: #ffffff; /* #ffffff on #c04030 = 5.0:1 (WCAG AA) */
  border: 1px solid var(--accent);
  padding: 0.5rem 1.25rem;
  transition: background 200ms, color 200ms;
}
@media (hover: hover) {
  .nav-cta:hover {
    background: var(--accent-lt);
    color: #ffffff;
  }
}

/* ===== 言語切替UI（Phase A 追加） ===== */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.lang-current { color: var(--gold); pointer-events: none; }
.lang-sep { color: var(--border); }
.lang-link { color: var(--muted); text-decoration: none; transition: color 200ms; }
@media (hover: hover) { .lang-link:hover { color: var(--text); } }

.mobile-lang-toggle {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.mobile-lang-toggle a { color: var(--muted); text-decoration: none; transition: color 200ms; }
.mobile-lang-toggle a:hover { color: var(--gold); }
.mobile-lang-toggle .lang-current { color: var(--gold); }

/* ハンバーガー */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 300ms, opacity 300ms;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* モバイルメニュー */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(15, 12, 10, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 300ms, transform 300ms;
  opacity: 0;
  transform: translateX(100%);
}
#mobile-menu:not([inert]) {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-link {
  font-family: "Shippori Mincho", serif;
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: 0.1em;
}
.mobile-nav-cta {
  margin-top: 0.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
}

/* ===== ヒーロー ===== */
#hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* CSS背景で炭火・居酒屋の夜を表現 */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 60% at 70% 40%, rgba(200, 52, 26, 0.18), transparent 65%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(212, 168, 67, 0.10), transparent 70%),
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(26, 20, 16, 0.5), transparent 100%),
    linear-gradient(160deg, #0f0c0a 0%, #1a1008 40%, #0f0c0a 100%);
  z-index: 0;
}

/* 炭火の粒子を擬似要素で表現 */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 2px at 65% 45%, rgba(200, 80, 30, 0.6), transparent),
    radial-gradient(circle 1.5px at 72% 38%, rgba(212, 168, 67, 0.5), transparent),
    radial-gradient(circle 2.5px at 68% 52%, rgba(200, 52, 26, 0.4), transparent),
    radial-gradient(circle 1px at 76% 42%, rgba(255, 200, 100, 0.6), transparent),
    radial-gradient(circle 2px at 60% 58%, rgba(200, 80, 30, 0.35), transparent),
    radial-gradient(circle 1.5px at 80% 35%, rgba(212, 168, 67, 0.4), transparent),
    radial-gradient(circle 1px at 63% 30%, rgba(200, 52, 26, 0.3), transparent),
    radial-gradient(circle 3px at 74% 60%, rgba(180, 60, 20, 0.25), transparent);
  z-index: 0;
}

/* 木目・和紙テクスチャ感 */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      170deg,
      transparent 0px, transparent 40px,
      rgba(212, 168, 67, 0.015) 40px, rgba(212, 168, 67, 0.015) 41px
    ),
    repeating-linear-gradient(
      80deg,
      transparent 0px, transparent 120px,
      rgba(168, 152, 128, 0.02) 120px, rgba(168, 152, 128, 0.02) 121px
    );
  z-index: 0;
}

/* ヒーローコンテンツ */
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 3rem;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 5rem;
}

/* 縦書き大見出し（このサイト固有の表現） */
.hero-vertical {
  flex-shrink: 0;
  align-self: center;
}

.hero-vertical h1 {
  display: block;
  direction: rtl;
  text-align: right;
  unicode-bidi: isolate;
  font-family: "Shippori Mincho", serif;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.2em;
  text-shadow: 0 2px 20px rgba(200, 52, 26, 0.4), 0 4px 60px rgba(0, 0, 0, 0.9);
  min-height: clamp(20rem, 40vw, 30rem);
  padding-bottom: 4rem;
}

.hero-vertical h1 .col {
  display: inline-block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  direction: ltr;
  unicode-bidi: isolate;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  vertical-align: top;
  margin-left: 1.2em;
}

.hero-vertical h1 .col:nth-child(1) {
  margin-top: 0;
}
.hero-vertical h1 .col:nth-child(2) {
  margin-top: 2rem;
}
.hero-vertical h1 .col:nth-child(3) {
  margin-top: 16rem;
}
.hero-vertical h1 .col:last-child {
  margin-left: 0;
}

.hero-sub {
  flex: 1;
  max-width: 360px;
}

/* 提灯SVG（デスクトップのみ表示） */
.hero-lantern {
  position: absolute;
  top: 1.5rem;
  left: 15%;
  z-index: 2;
  display: none;
  opacity: 0.85;
}
.hero-lantern svg {
  animation: lantern-sway 3s ease-in-out infinite;
  transform-origin: top center;
  filter: drop-shadow(0 0 12px rgba(255, 140, 60, 0.5));
}

/* モバイル: 縦書き→横書きに変更 */
@media (max-width: 767px) {
  .hero-content {
    flex-direction: column;
    align-items: stretch;
    gap: 2.5rem;
    padding: 5rem 1.5rem 4rem;
  }
  .hero-vertical h1 {
    display: block;
    direction: ltr;
    text-align: left;
    writing-mode: horizontal-tb;
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    letter-spacing: -0.01em;
    min-height: unset;
  }
  .hero-vertical h1 .col {
    writing-mode: horizontal-tb;
    direction: ltr;
    display: inline;
    font-size: inherit;
    margin-left: 0;
    vertical-align: baseline;
  }
  .hero-vertical h1 .col:nth-child(1),
  .hero-vertical h1 .col:nth-child(2),
  .hero-vertical h1 .col:nth-child(3) {
    margin-top: 0;
  }
  .hero-vertical h1 .col:not(:last-child)::after {
    content: '\A';
    white-space: pre;
  }
  .hero-sub {
    max-width: 100%;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .hero-lantern { display: block; }
}

/* ===== CSSグラデーション画像代替（空間・こだわりセクション） ===== */
.faux-img {
  position: relative;
  overflow: hidden;
}
.faux-img-counter {
  background: linear-gradient(135deg, #1a0f08 0%, #2d1a0e 40%, #3d2010 60%, #1a0f08 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 320px;
}
.faux-img-table {
  background: linear-gradient(135deg, #120c08 0%, #221408 40%, #1a1208 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 320px;
}
.faux-img-private {
  background: linear-gradient(135deg, #0f0c08 0%, #1a1208 40%, #251808 60%, #0f0c08 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 320px;
}
.faux-img-emoji {
  font-size: 3rem;
  line-height: 1;
}
.faux-img-label {
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}

/* ===== メニューカード ===== */
.menu-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: border-color 300ms, box-shadow 300ms;
}
@media (hover: hover) {
  .menu-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  }
}

.menu-card-num {
  writing-mode: vertical-rl;
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  flex-shrink: 0;
  padding-top: 0.25rem;
}

/* ===== スペースセクション スプリット ===== */
.space-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}
@media (max-width: 767px) {
  .space-block {
    grid-template-columns: 1fr;
  }
  .space-block-text-right {
    order: -1;
  }
}

/* ===== フッターナビ ===== */
.footer-link {
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 200ms;
}
@media (hover: hover) {
  .footer-link:hover { color: var(--text); }
}

/* ===== フォーム ===== */
.form-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: "Noto Sans JP", sans-serif;
  outline: none;
  transition: border-color 200ms;
  box-sizing: border-box;
}
.form-input:focus {
  border-color: var(--gold);
}
.form-input::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

/* ===== ユーティリティ ===== */
.section-label {
  font-size: 0.6875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 767px) {
  .container { padding: 0 1.5rem; }
}

/* ===== グリッド ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 767px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 767px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.grid-access {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
}
@media (max-width: 767px) {
  .grid-access { grid-template-columns: 1fr; gap: 3rem; }
}

.grid-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
@media (max-width: 767px) {
  .grid-footer { grid-template-columns: 1fr; gap: 2rem; }
}

.grid-concept {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 767px) {
  .grid-concept { grid-template-columns: 1fr; gap: 2rem; }
  .concept-texture-panel { display: none; }
}
.demo-banner {
  background: #1a1a1a;
  color: #ffffff;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  position: relative;
  z-index: 9999;
}
.demo-banner a {
  color: #e05a40;
  text-decoration: underline;
  margin-left: 0.25rem;
}
.demo-banner a:hover {
  opacity: 0.8;
}
