/* Base Styles */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Modern Design Tokens */
:root {
    --primary: #130085;
    --accent: #b58e06;
    --accent-light: #c8a97e;
    --text-main: #181817;
    --text-muted: #666666;
    --bg-light: #ffffff;
    --bg-alt: #f8f8f7;
    --glass: rgba(255, 255, 255, 0.8);
}

html,
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.8;
    letter-spacing: 0.03em;
}

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

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Layout Utilities */
.section-container {
    padding: 80px 0;
}

@media (min-width: 1024px) {
    .section-container {
        padding: 140px 0;
    }
}

.inner-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
}

/* Glassmorphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Modern Button Style */
.btn-premium {
    position: relative;
    display: inline-block;
    padding: 1.25rem 2.5rem;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.1em;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.btn-premium:hover::before {
    left: 0;
}

.btn-premium:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* =============================================
   Section Title — Modern Editorial Style
   =============================================
   Structure:
     <div class="section-heading">
       <span class="section-heading__ghost">LABEL</span>
       <div class="section-heading__inner">
         <div class="section-heading__line"></div>
         <h2 class="section-heading__title">Title Text</h2>
       </div>
     </div>
   ============================================= */
.section-heading {
    position: relative;
    text-align: center;
    margin-bottom: 3.5rem;
    /* Height matches the ghost text size so inner can absolutely center over it */
    min-height: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Large ghost/outline background label — sits absolutely centered */
.section-heading__ghost {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    font-size: clamp(3.5rem, 14vw, 9rem);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(181, 142, 6, 0.22);
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

/* Container that sits on top of the ghost text */
.section-heading__inner {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 2rem 1rem;
}

/* Gold accent bar */
.section-heading__line {
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b58e06, transparent);
}

/* Main title text */
.section-heading__title {
    font-size: clamp(1.3rem, 3.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #181817;
    line-height: 1.3;
    text-align: center;
}

/* ── Inverted variant for dark/parallax backgrounds ── */
.section-heading--light .section-heading__ghost {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.18);
}

.section-heading--light .section-heading__title {
    color: #ffffff;
}

.section-heading--light .section-heading__line {
    background: linear-gradient(90deg, transparent, #c8a97e, transparent);
}

@media (min-width: 768px) {
    .section-heading {
        margin-bottom: 4.5rem;
        min-height: 7rem;
    }

    .section-heading__line {
        width: 4rem;
    }
}

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

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

/* Price slider wrapper */
.price-swiper {
    position: relative;
}

/* Thumbnail strip */
.price-thumbs-swiper {
    margin-top: 6px;
}

.price-thumbs-swiper .swiper-slide {
    opacity: 0.45;
    transition: opacity 0.25s ease, border-color 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
    box-sizing: border-box;
}

.price-thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #b58e06;
}

/* Smooth HTML scroll */
html {
    scroll-behavior: smooth;
}

/* Hamburger transition helper */
.hamburger-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-active span:nth-child(2) {
    opacity: 0;
}

.hamburger-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.overflow-hidden {
    overflow: hidden !important;
}

/* Voice Section - Google Maps Style */
.voice-content-wrapper {
    max-height: 120px;
    /* Roughly 4 lines */
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease-in-out;
}

.voice-text {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: none;
    -webkit-box-orient: vertical;
}

/* Fallback for line-clamping if JS fails - but here JS handles it */
.voice-content-wrapper.max-h-\[120px\]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Hide gradient when expanded */
.voice-content-wrapper:not(.max-h-\[120px\])::after {
    opacity: 0;
}

.voice-expand-btn {
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 1;
}