:root {
    --page-bg: hsl(51, 58%, 95%);
    --border-color: hsl(0, 0%, 65%);
    --black: hsl(0, 0%, 0%);
    --white: hsl(0, 0%, 100%);
    --lime: hsl(60, 100%, 60%);
    --gray: hsl(0, 0%, 40%);
    --light-gray: hsl(0, 0%, 80%);
    --red: hsl(354, 100%, 35%);
}

html {
    scroll-behavior: smooth;
    scroll-padding-block-start: 120px;

    @media (min-width: 768px) {
        scroll-padding-block-start: 150px;
    }
}

.master_main {
    padding: 10px;
    padding-block-end: 10vh;

    @media (min-width: 768px) {
        padding: 20px;
        padding-block-end: 10vh;
    }
}

.main-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;


    --px: 20px;

    @media (min-width: 992px) {
        --px: clamp(20px, 10vw, 200px);
    }
}

.more-button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;

    height: 60px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--black);
    cursor: pointer;
    font-size: 1.25rem;

    &::before {
        content: '';
        position: absolute;
        right: 20px;
        display: block;
        width: 18px;
        height: 18px;
        background-color: var(--black);
        border-radius: 50%;
        transition: translate .3s ease;
        background-image: url(/assets/img/newpage/arrow-white.png);
        background-size: 10px;
        background-position: center;
        background-repeat: no-repeat;
    }

    &:hover {
        opacity: 1;

        &::before {
            translate: 29px 0;
        }
    }
}

.cart-button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 20px;

    height: 60px;
    border: none;
    background-color: var(--red);
    border: 1px solid var(--red);
    color: var(--white);
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: inset 0 0 0 0px var(--white);
    transition: all .3s ease;

    &::before {
        content: '';
        display: block;
        width: 18px;
        height: 18px;
        background-image: url(/assets/img/newpage/cart.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transition: translate .3s ease;
    }

    &:hover {
        opacity: 1;

        box-shadow: inset 0 0 0 4px var(--white);

        &::before {
            translate: 10px 0;
        }
    }
}

.new--banner {
    min-height: 200px;
    position: relative;

    @media (min-width: 768px) {
        padding: 20px 40px;
        display: grid;
        grid-template-columns: .8fr 1fr;
    }

    @media (max-width: 767.9px) {
        display: flex;
        flex-direction: column-reverse;
    }

    &::before {
        content: '';
        position: absolute;
        z-index: -1;
        top: 25%;
        left: 0;
        width: 100%;
        height: 80%;
        background-image: url(/assets/img/newpage/pattern.png);
        background-repeat: repeat-x;
        background-size: auto 20px;
    }

    &::after {
        content: '';
        position: absolute;
        z-index: -1;
        top: calc(25% + 20px);
        left: 0;
        width: 100%;
        height: 80%;
        background-color: var(--page-bg);
    }
    @media (min-width: 768px) {
        &::before {
            top: 46%;
        }
        &::after {
            top: calc(46% + 20px);
        }
    }

    .banner--start {
        padding: 40px 20px;

        display: flex;
        justify-content: center;
        align-items: center;

        @media (min-width: 768px) {
            padding: 40px;
        }

        .banner--start-container {
            width: 100%;
            max-width: 340px;

            & p {
                font-size: 1.25rem;
            }

            & h1 {
                font-size: 3.2rem;
                font-weight: 400;
            }

            .main-button {
                margin-top: 50px;
                width: 100%;
                height: 38px;
                border-radius: 38px;
                border: 1px solid var(--border-color);
                font-size: 1.4rem;
                color: var(--black);
                display: flex;
                justify-content: center;
                align-items: center;
                background-color: var(--white);

                position: relative;

                &::before {
                    content: '';
                    display: block;
                    width: 80px;
                    height: 80px;
                    position: absolute;
                    left: 0;
                    bottom: 0;

                    transform-origin: left bottom;
                    transition: transform .3s ease;

                    background-image: url(/assets/img/newpage/flag.png);
                    background-size: contain;
                    background-repeat: no-repeat;
                    background-position: bottom left;
                }

                &:hover {
                    opacity: 1;

                    &::before {
                        transform: rotate(5deg);
                    }
                }
            }
        }
    }

    .banner--end {
        padding: 30px;

        background-image: url('/assets/img/newpage/banner-flower-1.png'), url('/assets/img/newpage/banner-flower-2.png');
        background-repeat: no-repeat, no-repeat;
        background-position: 0 0, 100% 100%;
        background-size: 25%, 40%;

        @media (min-width: 768px) {
            padding: 5% 12% 5% 10%;
        }

        .banner--gallery {
            width: 100%;
            aspect-ratio: 1 / 1;

            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;

            .banner--image {
                height: 75%;
                overflow: hidden;

                &:nth-child(1),
                &:nth-child(3) {
                    margin-top: 25%;
                }

                > img {
                    display: block;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;

                    transition: scale 1s ease;
                }

                &:hover {
                    > img {
                        scale: 1.2;
                    }
                }
            }
        }
    }
}

.choice-banner {
    position: relative;
    padding: 20px var(--px) 40px;
    --top: 20%;

    &::before {
        content: '';
        position: absolute;
        z-index: -1;
        top: var(--top);
        left: 0;
        width: 100%;
        height: 80%;
        background-image: url(/assets/img/newpage/pattern.png);
        background-repeat: repeat-x;
        background-size: auto 20px;
    }

    &::after {
        content: '';
        position: absolute;
        z-index: -1;
        top: calc(var(--top) + 20px);
        left: 0;
        width: 100%;
        height: 80%;
        background-color: var(--page-bg);
    }

    @media (min-width: 768px) {
        --top: 45%;
    }

    &.choice-banner--with-explain {
        --top: 18%;
        padding-block-end: 0;

        @media (min-width: 768px) {
            --top: 40%;
        }
    }

    .choice-card {
        .choice-card--start {
            padding-block: 80px 60px;

            .choice-card--figure {
                position: relative;
                padding-inline-start: 20px;

                .choice-card--persona {
                    height: auto;
                    width: 120px;
                    left: -20px;
                    bottom: -40px;

                    @media (min-width: 992px) {
                        left: -40px;
                    }
                }
            }

            .explain {
                margin-block-start: 60px;
                border: 1px solid var(--border-color);
                padding: 15px 20px;

                display: grid;
                grid-template-columns: 75px 1px 1fr;
                align-items: center;
                gap: 20px;

                @media (min-width: 1200px) {
                    max-width: 400px;
                    margin-inline-start: auto;
                    margin-block-start: 20px;
                }

                & img {
                    aspect-ratio: 1 / 1;
                    border-radius: 50%;
                    object-fit: cover;
                }

                .vr {
                    border-left: 1px solid var(--border-color);
                    height: 100%;
                }

                .detail {
                    & h5 {
                        font-size: 1.5rem;
                        font-weight: 400;
                    }

                    & p {
                        font-size: 1.25rem;
                        color: var(--gray);
                        margin-block: .5em 0;
                    }
                }
            }
        }
    }
}

.new--choices {
    background-color: var(--page-bg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    @media (max-width: 767.9px) {
        padding-block-start: 40px;
    }

    @media (min-width: 768px) {
        margin-block-start: -40px;
    }

    .new--choice-header {
        display: grid;
        grid-template-columns: auto 1fr auto;
        justify-content: center;
        align-items: center;
        padding: 20px;
        gap: clamp(10px, 6vw, 100px);

        @media (min-width: 600px) {
            gap: clamp(0px, 9vw, 120px);
        }

        .flower {
            width: 60px;
            aspect-ratio: 1 / 1;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            translate: 0 -5px;

            &.flower--start {
                background-image: url(/assets/img/newpage/flower-start.png);
            }
            &.flower--end {
                background-image: url(/assets/img/newpage/flower-end.png);
            }
        }

        .header-main {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;

            .arc {
                width: 160px;
                height: 40px;
                background-image: url(/assets/img/newpage/choice.png);
                background-size: 60%;
                background-repeat: no-repeat;
                background-position: center;
            }

            & h3 {
                border-bottom: none;
                font-size: 2rem;
                font-weight: 400;
                padding: 0;
                margin: 0;
                white-space: nowrap;
            }

            .total {
                line-height: 1;

                span {
                    font-size: 4rem;
                    font-weight: 200;
                }
                small {
                    font-size: 2rem;
                    font-weight: 400;
                }
            }
        }
    }

    .new--choice-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 10px 20px;

        @media (min-width: 768px) {
            gap: clamp(5px, 4vw, 60px);
        }

        .new--choice-item {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            color: var(--black);

            &:hover {
                opacity: 1;

                .media .circle img {
                    scale: 1.2;
                }

                .overflow {
                    translate: 20px 0;
                }
            }

            @media (min-width: 768px) {
                gap: 5px;
            }

            .number {
                font-size: clamp(1.8rem, 4vw, 2.2rem);;
                font-weight: 400;
            }

            .media {
                max-width: 200px;
                padding: 5px clamp(10px, 3vw, 40px);
                position: relative;

                .circle {
                    width: 100%;
                    aspect-ratio: 1 / 1;
                    border-radius: 100%;
                    box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--border-color);
                    overflow: hidden;

                    & img {
                        width: 100%;
                        height: 100%;

                        object-fit: cover;

                        transition: scale 1s ease;
                    }

                    @media (min-width: 768px) {
                        box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--border-color);
                    }
                }

                .overflow {
                    position: absolute;
                    left: -8px;
                    bottom: 0;
                    width: 50%;
                    max-width: 90px;

                    transition: translate 1s ease;
                }
            }

            .title {
                text-align: center;
                padding: 10px;

                @media (min-width: 768px) {
                    padding: 15px;
                }
            }

            .arrow {
                --size: 20px;
                width: var(--size);
                height: var(--size);
                background-image: url(/assets/img/newpage/arrow.png);
                background-repeat: no-repeat;
                background-position: center;
                background-size: contain;

                @media (min-width: 768px) {
                    --size: 24px;
                }
            }
        }
    }
}

.line-up {
    background-color: var(--page-bg);

    .line-up--header {
        padding-block: 40px;
        padding-inline: var(--px);
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;

        & h3 {
            border-bottom: none;
            font-size: clamp(2rem, 10vw, 4rem);
            font-weight: 700;
            padding: 0;
            margin: 0;
            white-space: nowrap;
            text-transform: uppercase;
            background-color: var(--page-bg);
            position: relative;
            z-index: 1;
            line-height: 1.2;
        }

        & small {
            font-size: 1.25rem;
        }

        &::after {
            content: '';
            display: block;
            position: absolute;
            border-top: 1px solid var(--border-color);
            top: 50%;
            left: var(--px);
            right: var(--px);
        }
    }

    .choice-cards {
        padding-inline: var(--px);
        padding-block-end: 5vh;

        @media (min-width: 768px) {
            padding-block: 5vh 10vh;
        }

        .line-breaker {
            width: calc(100% - 20px);
            border-top: 1px solid var(--border-color);
            margin: 10vh auto;
        }
    }
}

.choice-card {
    @media (max-width: 767.9px) {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 40px;
    }

    @media (min-width: 768px) {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 5vw;
    }

    @media (min-width: 992px) {
        align-items: flex-start;
    }

    .choice-card--start {
        position: relative;
        padding-block: 80px 100px;

        .text {
            position: absolute;
            z-index: 1;
            writing-mode: vertical-lr;
            text-orientation: upright;
            font-size: 2.75rem;
            letter-spacing: -8px;
            font-weight: 700;
            text-shadow:
                0 0 4px var(--white),
                0 0 4px var(--white),
                0 0 4px var(--white),
                0 0 4px var(--white),
                0 0 4px var(--white),
                0 0 4px var(--white)
            ;
            top: 0;
            right: 20px;
        }

        .choice-card--image {
            width: 100%;
            aspect-ratio: 3 / 2;
            object-fit: cover;
        }

        .choice-card--persona {
            position: absolute;
            left: 0;
            bottom: 0;
            width: auto;
            height: 160px;
        }

        @media (min-width: 768px) {
            flex: 1.6;
            padding-inline-start: 5vw;

            .choice-card--persona {
                height: 180px;
            }
        }

        @media (min-width: 992px) {
            padding-inline-start: 0;
        }
    }

    .choice-card--end {
        padding-inline: 10px;

        .choice {
            width: 70px;
            height: 80px;

            background-image: url(/assets/img/newpage/choice-circle.png);
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;

            display: flex;
            justify-content: center;
            align-items: center;
            padding-top: 18px;
            font-size: 3.2rem;
            font-weight: 400;
        }

        & h3 {
            border-bottom: none;
            font-size: 2.25rem;
            font-weight: 400;
            padding: 20px 0;
            margin: 0;
        }

        .content {
            & h5 {
                font-size: clamp(1.2rem, 4vw, 1.5rem);
                line-height: 1.5;

                display: inline;
                background-image: linear-gradient(0deg, var(--lime), var(--lime));
                background-size: 8px 8px;
                background-repeat: repeat-x;
                background-position: bottom;
            }

            & p {
                font-size: 1.25rem;
                line-height: 2;
                margin: 0;
                color: var(--gray);

                &:last-child {
                    padding-block-start: .25em;
                }
            }
        }

        .more-button {
            margin-block-start: 40px;
        }

        .cart-button {
            margin-block-start: 30px;

            @media (min-width: 768px) {
                margin-block-start: 40px;
            }
        }

        @media (min-width: 768px) {
            flex: 1;
            min-width: 200px;
        }
    }

    &.choice-card--reverse {

        @media (min-width: 768px) {
            flex-direction: row;
        }

        .choice-card--start {
            .text {
                @media (min-width: 992px) {
                    right: calc(5vw + 20px);
                }
            }

            .choice-card--persona {
                left: initial;
                right: 0;
            }

            @media (min-width: 768px) {
                padding-inline-end: 5vw;
            }
        }
    }
}