@media screen and (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Breadcrumbs */
.breadcrumb {
    max-width: 1024px;
    margin: 0px auto;
    padding: 8px 20px;
    font-size: 14px;
    color: #5876A3;
    position: sticky;
    top: 60px;
    height: 36px;
    z-index: 100;
    box-sizing: border-box;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a {
    text-decoration: none;
    color: #17579B;
    font-size: 12px;
}

.breadcrumb span {
    color: #707070;
    font-size: 12px;
}

.breadcrumb span.material-symbols {
    font-size: 14px;
}

/* Page Header Section */
.page-header {
    max-width: 1024px;
    margin: 0 auto;
    background-color: #F8F9FA;
    padding: 40px 20px;
    text-align: center;
    box-sizing: border-box;
    border-bottom: 1px solid #dddddd;
}

.page-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.page-description {
    font-size: 16px;
    color: #6E6E6E;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Region Filter */
.region-filter-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    position: sticky;
    top: 86px;
    z-index: 100;
    box-sizing: border-box;
    background-color: #f8f9fa;
}

.region-filter-btn {
    background-color: white;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    padding: 4px 16px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    text-shadow: 0 0 1px #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.region-filter-btn:hover {
    background-color: #F5F5F5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Region Section */
.region-section {
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    padding-top: 130px;
    margin-top: -110px;
}

.region-title {
    font-size: 21px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    position: sticky;
    top: 140px;
    z-index: 90;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 0;
    width: calc(100% + 40px);
    padding: 8px 20px;
    box-sizing: border-box;
    background-image: linear-gradient(90deg, #ffffff 40% 0%, #ffffff00 100%);
}

.region-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 36px;
    background-color: #00BCD4;
    margin-right: 15px;
    border-radius: 2px;
}

/* Prefecture Grid */
.prefecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .prefecture-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .prefecture-grid {
        grid-template-columns: 1fr;
    }
}

.prefecture-card {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 16px;
}

.status-tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.status-tag.data-exists {
    background-color: #e6f7ff;
    color: #006DD1;
    border: 1px solid #91d5ff;
}

.status-tag.data-empty {
    background-color: #f5f5f5;
    color: #8c8c8c;
    border: 1px solid #d9d9d9;
}

/* 2カラムグリッド部分 */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-grid.first-info {
    height: 72px;
    overflow: hidden;
}

.info-grid.second-info {
    height: 104px;
    overflow: hidden;
}

.info-item {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d5d5d5;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
}

.info-label .material-symbols {
    font-size: 14px;
}

.info-value {
    font-size: 12px;
    font-weight: bold;
    line-height: 1.4;
    display: block;
}

.info-grid.first-info .info-value {
    height: 34px;
    overflow: hidden;
}

.info-grid.second-info .info-value {
    height: 64px;
    overflow: hidden;
}

.cost-box {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 12px;
}

.cost-title {
    font-size: 11px;
    color: #874d00;
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}

.cost-value {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.cost-value strong {
    font-size: 14px;
}

.cost-sub {
    font-size: 10px;
    color: #737373
}

/* 県民性 */
.character-box {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 14px;
    height: 96px;
    box-sizing: border-box;
}

.char-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: bold;
    color: #006BE6;
    margin-bottom: 6px;
}

.char-text {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

.prefecture-card .background-decoration[data-color] {
    width: 60%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    top: 0;
    right: 0;
    opacity: 0.1;
    position: absolute;
    box-sizing: border-box;
    z-index: 0;
    background-clip: text;
    background-color: attr(data-color);
}

.prefecture-card .background-decoration[data-color]::after {
    content: "";
    width: 180%;
    height: 180%;
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 50%;
    background-color: inherit;
}

.prefecture-card:hover {
    transform: translateY(0px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 16px; */
    z-index: 10;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
}

.prefecture-name {
    font-size: 21px;
    font-weight: bold;
    color: #333;
}

.municipality-count {
    background-color: #dbdbdb;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    color: #696969;
}

.card-body {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: #757575;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    position: relative;
    height: 42px;
}

.major-cities-label {
    text-shadow: 0 0 1px #333;
}

.major-cities-list {
    text-overflow: ellipsis;
    max-height: 42px;
    display: block;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    text-indent: 68px;
}

.text-ellipsis {
    position: absolute;
    bottom: 0px;
    right: 0;
    width: 50px;
    height: 20px;
    box-sizing: border-box;
    padding: 0 8px;
    align-items: baseline;
    color: #999;
    font-size: 14px;
    text-align: left;
    background-color: #ffffff;
}

.see-list-btn {
    background-color: #f0f7ff;
    color: #0056b3;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.see-list-btn:hover {
    color: #3367D6;
}

.see-list-btn .material-symbols {
    font-size: 18px;
    margin-left: 5px;
}