/* PC/SPどちらかのみを表示する。
   検索メニュー（#shop-search-menus-*）と同じ方針で、切り替えはJSのtoggleではなく
   CSSのメディアクエリのみで行う（初期描画時のチラつき防止、JSエラー時の
   フォールバックのため）。既定値はPCで、SP幅（767px以下）側で上書きする */
.shop-banner-container-pc {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.shop-banner-container-sp {
    display: none;
}

@-webkit-keyframes shinyshiny {
    0% {
        -webkit-transform: scale(0) rotate(45deg);
        opacity: 0;
    }

    44% {
        -webkit-transform: scale(0) rotate(45deg);
        opacity: 0;
    }

    89% {
        -webkit-transform: scale(0) rotate(45deg);
        opacity: 0.5;
    }

    90% {
        -webkit-transform: scale(4) rotate(45deg);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(50) rotate(45deg);
        opacity: 0;
    }
}

/* 漫画バナー（PC/SP共通。shop-banner-container-pc / -sp のどちらからも参照される） */
.manga-banner {
    margin-top: 0;
    display: block;
    position: relative;
    overflow: hidden;
    transition: 300ms;
    text-align: center;
}

/* タグと画像を縦に並べつつ左端を揃えるラッパー。
   画像側にあった幅の上限(max-width)と左右の余白(margin)をこちらに移し、
   ラッパーの実際の描画幅に画像を100%フィットさせることで、
   タグ・画像どちらも同じ左端から描画されるようにしている。
   inline-flex にすることで .manga-banner の text-align: center により
   ラッパーごと中央寄せされる。 */
.manga-banner-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;

    text-align: left;
}

.manga-banner::before {
    position: absolute;
    content: '';
    top: -180px;
    left: 0;
    width: 30px;
    height: 100%;
    transition: 300ms;
    animation: shinyshiny 4.5s ease-in-out infinite;
    z-index: 1;
}

.Manga-tag {
    position: relative;
    padding: 0 39px 0 10px;
    background: linear-gradient(90deg, rgba(247, 93, 139, 1), rgba(254, 220, 64, 1));
    font-size: 16px;
    color: white;
    line-height: 1.3;
    z-index: 0;
    width: fit-content;
    font-weight:normal;
}

.Manga-tag:before {
    position: absolute;
    content: '';
    right: -2px;
    top: -2px;
    border: none;
    border-right: solid 40px white;
    border-bottom: solid 79px transparent;
    z-index: -2
}

.manga-banner-inner a {
    display: block;
    width: 100%;
}

.manga-banner img {
    border: 1px solid #999;
    position: relative;
    width: 100%;
    display: block;
}

.ambassador_banner {
    width: 100%;
}

.active_banner {
    margin-top: 0;
}

/* 幅が767以下の時 */
@media not all and (min-width: 768px) {
    .shop-banner-container-pc {
        display: none;
    }

    .shop-banner-container-sp {
        display: block;
        width: 100%;
    }

    .active_banner {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .manga-banner-inner{
        margin: 0 10px;
        max-width: calc(100% - 22px);
    }

    .shop-banner-swiper .swiper {
        width: 100%;
        height: 100%;
    }

    .shop-banner-swiper .swiper-slide {
        text-align: center;
        font-size: 18px;
        display: flex;
        align-items: center;
    }

    .shop-banner-swiper .swiper-slide img {
        width: 100%;
        object-fit: contain;
    }

    .shop-swiper-tag {
        margin-left: unset !important;
    }

    .shop-swiper-img {
        max-width: unset !important;
        margin: unset !important;
    }

    .swiper-button-prev, .swiper-button-next {
        display: flex;
        color: rgba(255, 255, 255, 0.9) !important;
        background: none !important;
        width: 32px !important;
        height: 32px !important;
        transition: transform 0.2s ease !important;
    }

    .swiper-button-prev:after, .swiper-button-next:after {
        font-size: 24px !important;
        font-weight: bold !important;
        text-shadow: 0 0 3px rgba(0, 0, 0, 0.5) !important;
    }
}
