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

:root {
    /* 東ティモール国旗の色（黒を削除） */
    --primary-red: #D80032;
    --primary-yellow: #FFCC00;
    --primary-dark: #2c3e50;
    --primary-white: #FFFFFF;
    --primary-light: #f8f9fa;
    --primary-gray: #6c757d;
    
    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    --gradient-dark: linear-gradient(135deg, #34495e, #2c3e50);
    --gradient-overlay: linear-gradient(135deg, rgba(216, 0, 50, 0.8), rgba(255, 204, 0, 0.6));
    
    /* フォント（全てゴシック体） */
    --font-primary: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    --font-display: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    
    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* ブレークポイント */
    --breakpoint-sm: 768px;
    --breakpoint-md: 1024px;
    --breakpoint-lg: 1200px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--primary-dark);
    overflow-x: hidden;
    font-weight: 400;
}

/* 画像表示の確実化 */
img {
    opacity: 1 !important;
    display: block;
    max-width: 100%;
    height: auto;
}

/* ページ共通スタイル */
.page-hero {
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('img/子供達.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 80px;
}

.page-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--primary-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 0, 0, 0.6);
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--primary-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 0, 0, 0.6);
    text-align: center;
    font-weight: 400;
}

/* ナビゲーションのアクティブ状態 */
.nav-link.active {
    color: var(--primary-red);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* テトゥン語ページのスタイル */
.language-intro {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: var(--spacing-xl) 0;
    position: relative;
}

.language-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/子供達.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: var(--spacing-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.intro-content h2 {
    color: var(--primary-red);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.intro-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-yellow));
    border-radius: 2px;
}

.intro-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--primary-dark);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* =======================================
   追加された最新UI要素のスタイル
   ======================================= */

/* 導入セクションの新しいレイアウト */
.intro-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.intro-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    backdrop-filter: blur(10px);
}

.intro-text .lead-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
    font-weight: 400;
}

/* 言語統計 */
.language-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    display: block;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.language-features {
    margin-top: var(--spacing-xl);
}

.feature-content h3 {
    color: white;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg);
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 1.4rem;
    color: white;
}

.feature-card h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* セクションヘッダー */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-direction: column;
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, var(--primary-red), #ff5252);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    color: var(--primary-red);
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

.section-subtitle {
    color: #ffffff;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

/* タイムライン */
.language-history {
    background: var(--primary-white);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.language-history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/観光-海.jpg') center/cover;
    z-index: 0;
}

.language-history .container {
    position: relative;
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-red), var(--primary-yellow));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: var(--spacing-lg);
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: var(--spacing-lg);
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-red);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.3);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-md);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    border-left: 4px solid var(--primary-red);
    backdrop-filter: blur(5px);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 4px solid var(--primary-red);
}

.timeline-date {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.timeline-content h3 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.timeline-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* 方言セクション */
.dialects-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: var(--spacing-xl) 0;
}

.dialects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.dialect-card {
    background: var(--primary-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dialect-card:hover {
    transform: translateY(-8px);
}

.dialect-header {
    background: linear-gradient(135deg, var(--primary-red), #ff5252);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gaps: var(--spacing-sm);
}

.dialect-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-sm);
    color: white;
    font-size: 1.1rem;
}

.dialect-header h3 {
    color: white;
    font-size: 1.3rem;
    margin: 0;
    flex-grow: 1;
}

.dialect-status {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.dialect-content {
    padding: var(--spacing-md);
}

.dialect-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.dialect-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--spacing-md);
}

.feature-tag {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-red);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dialect-example {
    background: rgba(255, 107, 107, 0.05);
    padding: var(--spacing-sm);
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
    font-style: italic;
}

/* 挨拶カードの拡張スタイル */
.greetings-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: var(--spacing-xl) 0;
}

.greeting-card {
    background: var(--primary-white);
    border-radius: 20px;
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.greeting-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-yellow));
}

.greeting-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.phrase-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, var(--primary-red), #ff5252);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.favorite-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-red);
}

.favorite-btn:hover {
    background: var(--primary-red);
    color: white;
}

.phrase-japanese {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.phrase-tetun {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: var(--spacing-xs);
}

.phrase-romaji {
    font-size: 1rem;
    color: #666;
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.phrase-note {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: var(--spacing-md);
}

.audio-btn {
    background: linear-gradient(145deg, var(--primary-red), #ff5252);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.audio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* クイズセクション */
.quiz-section {
    background: var(--primary-white);
    padding: var(--spacing-xl) 0;
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 107, 107, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-yellow));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: 600;
    color: var(--primary-red);
    font-size: 0.9rem;
}

.quiz-card {
    background: var(--primary-white);
    border-radius: 20px;
    padding: var(--spacing-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.quiz-question h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

.quiz-options {
    display: grid;
    gap: var(--spacing-sm);
}

.quiz-option {
    background: white;
    border: 2px solid rgba(255, 107, 107, 0.2);
    border-radius: 15px;
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.quiz-option:hover {
    border-color: var(--primary-red);
    background: rgba(255, 107, 107, 0.05);
}

.option-label {
    width: 30px;
    height: 30px;
    background: linear-gradient(145deg, var(--primary-red), #ff5252);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.option-text {
    font-size: 1rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.quiz-results {
    background: var(--primary-white);
    border-radius: 20px;
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.results-content h3 {
    color: var(--primary-red);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
}

.score-display {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
}

.score-text {
    color: var(--primary-dark);
}

.score-num {
    color: var(--primary-red);
}

.results-message {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

.retry-btn {
    background: linear-gradient(145deg, var(--primary-red), #ff5252);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

/* 文化セクション */
.cultural-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: var(--spacing-xl) 0;
    color: var(--primary-dark);
}

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

.cultural-card {
    background: var(--primary-white);
    border-radius: 20px;
    padding: var(--spacing-lg);
    text-align: center;
    border: 1px solid rgba(255, 107, 107, 0.1);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cultural-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.2);
}

.cultural-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, var(--primary-red), #ff5252);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 1.5rem;
    color: white;
}

.cultural-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--primary-red);
}

.cultural-description {
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    color: #555;
}

.cultural-phrase {
    background: rgba(255, 107, 107, 0.05);
    padding: var(--spacing-sm);
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--primary-dark);
    border-left: 4px solid var(--primary-red);
}

/* 数字セクション */
.numbers-section {
    background: var(--primary-white);
    padding: var(--spacing-xl) 0;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
}

.number-category {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(255, 107, 107, 0.02));
    border-radius: 20px;
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.number-category h3 {
    color: var(--primary-red);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

.numbers-list, .expressions-list {
    spacing: var(--spacing-sm);
    gap: var(--spacing-xs);
}

.number-item, .expression-item {
    background: white;
    padding: var(--spacing-sm);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
    transition: all 0.3s ease;
}

.number-item:hover, .expression-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.1);
}

.number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-red);
    width: 40px;
    text-align: center;
}

.tetun-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    flex: 1;
    text-align: center;
}

.romaji {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    flex: 1;
    text-align: right;
}

.expression-japanese {
    font-weight: 600;
    color: var(--primary-dark);
    flex: 1;
}

.expression-tetun {
    font-weight: 600;
    color: var(--primary-red);
    flex: 1;
    text-align: center;
}

.expression-romaji {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    flex: 1;
    text-align: right;
}

/* フィルター機能 */
.category-filter {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

/* 便利なフレーズの拡張スタイル */
.phrases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.phrase-category {
    background: white;
    border-radius: 20px;
    padding: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.phrase-category:hover {
    transform: translateY(-5px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(255, 107, 107, 0.1);
}

.category-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg, var(--primary-red), #ff5252);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.category-header h3 {
    color: var(--primary-red);
    font-size: 1.3rem;
    margin: 0;
    flex: 1;
}

.phrase-count {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-red);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.phrase-list {
    display: grid;
    gap: var(--spacing-sm);
}

.phrase-item {
    background: rgba(255, 107, 107, 0.05);
    padding: var(--spacing-sm);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all 0.3s ease;
}

.phrase-item:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: translateX(5px);
}

.phrase-item .phrase-japanese {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    flex: 1;
}

.phrase-item .phrase-tetun {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-red);
    flex: 1.2;
    text-align: center;
}

.phrase-item .phrase-romaji {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    flex: 1.2;
    text-align: right;
}

.audio-btn-small {
    width: 32px;
    height: 32px;
    background: linear-gradient(145deg, var(--primary-red), #ff5252);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.audio-btn-small:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .intro-header {
        flex-direction: column;
        text-align: center;
    }
    
    .intro-header h2 {
        font-size: 2rem;
    }
    
    .language-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-marker {
        left: 20px !important;
        transform: none !important;
    }
    
    .timeline::before {
        left: 20px;
        transform: none;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        text-align: left;
    }
    
    .dialects-grid {
        grid-template-columns: 1fr;
    }
    
    .greetings-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .cultural-grid {
        grid-template-columns: 1fr;
    }
    
    .numbers-grid {
        grid-template-columns: 1fr;
    }
    
    .phrases-grid {
        grid-template-columns: 1fr;
    }
    
    .category-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: var(--spacing-sm);
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

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

.greeting-card {
    background: var(--primary-white);
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.greeting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.phrase-japanese {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: var(--spacing-xs);
}

.phrase-tetun {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

.phrase-romaji {
    font-size: 0.9rem;
    color: var(--primary-gray);
    font-style: italic;
    margin-bottom: var(--spacing-xs);
}

.phrase-note {
    font-size: 0.8rem;
    color: var(--primary-gray);
    background: rgba(216, 0, 50, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    display: inline-block;
}

.useful-phrases-section {
    background: var(--primary-white);
    padding: var(--spacing-xl) 0;
}

.phrases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.phrase-category {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: var(--spacing-md);
    border-radius: 15px;
    border-left: 4px solid var(--primary-red);
}

.phrase-category h3 {
    color: var(--primary-red);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.phrase-item {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--primary-white);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.phrase-item .phrase-japanese {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.phrase-item .phrase-tetun {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.phrase-item .phrase-romaji {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.pronunciation-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: var(--spacing-xl) 0;
}

.pronunciation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.pronunciation-tips {
    background: var(--primary-white);
    padding: var(--spacing-md);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pronunciation-tips h3 {
    color: var(--primary-red);
    margin-bottom: var(--spacing-md);
}

.pronunciation-tips ul {
    list-style: none;
}

.pronunciation-tips li {
    margin-bottom: var(--spacing-sm);
    padding-left: 20px;
    position: relative;
}

.pronunciation-tips li::before {
    content: '•';
    color: var(--primary-red);
    position: absolute;
    left: 0;
}

.pronunciation-examples {
    background: var(--primary-white);
    padding: var(--spacing-md);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pronunciation-examples h3 {
    color: var(--primary-red);
    margin-bottom: var(--spacing-md);
}

.example-item {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(216, 0, 50, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
}

.example-tetun {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

.example-pronunciation {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.example-meaning {
    color: var(--primary-gray);
    font-size: 0.9rem;
}

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

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(216, 0, 50, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-red);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.flag-icon {
    width: 32px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    opacity: 1;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-red);
    transition: all 0.3s ease;
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: transparent;
    padding-top: 80px;
}

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    opacity: 1;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 0, 0, 0.6);
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease forwards;
    color: var(--primary-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 0, 0, 0.6);
}

.title-line:nth-child(2) {
    animation-delay: 0.3s;
    color: var(--primary-yellow);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--primary-white);
    margin-bottom: var(--spacing-md);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.6s forwards;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 0, 0, 0.6);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.9s forwards;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--primary-white);
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background: #b8002a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(216, 0, 50, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-white);
    border: 2px solid var(--primary-white);
}

.btn-secondary:hover {
    background: var(--primary-white);
    color: var(--primary-red);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 1s ease 1.2s forwards;
}

.floating-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    opacity: 1;
    display: block;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary-white);
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary-white);
    border-bottom: 2px solid var(--primary-white);
    transform: rotate(45deg);
}

/* セクション共通スタイル */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(216, 0, 50, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 300;
}

/* セクションフッターと「もっと見る」ボタン */
.section-footer {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
}

.more-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    color: var(--primary-white);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(216, 0, 50, 0.2);
}

.more-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(216, 0, 50, 0.3);
    color: var(--primary-white);
}

.more-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;
}

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

.more-button i {
    font-size: 1.2rem;
}

/* アバウトセクション */
.about-section {
    background: 
        linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%),
        radial-gradient(circle at 30% 20%, rgba(216, 0, 50, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 204, 0, 0.1) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(216,0,50,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,204,0,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(216,0,50,0.03)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,204,0,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.about-card {
    background: var(--primary-white);
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    color: var(--primary-white);
    font-size: 1.5rem;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-red);
}

.about-card ul {
    list-style: none;
    text-align: left;
}

.about-card li {
    margin-bottom: var(--spacing-xs);
    padding-left: 20px;
    position: relative;
}

.about-card li::before {
    content: '•';
    color: var(--primary-red);
    position: absolute;
    left: 0;
}

/* 観光名所セクション */
.attractions-section {
    background: 
        linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%),
        radial-gradient(circle at 20% 30%, rgba(255, 204, 0, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(216, 0, 50, 0.08) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

.attractions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="dots" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(216,0,50,0.1)"/><circle cx="0" cy="0" r="1" fill="rgba(255,204,0,0.1)"/><circle cx="40" cy="40" r="1" fill="rgba(216,0,50,0.1)"/></pattern></defs><rect width="200" height="200" fill="url(%23dots)"/></svg>');
    opacity: 0.4;
    z-index: 0;
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.attraction-card {
    background: var(--primary-white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.attraction-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.attraction-card.featured {
    grid-column: span 2;
    background: var(--gradient-primary);
    color: var(--primary-white);
}

.attraction-card.featured .card-content h3,
.attraction-card.featured .card-content p {
    color: var(--primary-white);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 1;
    display: block;
}

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

.rating {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-content {
    padding: var(--spacing-md);
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-red);
}

.activities {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
}

.activity-tag {
    background: var(--gradient-primary);
    color: var(--primary-white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.highlight, .note {
    background: rgba(255, 204, 0, 0.2);
    padding: var(--spacing-xs);
    border-radius: 8px;
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    border-left: 4px solid var(--primary-yellow);
}

/* 歴史セクション */
.history-section {
    position: relative;
    background: transparent;
    color: var(--primary-white);
    overflow: hidden;
}

.history-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.history-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    display: block;
}

.history-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.6);
    z-index: -1;
}

.history-section .section-title {
    color: var(--primary-white);
}

.history-section .section-subtitle {
    color: #ffffff;;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: 3px solid var(--primary-white);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.timeline-year {
    color: var(--primary-white);
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
}

.timeline-content {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--spacing-md);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    width: 45%;
    margin: 0 var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-content h3 {
    color: var(--primary-yellow);
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--primary-white);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 言語ガイドセクション */
.language-section {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('img/子供達.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.language-section .section-title {
    color: var(--primary-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.language-section .section-subtitle {
    color: #ffffff;;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.language-card {
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-md);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.language-card h3 {
    color: var(--primary-red);
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
    text-align: center;
}

.phrase-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    background: rgba(216, 0, 50, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

.phrase {
    font-weight: 600;
    color: var(--primary-red);
}

.meaning {
    color: var(--primary-gray);
}

/* 著者セクション */
.author-section {
    background: #f8f9fa;
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

/* メンバーコンテンツ */
.member-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

/* メンバープロフィール */
.member-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-image-container {
    position: relative;
    margin-bottom: var(--spacing-lg);
    display: inline-block;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 216px;
    height: 216px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, 
        var(--primary-red), 
        var(--primary-yellow), 
        var(--primary-red), 
        var(--primary-yellow), 
        var(--primary-red));
    animation: rotate 3s linear infinite;
    z-index: 0;
}

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



.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-white);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    display: block;
    background: var(--primary-white);
}


.profile-decoration {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: var(--primary-yellow);
    border-radius: 50%;
    border: 3px solid var(--primary-white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.profile-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

.profile-title {
    font-size: 1.2rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.profile-education {
    font-size: 1rem;
    color: var(--primary-gray);
    margin-bottom: var(--spacing-md);
}

.profile-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
    max-width: 400px;
}

/* ソーシャルリンク */
.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link.github {
    background: #333;
    color: white;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* チームCTA */
.team-cta {
    margin-top: var(--spacing-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--primary-red);
    color: var(--primary-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(220, 38, 67, 0.3);
}

.btn:hover {
    background: #c41e3a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 67, 0.4);
}

/* 活動ギャラリー */
.activity-gallery {
    padding: var(--spacing-lg);
}

.activity-gallery h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.activity-images {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.activity-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.activity-image:hover {
    transform: scale(1.02);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .member-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .profile-image-container::before {
        top: -6px;
        left: -6px;
        width: 162px;
        height: 162px;
    }
    
    
    .profile-info h3 {
        font-size: 1.5rem;
    }
    
    .profile-description {
        max-width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .activity-gallery {
        padding: var(--spacing-md);
    }
    
    .activity-images {
        gap: var(--spacing-sm);
    }
    
    .activity-image {
        height: 150px;
    }
}

/* 日記セクション */
.diary-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* 日本財団ボランティアセンターへの感謝 */
.foundation-thanks {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--primary-white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-red);
}

.foundation-thanks-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: var(--spacing-xl) 0;
}

/* 留学体験談ページのスタイル */
.diary-overview {
    background: var(--primary-white);
    padding: var(--spacing-xl) 0;
}

.overview-content h2 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

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

.overview-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.overview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.overview-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    color: var(--primary-white);
    font-size: 1.5rem;
}

.overview-item h3 {
    color: var(--primary-red);
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.overview-item p {
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.diary-entries {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: var(--spacing-xl) 0;
}

.diary-timeline {
    max-width: 1000px;
    margin: 0 auto;
}

.diary-entry {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    align-items: start;
}

.entry-date {
    text-align: center;
    background: var(--gradient-primary);
    color: var(--primary-white);
    padding: var(--spacing-md);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.day-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.day-text {
    display: block;
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
}

.entry-content {
    background: var(--primary-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.entry-image {
    height: 150px;
    overflow: hidden;
}

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

.entry-content:hover .entry-image img {
    transform: scale(1.05);
}

.entry-text {
    padding: 0px;
}

.entry-text h3 {
    color: var(--primary-red);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.entry-text p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--primary-dark);
}

.entry-activities {
    list-style: none;
    background: rgba(216, 0, 50, 0.05);
    padding: var(--spacing-sm);
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
}

.entry-activities li {
    padding: var(--spacing-xs) 0;
    position: relative;
    padding-left: 20px;
}

.entry-activities li::before {
    content: '•';
    color: var(--primary-red);
    position: absolute;
    left: 0;
}

.learnings-section {
    background: var(--primary-white);
    padding: var(--spacing-xl) 0;
}

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

.learning-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.learning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.learning-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    color: var(--primary-white);
    font-size: 1.5rem;
}

.learning-card h3 {
    color: var(--primary-red);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.learning-card p {
    color: var(--primary-dark);
    line-height: 1.6;
    font-size: 0.9rem;
}

.foundation-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.foundation-image {
    text-align: center;
}

.foundation-logo {
    max-width: 150px;
    height: auto;
    opacity: 1;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.foundation-text h3 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.foundation-text p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
    color: var(--primary-dark);
}

.thanks-signature {
    font-weight: 600;
    color: var(--primary-red);
    text-align: right;
    margin-top: var(--spacing-md);
    font-style: italic;
}

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

.diary-card {
    background: var(--primary-white);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.diary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.diary-image {
    height: 200px;
    overflow: hidden;
}

.diary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 1;
    display: block;
}

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

.diary-content {
    padding: var(--spacing-md);
}

.diary-content h3 {
    color: var(--primary-red);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.diary-content ul {
    list-style: none;
}

.diary-content li {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--primary-light);
    position: relative;
    padding-left: 20px;
}

.diary-content li::before {
    content: '•';
    color: var(--primary-red);
    position: absolute;
    left: 0;
}

/* 旅行情報セクション */
.travel-info-section {
    background: 
        linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%),
        radial-gradient(circle at 25% 25%, rgba(255, 204, 0, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 75% 75%, rgba(216, 0, 50, 0.08) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

.travel-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120"><defs><pattern id="triangles" width="60" height="60" patternUnits="userSpaceOnUse"><polygon points="30,5 55,45 5,45" fill="rgba(216,0,50,0.05)"/><polygon points="30,55 55,15 5,15" fill="rgba(255,204,0,0.05)"/></pattern></defs><rect width="120" height="120" fill="url(%23triangles)"/></svg>');
    opacity: 0.4;
    z-index: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.info-card {
    background: var(--primary-white);
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-light);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-red);
}

.info-card .card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    color: var(--primary-white);
    font-size: 1.5rem;
}

.info-card h3 {
    color: var(--primary-red);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

/* お問い合わせセクション */
.contact-section {
    background: 
        linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%),
        radial-gradient(circle at 30% 30%, rgba(216, 0, 50, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 204, 0, 0.1) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="squares" width="50" height="50" patternUnits="userSpaceOnUse"><rect x="10" y="10" width="10" height="10" fill="rgba(216,0,50,0.1)"/><rect x="30" y="30" width="10" height="10" fill="rgba(255,204,0,0.1)"/><rect x="0" y="40" width="5" height="5" fill="rgba(216,0,50,0.05)"/><rect x="45" y="5" width="5" height="5" fill="rgba(255,204,0,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23squares)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    color: var(--primary-red);
    margin-bottom: var(--spacing-md);
    text-align: center;
    font-size: 1.2rem;
}

.contact-form {
    background: var(--primary-white);
    padding: var(--spacing-md);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary-light);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: var(--font-primary);
    font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* フッター */
.footer {
    background: 
        var(--gradient-dark),
        radial-gradient(circle at 20% 20%, rgba(216, 0, 50, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 204, 0, 0.1) 0%, transparent 50%);
    color: var(--primary-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><defs><pattern id="footer-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="0" cy="0" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="80" height="80" fill="url(%23footer-pattern)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-yellow);
}

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

.link-group h4 {
    color: var(--primary-yellow);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: var(--spacing-xs);
}

.link-group a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* アニメーション */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* スクロールアニメーション用 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        padding-top: 100px;
    }
    
    .page-hero {
        height: 60vh;
        padding-top: 100px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: var(--spacing-xl);
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .attraction-card.featured {
        grid-column: span 1;
    }
    
    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .author-image-wrapper {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }
    
    .author-details {
        grid-template-columns: 1fr;
    }
    
    .author-actions {
        justify-content: center;
    }
    
    .author-btn {
        flex: 1;
        min-width: 200px;
        justify-content: center;
    }
    
    .author-highlights {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 50px;
    }
    
    .timeline-marker {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: 100%;
        margin: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .foundation-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .foundation-logo {
        max-width: 120px;
        margin: 0 auto;
    }
    
    .thanks-signature {
        text-align: center;
    }
    
    .pronunciation-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .diary-entry {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .entry-date {
        max-width: 150px;
        margin: 0 auto;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 120px;
    }
    
    .page-hero {
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .section-title {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }
    
    .about-grid,
    .attractions-grid,
    .language-grid,
    .diary-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* 歴史セクション拡張スタイル */
.timeline-description {
    margin-bottom: var(--spacing-sm) !important;
    border-left: none !important;
}

.timeline-details {
    margin-top: var(--spacing-sm);
}

.timeline-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-details li {
    padding: 0.25rem 0;
    font-size: 0.85rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--primary-white);
}

.timeline-details li::before {
    content: '•';
    color: var(--primary-yellow);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 歴史概要 */
.history-intro {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    padding: var(--spacing-lg);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.intro-content h3 {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    color: var(--primary-white);
}

/* 重要人物 */
.historical-figures {
    margin-top: var(--spacing-xl);
}

.historical-figures h3 {
    color: var(--primary-yellow);
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
}

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

.figure-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: var(--spacing-md);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.figure-card:hover {
    transform: translateY(-5px);
}

.figure-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--spacing-sm);
    border: 3px solid var(--primary-yellow);
}

.figure-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.figure-content h4 {
    color: var(--primary-white);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    text-align: center;
}

.figure-title {
    color: var(--primary-yellow);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    text-align: center;
    font-weight: 600;
}

.figure-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

/* 文化的背景 */
.cultural-background {
    margin-top: var(--spacing-xl);
}

.cultural-background h3 {
    color: var(--primary-yellow);
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
}

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

.cultural-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: var(--spacing-md);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: transform 0.3s ease;
}

.cultural-item:hover {
    transform: translateY(-5px);
}

.cultural-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    font-size: 1.5rem;
    color: var(--primary-white);
}

.cultural-item h4 {
    color: var(--primary-white);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.cultural-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* =========================
   Diary Page Enhanced Styles
   ========================= */

/* Enhanced Diary Entry Styles */
.entry-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: var(--primary-white);
    font-weight: 700;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
    border: 4px solid var(--primary-white);
    position: relative;
    z-index: 2;
}

.day-number {
    font-size: 1.4rem;
    line-height: 1;
}

.day-date {
    font-size: 0.7rem;
    line-height: 1;
    margin-top: 2px;
}

.entry-location {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-gray);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.entry-location i {
    color: var(--primary-red);
    font-size: 1rem;
}

.entry-schedule {
    background: var(--primary-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--primary-red);
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    line-height: 1.4;
}

.schedule-item:last-child {
    margin-bottom: 0;
}

.schedule-item .time {
    font-weight: 700;
    color: var(--primary-red);
    min-width: 80px;
    flex-shrink: 0;
}

.schedule-item .activity {
    color: var(--primary-dark);
    flex: 1;
}

.entry-impression {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: var(--spacing-md);
    border-radius: 8px;
    border-left: 4px solid var(--primary-yellow);
}

.entry-impression h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

.entry-impression p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--primary-gray);
    margin: 0;
}

/* Enhanced Diary Timeline */
.diary-timeline {
    position: relative;
}

.diary-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: var(--gradient-primary);
    z-index: 1;
}

.diary-entry {
    display: flex;
    margin-bottom: var(--spacing-xl);
    position: relative;
    align-items: flex-start;
}

.diary-entry:last-child {
    margin-bottom: 0;
}

.entry-content {
    flex: 1;
    background: var(--primary-white);
    border-radius: 12px;
    padding: var(--spacing-lg);
    border: 1px solid #E0E0E0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

.entry-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.entry-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

/* 💻 デスクトップ（基本スタイル） */
.entry-image {
    border-radius: 8px;
    height: 400px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
  }
  
  .entry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  /* 📱 モバイル（768px以下の画面で上書き） */
  @media (max-width: 767px) {
    .entry-image {
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: var(--spacing-md);
      height: auto; /* 高さをリセット（画像の高さで決まる） */
    }
  
    .entry-image img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      transition: transform 0.3s ease;
    }
  }
  

.entry-image:hover img {
    transform: scale(1.05);
}

/* Responsive Design for Enhanced Diary */
@media (max-width: 768px) {
    .diary-timeline::before {
        display: none;
    }
    
    .diary-entry {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .entry-date {
        margin-right: 0;
        margin-bottom: var(--spacing-md);
    }
    
    .entry-content {
        width: 100%;
    }
    
    .entry-location {
        justify-content: center;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .schedule-item .time {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .entry-content {
        padding: var(--spacing-md);
    }
    
    .entry-text h3 {
        font-size: 1.1rem;
    }
    
    .entry-image img {
        height: 150px;
    }
    
    .entry-schedule,
    .entry-impression {
        padding: var(--spacing-sm);
    }
}
