@charset "UTF-8";
/* CSS Document */

/* 補助金情報（新着情報＋検索パネル） */
/*　==================================================== */
.subsidyTop {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    /* 親の.section（960px）からはみ出して中央寄せ、上限1140px */
    width: min(1140px, calc(100vw - 40px));
    margin: 0 0 40px calc((100% - min(1140px, calc(100vw - 40px))) / 2);
}

.subsidyTop__news {
    display: flex;
    flex-direction: column;
    padding: 24px 28px 0 0;
    border-top: 4px solid #3d8aba;
    margin-top: 36px;
    background-image: url(../img/bg_subsidyNews.png);
    background-position: bottom left;
    background-repeat: no-repeat;
}

.subsidyTop__title {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 42px;
    font-weight: bold;
    line-height: 1.2;
    color: #3d8aba;
}

.subsidyTop__title::before,
.subsidyTop__title::after {
    content: none;
}

.subsidyTop__title span {
    margin-left: 32px;
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 0.08em;
    vertical-align: middle;
}

/* 新着情報 */
.subsidyNews__heading {
    margin: 28px 0 8px 20px;
    padding: 0;
    border: none;
    background: none;
    font-size: 18px;
    font-weight: bold;
    color: #3d8aba;
}

/* PC：検索パネルの高さに合わせ、新着情報はエリア内スクロール */
.subsidyNews {
    flex: 1 1 0;
    min-height: 160px;
    overflow-y: auto;
    padding: 0 12px 0px 20px;
    margin-bottom: 16px;
}

.subsidyNews__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.subsidyNews__row {
    display: grid;
    grid-template-columns: 70px 1fr;
    column-gap: 16px;
    row-gap: 2px;
    align-items: center;
    padding: 8px 0;
    color: inherit;
    text-decoration: none;
}

.subsidyNews__date {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
    color: #666;
    font-weight: normal;
    font-weight: 500;
}

.subsidyNews__label {
    grid-column: 1;
    grid-row: 2;
    padding: 2px 0;
    border: 1px solid #3d8aba;
    color: #3d8aba;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
}

.subsidyNews__text {
    grid-column: 2;
    grid-row: 2;
    font-size: 15px;
    line-height: 1.5;
    color: #3d8aba;
    text-decoration: underline;
    text-underline-offset: 0px;
    font-weight: 500;
}

a.subsidyNews__row:hover {
    opacity: 0.7;
}

/* 共通CSS（#container a:hover span { color: inherit; }）でホバー時に色が変わるのを防ぐ */
#container a.subsidyNews__row:hover .subsidyNews__label,
#container a.subsidyNews__row:hover .subsidyNews__text {
    color: #3d8aba;
}

.subsidyNews__row--nolink .subsidyNews__text {
    color: #333;
    text-decoration: none;
}

/* 検索パネル */
/*　==================================================== */
.searchPanel {
    padding: 24px 28px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e6eef6 0%, #dcdffb 100%);
}

.searchPanel__title {
    margin: 0 0 10px;
    padding: 0;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: normal;
    color: #3d8aba;
    line-height: 1.4;
}

.searchPanel__title span {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.04em;
}

.searchPanel__box {
    background: #FFF;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.searchPanel__box + .searchPanel__title {
    margin-top: 22px;
}

/* 対象地域 */
.searchPanel__region {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 80px;
    padding: 14px 16px;
    box-sizing: border-box;
}

.regionChips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.regionChips__item {
    min-width: 80px;
    padding: 6px 14px;
    box-sizing: border-box;
    background: #5ac8be;
    color: #FFF;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0em;
    text-align: center;
}

.regionChips__more {
    align-self: flex-end;
    font-size: 14px;
    color: #3d8aba;
}

.regionChips__placeholder {
    color: #999;
    font-size: 14px;
}

.regionSelectBtn {
    position: relative;
    flex-shrink: 0;
    width: 200px;
    height: 50px;
    padding: 0 36px 0 16px;
    border: 1px solid #004099;
    border-radius: 4px;
    background: #FFF;
    color: #004099;
    font-size: 16px;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.regionSelectBtn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
}

.regionSelectBtn:hover {
    opacity: 0.8;
}

/* 対象設備 */
.searchPanel__equip {
    padding: 4px 20px;
}

.equipGroup {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
}

.equipGroup + .equipGroup {
    border-top: 1px dotted #3d8aba;
}

.equipGroup__head {
    position: relative;
    flex-shrink: 0;
    width: 112px;
    margin: 0;
    cursor: pointer;
}

.equipGroup__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* グループ選択（チェックマークのみ表示） */
.equipGroup__head input[type="checkbox"],
.panelCheck input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.equipGroup__head > span {
    position: relative;
    display: inline-block;
    padding-left: 18px;
    /*color: #3d8aba;*/
    color: #004099;
    font-size: 15px;
    line-height: 22px;
}

.equipGroup__head > span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    width: 6px;
    height: 11px;
    margin-top: -8px;
    border-right: 2px solid #cdeeeb;
    border-bottom: 2px solid #cdeeeb;
    transform: rotate(45deg);
}

.equipGroup__head input:checked + span::before {
    border-color: #5ac8be;
}

/* 一部選択中 */
.equipGroup__head input:indeterminate + span::before {
    left: 1px;
    width: 10px;
    height: 0;
    margin-top: 0;
    border-right: none;
    border-color: #5ac8be;
    transform: none;
}

.equipGroup__head input:disabled + span {
    color: #bbb;
    cursor: not-allowed;
}

.equipGroup__head input:disabled + span::before {
    border-color: #ddd;
}

/* チェックボックス */
.panelCheck {
    position: relative;
    display: inline-block;
    margin: 0;
    cursor: pointer;
}

.panelCheck > span {
    position: relative;
    display: inline-block;
    padding-left: 28px;
    color: #b1d0e3;
    font-size: 14px;
    line-height: 22px;
}

.panelCheck > span small {
    font-size: 12px;
}

.panelCheck > span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    box-sizing: border-box;
    border: 2px solid #8fd3cc;
    border-radius: 3px;
    background: #FFF;
}

.panelCheck > span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 8px;
    width: 6px;
    height: 11px;
    margin-top: -8px;
    border-right: 2px solid #FFF;
    border-bottom: 2px solid #FFF;
    transform: rotate(45deg);
    opacity: 0;
}

.panelCheck input:checked + span {
    /*color: #3d8aba;*/
    color: #004099;
}

/* 募集終了も含む：非選択時も同じ色 */
.searchPanel__option > span {
    /*color: #3d8aba;*/
    color: #004099;
}

.panelCheck input:checked + span::before {
    border-color: #5ac8be;
    background: #5ac8be;
}

.panelCheck input:checked + span::after {
    opacity: 1;
}

.panelCheck input:disabled + span {
    color: #bbb;
    cursor: not-allowed;
}

.panelCheck input:disabled + span::before {
    border-color: #ddd;
    background: #F3F3F3;
}

.panelCheck input:disabled:checked + span::before {
    border-color: #ccc;
    background: #ccc;
}

.panelCheck input:focus-visible + span::before,
.equipGroup__head input:focus-visible + span {
    outline: 2px solid #3d8aba;
    outline-offset: 2px;
}

/* 検索ボタン・募集終了（ボタンを中央、募集終了を右に配置） */
.searchPanel__action {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 16px;
    margin-top: 24px;
}

.searchPanel__action .btnSearch {
    grid-column: 2;
}

.searchPanel a.btnSearch {
    position: relative;
    display: block;
    width: 270px;
    margin: 0;
    padding: 0;
    border-radius: 6px;
    background-color: #004098;
    color: #FFF !important;
    font-size: 18px;
    line-height: 56px;
    letter-spacing: 0.1em;
    text-align: center;
    text-decoration: none;
}

.searchPanel a.btnSearch::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 28px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-top: 1px solid #FFF;
    border-right: 1px solid #FFF;
    transform: rotate(45deg);
}

.searchPanel a.btnSearch.disabled {
    background-color: #e6e6e6;
    color: #ccc!important;
    pointer-events: none;
}

.searchPanel a.btnSearch.disabled::after {
    border-top: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

.searchPanel__option {
    grid-column: 3;
    justify-self: end;
    white-space: nowrap;
}

@media screen and (max-width: 640px) {
    .subsidyTop {
        display: block;
        width: auto;
        margin: 0 0 30px;
    }

    .subsidyTop__news {
        padding: 12px 0 0;
        margin-top: 0;
        background: none;
    }

    .subsidyTop__title {
        font-size: 34px;
    }

    .subsidyTop__title span {
        margin-left: 24px;
        font-size: 14px;
    }

    .subsidyNews__heading {
        margin: 20px 0 8px 0;
    }

    /* SP：スクロールせず3件まで表示 */
    .subsidyNews {
        flex: none;
        overflow: visible;
        min-height: 0;
        padding: 0;
        margin: 0;
    }

    .subsidyNews__item:nth-of-type(n+4) {
        display: none;
    }

    /* 画面幅いっぱいに表示 */
    .searchPanel {
        margin: 28px calc(50% - 50vw) 0;
        padding: 28px 16px 32px;
        border-radius: 0;
    }

    .searchPanel__title span {
        font-size: 20px;
    }

    .searchPanel__region {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        min-height: 0;
        padding: 14px 12px;
    }

    .regionChips__item {
        align-self: flex-start;
    }

    .regionSelectBtn {
        width: 100%;
        height: 48px;
    }

    .searchPanel__equip {
        padding: 4px 14px;
    }

    .equipGroup {
        display: block;
        padding: 16px 0;
    }

    .equipGroup__head {
        display: block;
        width: auto;
        margin-bottom: 12px;
    }

    .equipGroup__list {
        gap: 12px 12px;
    }

    /* 募集終了も含む → 検索ボタンの順 */
    .searchPanel__action {
        display: flex;
        flex-direction: column;
        gap: 18px;
        margin-top: 24px;
    }

    .searchPanel__option {
        order: -1;
    }

    .searchPanel a.btnSearch {
        width: 100%;
        max-width: 280px;
    }
}

/* 検索結果 */
/*　==================================================== */
.subsidyResult[hidden] {
    display: none;
}

.subsidyResult {
    margin: 40px 0;
}

.subsidyResult__count {
    margin: 0 0 16px;
    font-size: 14px;
    color: #3d8aba;
    text-align: center;
}

.subsidyResult__count span {
    margin: 0 4px;
    font-size: 24px;
    vertical-align: -2px;
}

.subsidyResult__none {
    margin: 30px 0;
    text-align: center;
    color: #333;
}

.subsidyResult__note {
    margin: 40px 0 20px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.subsidyResult__br {
    display: none;
}

/* ページネーション */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.pager:empty {
    display: none;
}

.pager__list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pager__num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 4px;
    border: none;
    border-radius: 17px;
    background: none;
    color: #333;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.pager__num.is-current {
    background: #e5eef6;
    color: #3d8aba;
    cursor: default;
}

button.pager__num:hover {
    color: #3d8aba;
}

.pager__ellipsis {
    padding: 0 4px;
    color: #333;
    font-weight: bold;
}

.pager__arrow {
    position: relative;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #3d8aba;
    cursor: pointer;
}

.pager__arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-top: 1px solid #FFF;
    border-right: 1px solid #FFF;
}

.pager__arrow--prev::after {
    transform: translate(-30%, -50%) rotate(-135deg);
}

.pager__arrow--next::after {
    transform: translate(-70%, -50%) rotate(45deg);
}

.pager__arrow:disabled {
    background: #a9c7df;
    cursor: default;
}

.pager__arrow:not(:disabled):hover {
    opacity: 0.8;
}

/* 補助金カード */
.subsidyResult__list {
    margin-top: 30px;
}

.subsidyCard + .subsidyCard {
    margin-top: 56px;
}

.subsidyCard__title {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.subsidyCard__title a {
    position: relative;
    display: block;
    padding: 16px 44px 16px 18px;
    background: #6a8fc5;
    color: #FFF !important;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.5;
    text-decoration: none;
}

.subsidyCard__title a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-top: 1px solid #FFF;
    border-right: 1px solid #FFF;
    transform: rotate(45deg);
}

.subsidyCard__title a:hover {
    opacity: 0.85;
}

.subsidyCard__status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 18px;
    background: #eef1f5;
    border-bottom: 1px solid #d5dde8;
}

/* ステータスアイコン */
.statusBadge {
    display: inline-block;
    min-width: 104px;
    padding: 1px 8px;
    border-radius: 4px;
    color: #FFF;
    font-size: 15px;
    line-height: 22px;
    letter-spacing: 0.2em;
    text-align: center;
    box-sizing: border-box;
}

.statusBadge--open {
    background: #5ac8be;
}

.statusBadge--planned {
    background: #a39bcd;
}

.statusBadge--closed {
    background: #999;
}

.newBadge {
    display: inline-block;
    min-width: 56px;
    padding: 0 6px;
    border: 1px solid #ff6378;
    border-radius: 4px;
    background: #ffe6e9;
    color: #ff6378;
    font-size: 14px;
    font-weight: bold;
    line-height: 22px;
    letter-spacing: 0.1em;
    text-align: center;
    box-sizing: border-box;
}

.subsidyCard__link {
    margin-left: auto;
    padding: 1px 12px;
    border: 1px solid #004098;
    border-radius: 4px;
    background: #FFF;
    color: #004098 !important;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
}

.subsidyCard__link::after {
    content: "\f08e";
    margin-left: 8px;
    font-family: FontAwesome;
}

.subsidyCard__link:hover {
    opacity: 0.8;
}

/* 項目テーブル */
.subsidyCard__table {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 8px;
    margin: 0;
    padding: 18px;
    background: linear-gradient(180deg, #eef2f7 0%, #f6f8fb 100%);
}

.subsidyCard__row {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 4px;
}

.subsidyCard__row--full {
    grid-column: 1 / -1;
}

.subsidyCard__row dt {
    padding: 10px 8px;
    background: #e1e6ee;
    color: #555;
    font-size: 14px;
    font-weight: normal;
    text-align: center;
}

.subsidyCard__row dd {
    margin: 0;
    padding: 10px 16px;
    background: #FFF;
    border-bottom: 1px solid #c7d5e5;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

/* 補助金額・概要の折りたたみ */
.resultCollapse {
    background: #FFF;
}

.resultCollapse__body {
    white-space: pre-line;
    background: #FFF;
}

.resultCollapse.is-collapsed .resultCollapse__body {
    max-height: 4.8em;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}

.resultCollapse__toggle {
    position: relative;
    display: block;
    margin: 6px auto 0;
    padding: 0 0 0 20px;
    border: none;
    background: none;
    color: #3d8aba;
    font-size: 14px;
    white-space: normal;
    cursor: pointer;
}

.resultCollapse__toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 2px;
    width: 7px;
    height: 7px;
    margin-top: -6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
}

.resultCollapse__toggle[aria-expanded="true"]::before {
    margin-top: -2px;
    transform: rotate(-135deg);
}

.resultCollapse__toggle:hover {
    opacity: 0.7;
}

.resultCollapse.is-short .resultCollapse__toggle {
    display: none;
}

@media screen and (max-width: 640px) {
    .subsidyResult {
        margin: 30px 0;
    }

    .subsidyResult__br {
        display: inline;
    }

    .pager {
        gap: 14px;
    }

    .subsidyCard + .subsidyCard {
        margin-top: 40px;
    }

    .subsidyCard__title a {
        padding: 12px 34px 12px 10px;
        font-size: 15px;
    }

    .subsidyCard__title a::after {
        right: 14px;
    }

    .subsidyCard__status {
        padding: 5px 10px;
    }

    .statusBadge {
        min-width: 96px;
    }

    .subsidyCard__link {
        padding: 1px 8px;
    }

    .subsidyCard__linkSuffix {
        display: none;
    }

    .subsidyCard__table {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px 10px;
    }

    .subsidyCard__row {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .subsidyCard__row dt {
        padding: 10px 4px;
        font-size: 13px;
    }

    .subsidyCard__row dd {
        padding: 10px 8px;
        font-size: 13px;
    }
}

/* モーダル */
.prefModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.prefModal.is-open {
    display: flex;
}

html.is-prefModalOpen {
    overflow: hidden;
}

.prefModal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.prefModal__container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    max-height: 92dvh;
    background: #FFF;
    overflow: hidden;
}

/* モーダル内の画面（STEP1：都道府県 / STEP2：市町村） */
.prefModal__step {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.prefModal__step[hidden] {
    display: none;
}

.prefModal__step.is-forward {
    animation: prefStepForward 0.25s ease-out;
}

.prefModal__step.is-back {
    animation: prefStepBack 0.25s ease-out;
}

@keyframes prefStepForward {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes prefStepBack {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .prefModal__step.is-forward,
    .prefModal__step.is-back {
        animation: none;
    }
}

/* ヘッダー（タイトル中央、戻る左、閉じる右） */
.prefModal__header {
    position: relative;
    padding: 20px 64px 10px;
    text-align: center;
}

.prefModal__title {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 21px;
    font-weight: normal;
    line-height: 1.4;
    color: #222;
}

.prefModal__note {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    color: #666;
}

.prefModal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
}

.prefModal__close::before,
.prefModal__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 1px;
    background: #666;
}

.prefModal__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.prefModal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.prefModal__back {
    position: absolute;
    top: 30px;
    left: 10px;
    padding: 4px 4px 4px 18px;
    border: none;
    background: none;
    color: #555;
    font-size: 16px;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.prefModal__back::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 6px;
    width: 8px;
    height: 8px;
    border-left: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

.prefModal__back:hover {
    opacity: 0.7;
}

/* 本文 */
.prefModal__body {
    flex: 1;
    overflow-y: auto;
    padding: 0 36px 24px;
    -webkit-overflow-scrolling: touch;
}

.prefModal__region {
    margin-top: 14px;
}

/* 地域・市町村グループ名（ラベルのみ） */
.prefModal__groupLabel {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: normal;
    color: #8ab6da;
}

.prefModal__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 主要都市（ラベルなし、中央揃え、下に区切り線） */
.prefModal__region--major {
    margin-top: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d6e5f2;
}

.prefModal__region--major .prefModal__list {
    justify-content: center;
}

/* 都道府県・市町村ボタン（チェックボックスは視覚的に隠し、四角枠で選択状態を表す） */
.prefModal__item {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.prefModal__item input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.prefModal__itemLabel {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 66px;
    height: 45px;
    padding: 0 2px;
    border: 1px solid #bbd7f3;
    background: #FFF;
    color: #3d8aba;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s, opacity 0.15s;
}

/* 市町村 */
.prefModal__step[data-step="city"] .prefModal__itemLabel {
    width: 120px;
    height: 44px;
}

.prefModal__item:hover .prefModal__itemLabel {
    opacity: 0.8;
}

.prefModal__item input[type="checkbox"]:checked + .prefModal__itemLabel {
    border-color: #bbd7f3;
    background: #5ac8be;
    color: #FFF;
}

.prefModal__item input[type="checkbox"]:focus-visible + .prefModal__itemLabel {
    outline: 2px solid #3d8aba;
    outline-offset: 2px;
}

/* フッター（件数／全国・すべて／決定／選択解除） */
.prefModal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 40px;
    background: #EDF2F7;
}

.prefModal__count {
    flex-shrink: 0;
    min-width: 56px;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #555;
}

.prefModal__count span {
    margin-right: 4px;
}

/* 全国・すべて（チェックボックスは視覚的に隠し、ボタン型で選択状態を表す） */
.prefModal__all {
    position: relative;
    flex-shrink: 0;
    margin: 0 0 0 auto;
    cursor: pointer;
}

.prefModal__all input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.prefModal__allLabel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 120px;
    height: 60px;
    padding: 0 6px;
    border: 1px solid #bbd7f3;
    border-radius: 6px;
    background-color: #FFF;
    color: #3d8aba;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-align: center;
    transition: background-color 0.15s, color 0.15s;
}

.prefModal__all input[type="checkbox"]:checked + .prefModal__allLabel {
    background-color: #5ac8be;
    color: #FFF;
}

.prefModal__all input[type="checkbox"]:focus-visible + .prefModal__allLabel {
    outline: 2px solid #3d8aba;
    outline-offset: 2px;
}

.prefModal__apply {
    position: relative;
    flex-shrink: 0;
    width: 240px;
    height: 60px;
    margin-right: auto;
    padding: 0 36px;
    border: none;
    border-radius: 6px;
    background-color: #004098;
    color: #FFF;
    font-size: 18px;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.prefModal__apply::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 26px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-top: 1px solid #FFF;
    border-right: 1px solid #FFF;
    transform: rotate(45deg);
}

.prefModal__apply:hover,
.prefModal__all:hover .prefModal__allLabel {
    opacity: 0.8;
}

.prefModal__apply:disabled,
.prefModal__apply:disabled:hover {
    background-color: #e6e6e6;
    color: #cccccc;
    opacity: 1;
    cursor: default;
}
.prefModal__apply:disabled::after {
    border-top: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
}

.prefModal__clear {
    flex-shrink: 0;
    min-width: 56px;
    padding: 0;
    border: none;
    background: none;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    text-align: right;
    cursor: pointer;
}

.prefModal__clear:hover {
    opacity: 0.7;
}

@media screen and (max-width: 768px) {
    .prefModal {
        padding: 10px;
    }

    .prefModal__header {
        padding: 16px 52px 6px;
    }

    .prefModal__title {
        font-size: 17px;
    }

    .prefModal__note {
        font-size: 13px;
    }

    .prefModal__close {
        top: 8px;
        right: 6px;
    }

    .prefModal__back {
        top: 20px;
        left: 4px;
        font-size: 14px;
    }

    .prefModal__body {
        padding: 0 16px 20px;
    }

    .prefModal__itemLabel {
        width: 59px;
        height: 42px;
        font-size: 14px;
    }

    .prefModal__step[data-step="city"] .prefModal__itemLabel {
        width: 100px;
        height: 42px;
    }

    .prefModal__footer {
        gap: 12px;
        padding: 10px 12px;
    }

    .prefModal__count,
    .prefModal__clear {
        min-width: 0;
        font-size: 13px;
    }

    .prefModal__allLabel {
        width: 76px;
        height: 52px;
        font-size: 13px;
    }

    .prefModal__apply {
        flex: 1;
        width: auto;
        height: 52px;
        margin-right: 0;
        padding: 0 24px 0 12px;
        font-size: 15px;
    }

    .prefModal__apply::after {
        right: 12px;
    }
}

@media print {
    .prefModal,
    .regionSelectBtn {
        display: none !important;
    }
}

@media print {
    .resultCollapse.is-collapsed .resultCollapse__body {
        /* 印刷時はマスク（グラデーション）を無効化する */
        -webkit-mask-image: none !important;
        mask-image: none !important;
        
        /* （任意）文字が途中で切れるのを防ぎたい場合は以下も追加 */
        /* max-height: none !important; */
        /* overflow: visible !important; */
    }
}
