/* ========================================
   CSS Variables - カラースキーム定義
   ======================================== */
:root {
    /* ベースカラー */
    --color-white: #FFFFFF;
    --color-light-gray: #F8F9FA;
    --color-dark-navy: #0A1628;
    --color-navy: #152238;
    --color-black: #000000;
    
    /* アクセントカラー */
    --color-gold: #D4AF37;
    --color-gold-light: #F4D03F;
    --color-gold-dark: #B8941F;
    --color-green: #1B5E3F;
    --color-green-light: #2D8659;
    --color-green-dark: #0F3A26;
    
    /* フォント */
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-legendary: 'Playfair Display', serif;
    --font-elegant: 'Cinzel', serif;
    
    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* トランジション */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* ========================================
   リセット & ベーススタイル
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.8;
    color: #FFFFFF;
    background-color: var(--color-black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ① ファーストビュー - ヒーローセクション
   ======================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #000000 0%, #0A1628 50%, #152238 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    z-index: 1;
}

#chartCanvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-primary);
    font-weight: 300;
    color: #FFFFFF;
    line-height: 1.4;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
}

.hero-title span {
    display: block;
}

.title-line-1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.title-main {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 1.5rem 0;
    color: #FFE55C;
    text-shadow: 
        0 0 60px rgba(255, 229, 92, 0.9),
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 15px rgba(255, 229, 92, 0.7);
    position: relative;
}

.legendary {
    font-family: var(--font-legendary);
    font-style: italic;
    font-weight: 700;
}

.title-line-3 {
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    margin: 2rem 0 1rem 0;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.title-highlight {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-top: 1.5rem;
    color: var(--color-gold);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-indicator span {
    display: none;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    animation: scrollLineMove 2s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scrollLineMove {
    0%, 100% {
        opacity: 0;
        transform: translateY(-20px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ② 手紙風メッセージセクション
   ======================================== */
.message-section {
    background: linear-gradient(180deg, #0D0D0D 0%, #1A2332 100%);
    padding: var(--spacing-xl) var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.message-container {
    max-width: 700px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.message-greeting {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

.message-content {
    font-size: 1.15rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.message-content p {
    margin-bottom: var(--spacing-md);
}

.message-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md) !important;
    color: var(--color-gold);
}

.highlight-text {
    color: var(--color-gold);
    font-weight: 600;
}

.message-emphasis {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.98);
}

.message-mission {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-gold);
    text-align: center;
    letter-spacing: 0.05em;
    padding: var(--spacing-sm) 0;
    margin: var(--spacing-md) 0 !important;
    border-top: 1px solid rgba(212, 175, 55, 0.4);
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

.message-key {
    font-weight: 500;
    color: var(--color-green-light);
}

.message-final {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.98);
    margin-top: var(--spacing-md) !important;
    text-align: center;
}

/* ========================================
   ③ YouTube動画セクション
   ======================================== */
.video-section {
    background: #0D0D0D;
    padding: var(--spacing-xl) var(--spacing-md);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.video-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 400;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.98);
}

.title-emphasis {
    font-weight: 700;
    color: var(--color-gold);
    display: inline-block;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: var(--spacing-lg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

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

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

.video-points {
    max-width: 800px;
    margin: 0 auto;
}

.points-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.points-list li {
    position: relative;
    padding-left: 2rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
    line-height: 1.8;
}

.points-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-green-light);
    font-weight: 700;
    font-size: 1.3rem;
}

/* ========================================
   ④ 最終CTA
   ======================================== */
.cta-section {
    background: linear-gradient(180deg, #0D0D0D 0%, #1A2332 100%);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-container {
    max-width: 700px;
    width: 100%;
}

.cta-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-gold);
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
}

.cta-text {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-light) 100%);
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(27, 94, 63, 0.4);
    transition: all var(--transition-normal);
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(27, 94, 63, 0.6);
    background: linear-gradient(135deg, var(--color-green-light) 0%, var(--color-green) 100%);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-black);
    padding: var(--spacing-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .hero-section {
        height: 100vh;
        min-height: 500px;
    }
    
    .title-line-1 {
        margin-bottom: 1rem;
    }
    
    .title-main {
        margin: 1rem 0;
    }
    
    .title-line-3 {
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .title-highlight {
        margin-top: 1rem;
    }
    
    .scroll-indicator {
        bottom: 2rem;
    }
    
    .message-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .message-container {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .message-content {
        font-size: 1rem;
    }
    
    .video-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .points-list {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .title-line-1 {
        font-size: 1.5rem;
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-line-3 {
        font-size: 1.1rem;
    }
    
    .title-highlight {
        font-size: 1.3rem;
    }
    
    .message-content {
        font-size: 0.95rem;
        line-height: 1.9;
    }
    
    .points-list li {
        font-size: 0.95rem;
    }
}
