/* 
  Design System for 楽食健美 東郷 (Rakushokukenbi Togo)
  Theme: Luxury, Simple, Black & White with Gold accents
*/

:root {
  --primary-color: #c1a35f;
  /* Sophisticated Gold */
  --secondary-color: #1a1a1a;
  /* Elegant Black */
  --accent-color: #d4af37;
  /* Metallic Gold */
  --bg-color: #fdfdfb;
  /* Subtle Creme White */
  --text-color: #1a1a1a;
  --font-main: "Noto Serif JP", serif;
  --font-accent: "Shippori Mincho", serif;
  --section-margin-sp: 90px;
  --section-margin-pc: 160px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.8;
  letter-spacing: 0.05em;
  font-size: 16px;
  overflow-x: hidden;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
.serif {
  font-family: var(--font-accent);
}

/* Spacing */
.section-margin {
  margin-bottom: var(--section-margin-sp);
}

@media (min-width: 1024px) {
  .section-margin {
    margin-bottom: var(--section-margin-pc);
  }
}

/* Header Glassmorphism */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Swiper Fade Customization */
.swiper-fade .swiper-slide {
  pointer-events: none;
  transition-property: opacity;
}

.swiper-fade .swiper-slide-active {
  pointer-events: auto;
}

.gallery-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}


/* FV Image Handling */
.fv-img {
  width: 100%;
  height: 100%;
  vertical-align: bottom;
  object-fit: cover;
}

/* Section Heading (Minimal Style) */
.section-head {
  max-width: fit-content;
  margin: 0 auto 4rem auto;
  position: relative;
  text-align: center;
  padding-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

@media (min-width: 1024px) {
  .section-head {
    margin: 0 auto 6rem auto;
  }
}

.section-head.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-head::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0px;
  height: 1px;
  background-color: var(--primary-color);
  transition: width 1s ease 0.3s;
}

.section-head.is-visible::after {
  width: 60px;
}

.section-head .title {
  color: var(--text-color);
  font-size: 1.85rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}



/* Layout Utilities - Asymmetry */
.asymmetry-row {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .asymmetry-row {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }

  .asymmetry-text {
    width: 55%;
  }

  .asymmetry-img {
    width: 45%;
  }

  .asymmetry-img-left {
    order: -1;
  }
}

/* Parallax */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Top to Back */
#top-to-back {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: var(--secondary-color);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  z-index: 99;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-color);
}

#top-to-back:hover {
  background: var(--primary-color);
}

/* CTA SP Sticky */
.cta-sticky-sp {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--secondary-color);
  z-index: 100;
  display: flex;
  justify-content: space-around;
  padding: 12px;
  border-top: 1px solid var(--primary-color);
}

@media (min-width: 1024px) {
  .cta-sticky-sp {
    display: none;
  }
}

/* Hamburger Overlay */
#sp-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary-color);
  color: #fff;
  z-index: 3000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#sp-menu-overlay a {
  color: #fff;
  font-size: 1.5rem;
  margin: 1.5rem 0;
  letter-spacing: 0.2em;
}

/* Global Image Styling */
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  /* Modern soft corners */
}

.fv-img {
  border-radius: 0 !important;
}

/* Staff Card Styles */
.staff-card {
  text-align: center;
  transition: transform 0.3s ease;
}

.staff-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-color);
}

.staff-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Button Stylings */
.btn-gold {
  background-color: var(--primary-color);
  color: #fff;
  padding: 1.1rem 3.5rem;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  letter-spacing: 0.15em;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
  z-index: -1;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-gold:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.9rem 2.8rem;
  display: inline-block;
  transition: all 0.4s ease;
  letter-spacing: 0.15em;
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 5px 15px rgba(193, 163, 95, 0.2);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-head.reveal span {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.8s ease-out 0.2s;
}

.section-head.reveal h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease-out 0.4s;
}

.section-head.reveal.is-visible span,
.section-head.reveal.is-visible h2 {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

/* Gallery Style Enhancement */
.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.4));
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(193, 163, 95, 0.2);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  transition: transform 1.8s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.gallery-item:hover img {
  transform: scale(1.1) !important;
}


/* Image Hover */
.asymmetry-img img {
  transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.asymmetry-img:hover img {
  transform: scale(1.05);
}

/* Premium Box & Shadow Styles */
.premium-card {
  background: #ffffff;
  padding: 2rem 1.25rem;
  border: 1px solid rgba(193, 163, 95, 0.15);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .premium-card {
    padding: 5rem 4rem;
  }
}

.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(193, 163, 95, 0.12);
  border-color: rgba(193, 163, 95, 0.4);
}

.shadow-soft {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.shadow-heavy {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

/* Section specific box styles */
.section-box {
  background: white;
  padding: 2.5rem;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

/* Luminous Lightbox Customization */
.lum-lightbox {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.9) !important;
  z-index: 100000 !important;
  backdrop-filter: blur(8px);
  animation: lum-fade-in 0.4s ease forwards;
  box-sizing: border-box !important;
  /* Reinforced Flex Centering */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@keyframes lum-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lum-lightbox-inner {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

.lum-lightbox-image-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}

.lum-lightbox-image,
.lum-img,
.lum-lightbox-inner img {
  max-width: 90vw !important;
  max-height: 80vh !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 4px !important;
}

/* Close button - Professional Minimalist Style */
.lum-close-button {
  position: fixed !important;
  top: 30px !important;
  right: 30px !important;
  width: 50px !important;
  height: 50px !important;
  cursor: pointer !important;
  z-index: 1000000 !important;
  /* Extremely high z-index */
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  /* Hide the default Luminous cross text/character */
  font-size: 0 !important;
  color: transparent !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
}

.lum-close-button:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: rotate(90deg);
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Use Pseudo-elements for the X */
.lum-close-button::before,
.lum-close-button::after {
  content: "" !important;
  position: absolute !important;
  width: 20px !important;
  height: 1px !important;
  background-color: #fff !important;
  top: 50% !important;
  left: 50% !important;
  pointer-events: none !important;
}

.lum-close-button::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

.lum-close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

/* Navigation buttons (arrows) */
.lum-previous-button,
.lum-next-button {
  position: fixed !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 60px !important;
  height: 60px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  z-index: 1000000 !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.lum-previous-button {
  left: 30px !important;
}

.lum-next-button {
  right: 30px !important;
}

.lum-previous-button:hover,
.lum-next-button:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-50%) scale(1.05) !important;
}

/* Custom Arrows using pseudo-elements */
.lum-previous-button::after,
.lum-next-button::after {
  content: "" !important;
  position: absolute !important;
  width: 14px !important;
  height: 14px !important;
  border-top: 2px solid #fff !important;
  border-left: 2px solid #fff !important;
  top: 50% !important;
  left: 50% !important;
}

.lum-previous-button::after {
  transform: translate(-35%, -50%) rotate(-45deg) !important;
}

.lum-next-button::after {
  transform: translate(-65%, -50%) rotate(135deg) !important;
}

/* Hide extra UI elements */
.lum-caption,
.lum-previous-button,
.lum-next-button,
.lum-gallery-navigation {
  display: none !important;
}

@media (max-width: 768px) {
  .lum-previous-button,
  .lum-next-button {
    width: 45px !important;
    height: 45px !important;
  }

  .lum-previous-button {
    left: 15px !important;
  }

  .lum-next-button {
    right: 15px !important;
  }

  .lum-close-button {
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
  }
}


/* Swiper Gallery Navigation */
.gallery-swiper {
  position: relative;
}

.gallery-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

.gallery-prev,
.gallery-next {
  color: var(--primary-color) !important;
  width: 50px !important;
  height: 50px !important;
  background: white !important;
  border-radius: 50% !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  transition: all 0.3s ease !important;
}

.gallery-prev::after,
.gallery-next::after {
  font-size: 1.2rem !important;
  font-weight: bold !important;
}

.gallery-prev {
  left: 10px !important;
}

.gallery-next {
  right: 10px !important;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: var(--primary-color) !important;
  color: white !important;
  transform: translateY(-50%) scale(1.1) !important;
  box-shadow: 0 10px 25px rgba(193, 163, 95, 0.3) !important;
}

@media (min-width: 1024px) {
  .gallery-prev {
    left: -70px !important;
  }

  .gallery-next {
    right: -70px !important;
  }
}

/* Ensure the swiper container doesn't CLIP the arrows if they are outside */
#gallery .swiper {
  overflow: visible !important;
}

/* SP FIXES */
@media (max-width: 768px) {
  :root {
    --section-margin-sp: 60px;
  }

  .section-head {
    margin-bottom: 2.5rem !important;
  }

  .section-head h2 {
    font-size: 1.4rem !important;
  }

  .premium-card {
    padding: 2rem 1.25rem !important;
  }
}

/* Overflow Fix */
html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

@media (max-width: 768px) {
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .premium-card {
    width: 100% !important;
    border-radius: 0 !important;
    margin-left: -10px !important;
    width: calc(100% + 20px) !important;
  }
}

@media (max-width: 768px) {
  #gallery+section.parallax-bg .bg-white {
    width: calc(100% + 20px) !important;
    margin-left: -10px !important;
    border-radius: 0 !important;
  }
}

/* Mobile Only Line Breaks */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
}