/* =========================
   トップバナー
========================= */
.top-banner-slider-section {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    padding: 20px 0 10px;
}

.top-banner-swiper {
    width: 100%;
    overflow: visible;
}

.top-banner-slide {
    width: min(50vw, 980px);
}

.top-banner-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.top-banner-link img {
    display: block;
    width: 100%;
    aspect-ratio: 11 / 7;
    object-fit: cover;
    border-radius: 16px;
}

.top-banner-prev,
.top-banner-next {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.top-banner-prev { left: 20px; }
.top-banner-next { right: 20px; }

.top-banner-prev::before,
.top-banner-next::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 3px solid #333;
    border-right: 3px solid #333;
}

.top-banner-prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.top-banner-next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

/* =========================
   トップページフライヤー
========================= */
.flyer-section {
    width: 100%;
    padding: 16px 0 28px;
}

.flyer-swiper {
    width: 100%;
    overflow: hidden;
}

.flyer-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.flyer-swiper .swiper-slide,
.flyer-card {
    width: 260px;
    flex: 0 0 auto;
}

/* JSで静的表示にしたとき */
.flyer-section.is-static .flyer-swiper {
    overflow: visible;
}

.flyer-section.is-static .flyer-swiper .swiper-wrapper {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 16px;
    transform: none !important;
}

.flyer-section.is-static .flyer-scrollbar {
    display: none;
}

.flyer-visual-button {
    display: block;
    width: 100%;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.flyer-image-wrap {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.flyer-image-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.flyer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 1;
}

.flyer-overlay-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px;
    font-family: "tyranno";
    text-align: center;
    color: #fff;
    pointer-events: none;
}

.flyer-prefecture {
    display: block;
    font-size: clamp(1.3rem, 2vw, 2rem);
    line-height: 1.15;
    font-weight: 800;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.45),
        0 0 2px rgba(0, 0, 0, 0.5);
}

.flyer-region {
    display: block;
    font-size: clamp(0.9rem, 1.2vw, 1.15rem);
    line-height: 1.3;
    font-weight: 700;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.45),
        0 0 2px rgba(0, 0, 0, 0.5);
}

.flyer-scrollbar {
    position: relative;
    margin-top: 18px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
}

.flyer-scrollbar .swiper-scrollbar-drag {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    cursor: grab;
}

.flyer-modal-open {
    display: block;
    width: 100%;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.flyer-modal-open img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* モーダル */
.flyer-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.flyer-modal.is-active {
    display: block;
}

.flyer-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.flyer-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(92vw, 1200px);
    max-height: 90vh;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.flyer-modal-image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}

.flyer-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 767px) {
    .flyer-swiper .swiper-slide,
    .flyer-card {
        width: 42vw;
    }

    .flyer-section.is-static .flyer-swiper .swiper-wrapper {
        gap: 10px;
    }

    .flyer-prefecture {
        font-size: 1.5rem;
    }

    .flyer-region {
        font-size: 0.95rem;
    }
}