.tria-atm-wrapper {
    margin: 2em 0;
    font-family: inherit;
}

/* --- トップ --- */
.tria-atm-top-section {
    margin-bottom: 30px;
}

.tria-atm-hero-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.tria-atm-hero-text {
    font-size: 1.7em;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
    letter-spacing: 0.5px;
    text-align: center;
}

.tria-atm-cta-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
}

.tria-atm-cta-title {
    font-size: 1.25em;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px;
}

.tria-atm-cta-desc {
    font-size: 0.95em;
    color: #475569;
    font-weight: 600;
    margin: 0 0 18px;
}

.tria-atm-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff !important;
    padding: 13px 30px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(37,99,235,0.3);
    transition: all 0.3s ease;
}

.tria-atm-cta-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* --- レイアウト --- */
.tria-atm-layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.tria-atm-map-panel {
    position: static;
    width: 100%;
}

.tria-atm-map {
    width: 100%;
    height: 620px;
}

.tria-atm-filters {
    width: 100%;
    margin-bottom: 0;
}

.tria-atm-list-section {
    width: 100%;
}


.tria-atm-map-panel {
    position: static;
    width: 100%;
}


.tria-atm-map {
    width: 100%;
    height: 680px;
    min-height: 420px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
    background: #f1f5f9;
}


.tria-atm-filters {
    margin-bottom: 20px;
}

.tria-atm-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 680px;
    overflow-y: auto;
    padding-right: 4px;
}

/* --- フィルター --- */
.filter-group {
    background: #ffffff;
    border: 1px solid #eef2f5;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
}

.filter-label {
    font-weight: 800;
    color: #1e293b;
    padding-right: 18px;
    margin-right: 18px;
    border-right: 2px solid #e2e8f0;
    flex-shrink: 0;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.filter-btn-scroll-container {
    display: flex;
    gap: 8px;
    width: 100%;
    overflow-x: hidden;
}

.filter-btn {
    flex: 1 1 calc((100% - 16px) / 3);
    min-width: 0;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 10px 2px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 700;
    color: #475569;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #e2e8f0;
}

.filter-btn.active {
    background: #1e293b;
    color: #fff;
    border-color: #1e293b;
    box-shadow: 0 3px 8px rgba(30,41,59,0.3);
}

.filter-search-wrapper {
    width: 100%;
}

.filter-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    font-size: 0.95em;
    font-weight: 700;
    color: #1e293b;
    transition: all 0.3s ease;
    -webkit-appearance: none;
}

.filter-search-input:focus {
    outline: none;
    border-color: #1e293b;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(30,41,59,0.1);
}

/* --- 見出し --- */
.tria-list-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4em;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    letter-spacing: 0.5px;
}

/* --- ATMカード --- */
.tria-atm-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ebebeb;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tria-atm-card:hover,
.tria-atm-card.is-active {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.tria-atm-card.status-usable {
    border-left: 5px solid #28a745;
}

.tria-atm-card.status-unusable {
    border-left: 5px solid #dc3545;
}

.tria-atm-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #1e293b;
    flex-shrink: 0;
}

.tria-atm-info {
    min-width: 0;
    flex: 1;
}

.tria-atm-title {
    margin: 0 0 7px;
    font-size: 1.05em;
    font-weight: 800;
    color: #222;
    line-height: 1.35;
}

.tria-atm-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 9px;
}

.tria-atm-status-badge {
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.78em;
    font-weight: 800;
    line-height: 1.2;
}

.tria-atm-status-badge.status-usable {
    background: #dcfce7;
    color: #166534;
}

.tria-atm-status-badge.status-unusable {
    background: #fee2e2;
    color: #991b1b;
}

.tria-atm-meta,
.tria-atm-note {
    margin: 0 0 6px;
    font-size: 0.88em;
    color: #475569;
    line-height: 1.55;
}

.tria-atm-note {
    background: #f9fbfd;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #eef2f5;
}

/* --- 地図ピン --- */
.tria-atm-pin {
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 8px;
    transform: rotate(-45deg);
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tria-atm-pin span {
    transform: rotate(45deg);
    color: #fff;
    font-weight: 900;
    font-size: 13px;
}

.tria-atm-pin.status-usable {
    background: #28a745;
}

.tria-atm-pin.status-unusable {
    background: #dc3545;
}

/* --- 現在地ピン --- */
.tria-current-location-pin {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2563eb;
    border: 3px solid #fff;
    box-shadow: 0 0 0 8px rgba(37,99,235,0.18), 0 4px 12px rgba(0,0,0,0.25);
}

.tria-current-location-pin span {
    display: block;
    width: 8px;
    height: 8px;
    margin: 6px auto 0;
    border-radius: 50%;
    background: #fff;
}

.tria-atm-empty {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    color: #475569;
    font-weight: 700;
    text-align: center;
}

/* --- レスポンシブ --- */
@media (max-width: 900px) {
    .tria-atm-layout {
        grid-template-columns: 1fr;
    }

    .tria-atm-map-panel {
        position: static;
    }

    .tria-atm-map {
        height: 420px;
    }

    .tria-atm-list {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 600px) {
    .tria-atm-hero-text {
        font-size: 1.35em;
    }

    .tria-atm-map {
        height: 360px;
        border-radius: 12px;
    }

    .tria-atm-card {
        padding: 14px;
    }

    .tria-atm-icon {
        width: 48px;
        height: 48px;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .filter-label {
        padding-right: 0;
        margin-right: 0;
        border-right: none;
        padding-bottom: 10px;
        margin-bottom: 12px;
        border-bottom: 2px dotted #cbd5e1;
        width: 100%;
    }

    .filter-search-input {
        font-size: 16px;
    }

    .filter-btn {
        font-size: 0.8em;
        padding: 12px 2px;
    }
}

.tria-atm-map-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #ffffff;
    border: 4px solid #94a3b8;
    box-shadow: 0 6px 18px rgba(15,23,42,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tria-atm-map-icon.status-usable {
    border-color: #28a745;
}

.tria-atm-map-icon.status-unusable {
    border-color: #dc3545;
}

.tria-atm-map-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tria-atm-map-icon span {
    font-size: 11px;
    font-weight: 900;
    color: #1e293b;
}

.tria-current-location-pin {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2563eb;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 8px rgba(37,99,235,0.18), 0 4px 12px rgba(0,0,0,0.25);
}

.tria-current-location-pin span {
    display: block;
    width: 8px;
    height: 8px;
    margin: 5px auto 0;
    border-radius: 50%;
    background: #ffffff;
}

.tria-atm-distance {
    display: inline-flex;
    align-items: center;
    margin: 0 0 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.82em;
    font-weight: 800;
    line-height: 1.3;
}

.tria-atm-more-btn {
    width: 100%;
    border: none;
    background: #1e293b;
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30,41,59,0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.tria-atm-more-btn:hover {
    background: #334155;
    transform: translateY(-1px);
}

.tria-atm-help-fab {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 9990;
    border: none;
    background: #1e293b;
    color: #ffffff;
    padding: 13px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15,23,42,0.24);
    transition: transform 0.2s ease, background 0.2s ease;
}

.tria-atm-help-fab:hover {
    background: #334155;
    transform: translateY(-2px);
}

.tria-atm-help-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    pointer-events: none;
}

.tria-atm-help-modal.is-active {
    visibility: visible;
    pointer-events: auto;
}

.tria-atm-help-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tria-atm-help-modal.is-active .tria-atm-help-overlay {
    opacity: 1;
}

.tria-atm-help-panel {
    position: relative;
    width: min(520px, 100%);
    max-height: 82vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(15,23,42,0.28);
    padding: 24px;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tria-atm-help-modal.is-active .tria-atm-help-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tria-atm-help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.tria-atm-help-title {
    font-size: 1.1em;
    font-weight: 900;
    color: #1e293b;
}

.tria-atm-help-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.tria-atm-help-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.tria-atm-help-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tria-atm-help-item {
    padding: 14px 15px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f5;
}

.tria-atm-help-item strong {
    display: block;
    color: #1e293b;
    font-size: 0.98em;
    margin-bottom: 6px;
}

.tria-atm-help-item p {
    margin: 0;
    color: #475569;
    font-size: 0.9em;
    line-height: 1.65;
}

@media (max-width: 600px) {
    .tria-atm-help-fab {
        right: 18px;
        bottom: 92px;
        padding: 12px 16px;
        font-size: 13px;
    }

    .tria-atm-help-modal {
        align-items: flex-end;
        padding: 0;
    }

    .tria-atm-help-panel {
        width: 100%;
        max-height: 82vh;
        border-radius: 20px 20px 0 0;
        padding: 20px 18px 28px;
        transform: translateY(100%);
    }

    .tria-atm-help-modal.is-active .tria-atm-help-panel {
        transform: translateY(0);
    }
}

.tria-atm-lang-switcher {
    position: fixed;
    left: 18px;
    bottom: 24px;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 22px rgba(15,23,42,0.18);
}

.tria-atm-lang-switcher a {
    min-width: 38px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none !important;
    line-height: 1;
}

.tria-atm-lang-switcher a:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.tria-atm-lang-switcher a.is-active {
    background: #1e293b;
    color: #ffffff;
}

@media (max-width: 600px) {
    .tria-atm-lang-switcher {
        left: 14px;
        bottom: 18px;
    }

    .tria-atm-lang-switcher a {
        min-width: 34px;
        height: 32px;
        padding: 0 8px;
        font-size: 11px;
    }
}
