/* Reset and base styles for regional store locator */
.rsl-store-locator * {
    box-sizing: border-box;
}

.rsl-store-locator {
    font-family: 'Noto Sans CJK JP', -apple-system, Roboto, Helvetica, sans-serif;
    line-height: 1.6;
    color: rgba(51, 51, 51, 1);
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 32px 0 32px 0;
}

/* Tab navigation */
.rsl-region-tabs {
    margin-bottom: 20px;
}

.rsl-tab-navigation {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.rsl-tab-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
    color: rgba(51, 51, 51, 1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    user-select: none;
}

.rsl-tab-button:hover {
    background-color: #e0e0e0;
}

.rsl-tab-button.rsl-active {
    background-color: rgba(255, 76, 0, 1);
    color: white;
    border-color: rgba(255, 76, 0, 1);
}

/* Region cards grid */
.rsl-region-cards {
    display: flex;
    max-width: 700px;
    align-items: flex-start;
    color: rgba(51, 51, 51, 1);
    white-space: nowrap;
    text-align: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: calc((100% - 31% * 3) / 2);
    margin: 0 auto 20px;
    font: 700 24px 'Noto Sans CJK JP', -apple-system, Roboto, Helvetica, sans-serif;
}

.rsl-region-card {
    justify-content: space-between;
    align-content: space-between;
    border-radius: 6.23px;
    box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: row;
    width: 31%;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-color: var(--text-white, #fff);
    margin: 4px 0;
    user-select: none;
    text-decoration: none;
    color: rgba(255, 76, 0, 1);
}

.rsl-region-card:hover {
    background-color: #f5f5f5;
}

.rsl-region-card:active {
    background-color: #e8e8e8;
}

.rsl-region-title {
    align-self: stretch;
    margin: auto 0;
    font-size: 24px;
    font-weight: 700;
}

.rsl-region-arrow {
    aspect-ratio: 0.82;
    object-fit: contain;
    object-position: center;
    width: 9px;
    align-self: stretch;
    flex-shrink: 0;
    overflow: hidden;
    margin: auto 0;
}

.rsl-region-cards .rsl-region-card:link,
.rsl-region-cards .rsl-region-card:visited,
.rsl-region-cards .rsl-region-card:hover,
.rsl-region-cards .rsl-region-card:active {
    color: rgba(255, 76, 0, 1);
    text-decoration: none;
}

/* Tab content */
.rsl-tab-content {
    display: none;
}

.rsl-tab-content.rsl-active {
    display: block;
}

/* Store list container */
.rsl-store-list-container {
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    overflow: hidden;
    font-family: 'Noto Sans CJK JP', -apple-system, Roboto, Helvetica, sans-serif;
    white-space: nowrap;
    margin: 20px auto 0;
    padding: 24px;
}

.rsl-store-list-header {
    margin-bottom: 24px;
}

.rsl-store-list-title {
    color: rgba(51, 51, 51, 1);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.rsl-store-grid {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Accordion container */
.rsl-accordion-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    justify-content: start;
}

/* Prefecture sections */
.rsl-prefecture-section {
    margin-bottom: 8px;
}

.rsl-prefecture-header {
    background-color: rgba(239, 239, 239, 1);
    display: flex;
    width: 100%;
    max-width: 650px;
    align-items: center;
    gap: 40px 100px;
    overflow: hidden;
    font-size: 18px;
    color: rgba(255, 76, 0, 1);
    font-weight: 700;
    justify-content: space-between;
    flex-wrap: wrap;
    cursor: pointer;
    padding: 8px 16px;
    border: none;
    font-family: inherit;
    margin: 8px auto 0;
    transition: background-color 0.2s ease;
    user-select: none;
}

.rsl-prefecture-header:first-child {
    margin-top: 0;
}

.rsl-prefecture-header:hover {
    background-color: rgba(230, 230, 230, 1);
}

.rsl-prefecture-name {
    align-self: stretch;
    margin: auto 0;
    font-size: 18px;
    font-weight: 700;
    color: inherit;
}

.rsl-toggle-icon {
    align-self: stretch;
    position: relative;
    display: flex;
    width: 18px;
    flex-shrink: 0;
    height: 18px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: rgba(255, 76, 0, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: auto 0;
}

.rsl-prefecture-section.rsl-expanded .rsl-toggle-icon {
    transform: rotate(45deg);
}

/* Store grid */
.rsl-store-grid {
    display: flex;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    font-size: 16px;
    color: rgba(38, 38, 38, 1);
    font-weight: 400;
    line-height: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

.rsl-prefecture-section.rsl-expanded .rsl-store-grid {
    max-height: 100%;
    opacity: 1;
}

.rsl-store-item {
    border-color: rgba(233, 233, 233, 1);
    border-bottom: 1px solid rgba(233, 233, 233, 1);
    display: flex;
    min-width: 240px;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    padding: 16px 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
}

.rsl-store-item:hover {
    background-color: rgba(248, 248, 248, 1);
}

.rsl-store-item:active {
    background-color: rgba(240, 240, 240, 1);
}

.rsl-store-item:nth-child(odd):last-child,
.rsl-store-item:nth-child(even):last-child {
    border-bottom: 0;
}

.rsl-store-name {
    align-self: stretch;
    margin: auto 0;
}

.rsl-store-icon {
    aspect-ratio: 0.92;
    object-fit: contain;
    object-position: center;
    width: 11px;
    align-self: stretch;
    flex-shrink: 0;
    overflow: hidden;
    margin: auto 0;
}

.rsl-store-icon[src*="ddfa17b0804784dbf2d8bd1e1fcfef90c3ec38b7"] {
    aspect-ratio: 1;
    width: 12px;
}

/* Placeholder text for other tabs */
.rsl-placeholder-text {
    text-align: center;
    color: rgba(102, 102, 102, 1);
    font-size: 16px;
    padding: 40px 20px;
}

/* Mobile responsive styles */
@media (max-width: 991px) {
    .rsl-region-cards {
        white-space: initial;
        justify-content: flex-start;
        gap: calc((100% - 31% * 3) / 2);
    }

    .rsl-region-card {
        white-space: initial;
    }

    .rsl-store-list-container {
        white-space: initial;
        padding: 20px;
    }

    .rsl-store-list-title {
        max-width: 100%;
    }

    .rsl-accordion-container {
        max-width: 100%;
        white-space: initial;
    }

    .rsl-prefecture-header {
        max-width: 100%;
        white-space: initial;
    }

    .rsl-store-item {
        white-space: initial;
    }
}

@media (max-width: 768px) {
    .rsl-store-grid {
        flex-direction: column;
        max-width: 100%;
        white-space: initial;
    }

    .rsl-tab-navigation {
        flex-direction: column;
        align-items: center;
    }

    .rsl-tab-button {
        width: 100%;
        max-width: 300px;
        font-size: 14px;
        padding: 8px 16px;
    }

    .rsl-region-cards {
        justify-content: space-between;
        align-items: center;

    }

    .rsl-region-card {
        width: calc((100% - 4%) / 2);
        padding: 8px;
    }

    .rsl-region-title {
        font-size: 16px;
    }

    .rsl-store-list-container {
        margin: 16px auto 0;
        padding: 16px;
    }

    .rsl-store-list-title {
        font-size: 20px;
    }

    .rsl-prefecture-header {
        font-size: 16px;
        padding: 6px 12px;
    }

    .rsl-prefecture-name {
        font-size: 16px;
    }

    .rsl-store-item {
        padding: 12px 4px;
        min-width: auto;
    }

    .rsl-store-name {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .rsl-region-cards {
        justify-content: space-between;
        align-items: center;
    }

    .rsl-region-title {
        font-size: 16px;
    }
}

/* border-bottom */
@media (min-width: 769px) {
    .shoplist>li:last-of-type>a {
        border-bottom: none !important;
    }

    .shoplist>li:nth-last-of-type(2):nth-of-type(odd) {
        border-bottom: 0 !important;
    }

}

/* overwrite */
.shoplist li a,
.shoplist p a {
    border-bottom: none;
    padding: 0 15% 0 0;
    line-height: 1.5;
    white-space: normal;
}

.shoplist li a::after,
.shoplist p a::after {
    right: 0;
}

.rsl-store-locator .rsl-prefecture-section .shoplist>.rsl-store-item:last-child a {
    border-bottom: none !important
}


/* toggle */
.rsl-prefecture-header .rsl-toggle-icon {
    display: inline-block;
    position: relative;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    vertical-align: middle;
    transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}

.rsl-prefecture-header .rsl-toggle-icon::before,
.rsl-prefecture-header .rsl-toggle-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transform: translate(-50%, -50%);
    transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}

.rsl-prefecture-header .rsl-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.rsl-prefecture-section.rsl-expanded .rsl-toggle-icon {
    transform: rotate(180deg);
}

.rsl-prefecture-section.rsl-expanded .rsl-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

/* アコーディオン アニメ */
.rsl-store-grid {
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1), opacity .4s cubic-bezier(.4, 0, .2, 1);
}