@charset "utf-8";

body,
.mainContents {
    height: max-content;
}

.mainContents {
    width: min(76%, 1100px);
    padding-bottom: 72px;
    font-family: "Sen", "Kiwi Maru", sans-serif;
    color: #333333;
}

/* グッズ → */
.shopItems {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 24px;
    padding: 12px clamp(20px, 4vw, 56px) 44px;
    align-items: stretch;
}

.item {
    overflow: hidden;
    cursor: pointer;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 32px rgba(4, 35, 91, .2);
    color: #333333;
    transition: transform .25s ease, box-shadow .25s ease;
}

.item:hover,
.item:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(4, 35, 91, .28);
}

.item:focus-visible {
    outline: 3px solid #ffe084;
    outline-offset: 3px;
}

.itemInner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px 12px 18px;
}

.itemPicture {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #eaf3f8;
}

.itemPicture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    flex: 0 0 100%;
    min-width: 0;
    height: 100%;
}

.itemTitle {
    min-height: 3.1em;
    padding-top: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.itemPrice {
    margin-top: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333333;
}

.itemSeller {
    margin-top: auto;
    padding-top: 12px;
    font-size: .86rem;
    line-height: 1.5;
    color: #333333;
}

.suzuriText {
    font-size: .8rem;
    color: #333333;
}

.background {
    width: 30%;
    position: fixed;
    top: 0;
    right: 0;
}

/* モーダル → */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    padding: 20px;
    background: rgba(5, 20, 42, .7);
    z-index: 120;
}

.modalContent {
    position: relative;
    width: min(100%, 820px);
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: clamp(20px, 4vw, 40px);
    overflow-y: auto;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    color: #333333;
    font-family: "Sen", "Kiwi Maru", sans-serif;
}

.modalContent h2 {
    padding-right: 42px;
    font-size: clamp(1.25rem, 2.5vw, 1.7rem);
    font-weight: 700;
    line-height: 1.5;
}

.hidden {
    display: none;
}

.close {
    cursor: pointer;
    position: absolute;
    top: 14px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eaf3f8;
    font-size: 28px;
    line-height: 1;
}

.modalBody {
    margin-top: 22px;
}

.modalInner {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.modalInner img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
    background: #f0f5f7;
}

.modalBtn {
    display: block;
    margin: 10px 0;
    border: 1px solid #18345b;
    border-radius: 10px;
    background: #18345b;
    color: #fff;
    text-align: center;
    font-weight: 700;
}

.modalBtn a {
    display: block;
    padding: 12px 18px;
    color: inherit;
}

.modalBtn:hover {
    color: #333;
    background-color: #fff;
}

.modalBtnMercari {
    background-color: #E72121;
    border-color: #E72121;
}
.modalBtnBooth {
    background-color: #FC4D50;
    border-color: #FC4D50;
}

.modalBtnMercari:hover {
    background-color: #fff;
    color: #E72121;
}
.modalBtnBooth:hover {
    background-color: #fff;
    color: #FC4D50;
}

.modalText {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #dce7ed;
    line-height: 1.75;
}

.modalText p + p {
    margin-top: 8px;
}


/* モーダル ← */

/* グッズ ← */

/* pagetop → */
.topBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    font-size: 16px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.topBtn::before {
    content: "▶";
    display: inline-block;
    transform: rotate(-90deg);
}

.topBtn.active {
    opacity: 1;
    transform: translateY(0px);
    pointer-events: auto;
}

/* pagetop ← */
@media (max-width: 1024px) {
    .mainContents {
        width: 100%;
    }

    .background {
        width: 100%;
        height: 100%;
        pointer-events: none;
    }
}

@media (max-width: 760px) {
    .siteTitle {
        height: 180px;
    }

    .shopItems {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 0 12px 40px;
    }

    .itemInner {
        padding: 8px 8px 14px;
    }

    .itemTitle {
        font-size: .9rem;
    }

    .itemPrice {
        font-size: 1.05rem;
    }

    .modalInner {
        grid-template-columns: 1fr;
    }

    .modalInner img {
        max-width: 300px;
        margin: auto;
    }
}

@media (max-width: 420px) {
    .shopItems {
        grid-template-columns: 1fr;
        padding-inline: 20px;
    }

    .modal {
        padding: 10px;
    }

    .modalContent {
        max-height: calc(100dvh - 20px);
    }
}


.soldOut {
    color: #b91c1c;
    font-weight: 700;
}
