/* AIレコメンド
-------------------------------------------- */
.ai-recommend {
    .ai-recommend__detail {
        background: #fff;
        padding: 48px 24px;
        border: 1px solid #EDE6E0;

        @media (width < 768px) {
            padding: 12px;
        }

        .ai-recommend__detail-title {
            font-size: 24px;
            line-height: 150%;
            text-align: center;
            position: relative;

            @media (width < 768px) {
                font-size: 18px;
            }

            &:before {
                content: "";
                width: 28px;
                height: 1px;
                background: #6D6C67;
                position: absolute;
                bottom: -6px;
                left: 50%;
                transform: translate(-50%, 0);
            }
        }

        .ai-recommend__detail-select {
            margin: 30px 0 32px;
            position: relative;

            @media (width < 768px) {
                margin: 22px 0 32px;
            }

            &:before {
                position: absolute;
                top: 50%;
                left: 24px;
                content: "";
                width: 40px;
                height: 100%;
                transform: translate(0, -50%);
                background: url('../img/recommend_select_gift_icon.svg') no-repeat center;

                @media (width < 768px) {
                    left: 12px;
                    width: 34px;
                    height: 34px;
                }
            }

            &:after {
                position: absolute;
                top: 50%;
                right: 16px;
                content: "";
                width: 16px;
                height: 100%;
                transform: translate(0, -50%);
                background: url('../img/recommend_select_icon.svg') no-repeat center;

                @media (width < 768px) {
                    right: 12px;
                }
            }

            & select {
                color: #6E767D;
                font-size: 16px;
                line-height: 24px;
                letter-spacing: 0.014em;
                padding: 16px 24px 16px 76px;
                width: 100%;
                height: 72px;
                background: #fff;
                border: 1px solid #EDE6E0;
                box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;
                outline: none;
                appearance: none; /* デフォルトの矢印を非表示 */
                -webkit-appearance: none;
                -moz-appearance: none;
                cursor: pointer;

                @media (width < 768px) {
                    font-size: 14px;
                    height: 58px;
                    padding: 16px 24px 16px 58px;
                }
            }
        }

        .ai-recommend__detail-info {
            text-align: right;
            font-size: 12px;
            line-height: 150%;
            letter-spacing: 0.014em;
            color: #D5C1B8;
            margin: 30px 0 8px 0;
            position: relative;
            padding-left: 23px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 5px;

            @media (width < 768px) {
                margin: 22px 0 8px 0;
            }

            & a {
                color: #D5C1B8;
            }

            & img {
                width: 18px;
                height: 18px;
            }
        }

        .ai-recommend__detail-form {
            line-height: 1;

            .ai-recommend__detail-textarea {
                color: #6E767D;
                width: 100%;
                height: 200px;
                box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;
                border: 1px solid #EDE6E0;
                border-radius: 16px;
                resize: none;
                padding: 16px;
                font-size: 14px;
                line-height: 24px;
                letter-spacing: 0.014em;
                margin-bottom: 48px;
                outline: none;

                @media (width < 768px) {
                    margin-bottom: 32px;
                }

                &::placeholder {
                    opacity: 0.4;

                }
            }

            .ai-recommend__detail-button {
                width: 320px;
                height: 48px;
                padding: 0 24px;
                border-radius: 2px;
                color: #fff;
                background: #D5C1B8;
                box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;
                border: none;
                display: block;
                margin: 0 auto;
                cursor: pointer;
            }
        }
    }
}

/* 診断レコメンド
-------------------------------------------- */
.diagnosis-recommend {
    .diagnosis-recommend__detail {
        background: #fff;
        padding: 48px 32px;
        border: 1px solid #EDE6E0;

        @media (width < 768px) {
            padding: 24px 12px;
        }

        .diagnosis-recommend__list {
            position: relative;

            &:before {
                content: "";
                background: #EDE6E0;
                width: 1px;
                height: 97%;
                position: absolute;
                top: 0;
                left: 17px;

                @media (width < 768px) {
                    left: 13px;
                }
            }
            .diagnosis-recommend__item {
                list-style: none;
                padding-bottom: 16px;
                z-index: 1;
                position: relative;

                @media (width < 768px) {
                    padding-bottom: 12px;
                }

                &:last-child {
                    padding-bottom: 0;
                }

                .diagnosis-recommend__item-title {
                    display: flex;
                    align-items: center;
                    gap: 8px;

                    .item-title {
                        font-size: 18px;
                        line-height: 24px;
                        letter-spacing: 0.014em;

                        @media (width < 768px) {
                            font-size: 16px;
                        }
                    }

                    .no {
                        background: #fff;
                        font-size: 14px;
                        line-height: 24px;
                        letter-spacing: 0.014em;
                        text-align: center;
                        width: 36px;
                        height: 36px;
                        border-radius: 50%;
                        padding: 6px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        border: 1px solid #EDE6E0;

                        @media (width < 768px) {
                            width: 28px;
                            height: 28px;
                            font-size: 12px;
                            line-height: 16px;
                        }

                        &.active {
                            background: #D5C1B8;
                            color: #fff;
                            box-shadow: 0 2px 12px 0 #0000001A;
                            border: none;
                        }
                    }

                }
            }
        }

        .diagnosis-recommend__item-content {
            padding: 0 0 0 44px;

            @media (width < 768px) {
                padding: 0 0 0 37px;
            }

            .diagnosis-recommend__item-unit {
                background: #F7F4EF;
                padding: 16px;
                margin: 8px 0 16px 0;

                .unit-title {
                    font-size: 14px;
                    line-height: 150%;
                    letter-spacing: 0.011em;
                    margin: 0 0 16px 0;
                }

                .diagnosis-recommend__item-select {
                    position: relative;

                    @media (width < 768px) {
                        margin: 16px 0 0;
                    }

                    &:before {
                        position: absolute;
                        top: 50%;
                        left: 24px;
                        content: "";
                        width: 40px;
                        height: 100%;
                        transform: translate(0, -50%);
                        background: url('../img/recommend_select_gift_icon.svg') no-repeat center;

                        @media (width < 768px) {
                            left: 12px;
                            width: 34px;
                            height: 34px;
                        }
                    }

                    &:after {
                        position: absolute;
                        top: 50%;
                        right: 16px;
                        content: "";
                        width: 16px;
                        height: 100%;
                        transform: translate(0, -50%);
                        background: url('../img/recommend_select_icon.svg') no-repeat center;

                        @media (width < 768px) {
                            right: 12px;
                        }
                    }

                    & select {
                        color: #6E767D;
                        font-size: 16px;
                        line-height: 24px;
                        letter-spacing: 0.014em;
                        padding: 16px 24px 16px 76px;
                        width: 100%;
                        height: 72px;
                        border: 1px solid #EDE6E0;
                        background: #fff;
                        box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;
                        outline: none;
                        appearance: none; /* デフォルトの矢印を非表示 */
                        -webkit-appearance: none;
                        -moz-appearance: none;
                        cursor: pointer;

                        @media (width < 768px) {
                            font-size: 14px;
                            height: 58px;
                            padding: 16px 24px 16px 58px;
                        }
                    }
                }

                .diagnosis-recommend__item-check {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 16px;

                    @media (width < 768px) {
                        flex-flow: column;
                        gap: 8px;
                    }

                    .hidden-radio {
                        display: none;
                    }

                    .label {
                        text-align: center;
                        width: calc(50% - 8px);
                        padding: 10px 5px;
                        border-radius: 8px;
                        cursor: pointer;
                        transition: 0.3s;
                        background: #fff;
                        display: flex;
                        align-items: center;
                        justify-content: center;

                        @media (width < 768px) {
                            width: 100%;
                            padding: 8px 20px;
                        }

                        .text {
                            font-size: 14px;
                            line-height: 20px;
                            letter-spacing: 0.014em;
                        }
                    }

                    /* 選択されたボタン */
                    .label:has(.hidden-radio:checked) {
                        background: #D5C1B8;
                        color: white;
                    }
                }
            }

            .diagnosis-recommend__item-button {
                display: flex;
                align-items: center;
                gap: 16px;

                .button {
                    width: 100px;
                    padding: 8px 16px;
                    border-radius: 2px;
                    box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;
                    font-size: 14px;
                    line-height: 24px;
                    letter-spacing: 0.014em;
                    text-align: center;
                    cursor: pointer;
                    border: none;

                    &.prev-button {
                        border: 1px solid #EDE6E0;
                        background: #fff;
                        color: #6E767D;
                    }

                    &.next-button {
                        background: #D5C1B8;
                        color: #fff;

                        &:disabled {
                            opacity: 0.3;
                        }
                    }

                    &.submit-button {
                        width: calc(100% - 100px);
                    }
                }
            }
        }
    }
}

/* レコメンド選定中
-------------------------------------------- */
#spinner-orbits {
    display: none;
    margin-top: 70px;
}
.spinner-text {
    text-align: center;
    font-size: 18px;
}
.spinner-text2 {
    font-size: 18px;
}
.spinner-text-list {
    font-size: 18px;
    padding: 10px 0 10px 30px;
}
@keyframes spin {
    from {
        transform: rotate(0);
    }
    to{
        transform: rotate(359deg);
    }
}
@keyframes spin3D {
    from {
        transform: rotate3d(.5,.5,.5, 360deg);
    }
    to{
        transform: rotate3d(0deg);
    }
}
@keyframes configure-clockwise {
    0% {
        transform: rotate(0);
    }
    25% {
        transform: rotate(90deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(270deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes configure-xclockwise {
    0% {
        transform: rotate(45deg);
    }
    25% {
        transform: rotate(-45deg);
    }
    50% {
        transform: rotate(-135deg);
    }
    75% {
        transform: rotate(-225deg);
    }
    100% {
        transform: rotate(-315deg);
    }
}
@keyframes pulse {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: .25;
        transform: scale(.75);
    }
}
* {
    box-sizing: border-box;
}
.spinner-box {
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    margin: 0 auto;
}
.leo {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}
.blue-orbit {
    width: 165px;
    height: 165px;
    border: 3px solid #AC828A;
    -webkit-animation: spin3D 3s linear .2s infinite;
}
.green-orbit {
    width: 120px;
    height: 120px;
    border: 3px solid #D5C1B8;
    -webkit-animation: spin3D 2s linear 0s infinite;
}
.red-orbit {
    width: 90px;
    height: 90px;
    border: 3px solid #6E767D;
    -webkit-animation: spin3D 1s linear 0s infinite;
}
.white-orbit {
    width: 60px;
    height: 60px;
    border: 1px solid #ffffff;
    -webkit-animation: spin3D 10s linear 0s infinite;
}
.w1 {
    transform: rotate3D(1, 1, 1, 90deg);
}
.w2 {
    transform: rotate3D(1, 2, .5, 90deg);
}
.w3 {
    transform: rotate3D(.5, 1, 2, 90deg);
}
@media (max-width: 767px) {
    #spinner-orbits {
        margin-top: 0;
        margin-bottom: 70px;
        padding: 0 20px;
    }
    .spinner-text2 {
        font-size: 15px;
    }
    .spinner-text-list {
        font-size: 15px;
        padding: 10px 0 10px 0;
    }
}

/* レコメンド結果
-------------------------------------------- */
.result-recommend {
    @media (width < 768px) {
        padding: 0 !important;
    }

    .container {
        max-width: 448px;
        margin: 0 auto;
        padding: 48px 16px 31px;

        @media (width < 768px) {
            max-width: 100%;
            padding: 16px 12px 24px;
        }

        @media (width >= 768px) {
            border: 1px solid #EDE6E0;
            box-shadow: -2px 0 20px 0 #0000000A, 2px 0 20px 0 #0000000A;
        }

        .result-recommend__head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 0 20px 24px;

            @media (width < 768px) {
                margin: 0 0 8px;
            }

            .result-recommend__title {
                font-size: 28px;
                line-height: 150%;

                @media (width < 768px) {
                    font-size: 18px;
                }
            }

            .result-recommend__reset {
                font-size: 14px;
                line-height: 24px;
                letter-spacing: 0.014em;
                color: #D5C1B8;
                cursor: pointer;
                position: relative;
                padding-left: 24px;

                &:before {
                    content: "";
                    position: absolute;
                    top: 50%;
                    left: 0;
                    transform: translate(0, -50%);
                    background: url("../img/recommend_rotate_icon.svg");
                    width: 20px;
                    height: 20px;
                }
            }
        }

        .result-recommend__menu {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin: 0 20px 24px;
            position: relative;

            @media (width < 768px) {
                margin: 0 0 16px;
            }

            .result-recommend__summary {
                font-size: 14px;
                line-height: 24px;
                letter-spacing: 0.014em;
                cursor: pointer;
                border: 1px solid #EDE6E0;
                padding: 7px 24px;
                text-align: center;

                @media (width < 768px) {
                    max-width: 232px;
                    width: 100%;
                }
            }

            .result-recommend__sort {
                font-size: 14px;
                line-height: 150%;
                text-align: center;
                cursor: pointer;
                display: flex;
                align-items: center;
                gap: 10px;
                position: relative;
                padding-right: 28px;

                @media (width < 768px) {
                    width: 100%;
                    max-width: 126px;
                }

                &:before {
                    content: "";
                    position: absolute;
                    top: 50%;
                    right: 6px;
                    transform: translate(0, -50%);
                    background: url("../img/recommend_down_icon.svg");
                    width: 12px;
                    height: 12px;
                }

                .no {
                    font-size: 10px;
                    line-height: 100%;
                    letter-spacing: 0.011em;
                    background: #EDE6E0;
                    width: 22px;
                    height: 22px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
            }

            .popup-menu {
                z-index: 2;
                position: absolute;
                right: 0;
                top: 40px;
                background: white;
                border: 1px solid #EDE6E0;
                border-radius: 4px;
                width: 320px;
                box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;
                opacity: 0;
                transform: translateY(-10px);
                transition: opacity 0.3s ease-out, transform 0.3s ease-out;
                padding: 12px 8px;
                pointer-events: none;

                /* ポップアップの表示 */
                &.active {
                    opacity: 1;
                    transform: translateY(0);
                    pointer-events: auto;
                }

                .popup-menu__title {
                    font-weight: 500;
                    font-size: 16px;
                    line-height: 24px;
                    letter-spacing: 0.014em;
                    margin-bottom: 8px;
                }

                .popup-menu__detail {
                    border: 1px solid #EDE6E0;
                    padding: 8px;

                    &:last-child {
                        margin-top: 8px;
                    }

                    .title {
                        font-weight: 400;
                        font-size: 16px;
                        line-height: 150%;
                        letter-spacing: 0.014em;
                        margin-bottom: 8px;
                        text-align: left;
                    }

                    .popup-menu__list {
                        display: flex;
                        flex-wrap: wrap;
                        gap: 8px;

                        .popup-menu__radio {
                            font-size: 14px;
                            line-height: 100%;
                            letter-spacing: 0.011em;

                            & span {
                                display: inline-block;
                                padding: 6px 12px;
                                transition: all 0.2s ease;
                            }

                            & input {
                                display: none;

                                /* 選択時のスタイル */
                                &:checked + span {
                                    background: #EDE6E0;
                                    border-radius: 2px;
                                }
                            }
                        }
                    }
                }
            }

            .pc-hide {
                @media (width >= 768px) {
                    display: none;
                }
            }
        }

        .result-recommend__detail {
            .result-recommend__detail-inner {
                position: relative;

                &:after {
                    content: "";
                    background: url("../img/recommend_result_bg.png") no-repeat bottom;
                    width: 396px;
                    height: 100%;
                    position: absolute;
                    bottom: -39px;
                    left: 50%;
                    transform: translate(-50%, 0);
                    background-size: contain;

                    @media (width < 768px) {
                        width: clamp(348px, calc(348vw / 390* 100), 768px);
                        bottom: -34px;
                    }
                }

                &:has(.no-results[style*="display: block"]):after {
                    background: none;
                }

                .no-results {
                    position: relative !important;
                    z-index: 1 !important;

                    .modal-buttons {
                        margin-top: 30px;

                        .retyping-button {
                            font-size: 14px;
                            line-height: 24px;
                            letter-spacing: 0.014em;
                            padding: 8px 16px;
                            color: #fff;
                            background: #D5C1B8;
                            box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;
                            border: none;
                            border-radius: 2px;
                            cursor: pointer;

                            @media (width < 768px) {
                                width: 100%;
                            }
                        }
                    }
                }
            }
            .swiper {
                width: 100%;
                position: relative;
                background: #fff;
                border: 1px solid #EDE6E0;
                border-radius: 20px;
                box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;
            }

            .swiper-counter {
                font-size: 14px;
                line-height: 24px;
                letter-spacing: 0.014em;
                margin: 58px 0 20px 0;
                text-align: center;

                .current-slide {
                    padding-left: 12px;
                }
            }

            .swiper-button {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 12px;

                .swiper-button-next, .swiper-button-prev {
                    position: relative;
                    margin: 0;
                    font-size: 16px;
                    border: 1px solid #EDE6E0;
                    border-radius: 50%;
                    height: 48px;
                    width: 48px;
                    left: 0;
                    right: 0;
                    background: #fff;
                    box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;
                    cursor: pointer;
                    z-index: 1;
                }

                .swiper-button-prev:after,
                .swiper-button-next:after {
                    content: "";
                    background: url("../img/recommend_swiper_icon.svg");
                    width: 16px;
                    height: 16px;
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                }

                .swiper-button-next:after {
                    transform: translate(-50%, -50%) rotate(180deg);
                }

                .button-list {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 12px;
                    list-style: none;

                    .hidden-button {
                        width: 110px;
                        background: #fff;
                        cursor: pointer;
                        position: relative;
                        padding: 14px 0 14px 44px;

                        @media (width < 768px) {
                            width: 84px;
                            padding: 14px 0 14px 32px;
                        }

                        &:before {
                            content: "";
                            background: url("../img/recommend_result_close_icon.svg") no-repeat center;
                            width: 20px;
                            height: 20px;
                            position: absolute;
                            top: 50%;
                            left: 20px;
                            transform: translate(0, -50%);

                            @media (width < 768px) {
                                left: 8px;
                            }
                        }
                    }

                    .detail-button {
                        position: relative;
                        padding: 14px 0 14px 56px;
                        width: 118px;
                        background: #D5C1B8;
                        color: #fff;
                        box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;
                        cursor: pointer;

                        &:before {
                            content: "";
                            background: url("../img/recommend_result_details_icon.svg") no-repeat center;
                            width: 20px;
                            height: 20px;
                            position: absolute;
                            top: 50%;
                            left: 32px;
                            transform: translate(0, -50%);
                        }
                    }

                    .hidden-button,
                    .detail-button {
                        font-size: 14px;
                        line-height: 150%;
                        border-radius: 999px;
                        border: none;
                        text-align: left;

                        @media (width < 768px) {
                            font-size: 14px;
                        }
                    }
                }
            }

            .result-recommend__detail-img-wrap {
                height: 416px;
                overflow: hidden;

                @media (width < 768px) {
                    height: 366px;
                }
            }

            .result-recommend__detail-img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: top;
                border-radius: 20px 20px 0 0;
                display: block;
            }

            .result-recommend__detail-text {
                height: 206px;
                padding: 12px 16px 45px;
                display: flex;
                flex-flow: column;
                gap: 4px;
                opacity: 0;
                visibility: hidden;
                transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;

                @media (width < 768px) {
                    padding: 12px 16px 39px;
                }

                .swiper-slide-active & {
                    opacity: 1;
                    visibility: visible;
                }

                .detail-lead {
                    font-size: 16px;
                    font-weight: 500;
                    line-height: 150%;
                    letter-spacing: 0.014em;
                }

                .detail-title {
                    font-size: 18px;
                    font-weight: 500;
                    line-height: 150%;
                    letter-spacing: 0.014em;
                }

                .detail-category {;
                    font-size: 14px;
                    line-height: 150%;
                    letter-spacing: 0.014em;
                }

                .detail-tags {
                    display: flex;
                    align-items: center;
                    flex-wrap: wrap;
                    gap: 8px;
                    margin-top: 12px;

                    .detail-tag {
                        border: 1px solid #D5C1B8;
                        border-radius: 2px;
                        padding: 4px;
                        font-size: 14px;
                        line-height: 100%;
                        letter-spacing: 0.011em;
                        list-style: none;
                        color: #D5C1B8;
                    }
                }
            }
        }
    }

    /* モーダル (絞り込み) */
    .modal.modal-sort {
        align-items: center;

        .modal-content {
            max-width: 632px;
            width: 100%;
            border-radius: 4px 4px 0 0;
            display: block;
            padding: 0;

            @media (width < 768px) {
                width: 100%;
                height: 100vh;
                overflow: scroll;
            }

            .close-modal {
                top: 14px;
                right: 12px;
            }

            .modal-sort__head {
                font-weight: 700;
                font-size: 20px;
                line-height: 24px;
                letter-spacing: 0.014em;
                text-align: left;
                padding: 18px 24px;
                flex-shrink: 0;
            }

            .modal-sort__detail {
                background: #FFFFFF;
                padding: 24px 24px 0;
                border-top: 1px solid #EDE6E0;
                flex-grow: 1;
                overflow-y: auto;

                @media (width < 768px) {
                    width: 100%;
                    height: calc(100vh - 60px);
                    padding-bottom: 100px;
                }

                .modal-sort__detail-inner {
                    border: 1px solid #EDE6E0;
                    padding: 8px;

                    .modal-sort__title {
                        font-weight: 400;
                        font-size: 16px;
                        line-height: 150%;
                        letter-spacing: 0.014em;
                        margin-bottom: 8px;
                        text-align: left;
                    }

                    .modal-sort__list {
                        display: flex;
                        flex-wrap: wrap;
                        gap: 8px;

                        .modal-sort__radio {
                            font-size: 14px;
                            line-height: 100%;
                            letter-spacing: 0.011em;

                            & span {
                                display: inline-block;
                                padding: 6px 12px;
                                transition: all 0.2s ease;
                            }

                            & input {
                                display: none;

                                /* 選択時のスタイル */
                                &:checked + span {
                                    background: #EDE6E0;
                                    border-radius: 2px;
                                }
                            }
                        }
                    }

                    .modal-sort__select {
                        border: 1px solid #EDE6E0;
                        padding: 6px 5px 6px 70px;

                        @media (width < 768px) {
                            width: 91px;
                            height: 24px;
                            padding: 0 0 0 5px;
                        }
                    }

                    .category-list-container {
                        margin-right: 22px;

                        .category-item {
                            .category-item__parent {
                                display: flex;
                                justify-content: space-between;

                                .category-toggle-button {
                                    cursor: pointer;
                                    user-select: none;
                                }
                            }

                            .category-item__children {
                                display: none;
                                flex-direction: column;
                                align-items: flex-start;
                                margin-left: 45px;
                            }

                            .category-item__parent,
                            .category-item__children {
                                .popup-menu__checkbox {
                                    display: inline-flex;
                                    align-items: center;
                                    cursor: pointer;
                                    width: 100%;

                                    .checkbox-category {
                                        display: none;
                                    }

                                    .checkbox-custom {
                                        display: inline-block;
                                        width: 16px;
                                        height: 16px;
                                        margin-right: 8px;
                                        border: 1px solid #EDE6E0;
                                        border-radius: 3px;
                                        position: relative;
                                        background-color: #fff;
                                    }

                                    .checkbox-category:checked + .checkbox-custom {
                                        background-color: #D5C1B8;
                                        border-color: #D5C1B8;

                                        &::after {
                                            content: '';
                                            position: absolute;
                                            left: 5px;
                                            top: 1px;
                                            width: 5px;
                                            height: 10px;
                                            border: solid white;
                                            border-width: 0 2px 2px 0;
                                            transform: rotate(45deg);
                                        }
                                    }

                                    .checkbox-name {
                                        width: 100%;
                                        text-align: left;
                                    }
                                }
                            }
                        }
                    }
                }

                .modal-sort__actions {
                    padding: 12px 24px;
                    display: flex;
                    align-items: center;
                    justify-content: flex-end;
                    gap: 8px;
                    flex-shrink: 0;
                    background-color: #fff;

                    @media (width < 768px) {
                        flex-direction: row !important;
                        border: none;
                        position: fixed;
                        left: 0;
                        bottom: 0;
                        flex-flow: column;
                        gap: 16px;
                        width: 100%;
                        padding: 16px 12px;
                    }

                    .button-apply {
                        font-size: 14px;
                        line-height: 24px;
                        letter-spacing: 0.014em;
                        padding: 8px 16px;
                        color: #fff;
                        background: #D5C1B8;
                        box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;
                        border: none;
                        border-radius: 2px;
                        cursor: pointer;
                        width: 146px;

                        @media (width < 768px) {
                            width: 100%;
                        }
                    }

                    .button-reset {
                        font-size: 14px;
                        line-height: 24px;
                        letter-spacing: 0.014em;
                        border: 1px solid #EDE6E0;
                        padding: 8px 16px;
                        background: none;
                        color: #6E767D;
                        cursor: pointer;
                        width: 146px;

                        @media (width < 768px) {
                            width: 100%;
                        }
                    }
                }
            }
        }
    }

    /* モーダル (概要) */
    .modal.modal-summary {
        .modal-content {
            display: block;
            padding: 0;

            @media (width < 768px) {
                width: 100%;
                height: 100vh;
                overflow: scroll;
                padding-bottom: 120px;
            }

            .close-modal {
                @media (width < 768px) {
                    top: 14px;
                    right: 12px;
                }
            }

            .modal-summary__head {
                font-weight: 700;
                font-size: 20px;
                line-height: 150%;
                text-align: left;
                padding: 12px 24px 0;

                @media (width < 768px) {
                    padding: 20px 12px;
                    text-align: center;
                    font-weight: 500;
                    font-size: 16px;
                    line-height: 24px;
                    letter-spacing: 0.014em;
                    border-bottom: 1px solid #EDE6E0;
                }
            }

            .modal-summary__detail {
                border: 1px solid #EDE6E0;
                padding: 16px 24px;
                margin: 42px 24px 24px;

                @media (width < 768px) {
                    border: none;
                    padding: 26px 12px 16px;
                    margin: 0;
                }

                .modal-summary__title {
                    font-weight: 700;
                    font-size: 24px;
                    line-height: 150%;
                    letter-spacing: 0.014em;
                    text-align: left;
                    margin-bottom: 24px;

                    @media (width < 768px) {
                        font-size: 18px;
                    }

                    .lead {
                        font-weight: 500;
                        font-size: 16px;
                        line-height: 150%;
                        letter-spacing: 0.014em;
                        display: block;
                        margin: 0 0 4px 0;
                        text-align: left;

                        @media (width < 768px) {
                            margin: 0 0 8px 0;
                        }
                    }
                }

                .modal-summary__detail-ai {
                    text-align: left;

                    .message-area {
                        background: #fff;
                        padding: 12px;
                        border-radius: 0 16px 16px 16px;
                        margin: 0 24px 16px 0;

                        .message-area__head {
                            font-size: 12px;
                            line-height: 24px;
                            letter-spacing: 0.014em;
                            margin-bottom: 8px;
                            position: relative;
                            padding-left: 24px;

                            &:before {
                                position: absolute;
                                top: 50%;
                                left: 0;
                                content: "";
                                width: 20px;
                                height: 20px;
                                transform: translate(0, -50%);
                                background: url('../img/recommend_result_gift_icon.svg') no-repeat center;
                                background-size: 12px;
                                background-color: #D5C1B8;
                                border-radius: 2px;
                            }
                        }

                        .message-area__text {
                            font-size: 14px;
                            line-height: 150%;
                            letter-spacing: 0.011em;
                        }
                    }

                    .recommend-area {
                        color: #fff;
                        background: #D5C1B8;
                        padding: 12px;
                        border-radius: 16px 0 16px 16px;
                        margin: 0 0 16px 64px;

                        @media (width < 768px) {
                            margin: 0 0 16px 24px;
                        }

                        .recommend-area__text {
                            font-size: 14px;
                            line-height: 150%;
                            letter-spacing: 0.011em;
                        }
                    }
                }

                .modal-summary__detail-diagnosis {
                    text-align: left;
                    background: #FFFFFF;
                    padding: 32px 24px;

                    @media (width < 768px) {
                        padding: 24px 12px;
                    }

                    .diagnosis-top {
                        margin-bottom: 32px;
                    }

                    .diagnosis-title {
                        font-weight: 500;
                        font-size: 16px;
                        line-height: 150%;
                        letter-spacing: 0.014em;
                        margin-bottom: 16px;
                    }

                    .diagnosis-head {
                        font-size: 14px;
                        line-height: 24px;
                        letter-spacing: 0.014em;
                        margin-bottom: 8px;
                        position: relative;
                        padding-left: 34px;

                        &:before {
                            position: absolute;
                            top: 50%;
                            left: 0;
                            content: "";
                            width: 26px;
                            height: 26px;
                            transform: translate(0, -50%);
                            background: url('../img/recommend_result_gift_icon.svg') no-repeat center;
                            background-size: 18px;
                            background-color: #D5C1B8;
                            border-radius: 2px;
                        }
                    }

                    .diagnosis-tags {
                        display: flex;
                        flex-wrap: wrap;
                        gap: 8px 16px;

                        .diagnosis-tag {
                            background: #EDE6E0;
                            padding: 6px 12px 6px 24px;
                            font-size: 14px;
                            line-height: 100%;
                            letter-spacing: 0.011em;
                            position: relative;
                            border-radius: 2px;

                            &:before {
                                position: absolute;
                                top: 50%;
                                left: 12px;
                                content: "#";
                                width: 8px;
                                height: 14px;
                                transform: translate(0, -50%);
                                background-size: contain;
                            }
                        }
                    }
                }
            }

            .modal-summary__buttons {
                border-top: 1px solid #EDE6E0;
                padding: 12px 24px;
                display: flex;
                align-items: center;
                justify-content: flex-end;
                gap: 8px;
                background: #F7F4EF;

                @media (width < 768px) {
                    border: none;
                    position: fixed;
                    bottom: 0;
                    flex-flow: column;
                    gap: 16px;
                    width: 100%;
                    padding: 16px 12px;
                }

                .retyping-button {
                    font-size: 14px;
                    line-height: 24px;
                    letter-spacing: 0.014em;
                    border: 1px solid #EDE6E0;
                    padding: 8px 16px;
                    background: none;
                    color: #6E767D;
                    cursor: pointer;

                    @media (width < 768px) {
                        width: 100%;
                    }
                }

                .result-button {
                    font-size: 14px;
                    line-height: 24px;
                    letter-spacing: 0.014em;
                    padding: 8px 16px;
                    color: #fff;
                    background: #D5C1B8;
                    box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;
                    border: none;
                    border-radius: 2px;
                    cursor: pointer;

                    @media (width < 768px) {
                        width: 100%;
                    }
                }
            }
        }
    }

    /* モーダル (詳細) */
    .modal.modal-detail {
        .modal-content {
            width: 848px;
            padding: 76px 32px 16px;
            display: block;
            height: 80%;
            overflow: scroll;

            @media (width < 768px) {
                height: 97%;
                margin: 0 12px;
                padding: 64px 12px 16px;
            }

            .close-modal {
                width: 52px;
                height: 52px;

                @media (width < 768px) {
                    width: 36px;
                    height: 36px;
                    position: fixed;
                    top: 22px;
                    right: 24px;
                }
            }

            .modal-detail__title {
                font-weight: 700;
                font-size: 26px;
                line-height: 150%;
                letter-spacing: 0.014em;
                text-align: left;
                margin-bottom: 16px;

                @media (width < 768px) {
                    font-size: 16px;
                }

                .lead {
                    font-weight: 500;
                    font-size: 18px;
                    line-height: 150%;
                    letter-spacing: 0.014em;
                    display: block;
                    margin: 0 0 8px 0;
                    text-align: left;

                    @media (width < 768px) {
                        font-size: 14px;
                    }
                }
            }

            .modal-detail__top {
                margin-bottom: 16px;

                @media (width < 768px) {
                    margin-bottom: 0;
                }

                & img {
                    display: block;
                }

                .modal-detail__top-ai {
                    text-align: left;
                    padding: 24px 32px;
                    font-size: 14px;
                    line-height: 150%;
                    letter-spacing: 0.011em;
                    background: #fff;

                    @media (width < 768px) {
                        padding: 12px;
                    }

                    .lead {
                        text-align: left;
                        margin-bottom: 12px;
                        font-weight: 700;
                        font-size: 14px;
                        line-height: 150%;
                        letter-spacing: 0.011em;
                    }
                }

                .modal-detail__top-diagnosis {
                    padding: 24px 32px;
                    background: #fff;

                    @media (width < 768px) {
                        padding: 12px 12px 15px;
                        margin-bottom: 10px;
                    }

                    .lead {
                        font-weight: 500;
                        font-size: 16px;
                        line-height: 150%;
                        letter-spacing: 0.014em;
                        text-align: left;
                        margin-bottom: 18px;
                    }

                    .tags {
                        display: flex;
                        flex-direction: column;
                        align-items: flex-start;
                        gap: 16px;

                        .tag-text {
                            text-align: left;

                            .tag {
                                font-size: 14px;
                                line-height: 100%;
                                letter-spacing: 0.011em;
                                position: relative;
                                padding: 6px 12px 6px 12px;
                                background: #F7F4EF;

                                @media (width < 768px) {
                                    margin-top: 5px;
                                    display: inline-block;
                                }
                            }
                        }
                    }
                }
            }

            .modal-detail__story {
                background: #fff;
                display: flex;
                margin-bottom: 16px;

                @media (width < 768px) {
                    display: block;
                    margin-bottom: 0;
                }

                .story-img {
                    width: 50%;

                    @media (width < 768px) {
                        width: 100%;
                    }

                    & img {
                        display: block;
                    }
                }

                .text-area {
                    text-align: left;
                    width: 50%;
                    padding: 24px 32px;
                    position: relative;

                    @media (width < 768px) {
                        width: 100%;
                        padding: 24px 12px;
                    }

                    .text-area__title {
                        font-weight: 700;
                        font-size: 18px;
                        line-height: 150%;
                        letter-spacing: 0.014em;
                        margin-bottom: 12px;
                    }

                    .text-area__desc {
                        font-size: 14px;
                        line-height: 150%;
                        letter-spacing: 0.011em;
                        margin-bottom: 24px;
                    }

                    .text-area__tags {
                        display: flex;
                        flex-wrap: wrap;
                        gap: 8px;
                        margin-bottom: 36px;

                        .tag {
                            font-size: 12px;
                            line-height: 100%;
                            letter-spacing: 0.011em;
                            position: relative;
                            padding-left: 9px;

                            &:before {
                                position: absolute;
                                top: 50%;
                                left: 0;
                                content: "#";
                                width: 7px;
                                height: 12px;
                                transform: translate(0, -50%);
                                background-size: contain;
                            }
                        }
                    }

                    .text-area__more {
                        font-weight: 500;
                        font-size: 14px;
                        line-height: 24px;
                        letter-spacing: 0.014em;
                        color: #D5C1B8;
                        position: relative;
                        bottom: 24px;
                        padding-right: 20px;
                        display: inline-block;

                        &:before {
                            position: absolute;
                            top: 50%;
                            right: 0;
                            content: "";
                            background: url("../img/recommend_result_story-icon.svg");
                            width: 16px;
                            height: 16px;
                            transform: translate(0, -50%);
                            background-size: contain;
                        }

                        & a {
                            cursor: pointer;
                            color: #D5C1B8;
                        }
                    }
                }
            }

            .modal-detail__lineup {
                background: #fff;

                .head {
                    text-align: left;
                    font-size: 20px;
                    line-height: 150%;
                    padding: 24px 32px;

                    @media (width < 768px) {
                        padding: 24px 12px;
                    }
                }

                .list {
                    display: flex;
                    flex-wrap: wrap;
                    row-gap: 16px;

                    @media (width < 768px) {
                        display: block;
                        row-gap: 0;
                    }

                    .item {
                        width: 50%;

                        @media (width < 768px) {
                            width: 100%;
                        }

                        & img {
                            display: block;
                            height: 261px;
                            object-fit: cover;

                            @media (width < 768px) {
                                height: 228px;
                            }
                        }

                        .text-area {
                            padding: 12px 32px 16px;
                            text-align: left;

                            .item-name {
                                font-weight: 500;
                                font-size: 16px;
                                line-height: 150%;
                                letter-spacing: 0.014em;
                                margin-bottom: 10px;
                            }

                            .price {
                                font-weight: 500;
                                font-size: 14px;
                                line-height: 150%;
                                letter-spacing: 0.014em;
                            }
                        }
                    }
                }
            }
        }
    }
}


