.catalog2026 {
    font-family: "Hiragino Kaku Gothic StdN", sans-serif;
    padding-top: 50px;
}

.hacobune-gallery {
    font-family: "Hiragino Kaku Gothic StdN", sans-serif!important;

    * {
        font-family:  "Hiragino Kaku Gothic StdN", sans-serif!important;
    }
}


h2 {
    font-family: "montserrat", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 40px;
    border: none;
    padding: 0;
}

/* MV */
.catalog2026-mv {
    width: 1280px;
    text-align: center;
    margin: auto;

    img {
        display: block;
        width: 100%;
        object-fit: contain;
    }
}

/* MV */
.catalog2026-sec {
    width: 1280px;
    margin: auto;
}

/* コレクション */
.catalog2026-sec .catalog2026-read {
    position: relative;
    padding: 80px 0 100px;
    text-align: center;

    p {
        font-size: 20px;
        line-height: 40px;
        margin: 0;
        margin-bottom: 80px;
    }

    hr {
        width: 210px;
        margin: 30px auto 40px;
        height: 1px;
        background-color: #F8E6E9;
        border: none;
    }
}


/* デコレーション */
.catalog2026-read {
    &::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 398.63px;
        height: 221.79px;
        background-image: url(/img/usr/freepage/underwear/catalog2026/sec_bg01.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        z-index: 0;
    }

    &::after {
        content: '';
        position: absolute;
        display: block;
        bottom: 0;
        right: 0;
        width: 335.92px;
        height: 153.01px;
        background-image: url(/img/usr/freepage/underwear/catalog2026/sec_bg02.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        z-index: 0;
    }

    &.inversion::before {
        content: '';
        top: 0;
        left: auto;
        right: 0;
        transform: scaleX(-1);
    }

    &.inversion::after {
        content: '';
        bottom: 0;
        right: auto;
        left: 0;
        transform: scaleX(-1);
    }

    &.nodeco::before,
    &.nodeco::after {
        display: none;
    }
}

.catalog2026-sec .hacobune-mix-search {
    display: none !important;
}

.hacobune-layout-base {
    width: 1280px !important;
}

.hacobune-material-item-slider-image .hacobune-carousel-item-slider-image-img {
    /* aspect-ratio: 501.06 / 691; */
    aspect-ratio: 680 / 908 !important;
    object-fit: cover !important;
    object-position: top !important;
    max-width: 501px !important;
    max-height: 691px !important;
}

.catalog2026-sec.first {
    .hacobune-app-container {
        max-width: 1280px;

    }

    .hacobune-layout-base {
        width: 1280px;
    }

    .hacobune-gallery {
        width: 1280px;

        .hacobune-grid-row {
            width: 100%;

            .hacobune-grid-col {
                min-width: 300px !important;
            }
        }
    }
}

.catalog2026-sec {
    .hacobune-app-container {
        max-width: 1280px;

    }

    .hacobune-layout-base {
        width: 1280px;
    }

    .hacobune-gallery {
        width: 1280px;

        .hacobune-grid-row {
            width: 100%;

            .hacobune-grid-col {
                min-width: 300px !important;
            }
        }
    }
}

/* コレクション */

/* 過去のコレクション */
.catalog2026-sec.collection {
    margin-top: 120px auto;

    h2 {
        text-align: center;
        font-family: "Hiragino Kaku Gothic StdN", sans-serif;
        border: none;
        padding-bottom: 60px;
    }

    .hacobune-mix-list-item-figure.hacobune-list-item-figure--tile {
        aspect-ratio: 300 / 414 !important;

        img {
            aspect-ratio: 300 / 414 !important;
            object-fit: cover !important;
            object-position: top !important;
        }
    }


}

.collection-list {
    margin: 0;
    padding: 0;

    li {
        list-style: none;
        border-top: 1px solid #FDEBF1;

        h3 {
            position: relative;
            padding: 30px 0;
            font-size: 34px;
            text-align: center;
            font-weight: 400;
            font-style: normal;
            margin: 0;
            cursor: pointer;
            background-color: transparent;

            &::after {
                content: '';
                position: absolute;
                width: 30px;
                height: 30px;
                top: 0;
                bottom: 0;
                right: 40px;
                margin: auto;
                background-image: url(/img/usr/freepage/underwear/catalog2026/open.png);
                background-position: center;
                background-size: contain;
                background-repeat: no-repeat;
                transition: transform .2s ease;
            }
        }

        &.is-open {
            h3::after {
                background-image: url(/img/usr/freepage/underwear/catalog2026/close.png);
            }
        }

    }
}

/* 過去のコレクション */
.layout-intesucre {
    margin: 60px 0 100px;
}

.layout-intesucre>a {
    display: flex;
    justify-content: space-between;
    border: 1px solid #ccc;
}

.layout-intesucre .area-txt {
    padding: 20px 90px;
    order: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.layout-intesucre .area-txt>*:first-child {
    margin-top: 0;
}

.layout-intesucre .area-txt,
.layout-intesucre .area-img {
    width: 50%;
}

.layout-intesucre .area-img {
    order: 1;
}

.layout-intesucre .area-img>img {
    display: block;
    user-select: none;
    width: 640px;
}

.layout-brand {
    display: flex;
    align-items: center;
}

.layout-brand+p {
    margin-top: 30px;
    font-size: 14px;
    line-height: 1.64;
    text-align: justify;
}

.name-brand-logo {
    display: inline-block;
    width: 178px;
    height: 30px;
    object-fit: contain;
}

.name-brand-txt {
    margin-left: 16px;
    display: inline-block;
    vertical-align: super;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    color: #666;
}

.label-size {
    margin-left: auto;
    padding: 7px 8px 5px;
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    white-space: pre;
    color: #fff;
    border-radius: 2px;
    background-color: #f69cbb;
}

.products-handled {
    margin: 14px 0 0;
    font-size: 14px;
    color: #666;
}

.products-handled>dt {
    padding: 5px 0 4px;
    font-weight: bold;
    background-color: #f4f4f5;
}

.products-handled>dt,
.products-handled>dd {
    padding-left: 1em;
}

.products-handled>dd {
    margin-top: 10px;
}

.link-txt {
    margin: 20px 0 0;
    display: inline-block;
    color: #707070;
    font-weight: bold;
}

.link-txt::before {
    margin-right: 10px;
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 8px;
    border-color: transparent transparent transparent #f69cbb;
    position: relative;
    content: "";
}


.hacobune-dialog-mask,
.hacobune-dialog-mask * {
    box-sizing: border-box;
}

.hacobune-dialog-mask.hacobune-dialog-rounded {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    background: transparent !important;
}

.hacobune-dialog-mask .hacobune-dialog-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #fff !important;
    opacity: 1 !important;
}

.hacobune-dialog-mask .hacobune-dialog-wrapper {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: clamp(16px, 3vw, 48px) !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    z-index: 1000000 !important;
}

.hacobune-dialog-mask .hacobune-dialog-content {
    width: min(1320px, calc(100vw - 2 * clamp(16px, 3vw, 48px))) !important;
    max-height: calc(100svh - 2 * clamp(16px, 3vw, 48px)) !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    /* 白い箱を消す */
    border-radius: 0 !important;
    overflow: visible !important;
    /* 右側だけスクロールさせる */
}

.hacobune-dialog-close-button-container {
    position: fixed !important;
    top: 18px !important;
    right: 18px !important;
    left: auto !important;
    z-index: 1000002 !important;
}

/* closeボタン */
.hacobune-icon-button {
    width: 70px !important;
    height: 70px !important;
}

.hacobune-dialog-rounded .hacobune-dialog-wrapper .hacobune-dialog-content .hacobune-dialog-close-button-container[data-v-64ab2642] .hacobune-icon {
    width: 70px !important;
    height: 70px !important;
}

.hacobune-slider-container .hacobune-slider-swiper-container .hacobune-swiper-wrapper {
    align-items: flex-start;
}

.hacobune-icon-button>span.hacobune-icon {
    color: #E39EB3;
    width: 70px !important;
    height: 70px !important;
    font-size: 70px !important;
    background-image: url(/img/usr/freepage/underwear/catalog2026/close_modall.png);
    background-position: center;
    background-size: contain;

    svg {
        display: none !important;
    }
}

.hacobune-dialog-rounded .hacobune-dialog-wrapper .hacobune-dialog-content .hacobune-dialog-close-button-container[data-v-1e1ab51f] .hacobune-icon {
    width: 70px !important;
    height: 70px !important;
    font-size: 70px !important;
}

/* ===== 5) 左右ナビ（外側の prev/next） ===== */
.hacobuce-material-item-prev-icon {
    width: 55px !important;
    height: 55px !important;
    background-color: transparent !important;
    background-image: url(/img/usr/freepage/underwear/catalog2026/prev.png);
    background-position: center;
    background-size: contain;
    left: 30px !important;

    span {
        display: none;
    }
}

.hacobuce-material-item-next-icon {
    width: 55px !important;
    height: 55px !important;
    background-color: transparent !important;
    background-image: url(/img/usr/freepage/underwear/catalog2026/next.png);
    background-position: center;
    background-size: contain;
    right: 30px !important;

    span {
        display: none;
    }
}

.hacobune-material-item-content {
    display: grid !important;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 560px) !important;
    gap: clamp(18px, 3vw, 60px) !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100svh - 2 * clamp(16px, 3vw, 48px)) !important;

    align-items: start !important;
}



.hacobune-material-item-main {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;

    min-width: 0 !important;
}

.hacobune-material-item-main .hacobune-slider-container {
    height: auto !important;
}

.hacobune-material-item-slider-image {
    display: grid !important;
    place-items: center !important;
    height: auto !important;
}

.hacobune-material-item-slider-image .hacobune-carousel-item-slider-image-img {
    aspect-ratio: 501.06/691 !important;
    width: calc(501.6 / 1920 * 100vw) !important;
    max-width: 501.6px !important;
    height: calc(691 / 1920 * 100vw) !important;
    max-height: 691px !important;
    object-fit: cover !important;
    object-position: top center !important;
}

.hacobune-slide-carousel {
    margin-top: 14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.hacobune-material-carousel-image {
    display: block;
    width: 100%;
    padding: 5px;
    border: 1px solid #E7E7E7;
}

.hacobune-material-carousel-active {
    border: 1px solid #838383;
}

.hacobune-dialog-rounded .hacobune-dialog-wrapper .hacobune-dialog-content .hacobune-dialog-close-button-container .hacobune-icon {
    width: 70px !important;
    height: 70px !important;
}


/* .hacobune-slide-carousel {

    width: calc(502 / 1920 * 100vw) !important;
    max-width: 502px;
    height: calc(207 / 1920 * 100vw) !important;
    max-height: 207px;
    margin: 0;

    .hacobune-swiper-slide {
        width: calc(160 / 1920 * 100vw) !important;
        max-width: 160px;
        height: calc(209 / 1920 * 100vw) !important;
        max-height: 209px;
        object-fit: cover !important;
        object-position: top !important;
    }
} */

.hacobune-slide-carousel {

    width: calc(502 / 1920 * 100vw) !important;
    max-width: 502px;
    height: calc(141 / 1920 * 100vw) !important;
    max-height: 141px;
    margin: 0;

    .hacobune-swiper-slide {
        width: calc(120 / 1920 * 100vw) !important;
        max-width: 120px;
        height: calc(141 / 1920 * 100vw) !important;
        max-height: 141px;
        object-fit: cover !important;
        object-position: top !important;
    }
}


.hacobune-slide-carousel .hacobune-carousel-item .hacobune-material-carousel-image,
.hacobune-slide-carousel .hacobune-carousel-item .hacobune-media-post-carousel-image {
    aspect-ratio: 150 / 180 !important;
}

img.hacobune-material-carousel-image {
    display: block;
    width: 100%;
    object-fit: cover !important;
    object-position: top center !important;
    padding: 5px;
    border: 1px solid #E7E7E7;

    &.hacobune-material-carousel-active {
        border: 1px solid #838383;
    }
}

.hacobune-swiper-wrapper {
    gap: 5px;
}

.hacobune-material-item-main .hacobune-slider-prev,
.hacobune-material-item-main .hacobune-slider-next {
    /* display: none !important; */
}

.hacobune-slider-next.material-item-hacobune-slider-next,
.hacobune-slider-prev.material-item-hacobune-slider-prev {
    display: none !important;
}

.hacobune-material-item-main .hacobune-slider-prev {}

.hacobune-material-item-side {
    background: transparent !important;
    padding: 0 !important;

    font-size: 12px !important;
    line-height: 1.8 !important;

    max-height: calc(100svh - 2 * clamp(16px, 3vw, 48px)) !important;
    overflow: auto !important;

    min-width: 0 !important;
    text-align: left !important;
}

/* タイトル/説明 */
.hacobune-material-item-title {
    background-color: transparent;

    span {
        font-size: calc(20 / 1920 * 100vw);
        font-weight: 400;
        color: #333333;
    }
}

.hacobune-material-item-side {
    font-size: calc(13 / 1920 * 100vw);
    line-height: 1.2;
}

.hacobune-material-item-description {
    margin: 0 !important;
}

.hacobune-readmore .hacobune-readmore-link-toggle.toggle-down {
    background: none !important;
    text-decoration: underline !important;
}

.hacobune-material-item-related-product {
    overflow-x: hidden;
    border-top: 1px solid #F4F4F6;
    padding-top: 20px;
    margin-top: 0;

    .hacobune-material-item-title {
        background-color: transparent;
        text-align: center;
        font-size: 16px;
        font-weight: 400;
        color: #333333;
        letter-spacing: 0.162em;

    }

    .hacobune-material-item-text-caption {
        font-weight: 400;
        font-size: 12px;
        color: #333333;
    }

    .related-product-item-image {
        width: calc(150 / 1920 * 100vw) !important;
        max-width: 150px;
        height: calc(150 / 1920 * 100vw) !important;
        max-height: 150px;
    }

    .hacobune-material-item-tile-product {
        width: calc(150 / 1920 * 100vw) !important;
        max-width: 150px;
        padding: 0 !important;

        >a {
            width: calc(150 / 1920 * 100vw) !important;
            max-width: 150px;
        }
    }

    .hacobune-material-item-tile {
        justify-content: start !important;
        gap: calc(58 / 1920 * 100vw) !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
    }
}

.related-product-item-price,
.related-product-item-size,
.related-product-item-color {
    display: none;
}

/* 画像は白台紙に */
.hacobune-material-item-img-container {
    background: #fff !important;
    padding: 0 !important;
}

.related-product-item-image {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 4/5 !important;
    object-fit: contain !important;
    display: block !important;
}

.hacobune-material-item-text-caption,
.related-product-item-price,
.related-product-item-size,
.related-product-item-color {
    width: 100% !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
}

.hacobune-material-item-footer {
    margin-top: 18px !important;
    opacity: .55 !important;
}

.hacobune-slide-carousel .hacobune-carousel-item .hacobune-material-carousel-image,
.hacobune-slide-carousel .hacobune-carousel-item .hacobune-media-post-carousel-image {
    aspect-ratio: 680 / 908;
}


@media (max-width: 960px) {
    .hacobune-dialog-wrapper {
        padding: 12px !important;
    }

    .hacobune-material-item-content {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .hacobune-material-item-side {
        max-height: 42svh !important;
        padding-right: 6px !important;
    }

    .hacobune-dialog-close-button-container {
        top: 12px !important;
        right: 12px !important;
    }

    .hacobune-dialog-close-button-container .hacobune-dialog-close-button {
        width: 64px !important;
        height: 64px !important;
    }

    .hacobune-dialog-close-button-container::after {
        top: 52px;
        right: 12px;
        width: 64px;
        font-size: 10px;
    }

    .hacobuce-material-item-prev-icon {
        left: 10px !important;
    }

    .hacobuce-material-item-next-icon {
        right: 10px !important;
    }
}

@media (max-width: 520px) {
    .hacobune-material-item-tile {
        grid-template-columns: 1fr !important;
    }
}
