:root {
    --bg-color: #0F0F10;
    --bg-color-alt: #151518;
    --text-color: #E8E8EA;
    --text-color-muted: #A0A0A5;
    --accent-gold: #C8A96A;
    --accent-gold-pale: rgba(200, 169, 106, 0.4);
    --border-gold: rgba(200, 169, 106, 0.3);
    --gold-gradient: linear-gradient(135deg, #C8A96A 0%, #E8D2A0 50%, #C8A96A 100%);
    --gold-text-gradient: linear-gradient(135deg, #C8A96A 0%, #F1E4C1 50%, #C8A96A 100%);

    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Noto Sans JP', sans-serif;

    --container-width: 1200px;
    --section-padding-pc: 96px;
    --section-padding-sp: 64px;
}

/* Intro Loader */
.intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: loaderFadeOut 1.6s forwards ease-in-out;
    animation-delay: 2s;
    /* 0.4s(start) + 1.6s(fadein) */
    pointer-events: none;
}

.intro-logo {
    width: auto;
    max-width: 95%;
    max-height: 80vh;
    height: auto;
    opacity: 0;
    animation: logoFadeIn 1.6s forwards ease-out;
    animation-delay: 0.4s;
}

@keyframes logoFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes loaderFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Reset & Base */
body {
    animation: lockScroll 3.6s steps(1) forwards;
}

@keyframes lockScroll {
    0% {
        overflow: hidden;
    }

    100% {
        overflow: auto;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.6s ease, transform 1.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s ease;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

.section {
    padding: var(--section-padding-pc) 0;
    border-top: 1px solid var(--border-gold);
}

@media (max-width: 768px) {
    .section {
        padding: var(--section-padding-sp) 0;
    }
}

/* Header */
.header {
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.logo {
    display: flex;
    flex-direction: column;
    font-family: var(--font-serif);
    color: var(--accent-gold);
    line-height: 1;
}

.logo-main {
    font-size: 56px;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.logo-sub {
    font-size: 24px;
    letter-spacing: 0.1em;
    font-weight: 400;
    margin-top: 4px;
    color: var(--text-color-muted);
}

@media (max-width: 768px) {
    .header {
        top: 32px;
        padding: 0 20px;
    }

    .logo-main {
        font-size: 32px;
        letter-spacing: 0.1em;
    }

    .logo-sub {
        font-size: 14px;
    }
}

/* Language Selector */
.lang-selector {
    position: relative;
    background: transparent;
    border: 1px solid var(--border-gold);
    color: var(--accent-gold);
    padding: 6px 12px;
    font-size: 14px;
    font-family: var(--font-sans);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 30px;
}

.lang-selector:hover {
    background: rgba(200, 169, 106, 0.1);
    border-color: #fff;
}

.lang-selector-wrapper {
    position: relative;
    display: inline-block;
}

.lang-selector-wrapper::after {
    content: '▼';
    font-size: 8px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--accent-gold);
}


/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: break-word;
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem !important;
    }

    h2.section-title {
        font-size: 1.5rem !important;
    }

    h3.card-title {
        font-size: 1.0rem !important;
    }

    /* .hero-subtitle and .section-desc are handled by clamp/nowrap */
    .logo-main {
        font-size: 28px !important;
    }

    .logo-sub {
        font-size: 12px !important;
    }
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 4rem);
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(1.6rem, 5vw, 3rem);
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 48px;
    color: var(--accent-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-wrap: break-word;
}

.section-title::after {
    content: '';
    display: block;
    width: 80%;
    height: 1px;
    background: var(--gold-gradient);
    margin-top: 24px;
    position: relative;
}

.section-title::before {
    display: none;
}

.section-desc {
    font-size: clamp(11px, 3.1vw, 18px);
    white-space: nowrap;
    color: var(--text-color-muted);
    margin-bottom: 24px;
}

.hero-text .hero-title {
    background: var(--gold-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 32px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--accent-gold);
}

.btn-primary {
    background-color: rgba(15, 15, 16, 0.5);
    color: var(--accent-gold);
}

.btn-primary:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}


.cta-group {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .cta-group {
        flex-direction: column;
    }

    .btn {
        height: 48px;
        width: 100%;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    /* Space for logo */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    z-index: 2;
}

.hero-text {
    flex: 1.2;
    max-width: 800px;
}

.hero-subtitle {
    font-size: clamp(11px, 3.1vw, 18px);
    white-space: nowrap;
    margin-bottom: 40px;
    color: var(--text-color-muted);
}

.hero-cta {
    justify-content: center;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 300px;
}

.hero-visual .hero-video-element {
    width: 100%;
    max-width: 560px;
    border-radius: 8px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: block;
    margin-left: auto;
}

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 24px;
    }

    .hero-subtitle {
        margin-bottom: 24px;
    }

    .hero-visual {
        justify-content: center;
        min-height: auto;
    }

    .hero-visual .hero-video-element {
        margin: 0 auto !important;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator .arrow {
    width: 20px;
    height: 20px;
    border-right: 1px solid var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    40% {
        transform: translateY(-10px) rotate(45deg);
    }

    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* Essence Section */
.essence {
    padding-bottom: 0;
    border-bottom: none;
}

.essence .container-essence {
    display: block;
    text-align: center;
}

.essence-text {
    max-width: 800px;
    margin: 0 auto;
}

.essence-visual {
    display: none;
}

.essence-text h2 {
    /* removed nowrap for mobile safety */
}

.essence-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}


.essence-text h2 {
    /* removed nowrap for mobile safety */
}

/* Experience Section */
.experience {
    padding-top: 48px;
    border-top: none;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }
}

.experience-card {
    background-color: var(--bg-color-alt);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-gold);
    text-align: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sequential Fade-in Delays */
.experience-card:nth-child(1) {
    transition-delay: 0.1s;
}

.experience-card:nth-child(2) {
    transition-delay: 0.25s;
}

.experience-card:nth-child(3) {
    transition-delay: 0.4s;
}

.experience-card:nth-child(4) {
    transition-delay: 0.55s;
}


.experience-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold-pale);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    margin: 0 auto 24px;
    background-color: var(--bg-color);
    border-radius: 4px;
    border: 1px solid var(--border-gold);
    background-size: cover;
    background-position: center;
}

.card-image.sec3-1 {
    background-image: url('images/sec3_1.jpg');
}

.card-image.sec3-2 {
    background-image: url('images/sec3_2.jpg');
}

.card-image.sec3-3 {
    background-image: url('images/sec3_3.jpg');
}

.card-image.sec3-4 {
    background-image: url('images/sec3_4.jpg');
}

.card-title {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--accent-gold);
}

.card-description {
    font-size: 14px;
    color: var(--text-color-muted);
}

.card-list li {
    margin-bottom: 8px;
    color: var(--text-color-muted);
    position: relative;
    padding-left: 20px;
}

.card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold-pale);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* Purchase Section */
.purchase {
    text-align: center;
}

.purchase-cta {
    margin-bottom: 80px;
}

.cta-group.central {
    justify-content: center;
    margin-top: 48px;
}



/* Spec Table */
.spec-table-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.spec-table th,
.spec-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-gold);
}

.spec-table th {
    color: var(--text-color-muted);
    font-weight: 500;
    width: 30%;
}

/* Footer */
.footer {
    padding: 48px 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-color-muted);
}


/* Background Slideshow */
.background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    overflow: hidden;
    background-color: var(--bg-color);
    /* For iOS Chrome/Safari stability */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    animation: backgroundFade 20s infinite linear;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    pointer-events: none;
}

.slide1 {
    animation-delay: 0s;
}

.slide2 {
    animation-delay: 5s;
}

.slide3 {
    animation-delay: 10s;
}

.slide4 {
    animation-delay: 15s;
}

@keyframes backgroundFade {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 0.3;
    }

    /* 1s fade-in (5% of 20s) */
    25% {
        opacity: 0.3;
    }

    /* 4s hold */
    30% {
        opacity: 0;
    }

    /* 1s fade-out */
    100% {
        opacity: 0;
    }
}