
/* 全体 */

#sanrio_back{
        font-family: 'Kiwi Maru', sans-serif;
}
.sanrio-page .header-shop {
    color: #a45f7d;
    text-shadow: none;
}

.sanrio-page .menu {
    z-index: 110;
}
#sanrio_back {
    background: url(images/sanrio/sozai_haikei_sanrio.png) repeat-x;
    padding: 0;
    margin: 0;
}

/* ヒーロー画像
   positionを使わず、画像を通常の流れで表示 */
.sanrio-hero {
    width: 100%;
    padding: 0;
    background: #f6dce7;
    overflow: hidden;
    margin: 0 auto;
    display: block;
    max-width: 1400px;
}

.sanrio-hero > img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    filter: none;
}

/* 元HTML内のコピー・飾りは残す。
   現在のポスター表示では画像の上に重ねず、通常配置にする */
.sanrio-hero-copy {
    display: none;
}

.hero-spark {
    display: none;
}

/* INTRO */
.sanrio-intro {
    display: none;
}

/* 商品エリア */
.sanrio-products {
    position: relative;
    padding: 28px 22px 70px;
    background: transparent;
}

.sanrio-products:before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .55) .8px, transparent .8px);
    background-size: 13px 13px;
    opacity: .3;
    pointer-events: none;
}

.section-heading {
    display: none;
}

/* 商品一覧 */
.sanrio-list {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

/* 商品1件 */
.sanrio-product,
.sanrio-product.reverse {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 4vw, 58px);
    width: 100%;
    min-width: 0;
    min-height: 205px;
    padding: 18px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    position: relative;
    transition: none;
}

.sanrio-product:before {
    display: none;
}

.sanrio-product:hover {
    transform: none;
    box-shadow: none;
}

/* 左右交互 */
.sanrio-product.reverse .product-photo {
    order: 2;
}

.sanrio-product.reverse .product-copy {
    order: 1;
}

/* 商品画像 */
.product-photo,
.reverse .product-photo {
    width: 100%;
    max-width: 440px;
    min-width: 0;
    margin: auto;
    padding: 0;
    background: transparent;
    transform: none;
    aspect-ratio: 1.55 / 1;
    overflow: hidden;
}



.photo-label {
    display: none;
}

/* 商品説明 */
.product-copy {
    min-width: 0;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-no {
    display: none;
}

.product-copy h3 {
    font-size: clamp(20px, 2.4vw, 29px);
    line-height: 1.45;
    color: #dc75a7;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}

.product-copy p {
        font-size: 14px;
        line-height: 1.75;
    letter-spacing: .015em;
    color: #51464a;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

.price {
    align-self: flex-end;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: clamp(18px, 2vw, 24px);
    color: #51464a;
    border: 0;
    padding: 0;
    white-space: nowrap;
}

.price small {
    font-size: 10px;
    color: #51464a;
}

/* 注記 */
.sanrio-note {
    position: relative;
    text-align: center;
    font-size: 10px;
    color: #806c76;
    margin: 22px auto 0;
}

/* 下部エリアが存在する場合の元デザイン */
.sanrio-bottom {
    padding: 48px 20px 58px;
    background: rgba(255, 255, 255, .16);
    text-align: center;
}

.sanrio-bottom > span {
    font-size: 28px;
}

.sanrio-bottom h2 {
    font-size: 30px;
}

.sanrio-footer {
    background: #edcbd9;
}

/* HTMLで使用しているフッター */
.sanrio-page .footer {
    padding: 24px 15px;
    color: #a17b89;
    font: 11px/1.8 Georgia, serif;
    letter-spacing: .1em;
    text-align: center;
}

/* タブレット */
@media (max-width: 900px) {
    .sanrio-products {
        padding-left: 18px;
        padding-right: 18px;
    }

    .sanrio-product,
    .sanrio-product.reverse {
        gap: clamp(14px, 3vw, 28px);
        padding-left: 8px;
        padding-right: 8px;
        min-height: 0;
    }

    .product-copy h3 {
        font-size: clamp(17px, 2.6vw, 24px);
    }

    .product-copy p {
        font-size: clamp(11px, 1.45vw, 13px);
    }
}

/* スマートフォン */
@media (max-width: 700px) {
    .sanrio-hero {
        width: 100%;
    }

    .sanrio-hero > img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }

    .sanrio-products {
        padding: 18px 14px 45px;
    }

    .sanrio-list {
        gap: 8px;
    }

    /* 元の左右2列レイアウトを維持 */
    .sanrio-product,
    .sanrio-product.reverse {
        padding: 0px 10px 0px;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
    }

    .sanrio-product.reverse .product-photo {
        order: 2;
    }

    .sanrio-product.reverse .product-copy {
        order: 1;
    }

    .product-photo,
    .reverse .product-photo {
        width: 80%;
        max-width: none;
        padding: 0;
    }


    .product-photo img {
        width: 100%;
        height: 100%;

    }

    .product-copy {
        padding: 5px 0;
    }

    .product-copy h3 {
        font-size: clamp(14px, 3.6vw, 19px);
        line-height: 1.4;
        margin: 0 0 6px;
    }

    .product-copy p {
font-size: 13px;
        line-height: 1.75;
        margin-bottom: 7px;
    }

    .price {
        font-size: clamp(14px, 3.5vw, 19px);
    }

    .price small {
        font-size: 9px;
    }

    .sanrio-note {
        font-size: 9px;
    }

    .sanrio-bottom {
        padding: 42px 14px;
    }

    .sanrio-page .footer {
        margin: 0;
        padding: 19px 5%;
        font-size: 9px;
    }
}

/* 小さいスマートフォン */
@media (max-width: 390px) {
    .sanrio-products {
        padding-left: 10px;
        padding-right: 10px;
    }

    .sanrio-product,
    .sanrio-product.reverse {
        gap: 8px;
    }

    .product-copy h3 {
        font-size: clamp(13px, 3.8vw, 16px);
    }

    .product-copy p {
        font-size: 10px;
        line-height: 1.55;
    }

    .price {
        font-size: 14px;
    }

    .price small {
        font-size: 8px;
    }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
    .sanrio-product,
    .sanrio-bottom a {
        transition: none;
    }

    .sanrio-page .reveal {
        opacity: 1;
        transform: none;
    }
}



/* 通常時は少し縮小 */
.main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(0.88);
    transition: transform 0.8s cubic-bezier(.16, 1, .3, 1);
}

/* マウスを乗せると元のサイズに拡大 */
@media (hover: hover) and (pointer: fine) {
    .image-slider:hover .main-image img {
        transform: scale(1);
    }
}



/* スマホ：画像を上、文字を下に表示 */
@media (max-width: 700px) {
    .sanrio-product,
    .sanrio-product.reverse {
        grid-template-columns: 1fr;
    }

    .sanrio-product.reverse .product-photo {
        order: 1;
    }

    .sanrio-product.reverse .product-copy {
        order: 2;
    }
}


/* =========================
   かわいい商品画像スライダー
========================= */

/* スライダー全体 */
.product-photo.image-slider {
    width: 100%;
    max-width: 440px;
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 0;
    background: transparent;
}

/* メイン画像 */
.main-image {
    width: 100%;

    overflow: hidden;
    border-radius: 18px;

}

/* メイン画像の表示 */
.main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(.90);
    opacity: 1;
    transition:
        transform .8s cubic-bezier(.16, 1, .3, 1),
        opacity .35s ease;
}

/* マウスを乗せるとふんわり拡大 */
@media (hover: hover) and (pointer: fine) {
    .image-slider:hover .main-image img {
        transform: scale(1);
    }
}

/* サムネイル一覧 */
.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
    padding: 0 20px;
}

/* サムネイル画像 */
.thumbnail-list img {
    display: block;
    width: 100%;
    cursor: pointer;
    border-radius: 10px;
    opacity: .55;
    transform: scale(.94);

    transition:
        opacity .3s ease,
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

/* 選択中のサムネイル */
.thumbnail-list img.active {
    opacity: 1;
    transform: scale(1);

}

/* サムネイルにマウスを乗せたとき */
@media (hover: hover) and (pointer: fine) {
    .thumbnail-list img:hover {
        opacity: 1;
        transform: scale(1.04);
    }
}

/* 画像が2枚の場合は中央に配置 */
.thumbnail-list:has(img:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 100px);
    justify-content: center;
}

/* スマートフォン */
@media (max-width: 700px) {
    .product-photo.image-slider {
        width: 90%;
        max-width: none;
    }

    .thumbnail-list {
        gap: 8px;
        padding: 0 12px;
        margin-top: 10px;
    }

    .thumbnail-list:has(img:nth-child(2):last-child) {
        grid-template-columns: repeat(2, 80px);
    }

    .main-image {
        border-radius: 14px;
    }
}
