/* =========================================================
   Pi&co. Design System
   湘南 × California × American × Napoli Pizza
   ========================================================= */

:root {
  --brand-green: #123527;      /* ロゴの深い緑 */
  --brand-green-deep: #0c261c;
  --brand-red: #d13b2e;        /* ロゴの赤 */
  --brand-gold: #f2b807;       /* アメリカンな差し色ゴールド */
  --brand-cream: #f6f1e4;      /* 生地のようなクリーム */
  --brand-ink: #1a1a16;
  --brand-orange: #e8722c;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--brand-cream);
  color: var(--brand-ink);
}

.font-anton { font-family: 'Anton', 'Bebas Neue', sans-serif; }
.font-bebas { font-family: 'Bebas Neue', sans-serif; }

.bg-cream { background-color: var(--brand-cream); }
.text-ink { color: var(--brand-ink); }
.text-brand-gold { color: var(--brand-gold); }
.text-brand-red { color: var(--brand-red); }
.text-brand-green { color: var(--brand-green); }
.bg-brand-green { background-color: var(--brand-green); }
.bg-brand-green-deep { background-color: var(--brand-green-deep); }
.bg-brand-red { background-color: var(--brand-red); }
.bg-brand-gold { background-color: var(--brand-gold); }
.border-brand-gold { border-color: var(--brand-gold); }

/* ---------- Header ---------- */
#site-header .header-bg {
  background: linear-gradient(to bottom, rgba(12,38,28,0.92), rgba(12,38,28,0.55));
  transition: background 0.3s ease;
  /* 装飾用の背景レイヤーがタップ/クリックを吸ってしまい、
     ヘッダー内のボタン(モバイルメニュー開閉など)が反応しなくなるのを防ぐ */
  pointer-events: none;
}
#site-header.scrolled .header-bg {
  background: var(--brand-green-deep);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.nav-link {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--brand-gold); }
.nav-link-active { color: var(--brand-gold); }
.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--brand-gold);
}
.mobile-nav-link {
  color: white;
  font-weight: 700;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: block;
}
/* モバイルメニュー表示中は背後のページスクロールを止める */
body.mobile-menu-open {
  overflow: hidden;
}

.reserve-btn-header {
  background: var(--brand-red);
  color: white;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(209,59,46,0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.reserve-btn-header:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 6px 18px rgba(209,59,46,0.55); }

/* ---------- Footer ---------- */
.footer-link { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-link:hover { color: var(--brand-gold); }
.footer-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: white;
  transition: background 0.2s;
}
.footer-icon:hover { background: var(--brand-gold); color: var(--brand-green-deep); }

/* ---------- Mobile tab bar ---------- */
.tab-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #555;
}
.tab-item i { font-size: 1.05rem; }
.tab-item-cta { background: var(--brand-red); color: white; }
.tab-item-cta i { color: white; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-red);
  color: white;
  font-weight: 900;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(209,59,46,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(209,59,46,0.5); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.15);
  border: 2px solid white;
  color: white;
  font-weight: 900;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease;
}
.btn-secondary:hover { background: rgba(255,255,255,0.28); }
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-gold);
  color: var(--brand-green-deep);
  font-weight: 900;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(242,184,7,0.35);
  transition: transform 0.15s ease;
}
.btn-gold:hover { transform: translateY(-2px); }

/* ---------- Section titles ---------- */
.section-label {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--brand-red);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  color: var(--brand-green-deep);
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,38,28,0.55) 0%, rgba(12,38,28,0.35) 45%, rgba(12,38,28,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.25rem;
  color: white;
}
.hero-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.4rem, 9vw, 6rem);
  line-height: 1.02;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
  letter-spacing: 0.01em;
}
.hero-sub {
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  margin-top: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ---------- Cards ---------- */
.pizza-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pizza-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0,0,0,0.14); }

.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.65rem; font-weight: 900; letter-spacing: 0.03em;
  padding: 0.2rem 0.6rem; border-radius: 999px;
}
.badge-popular { background: var(--brand-gold); color: var(--brand-green-deep); }
.badge-recommend { background: var(--brand-red); color: white; }
.badge-spicy { background: #b91c1c; color: white; }
.badge-notakeout { background: #6b7280; color: white; }

/* ---------- Chalkboard (店頭の黒板を再現) ---------- */
.chalkboard {
  position: relative;
  background: #1f2b23;
  background-image:
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 2px 2px;
  border-radius: 0.75rem;
  border: 10px solid #6b4a2f;
  box-shadow: 0 14px 34px rgba(0,0,0,0.35), inset 0 0 40px rgba(0,0,0,0.4);
  padding: 2rem 1.75rem;
  color: #f3f3ee;
}
.chalkboard-header {
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.03em;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #eef7ee;
  -webkit-text-stroke: 1.5px #7fd88f;
  text-stroke: 1.5px #7fd88f;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.chalkboard-note {
  font-size: 0.85rem;
  color: #f2b807;
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.chalkboard-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.18);
}
.chalkboard-row:last-of-type { border-bottom: none; }
.chalkboard-item {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: #fff;
  letter-spacing: 0.02em;
}
.chalkboard-item-sub {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0;
  margin-top: 0.1rem;
}
.chalkboard-value {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: #f2b807;
  white-space: nowrap;
}
.chalkboard-time {
  margin-top: 1.25rem;
  text-align: center;
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  color: #fff;
  border-top: 2px solid rgba(255,255,255,0.25);
  padding-top: 1rem;
}
.chalk-dust {
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  background: radial-gradient(circle at 20% 90%, rgba(255,255,255,0.06), transparent 40%);
  pointer-events: none;
}

/* ---------- Menu category tabs ---------- */
.menu-tab {
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  background: white;
  color: var(--brand-green-deep);
  border: 2px solid rgba(18,53,39,0.15);
  transition: all 0.2s;
}
.menu-tab.active, .menu-tab:hover {
  background: var(--brand-green-deep);
  color: white;
  border-color: var(--brand-green-deep);
}

/* ---------- Reservation wizard ---------- */
.step-dot {
  width: 2rem; height: 2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem;
  background: rgba(18,53,39,0.1);
  color: var(--brand-green-deep);
  transition: all 0.2s;
}
.step-dot.active { background: var(--brand-red); color: white; }
.step-dot.done { background: var(--brand-green); color: white; }

.time-slot-btn {
  padding: 0.7rem 0.5rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(18,53,39,0.15);
  background: white;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  transition: all 0.15s;
  cursor: pointer;
}
.time-slot-btn:hover:not(.disabled) { border-color: var(--brand-green); }
.time-slot-btn.selected { background: var(--brand-green-deep); border-color: var(--brand-green-deep); color: white; }
.time-slot-btn.disabled { opacity: 0.35; cursor: not-allowed; background: #eee; }
.time-slot-btn .remaining { font-size: 0.65rem; opacity: 0.75; display: block; margin-top: 2px; }

.table-select-card {
  display: block;
  position: relative;
  padding: 0.75rem 0.9rem 0.75rem 2.1rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(18,53,39,0.15);
  background: white;
  cursor: pointer;
  transition: all 0.15s;
}
.table-select-card input[type="checkbox"] {
  position: absolute;
  left: 0.75rem;
  top: 1rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--brand-green-deep);
}
.table-select-card:hover:not(.disabled) { border-color: var(--brand-green); }
.table-select-card:has(input:checked) { background: rgba(18,53,39,0.08); border-color: var(--brand-green-deep); }
.table-select-card.disabled { opacity: 0.4; cursor: not-allowed; background: #eee; }

.party-btn {
  width: 3rem; height: 3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900;
  background: var(--brand-green-deep); color: white;
  transition: transform 0.1s;
}
.party-btn:active { transform: scale(0.9); }
.party-btn:disabled { opacity: 0.3; }

/* ---------- Utility animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }
[data-animate] { opacity: 0; }
[data-animate].in-view { opacity: 1; animation: fadeInUp 0.7s ease forwards; }

.review-star { color: var(--brand-gold); }

/* ---------- Reviews horizontal scroll carousel ---------- */
.review-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 4px 0 20px;
}
.review-scroll::-webkit-scrollbar { height: 6px; }
.review-scroll::-webkit-scrollbar-thumb { background: rgba(18,53,39,0.25); border-radius: 3px; }
.review-scroll-track {
  display: flex;
  gap: 1.25rem;
  padding: 0 max(1.5rem, calc((100% - 72rem) / 2 + 1.5rem));
  width: max-content;
}
.review-card {
  flex: 0 0 auto;
  width: 280px;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}
.line-clamp-5 {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 640px) {
  .review-card { width: 240px; }
}

/* ---------- Admin ---------- */
/* モバイルではサイドバーを画面外にスライドさせておき、
   ハンバーガーボタンでオーバーレイ付きのドロワーとして開閉する。
   md以上(PC/タブレット)では常時表示の固定サイドバーに戻す。 */
.admin-sidebar {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 70;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  max-width: 85vw;
}
.admin-sidebar.admin-sidebar-open { transform: translateX(0); }
.admin-sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 60;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.admin-sidebar-overlay.admin-sidebar-overlay-open {
  display: block;
  opacity: 1;
}
body.admin-sidebar-scroll-lock { overflow: hidden; }
@media (min-width: 768px) {
  .admin-sidebar {
    position: static;
    transform: none;
    max-width: none;
  }
  .admin-sidebar-overlay { display: none !important; }
}

/* 管理画面テーブル: スマホでは横スクロール領域のスクロールしやすさとタップ領域を確保 */
.admin-table-scroll {
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 767px) {
  .admin-table-scroll { margin: 0 -1.5rem; padding: 0 1.5rem; }
  .admin-table td, .admin-table th { padding: 0.6rem 0.6rem; }
  .admin-btn-sm { padding: 0.45rem 0.8rem; }
  .admin-input, select.admin-input { font-size: 16px; }
}

.admin-sidebar-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: 0.6rem;
  color: #d1d5db; font-weight: 600; font-size: 0.9rem;
  transition: all 0.15s;
}
.admin-sidebar-link:hover, .admin-sidebar-link.active { background: rgba(255,255,255,0.1); color: white; }

.admin-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: #6b7280; text-align: left; }
.admin-table td, .admin-table th { padding: 0.65rem 0.85rem; }
.admin-table tr:not(:last-child) { border-bottom: 1px solid #e5e7eb; }
.admin-table-row:hover { background: #fafafa; }
.admin-btn-sm {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; font-weight: 700; padding: 0.35rem 0.75rem;
  border-radius: 0.5rem; background: #f3f4f6; color: #374151;
  transition: background 0.15s;
}
.admin-btn-sm:hover { background: #e5e7eb; }
.admin-btn-danger { background: #fee2e2; color: #dc2626; }
.admin-btn-danger:hover { background: #fecaca; }
.admin-input {
  width: 100%; border: 2px solid rgba(0,0,0,0.1); border-radius: 0.75rem;
  padding: 0.6rem 0.9rem; font-size: 0.9rem;
}
.admin-input:focus { outline: none; border-color: var(--brand-green); }
.admin-card { background: white; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

/* ---------- Admin: 予約カレンダー ---------- */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-grid-header { margin-bottom: 4px; }
.calendar-weekday {
  text-align: center; font-size: 0.75rem; font-weight: 700; color: #6b7280; padding: 0.4rem 0;
}
.calendar-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 0.25rem; min-height: 72px; border-radius: 0.6rem; border: 1px solid #e5e7eb;
  padding: 0.4rem 0.2rem; transition: background 0.15s;
}
.calendar-cell:hover { background: #f9fafb; }
.calendar-cell-empty { border: none; background: transparent; }
.calendar-cell-today { border: 2px solid var(--brand-red); background: #fff5f4; }
.calendar-cell-date { font-weight: 700; font-size: 0.9rem; }
.calendar-cell-badge {
  font-size: 0.65rem; font-weight: 700; color: white; background: var(--brand-green-deep);
  border-radius: 999px; padding: 0.15rem 0.4rem; text-align: center; line-height: 1.3;
}
@media (max-width: 640px) {
  .calendar-cell { min-height: 52px; }
  .calendar-cell-badge { font-size: 0.55rem; }
}

@media (max-width: 767px) {
  .hero-section { min-height: 100vh; }
}
