@charset "UTF-8";

:root {
    --pref-green: #27ae60;
    --pref-light-bg: #f8fdfa;
}

/* メイン表題 */
.page-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    padding-bottom: 8px;
    margin: 0 0 20px 0;
    border-bottom: 2px solid var(--pref-green);
}

/* アンカーナビ */
.anchor-nav {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 30px;
}

.btn-pref {
    background: var(--pref-light-bg);
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px 2px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 地方タイトル */
.region-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: #333;
    padding: 6px 0 6px 12px;
    border-left: 5px solid var(--pref-green);
    margin: 40px 0 15px 0;
}

/* 都道府県カード：基本2列 */
.pref-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 15px;
}

.pref-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px;
}

/* リンク：常に下線 */
.pref-card a {
    display: block;
    font-size: 1rem;
    color: var(--pref-green);
    text-decoration: underline;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
    margin-bottom: 8px;
    font-weight: normal;
}

.pref-card a:hover {
    text-decoration: none;
}

/* 項目行：フレックスボックスで整列 */
.info-row {
    display: flex;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 2px;
    align-items: flex-start;
}

/* 【修正】ラベル幅を広げて全角1文字分以上の余白を確保 */
.info-row b {
    display: inline-block;
    flex: 0 0 6.2em;      /* 以前より広げて余白を確保 */
    max-width: 6.2em;
    min-width: 6.2em;
    font-weight: bold;
    color: #666;
    white-space: nowrap;
}

/* 内容の開始位置を微調整 */
.info-content {
    flex: 1;
    color: #333;
    padding-left: 5px;
    text-align: left;
}

/* スマホ表示(600px以下) */
@media (max-width: 600px) {
    .pref-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    .pref-card {
        padding: 8px;
    }
    .info-row {
        font-size: 0.72rem; /* 2列で入り切るよう縮小 */
    }
    /* 【修正】スマホ版でもラベル幅を厳密に固定し、余白を全角1文字分ほど確保 */
    .info-row b {
        flex: 0 0 5.8em;    /* スマホでも「地」と「市」がくっつかない幅に設定 */
        max-width: 5.8em;
        min-width: 5.8em;
    }
    .info-content {
        padding-left: 2px;
    }
    .anchor-nav {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 4px !important;
    }
    .btn-pref {
        font-size: 0.7rem;
    }
    .page-title {
        font-size: 1.15rem;
        padding-bottom: 6px;
    }
}

.pagetop-link {
    text-align: right;
    margin-top: 10px;
}

.pagetop-link a {
    font-size: 0.85rem;
    color: var(--pref-green);
    text-decoration: none;
}