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

:root {
  --color-primary: #ff7b00;
  --color-black: #111111;
  --color-white: #ffffff;
  --color-bg: #fafafa;
}

html {
  scroll-behavior: smooth;
}

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;
}

/* Typography PC/SP */
body, p, a, li, dd, dt, h3 {
  font-size: 14px;
}
@media (min-width: 768px) {
  body, p, a, li, dd, dt, h3 {
    font-size: 16px;
  }
}

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

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

/* Section Title dual style */
.section-title {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.section-title .en {
  display: block;
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.4em;
  margin-bottom: 12px;
  text-transform: uppercase;
  line-height: 1;
}
.section-title .jp {
  display: block;
  font-family: 'Yuji Syuku', serif;
  font-size: 28px;
  font-weight: 400; /* Yuji Syuku usually looks best at its natural weight */
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: 20px;
  line-height: 1.4;
  color: inherit; /* Inherit from section text color */
}
.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: 38px;
  }
  .section-title .en {
    font-size: 15px;
  }
}

/* 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.1);
  image-rendering: -webkit-optimize-contrast;
}

#fv img {
  transition: transform 10s ease;
}
#fv:hover img {
  transform: scale(1.05);
}

/* Parallax Background */
.parallax-section {
  position: relative;
  background-image: url('../img/10.jpg');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
@supports (-webkit-touch-callout: none) {
  .parallax-section {
    background-attachment: scroll;
  }
}

/* Wave Animation */
.wave-container {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
  min-height: 100px;
  max-height: 150px;
  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(40px);
  }
  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(255, 123, 0, 0.1); /* Light primary color */
  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: -100px; /* Position it above the footer */
  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: 40px; }
  .grid-60-40 { display: grid; grid-template-columns: 1fr 40%; gap: 40px; }
}

/* SP Container Padding Override */
.container {
  padding-left: 10px !important;
  padding-right: 10px !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 10px rgba(0,0,0,0.1);
  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: 80px;
  right: 20px;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  background-color: var(--color-black);
  color: white;
  border-radius: 50% !important;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
@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 40s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  margin-right: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
@media (min-width: 768px) {
  .marquee-item {
    width: 450px;
    height: 450px;
  }
}
.marquee-item:hover {
  opacity: 0.9;
  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(0,0,0,0.9);
  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: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  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: 30px;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  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;
  width: 100%;
}

/* Header style */
header {
  height: 80px;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Custom Mobile Padding Overrides */
@media (max-width: 767px) {
  .p-6, .p-8 {
    padding: 40px 10px !important;
  }
}

/* FV Custom Typography */
#fv h2 {
  font-family: 'Yuji Syuku', serif;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
  letter-spacing: -0.05em;
}

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

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

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

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

/* Branding Font Override */
.font-branding, 
#access h3,
footer .text-2xl {
  font-family: 'Yuji Syuku', serif;
}

/* Wagara Background Patterns */
.bg-wagara-dark {
  background-image: url('../img/wagara_dark.png');
  background-repeat: repeat;
  background-size: 400px auto;
  background-blend-mode: overlay;
}

.bg-wagara-light {
  background-image: url('../img/wagara_light.png');
  background-repeat: repeat;
  background-size: 400px auto;
  background-blend-mode: multiply;
}



