/**
 * Hero Section - Mountains Background Optimization
 * 画像2（山・雲背景）に最適化されたヒーローセクション設定
 */

/* 背景画像をオリジナル写真に変更 */
.hero-image {
    background-image: url('../images/hero-mountains-original.jpg') !important;
    background-size: cover;
    background-position: center 45% !important; /* テキストを避けて中央よりやや下に */
    background-repeat: no-repeat;
}

/* デスクトップ：テキスト部分をトリミングして非表示 */
@media screen and (min-width: 769px) {
    .hero-image {
        background-position: 55% 45% !important; /* 左側のテキストを画面外に */
    }
}

/* デスクトップ版：テキストを上部の空・雲部分に配置 */
@media screen and (min-width: 769px) {
    .hero {
        min-height: 85vh;
        display: flex;
        align-items: flex-start !important; /* 上部に配置 */
        padding-top: 140px !important;
        padding-bottom: 80px;
    }
    
    .hero-content {
        padding-top: 40px !important;
    }
    
    /* オーバーレイを調整：山と雲部分を明るく保つ */
    .hero-overlay {
        background: 
            /* 上部（空・雲）：明るめ */
            linear-gradient(to bottom, 
                rgba(30, 58, 138, 0.15) 0%,
                rgba(30, 58, 138, 0.25) 30%,
                rgba(30, 58, 138, 0.4) 60%,
                rgba(30, 58, 138, 0.5) 100%
            ) !important;
    }
    
    /* 太陽光の反射エフェクトを削除（新しい画像に不要） */
    .hero-overlay::before {
        display: none !important;
    }
    
    /* テキストシャドウを調整：空・雲背景に最適化 */
    .hero-title-main {
        text-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.5),
            0 4px 16px rgba(0, 0, 0, 0.3),
            0 1px 3px rgba(0, 0, 0, 0.8) !important;
    }
    
    /* アクセントテキスト（未来の資産に変える）の色を最適化 */
    .hero-title-accent-new {
        background: linear-gradient(135deg, 
            #fef9c3 0%,   /* Very light yellow - 最も明るい */
            #fef08a 20%,  /* Light yellow */
            #fde047 40%,  /* Bright yellow - メイン */
            #fbbf24 60%,  /* Golden yellow */
            #f59e0b 80%,  /* Amber */
            #f97316 100%  /* Orange - アクセント */
        ) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.9)) 
                drop-shadow(0 0 20px rgba(251, 191, 36, 0.5)) !important;
    }
    
    .hero-subtitle-new {
        text-shadow: 
            0 2px 6px rgba(0, 0, 0, 0.5),
            0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }
}

/* タブレット版 */
@media screen and (max-width: 768px) and (min-width: 577px) {
    .hero {
        background-position: center 35% !important;
        padding-top: 100px !important;
        align-items: flex-start !important;
    }
    
    .hero-image {
        background-position: center 35% !important;
    }
    
    .hero-overlay {
        background: 
            linear-gradient(to bottom, 
                rgba(30, 58, 138, 0.2) 0%,
                rgba(30, 58, 138, 0.35) 40%,
                rgba(30, 58, 138, 0.5) 100%
            ) !important;
    }
    
    .hero-overlay::before {
        display: none !important;
    }
}

/* モバイル版：縦長画面に最適化 */
@media screen and (max-width: 576px) {
    .hero {
        min-height: auto !important;
        padding-top: 70px !important;
        padding-bottom: 40px !important;
    }
    
    .hero-image {
        background-position: center 30% !important; /* 空と山を強調 */
        background-size: cover !important;
    }
    
    /* モバイルでは少し暗めのオーバーレイ */
    .hero-overlay {
        background: 
            linear-gradient(to bottom, 
                rgba(30, 58, 138, 0.25) 0%,
                rgba(30, 58, 138, 0.4) 50%,
                rgba(30, 58, 138, 0.55) 100%
            ) !important;
    }
    
    .hero-overlay::before,
    .hero-overlay::after {
        display: none !important;
    }
    
    /* モバイルのテキストシャドウを強化 */
    .hero-title-new,
    .hero-title-main {
        text-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.7),
            0 4px 16px rgba(0, 0, 0, 0.4) !important;
    }
    
    /* モバイル版アクセントテキストの色を最適化 */
    .hero-title-accent-new {
        background: linear-gradient(135deg, 
            #fefce8 0%,   /* Extremely light yellow */
            #fef9c3 15%,  /* Very light yellow */
            #fef08a 30%,  /* Light yellow */
            #fde047 50%,  /* Bright yellow - メイン */
            #fbbf24 70%,  /* Golden yellow */
            #f59e0b 85%,  /* Amber */
            #f97316 100%  /* Orange */
        ) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        filter: drop-shadow(1px 1px 4px rgba(0, 0, 0, 1)) 
                drop-shadow(0 0 15px rgba(254, 240, 138, 0.8)) !important;
    }
    
    .hero-subtitle-new {
        text-shadow: 
            0 2px 6px rgba(0, 0, 0, 0.7),
            0 4px 12px rgba(0, 0, 0, 0.4) !important;
    }
}

/* 超小型モバイル */
@media screen and (max-width: 375px) {
    .hero {
        padding-top: 60px !important;
        padding-bottom: 30px !important;
    }
    
    .hero-image {
        background-position: center 28% !important;
    }
}

/* テキストの視認性を最大化 */
.hero-badge-simple {
    background: rgba(30, 58, 138, 0.3);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* CTAボタンの視認性向上 */
.btn-hero-primary {
    box-shadow: 
        0 10px 30px rgba(251, 191, 36, 0.6),
        0 4px 10px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

.btn-hero-primary:hover {
    box-shadow: 
        0 15px 40px rgba(251, 191, 36, 0.7),
        0 6px 15px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.2) !important;
}

/* セカンダリボタンの視認性向上 */
.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

/* 統計情報の視認性向上 */
.hero-stats-compact {
    background: rgba(30, 58, 138, 0.25);
    backdrop-filter: blur(8px);
    padding: 15px 30px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media screen and (max-width: 576px) {
    .hero-stats-compact {
        padding: 12px 20px;
    }
}
