@layer base, components, utilities;

@layer base {
    html {
        scroll-behavior: smooth;
    }

    body {
        font-family: var(--font-main);
        font-size: var(--fz-16);
        line-height: 1.6;
        color: var(--text-main);
        font-optical-sizing: auto;
        font-feature-settings: "palt";
        -webkit-font-smoothing: antialiased;
    }

    main {
        background-color: var(--primary-color);
    }

    .content {
        padding-block: 100px;
    }

    .special-inner {
        max-width: 1240px;
        margin-inline: auto;
        padding-inline: 20px;
        position: relative;
        @media (width < 768px) {
            padding-inline: 3%;
        }
        &.small {
            max-width: 800px;
        }
        &>* {
            position: relative;
            z-index: 2;
        }
    }
}

@layer components {
}

@layer utilities {
    @media (768px <= width) {
        .sp { display: none !important; }
        a {
            transition: opacity ease .3s;
            &:hover {
                opacity: .7;
            }
        }
    }
    @media (width < 768px) {
        .pc { display: none !important; }
    }
    /* Webフォント */
    .kanit { font-family: "Kanit", sans-serif; }
    .inter {
        font-family: "Inter", sans-serif;
        font-optical-sizing: auto;
        font-style: normal;
    }
    .italic { font-style: italic; }
    .fw-300 { font-weight: 300; }
    .fw-400 { font-weight: 400; }
    .fw-500 { font-weight: 500; }
    .fw-600 { font-weight: 600; }

    .js-inview-fade-up {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity .8s ease, transform .8s ease;
        will-change: opacity, transform;
    }
    .js-inview-fade-up.is-inview-visible {
        opacity: 1;
        transform: translateY(0);
    }
    .inview-delay-100 { transition-delay: .1s; }
    .inview-delay-200 { transition-delay: .2s; }
    .inview-delay-300 { transition-delay: .3s; }
    .inview-delay-400 { transition-delay: .4s; }
    .inview-delay-500 { transition-delay: .5s; }
    .inview-delay-600 { transition-delay: .6s; }
    .inview-delay-700 { transition-delay: .7s; }
    .inview-delay-800 { transition-delay: .8s; }
}

.youtube {
    width: 100%;
    aspect-ratio: 16 / 9;
    iframe {
        width: 100%;
        height: 100%;
    }
}
.header {
    @media (768px <= width) {
        &.scroll {
            background: rgba(255, 255, 255, 0.7);
            .nav-box {
                background: none;
            }
            .topLogo {
                width: 165px;
                margin: 12px 40px;
                transform: none;
            }
        }
    }
}
.jersey2026 {
    nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding-block: 20px;
        font-weight: bold;
        position: sticky;
        bottom: 0;
        z-index: 3;
        @media (width < 768px) {
            width: 90%;
            margin-inline: auto;
        }
        .page-link {
            display: flex;
            gap: 50px;
            background-color: var(--primary-color);
            border-radius: 30px;
            padding: 10px 70px;
            @media (width < 768px) {
                display: block;
                border: 1px solid rgba(255,255,255,.3);
                border-radius: 40px;
                padding: 10px 30px;
                opacity: 0;
                pointer-events: none;
                position: absolute;
                top: 0;
                right: 0;
                transform: translateY(-100%);
                transition: opacity .3s ease, transform .3s ease;
            }
            a {
                display: block;
                color: #fff;
                @media (width < 768px) {
                    padding-block: 15px;
                }
            }
            li:not(:first-child) {
                a {
                    @media (width < 768px) {
                        border-top: 1px solid rgba(255,255,255,.3);
                    }
                }
            }
        }
        .fanclub-link {
            background-color: var(--secondary-color);
            border-radius: 30px;
            padding: 10px 50px;
            color: var(--primary-color);
            text-align: center;
            @media (width < 768px) {
                flex: 1;
                padding: 10px 30px;
            }
        }
        .humb-btn {
            width: 70px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 5px;
            border-radius: 30px;
            background-color: var(--primary-color);
            padding-block: 12.5px;
            cursor: pointer;
            span {
                display: block;
                width: 22px;
                height: 2px;
                background-color: #fff;
                transition: transform .3s ease, opacity .3s ease;
                transform-origin: center;
            }
            &.open {
                span:nth-child(1) {
                    transform: translateY(7px) rotate(30deg);
                }
                span:nth-child(2) {
                    opacity: 0;
                }
                span:nth-child(3) {
                    transform: translateY(-7px) rotate(-30deg);
                }
            }
        }

        &.open {
            .page-link {
                @media (width < 768px) {
                    opacity: 1;
                    pointer-events: auto;
                    transform: translateY(calc(-100% + 10px));
                }
            }
        }
    }
}

.title {
    @media (width < 768px) {
        font-size: 44px;
    }
    h2 {
        font-size: 80px;
        @media (width < 768px) {
            font-size: 15vw;
        }
        div {
            @media (width < 768px) {
                width: 52px;
            }
        }
        span {
            display: block;
            &.kanit {
                margin-top: 25px;
                line-height: 0.8;
                @media (width < 768px) {
                    margin-top: 10px;
                }
            }
        }
    }
    p {
        display: flex;
        align-items: flex-end;
        font-size: 20px;
        font-weight: 600;
        line-height: 1;
        &::before,&::after {
            content: '';
            display: block;
            width: 14px;
            height: 24px;
        }
        &::before {
            clip-path: polygon(calc(100% - 1px) 0, 100% 0, 100% 100%,0 100%);
            margin-right: -1px;
        }
        &::after {
            clip-path: polygon(0 0,100% 0,1px 100%,0 100%);
            margin-left: -1px;
        }
        span {
            padding: 2px 10px;
        }
    }
}
.title-second {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    @media (width < 768px) {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    h2 {
        font-size: 60px;
        font-weight: 600;
        font-family: "Kanit", sans-serif;
        font-style: italic;
        line-height: 0.8;
        @media (width < 768px) {
            font-size: 8.6vw;
        }
        span {
            margin-right: 10px;
            font-size: 80px;
            @media (width < 768px) {
                font-size: 40px;
            }
            strong {
                font-size: 120px;
                @media (width < 768px) {
                    font-size: 70px;
                }
            }
        }
    }
    p {
        font-size: 20px;
        font-weight: 600;
        @media (width < 768px) {
            font-size: 16px;
        }
    }
    &.large {
        h2 {
            font-size: 90px;
            @media (width < 768px) {
                font-size: 40px;
            }
        }
    }
    &.thin {
        h2 {
            font-weight: 400;
        }
    }
}

.en-text {
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: 300;
    font-family: "Kanit", sans-serif;
}

.marker {
    background-color: var(--secondary-color);
    padding: 2px 6px;
    box-decoration-break : clone
}

.indent {
    margin-left: 1em;
    text-indent: -1em;
}
.text-small {
    font-size: 14px;
}

.tc-white {
    color: #fff !important;
}
.tc-green {
    color: var(--primary-color) !important;
}
.tc-yellow {
    color: var(--secondary-color) !important;
}
.tc-red {
    color: var(--red-color) !important;
}

.btn {
    display: block;
    padding-block: 4px;
    font-size: 28px;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 700;
    text-align: center;
    letter-spacing: .1em;
    &.inactive {
        background-color: #828282 !important;
        pointer-events: none;
    }
    &.arrow {
        padding-block: 8px;
        font-size: 16px;
        font-family: sans-serif;
        position: relative;
        @media (width < 768px) {
            padding-inline: 10px;
            font-size: 14px;
            text-align: left;
        }
        &::after {
            content: '';
            display: block;
            width: 10px;
            height: 10px;
            border-top: 2px solid #fff;
            border-right: 2px solid #fff;
            transform: rotate(45deg);
            position: absolute;
            right: 25px;
            top: 0;
            bottom: 0;
            margin-block: auto;
        }
    }
}
.special-buy-btn {
    .btn+.btn {
        margin-top: 15px;
    }
}

.card-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
    @media (width < 768px) {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
}
.card-box {
    height: 100%;
    background-color: var(--secondary-color);
    padding: 30px;
    position: relative;
    @media (width < 768px) {
        padding: 15px;
    }
    &::after {
        content: "";
        display: inline-block;
        width: 80px;
        height: 80px;
        background-color: var(--primary-color);
        clip-path: polygon(0 0, 100% 0, 100% 100%);
        position: absolute;
        top: -1px;
        right: -1px;
        @media (width < 768px) {
            width: 40px;
            height: 40px;
        }
    }
}
.lib-box {
    display: flex;
    flex-direction: column;
    .lib {
        display: flex;
        align-items: flex-end;
        overflow: hidden;
        &::after {
            content: "";
            display: block;
            width: 28px;
            height: 49px;
            background-color: var(--secondary-color);
            margin: 0 0 -1px -1px;
            clip-path: polygon(0 0, 0 100%, 100% 100%);
        }
        span {
            display: inline-block;
            background-color: var(--secondary-color);
            padding: 9px 20px 9px 30px;
            color: var(--primary-color);
            font-size: 20px;
            font-weight: 600;
        }
    }
    .text {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        background-color: #EBEBEB;
        padding: 30px;
        @media (width < 768px) {
            padding: 20px;
        }
    }
}

.table-dl {
    display: flex;
    gap: 10px;
    @media (width < 768px) {
        flex-direction: column;
    }
    &+.table-dl {
        margin-top: 10px;
    }
    dt {
        span {
            background-color: var(--primary-color);
            padding: 4px 8px;
            color: #fff;
            font-size: 14px;
            white-space: nowrap;
        }
    }
    dd {
        flex: 1;
        color: var(--primary-color);
    }
}

.uni-block {
    display: flex;
    align-items: center;
    gap: 50px;
    @media (width < 768px) {
        flex-direction: column-reverse;
        gap: 0;
    }
    .text {
        flex: 1;
        @media (width < 768px) {
            margin-top: -40px;
        }
        .concept-box {
            margin-top: 40px;
            p {
                &.en-text {
                    font-size: 24px;
                    @media (width < 768px) {
                        font-size: 20px;
                    }
                }
                &:not(.en-text) {
                    color: #fff;
                    line-height: 2;
                    font-weight: 600;
                }
                &:not(:first-child) {
                    margin-top: 20px;
                }
            }
        }
    }
    .image {
        @media (768px <= width) {
            margin-right: -40px;
        }
    }
    .image,.image img {
        width: 610px;
        @media (width < 768px) {
            width: 100%;
        }
    }
}

.uni-ani {
    img {
        position: absolute;
    }
    &.is-ani-ready {
        img {
            transition: clip-path .8s ease;
            will-change: clip-path;
        }
        img:nth-child(1) {
            clip-path: inset(0 0 100% 0);
        }
        img:nth-child(2) {
            clip-path: inset(0 100% 0 0);
            transition-delay: .3s;
        }
        img:nth-child(3) {
            clip-path: inset(0 0 0 100%);
            transition-delay: .3s;
        }
    }
    &.is-ani-visible {
        img:nth-child(1),img:nth-child(2),img:nth-child(3) {
            clip-path: inset(0 0 0 0);
        }
    }
    img:nth-child(1) {
        width: 90%;
        top: -100px;
        right: -275px;
        z-index: 3;
        @media (width < 768px) {
            width: 75%;
            top: -160px;
            right: -3%;
        }
    }
    img:nth-child(2) {
        width: 70%;
        top: -320px;
        left: -420px;
        z-index: 2;
        @media (width < 768px) {
            width: 62%;
            top: -160px;
            left: -3%;
        }
    }
    img:nth-child(3) {
        width: 62%;
        top: 147px;
        right: -310px;
        z-index: 1;
        @media (width < 768px) {
            width: 70%;
            top: 190px;
            right: -3%;
        }
    }
}

.mv-area {
    overflow: hidden;
    position: relative;
    @media (width < 768px) {
        .js-mv-sp-layers {
            position: relative;
            overflow: hidden;
            .back {
                position: relative;
                z-index: 1;
            }
            .middle,
            .front {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
            }
            .middle {
                z-index: 2;
                clip-path: inset(0 0 100% 0);
                transition: clip-path 2.8s cubic-bezier(.22, 1, .36, 1);
                will-change: clip-path;
            }
            .front {
                z-index: 3;
                opacity: 0;
                transform: translateY(32px);
                transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
                will-change: opacity, transform;
            }
            &.is-middle-visible {
                .middle {
                    clip-path: inset(0 0 0 0);
                }
            }
            &.is-front-visible {
                .front {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
        }

        img {
            width: 100%;
        }
        .front,.middle {
            position: absolute;
            top: 0;
            left: 0;
        }
    }
}
/* 視点を設定するラッパー（カメラの位置） */
.parallax-wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px; /* ★ここで遠近感を設定（数値が小さいほどパースがキツくなる） */
}

/* 実際に傾けるコンテナ */
.parallax-container {
  width: 100%;
  height: 100vh;
  position: relative;
  transform-style: preserve-3d; /* ★子要素のZ軸配置（立体感）を維持する */
  pointer-events: none;
    will-change: transform;
}

/* 各レイヤーの共通設定 */
.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
    backface-visibility: hidden;
    will-change: transform;
}

/* ① 奥のレイヤー */
.layer-back {
    --layer-depth: -300px;
  background: url('../img/mv-layer-back.webp') center/cover;
  /* 奥に配置し、傾いた際に端が切れないよう少し拡大(scale)しておく */
    transform: translate3d(0, 0, var(--layer-depth)) scale(1.7);
}

/* ② 中間のレイヤー */
.layer-middle {
    --layer-depth: 0px;
  background: url('../img/mv-layer-middle.webp') center/contain no-repeat;
    transform: translate3d(0, 0, var(--layer-depth)); /* 基準位置 */
}

/* ③ 手前のレイヤー */
.layer-front {
        --layer-depth: 150px;
    background: url('../img/mv-layer-front.webp') center/contain no-repeat;
        transform: translate3d(0, 0, var(--layer-depth)); /* 手前に浮かせる */
}

.parallax-container .js-inview-fade-up {
    transform: translate3d(0, 32px, var(--layer-depth, 0px));
}

.parallax-container .js-inview-fade-up.is-inview-visible {
    transform: translate3d(0, 0, var(--layer-depth, 0px));
}

.first-area {
    background-color:var(--primary-color);
    background: linear-gradient(103deg, #003524 0.19%, #00441B 50.2%, #003524 99.81%);
    overflow-x: hidden;
    @media (width < 768px) {
        padding-top: 160px;
    }
    .uni-wrap {
        clip-path: inset(0);
        padding-bottom: 100px;
        position: relative;
        z-index: 3;
    }
    .title {
        color: #fff;
        p {
            margin-top: 20px;
            color: var(--primary-color);
            &::before,&::after {
                background-color: #fff;
            }
            span {
                background-color: #fff;
                color: var(--primary-color);
            }
        }
    }
    .btn {
        border: 1px solid #fff;
    }
    .design-block {
        background-color: rgba(0,0,0,.5);
        li {
            color: #B2BBB7;
            p {
                color: #fff;
            }
        }
    }
    .detail-block {
        margin-top: 60px;
        .detail-inner {
            background-color: #002B11;
        }
        .text {
            color: #fff;
            .name {
                h3 {
                    color: var(--secondary-color);
                }
            }
            .size {
                ul {
                    li {
                        border: 1px solid rgba(255,255,255,.3);
                    }
                }
            }
            .page-link {
                a {
                    border-bottom: 1px solid #fff;
                    &::after {
                        border-bottom: 1px solid #fff;
                        border-right: 1px solid #fff;
                    }
                }
            }
        }
    }
    .item-block {
        >ul>li .text {
            background-color: #EBEBEB;
            .special-buy-btn .btn {
                background-color: var(--primary-color);
            }
        }
    }
}
.second-area {
    background-color: #ECE4D1;
    overflow: hidden;
    &>div:last-of-type {
        padding-bottom: 100px;
    }
    .btn {
        background-color: var(--red-color);
    }
    .title {
        color: var(--red-color);
        p {
            margin-top: 30px;
            color: #fff;
            &::before,&::after {
                background-color: var(--red-color);
            }
            span {
                background-color: var(--red-color);
                color: #fff;
            }
        }
    }
    .bg-white {
        background-color: #fff;
        padding-block: 100px 60px;
        @media (width < 768px) {
            padding-block: 140px 60px;
        }
    }
    .design-block {
        background-color: #D20724;
    }
    .detail-block {
        background: url(../img/second-bg.webp) #fff;
        background-position: -40px;
        padding-block: 60px;
        @media (width < 768px) {
            margin-top: 0;
        }
        .detail-inner {
            background-color: #ECE4D1;
        }
        .text {
            color: var(--red-color);
            .name {
                h3 {
                    color: var(--red-color);
                }
            }
            .size {
                ul {
                    li {
                        border: 1px solid var(--red-color);
                    }
                }
            }
            .page-link {
                a {
                    border-bottom: 1px solid var(--red-color);
                    &::after {
                        border-bottom: 1px solid var(--red-color);
                        border-right: 1px solid var(--red-color);
                    }
                }
            }
            .btn {
                color: #fff;
            }
        }
    }
    .item-block {
        @media (width < 768px) {
            padding-top: 60px;
        }
        >ul>li .text {
            background-color: #fff;
            .special-buy-btn .btn {
                background-color: var(--red-color);
            }
        }
    }
}
.design-block {
    margin-top: 50px;
    padding: 45px 60px;
    @media (width < 768px) {
        padding: 30px;
    }
    ul {
        display: grid;
        grid-template-columns: repeat(3,1fr);
        gap: 30px;
        margin-top: 30px;
        @media (width < 768px) {
            grid-template-columns: repeat(1,1fr);
        }
        li {
            font-size: 14px;
            line-height: 2;
        }
        p {
            margin-bottom: 5px;
            font-size: 20px;
            font-weight: 600;
            @media (width < 768px) {
                font-size: 16px;
            }
        }
    }
}
.detail-block {
    position: relative;
    z-index: 0;
    @media (width < 768px) {
        margin-top: 40px;
    }
    .detail-inner {
        padding: 60px;
        display: flex;
        gap: 50px;
        @media (width < 768px) {
            flex-direction: column;
            gap: 30px;
            padding: 50px 5%;
        }
    }
    .deco-box {
        img {
            position: absolute;
            z-index: -1;
            &:nth-child(1) {
                top: 0;
                left: 0;
                transform: translate3d(calc(-50% - 30px),calc(-50% + 90px),0);
            }
            &:nth-child(2) {
                bottom: 0;
                right: 0;
                transform: translate3d(calc(50% + 30px),calc(50% - 100px),0);
            }
        }
    }
    .image {
        @media (768px <= width) {
            width: 500px;
        }
    }
    .text {
        @media (768px <= width) {
            flex: 1;
        }
        .name {
            h3 {
                font-size: 70px;
                font-family: "Kanit", sans-serif;
                font-style: italic;
                font-weight: 600;
                line-height: 1;
                @media (width < 768px) {
                    font-size: 44px;
                }
            }
            p {
                margin-top: 20px;
                font-size: 20px;
                font-weight: 700;
                @media (width < 768px) {
                    margin-top: 5px;
                    font-size: 14px;
                }
            }
        }
        .size {
            display: flex;
            gap: 16px;
            margin-top: 40px;
            @media (width < 768px) {
                margin-top: 20px;
            }
            ul {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 6px;
                li {
                    padding: 0 15px;
                }
            }
        }
        .page-link {
            display: flex;
            gap: 30px;
            margin-top: 30px;
            @media (width < 768px) {
                margin-top: 20px;
            }
            a {
                display: flex;
                align-items: center;
                gap: 13px;
                padding-bottom: 6px;
                &::after {
                    content: '';
                    display: block;
                    width: 8px;
                    height: 8px;
                    transform: rotate(45deg);
                }
            }
        }
        .price {
            margin-top: 40px;
            @media (width < 768px) {
                margin-top: 20px;
            }
            .mark {
                font-size: 28px;
                @media (width < 768px) {
                    font-size: 20px;
                }
            }
            .inter {
                font-size: 44px;
                @media (width < 768px) {
                    font-size: 32px;
                }
            }
        }
        .special-buy-btn {
            margin-top: 40px;
            @media (width < 768px) {
                margin-top: 20px;
            }
        }
    }
}
.item-block {
    margin-top: 80px;
    position: relative;
    z-index: 2;
    @media (width < 768px) {
        margin-top: 0px;
    }
    .special-inner {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        @media (width < 768px) {
            flex-direction: column;
            align-items: flex-start;
        }
    }
    .item-count {
        font-size: 25px;
        font-family: "Kanit", sans-serif;
        font-style: italic;
        font-weight: 300;
        @media (width < 768px) {
            width: 100%;
            margin-top: -25px;
            font-size: 16px;
            text-align: right;
        }
    }
    >ul {
        display: flex;
        gap: 10px;
        margin-top: 30px;
        overflow-x: auto;
        scrollbar-width: none;
        @media (width >= 768px) {
            cursor: grab;
            img {
                user-select: none;
                -webkit-user-drag: none;
            }
            &.is-dragging {
                cursor: grabbing;
                user-select: none;
                * {
                    user-select: none;
                }
            }
        }
        >li {
            display: flex;
            flex-direction: column;
            min-width: 320px;
            &:first-child {
                margin-left: max(20px, calc(((100% - 1240px) / 2) + 20px));
            }
            &:last-child {
                margin-right: max(20px, calc(((100% - 1240px) / 2) + 20px));
            }
            .text {
                display: flex;
                flex-direction: column;
                flex-grow: 1;
                margin-top: 1px;
                padding: 15px 20px;
                .name {
                    font-size: 20px;
                    font-weight: 700;
                }
                .size {
                    display: flex;
                    align-items: flex-start;
                    gap: 8px;
                    margin: 10px 0 20px;
                    p {
                        line-height: 1.2;
                    }
                    ul {
                        display: flex;
                        flex-wrap: wrap;
                        gap: 3px;
                    }
                    li {
                        border: 1px solid #002B11;
                        padding: 0 4px;
                        color: #002B11;
                        font-size: 14px;
                        line-height: 1.2;
                    }
                }
                .price-wrap {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    p:first-child {
                        font-size: 14px;
                    }
                }
                .price {
                    font-weight: 600;
                    .yen {
                        font-size: 16px;
                    }
                    .inter {
                        font-size: 18px;
                    }
                    .tax {
                        font-size: 12px;
                        font-weight: normal;
                    }
                }
                .special-buy-btn {
                    margin-top: auto;
                    .btn {
                        border: none;
                        margin-top: 20px;
                        color: #fff;
                        font-size: 20px;
                    }
                }
            }
        }
    }
}

.gallery-block {
    overflow: hidden;
    margin-top: 60px;
    @media (width < 768px) {
        --gallery-gap: 10px;
        margin-top: 40px;
    }
    ul {
        display: flex;
        width: max-content;
    }
    ul.is-marquee-ready {
        animation: gallery-marquee var(--gallery-duration, 24s) linear infinite;
    }
    li {
        flex: 0 0 auto;
        width: clamp(180px, 20vw, 280px);
        margin-right: 12px;
        @media (width < 768px) {
            width: 42vw;
        }
    }
    img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

@keyframes gallery-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-block ul.is-marquee-ready {
        animation: none;
    }
}

.uni-gallery {
    width: min(100%, 540px);
}

.main-slide {
    overflow: hidden;
    &::before,&::after {
        content: '';
        display: block;
        width: 60px;
        height: 60px;
        background-color: #002B11;
        position: absolute;
        z-index: 2;
    }
    &::before {
        bottom: -1px;
        left: -1px;
        clip-path: polygon(0 0, 0 100%, 100% 100%);
    }
    &::after {
        top: -1px;
        right: -1px;
        clip-path: polygon(0 0, 100% 0, 100% 100%);
    }
    .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}
.first-uni-slider {
    &::before,&::after {
        background-color: #002B11;
    }
}
.first-uni-thumb {
    .swiper-slide {
        @media (width < 768px) {
            width: 72px;
        }
    }
}
.second-uni-slider {
    &::before,&::after {
        background-color: #ECE4D1;
    }
}

.thumb-slide {
    margin-top: 8px;
    .swiper-wrapper {
        gap: 6px;
        padding-top: 2px;
    }
    .swiper-slide {
        width: calc((100% - 48px) / 9);
        cursor: pointer;
        transition: opacity .25s ease, border-color .25s ease, transform .25s ease;
    }
    .swiper-slide-thumb-active {
        opacity: 0.5;
        border-color: #fff;
        transform: translateY(-2px);
    }
    img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }
}
.size-area {
    background-color: #C6CAC9;
    .size-table-wrapper {
        width: 100%;
        overflow-x: auto; /* スマホ等での横スクロールを有効化 */
        -webkit-overflow-scrolling: touch;
        padding: 20px 0; /* 背景を見せるための余白 */

        .size-table {
            width: 100%;
            min-width: 760px; /* スクロールを発生させるための最小幅 */
            border-collapse: collapse;
            text-align: center;
            font-family: sans-serif;
            color: #111;

            th, td {
                /* セル間の白い線をボーダーで表現 */
                border: 2px solid #C6CAC9;
                padding: 12px 10px;
                color: var(--primary-color);
                white-space: nowrap;
            }

            /* 列の背景色を交互に変更（2列目=M, 4列目=XL...が薄緑） */
            th:nth-child(even), td:nth-child(even) {
                background-color: #D8E5E1;
            }
            th:nth-child(odd), td:nth-child(odd) {
                background-color: #ffffff;
            }

            /* --- 左側の固定列設定 --- */
            th:first-child {
                position: sticky;
                left: 0;
                z-index: 10; /* スクロール時に他のセルより上に表示 */
            }

            thead {
                th:first-child {
                    /* 左上の「単位:cm」のセル */
                    background-color: #C6CAC9;
                    border-top: none;
                    border-left: none;
                    text-align: right;
                    vertical-align: bottom;
                    font-size: 11px;
                    font-weight: normal;
                    padding: 8px 6px;
                }

                th:not(:first-child) {
                    /* サイズ名（M, L, XL...）のセル */
                    font-weight: bold;
                }
            }

            tbody {
                th:first-child {
                    /* 各行の項目名（着丈、身幅...）の緑色セル */
                    background-color: var(--primary-color);
                    color: #ffffff;
                    font-weight: normal;
                    letter-spacing: 0.1em; /* 文字間隔を少し開けて画像に寄せる */
                }
            }
        }
    }
}

.numbers-area {
    background-color: var(--primary-color);
    .contents-wrap {
        display: flex;
        margin-top: 50px;
        @media (width < 768px) {
            flex-direction: column;
            gap: 30px;
        }
        .image {
            width: 628px;
            position: relative;
            @media (768px <= width) {
                margin-right: -40px;
            }
            @media (width < 768px) {
                width: 100%;
            }
        }
        .text {
            flex: 1;
            margin-top: 100px;
            @media (width < 768px) {
                margin-top: 0;
            }
            p {
                color: #fff;
                font-weight: 600;
                line-height: 2.5;
                &:not(:first-child) {
                    margin-top: 30px;
                }
            }
        }
    }
    .number-brand-block {
        margin-top: 60px;
        .number-bland-list {
            margin-top: 40px;
            li {
                display: flex;
                align-items: center;
                gap: 24px;
                @media (width < 768px) {
                    align-items: flex-start;
                    gap: 15px;
                }
                .image {
                    width: 230px;
                    min-width: 230px;
                    @media (width < 768px) {
                        width: 140px;
                        min-width: 140px;
                    }
                    .js-image-change {
                        .image-box {
                            position: relative;
                            background-color: #fff;
                            border-radius: 5px;
                            overflow: hidden;
                            img {
                                display: block;
                                width: 100%;
                            }
                            .uni {
                                display: none;
                            }
                        }
                        .cange-btn {
                            display: grid;
                            grid-template-columns: repeat(2, 1fr);
                            gap: 2px;
                            background-color: #DACA9F;
                            border-radius: 5px;
                            margin-top: 5px;
                            padding: 4px;
                            button {
                                background-color: transparent;
                                border-radius: 5px;
                                color: var(--primary-color);
                                font-size: 14px;
                                font-weight: 700;
                                padding: 3px 0;
                                cursor: pointer;
                                transition: background-color .2s ease, color .2s ease;
                                @media (width < 768px) {
                                    font-size: 11px;
                                }
                                &.is-active {
                                    background-color: var(--primary-color);
                                    color: #fff;
                                }
                            }
                        }
                        &.is-uni-view {
                            .image-box {
                                .car {
                                    display: none;
                                }
                                .uni {
                                    display: block;
                                }
                            }
                        }
                    }
                }
                .text {
                    flex: 1;
                    color: var(--primary-color);
                    p:not(.kanit) {
                        margin-top: 10px;
                        font-weight: 600;
                        @media (width < 768px) {
                            margin-top: 5px;
                        }
                    }
                    .number {
                        height: 40px;
                        @media (width < 768px) {
                            height: 35px;
                            padding-top: 5px;
                        }
                    }
                    .concept {
                        margin-top: 30px;
                    }
                    .player {
                        margin-top: 20px;
                        @media (width < 768px) {
                            margin-top: 15px;
                        }
                        p span {
                            display: inline-block;
                        }
                    }
                }
            }
        }
    }
}

.schedule-area {
    background-color: var(--primary-color);
    .schedule-list {
        margin-top: 50px;
    }
    .benefits-block {
        margin-top: 100px;
        .detail-box {
            background-color: #002B11;
            margin-top: 40px;
            padding: 60px 120px;
            @media (width < 768px) {
                padding: 40px 5%;
            }
            .d-f {
                display: flex;
                align-items: center;
                gap: 60px;
                @media (width < 768px) {
                    flex-direction: column;
                    gap: 30px;
                }
                .image {
                    width: 360px;
                    @media (width < 768px) {
                        width: 100%;
                    }
                    p {
                        margin-top: 10px;
                        color: var(--secondary-color);
                        font-size: 14px;
                        text-align: center;
                    }
                }
                .text {
                    flex: 1;
                    color: #fff;
                    font-size: 20px;
                    font-weight: 600;
                    line-height: 2.5;
                    @media (width < 768px) {
                        font-size: 14px;
                    }
                    p + p {
                        margin-top: 20px;
                    }
                }
            }
            .period {
                background-color: var(--primary-color);
                margin-top: 20px;
                padding-block: 15px;
                color: #fff;
                font-size: 18px;
                font-weight: 600;
                text-align: center;
                @media (width < 768px) {
                    padding-inline: 3%;
                    font-size: 14px;
                    text-align: left;
                }
            }
        }
        .benefits-list {
            margin-top: 40px;
            .number {
                margin-bottom: 20px;
                font-size: 18px;
                font-weight: 600;
                line-height: .7;
                span {
                    display: inline-block;
                    margin-left: 10px;
                    font-size: 56px;
                    font-family: "Kanit", sans-serif;
                }
            }
            p:not(.number) {
                font-size: 20px;
                font-weight: bold;
                @media (width < 768px) {
                    font-size: 16px;
                }
            }
        }
    }
}
