/* Reset and Base Styles */
:root {
    --color-bg-base: #0a0d0b;
    --color-text-primary: #f2efe9;
    --color-text-secondary: #c5bfae;
    --color-accent-gold: #e8d08d; /* Paler gold */
    --color-accent-green: #3a5042;
    --font-heading: 'Source Han Serif JP VF', 'Source Han Serif JP', 'Noto Serif JP', serif;
    --font-body: 'Source Han Serif JP VF', 'Source Han Serif JP', 'Noto Serif JP', serif;
    --glass-bg: rgba(10, 13, 11, 0.45);
    --glass-border: rgba(255, 255, 255, 0.1); /* Removed yellow tint from glass border */
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Parallax Background */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    /* Subtly dim and blur the image to make text readable */
    filter: brightness(0.65) contrast(1.1) blur(1.5px);
    transform: scale(1.05);
}

/* Noise overlay for texture (Wamodan paper feel) */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.04"/%3E%3C/svg%3E');
    z-index: -1;
    pointer-events: none;
}

/* Layout */
.content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.section {
    min-height: 100vh;
    width: 100%;
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Floating Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

/* Hero Section */
.hero-section {
    justify-content: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 2;
    letter-spacing: 0.3em;
    writing-mode: vertical-rl;
    text-align: center;
    color: var(--color-text-primary);
    margin: 0 auto 3rem;
    align-self: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: var(--color-text-secondary);
    text-align: center;
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.8;
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--color-accent-gold);
    text-align: center;
}

.scroll-arrow {
    color: var(--color-accent-gold);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 4rem 3rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 100%;
}

/* Story Section */
.story-text-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: flex-start; /* 左寄せに変更 */
    text-align: left; /* 左揃え */
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: 0.05em; /* Narrowed letter spacing */
    line-height: 1.4;
    color: var(--color-accent-gold);
    padding-bottom: 1rem;
    display: block;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid var(--color-accent-gold); /* adding visual separation back since color is back */
}

.vertical-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-paragraph {
    font-size: 1.1rem;
    line-height: 2.2;
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
}

/* Video Section */
.video-gallery-panel {
    max-width: 900px;
    padding: 4rem 0; /* 左右のパディングを削除して動画を最大幅に */
    display: flex;
    flex-direction: column;
    align-items: stretch; /* flex-startからstretchに変更し、崩れを防止 */
}

.video-gallery-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-accent-gold);
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    padding: 0 3rem; /* テキストだけに余白をつける */
    text-align: left;
    width: 100%;
}

.video-grid {
    display: flex;
    flex-direction: column; /* Gridの1frによるPC表示のバグを回避するため、安全なFlexboxに切り替え */
    align-items: stretch; /* 子要素を幅100%に強制 */
    gap: 3rem;
    width: 100%;
}

.video-item {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0;
    padding: 0;
    margin: 0;
    width: 100%;
}

.video-item-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 300; /* ウェイトを下げた */
    color: var(--color-accent-gold);
    margin: 1.5rem 1.5rem 1rem; /* テキストだけに余白をつける */
    line-height: 1.4;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9; /* モダンで確実なアスペクト比指定に変更 */
    border-radius: 2px;
    overflow: hidden;
    margin: 0 0 1.5rem 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-item-caption {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0 1.5rem 1.5rem; /* テキストだけに余白をつける */
}

/* CTA Section */
.cta-content {
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none; /* Removed outline */
    padding: 5rem 3rem;
    border-radius: 4px;
    width: 100%;
    max-width: 700px;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    text-align: left;
    width: 100%;
}

.cta-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
    text-align: left;
    width: 100%;
    margin-bottom: 2rem;
}

.cta-desc {
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
}

.btn-makuake {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    background: transparent;
    color: var(--color-accent-gold);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    border: 1px solid var(--glass-border); /* subtle white border rather than yellow */
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-text {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-accent-gold);
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-makuake:hover {
    box-shadow: 0 0 20px rgba(203, 160, 82, 0.3);
    transform: translateY(-2px);
}

.btn-makuake:hover .btn-glow {
    transform: translateX(100%);
}

.btn-makuake:hover .btn-text {
    color: var(--color-bg-base);
}

/* Footer */
.footer {
    width: 100%;
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.1em;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Floating CFA Button */
.floating-cfa-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 120px;
    height: 120px;
    background-color: #8c743f; /* ご指定の濃いゴールド */
    color: #ffffff; /* 白 */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-base); /* Using base font for readability */
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-cfa-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(140, 116, 63, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-cfa-btn {
        top: 1rem;
        right: 1rem;
        width: 100px;
        height: 100px;
        font-size: 0.75rem;
    }
    .story-text-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .section-title {
        border-bottom: 1px solid var(--color-accent-gold);
        padding-bottom: 1rem;
    }
    
    .vertical-text-wrapper {
        flex-direction: column;
    }
    
    .hero-section {
        justify-content: center;
        padding-right: 0;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-subtitle {
        margin-right: 0;
        margin-top: 1.5rem;
    }
}
