/* =========================================
   about-beginner.css: はじめての方へ ページ専用
   ========================================= */

.header {
    background-image: url('../page-images/beginner/header-beginner.png');
}

/* 🖼️ メインビジュアル */
.about-header-img-area {
    width: 100%;
    line-height: 0;
}
.main-header-visual {
    width: 100%;
    height: auto;
    display: block;
}

/* 🎯 ミッション & ロードマップ共通 */
.manual-card {
    background: #fff;
    border: 3px solid #87CEEB;
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: 10px 10px 0 rgba(135, 206, 235, 0.2);
}
.manual-badge {
    display: inline-block;
    background: #e91e63;
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 20px;
}
.mission-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 📚 登場人物紹介（PC：横3列） */
.characters-section {
    background-color: #fdfaf0;
    padding: 80px 40px !important;
    border: 2px dashed #87CEEB !important;
}
.characters-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}
.character-card {
    background: #fff;
    border: 2px solid #87CEEB;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
.character-image {
    width: 120px; height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    flex-shrink: 0;
}

/* キャラ配色連動（やすだ：青、ワン：黄、ワサビ：緑） */
.character-card:nth-child(1) { border-bottom: 8px solid #54a0ff; }
.character-card:nth-child(2) { border-bottom: 8px solid #ffd32a; }
.character-card:nth-child(3) { border-bottom: 8px solid #2ecc71; }

/* ✨ やすコレの楽しみ方（PC：横3列） */
.pillars-grid-section {
    background-color: #ffffff;
    background-image: radial-gradient(#87CEEB 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 80px 40px !important;
    border: 2px dashed #87CEEB !important;
}
.pillars-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}
.pillar-card {
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #1a1a1a;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* 楽しみ方配色連動（笑：青、犬：黄、学：緑） */
.pillar-card:nth-child(1) { background-color: #e6f7ff !important; }
.pillar-card:nth-child(2) { background-color: #fff9e6 !important; }
.pillar-card:nth-child(3) { background-color: #f0fff4 !important; }
.pillar-card:nth-child(1) .pillar-icon { background-color: #54a0ff !important; }
.pillar-card:nth-child(2) .pillar-icon { background-color: #f1c40f !important; }
.pillar-card:nth-child(3) .pillar-icon { background-color: #2ecc71 !important; }
.pillar-icon {
    font-size: 2.5rem; color: #fff;
    width: 75px; height: 75px; line-height: 75px;
    border-radius: 50%; margin-bottom: 20px;
}

/* =============================================
   ギャラリー・パビリオン案内セクション
   ============================================= */
.gallery-expo-section {
    margin: 100px 15px 60px;
    padding: 80px 20px;
    background-color: #fcfdfe;
    background-image: 
        linear-gradient(90deg, rgba(114, 164, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(114, 164, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    border: 2px dashed #dce6f2;
    border-radius: 40px;
    text-align: center;
}

.gallery-expo-section .section-title {
    margin-bottom: 50px;
    font-size: 1.8rem;
    display: inline-block;
    position: relative;
}

.gallery-expo-section .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #ff9d42;
    margin: 10px auto 0;
    border-radius: 2px;
}

.gallery-expo-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.expo-card {
    width: 300px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #333;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-bottom: 8px solid #ddd;
    display: block;
}

.card-blue   { border-bottom-color: #72a4ff; }
.card-yellow { border-bottom-color: #f7d466; }
.card-green  { border-bottom-color: #55c78d; }

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.card-info {
    padding: 20px 15px;
    text-align: center;
}

.pavilion-label {
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
    display: block;
}
.card-blue .pavilion-label   { color: #5a91f5; }
.card-yellow .pavilion-label { color: #d4a017; }
.card-green .pavilion-label  { color: #3da373; }

.card-info h3 {
    margin: 5px 0 8px;
    font-size: 1.3rem;
    color: #333;
}

.card-info p {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

.expo-card:hover {
    transform: translateY(-12px) rotate(-1.5deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

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

/* 🚀 ロードマップ */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.roadmap-item {
    background: #f8fdff;
    padding: 20px;
    border-radius: 15px;
    border: 1px dashed #87CEEB;
}
.roadmap-num { color: #54a0ff; font-weight: 900; font-size: 1.4rem; }

/* 🎰 おみくじ */
.omikuji-box {
    background: #fff;
    border: 3px solid #fbc02d;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    box-shadow: 0 8px 0 #f9a825;
}
.omikuji-display {
    min-height: 80px;
    background: #fff9c4;
    border: 2px inset #fbc02d;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#omikuji-btn {
    background: #e91e63;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

/* ✉️ メッセージ */
.message-box {
    text-align: center;
    padding: 60px 20px;
    background: #f0f8ff;
    border: 2px dashed #87CEEB;
    border-radius: 30px;
    margin: 60px auto;
    max-width: 900px;
}
.author-sign { font-weight: bold; color: #e91e63; margin-top: 20px; }

/* =============================================
   📱 レスポンシブ設計
   ============================================= */

/* --- タブレット・中画面（950px以下） --- */
@media (max-width: 950px) {
    .mission-points,
    .characters-grid,
    .pillars-grid,
    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* --- タブレット・小画面（768px以下） --- */
@media (max-width: 768px) {
    .gallery-expo-section {
        margin-top: 60px;
        padding: 40px 15px;
    }
    .expo-card {
        width: 100%;
        max-width: 340px;
    }
}

/* --- スマートフォン（650px以下） --- */
@media (max-width: 650px) {
    .mission-points,
    .characters-grid,
    .pillars-grid,
    .roadmap-grid {
        grid-template-columns: 1fr !important;
    }
    .character-card,
    .pillar-card {
        max-width: 400px !important;
        margin: 0 auto !important;
    }
}
