/* 地域・国選択用の追加CSS */

/* ヒーローセクションの更新 */
.hero-intro {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out;
}

.hero-intro h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    /* サイト統一の青紫色を使用 */
    color: #b82522;
    /* 軽いシャドウで立体感 */
    text-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-intro p {
    font-size: 1.3rem;
    /* より薄い青紫色で統一感を保つ */
    color: #6366F1;
    margin-bottom: 0;
    /* 同系色のシャドウ */
    text-shadow: 0 1px 3px rgba(99, 102, 241, 0.2);
    font-weight: 400;
}

/* 地域・国選択セクション */
.destination-selector {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.selector-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: rgba(227, 156, 41, 0.1);
    padding: 0.5rem;
    border-radius: 1rem;
}

.selector-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: transparent;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    color: #b82522; /* より濃い紫色に固定 */
    cursor: pointer;
    transition: all 0.3s ease;
}

.selector-tab.active {
    background: #b82522; /* 濃い紫色の背景 */
    color: white; /* 白文字 */
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* テキストに影を追加で読みやすく */
}

.selector-tab:hover:not(.active) {
    background: rgba(79, 70, 229, 0.1);
    color: #b82522;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

/* 検索ボックス */
.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF; /* グレー色に固定 */
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid rgba(79, 70, 229, 0.1);
    border-radius: 1rem;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #b82522; /* 濃い紫色に固定 */
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* 地域グリッド */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.region-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.region-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: #b82522; /* 濃い紫色に固定 */
}

.region-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.region-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.region-card:hover .region-image img {
    transform: scale(1.1);
}

.region-overlay {
    position: absolute;
	top: 0;
    right: 0;
   /* top: 1rem;
    right: 1rem;*/
}

.region-info {
    padding: 1.5rem;
}

.region-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1F2937; /* ダークグレーに固定 */
}

.region-desc {
    color: #6B7280; /* グレーに固定 */
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.region-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #b82522; /* 濃い紫色に固定 */
    margin-bottom: 1rem;
}

.region-countries {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.country-mini {
    font-size: 1.2rem;
}

.country-more {
    background: rgba(79, 70, 229, 0.1);
    color: #b82522; /* 濃い紫色に固定 */
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 国別グリッド */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.country-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.country-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #b82522; /* 濃い紫色に固定 */
}

.country-flag {
    font-size: 2rem;
    margin-bottom: 1rem;
	font-weight: 600;
}

.country-info h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1F2937; /* ダークグレーに固定 */
}

.country-price {
    font-weight: 700;
    color: #b82522; /* 濃い紫色に固定 */
    font-size: 1.1rem;
}

/* グローバルプラン */
.global-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.global-plan-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.global-plan-card.premium {
    border-color: #F59E0B; /* オレンジ色に固定 */
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.02) 100%);
}

.global-plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.plan-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.plan-icon {
    font-size: 3rem;
    line-height: 1;
}

.plan-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1F2937; /* ダークグレーに固定 */
}

.plan-info p {
    color: #6B7280; /* グレーに固定 */
    margin: 0;
}

.plan-features {
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #1F2937; /* ダークグレーに固定 */
    font-size: 0.95rem;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #b82522; /* 濃い紫色に固定 */
    text-align: center;
    padding: 1rem;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 1rem;
}

/* 選択された地域の表示 */
.selected-destination {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.destination-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    border: none;
    border-radius: 0.75rem;
    color: #b82522; /* 濃い紫色に固定 */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #b82522; /* 濃い紫色の背景 */
    color: white;
}

.destination-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1F2937; /* ダークグレーに固定 */
}

.destination-title p {
    color: #6B7280; /* グレーに固定 */
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .selector-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .regions-grid {
        grid-template-columns: 1fr;
    }
    
    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .global-plans {
        grid-template-columns: 1fr;
    }
    
    .hero-intro h1 {
        font-size: 2.5rem;
        /* モバイルでも同じ青紫色で統一 */
        text-shadow: 0 2px 6px rgba(79, 70, 229, 0.4);
    }
    
    .hero-intro p {
        font-size: 1.1rem;
        text-shadow: 0 1px 4px rgba(99, 102, 241, 0.3);
    }
    
    .destination-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .destination-selector {
        padding: 1rem;
    }
    
    .country-card {
        padding: 1rem 0.5rem;
    }
    
    .global-plan-card {
        padding: 1.5rem;
    }
    
    .hero-intro h1 {
        font-size: 2rem;
        /* 小さなスクリーンでも統一感のある色 */
        text-shadow: 0 2px 8px rgba(79, 70, 229, 0.5);
    }
    
    .hero-intro p {
        font-size: 1rem;
        text-shadow: 0 1px 5px rgba(99, 102, 241, 0.4);
    }
}

/* より高コントラストが必要な場合のフォールバック */
@media (prefers-contrast: high) {
    .hero-intro h1 {
        color: #3730A3; /* より濃い青紫で高コントラスト */
        text-shadow: 2px 2px 4px rgba(55, 48, 163, 0.6);
    }
    
    .hero-intro p {
        color: #4338CA; /* 中間の青紫 */
        text-shadow: 1px 1px 3px rgba(67, 56, 202, 0.5);
    }
}
