.ltl-japan-map { position: relative; }
.ltl-geo-search-svg { display:block; width:100%; height:auto; overflow:visible; }
.ltl-geo-search-prefecture { fill:#eef4ef; stroke:#496957; stroke-width:1.8; vector-effect:non-scaling-stroke; }
.ltl-geo-search-prefecture.is-selected { fill:#e6efe8; }
.ltl-geo-search-prefecture-label { fill:#607368; font-size:15px; font-weight:500; letter-spacing:.04em; pointer-events:none; }
.ltl-geo-search-prefecture-label.is-region-label { opacity:.72; fill:#536d5e; font-size:13px; font-weight:600; }
.ltl-geo-search-prefecture-label.is-neighbor-label { opacity:.22; font-weight:500; }
.ltl-geo-search-polygon { opacity:0; fill-opacity:0; stroke-opacity:0; stroke-width:1.5; stroke-linejoin:round; stroke-linecap:round; vector-effect:non-scaling-stroke; pointer-events:none; transition:opacity 180ms ease,fill-opacity 180ms ease,stroke-opacity 180ms ease; }
.ltl-geo-search-polygon.is-active { opacity:1; fill-opacity:.11; stroke-opacity:.48; }
.ltl-geo-search-marker { cursor:pointer; outline:none; }
.ltl-geo-search-marker-flag { transition:filter 160ms ease, transform 160ms ease; }
.ltl-geo-search-marker-flag:hover,.ltl-geo-search-marker-flag:focus { filter:drop-shadow(0 2px 2px rgba(30,55,43,.2)); }
.ltl-geo-search-markers--region .ltl-geo-search-marker-flag { filter:drop-shadow(0 2px 4px rgba(30,55,43,.16)); }
.ltl-geo-search-flag-pole { stroke-width:2.2; stroke-linecap:round; vector-effect:non-scaling-stroke; }
.ltl-geo-search-flag-cloth { stroke:#fff; stroke-width:1.2; stroke-linejoin:round; paint-order:stroke; vector-effect:non-scaling-stroke; }
.ltl-geo-search-marker text { display:none; }

.ltl-geo-search-tooltip { position:absolute; z-index:5; width:260px; max-width:min(260px,calc(100vw - 32px)); transform:translate(16px,calc(-100% - 12px)); overflow:hidden; padding:0; border:1px solid rgba(73,105,87,.16); border-radius:14px; background:rgba(255,255,255,.98); box-shadow:0 10px 30px rgba(30,55,43,.16); color:#24352c; pointer-events:none; }
.ltl-geo-search-tooltip[hidden] { display:none; }
.ltl-geo-search-tooltip.is-below { transform:translate(16px,18px); }
.ltl-geo-search-tooltip-image { width:100%; height:160px; overflow:hidden; background:#eef2ee; }
.ltl-geo-search-tooltip-image img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.ltl-geo-search-tooltip-body { padding:11px 13px 12px; }
.ltl-geo-search-tooltip-meta,.ltl-geo-search-tooltip-action { display:block; color:#738178; font-size:11px; line-height:1.45; }
.ltl-geo-search-tooltip strong { display:block; margin:2px 0 4px; font-size:16px; line-height:1.4; }
.ltl-geo-search-tooltip-tagline { display:block; margin:0 0 8px; color:#53635a; font-size:12px; line-height:1.55; }
.ltl-geo-search-tooltip-action { color:#496957; font-weight:600; }
.ltl-geo-search-status { position:absolute; left:50%; bottom:14px; transform:translateX(-50%); z-index:3; padding:7px 12px; border-radius:999px; background:rgba(255,255,255,.9); box-shadow:0 2px 10px rgba(30,55,43,.12); color:#496957; font-size:12px; white-space:nowrap; }

.ltl-map-selection > strong,.ltl-map-selection .ltl-border-list,.ltl-map-selection .ltl-area-candidates { display:none !important; }
.ltl-map-selection:has(.ltl-map-reset) { margin-top:10px; gap:0; }
.ltl-japan-map.is-geo-ready > svg:not(.ltl-geo-search-svg) { display:none !important; }
.ltl-geo-search-svg { opacity:1; transform:scale(1); transform-origin:center; transition:opacity 240ms ease,transform 420ms cubic-bezier(.22,.8,.28,1); }
.ltl-geo-search-svg.is-detail.is-entering { animation:ltl-geo-detail-enter 420ms cubic-bezier(.22,.8,.28,1); }
.ltl-geo-search-prefecture--selectable { cursor:pointer; transition:fill 180ms ease,stroke 180ms ease,filter 180ms ease; }
.ltl-geo-search-prefecture--selectable:hover,.ltl-geo-search-prefecture--selectable:focus-visible { fill:#d9e8dd; filter:drop-shadow(0 2px 3px rgba(30,55,43,.18)); outline:none; }
.ltl-geo-search-prefecture--nationwide-item.is-region-hover { fill:#9fbea8; stroke:#365b46; filter:drop-shadow(0 2px 4px rgba(30,55,43,.2)); }
[data-map-region].is-hovering { background:#385c48; border-color:#385c48; color:#fff; }

/* 地方選択後は主役の地方をはっきり、周辺県は地理の文脈だけ分かる程度まで弱める。 */
.ltl-geo-search-prefectures--region .is-region-core { fill:#fff; stroke:#365b46; }
.ltl-geo-search-prefectures--region .is-region-neighbor { fill:#fff; stroke:#d6dfd8; stroke-width:1.15; opacity:.62; }
.ltl-geo-search-prefecture.is-related { fill:#f4f7f4; }

/* 地方画面で旗をhoverした時の県境エリア範囲は、詳細画面と同じ見え方にする。 */
.ltl-geo-search-polygons--region .ltl-geo-search-polygon.is-active { opacity:1; fill-opacity:.14; stroke-opacity:.72; stroke-width:2; }

@keyframes ltl-geo-detail-enter { from { opacity:.45; transform:scale(.94); } to { opacity:1; transform:scale(1); } }
@media (max-width:767px) { .ltl-geo-search-prefecture-label{font-size:17px;} .ltl-geo-search-status{bottom:8px;max-width:calc(100% - 24px);white-space:normal;text-align:center;} }
@media (prefers-reduced-motion:reduce) { .ltl-geo-search-svg,.ltl-geo-search-svg.is-detail.is-entering { animation:none; transition:none; } }


/* 県名は県の面をhoverした時だけ表示 */
.ltl-geo-search-prefecture-label.is-region-label,
.ltl-geo-search-prefecture-label.is-region-label.is-neighbor-label {
    opacity: 0;
    transition: opacity 140ms ease;
}

.ltl-geo-search-prefecture-label.is-region-label.is-name-visible {
    opacity: 1;
    fill: #26302a;
    stroke: rgba(255, 255, 255, .96);
    stroke-width: 5px;
    stroke-linejoin: round;
    paint-order: stroke fill;
    font-size: 16px;
    font-weight: 700;
}

.ltl-geo-search-prefecture-label.is-region-label.is-neighbor-label.is-name-visible {
    opacity: .78;
    fill: #3f4b44;
}

@media (hover: hover) and (max-width: 800px) {
    .ltl-geo-search-prefecture-label.is-region-label.is-name-visible {
        font-size: 22px;
        stroke-width: 6px;
    }
}

@media (hover: none) {
    .ltl-geo-search-prefecture-label.is-region-label.is-name-visible {
        opacity: 0;
    }
}

.ltl-geo-search-map-only-panel {
    max-width: 560px;
    margin: 16px auto 0;
    padding: 18px 20px;
    border: 1px solid #dce4de;
    border-radius: 14px;
    background: rgba(255, 255, 255, .88);
    color: #385c48;
}
.ltl-geo-search-map-only-panel h3 {
    margin: 0 0 4px;
    color: #385c48;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
}
.ltl-geo-search-map-only-intro {
    margin: 0 0 14px;
    color: #6e7b72;
    font-size: 13px;
    line-height: 1.6;
}
.ltl-geo-search-map-only-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.ltl-geo-search-map-only-card {
    display: grid;
    grid-template-columns: minmax(88px, 38%) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e2e8e3;
    border-radius: 10px;
    background: #fbfcfa;
}
.ltl-geo-search-map-only-card h4 {
    grid-column: 2;
    margin: 0;
    color: #385c48;
    font-size: 15px;
}
.ltl-geo-search-map-only-card p {
    grid-column: 2;
    grid-row: 2;
    margin: -8px 0 0;
    color: #7a857e;
    font-size: 12px;
}
.ltl-geo-search-map-only-mini {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: block;
    width: 100%;
    height: 60px;
    overflow: visible;
}
.ltl-geo-search-map-only-shape {
    fill: #e7ece8;
    stroke: #8fa99a;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}
@media (max-width: 767px) {
    .ltl-geo-search-map-only-panel { padding: 15px; }
    .ltl-geo-search-map-only-grid { grid-template-columns: 1fr; }
    .ltl-geo-search-map-only-card { grid-template-columns: 94px minmax(0, 1fr); }
}


/* Mobile homepage: keep region selection and its guidance clear of the map. */
@media (max-width: 767px) {
    .ltl-geo-search-status {
        position: relative;
        left: auto;
        bottom: auto;
        width: fit-content;
        max-width: calc(100% - 20px);
        margin: 8px auto 0;
        padding: 5px 10px;
        transform: none;
        box-shadow: none;
        background: #fff;
        font-size: 11px;
        line-height: 1.45;
    }

    .ltl-geo-search-map-only-panel {
        margin-top: 10px;
        padding: 12px 14px;
        border-color: rgba(220, 228, 222, .8);
        border-radius: 10px;
        background: rgba(255, 255, 255, .55);
    }

    .ltl-geo-search-map-only-panel h3 {
        margin-bottom: 3px;
        font-size: 12px;
        letter-spacing: .12em;
        line-height: 1.35;
    }

    .ltl-geo-search-map-only-intro {
        margin-bottom: 9px;
        font-size: 12px;
        line-height: 1.5;
    }

    .ltl-geo-search-map-only-grid {
        gap: 8px;
    }

    .ltl-geo-search-map-only-card {
        padding: 8px 10px;
    }
}


/* Show the selected region's matching border areas below the map on mobile. */
.ltl-geo-search-region-areas {
    display: none;
}

@media (max-width: 767px) {
    .ltl-map-selection .ltl-geo-search-region-areas {
        display: block;
        width: 100%;
        margin: 14px 0 4px;
        text-align: left;
    }

    .ltl-geo-search-region-areas h3 {
        margin: 0 0 8px;
        color: #385c48;
        font: inherit;
        font-size: 14px;
        font-weight: 700;
    }

    .ltl-geo-search-region-areas ul {
        display: grid;
        gap: 7px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .ltl-geo-search-region-areas a {
        display: flex;
        min-height: 44px;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 9px 12px;
        border: 1px solid #dce4de;
        border-radius: 8px;
        background: rgba(255, 255, 255, .82);
        color: #385c48;
        text-decoration: none;
    }

    .ltl-geo-search-region-areas a::after {
        flex: 0 0 auto;
        color: #8a9b90;
        content: "›";
        font-size: 20px;
        line-height: 1;
    }

    .ltl-geo-search-region-areas strong {
        font-size: 14px;
        font-weight: 600;
    }

    .ltl-geo-search-region-areas span {
        margin-left: auto;
        color: #78857d;
        font-size: 11px;
        text-align: right;
    }

    .ltl-geo-search-region-areas a:focus-visible {
        outline: 2px solid #385c48;
        outline-offset: 2px;
    }
}


/* Make the future-area notice a compact footnote on phones. */
@media (max-width: 767px) {
    .ltl-geo-search-map-only-panel {
        max-width: 420px;
        margin-top: 6px;
        padding: 9px 11px;
        border-radius: 9px;
    }

    .ltl-geo-search-map-only-panel h3 {
        margin-bottom: 2px;
        font-size: 11px;
        letter-spacing: .1em;
    }

    .ltl-geo-search-map-only-intro {
        margin-bottom: 6px;
        font-size: 11px;
        line-height: 1.4;
    }

    .ltl-geo-search-map-only-grid {
        gap: 5px;
    }

    .ltl-geo-search-map-only-card {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 2px 8px;
        min-height: 54px;
        padding: 5px 8px;
        border-radius: 8px;
    }

    .ltl-geo-search-map-only-mini {
        height: 42px;
    }

    .ltl-geo-search-map-only-card h4 {
        align-self: end;
        font-size: 13px;
        line-height: 1.35;
    }

    .ltl-geo-search-map-only-card p {
        align-self: start;
        margin: 0;
        font-size: 10px;
        line-height: 1.3;
    }
}


/* Keep Hokkaido and Okinawa side by side in the compact mobile NEXT panel. */
@media (max-width: 767px) {
    .ltl-geo-search-map-only-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ltl-geo-search-map-only-card {
        grid-template-columns: 54px minmax(0, 1fr);
        column-gap: 6px;
        padding-right: 6px;
        padding-left: 6px;
    }

    .ltl-geo-search-map-only-mini {
        height: 38px;
    }

    .ltl-geo-search-map-only-card h4 {
        font-size: 12px;
        white-space: nowrap;
    }

    .ltl-geo-search-map-only-card p {
        font-size: 9px;
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    .ltl-geo-search-map-only-card {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 2px;
        text-align: center;
    }

    .ltl-geo-search-map-only-mini {
        grid-column: 1;
        grid-row: 1;
        height: 34px;
    }

    .ltl-geo-search-map-only-card h4,
    .ltl-geo-search-map-only-card p {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Keep the complete Okinawa view within the available screen height. */
.ltl-japan-map.is-okinawa-view .ltl-geo-search-svg,
.ltl-japan-map.is-island-focus-view .ltl-geo-search-svg {
    height: min(70vw, calc(100dvh - 180px));
    min-height: 0;
    max-height: 700px;
}

@media (max-width: 767px), (hover: none) {
    .ltl-geo-search-tooltip { display: none; }
}
