/* ==================== リセットと基本設定 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット - 明るく活力のある配色 */
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --success-color: #95E1D3;
    --info-color: #6C5CE7;
    --warning-color: #FDCB6E;
    
    /* グラデーション */
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* テキストカラー */
    --text-dark: #2d3436;
    --text-medium: #636e72;
    --text-light: #b2bec3;
    
    /* 背景色 */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* シャドウ */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
    
    /* ボーダー半径 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* スペーシング */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
}

body {
    font-family: 'Noto Sans JP', 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #fff3e0 50%, #f3e5f5 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hidden {
    display: none;
}

/* ==================== ヘッダー ==================== */
.header {
    background: var(--gradient-1);
    color: white;
    padding: var(--spacing-lg) 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.language-selector label {
    font-size: 1.2rem;
    cursor: pointer;
}

.language-select {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.language-select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-select:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.language-select option {
    background: var(--text-dark);
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo i {
    font-size: 2.5rem;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
    text-align: center;
}

/* ==================== メインコンテンツ ==================== */
.main-content {
    padding: var(--spacing-xl) 0;
    min-height: calc(100vh - 250px);
}

/* ==================== 選択エリア ==================== */
.selector-section {
    margin-bottom: var(--spacing-xl);
}

.selector-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--secondary-color);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-title i {
    color: var(--secondary-color);
    font-size: 1.8rem;
}

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

.select-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.select-group label {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.select-group label i {
    color: var(--primary-color);
}

.custom-select {
    padding: var(--spacing-sm);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.custom-select:hover:not(:disabled) {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.custom-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.custom-select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ==================== 都市情報エリア ==================== */
.city-info {
    animation: fadeIn 0.6s ease;
}

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

.city-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.city-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-5);
}

.city-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.city-country {
    font-size: 1.2rem;
    color: var(--text-medium);
    font-weight: 300;
}

/* ==================== 情報カードグリッド ==================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.info-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 各カードの色設定 */
.weather-card { border-top-color: #4ECDC4; }
.basic-info-card { border-top-color: #FF6B6B; }
.history-card { border-top-color: #6C5CE7; }
.attractions-card { border-top-color: #FFE66D; }
.food-card { border-top-color: #FDCB6E; }
.activities-card { border-top-color: #95E1D3; }

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid #f0f0f0;
}

.card-header i {
    font-size: 1.5rem;
}

.weather-card .card-header i { color: #4ECDC4; }
.basic-info-card .card-header i { color: #FF6B6B; }
.history-card .card-header i { color: #6C5CE7; }
.attractions-card .card-header i { color: #FFE66D; }
.food-card .card-header i { color: #FDCB6E; }
.activities-card .card-header i { color: #95E1D3; }

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.card-content {
    color: var(--text-medium);
}

/* ==================== 天候カード ==================== */
.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.weather-icon {
    font-size: 4rem;
}

.weather-temp {
    display: flex;
    align-items: flex-start;
}

.temp-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.temp-unit {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-medium);
    margin-top: 8px;
}

.weather-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    color: var(--text-dark);
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid #f0f0f0;
}

.weather-detail-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.weather-detail-item i {
    color: var(--secondary-color);
}

/* ==================== 基本情報カード ==================== */
.info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-xs);
    transition: background 0.3s ease;
}

.info-item:hover {
    background: var(--bg-light);
}

.info-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.info-item > div {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.info-value {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* ==================== 歴史カード ==================== */
.history-text {
    line-height: 1.8;
    text-align: justify;
    color: var(--text-medium);
}

/* ==================== リストスタイル ==================== */
.attractions-list,
.food-list,
.activities-list {
    list-style: none;
}

.attractions-list li,
.food-list li,
.activities-list li {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    border-left: 4px solid transparent;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    background: var(--bg-light);
}

/* リンクスタイル */
.attractions-list li a,
.food-list li a,
.activities-list li a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.attractions-list li a:hover,
.food-list li a:hover,
.activities-list li a:hover {
    color: var(--secondary-color);
}

.attractions-list li {
    border-left-color: #FFE66D;
}

.food-list li {
    border-left-color: #FDCB6E;
}

.activities-list li {
    border-left-color: #95E1D3;
}

.attractions-list li:hover,
.food-list li:hover,
.activities-list li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
    background: white;
}

.attractions-list li::before {
    content: '📍 ';
    margin-right: var(--spacing-xs);
}

.food-list li::before {
    content: '🍽️ ';
    margin-right: var(--spacing-xs);
}

.activities-list li::before {
    content: '🎯 ';
    margin-right: var(--spacing-xs);
}

/* ==================== ウェルカムセクション ==================== */
.welcome-section {
    animation: fadeIn 0.6s ease;
}

.welcome-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-5);
}

.welcome-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-card h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.welcome-card p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-sm);
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-item span {
    font-weight: 500;
    color: var(--text-dark);
}

/* ==================== フッター ==================== */
.footer {
    background: var(--gradient-1);
    color: white;
    text-align: center;
    padding: var(--spacing-md);
    margin-top: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ==================== レスポンシブデザイン ==================== */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .selector-container {
        grid-template-columns: 1fr;
    }
    
    .city-name {
        font-size: 2rem;
    }
    
    .welcome-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .temp-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .city-name {
        font-size: 1.5rem;
    }
    
    .welcome-card h2 {
        font-size: 1.5rem;
    }
    
    .welcome-features {
        grid-template-columns: 1fr;
    }
}
