@charset "UTF-8";

/* --- 全体テーマ設定 --- */
/* 謎解きページ専用のフォントと背景色 */
.mystery-body {
    background-color: #0d1117; /* 深い夜のような黒に近い色 */
    color: #e6edf3;
}
.mystery-body h2, 
.mystery-body h3, 
.mystery-body h4, 
.sub-title {
    font-family: "Yu Mincho", "MS Mincho", serif; /* ミステリー風の明朝体 */
}

/* --- ヒーローセクション（トップの看板） --- */
.nazotoki-hero {
    position: relative;
    background: radial-gradient(circle at center, #00404b 0%, #050a0f 100%);
    padding: 180px 20px 100px;
    text-align: center;
    border-bottom: 2px solid #d4af37; /* ゴールドのライン */
}
.mystery-title-box {
    position: relative;
    z-index: 2;
    animation: fadeIn 2s ease-in-out;
}
.sub-title {
    color: #d4af37;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    margin-bottom: 15px;
}
.nazotoki-hero h2 {
    color: #ffffff;
    font-size: 4rem;
    letter-spacing: 0.3em;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    margin-bottom: 30px;
}
.hero-icon {
    font-size: 3rem;
    color: #d4af37;
    opacity: 0.8;
}

/* フェードインのアニメーション */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- プロローグ（導入文） --- */
.prologue {
    padding: 60px 20px;
    text-align: center;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%23ffffff" fill-opacity="0.05"/></svg>'); /* うっすらとしたドット背景 */
}
.prologue p {
    font-size: 1.1rem;
    line-height: 2.2;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}
.prologue p:first-child {
    font-size: 1.5rem;
    color: #d4af37;
    font-weight: bold;
}

/* --- 探索の道標（タイムライン型ルール） --- */
.nazotoki-route {
    padding: 60px 5%;
    max-width: 800px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #d4af37;
    margin-bottom: 50px;
    letter-spacing: 0.1em;
}

/* タイムラインの構造 */
.timeline {
    position: relative;
    padding-left: 40px;
}
/* 縦の道筋（ライン） */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background: dashed 2px #d4af37;
    border-left: 2px dashed #d4af37;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

/* タイムライン上のアイコン */
.timeline-icon {
    position: absolute;
    left: -40px;
    top: 0;
    width: 32px;
    height: 32px;
    background-color: #0d1117;
    border: 2px solid #d4af37;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #d4af37;
    font-size: 0.9rem;
    z-index: 2;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}
/* 吹き出しの矢印 */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent rgba(255, 255, 255, 0.05) transparent transparent;
}

.timeline-content h4 {
    color: #d4af37;
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
}
.timeline-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #c9d1d9;
}

/* --- 助言（ヒント）セクション --- */
.nazotoki-secret-tips {
    /* 下側の余白を 80px から 120px に広げました */
    padding: 40px 5% 120px; 
    display: flex;
    justify-content: center;
}
.secret-box {
    background: #161b22;
    border: 1px solid #444;
    border-top: 4px solid #8b0000;
    padding: 30px;
    border-radius: 5px;
    max-width: 800px;
    width: 100%;
    /* 箱のすぐ下にも確実に40pxの隙間を作るように追加しました */
    margin-bottom: 40px; 
}
.secret-box h4 {
    font-size: 1.5rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}
.secret-box ul {
    list-style: none;
    padding-left: 0;
}
.secret-box li {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
}
.secret-box li strong {
    display: inline-block;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
    border-bottom: 1px solid #555;
}

/* --- 報酬（景品）セクション --- */
.nazotoki-reward {
    /* 上に40px、左右に5%、下に80pxの余白を設けて、上下のセクションと間隔を開ける */
    padding: 40px 5% 80px; 
    width: 100%;
}
.reward-box {
    /* 左右のmarginをautoにすることで、確実に中央寄せにします */
    margin: 0 auto 80px; 
    background: linear-gradient(135deg, #1a1500 0%, #0d1117 100%);
    border: 2px solid #d4af37;
    padding: 40px 30px;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: pulseGlow 2.5s infinite alternate;
}
.reward-box h4 {
    font-size: 1.8rem;
    color: #d4af37;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}
.reward-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e6edf3;
    margin-bottom: 10px;
}
.reward-box strong {
    color: #d4af37;
    font-size: 1.3rem;
    border-bottom: 1px solid #d4af37;
}
.reward-box .reward-note {
    font-size: 0.9rem;
    color: #888;
    margin-top: 15px;
}

/* 報酬ボックスを光らせるアニメーション設定 */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.1); }
    100% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.5); }
}

/* スマホ表示用の調整 */
@media (max-width: 600px) {
    .reward-box {
        padding: 30px 20px;
    }
    .reward-box h4 {
        font-size: 1.4rem;
    }
    .reward-box p {
        font-size: 1rem;
    }
    .reward-box strong {
        font-size: 1.1rem;
    }
}