@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital@0;1&family=Noto+Sans+JP:wght@100..900&display=swap');

body {
    background: #F7F4EF;
    color: #6E767D;
    font-size: 16px;
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

img {
    width: 100%;
}

a {
    text-decoration: none;
    color: #6E767D;
}

p,
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.button {
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.014em;
    border-radius: 2px;

    &.default-button {
        border: 1px solid #EDE6E0;
        box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;
        padding: 8px;
        background: #fff;
        color: #6E767D;
    }

    &.default-button:disabled {
        background-color: #ccc;
        color: #666;
        cursor: not-allowed;
        opacity: 0.6;
    }

    &.active-button {
        padding: 12px;
        color: #fff;
        background: #D5C1B8;
        box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;
        border: none;

        &:disabled {
            opacity: 0.3;
        }
    }
}

/* ヘッダー */
.header {
    border-bottom: 1px solid #EDE6E0;
    color: #AC828A;

    .header__inner {
        max-width: 1312px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        height: 68px;

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

        .logo-area {
            display: flex;
            align-items: center;
            gap: 32px;

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

            .logo {
                max-width: 234px;

                @media (width < 900px) {
                    max-width: 27vw;
                }

                @media (width < 768px) {
                    max-width: 175px;
                }

                .logo-img {
                    width: 100%;
                }
            }

            .date {
                background: #EDE6E0;
                padding: 6px 12px;
                border-radius: 2px;
                font-size: clamp(12px, calc(12vw / 768* 100), 14px);
                letter-spacing: 0.011em;
                display: flex;
                align-items: center;
                justify-content: center;
                min-width: 139px;
                height: 30px;

                @media (width < 768px) {
                    padding: 6px 10px;
                    min-width: 121px;
                    height: 28px;
                }

                .no {
                    font-size: clamp(16px, calc(16vw / 768* 100), 18px);
                    font-weight: bold;
                    margin: 0 4px;
                }
            }
        }

        .nav-menu {
            z-index: 3;
            position: relative;

            @media (width < 768px) {
                position: fixed;
                top: 0;
                right: -100%;
                width: 100%;
                height: 100dvh;
                box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
                transition: right 0.3s ease-in-out;
                backdrop-filter: blur(10px);
                background: #6D6C674D;
                display: flex;
                justify-content: flex-end;
            }

            &.open {
                @media (width < 768px) {
                    right: 0;
                }
            }

            .close-button {
                display: none;

                @media (width < 768px) {
                    display: block;
                    position: absolute;
                    top: 14px;
                    left: 12px;
                    width: 48px;
                    height: 48px;
                    background: #6E767D;
                    border-radius: 50%;
                    cursor: pointer;
                }

                &:before {
                    @media (width < 768px) {
                        content: "";
                        background: url('../img/modal_close_icon.svg') no-repeat center;
                        position: absolute;
                        top: 50%;
                        left: 50%;
                        width: 24px;
                        height: 24px;
                        transform: translate(-50%, -50%);
                    }
                }
            }

            & ul {
                display: flex;
                align-items: center;
                list-style: none;
                gap: 16px;
                font-size: clamp(12px, calc(12vw / 768* 100), 14px);

                @media (width < 900px) {
                    gap: 10px;
                    font-size: clamp(11px, calc(11vw / 768* 100), 12px);
                }

                @media (width < 768px) {
                    flex-direction: column;
                    padding: 56px 32px;
                    background: #F7F4EF;
                    width: 308px;
                    height: 100vh;
                    font-size: 16px;
                }

                & li {
                    position: relative;

                    @media (width < 768px) {
                        width: 100%;
                        text-align: center;
                    }

                    &.active {
                        border-bottom: 1px solid #6E767D;
                    }

                    & a {
                        padding: 6px 12px;
                        display: block;

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

                    &.nav-menu__order-management {

                        &:hover .order-management-menu,
                        .order-management-menu:hover {
                            opacity: 1;
                            transform: translateY(0);
                            pointer-events: initial;
                        }

                        .order-management-menu {
                            position: absolute;
                            top: 100%;
                            left: 0;
                            background: white;
                            border: 1px solid #EDE6E0;
                            border-radius: 4px;
                            width: 200px;
                            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;
                            pointer-events: none;
                            z-index: 10;

                            @media (width < 768px) {
                                display: none;
                            }

                            .popup-item {
                                font-size: 14px;
                                line-height: 24px;
                                letter-spacing: 0.014em;
                                color: #6E767D;
                                display: block;
                                width: 100%;
                                text-align: left;
                                padding: 12px;
                                text-decoration: none;
                                border-bottom: 1px solid #EDE6E0;
                                cursor: pointer;

                                &:last-child {
                                    border-bottom: none;
                                }

                                &:hover {
                                    background: #F7F4EF;
                                }

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

                    &.nav-menu__auth-buttons {
                        display: flex;
                        gap: 8px;
                        align-items: center;

                        @media (width < 768px) {
                            flex-direction: column;
                            width: 100%;
                            gap: 12px;
                        }

                        & a.button.active-button {
                            padding: 8px 16px;
                            width: auto;
                            white-space: nowrap;
                            text-align: center;
                            display: inline-block;
                            color: #fff !important;
                            background: #d77d8b !important;
                            box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;
                            border: none;

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

            .nav-menu__icon {
                padding: 8px;
                border: 1px solid #EDE6E0;
                border-radius: 2px;
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;

                .nav-menu__icon-img {
                    width: 20px;
                    height: 20px;
                }
            }

            .popup-menu {
                position: absolute;
                right: 0;
                bottom: -150px;
                background: white;
                border: 1px solid #EDE6E0;
                border-radius: 4px;
                width: 200px;
                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;
                pointer-events: none;

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

                .popup-item {
                    font-size: 14px;
                    line-height: 24px;
                    letter-spacing: 0.014em;
                    cursor: pointer;
                    border: none;
                    background: no-repeat;
                    color: #6E767D;
                    display: block;
                    width: 100%;
                    text-align: left;
                    padding: 0;

                    & a {
                        padding: 12px;
                    }

                    &.question,
                    &.contact {
                        position: relative;

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

            .nav-menu__icons {
                display: none;

                @media (width < 768px) {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 24px;
                    padding: 16px 0 0;
                }

                &.active {
                    border-bottom: none;
                }
            }

            .nav-menu__buttons {
                display: none;

                @media (width < 768px) {
                    display: block;
                    position: absolute;
                    bottom: 56px;
                    width: auto;
                }

                .button {
                    background: none;
                    border: none;
                    font-size: 16px;
                    line-height: 24px;
                    letter-spacing: 0.014em;
                    color: #6E767D;
                    padding: 0 !important;
                    position: relative;
                    display: block;

                    & a {
                        padding: 16px;

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


                    &:before {
                        @media (width < 768px) {
                            content: "";
                            background: url("../img/link_icon.svg") no-repeat center;
                            background-size: contain;
                            width: 20px;
                            height: 20px;
                            position: absolute;
                            top: 50%;
                            right: 0;
                            transform: translate(0, -50%);
                        }
                    }

                    &:last-child {
                        &:before {
                            @media (width < 768px) {
                                right: 8px;
                            }
                        }
                    }
                }
            }
        }

        /* ハンバーガーメニュー */
        .hamburger {
            display: none;

            @media (width < 768px) {
                display: flex;
                position: relative;
                align-items: center;
                justify-content: center;
                width: 36px;
                height: 36px;
                padding: 8px;
                cursor: pointer;
                z-index: 3;
                border: 1px solid #EDE6E0;
                border-radius: 2px;
                transition: 0.5s;
            }

            &.open {
                @media (width < 768px) {
                    opacity: 0;
                    visibility: hidden;
                    transition: 0s;
                }
            }

            .hamburger__icon {
                @media (width < 768px) {
                    width: 20px;
                    height: 20px;
                }
            }
        }
    }

    /* 締切りマインドバナー */
    .reminder {
        height: 56px;
        text-align: center;
        background-color: #EDE6E0;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;

        @media (width < 768px) {
            font-size: 12px;
            display: flex;
            flex-direction: column;
        }

        .reminder_top {
            display: flex;
            align-items: center;
        }

        & img {
            width: 24px;
            height: 24px;
            margin-right: 8px;

            @media (width < 768px) {
                margin-right: 6px;
            }
        }

        .remind_label {
            font-size: 16px;
            font-weight: 700;
            padding-right: 4px;

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

        .remind_days {
            font-size: 20px;
            font-weight: 700;
            padding: 0 4px;

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

        .remind_text {
            padding-right: 12px;

            @media (width < 768px) {
                padding-right: 8px;
            }
        }

        .remind_limit {
            position: relative;
            padding-left: 12px;

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

            &:before {
                content: "";
                position: absolute;
                top: 50%;
                left: 0;
                width: 1px;
                height: 11px;
                background: #ffffff;
                transform: translate(0, -50%);

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

}

.main {
    max-width: 1312px;
    margin: 0 auto;
    padding: 0 16px;

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

    .common-title {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        font-size: 28px;
        text-align: center;
        line-height: 150%;
        margin: 48px 0 32px;

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

        &:before,
        &:after {
            content: "";
            flex-grow: 1;
            height: 1px;
            background-color: #6E767D;
            max-width: 200px;
            margin: 0 24px;
        }

        &:before {
            margin: 0 24px 0 0;
        }

        &:after {
            margin: 0 0 0 24px;
        }
    }

    .common-lead {
        font-size: 14px;
        line-height: 24px;
        letter-spacing: 0.014em;
        text-align: center;
        margin-bottom: 32px;

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

    &.ai-recommend,
    &.diagnosis-recommend {
        .container {
            max-width: 632px;
            margin: 0 auto 18px;
        }
    }

    &.login,
    &.maintenance,
    &.status-404,
    &.status-405 {
        .center {
            text-align: center;
        }

        position: relative;
        height: 100vh;

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

        .container {
            width: 100%;
            max-width: 568px;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);

            .login__detail {
                background: #fff;
                padding: 48px 24px;
                z-index: 1;
                position: relative;
                border: 1px solid #EDE6E0;
                box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;

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

                .login__detail-title,
                .login-mail,
                .login-password {
                    padding: 0 12px;
                }

                .login__detail-title {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    position: relative;
                    text-align: center;
                    margin-bottom: 32px;
                    font-size: 20px;
                    line-height: 150%;

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

                    &:before,
                    &:after {
                        content: "";
                        flex-grow: 1;
                        height: 1px;
                        background-color: #6E767D;
                        max-width: 184px;
                        margin: 0 24px;

                        @media (width < 768px) {
                            max-width: 95px;
                        }
                    }

                    &:before {
                        margin: 0 24px 0 0;
                    }

                    &:after {
                        margin: 0 0 0 24px;
                    }
                }

                .login-mail {
                    margin-bottom: 24px;

                    .login-mail__label {
                        font-size: 14px;
                        line-height: 20px;
                        letter-spacing: 0.014em;
                        margin-bottom: 16px;
                        display: block;
                    }

                    .login-mail__input {
                        padding: 10px 16px;
                        border: 1px solid #EDE6E0;
                        border-radius: 4px;
                        font-size: 14px;
                        line-height: 20px;
                        letter-spacing: 0.014em;
                        width: 100%;
                        height: 44px;

                        &::placeholder {
                            color: #D5C1B8;
                        }
                    }
                }

                .login-password {
                    margin-bottom: 48px;

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

                    .login-password__label {
                        font-size: 14px;
                        line-height: 20px;
                        letter-spacing: 0.014em;
                        margin-bottom: 16px;
                        display: block;
                    }

                    .login-password__container {
                        display: flex;
                        align-items: center;
                        position: relative;
                        width: 100%;
                        color: #D5C1B8;
                        margin-bottom: 16px;

                        .login-password__input {
                            flex: 1;
                            padding: 10px 46px 10px 16px;
                            border: 1px solid #EDE6E0;
                            border-radius: 4px;
                            font-size: 14px;
                            line-height: 20px;
                            letter-spacing: 0.014em;
                            height: 44px;

                            &::placeholder {
                                color: #D5C1B8;
                            }
                        }

                        & button {
                            position: absolute;
                            right: 16px;
                            background: none;
                            border: none;
                            cursor: pointer;
                            padding: 0;

                            &.icon-transparent {
                                opacity: 0.4;
                            }
                        }
                    }

                    .login-password__info {
                        color: #D5C1B8;
                        font-size: 14px;
                        line-height: 20px;
                        letter-spacing: 0.014em;
                        text-align: right;

                        & a {
                            color: #D5C1B8;
                        }
                    }
                }

                .active-button {
                    margin-bottom: 24px;
                }

                .default-button {
                    border: none;
                    box-shadow: none;
                    color: #D5C1B8;
                    padding: 0;

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

    /*
    新規会員登録ページ
    会員情報確認ページ
    */
    &.register {
        .container {
            width: 100%;
            max-width: 848px;
            margin: 0 auto 24px;

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

            .register__title {
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                text-align: center;
                margin: 56px 0 32px;
                font-size: 28px;
                line-height: 150%;

                @media (width < 768px) {
                    margin: 32px 0 24px;
                    font-size: 20px;
                }

                &:before,
                &:after {
                    content: "";
                    flex-grow: 1;
                    height: 1px;
                    background-color: #6E767D;
                    max-width: 316px;
                    margin: 0 24px;

                    @media (width < 768px) {
                        max-width: 99px;
                    }
                }

                &:before {
                    margin: 0 24px 0 0;
                }

                &:after {
                    margin: 0 0 0 24px;
                }
            }

            .register__detail {
                background: #fff;
                padding: 32px 64px;
                border: 1px solid #EDE6E0;

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

                .register__table {
                    border: 1px solid #EDE6E0;
                    border-collapse: collapse;
                    width: 100%;
                    margin-bottom: 48px;

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

                    .register__tr {
                        border-bottom: 1px solid #EDE6E0;

                        &:last-child {
                            border: none;
                        }

                        .register__th {
                            background: #F7F4EF;
                            text-align: left;
                            font-size: 14px;
                            font-weight: 400;
                            line-height: 150%;
                            letter-spacing: 0.011em;
                            width: 160px;
                            padding: 16px;
                            vertical-align: top;
                            display: table-cell;

                            .required-label {
                                display: block;
                                background: #D5C1B8;
                                padding: 4px 6px;
                                font-size: 12px;
                                line-height: 100%;
                                letter-spacing: 0.011em;
                                width: 37px;
                                margin-top: 12px;
                                color: #fff;
                                border-radius: 2px;
                            }
                        }

                        .register__td {
                            padding: 16px;
                            font-size: 14px;
                            line-height: 150%;
                            letter-spacing: 0.011em;

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

                            .sp-title {
                                @media (width < 768px) {
                                    background: #F7F4EF;
                                    width: 100%;
                                    display: block;
                                    padding: 8px 12px;
                                    border-bottom: 1px solid #EDE6E0;
                                }

                                .required-label {
                                    display: inline-block;
                                    background: #D5C1B8;
                                    padding: 4px 6px;
                                    font-size: 12px;
                                    line-height: 100%;
                                    letter-spacing: 0.011em;
                                    width: 37px;
                                    margin-left: 12px;
                                    color: #fff;
                                    border-radius: 2px;
                                }
                            }

                            .calendar-container,
                            .address-form {
                                @media (width < 768px) {
                                    padding: 16px 12px;
                                }
                            }
                        }

                        &.register-name,
                        &.register-mail {
                            margin-bottom: 24px;

                            .register-name__input,
                            .register-mail__input {
                                padding: 10px 16px;
                                border: 1px solid #EDE6E0;
                                border-radius: 4px;
                                font-size: 14px;
                                line-height: 24px;
                                letter-spacing: 0.014em;
                                max-width: 467px;
                                width: 100%;
                                height: 40px;

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

                                &::placeholder {
                                    color: #D5C1B8;
                                }
                            }
                        }

                        &.register-password {
                            .register-password__wrap {
                                @media (width < 768px) {
                                    padding: 16px 12px;
                                }

                                .register-password__info {
                                    font-size: 12px;
                                    line-height: 150%;
                                    letter-spacing: 0.011em;
                                    margin-bottom: 5px;
                                }

                                .register-password__container {
                                    display: flex;
                                    align-items: center;
                                    position: relative;
                                    width: 240px;
                                    color: #D5C1B8;

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

                                    .register-password__input {
                                        flex: 1;
                                        padding: 10px 46px 10px 16px;
                                        border: 1px solid #EDE6E0;
                                        border-radius: 4px;
                                        font-size: 14px;
                                        line-height: 20px;
                                        letter-spacing: 0.014em;
                                        height: 40px;

                                        &::placeholder {
                                            color: #D5C1B8;
                                        }
                                    }

                                    & button {
                                        position: absolute;
                                        right: 16px;
                                        background: none;
                                        border: none;
                                        cursor: pointer;
                                        padding: 0;

                                        &.icon-transparent {
                                            opacity: 0.4;
                                        }
                                    }
                                }
                            }
                        }

                        &.register-date {
                            .register-date__wrap {
                                @media (width < 768px) {
                                    padding: 16px 12px;
                                }

                                .register-date__info {
                                    font-size: 12px;
                                    line-height: 150%;
                                    letter-spacing: 0.011em;
                                    margin-bottom: 5px;
                                }

                                .calendar-container {
                                    @media (width < 768px) {
                                        padding: 0;
                                    }
                                }
                            }
                        }

                        &.register-placard,
                        &.register-route {

                            .register-placard__wrap,
                            .register-route__wrap {
                                @media (width < 768px) {
                                    padding: 16px 12px;
                                }

                                .register-placard__info,
                                .register-route__info {
                                    font-size: 12px;
                                    line-height: 150%;
                                    letter-spacing: 0.011em;
                                    margin-bottom: 12px;
                                }

                                .options {
                                    .option {
                                        margin-bottom: 12px;

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

                                        .custom-radio {
                                            display: flex;
                                            align-items: center;
                                            gap: 8px;
                                            cursor: pointer;
                                            position: relative;
                                            font-size: 14px;
                                            line-height: 20px;
                                            letter-spacing: 0.014em;
                                            transition: all 0.3s ease;

                                            & input {
                                                display: none;
                                                /* ラジオボタンを非表示 */

                                                /* 選択されたときのスタイル */
                                                &:checked+.circle {
                                                    border: 1px solid #D5C1B8;

                                                    &::after {
                                                        content: "";
                                                        width: 12px;
                                                        height: 12px;
                                                        background: #D5C1B8;
                                                        border-radius: 50%;
                                                    }
                                                }
                                            }

                                            .circle {
                                                width: 20px;
                                                height: 20px;
                                                border: 1px solid #12171A33;
                                                border-radius: 50%;
                                                position: relative;
                                                display: flex;
                                                align-items: center;
                                                justify-content: center;
                                            }
                                        }
                                    }
                                }
                            }
                        }

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

                .buttons {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 24px;

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

                    .button {
                        height: 48px;

                        &.default-button {
                            width: 103px;

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

                        &.active-button {
                            width: 320px;

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

                    &.confirm {
                        .button {
                            &.active-button {
                                @media (width < 768px) {
                                    width: 231px;
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    &.register-confirm {
        @media (width >=768px) {
            position: absolute;
            width: 100%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .container {
            .register__title {
                margin: 0 0 32px;

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

    /*
    パスワード変更手続きページ　
    パスワード再設定ページ
    */
    &.password {
        @media (width >=768px) {
            position: absolute;
            width: 100%;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .container {
            width: 100%;
            max-width: 632px;
            margin: 0 auto;
            height: 100vh;
            position: relative;

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

            .back-button {
                font-size: 12px;
                line-height: 150%;
                letter-spacing: 0.014em;
                border: 1px solid #EDE6E0;
                border-radius: 2px;
                position: relative;
                display: inline-block;
                margin: 24px 0 0 32px;

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

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

                & a {
                    padding: 6px 12px 6px 28px;
                    display: block;
                    cursor: pointer;
                }
            }

            .password__detail {
                background: #fff;
                padding: 48px 24px;
                border: 1px solid #EDE6E0;
                box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 100%;
                max-width: 568px;

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

                .title {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    position: relative;
                    text-align: center;
                    margin-bottom: 32px;
                    font-size: 20px;
                    line-height: 150%;
                    padding: 0 12px;

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

                    &:before,
                    &:after {
                        content: "";
                        flex-grow: 1;
                        height: 1px;
                        background-color: #6E767D;
                        max-width: 124px;
                        margin: 0 24px;

                        @media (width < 768px) {
                            max-width: 35px;
                        }
                    }

                    &:before {
                        margin: 0 24px 0 0;
                    }

                    &:after {
                        margin: 0 0 0 24px;
                    }
                }

                .attention {
                    margin-bottom: 20px;
                    text-align: center;
                    font-size: 14px;
                }

                .mail-field {
                    padding: 0 12px;
                    margin-bottom: 48px;

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

                    .mail-field__title {
                        display: block;
                        font-size: 14px;
                        line-height: 20px;
                        letter-spacing: 0.014em;
                        margin-bottom: 16px;
                    }

                    .mail-field__input {
                        padding: 10px 16px;
                        border: 1px solid #EDE6E0;
                        border-radius: 4px;
                        font-size: 14px;
                        line-height: 24px;
                        letter-spacing: 0.014em;
                        width: 100%;
                        height: 44px;

                        &::placeholder {
                            color: #D5C1B8;
                        }
                    }
                }

                .buttons {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 24px;

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

                    .button {
                        height: 48px;
                    }

                    &.confirm {
                        .button {
                            &.active-button {
                                @media (width < 768px) {
                                    width: 231px;
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    &.password-change {
        .container {
            .password__detail {
                .title {

                    &:before,
                    &:after {
                        max-width: 144px;

                        @media (width < 768px) {
                            max-width: 55px;
                        }
                    }
                }

                .password-field {
                    padding: 0 12px;
                    margin-bottom: 48px;

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

                    .password-field__title {
                        display: block;
                        font-size: 14px;
                        line-height: 20px;
                        letter-spacing: 0.014em;
                        margin-bottom: 16px;
                    }

                    .password-field__container {
                        display: flex;
                        align-items: center;
                        position: relative;
                        width: 100%;
                        color: #D5C1B8;

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

                        .password-field__input {
                            flex: 1;
                            padding: 10px 46px 10px 16px;
                            border: 1px solid #EDE6E0;
                            border-radius: 4px;
                            font-size: 14px;
                            line-height: 20px;
                            letter-spacing: 0.014em;
                            height: 44px;

                            &::placeholder {
                                color: #D5C1B8;
                            }
                        }

                        & button {
                            position: absolute;
                            right: 16px;
                            background: none;
                            border: none;
                            cursor: pointer;
                            padding: 0;

                            &.icon-transparent {
                                opacity: 0.4;
                            }
                        }
                    }
                }
            }
        }
    }

    /* アカウントページ */
    &.account {
        .container {
            width: 100%;
            max-width: 848px;
            margin: 0 auto 24px;

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

            .account__title {
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                text-align: center;
                margin: 24px 0;
                font-size: 28px;
                line-height: 150%;

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

                &:before,
                &:after {
                    content: "";
                    flex-grow: 1;
                    height: 1px;
                    background-color: #6E767D;
                    max-width: 330px;
                    margin: 0 24px;

                    @media (width < 768px) {
                        max-width: 99px;
                    }
                }

                &:before {
                    margin: 0 24px 0 0;
                }

                &:after {
                    margin: 0 0 0 24px;
                }
            }

            .account__detail {
                background: #fff;
                padding: 32px 64px;
                border: 1px solid #EDE6E0;

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

                .account__table {
                    border: 1px solid #EDE6E0;
                    border-collapse: collapse;
                    width: 100%;
                    margin-bottom: 32px;

                    .account__tr {
                        border-bottom: 1px solid #EDE6E0;

                        &:last-child {
                            border: none;
                        }

                        .account__th {
                            background: #F7F4EF;
                            text-align: left;
                            font-size: 14px;
                            font-weight: 400;
                            line-height: 150%;
                            letter-spacing: 0.011em;
                            width: 160px;
                            padding: 16px;
                            vertical-align: top;
                            display: table-cell;

                            .required-label {
                                display: block;
                                background: #D5C1B8;
                                padding: 4px 6px;
                                font-size: 12px;
                                line-height: 100%;
                                letter-spacing: 0.011em;
                                width: 37px;
                                margin-top: 12px;
                                color: #fff;
                                border-radius: 2px;
                            }
                        }

                        .account__td {
                            padding: 16px;
                            font-size: 14px;
                            line-height: 150%;
                            letter-spacing: 0.011em;

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

                            .flex-wrap {
                                display: flex;
                                align-items: center;
                                gap: 24px;

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

                            .sp-title {
                                @media (width < 768px) {
                                    background: #F7F4EF;
                                    width: 100%;
                                    display: block;
                                    padding: 8px 12px;
                                    border-bottom: 1px solid #EDE6E0;
                                }
                            }

                            .text {
                                word-break: break-all;

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

                            .change-text {
                                font-weight: 500;
                                font-size: 14px;
                                line-height: 24px;
                                letter-spacing: 0.014em;
                                color: #D5C1B8;
                                position: relative;
                                padding-left: 23px;
                                cursor: pointer;
                                min-width: 79px;

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

                            .setting-text,
                            .delete-text {
                                font-weight: 500;
                                font-size: 14px;
                                line-height: 24px;
                                letter-spacing: 0.014em;
                                color: #D5C1B8;
                                position: relative;
                                cursor: pointer;

                                &:before {
                                    content: "";
                                    position: absolute;
                                    top: 50%;
                                    left: 0;
                                    transform: translate(0, -50%);

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

                            .setting-text {
                                padding-left: 26px;

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

                                &:before {
                                    background: url("../img/circle_plus_icon.svg") no-repeat center;
                                    width: 22px;
                                    height: 22px;
                                }
                            }

                            .delete-text {
                                padding-left: 22px;
                                min-width: 79px;

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

                                &:before {
                                    background: url("../img/gifts_trash_icon.svg") no-repeat center;
                                    width: 18px;
                                    height: 18px;
                                }
                            }
                        }

                        &.account-address,
                        &.account-partner {
                            .flex-wrap {
                                @media (width < 768px) {
                                    flex-flow: column;
                                    align-items: flex-start;
                                    gap: 16px;
                                    padding: 16px 12px;
                                }

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

                                .delete-text {
                                    @media (width < 768px) {
                                        padding: 0 0 0 22px;
                                    }

                                    &::before {
                                        left: 0;
                                    }
                                }
                            }
                        }
                    }
                }

                .buttons {
                    display: flex;
                    align-items: center;

                    .button {
                        width: auto;
                        height: 37px;
                        padding: 8px 10px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                    }
                }
            }
        }

        .modal {

            /*
            氏名変更モーダル
            メールアドレス変更モーダル
            パスワード変更モーダル
            結婚式の日にち変更モーダル
            納品日設定モーダル
            納品日変更モーダル
            納品先設定モーダル
            納品先変更モーダル
            パートナー招待モーダル
            削除モーダル
            */
            &.modal-name-change,
            &.modal-mail-change,
            &.modal-password-change,
            &.modal-wedding-day,
            &.modal-set-day,
            &.modal-change-day,
            &.modal-set-address,
            &.modal-change-address,
            &.modal-partner,
            &.modal-delete {
                @media (width < 768px) {
                    padding: 0 12px;
                }

                .modal-content {
                    width: 416px;
                    display: block;
                    padding: 0;
                    text-align: left;

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

                    .close-modal {
                        position: unset;
                        background: #fff;
                        border-radius: 2px;

                        &:before {
                            content: none;
                        }
                    }

                    .modal__head {
                        padding: 12px 24px;
                        font-size: 20px;
                        line-height: 150%;
                    }

                    .modal__detail {
                        padding: 16px 24px;
                        font-size: 14px;
                        line-height: 20px;
                        letter-spacing: 0.014em;

                        .name {
                            display: block;
                            margin-bottom: 10px;
                        }

                        .input-text {
                            width: 100%;
                            border: 1px solid #EDE6E0;
                            border-radius: 4px;
                            background: #F7F4EF;
                            height: 40px;
                            padding: 4px 16px;
                            color: #6E767D;

                            &::placeholder {
                                opacity: 0.4;
                            }
                        }
                    }

                    .buttons {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        padding: 12px 24px;
                        border-top: 1px solid #EDE6E0;

                        .button {
                            height: 37px;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            padding: 8px 0;

                            &.default-button {
                                width: 88px;
                                box-shadow: none;
                                border: none;
                            }

                            &.active-button {
                                width: 272px;

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

            /* パスワード変更モーダル内パスワード入力欄 */
            &.modal-password-change {
                .password-container {
                    display: flex;
                    align-items: center;
                    position: relative;
                    width: 100%;
                    color: #D5C1B8;

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

                    .password-input {
                        flex: 1;
                        padding: 10px 46px 10px 16px;
                        border: 1px solid #EDE6E0;
                        border-radius: 4px;
                        font-size: 14px;
                        line-height: 20px;
                        letter-spacing: 0.014em;
                        height: 40px;
                        background: none;

                        &::placeholder {
                            color: #D5C1B8;
                        }
                    }

                    & button {
                        position: absolute;
                        right: 16px;
                        background: none;
                        border: none;
                        cursor: pointer;
                        padding: 0;

                        &.icon-transparent {
                            opacity: 0.4;
                        }
                    }
                }
            }

            /* 結婚式の日にち変更、納品日設定、納品日変更モーダル内カレンダー */
            &.modal-wedding-day,
            &.modal-set-day,
            &.modal-change-day {
                .calendar-container {
                    .date-picker {
                        width: 100%;
                        background: none;
                    }
                }
            }

            /* 納品先設定、納品先変更モーダル内住所入力欄 */
            &.modal-set-address,
            &.modal-change-address {
                .address-form {
                    padding: 16px 0;

                    & .address-form__item {
                        .title {
                            background: none;
                        }

                        .input-form {

                            & input,
                            .p-region {
                                background: none;
                            }

                            .p-locality,
                            .p-street-address,
                            .p-extended-address {
                                @media (width >=768px) {
                                    width: 304px;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

/* モーダル */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(109, 108, 103, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;

    /* モーダルオープン時 */
    &.show {
        visibility: visible;
        opacity: 1;
    }

    .modal-content {
        background: #F7F4EF;
        padding: 12px 24px;
        width: 632px;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
        transition: transform 0.3s ease;

        .close-modal {
            position: absolute;
            top: 12px;
            right: 24px;
            width: 36px;
            height: 36px;
            background: #6E767D;
            border-radius: 50%;
            cursor: pointer;

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

/* カレンダー */
.calendar-container {
    position: relative;

    .date-picker {
        width: 159px;
        display: inline-block;
        padding: 8px 44px 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        border: 1px solid #EDE6E0;
        background: #fff;
        font-size: 14px;
        line-height: 10px;
        letter-spacing: 0.014em;
        vertical-align: middle;
        position: relative;
        height: 30px;

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

    .calendar-popup {
        display: none;
        position: absolute;
        top: 45px;
        left: 0;
        background: white;
        border: 1px solid #ccc;
        padding: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .calendar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px;
        font-size: 18px;
        font-weight: bold;
    }

    .calendar-header button {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
    }

    .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
        text-align: center;
        padding: 10px;
    }

    .calendar-day {
        padding: 10px;
        cursor: pointer;
        font-size: 12px;

        &.disabled {
            color: #ccc;
            pointer-events: none;
            text-decoration: line-through;
        }
    }

    .calendar-day:hover {
        background: #f0f0f0;
    }

    .selected {
        background: #D5C1B8;
        color: white;
    }
}

/* 住所入力フォーム */
.address-form {
    .address-form__item {
        display: flex;
        align-items: center;
        margin-bottom: 8px;

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

        .title {
            font-size: 12px;
            line-height: 150%;
            letter-spacing: 0.011em;
            background: #fff;
            min-width: 64px;
        }

        .input-form {
            display: flex;
            align-items: center;
            gap: 12px;

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

            & input,
            .address-search,
            .p-region {
                border: 1px solid #EDE6E0;
                border-radius: 4px;
                background: #fff;
                padding: 8px 16px;
                font-size: 14px;
                line-height: 24px;
                letter-spacing: 0.014em;
                appearance: none;
                height: 40px;
                color: #6E767D;

                &::placeholder {
                    color: #D5C1B8;
                }

                &:-webkit-autofill {
                    background-color: white !important;
                    /* 背景色をリセット */
                    color: #6E767D !important;
                    /* フォントカラーを固定 */
                    -webkit-text-fill-color: #6E767D !important;
                    /* 入力値の色を変更 */
                    transition: background-color 5000s ease-in-out 0s;
                    /* 背景色をゆっくり変更して目立たなくする */
                }
            }

            .p-postal-code {
                width: 89px;
            }

            .address-search {
                box-shadow: 0 2px 12px 0 #0000001A, 0 5px 8px 0 #00000005, 0 2px 4px 0 #00000003;
                color: #6E767D;
                cursor: pointer;
            }

            &.select-prefectures {
                position: relative;

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

                &::before {
                    content: "";
                    position: absolute;
                    background: url("../img/gifts_sidebar_icon.svg") no-repeat center;
                    width: 16px;
                    height: 16px;
                    top: 50%;
                    right: 16px;
                    display: inline-block;
                    transform: translate(0, -50%);
                }

                .p-region {
                    appearance: none;
                    width: clamp(200px, calc(200vw / 768* 100), 240px);
                    color: #6E767D;
                }
            }

            .p-locality,
            .p-street-address {
                width: clamp(282px, calc(282vw / 768* 100), 320px);

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

            .p-extended-address {
                width: clamp(282px, calc(282vw / 768* 100), 540px);

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

/* フラッシュメッセージ */
.flash-message {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #AC828A;
    color: #fff;
    padding: 15px 25px;
    border-radius: 4px;
    z-index: 10000;
    font-size: 0.9rem;
}

.hide {
    display: none;
}

.pc-hide {
    display: none;

    @media (width < 768px) {
        display: block;
    }
}

.sp-hide {
    display: block;

    @media (width < 768px) {
        display: none !important;
    }
}

/* 非活性化 */
.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

#alert-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(109, 108, 103, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s;

    .alert-modal-content {
        top: 50%;
        display: flex;
        flex-direction: column;

        .alert-button {
            background-color: #fff;
            border: none;
            margin: 0 auto;
            width: 60px;
            height: 30px;
            border-radius: 15px;
        }
    }
}

.complete-field {
    text-align: center;

    p {
        margin-bottom: 20px;
    }

    a {
        color: #fff;
    }
}

.alert-message {
    margin: 0 12px 12px;
    font-weight: bold;
}

.error-message {
    margin-top: 5px;
    color: #f42858;
}

.login-remember {
    float: left;
    display: flex;
}

/* 紹介元フィールドのスタイル */
.introduction-location-field {
    .introduction-location__info {
        font-size: 12px;
        line-height: 150%;
        letter-spacing: 0.011em;
        margin-bottom: 8px;
        color: #6E767D;
    }

    .introduction-location__input {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #EDE6E0;
        border-radius: 4px;
        font-size: 14px;
        line-height: 20px;
        letter-spacing: 0.014em;
        background: #fff;

        &:focus {
            outline: none;
            border-color: #D5C1B8;
        }

        &::placeholder {
            color: #D5C1B8;
        }
    }

    @media (width < 768px) {
        margin-top: 6px;
        padding: 10px;

        .introduction-location__input {
            padding: 6px 10px;
        }
    }
}

/* 紹介元オプションのスタイル調整 */
.introduction-option {
    margin-top: 4px !important;
    margin-bottom: 12px !important;
}

/* 注文管理パネル */
.order-management-panel {
    position: fixed;
    top: 68px;
    right: -498px;
    width: 498px;
    height: calc(100vh - 68px);
    background: #F7F4EF;
    box-shadow: -2px 0px 12px 0px rgba(0, 0, 0, 0.1), -5px 0px 8px 0px rgba(0, 0, 0, 0.02), 0px -2px 4px 0px rgba(0, 0, 0, 0.01);
    z-index: 1002;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;

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

    /* 表示状態 */
    &.open {
        right: 0;
    }

    /* ヘッダー部分 */
    .order-management-panel__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 24px 32px;
        background: #F7F4EF;

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

    .order-management-panel__title {
        font-size: 18px;
        line-height: 24px;
        letter-spacing: 1.4%;
        color: #6E767D;
        margin: 0;
        font-weight: 500;
        text-align: center;
        flex: 1;

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

    .order-management-panel__close {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .order-management-panel__close svg {
        width: 24px;
        height: 24px;
    }

    /* リスト部分 */
    .order-management-panel__list {
        display: flex;
        flex-direction: column;
        padding: 16px 32px;

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

    .order-management-item {
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0.014em;
        color: #6E767D;
        display: block;
        width: 100%;
        text-align: left;
        padding: 16px;
        text-decoration: none;
        border-bottom: 1px solid #EDE6E0;
        background: #FFFFFF;
        transition: background-color 0.2s ease;

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

        &:last-child {
            border-bottom: none;
        }

        &:hover {
            background: #F7F4EF;
        }
    }
}

/* 注文管理パネル用オーバーレイ */
.order-management-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(109, 108, 103, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;

    &.open {
        opacity: 1;
        pointer-events: initial;
    }
}
