.section-shop {
    margin-left: var(--space-1);
    margin-right: var(--space-1);
}

.shop-img {
    aspect-ratio: 4 / 3;
    width: 100%;
    overflow: hidden;
    margin-bottom: 32px;
}

.shop-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.shop-ryuzan h4 {
    margin-bottom: var(--space-1);
}

.shop-ryuzan-txt {
    margin: var(--space-1) 0;
}

.shopInformation {
    border-bottom: 1px solid rgba(33, 33, 33, 0.25);
}

.shopInformation .item {
    display: grid;
    grid-template-columns: 80px 1fr;
    /* 左:年 / 右:内容 */
    column-gap: var(--space-1);
    padding: var(--space-0) 0;
    border-top: 1px solid rgba(33, 33, 33, 0.25);
    line-height: 1.5;
}

.list {
    display: flex;
    flex-direction: column;
    /* 縦並びにする */
    gap: 16px;
    /* li 同士の間隔 */
}

.list li {
    position: relative;
    padding-left: 1em;
}

.list li::before {
    content: "・";
    /* 好きな点の文字を入れる */
    position: absolute;
    left: 0;
    color: #212121;
}

.shop-access-dececripton {
    background-color: #FFFFFF;
    margin-top: var(--space-2);
    padding: var(--space-1) var(--space-1);
}

.shop-access-dececripton p {
    margin-bottom: var(--space-0);
    text-align: center;
}

.colon {
    padding-right: 4px;
}

.shop-access-train {
    display: flex;
}

.train {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.shop-aaccess-train-wrapper {
    margin-top: var(--space-1);
}

.shop-access-train .colon {
    padding-right: 8px;
}

.shop-access-train .left {
    white-space: nowrap;
    /* ← 折り返し禁止（常に1行） */
    flex-shrink: 0;
    /* ← 左側が縮まないようにする */
}

.shop-access-train .right {
    /* ← 右側が残り幅で折り返される */
    min-width: 0;
    /* ← 折り返しを有効にするため必須 */
}

.shop-ryuzan-detail {
    text-align: center;
    margin-top: var(--space-2);
    width: 100%;
}

.shop-ryuzan-detail button {
    color: var(--bg-color);
    padding: 16px 0;
    width: 100%;
    background-color: var(--sub-color);
    justify-content: center;
    margin-bottom: 192px;
}

/* PC */
@media (min-width: 740px) {
    .section-shop {
        max-width: 1216px;
        padding: 0 32px;
        margin-left: auto;
        margin-right: auto;
    }

    .shop-wrapper {
        display: flex;
        flex-direction: row-reverse;
        gap: var(--space-2);
        justify-content: space-between;
        margin-bottom: var(--space-2);
    }

    .shop-ryuzan {
        width: 50%;
    }

    .shop-img-wrapper {
        width: 50%;
    }

    .shop-img {
        width: 100%;
        /* 最大幅 */
        aspect-ratio: 4 / 3;
        /* 横:縦 = 3:4 */
    }

    .shop-aaccess-train-wrapper {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 72px;
    }

    .train {
        justify-content: left;
    }

    .shop-access-way {
        display: flex;
        align-items: center;
        margin-bottom: 0px;
    }

    .shop-access-dececripton p {
        margin-bottom: 0;
        text-align: left;
        line-height: 1.5;
    }

    .shop-aaccess-train-wrapper .train {
        margin-left: var(--space-0);
    }

    .shop-ryuzan-detail {
        text-align: center;
    }

    .shop-ryuzan-detail button {
        padding: var(--space-0) var(--space-1);
        width: auto;
        margin: 0 auto;
        margin-bottom: 216px;
    }
}


.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.modal {
    position: relative;
    width: 90%;
    max-width: 1152px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 16px;
    box-sizing: border-box;
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
    opacity: 1;
}

.modal-title {
    margin: var(--space-0) 0;
}

.modal h2 {
    text-align: center;
    line-height: 1.5;
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.modal-content::-webkit-scrollbar {
    display: none;
    /* Chrome / Safari */
}

.close-btn-wrapper {
    width: 32px;
    height: 32px;
    background-color: var(--sub-color);
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: var(--bg-color);
    text-align: center;
}

.modal-wrapper {
    margin: var(--space-1) 0 var(--space-2);
}

.modal-img-wrapper {
    aspect-ratio: 4 / 3;
    width: 100%;
    overflow: hidden;
    margin-bottom: var(--space-0);
}

.modal-img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.modal-next {
    text-align: center;
}

/* PC */
@media (min-width: 740px) {

    .modal-wrapper {
        display: flex;
        gap: var(--space-2);
        justify-content: space-between;
        padding: 0 var(--space-2);
    }

    .modal-explanation {
        width: 50%;
        display: flex;
        align-items: center;
    }

    .modal-img-wrapper {
        width: 50%;
        aspect-ratio: 4 / 3;
        display: flex;
        align-items: center;
    }
}