/* ============================================================
   旨いもん食堂 かどや - Official Site CSS
   Design: 和モダン｜炭チャコール × 赤 × ゴールド
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-darkest:  #111111;
  --bg-dark:     #1C1C1C;
  --bg-dark-mid: #252525;
  --bg-card:     #2E2E2E;
  --bg-light:    #F5F0E8;
  --bg-light2:   #ECE7DE;

  --red:         #B83030;
  --red-hover:   #962626;
  --gold:        #C9A84C;
  --gold-light:  #E0C97A;

  --text-light:  #F0ECE4;
  --text-muted:  #9A9A9A;
  --text-dark:   #1A1A1A;
  --text-mid:    #4A4A4A;

  --border-gold: rgba(201,168,76,0.35);
  --border-dark: rgba(255,255,255,0.08);

  --font-serif:  'Noto Serif JP', serif;
  --font-sans:   'Noto Sans JP', sans-serif;

  --container:   1170px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.75;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

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

ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-dark  { background: var(--bg-dark); }
.section-darker { background: var(--bg-darkest); }
.section-light { background: var(--bg-light); color: var(--text-dark); }
.section-light2 { background: var(--bg-light2); color: var(--text-dark); }

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title.dark { color: var(--text-dark); }

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
  position: relative;
}
.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.section-divider::before { left: -14px; }
.section-divider::after  { right: -14px; }
.section-divider.red { background: var(--red); }
.section-divider.red::before,
.section-divider.red::after { background: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-hover); }

.btn-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover { background: var(--gold); color: var(--bg-dark); }

.btn-gold {
  background: var(--gold);
  color: var(--bg-darkest);
  font-weight: 700;
}
.btn-gold:hover { background: var(--gold-light); }

/* ---------- Fade-in animation ---------- */
.js-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
.js-fade.delay-1 { transition-delay: 0.1s; }
.js-fade.delay-2 { transition-delay: 0.2s; }
.js-fade.delay-3 { transition-delay: 0.3s; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-darkest);
  border-bottom: 1px solid var(--border-gold);
  transition: padding 0.3s var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  gap: 16px;
  transition: padding 0.3s var(--ease);
}

.site-header.scrolled .header-inner { padding-top: 8px; padding-bottom: 8px; }

.header-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-tel { text-align: right; }
.tel-label  { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.06em; }
.tel-num    { font-size: 1.25rem; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; }
.tel-num:hover { color: var(--gold-light); }

.btn-reservation {
  display: inline-block;
  padding: 10px 20px;
  background: var(--red);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-reservation:hover { background: var(--red-hover); }

/* -- Global Nav -- */
.site-nav {
  background: var(--bg-dark-mid);
  border-top: 1px solid var(--border-dark);
}

.nav-list {
  display: flex;
  justify-content: center;
  max-width: var(--container);
  margin: 0 auto;
}

.nav-list li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.2s;
}
.nav-list li a:hover,
.nav-list li a.active { color: var(--text-light); }
.nav-list li a:hover::after,
.nav-list li a.active::after { width: 60%; }

/* -- Hamburger (mobile) -- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--text-light);
  transition: all 0.3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(17,17,17,0.55) 0%,
    rgba(17,17,17,0.35) 50%,
    rgba(17,17,17,0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-subtitle {
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.hero-catchcopy {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.08em;
  margin-bottom: 36px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollDown 1.6s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

.hero-indicators {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-indicators .indicator {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.hero-indicators .indicator.active { background: var(--gold); }

/* ============================================================
   FEATURED DISHES
   ============================================================ */
.featured-dishes {
  padding: 96px 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.featured-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  cursor: default;
}

.featured-img {
  height: 260px;
  overflow: hidden;
}
.featured-img img {
  transition: transform 0.5s var(--ease);
}
.featured-card:hover .featured-img img { transform: scale(1.06); }

.featured-body {
  padding: 24px 20px;
  border-top: 2px solid var(--red);
}

.featured-body h3 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 8px;
}

.featured-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.featured-body p:last-child {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   ATMOSPHERE
   ============================================================ */
.atmosphere { padding: 96px 0; }

.atmosphere-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mood-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.mood-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

.mood-img { height: 220px; overflow: hidden; }
.mood-img img { transition: transform 0.5s var(--ease); }
.mood-card:hover .mood-img img { transform: scale(1.05); }

.mood-body {
  padding: 20px;
}
.mood-body p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ============================================================
   COURSES
   ============================================================ */
.courses { padding: 96px 0; background: var(--bg-darkest); }

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-left: 3px solid var(--red);
  padding: 20px 24px;
  transition: border-color 0.2s, background 0.2s;
}
.course-card:hover {
  background: #333;
  border-left-color: var(--gold);
}

.course-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.5;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  letter-spacing: 0.05em;
}
.badge-red {
  border-color: rgba(184,48,48,0.6);
  color: #E07070;
}

.course-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}
.course-price span { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }

.course-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.7;
}

/* ============================================================
   MENU (Food / Drink / Lunch) - Shared
   ============================================================ */
.menu-section { padding: 96px 0; }

/* category accordion */
.menu-category {
  border-bottom: 1px solid var(--border-gold);
}

.menu-category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
  user-select: none;
  letter-spacing: 0.08em;
}
.menu-section.section-light .menu-category-title { color: var(--text-dark); }
.menu-section.section-light .menu-category { border-bottom-color: rgba(0,0,0,0.12); }

.menu-category-title .accordion-icon {
  width: 20px; height: 20px;
  position: relative;
  flex-shrink: 0;
}
.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  transition: transform 0.3s;
}
.menu-section.section-light .accordion-icon::before,
.menu-section.section-light .accordion-icon::after { background: var(--text-dark); }
.accordion-icon::before { width: 14px; height: 1.5px; top: 9px; left: 3px; }
.accordion-icon::after  { width: 1.5px; height: 14px; top: 3px; left: 9px; }

.menu-category.open .accordion-icon::after { transform: rotate(90deg); opacity: 0; }

.menu-items {
  display: none;
  padding-bottom: 20px;
}
.menu-category.open .menu-items { display: block; }

.menu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dotted var(--border-dark);
}
.menu-section.section-light .menu-item { border-bottom-color: rgba(0,0,0,0.1); }
.menu-item:last-child { border-bottom: none; }

.item-name {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}

.item-price {
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
}
.menu-section.section-light .item-price { color: var(--red); }

.item-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.6;
}
.menu-section.section-light .item-desc { color: var(--text-mid); }

/* ============================================================
   ACCESS
   ============================================================ */
.access { padding: 96px 0; background: var(--bg-darkest); }

.access-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

.access-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  filter: grayscale(0.3) contrast(1.05);
}

.access-info h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.access-ruby {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.access-list { display: flex; flex-direction: column; gap: 0; }

.access-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.875rem;
}

.access-label {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.access-value { color: var(--text-light); line-height: 1.7; }

.access-tel-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  display: block;
  margin: 20px 0 8px;
}

.access-reservation-btn {
  display: block;
  margin-top: 24px;
  text-align: center;
  padding: 14px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  transition: background 0.2s;
}
.access-reservation-btn:hover { background: var(--red-hover); }

/* ============================================================
   DETAIL INFO
   ============================================================ */
.detail-info { padding: 80px 0; background: var(--bg-light); color: var(--text-dark); }

.detail-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 64px;
}

.detail-block h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.detail-list { display: flex; flex-direction: column; gap: 0; }

.detail-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 0.85rem;
}

.detail-label {
  font-weight: 700;
  color: var(--text-mid);
  font-size: 0.8rem;
}
.detail-value { color: var(--text-dark); line-height: 1.7; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--border-gold);
  padding: 40px 24px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.footer-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Page top btn */
.page-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px; height: 44px;
  background: var(--red);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.page-top.visible { opacity: 1; pointer-events: all; }
.page-top::before {
  content: '';
  width: 10px; height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-45deg) translateY(2px);
}
.page-top:hover { background: var(--red-hover); }

/* ============================================================
   RESPONSIVE - Tablet & Mobile
   ============================================================ */
@media (max-width: 960px) {
  .featured-grid     { grid-template-columns: 1fr; gap: 4px; }
  .atmosphere-grid   { grid-template-columns: 1fr; gap: 20px; }
  .course-grid       { grid-template-columns: 1fr; }
  .access-inner      { grid-template-columns: 1fr; }
  .detail-blocks     { grid-template-columns: 1fr; gap: 32px; }

  .header-right .header-tel { display: none; }
  .hamburger { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17,17,17,0.97);
    z-index: 900;
    align-items: center;
    justify-content: center;
  }
  .site-nav.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .nav-list li a {
    font-size: 1.4rem;
    padding: 16px 40px;
    color: var(--text-light);
  }

  .hero-title { font-size: 2.4rem; }

  .access-map iframe { height: 280px; }

  .menu-category-title { font-size: 0.92rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .featured-dishes, .atmosphere, .courses,
  .menu-section, .access, .detail-info { padding: 64px 0; }

  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 220px; text-align: center; }

  .access-list .access-item { grid-template-columns: 80px 1fr; }
  .detail-item { grid-template-columns: 90px 1fr; }
}
