/* ========================================
   動的ヒーローセクション v1.1.3
   左右分割レイアウト + リッチアニメーション
   Design System v9.0 準拠
   
   v1.1.0 変更点:
   - ダーク背景に最適化したフォントカラー
   - 美しく見やすい高コントラストテキスト
   
   v1.1.1 変更点:
   - セカンダリCTAボタンテキスト強制白色指定
   
   v1.1.2 変更点:
   - モバイルレスポンシブ修正
   - 画像高さ最適化（60vh→40vh）
   - バッジ縦積みを768px以下に変更
   
   v1.1.3 変更点:
   - 右側はみ出し修正 (box-sizing統一)
   - モバイルコンテナ幅100%保証
   ======================================== */

/* ========================================
   グローバルボックスサイジング
   ======================================== */
.hero-split *,
.hero-split *::before,
.hero-split *::after {
    box-sizing: border-box;
}

/* ========================================
   ベースコンテナ
   ======================================== */
.hero-split {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0A3D3D 0%, #0d4d4d 100%); /* Deep Teal - Design System v9.0 */
    isolation: isolate;
}

/* ========================================
   内部コンテナ（左右分割）
   ======================================== */
.hero-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% / 50% */
    gap: 0;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 10;
    min-height: 90vh;
}

/* ========================================
   左側: テキストコンテンツ
   ======================================== */
.hero-split-content {
    padding: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    animation: slideInLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* キッカーバッジ（アクセス情報） */
.hero-split-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(212, 197, 169, 0.1); /* シャンパンゴールド半透明 */
    border: 2px solid rgba(212, 197, 169, 0.3);
    border-radius: 50px;
    font-size: clamp(0.875rem, 1.5vw, 0.95rem);
    font-weight: 600;
    color: #D4C5A9; /* ライトシャンパンゴールド */
    width: fit-content;
    max-width: 100%; /* はみ出し防止 */
    animation: fadeInUp 0.8s ease-out 0.3s both;
    transition: all 0.3s ease;
}

.hero-split-kicker:hover {
    background: rgba(212, 197, 169, 0.18);
    border-color: rgba(212, 197, 169, 0.5);
    transform: translateY(-2px);
}

.hero-split-kicker i {
    color: #FFD700; /* ブライトゴールド */
    font-size: 1rem;
}

/* メインタイトル */
.hero-split-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #F5F7FA; /* ソフトウォームホワイト - 高コントラスト */
    margin: 0;
    animation: fadeInUp 0.8s ease-out 0.5s both;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* 奥行き感 */
}

/* グラデーションアクセント */
.hero-split-title .gradient-accent {
    display: inline-block;
    background: linear-gradient(135deg, #C9A961 0%, #FFD700 50%, #C9A961 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    position: relative;
    animation: shimmer 3s ease-in-out infinite;
}

/* シマーアニメーション（輝き効果） */
@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* サブタイトル */
.hero-split-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.8;
    color: #E2E8F0; /* クリアシルバーホワイト - 優れた可読性 */
    margin: 0;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.7s both;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* CTAボタングループ */
.hero-split-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

/* プライマリCTAボタン */
.hero-split-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #C9A961 0%, #E8D4A0 100%);
    color: #0A3D3D;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 
        0 4px 16px rgba(201, 169, 97, 0.4),
        0 8px 32px rgba(201, 169, 97, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
}

.hero-split-btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-split-btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.hero-split-btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 8px 24px rgba(201, 169, 97, 0.5),
        0 16px 48px rgba(201, 169, 97, 0.3);
}

.hero-split-btn-primary i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.hero-split-btn-primary:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* セカンダリCTAボタン */
.hero-split-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: transparent;
    color: #FFFFFF !important; /* ピュアホワイト - 強制適用 */
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5); /* ホワイト半透明ボーダー */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 200px;
    justify-content: center;
}

.hero-split-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15); /* ホワイト半透明背景 */
    color: #FFD700; /* ゴールド */
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 8px 24px rgba(255, 255, 255, 0.2),
        0 16px 48px rgba(255, 215, 0, 0.15);
}

.hero-split-btn-secondary i {
    transition: transform 0.3s ease;
}

.hero-split-btn-secondary:hover i {
    transform: translateY(4px);
    animation: bounce 1s infinite;
}

/* トラストバッジ（特徴アイコン） */
.hero-split-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 1.1s both;
}

.hero-split-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.08); /* ホワイト半透明 */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.hero-split-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-split-badge-icon {
    font-size: 1.25rem;
    color: #FFD700; /* ブライトゴールド */
}

.hero-split-badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #E0E6ED; /* ライトプラチナム */
    white-space: nowrap;
}

/* ========================================
   右側: 画像コンテンツ
   ======================================== */
.hero-split-image {
    position: relative;
    height: 90vh;
    overflow: hidden;
    animation: slideInRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* 画像ラッパー（パララックス対応） */
.hero-split-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-split-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 61, 61, 0.15) 0%,
        rgba(74, 107, 91, 0.1) 50%,
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* 実際の画像 */
.hero-split-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1.05); /* 初期状態で少し拡大 */
}

/* ホバー時ズーム効果 */
.hero-split-image:hover .hero-split-image-wrapper img {
    transform: scale(1.1);
}

/* 装飾フレーム */
.hero-split-image::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: 2rem;
    bottom: 2rem;
    left: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    z-index: 3;
    pointer-events: none;
    animation: fadeIn 1.5s ease-out 0.8s both;
}

/* ========================================
   スクロールインジケーター（下矢印）
   ======================================== */
.hero-split-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    animation: fadeIn 1.5s ease-out 1.5s both;
}

.hero-split-scroll-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7); /* ライトホワイト */
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-split-scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5); /* ホワイト半透明ボーダー */
    border-radius: 20px;
    position: relative;
}

.hero-split-scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #FFD700; /* ブライトゴールド */
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% {
        top: 8px;
        opacity: 1;
    }
    50% {
        top: 28px;
        opacity: 0;
    }
}

/* ========================================
   アニメーション定義
   ======================================== */

/* 左からスライドイン */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 右からスライドイン */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 下からフェードアップ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* フェードイン */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* バウンス */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

/* タブレット (1024px以下) */
@media (max-width: 1024px) {
    .hero-split-container {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
    }
    
    /* モバイルでは画像を上に */
    .hero-split-image {
        order: 1;
        height: 45vh;
        min-height: 350px;
        max-height: 500px; /* 最大高さ制限 */
    }
    
    .hero-split-content {
        order: 2;
        padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
    }
    
    .hero-split-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .hero-split-subtitle {
        max-width: 100%;
    }
    
    .hero-split-cta-group {
        flex-direction: column;
    }
    
    .hero-split-btn-primary,
    .hero-split-btn-secondary {
        width: 100%;
        min-width: auto;
    }
    
    .hero-split-image::after {
        top: 1rem;
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
    }
    
    .hero-split-scroll-indicator {
        bottom: 2rem;
    }
}

/* モバイル (768px以下) */
@media (max-width: 768px) {
    .hero-split {
        min-height: auto;
        overflow-x: hidden; /* 横スクロール防止 */
    }
    
    .hero-split-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-split-image {
        height: 40vh; /* 60vh→40vh に減少 */
        min-height: 300px;
        max-height: 400px;
        width: 100%;
    }
    
    .hero-split-content {
        padding: 2rem 1.25rem; /* 1.5rem→1.25rem に微調整 */
        width: 100%;
        max-width: 100%;
    }
    
    .hero-split-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .hero-split-kicker {
        font-size: 0.8rem;
        padding: 0.6rem 1.25rem;
    }
    
    .hero-split-subtitle {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .hero-split-btn-primary,
    .hero-split-btn-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* バッジを768px以下で縦積みに */
    .hero-split-trust-badges {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .hero-split-badge {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        width: 100%; /* 全幅 */
        max-width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .hero-split-badge-icon {
        font-size: 1.1rem;
    }
    
    .hero-split-scroll-indicator {
        display: none; /* モバイルでは非表示 */
    }
}

/* 小型モバイル (480px以下) */
@media (max-width: 480px) {
    .hero-split-image {
        height: 35vh; /* 50vh→35vh に減少 */
        min-height: 280px;
        max-height: 350px;
        width: 100%;
    }
    
    .hero-split-content {
        padding: 1.5rem 1rem;
        gap: 1.25rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-split-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.3;
    }
    
    .hero-split-kicker {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-split-subtitle {
        font-size: 0.95rem;
    }
    
    /* バッジは768px以下で既に縦積み */
    .hero-split-badge {
        width: 100%;
    }
}

/* ========================================
   アクセシビリティ
   ======================================== */

/* 視覚フォーカス */
.hero-split-btn-primary:focus-visible,
.hero-split-btn-secondary:focus-visible {
    outline: 3px solid #C9A961;
    outline-offset: 4px;
}

/* 縮小モーション設定 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-split-image-wrapper img {
        transform: scale(1) !important;
    }
}

/* ダークモード対応（将来拡張） */
@media (prefers-color-scheme: dark) {
    .hero-split {
        background: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
    }
}
