/* ============================================
   BAYCOOK - Menu Page
   Slider + Tab Nav + Modal + Weekday/Weekend Toggle
   ============================================ */

:root {
  --m-black: #1a1a1a;
  --m-gold: #B8A080;
  --m-gray-bg: #F7F4EF;
  --m-border: #F0EBE3;
  --m-border2: #E0DBD3;
  --m-text-light: #999999;
  --m-text-lighter: #AAAAAA;
  --m-text-lightest: #BBBBBB;
  --m-weekend-text: #C47D4A;
  --m-weekend-bg: #FFF3E8;
}

body {
  background: #FFFFFF;
  overflow-x: hidden;
}

/* ---- Header ---- */
.header-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  border-bottom: 1px solid var(--m-border);
}

.header-menu.nav-open {
  z-index: 1010;
  background: transparent;
  border-bottom-color: transparent;
}

.header-menu.nav-open .logo,
.header-menu.nav-open .header-right {
  opacity: 0;
  pointer-events: none;
}

.header-menu .logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--m-black);
  display: flex;
  align-items: center;
}

.header-menu .logo .custom-logo {
  max-height: 40px;
  width: auto;
}

.header-menu nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header-menu nav a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #888888;
  position: relative;
  transition: color 0.3s ease;
}

.header-menu nav a.active {
  color: var(--m-black);
  font-weight: 500;
}

.header-menu nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--m-black);
  transition: width 0.3s ease;
}

.header-menu nav a:hover {
  opacity: 1;
  color: var(--m-black);
}

.header-menu nav a:hover::after {
  width: 100%;
}

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

.header-menu .tel {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--m-black);
}

.header-menu .header-ig {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--m-black);
  transition: opacity 0.3s ease;
}

.header-menu .header-ig:hover {
  opacity: 0.5;
}

/* ---- Title + Toggle ---- */
.title-section {
  margin-top: 80px;
  padding: 32px 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #FFFFFF;
}

.title-section .heading-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--m-gold);
}

.title-section .heading-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--m-black);
}

/* Day Toggle */
.day-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-switch {
  display: flex;
  align-items: center;
  background: #F5F2ED;
  border-radius: 18px;
  padding: 3px;
  cursor: pointer;
  user-select: none;
}

.toggle-switch .toggle-option {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 20px;
  border-radius: 15px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--m-text-light);
  transition: all 0.3s ease;
  cursor: pointer;
}

.toggle-switch .toggle-option.active {
  background: var(--m-black);
  color: #FFFFFF;
  font-weight: 500;
}

/* Shortened Menu Notice */
.menu-shortened-notice {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--m-weekend-text);
  background: var(--m-weekend-bg);
  padding: 6px 16px;
  border-radius: 4px;
  margin-top: 4px;
}

/* ---- Scrollable Tab Bar ---- */
.tab-bar {
  position: relative;
  width: 100%;
  height: 48px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--m-border);
  overflow: hidden;
}

.tab-bar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 calc(50% - 40px);
}

.tab-bar-inner::-webkit-scrollbar {
  display: none;
}

.tab-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding: 0 16px;
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--m-text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}

.tab-item:hover {
  color: var(--m-black);
}

.tab-item.active {
  color: var(--m-black);
  font-weight: 500;
  border-bottom-color: var(--m-black);
}

.tab-item .weekend-badge {
  font-size: 9px;
  font-weight: 500;
  color: var(--m-weekend-text);
  background: var(--m-weekend-bg);
  padding: 2px 6px;
  border-radius: 3px;
}

.tab-item.weekend-only {
  color: var(--m-weekend-text);
}

.tab-item .weekday-badge {
  font-size: 9px;
  font-weight: 500;
  color: #2271b1;
  background: #e8f0fe;
  padding: 2px 6px;
  border-radius: 3px;
}

.tab-item.weekday-only {
  color: #2271b1;
}

/* Tab scroll fade edges */
.tab-fade-left,
.tab-fade-right {
  position: absolute;
  top: 0;
  width: 40px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
}

.tab-fade-left {
  left: 0;
  background: linear-gradient(90deg, #FFFFFF, transparent);
}

.tab-fade-right {
  right: 0;
  background: linear-gradient(270deg, #FFFFFF, transparent);
}

.tab-fade-left svg,
.tab-fade-right svg {
  width: 16px;
  height: 16px;
  color: #CCCCCC;
}

/* ---- Slider Area ---- */
.slider-area {
  position: relative;
  width: 100%;
  flex: 1;
  background: var(--m-gray-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.slider-viewport {
  position: relative;
  width: 100%;
  height: 460px;
  margin-top: 10px;
}

.slider-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: none;
}

.slide-card {
  position: absolute;
  top: 0;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.slide-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slide-card.active {
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.09);
  z-index: 10;
}

/* Slider Nav Arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  z-index: 20;
  border: none;
  transition: box-shadow 0.3s ease;
}

.slider-nav:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.slider-nav svg {
  width: 20px;
  height: 20px;
  color: var(--m-black);
}

.slider-nav-left {
  left: 24px;
}

.slider-nav-right {
  right: 24px;
}

/* Bottom Controls */
.bottom-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 0 20px;
}

.counter {
  display: flex;
  align-items: center;
  gap: 6px;
}

.counter .current {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--m-black);
}

.counter .slash {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #CCCCCC;
}

.counter .total {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--m-text-light);
}

.counter .label {
  font-size: 11px;
  font-weight: 300;
  color: var(--m-text-lighter);
}

.progress-bar {
  width: 300px;
  height: 3px;
  background: var(--m-border2);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.progress-bar .fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--m-black);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-container {
  position: relative;
  width: 740px;
  max-width: 95vw;
  max-height: 90vh;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--m-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #FFFFFF;
}

.modal-close svg {
  width: 16px;
  height: 16px;
  color: var(--m-black);
}

.modal-image-area {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
  height: 90vh;
  max-height: 90vh;
}

.modal-image-area img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ---- Hamburger (shared with top page) ---- */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1010;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-lines {
  width: 22px;
  height: 14px;
  position: relative;
  display: block;
  margin: 0 auto;
}

.hamburger-lines span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--m-black);
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.hamburger-lines span:nth-child(1) { top: 0; }
.hamburger-lines span:nth-child(2) { top: 7px; }
.hamburger-lines span:nth-child(3) { top: 14px; }

.hamburger.open .hamburger-lines span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.hamburger.open .hamburger-lines span:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger-lines span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  overflow-y: auto;
  padding: 64px 20px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--m-black);
}

.mobile-nav-logo-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--m-gold);
  margin-top: 4px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-nav-links a {
  display: block;
  padding: 12px 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--m-black);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-overlay.open .mobile-nav-links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-overlay.open .mobile-nav-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-overlay.open .mobile-nav-links a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-overlay.open .mobile-nav-links a:nth-child(3) { transition-delay: 0.2s; }

.mobile-nav-links a .nav-en {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--m-gold);
  margin-top: 2px;
}

.mobile-nav-divider {
  width: 36px;
  height: 1px;
  background: #E0DBD3;
}

.mobile-nav-tel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease 0.3s, transform 0.3s ease 0.3s;
}

.mobile-nav-overlay.open .mobile-nav-tel {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-tel .tel-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #999999;
}

.mobile-nav-tel .tel-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--m-black);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .header-menu {
    padding: 0 30px;
  }

  .progress-bar {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .header-menu {
    padding: 0 20px;
    height: 64px;
  }

  .header-menu nav {
    display: none;
  }

  .header-menu .header-right {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .title-section {
    margin-top: 64px;
    padding: 24px 20px 16px;
  }

  .title-section .heading-ja {
    font-size: 22px;
  }

  .day-toggle {
    flex-wrap: wrap;
    justify-content: center;
  }

  .slider-viewport {
    height: 350px;
  }

  .slider-nav {
    width: 36px;
    height: 36px;
  }

  .slider-nav-left {
    left: 12px;
  }

  .slider-nav-right {
    right: 12px;
  }

  .progress-bar {
    width: 160px;
  }

  .modal-container {
    width: 95vw;
    max-height: 90vh;
  }

  .modal-image-area {
    height: 85vh;
    max-height: 85vh;
  }

}
