@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Noto+Serif+JP:wght@700;900&display=swap');

:root {
  --primary-red: #E60012;
  --accent-gold: #FFD400;
  --teal-accent: #007B8F;
  --text-dark: #332B2B;
  --bg-warm: #FEF9F5;
  --white: #ffffff;
  --gray-light: #EBE4DE;
  --radius-md: 12px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: var(--bg-warm);
  color: var(--text-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-red);
}

/* Layout */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: var(--white);
}

section {
  padding: 60px 20px;
}

.content-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* Header & Hero */
header {
  padding: 60px 20px;
  text-align: center;
  background: var(--white);
}

.main-logo {
  max-width: 500px;
  width: 100%;
  height: auto;
}

.hero-img {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 0 auto;
}

/* Menu Display */
.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-gold);
}

/* Hero Section */
.hero-fv {
  position: relative;
  background: var(--white);
  color: var(--text-dark);
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-fv-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-fv-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  /* Slightly wider for the big logo */
  margin: 0 auto;
}

.hero-logo {
  width: 100%;
  max-width: none;
  height: auto;
  margin-bottom: 30px;
}

.hero-rules {
  background: var(--primary-red);
  display: inline-block;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: bold;
  margin-bottom: 25px;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.hero-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 25px;
  font-weight: bold;
}

@media (max-width: 600px) {
  .hero-fv {
    padding: 60px 15px;
  }

  .hero-logo {
    max-width: none;
  }
}

/* Menu Display Styles (Restored) */
.menu-grid-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.menu-grid-sub {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .menu-grid-sub {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .menu-grid-sub {
    grid-template-columns: 1fr;
  }
}

.menu-item {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: transform 0.3s ease;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.menu-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.menu-grid-sub .menu-item img {
  height: auto;
}

.menu-item-info {
  padding: 20px;
  text-align: center;
}

.menu-item-info h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary-red);
}

.menu-price {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-dark);
}

/* Reservation Form Optimization */
.reservation-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: none;
}

.form-header {
  margin-bottom: 30px;
  text-align: center;
}

.form-header h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.form-header p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.form-step {
  margin-bottom: 40px;
  padding: 25px;
  background: #f9f9f9;
  border-radius: 16px;
  border: 1px solid #eee;
}

.form-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.step-num {
  background: var(--primary-red);
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.form-help {
  font-size: 0.85rem;
  color: #888;
  margin-top: -15px;
  margin-bottom: 15px;
  display: block;
}

/* Radio Grid for Date / Time */
.selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.grid-item {
  position: relative;
}

.grid-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.grid-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: var(--white);
  border: 2px solid #ddd;
  border-radius: 12px;
  font-weight: bold;
  transition: all 0.2s;
  text-align: center;
}

.grid-item input[type="radio"]:checked+.grid-label {
  border-color: var(--primary-red);
  background: #fff5f5;
  color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(230, 0, 18, 0.1);
}

.time-grid {
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
}

.time-grid .grid-label {
  padding: 10px 5px;
  font-size: 0.9rem;
}

/* Stepper UI */
.order-tray-optimized {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.opt-tray-item {
  background: var(--white);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.opt-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.opt-item-name {
  font-weight: bold;
  font-size: 1rem;
}

.opt-item-price {
  font-size: 0.85rem;
  color: #888;
}

.opt-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.opt-stepper {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f5f5f5;
  padding: 5px;
  border-radius: 50px;
}

.step-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--text-dark);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.step-val {
  min-width: 20px;
  text-align: center;
  font-weight: bold;
}

/* Inputs */
.input-modern {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.input-modern:focus {
  outline: none;
  border-color: var(--primary-red);
}

.input-error {
  border-color: #ff5252;
  background: #fff8f8;
}

.error-text {
  color: #ff5252;
  font-size: 0.8rem;
  margin-top: 5px;
  display: block;
}

/* Security Note */
.security-note {
  margin-top: 30px;
  padding: 15px;
  background: #f0fdf4;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #166534;
}

.privacy-link {
  color: #666;
  text-decoration: underline;
  font-size: 0.8rem;
  display: block;
  text-align: center;
  margin-top: 15px;
}

/* Modal Enhancements */
.modal-content {
  padding: 40px;
  border-radius: 24px;
}

.confirm-val-big {
  font-size: 1.8rem;
  color: var(--primary-red);
  font-weight: 900;
  text-align: center;
  display: block;
  margin: 10px 0;
}

@media (max-width: 600px) {
  .reservation-form {
    padding: 20px;
  }

  .selection-grid {
    grid-template-columns: 1fr;
  }

  .time-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-step {
    padding: 15px;
  }
}

/* Sticky Total Bar */
.fixed-order-bar {
  position: fixed;
  bottom: 80px;
  /* Above footer */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 560px;
  background: var(--white);
  padding: 15px 25px;
  border-radius: 50px;
  display: none;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  border: 2px solid var(--primary-red);
}

.fixed-order-bar.visible {
  display: flex;
}

/* Cutoff Banner for Form - High Contrast */
.cutoff-banner {
  background: #fff9c4;
  /* Brighter yellow */
  color: #333;
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 25px;
  text-align: center;
  border: 2px solid var(--primary-red);
  /* Full border instead of just left */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cutoff-title {
  display: block;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--primary-red);
  /* Red title */
  margin-bottom: 10px;
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 8px;
}

.confirm-item {
  margin-bottom: 25px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 15px;
}

.confirm-label {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 10px;
  display: block;
  font-weight: bold;
}

.confirm-val {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-dark);
  line-height: 1.4;
}

.cutoff-text {
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 700;
}

.cutoff-text strong {
  color: var(--primary-red);
  font-size: 1.1rem;
}

/* Buttons */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  background: var(--primary-red);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-premium:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.btn-line {
  background: #06C755;
}

/* Sticky Footer */
.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  padding: 12px;
  gap: 12px;
  border-top: 1px solid var(--gray-light);
  z-index: 1001;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.sticky-footer .btn-premium {
  flex: 1;
  font-size: 0.9rem;
  padding: 12px 10px;
  white-space: nowrap;
}

.sticky-footer .btn-cta-sticky {
  background: #ffeb3b;
  color: #000;
  border: 2px solid #000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  flex: 1.2;
}

/* Info Table Styles */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-table th,
.info-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
}

.info-table th {
  background: #f9f9f9;
  width: 120px;
  color: #666;
  font-size: 0.9rem;
  font-weight: bold;
}

.info-table td {
  color: var(--text-dark);
  font-weight: bold;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.info-table a {
  color: var(--primary-red);
  text-decoration: none;
}

@media (max-width: 600px) {

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    padding: 15px 20px 5px;
    background: transparent;
    border-bottom: none;
    font-size: 0.8rem;
  }

  .info-table td {
    padding: 5px 20px 15px;
  }
}

@media (max-width: 600px) {
  .section-title {
    font-size: 1.6rem;
  }
}

/* Sold Out Styles */
.opt-tray-item.sold-out {
  background: #f5f5f5;
  border-color: #ddd;
  opacity: 0.8;
  pointer-events: none;
}

.sold-out-badge {
  display: inline-block;
  background: #ff5252;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.opt-tray-item.sold-out .opt-item-name {
  color: #888;
}

.opt-tray-item.sold-out .opt-item-price {
  color: #bbb;
}