/*
Theme Name: 東方飯店
Theme URI: https://tohohanten.org
Author: Claude
Author URI: https://anthropic.com
Description: 中華居酒屋 東方飯店 田町店 公式テーマ。カスタマイザーで全セクションを編集可能。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tohohanten
Tags: one-page, restaurant, japanese, customizer
*/

/* ===== CSS VARIABLES ===== */
:root {
  --red: #c0392b;
  --gold: #b8972a;
  --ink: #1a1208;
  --cream: #f5f0e8;
  --paper: #faf7f0;
  --smoke: #e8e0d0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(250,247,240,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184,151,42,0.2);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--red); text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.8rem; letter-spacing: 0.15em;
  color: var(--ink); transition: color .3s;
}
.nav-links a:hover { color: var(--red); }
.nav-reserve {
  background: var(--red); color: #fff !important;
  padding: 0.5rem 1.4rem; border-radius: 2px;
}
.nav-reserve:hover { background: #a93226; color: #fff !important; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 4rem 6rem 5rem;
  position: relative;
}
.hero-left::before {
  content: '東方';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 22rem; font-weight: 600; color: rgba(192,57,43,0.04);
  pointer-events: none; white-space: nowrap;
  font-family: 'Noto Serif JP', serif;
}
.hero-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.35em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 300; line-height: 1.1;
  color: var(--ink); margin-bottom: 0.5rem;
}
.hero-title em { font-style: italic; color: var(--red); }
.hero-subtitle {
  font-size: 1.1rem; color: var(--ink); letter-spacing: 0.2em;
  margin-bottom: 2.5rem; font-weight: 400;
}
.hero-desc {
  font-size: 0.85rem; line-height: 2; color: #5a4f3d;
  max-width: 380px; margin-bottom: 3rem;
}
.hero-cta { display: inline-flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--red); color: #fff; padding: 0.9rem 2.5rem;
  text-decoration: none; font-size: 0.8rem; letter-spacing: 0.2em;
  transition: all .3s; border: none; cursor: pointer;
}
.btn-primary:hover { background: #a93226; transform: translateY(-2px); }
.btn-outline {
  border: 1px solid var(--gold); color: var(--gold); padding: 0.9rem 2.5rem;
  text-decoration: none; font-size: 0.8rem; letter-spacing: 0.2em;
  transition: all .3s; background: transparent;
}
.btn-outline:hover { background: var(--gold); color: #fff; }
.hero-right { position: relative; overflow: hidden; background: var(--ink); }
.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(184,151,42,0.06) 0px, rgba(184,151,42,0.06) 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(-45deg, rgba(184,151,42,0.06) 0px, rgba(184,151,42,0.06) 1px, transparent 1px, transparent 30px);
}
.hero-img-stack {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-circle {
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #2d1b0e 0%, #1a1208 100%);
  border: 1px solid rgba(184,151,42,0.3);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
}
.hero-kanji {
  font-family: 'Noto Serif JP', serif;
  font-size: 7rem; font-weight: 400; color: var(--gold);
  line-height: 1; letter-spacing: -0.05em;
  text-shadow: 0 0 60px rgba(184,151,42,0.4);
}
.hero-kanji-sub {
  font-size: 1rem; color: rgba(184,151,42,0.6); letter-spacing: 0.5em;
  margin-top: 0.5rem;
}
.hero-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(184,151,42,0.15); }
.hero-ring:nth-child(2) { width: 480px; height: 480px; }
.hero-ring:nth-child(3) { width: 550px; height: 550px; }
.hero-info-badge {
  position: absolute; bottom: 2.5rem; left: 2.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(184,151,42,0.3);
  padding: 1rem 1.5rem; backdrop-filter: blur(4px);
}
.badge-label { font-size: 0.6rem; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 0.3rem; }
.badge-value { font-size: 0.9rem; color: #fff; font-weight: 400; }

/* ── SECTION HEADER ── */
.section-header { text-align: center; padding: 5rem 2rem 3rem; }
.section-label {
  font-size: 0.65rem; letter-spacing: 0.4em; color: var(--gold);
  text-transform: uppercase; display: block; margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; color: var(--ink);
  line-height: 1.2;
}
.section-divider {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin: 1.5rem 0;
}
.divider-line { width: 60px; height: 1px; background: var(--gold); }
.divider-ornament { color: var(--red); font-size: 1rem; }

/* ── FEATURES ── */
#features { background: var(--ink); padding: 5rem 5%; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(184,151,42,0.2);
  max-width: 1100px; margin: 0 auto;
}
.feature-card {
  background: var(--ink); padding: 3rem 2.5rem;
  text-align: center; transition: background .3s;
  display: block; text-decoration: none;
  cursor: pointer;
}
.feature-card:hover { background: #231810; }
.feature-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
.feature-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; color: var(--gold); margin-bottom: 1rem; font-weight: 400;
}
.feature-text { font-size: 0.82rem; line-height: 1.9; color: rgba(255,255,255,0.6); }
.feature-btn {
  display: inline-block; margin-top: 1.5rem;
  font-size: 0.7rem; letter-spacing: 0.25em; color: var(--gold);
  border-bottom: 1px solid rgba(184,151,42,0.4);
  padding-bottom: 0.2rem;
  transition: border-color .3s, color .3s;
}
.feature-card:hover .feature-btn {
  color: #fff; border-color: rgba(255,255,255,0.5);
}

/* ── COURSES ── */
#courses { padding: 2rem 5% 6rem; background: var(--paper); }
.courses-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5px;
  background: var(--smoke); max-width: 1100px; margin: 0 auto;
}
.course-card {
  background: var(--paper); padding: 2.5rem;
  transition: background .3s; cursor: default;
  display: flex; flex-direction: column; gap: 0.8rem;
  position: relative; overflow: hidden;
}
.course-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: transparent; transition: background .3s;
}
.course-card:hover { background: #fff; }
.course-card:hover::before { background: var(--red); }
.course-badge { font-size: 0.6rem; letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; }
.course-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; color: var(--ink); font-weight: 600;
}
.course-price { font-size: 1.1rem; color: var(--red); letter-spacing: 0.05em; }
.course-desc { font-size: 0.8rem; line-height: 1.8; color: #5a4f3d; }
.course-items {
  font-size: 0.75rem; color: #7a6d5d; line-height: 1.7;
  border-top: 1px solid var(--smoke); padding-top: 0.8rem; margin-top: 0.2rem;
}
.course-tag {
  display: inline-block; background: rgba(192,57,43,0.1);
  color: var(--red); font-size: 0.6rem; padding: 0.2rem 0.6rem;
  letter-spacing: 0.15em; align-self: flex-start;
}

/* ── RESERVE ── */
#reserve { background: var(--ink); padding: 6rem 5%; }
.reserve-wrap { max-width: 700px; margin: 0 auto; text-align: center; }
.reserve-wrap .section-label { color: var(--gold); }
.reserve-wrap .section-title { color: #fff; }
.reserve-wrap .section-title em { color: var(--gold); font-style: italic; }
.reserve-form { margin-top: 3rem; display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; text-align: left; }
.form-label { font-size: 0.65rem; letter-spacing: 0.25em; color: rgba(255,255,255,0.5); }
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(184,151,42,0.3);
  color: #fff; padding: 0.8rem 1rem;
  font-family: 'Noto Serif JP', serif; font-size: 0.85rem;
  outline: none; transition: border .3s; width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); }
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: #1a1208; color: #fff; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-submit {
  background: var(--red); color: #fff; border: none;
  padding: 1rem 3rem; font-family: 'Noto Serif JP', serif;
  font-size: 0.85rem; letter-spacing: 0.3em; cursor: pointer;
  transition: all .3s; width: 100%; margin-top: 0.5rem;
}
.form-submit:hover { background: #a93226; transform: translateY(-2px); }
.reserve-alt { margin-top: 2rem; font-size: 0.8rem; color: rgba(255,255,255,0.4); line-height: 1.8; }
.reserve-alt a { color: var(--gold); text-decoration: none; }

/* ── INFO ── */
#info { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); }
.info-left { padding: 5rem; border-right: 1px solid var(--smoke); }
.info-left .section-label { text-align: left; margin-bottom: 1.5rem; }
.info-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; font-weight: 300; color: var(--ink); margin-bottom: 2rem;
}
.info-list { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.info-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.info-item-label {
  font-size: 0.65rem; letter-spacing: 0.25em; color: var(--gold);
  white-space: nowrap; min-width: 70px; padding-top: 0.2rem;
}
.info-item-value { font-size: 0.85rem; line-height: 1.8; color: #4a3f2d; }
.info-right { padding: 5rem; display: flex; flex-direction: column; justify-content: center; }
.map-placeholder {
  background: var(--ink); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem; position: relative; overflow: hidden;
}
.map-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184,151,42,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,151,42,0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}
.map-icon { font-size: 2.5rem; position: relative; z-index: 1; }
.map-text { color: rgba(255,255,255,0.6); font-size: 0.85rem; position: relative; z-index: 1; text-align: center; line-height: 1.8; }
.map-link {
  position: relative; z-index: 1;
  background: transparent; border: 1px solid var(--gold);
  color: var(--gold); padding: 0.6rem 1.5rem;
  text-decoration: none; font-size: 0.75rem; letter-spacing: 0.2em;
  transition: all .3s;
}
.map-link:hover { background: var(--gold); color: var(--ink); }

/* ── FOOTER ── */
footer {
  background: #0e0b06;
  padding: 3rem 5%;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--gold); font-weight: 300; letter-spacing: 0.15em; }
.footer-nav { display: flex; gap: 2.5rem; list-style: none; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 0.7rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.4); text-decoration: none; transition: color .3s; }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-size: 0.65rem; color: rgba(255,255,255,0.2); letter-spacing: 0.15em; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-left > * { opacity: 0; animation: fadeUp 0.8s ease forwards; }
.hero-left > *:nth-child(1) { animation-delay: 0.2s; }
.hero-left > *:nth-child(2) { animation-delay: 0.4s; }
.hero-left > *:nth-child(3) { animation-delay: 0.5s; }
.hero-left > *:nth-child(4) { animation-delay: 0.6s; }
.hero-left > *:nth-child(5) { animation-delay: 0.7s; }

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-ring:nth-child(2) { animation: rotate 30s linear infinite; }
.hero-ring:nth-child(3) { animation: rotate 50s linear infinite reverse; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  background: var(--gold); color: var(--ink);
  padding: 1rem 2rem; font-size: 0.85rem; letter-spacing: 0.1em;
  transform: translateY(100px); opacity: 0; transition: all .4s;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── HERO LOGO IMAGE ── */
.hero-logo-img { margin-bottom: 2rem; }

/* ── FLATPICKR CUSTOM THEME ── */
.flatpickr-calendar {
  background: #1a1208 !important;
  border: 1px solid rgba(184,151,42,0.4) !important;
  border-radius: 0 !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
  font-family: 'Noto Serif JP', serif !important;
}
.flatpickr-months { background: #231810 !important; padding: 0.5rem 0; }
.flatpickr-month { color: var(--gold) !important; fill: var(--gold) !important; }
.flatpickr-current-month { color: var(--gold) !important; font-size: 1rem !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: #231810 !important; color: var(--gold) !important;
}
.flatpickr-prev-month svg, .flatpickr-next-month svg { fill: var(--gold) !important; }
.flatpickr-prev-month:hover svg, .flatpickr-next-month:hover svg { fill: #fff !important; }
.flatpickr-weekdays { background: #231810 !important; }
span.flatpickr-weekday {
  background: transparent !important;
  color: rgba(184,151,42,0.6) !important;
  font-size: 0.7rem; letter-spacing: 0.1em;
}
.flatpickr-day {
  color: rgba(255,255,255,0.7) !important;
  border-radius: 0 !important;
}
.flatpickr-day:hover {
  background: rgba(184,151,42,0.15) !important;
  border-color: rgba(184,151,42,0.3) !important;
  color: #fff !important;
}
.flatpickr-day.selected {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
}
.flatpickr-day.today {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}
.flatpickr-day.today:hover {
  background: rgba(184,151,42,0.2) !important;
}
.flatpickr-day.disabled, .flatpickr-day.disabled:hover {
  color: rgba(255,255,255,0.15) !important;
  cursor: not-allowed !important;
}
.flatpickr-day.flatpickr-disabled { color: rgba(255,255,255,0.15) !important; }
.numInputWrapper:hover { background: rgba(184,151,42,0.1) !important; }
.numInputWrapper span { border-color: rgba(184,151,42,0.2) !important; }
.numInputWrapper span svg { fill: var(--gold) !important; }
.flatpickr-input { cursor: pointer !important; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  #hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 50vw; }
  .hero-left { padding: 7rem 2rem 3rem; }
  .features-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  #info { grid-template-columns: 1fr; }
  .info-left, .info-right { padding: 3rem 2rem; }
  .info-left { border-right: none; border-bottom: 1px solid var(--smoke); }
}
