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

:root {
  --color-gold: #d4af37;
  --color-gold-light: #f1e4b3;
  --color-gray-light: #f5f5f5;
  --color-gray-dark: #333333;
  --color-black: #000000;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--color-black);
  background-color: #fff;
  overflow-x: hidden;
}

/* Base Styles */
h1,
h2,
h3,
h4,
.title-font {
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* SECTION HEADERS */
.section-head {
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head .title {
  position: relative;
  color: var(--color-black);
  font-size: 2rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
}

.section-head .subtitle {
  display: block;
  font-size: 0.8rem;
  color: var(--color-gray-dark);
  margin-top: 5px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.section-head::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-gold);
  margin: 15px auto 0;
}

/* For dark background sections */
section.parallax-bg .section-head .title,
section.bg-black .section-head .title,
section.parallax-bg .section-head .subtitle,
section.bg-black .section-head .subtitle {
  color: #fff;
}

/* SP Adjustments for Section Headers */
@media (max-width: 768px) {
  .section-head .title {
    font-size: 1.1rem;
  }
}

/* SECTION GAP */
section {
  margin-bottom: 120px;
}

@media (max-width: 768px) {
  section {
    margin-bottom: 80px;
  }
}

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

@media (max-width: 768px) {
  .parallax-bg {
    background-attachment: scroll;
    /* Mobile doesn't support fixed well */
  }
}

/* Header Adjustments */

header {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, background-color, padding;
  transition: none !important;
  /* No animation on scroll/load for SP */
}

@media (min-width: 1024px) {
  header#main-header {
    transition: all 0.5s ease !important;
    /* Smooth transition for PC scroll only */
  }
}

header.scrolled {
  background: rgba(0, 0, 0, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
  header#main-header.scrolled {
    position: fixed !important;
    padding-top: 1.25rem !important;
    /* lg:py-5 equivalent */
    padding-bottom: 1.25rem !important;
    backdrop-filter: blur(8px);
  }
}

/* Top Button */
#top-button {
  transition: opacity 0.3s, transform 0.3s;
}

/* Custom Hamburger Menu overlay */
#mobile-menu-overlay {
  transition: opacity 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Disable animations for 375px screens */
@media (max-width: 375px) {

  header,
  #mobile-menu-overlay {
    transition: none !important;
  }
}

/* Voice Card */
.voice-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* RIGHT CLICK DISABLE MASK (Optional visual hint) */
body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Gold Button */
.btn-gold {
  background: var(--color-gold);
  color: #fff;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-gold:hover {
  background: var(--color-gold-light);
  color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Scroll Animation */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Infinite Shine Animation */
@keyframes shine-loop {
  0% {
    transform: translateX(-150%) skewX(-25deg);
  }

  20% {
    transform: translateX(150%) skewX(-25deg);
  }

  100% {
    transform: translateX(150%) skewX(-25deg);
  }
}

.shine-btn {
  position: relative;
  overflow: hidden !important;
}

.shine-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  transform: translateX(-150%) skewX(-25deg);
  animation: shine-loop 4s infinite ease-in-out;
  pointer-events: none;
}

/* Gallery Ticker Smoothness */
.gallery-ticker .swiper-wrapper {
  transition-timing-function: linear !important;
}

/* Gallery Image Hover */
.gallery-link {
  display: block;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}

.gallery-link img {
  transition: transform 0.5s ease;
}

.gallery-link:hover img {
  transform: scale(1.08);
}

.gallery-ticker .swiper-slide img {
  border-radius: 4px;
}

/* Modal Image Transition */
#modal-img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Modal Button Focus Reset */
#modal-prev:focus,
#modal-next:focus,
#modal-close:focus {
  outline: none;
}