/* ==================== 日本地図クエスト専用スタイル ==================== */

/* ゲームコンテナ */
.game-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    padding: 20px;
}

/* ゲームヘッダー */
.game-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-left {
    display: flex;
    justify-content: flex-start;
}

.header-center {
    text-align: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: 'Kosugi Maru', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

.game-title {
    font-size: 2.5rem;
    color: white;
    font-family: 'Dela Gothic One', sans-serif;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 5px 0 0 0;
}

.points-display {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* モード選択画面 */
.mode-selection {
    max-width: 1200px;
    margin: 0 auto;
}

.selection-header {
    text-align: center;
    margin-bottom: 40px;
}

.selection-header h2 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 10px;
    font-family: 'Kiwi Maru', sans-serif;
}

.selection-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.mode-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mode-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.mode-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: #74b9ff;
}

.mode-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.mode-card h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-family: 'Kiwi Maru', sans-serif;
}

.mode-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.mode-features {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.feature-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.start-btn {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Kosugi Maru', sans-serif;
}

.start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.4);
}

/* 学習モード */
.learning-mode {
    max-width: 1200px;
    margin: 0 auto;
}

.learning-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.learning-header h2 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
    font-family: 'Kiwi Maru', sans-serif;
}

.learning-progress {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: bold;
}

.mode-back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Kosugi Maru', sans-serif;
}

.mode-back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.learning-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.prefecture-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.prefecture-info {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.prefecture-name {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-family: 'Dela Gothic One', sans-serif;
}

.prefecture-reading {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.prefecture-region {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
}

.prefecture-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
}

.detail-section h4 {
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.detail-section p {
    color: #34495e;
    margin: 0;
    line-height: 1.5;
}

.learning-map {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
}

.simple-map {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #a8e6cf, #7fcdcd);
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    border: 3px solid #74b9ff;
}

.learning-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.nav-btn {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Kosugi Maru', sans-serif;
    min-width: 120px;
}

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

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.quiz-btn {
    background: linear-gradient(135deg, #fd79a8, #e84393);
}

.quiz-btn:hover {
    box-shadow: 0 5px 15px rgba(253, 121, 168, 0.4);
}

/* クイズモード */
.quiz-mode {
    max-width: 1000px;
    margin: 0 auto;
}

.quiz-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.quiz-header h2 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
    font-family: 'Kiwi Maru', sans-serif;
}

.quiz-info {
    display: flex;
    gap: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
}

.quiz-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.question-card {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.question-text {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-family: 'Kiwi Maru', sans-serif;
}

.question-hint {
    color: #7f8c8d;
    font-size: 1.1rem;
    font-style: italic;
}

.quiz-map-container {
    margin: 30px 0;
    text-align: center;
}

.quiz-map {
    display: inline-block;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #a8e6cf, #7fcdcd);
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    border: 3px solid #74b9ff;
    margin: 0 auto;
}

.answer-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.choice-btn {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Kosugi Maru', sans-serif;
}

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

.choice-btn.correct {
    background: linear-gradient(135deg, #00b894, #00a085);
}

.choice-btn.incorrect {
    background: linear-gradient(135deg, #e17055, #d63031);
}

.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hint-btn, .skip-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Kosugi Maru', sans-serif;
}

.hint-btn:hover, .skip-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 探検モード */
.explore-mode {
    max-width: 1200px;
    margin: 0 auto;
}

.explore-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.explore-header h2 {
    color: white;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    font-family: 'Kiwi Maru', sans-serif;
}

.explore-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
}

.explore-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.interactive-map {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.explore-info {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.explore-info h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    font-family: 'Kiwi Maru', sans-serif;
}

.explore-info p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* モーダル */
.result-modal, .mini-quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.result-header h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: 'Kiwi Maru', sans-serif;
}

.result-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-stat {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 2rem;
}

.stat-info {
    text-align: left;
}

.stat-name {
    display: block;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-number {
    display: block;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: bold;
}

.star-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 2rem;
}

.star {
    animation: starTwinkle 1.5s ease-in-out infinite alternate;
}

.star:nth-child(2) {
    animation-delay: 0.3s;
}

.star:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes starTwinkle {
    0% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    100% { transform: scale(1.2) rotate(10deg); opacity: 1; }
}

.result-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.result-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Kosugi Maru', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
}

.next-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.retry-btn {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
}

.home-btn {
    background: linear-gradient(135deg, #607D8B, #455A64);
    color: white;
}

.result-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ミニクイズ */
.mini-quiz-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.mini-quiz-choices button {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Kosugi Maru', sans-serif;
    transition: all 0.3s ease;
}

.mini-quiz-choices button:hover {
    transform: translateY(-2px);
}

.mini-quiz-controls {
    margin-top: 20px;
}

.mini-quiz-controls button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Kosugi Maru', sans-serif;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .game-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .mode-types {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .learning-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .explore-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .learning-header {
        flex-direction: column;
        text-align: center;
    }
    
    .quiz-header {
        flex-direction: column;
        text-align: center;
    }
    
    .quiz-info {
        justify-content: center;
    }
    
    .answer-choices {
        grid-template-columns: 1fr;
    }
    
    .result-stats {
        grid-template-columns: 1fr;
    }
    
    .result-buttons {
        flex-direction: column;
    }
    
    .learning-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 10px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .prefecture-name {
        font-size: 2rem;
    }
    
    .quiz-map {
        width: 250px;
        height: 250px;
    }
}