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

:root {
  --color-gold: #0d9488;
  --color-gold-light: #2dd4bf;
  --color-gray-light: #f5f5f5;
  --color-gray-dark: #333333;
  --color-black: #000000;
  --font-mincho: 'Shippori Mincho', 'Noto Sans JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
}

body {
  font-family: var(--font-sans);
  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,
.section-head .title,
.font-mincho {
  font-family: var(--font-mincho);
  font-weight: 700;
  letter-spacing: 0.08em;
}

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.bg-black .section-head .title,
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 (iOS Safari & All Mobile Compatible) */
.ios-parallax-section {
  position: relative;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  overflow: hidden;
}

.ios-parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
  will-change: transform;
  pointer-events: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

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

/* Header Adjustments */

header {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, background-color, padding, box-shadow;
  transition: box-shadow 0.3s ease, background-color 0.3s ease !important;
}

@media (min-width: 1024px) {
  header#main-header {
    backdrop-filter: blur(8px);
  }
}

header.scrolled {
  background: rgba(13, 148, 136, 0.98) !important;
  box-shadow: 0 4px 30px rgba(13, 148, 136, 0.35) !important;
}

/* 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);
}

/* 【完成時に有効化】テキスト選択禁止（コピー防止）を再有効化する場合は以下のコメントアウトを解除してください */
/*
body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
*/

/* Turquoise Button (btn-gold class name preserved for compatibility) */
.btn-gold {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
}

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

/* Logo Styling */
.logo-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: inherit;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-de {
  font-weight: 300;
  letter-spacing: 0.1em;
  margin: 0 0.4em;
  text-transform: lowercase;
  font-style: italic;
  color: inherit;
}

/* ==========================================================================
   FAQ Accordion Styles
   ========================================================================== */
.faq-answer {
  max-height: 0;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.35s ease;
}

.faq-item.is-open .faq-answer {
  opacity: 1;
  visibility: visible;
}

.faq-item {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(13, 148, 136, 0.4);
}

.faq-item.is-open {
  border-color: #0d9488;
  box-shadow: 0 12px 32px -8px rgba(13, 148, 136, 0.15);
}

.faq-item.is-open .faq-icon {
  background-color: #0d9488;
  color: #ffffff;
}

.faq-item.is-open .faq-icon i {
  transform: rotate(180deg);
}

.faq-question:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: -2px;
}

/* ==========================================================================
   Service Section (Magazine-style Overlap Layout)
   ========================================================================== */
.service-section-wrap {
  position: relative;
  overflow: hidden;
}

.service-overlap-item {
  position: relative;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .service-overlap-item {
    margin-bottom: 7rem;
  }
}

.service-overlap-item:last-child {
  margin-bottom: 0;
}

/* Base card styling */
.service-overlap-card {
  background: #ffffff;
  box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.08), 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(13, 148, 136, 0.08);
  position: relative;
  z-index: 20;
}

/* Number styling */
.service-num-accent {
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
  font-style: italic;
  color: #0d9488;
  font-size: 2.2rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
}

.service-num-accent::after {
  content: "";
  display: inline-block;
  width: 48px;
  height: 1.5px;
  background-color: #0d9488;
}

/* Photo catch text */
.service-photo-caption {
  position: absolute;
  z-index: 15;
  pointer-events: none;
}

.service-photo-caption .caption-title {
  font-family: 'Shippori Mincho', serif;
  letter-spacing: 0.15em;
  line-height: 1.8;
  font-weight: 600;
  color: #2d3748;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.95), 0 0 12px rgba(255, 255, 255, 0.9);
}

.service-photo-caption .caption-line {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: #4a5568;
  margin: 10px 0;
}

.service-photo-caption .caption-sub {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: #4a5568;
  font-weight: 600;
}
