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

:root {
  --color-primary: #004e92;
  /* Deep Blue */
  --color-secondary: #06b6d4;
  /* Sky Blue */
  --color-accent: #10b981;
  /* Sea Green */
  --color-text: #111827;
  /* Deep Black/Charcoal */
  --color-text-light: #6b7280;
  --color-bg-sky: #f0f9ff;
  /* Light Sky Background */
  --color-white: #ffffff;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Base Spacing & Global */
section {
  margin-bottom: 80px;
  /* SP */
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

@media (min-width: 768px) {
  section {
    margin-bottom: 120px;
    /* PC */
  }
}

/* Typography Helpers */
.text-body {
  font-size: 16px;
}

/* Section Header Style (Text Only) */
.section-header-container {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
  position: relative;
}

.section-header-title {
  font-size: clamp(1.2rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

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

.section-header-subtitle {
  display: block;
  font-size: 10px;
  color: var(--color-secondary);
  letter-spacing: 0.3em;
  margin-bottom: 5px;
}

@media (min-width: 768px) {
  .section-header-subtitle {
    font-size: 12px;
  }
}

/* Vertical Text Utility */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* Glassmorphism Header */
header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 78, 146, 0.05);
}

/* Premium Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: 14px 40px;
  border-radius: 9999px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  text-align: center;
  box-shadow: 0 10px 20px -10px rgba(0, 78, 146, 0.4);
}

.btn-primary:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 20px 30px -10px rgba(0, 78, 146, 0.5);
}

.btn-cta {
  background: linear-gradient(135deg, var(--color-brown) 0%, var(--color-brown-light) 100%);
  color: white;
  font-weight: bold;
}

/* Responsive Image handling */
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.fv-swiper img {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Ensure same size on PC */
  object-fit: cover;
}

@media (max-width: 767px) {
  .fv-swiper img {
    aspect-ratio: 3 / 4;
    /* Ensure same size on SP */
  }
}

/* Right-click disable warning (optional to show or just silent) */
body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input,
textarea {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

/* Top to back btn */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 100px;
  /* Avoid SP CTA */
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--color-primary);
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  transition: opacity 0.3s;
}

/* Swiper overrides */
.swiper-button-next,
.swiper-button-prev {
  color: var(--color-primary) !important;
}

.swiper-pagination-bullet-active {
  background: var(--color-primary) !important;
}

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

/* Modal */
#galleryModal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

#galleryModal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 768px) {
  .section-header-title {
    font-size: 1.1rem !important;
  }

  .section-header-subtitle {
    font-size: 9px !important;
  }

  .mobile-only {
    display: block;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none;
  }
}