/* --- 基本設定 --- */
body {
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.8;
}

/* --- ヘッダー（共通・デスクトップ） --- */
#header-bar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 55px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#header-title {
    font-family: 'Zen Maru Gothic', serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.1em;
}

.nav-link {
    position: absolute;
    right: 20px;
    text-decoration: none;
    color: #be2e2e;
    font-weight: 700;
    border: 1px solid #be2e2e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    transition: 0.3s;
}

.nav-link:hover {
    background: #be2e2e;
    color: #fff;
}

/* --- メインコンテンツ --- */
#content {
    max-width: 800px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

h2 {
    border-left: 5px solid #be2e2e;
    padding-left: 15px;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
}

/* --- 地図の見方（凡例スタイル）再調整版 --- */
.map-guide {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.map-guide li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;      /* 項目間の余白を戻してゆとりを確保 */
    font-size: 15px;
}

.line-sample {
    display: inline-block;
    width: 25px;
    height: 4px;
    margin-right: 15px;       /* チップと文字の間を少し戻しました */
    margin-top: 11px;
    border-radius: 2px;
    flex-shrink: 0;
}

.red-line { background-color: #be2e2e; box-shadow: 0 0 3px rgba(190, 46, 46, 0.5); }
.blue-line { background-color: rgba(22, 90, 200, 0.7); box-shadow: 0 0 3px rgba(22, 90, 200, 0.5); }

.map-guide strong {
    min-width: 75px;          /* 100pxは広すぎ、autoは狭すぎたので中間値に設定 */
    display: inline-block;
    flex-shrink: 0;
}

.notice-box {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
}

/* --- 更新情報ログ --- */
.update-log {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.update-log li {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    align-items: center;
}

.log-date {
    font-weight: 700;
    color: #333;
    min-width: 130px;
}

.log-content {
    flex: 1;
    color: #555;
}

.log-count {
    background: #be2e2e;
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.stats-box {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* --- 製作範囲（旧町村別） --- */
.sub-h3 {
    font-size: 16px;
    margin: 25px 0 10px;
    color: #be2e2e;
}

.area-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.area-list li {
    display: flex;
    flex-direction: column;
    background: #fdf2f2;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 4px solid #be2e2e;
}

.area-list li strong {
    color: #be2e2e;
    margin-bottom: 5px;
    min-width: 80px;
}

.area-list li span {
    font-size: 14px;
    color: #444;
}

/* --- 制作・運営 --- */
.author-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
}

.author-id {
    color: #be2e2e;
    text-decoration: none;
    border-bottom: 1px dashed #be2e2e;
}

.author-subtext {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* --- 下部ボタン・フッター --- */
.footer-btn {
    text-align: center;
    margin-top: 40px;
}

.start-btn {
    display: inline-block;
    background: #be2e2e;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(190, 46, 46, 0.3);
    transition: 0.3s;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(190, 46, 46, 0.4);
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 13px;
}

/* --- レスポンシブ対応 --- */

/* デスクトップ用（製作範囲を横並びにする） */
@media (min-width: 600px) {
    .area-list li {
        flex-direction: row;
    }
    .area-list li strong {
        margin-bottom: 0;
    }
}

/* スマホ用（ヘッダーと要素の調整） */
@media (max-width: 600px) {
    #header-bar {
        height: 90px; /* 2段にするため高さを出す */
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding-top: 5px;
    }

    #header-title {
        font-size: 18px;
        position: static;
    }

    .nav-link {
        position: static; /* 重なり防止 */
        font-size: 13px;
        padding: 4px 20px;
        width: 80%;
        text-align: center;
        margin-bottom: 5px;
    }

    #content {
        margin-top: 110px; /* ヘッダーの高さを考慮 */
    }

    section {
        padding: 20px;
    }

    .log-date {
        min-width: 100%;
        margin-bottom: 2px;
    }

    .map-guide li {
        flex-direction: column;
        align-items: flex-start;
    }

    .line-sample {
        margin-bottom: 5px;
    }
}

/* 参考資料のスタイル */
.reference-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reference-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
}

/* 文頭の「・」を赤色のドットにする装飾 */
.reference-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #be2e2e;
    font-size: 10px;
    top: 2px;
}

.reference-list li strong {
    color: #333;
    margin-right: 5px;
}
