/* ============================================================
   RESTAURANT-V3 — STYLES.CSS — Sakura Ramen
   Dark urban · Red + White · Outfit + Noto Serif JP
   ============================================================ */

:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-light: #fef2f2;
  --red-rgb: 220, 38, 38;

  --dark-950: #0a0a0c;
  --dark-900: #111114;
  --dark-800: #1a1a1f;
  --dark-700: #222228;
  --dark-600: #2e2e36;
  --dark-500: #44444f;
  --dark-400: #62626f;
  --dark-300: #888895;
  --dark-200: #b0b0bb;
  --dark-100: #dddde5;

  --white: #ffffff;
  --canvas: var(--dark-950);
  --canvas-alt: var(--dark-900);
  --ink: var(--dark-100);
  --ink-soft: var(--dark-200);
  --muted: var(--dark-300);
  --border: var(--dark-600);

  --font-main: 'Outfit', system-ui, sans-serif;
  --font-display: 'Noto Serif JP', Georgia, serif;

  --fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.78rem);
  --fs-sm: clamp(0.82rem, 0.76rem + 0.3vw, 0.9rem);
  --fs-base: clamp(0.92rem, 0.86rem + 0.3vw, 1rem);
  --fs-md: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
  --fs-lg: clamp(1.15rem, 1rem + 0.75vw, 1.4rem);
  --fs-xl: clamp(1.4rem, 1.1rem + 1.5vw, 2rem);
  --fs-2xl: clamp(1.8rem, 1.3rem + 2.5vw, 2.8rem);
  --fs-3xl: clamp(2.2rem, 1.5rem + 3.5vw, 3.6rem);
  --fs-4xl: clamp(2.8rem, 1.8rem + 5vw, 4.8rem);

  --section-py: clamp(60px, 8vw, 120px);
  --container-max: 1140px;
  --container-px: clamp(16px, 4vw, 32px);

  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-2xl: 32px; --radius-full: 9999px;
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4); --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-red: 0 4px 20px rgba(var(--red-rgb), 0.25);
  --ease: cubic-bezier(0.4, 0, 0.2, 1); --duration: 0.35s;
  --z-sticky: 200; --z-overlay: 300; --z-preloader: 500;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }
body { font-family: var(--font-main); font-size: var(--fs-base); color: var(--ink); background: var(--canvas); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 13px 16px; background: var(--dark-800); width: 100%; transition: border-color var(--duration), box-shadow var(--duration); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.15); }
input::placeholder, textarea::placeholder { color: var(--dark-500); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2362626f' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
::selection { background: rgba(var(--red-rgb), 0.2); }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-px); }
.kicker { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.section-title { font-family: var(--font-main); font-size: var(--fs-3xl); font-weight: 800; line-height: 1.1; color: var(--white); margin-bottom: 14px; letter-spacing: -0.03em; }
.text-red { color: var(--red); }
.section-lead { font-size: var(--fs-md); color: var(--muted); max-width: 560px; line-height: 1.8; }
.section-header { margin-bottom: 48px; }
.section-header--center { text-align: center; }
.section-header--center .section-lead { margin: 0 auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: var(--fs-sm); border-radius: var(--radius-full); padding: 12px 28px; transition: all var(--duration) var(--ease); border: 2px solid transparent; white-space: nowrap; }
.btn .material-icons { font-size: 18px; }
.btn--red { background: var(--red); color: var(--white); box-shadow: var(--shadow-red); }
.btn--red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(var(--red-rgb), 0.35); }
.btn--outline-light { border-color: rgba(255,255,255,0.25); color: var(--white); }
.btn--outline-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.btn--sm { padding: 8px 20px; font-size: var(--fs-xs); }
.btn--lg { padding: 16px 36px; font-size: var(--fs-base); }
.btn--block { width: 100%; }

/* PRELOADER */
.preloader { position: fixed; inset: 0; z-index: var(--z-preloader); background: var(--dark-950); display: flex; align-items: center; justify-content: center; transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease); }
.preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__kanji { font-family: var(--font-display); font-size: 48px; color: var(--red); margin-bottom: 12px; animation: kanjiPulse 1.5s ease-in-out infinite; }
@keyframes kanjiPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.05); } }
.preloader__text { font-size: var(--fs-sm); font-weight: 700; color: var(--white); letter-spacing: 0.1em; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: calc(var(--z-sticky) + 1); background: var(--red); transform-origin: left; transform: scaleX(0); }

/* NAVBAR */
.navbar { position: sticky; top: 0; z-index: var(--z-sticky); background: rgba(10,10,12,0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.04); transition: box-shadow var(--duration); }
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.navbar__brand { font-size: var(--fs-lg); font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 8px; }
.navbar__kanji { font-family: var(--font-display); color: var(--red); font-size: 1.2em; }
.navbar__brand strong { color: var(--red); }
.navbar__list { display: flex; gap: 4px; }
.navbar__link { padding: 6px 14px; font-size: var(--fs-xs); font-weight: 600; color: var(--dark-300); border-radius: var(--radius-md); transition: color var(--duration), background var(--duration); }
.navbar__link:hover, .navbar__link.active { color: var(--red); background: rgba(var(--red-rgb), 0.08); }
.navbar__actions { display: flex; align-items: center; gap: 12px; }
.navbar__burger { display: none; width: 28px; height: 20px; position: relative; }
.navbar__burger span { display: block; height: 2px; background: var(--white); border-radius: 2px; position: absolute; left: 0; right: 0; transition: all var(--duration); }
.navbar__burger span:nth-child(1) { top: 0; }
.navbar__burger span:nth-child(2) { bottom: 0; }
.navbar__burger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.navbar__burger.active span:nth-child(2) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.25) saturate(0.7); }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,12,0.3), rgba(10,10,12,0.8) 80%, var(--dark-950)); }
.hero__content { position: relative; z-index: 1; max-width: 750px; padding: 80px 0; }
.hero__kanji-big { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem); color: rgba(var(--red-rgb), 0.12); line-height: 1; margin-bottom: 16px; }
.hero__title { font-size: var(--fs-4xl); font-weight: 900; line-height: 1.05; color: var(--white); margin-bottom: 20px; letter-spacing: -0.03em; }
.hero__title-red { color: var(--red); }
.hero__lead { font-size: var(--fs-md); color: rgba(255,255,255,0.6); max-width: 560px; margin: 0 auto 32px; line-height: 1.8; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.3); animation: scrollBounce 2s ease-in-out infinite; }
@keyframes scrollBounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* HIGHLIGHTS */
.highlights { padding: 48px 0; background: var(--dark-900); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.highlights__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hl-card { text-align: center; padding: 20px 14px; }
.hl-card > span { font-size: 32px; margin-bottom: 10px; display: block; }
.hl-card h3 { font-size: var(--fs-sm); font-weight: 800; color: var(--white); margin-bottom: 4px; }
.hl-card p { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }

/* CARTA */
.carta { padding: var(--section-py) 0; }
.carta__tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.carta__tab { padding: 10px 24px; font-size: var(--fs-sm); font-weight: 700; color: var(--muted); border: 1px solid var(--border); border-radius: var(--radius-full); transition: all var(--duration); cursor: pointer; background: none; }
.carta__tab:hover { color: var(--red); border-color: rgba(var(--red-rgb), 0.3); }
.carta__tab.active { background: var(--red); color: var(--white); border-color: transparent; }
.carta__panel { display: none; max-width: 700px; margin: 0 auto; }
.carta__panel.active { display: block; }
.carta__item { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.carta__item:last-child { border-bottom: none; }
.carta__item h4 { font-size: var(--fs-base); font-weight: 700; color: var(--white); margin-bottom: 3px; }
.carta__item p { font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }
.carta__item > span { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; color: var(--red); white-space: nowrap; }

/* HISTORY */
.history { padding: var(--section-py) 0; background: var(--dark-900); }
.history__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.history__content p { font-size: var(--fs-md); color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
.history__signature { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.history__signature img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.history__signature strong { display: block; font-size: var(--fs-sm); font-weight: 800; color: var(--white); }
.history__signature span { font-size: var(--fs-xs); color: var(--muted); }
.history__img img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius-2xl); }

/* GALLERY */
.gallery { padding: var(--section-py) 0; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery__item { border-radius: var(--radius-lg); overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* TESTIMONIALS */
.testimonials { padding: var(--section-py) 0; background: var(--dark-900); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--dark-800); }
.testi-card--red { background: var(--red); border-color: transparent; }
.testi-card--red blockquote { color: rgba(255,255,255,0.9); }
.testi-card--red span { color: rgba(255,255,255,0.6); }
.testi-card__stars { color: #fbbf24; font-size: var(--fs-sm); letter-spacing: 2px; margin-bottom: 12px; }
.testi-card--red .testi-card__stars { color: #fde68a; }
.testi-card blockquote { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.7; font-style: italic; margin-bottom: 16px; }
.testi-card strong { font-size: var(--fs-sm); font-weight: 800; color: var(--white); display: block; }
.testi-card span { font-size: var(--fs-xs); color: var(--muted); }

/* RESERVATIONS */
.reservations { padding: var(--section-py) 0; }
.reservations__grid { display: grid; grid-template-columns: 0.45fr 0.55fr; gap: 48px; align-items: start; }
.reservations__details { display: grid; gap: 16px; margin-top: 24px; }
.reservations__details > div { display: flex; align-items: flex-start; gap: 12px; }
.reservations__details .material-icons { font-size: 20px; color: var(--red); margin-top: 2px; }
.reservations__details p { font-size: var(--fs-sm); color: var(--muted); }
.reservations__details a { color: var(--red); font-weight: 600; }
.reservations__form { padding: 32px; border-radius: var(--radius-2xl); background: var(--dark-800); border: 1px solid var(--border); }
.reservations__form h3 { font-size: var(--fs-xl); font-weight: 800; color: var(--white); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: var(--fs-xs); font-weight: 700; margin-bottom: 5px; color: var(--ink-soft); }

/* FOOTER */
.footer { padding: 48px 0 0; border-top: 1px solid var(--border); }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.footer__logo { font-size: var(--fs-lg); font-weight: 700; color: var(--white); margin-bottom: 10px; display: inline-flex; align-items: center; gap: 6px; }
.footer__logo span { font-family: var(--font-display); color: var(--red); }
.footer__logo strong { color: var(--red); }
.footer__brand p { font-size: var(--fs-sm); color: var(--dark-400); line-height: 1.5; }
.footer__links h5 { font-size: var(--fs-sm); font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer__links a { display: block; font-size: var(--fs-sm); color: var(--dark-400); padding: 3px 0; transition: color var(--duration); }
.footer__links a:hover { color: var(--red); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-size: var(--fs-xs); color: var(--dark-500); flex-wrap: wrap; gap: 10px; }
.footer__bottom div { display: flex; gap: 16px; }
.footer__bottom a { color: var(--dark-500); transition: color var(--duration); }
.footer__bottom a:hover { color: var(--red); }

.back-to-top { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-red); z-index: var(--z-overlay); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all var(--duration); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--red-dark); transform: translateY(-3px); }

@media (max-width: 1024px) {
  .highlights__grid { grid-template-columns: repeat(2, 1fr); }
  .history__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: auto; }
  .testi-grid { grid-template-columns: 1fr; }
  .reservations__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .navbar__menu { position: fixed; inset: 0; width: 100vw; height: 100dvh; background: var(--dark-950); z-index: var(--z-overlay); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s; }
  .navbar__menu.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.4s var(--ease); }
  .navbar__list { flex-direction: column; gap: 8px; }
  .navbar__link { font-size: var(--fs-lg); padding: 12px 24px; }
  .navbar__burger { display: block; position: relative; z-index: calc(var(--z-overlay) + 1); }
}
@media (max-width: 768px) {
  .highlights__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--tall { grid-row: auto; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero__title { font-size: var(--fs-2xl); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .carta__tabs { gap: 6px; }
  .carta__tab { padding: 8px 16px; font-size: var(--fs-xs); }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
