@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Yuji+Boku&display=swap');

:root {
  --color-primary: #C3A14A;
  /* Gold */
  --color-accent: #D20505;
  /* Red */
  --color-accent-light: #FEF9EE;
  /* Cream */
  --color-black: #000000;
  /* Pure Black */
  --color-white: #ffffff;
  --color-bg: #FEF9EE;
  /* Cream */
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 80px;
}

@media (min-width: 1024px) {
  html {
    scroll-padding-top: 100px;
  }
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.8;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  /* Disable Text Selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: var(--color-bg);
  overflow-x: hidden;
}

/* Typography PC/SP - Fluid Responsive */
body,
a,
li,
dd,
dt,
p {
  font-size: 14px;
}

h3 {
  font-size: 14px;
}

@media (min-width: 768px) {

  body,
  a,
  li,
  dd,
  dt,
  p,
  h3 {
    font-size: 16px;
  }
}

/* Image styles - no radius, no shadow */
img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Sections Padding */
.section {
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: hidden;
}

/* Section Title dual style */
.section-title {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow: hidden;
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}

.section-title .en {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(11px, 3vw, 16px);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.3em;
  margin-bottom: 12px;
  text-transform: uppercase;
  line-height: 1;
}

.section-title .jp {
  display: block;
  font-size: clamp(16px, 4.5vw, 36px);
  font-weight: 700;
  letter-spacing: 0.03em;
  position: relative;
  padding-bottom: 20px;
  line-height: 1.4;
  color: inherit;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

.section-title .jp::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
}

@media (min-width: 768px) {
  .section-title .jp {
    font-size: 36px;
    letter-spacing: 0.05em;
  }

  .section-title .en {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .section-title .jp {
    font-size: clamp(14px, 4vw, 22px);
    letter-spacing: 0.02em;
  }

  .section-title {
    margin-bottom: 40px;
  }
}

/* FV Swiper */
.fv-swiper {
  width: 100%;
  height: 100%;
}

.fv-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.fv-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.05);
  image-rendering: -webkit-optimize-contrast;
}

#fv img {
  transition: transform 10s ease;
}

#fv:hover img {
  transform: scale(1.03);
}

/* Parallax Background */
.parallax-section {
  position: relative;
  background-image: url('../img/26.jpg');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@supports (-webkit-touch-callout: none) {
  .parallax-section {
    background-attachment: scroll;
  }
}

/* iOS Parallax Fix */
.clip-bg-fixed {
  position: relative;
  clip-path: inset(0);
  background-color: transparent !important;
}

.fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Wave/Organic Curvature divider removal or styling */
.wave-container {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 80px;
  min-height: 80px;
  max-height: 120px;
  z-index: 20;
}

/* FV Text Animation */
.fv-text-box {
  animation: fvFadeUp 1.5s ease-out forwards;
  opacity: 0;
  animation-delay: 0.5s;
}

@keyframes fvFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TV Section Hover Animation */
.hover-slide {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

.hover-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(144, 238, 144, 0.15);
  /* New light green hover tint */
  transition: width 0.4s ease-out;
  z-index: -1;
}

.hover-slide:hover::before {
  width: 100%;
}

.waves {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Animation */
.parallax>use {
  animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax>use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax>use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax>use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* Shrinking for mobile */
@media (max-width: 768px) {
  .wave-container {
    height: 40px;
    min-height: 40px;
  }
}

/* Footer Wave Specifics */
.footer-wave {
  top: -80px;
  bottom: auto;
}

@media (max-width: 768px) {
  .footer-wave {
    top: -40px;
  }
}

/* Ensure waves don't overflow horizontally */
.wave-container {
  overflow: hidden;
}

/* Asymmetry Grid */
.broken-grid-left {
  margin-top: 0;
}

.broken-grid-right {
  margin-top: 0;
}

@media (min-width: 768px) {
  .broken-grid-left {
    margin-top: 0;
  }

  .broken-grid-right {
    margin-top: 0;
  }

  .grid-40-60 {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 50px;
  }

  .grid-60-40 {
    display: grid;
    grid-template-columns: 1fr 40%;
    gap: 50px;
  }
}

/* SP Container Padding Override */
.container {
  padding-left: 15px !important;
  padding-right: 15px !important;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }
}

/* Floating CTA & Scroll Top */
.fixed-bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.fixed-bottom-cta.show {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .fixed-bottom-cta {
    display: none !important;
  }
}

.scroll-top {
  position: fixed;
  bottom: 110px;
  right: 20px;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: var(--color-black);
  border-radius: 50% !important;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .scroll-top {
    bottom: 20px;
  }
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

/* Fullscreen Menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

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

/* Infinite Marquee Gallery */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  display: flex;
  align-items: center;
}

.marquee-content {
  display: flex;
  animation: marquee 45s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-item {
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  margin-right: 24px;
  cursor: pointer;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

@media (min-width: 768px) {
  .marquee-item {
    width: 400px;
    height: 400px;
  }
}

.marquee-item:hover {
  opacity: 0.95;
  transform: scale(1.02);
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom Gallery Modal */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(26, 47, 28, 0.95);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-modal.open {
  opacity: 1;
  visibility: visible;
}

.gallery-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-modal img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

/* Modal close button */
.modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: white;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
  line-height: 1;
}

/* Modal prev/next */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 24px;
  cursor: pointer;
  background: rgba(26, 47, 28, 0.6);
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50% !important;
  z-index: 1001;
  transition: background 0.3s;
}

.modal-nav:hover {
  background: var(--color-primary);
}

.modal-prev {
  left: -60px;
}

.modal-next {
  right: -60px;
}

@media (max-width: 767px) {
  .modal-prev {
    left: 10px;
  }

  .modal-next {
    right: 10px;
  }

  .modal-close {
    right: 10px;
    top: -30px;
  }
}

/* Voice Swiper Equal Height */
.voice-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.voice-swiper .swiper-slide>div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
}

/* Header style */
header {
  height: 96px;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(8px);
}

/* Logo height override - fit within header */
@media (min-width: 768px) {
  header .md\:h-28 {
    height: 6rem;
  }
}

/* Custom Mobile Padding Overrides */
@media (max-width: 767px) {

  .p-6,
  .p-8 {
    padding: 30px 15px !important;
  }
}

/* FV Custom Typography - Fluid Responsive */
#fv h2 {
  font-family: 'Yuji Boku', serif;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.1em;
  font-size: clamp(28px, 10vw, 7rem) !important;
}

/* FV Message text */
#fv .text-lg,
#fv p.font-bold {
  font-size: clamp(14px, 4vw, 24px) !important;
}

/* FV small info text */
#fv .text-xs {
  font-size: clamp(10px, 2.5vw, 14px) !important;
}

/* Vertical writing text in FV */
#fv [style*='writing-mode'] {
  font-size: clamp(9px, 2.5vw, 14px) !important;
}

#fv .writing-vertical {
  writing-mode: vertical-rl;
}

.fv-title-row {
  gap: 36px !important;
}

@media (max-width: 768px) {
  .fv-title-row {
    gap: 28px !important;
  }
}

/* Extra small screens (under 480px) */
@media (max-width: 480px) {
  #fv h2 {
    font-size: clamp(22px, 9vw, 36px) !important;
    letter-spacing: 0.05em !important;
  }

  /* Set gap for title row elements */
  .fv-title-row {
    gap: 20px !important;
  }

  #fv .mb-6 {
    margin-bottom: 10px !important;
  }

  #fv .mt-4 {
    margin-top: 10px !important;
  }

  #fv p.font-bold {
    font-size: 13px !important;
    letter-spacing: 0.05em !important;
  }

  #fv .text-\[10px\] {
    font-size: 9px !important;
  }

  .section-title .jp {
    font-size: 18px;
  }

}

/* Under 380px - even smaller */
@media (max-width: 380px) {
  #fv h2 {
    font-size: clamp(20px, 8.5vw, 30px) !important;
  }

  #fv p.font-bold {
    font-size: 12px !important;
  }

  .section-title .jp {
    font-size: 16px;
  }
}

/* TV section heading fluid size */
section h3 span.bg-primary {
  font-size: clamp(14px, 4vw, 30px);
  white-space: nowrap;
}

@media (max-width: 480px) {
  section h3 span.bg-primary {
    white-space: normal;
    font-size: 14px;
  }
}

/* Header link styles refined */
header a {
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* Section Title Refinement */
.section-title .jp {
  font-weight: 700;
}

/* Premium Card Hover */
.bg-white.rounded-xl:hover {
  transform: translateY(-8px);
  transition: transform 0.4s ease;
}

/* Branding Font Override */
.font-branding,
#access h3,
footer .text-2xl {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
}

/* Organic Background Patterns */
.bg-organic-dark {
  background-color: var(--color-black);
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-organic-light {
  background-color: var(--color-bg);
  background-image: radial-gradient(rgba(56, 102, 65, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Custom layout helper */
.max-w-lg {
  max-width: 36rem;
}

.max-w-xl {
  max-width: 38rem !important;
}

/* Floating Menu Images Animation */
@keyframes float-slow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.fv-float-img {
  animation: float-slow 4s ease-in-out infinite;
}

.fv-float-img:nth-child(1) {
  animation-delay: 0s;
}

.fv-float-img:nth-child(2) {
  animation-delay: 0.8s;
}

.fv-float-img:nth-child(3) {
  animation-delay: 1.6s;
}

.fv-float-img:nth-child(4) {
  animation-delay: 2.4s;
}

/* FV Side Swipers styling */
.fv-left-swiper,
.fv-right-swiper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.fv-left-swiper .swiper-slide,
.fv-right-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.fv-left-swiper img,
.fv-right-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}