@charset "UTF-8";

/*=======================================
page
=======================================*/
/*-------------------
login
-------------------*/
.login_wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;

    @media (width >= 900px) {
        flex-direction: row;
        .login_box {
            flex: 1;
        }
    }
}
.login_box {
    border-radius: var(--inner-radius);
    border: 4px solid color-mix(in srgb, var(--maincolor), white 40%);
    padding: var(--box-pd);
}
.login_group {
    margin-bottom: 16px;
    & > div {
        & > dt {
            font-weight: 700;
            font-size: var(--font-l);
            color: var(--maincolor-dark);

            &::after {
                content: "：";
                display: inline-block;
                margin-left: 0.2em;
            }
        }

        & + div {
            margin-top: 12px;
        }
    }
    :is(input[type="text"]) {
        padding: calc(var(--form-block) * 1.4) calc(var(--form-inline) * 1.4);
    }
    #fieldPassword #textPassword {
        padding: calc(var(--form-block) * 1.4) 2em calc(var(--form-block) * 1.4) calc(var(--form-inline) * 1.4);
    }
}
.pass_input_tx {
    margin-bottom: 14px;
    line-height: 1.2;
    input[type="checkbox"] {
        margin-right: 0.5em;
    }
    @media (width >= 768px) {
        text-align: center;
    }
}
.password_link {
    &::before {
        content: "\eca0";
        font-family: remixicon !important;
        margin-right: 0.2em;
        font-size: 1.2em;
        line-height: 1;
    }
    color: var(--error-color);
    margin-top: 16px;
    text-align: center;
    font-size: var(--font-s);
    & > a {
        color: inherit;
        transition: 0.2s;
        &:hover {
            opacity: 0.6;
        }
    }
}
.register_btn {
    padding: 2em 0;
    & > a {
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--subcolor);
        color: var(--light-tx-color);
        font-size: var(--font-xl);
        font-weight: 700;
        text-align: center;
        text-decoration: none;
        line-height: 1.2;
        border-radius: var(--btn-radius);
        padding: 0.8em 1em;
        transition: 0.2s;
        &:hover {
            opacity: 0.8;
        }
    }

    & + .going_btn {
        margin-top: -2.5em;
    }
    @media (width >= 900px) {
        padding-top: 3em;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        & + .going_btn {
            margin-top: -3.5em;
        }
    }
}
.going_btn {
    padding: 2em 0;
    & > a {
        display: flex;
        justify-content: center;
        align-items: center;
        background: var(--maincolor);
        color: var(--light-tx-color);
        font-size: var(--font-xl);
        font-weight: 700;
        text-align: center;
        text-decoration: none;
        line-height: 2.4;
        border-radius: var(--btn-radius);
        padding: 0.8em 1em;
        transition: 0.2s;
        &:hover {
            opacity: 0.8;
        }
    }
    @media (width >= 900px) {
        padding-top: 3em;
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}
/*-------------------
顔写真登録 
-------------------*/
#ua_change.disp_sp .elem_pc {
    display: none;
}
#ua_change.disp_pc .elem_sp {
    display: none;
}
#ua_change.disp_sp .fileUp {
    display: block;
}

@media print, screen and (min-width: 576px) {
    #ua_change.disp_sp .fileUp {
        display: inline-block;
    }
}
.select_p {
    padding-bottom: 0.6em;
    text-align: center;
    font-weight: 700;
}
/*顔写真登録 img*/
.thum_img {
    display: block;
    :is(img) {
        display: block;
        margin: auto;
        max-width: 160px;
    }

    @media (width >= 768px) {
        :is(img) {
            margin-left: 0;
        }
    }
}
& + .thum_img {
    margin-top: 16px;
}

/*本人確認書類 img*/
.file_img {
    display: block;
    :is(img) {
        display: block;
        margin: auto;
        max-width: clamp(240px, 320vw/13.66, 320px);
    }
    @media (width >= 768px) {
        :is(img) {
            margin-left: 0;
        }
    }
}
/*-------------------
modal / camera
-------------------*/
:root {
    --camera-z: 1110;
    --camera-inner-z: 1111;
    --camera-overlay-z: 1099;
}
.modal_camera_wrapper {
    z-index: var(--camera-z);
    position: fixed;
    inset: 0;
    text-align: center;

    &:not(:target) {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    &:target {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.4s, visibility 0.4s;
    }

    &::after {
        display: inline-block;
        height: 100%;
        margin-left: -0.05em;
        vertical-align: middle;
        content: "";
    }
}
.modal_camera_window {
    box-sizing: border-box;
    display: inline-block;
    z-index: var(--camera-inner-z);
    position: relative;
    width: min(85%, 798px);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: auto;
    padding: 25vw 0;
    .camera_tx {
        color: var(--light-tx-color);
        font-size: var(--font-l);
    }

    /*閉じボタン*/
    .modal_close {
        z-index: var(--modal-inner-z);
        position: absolute;
        right: -0.5em;
        top: 0.2em;
        width: 48px;
        color: var(--white) !important;
        font-size: 4rem;
        line-height: 48px;
        text-align: center;
        text-decoration: none;
        text-indent: 0;

        &:hover {
            color: #000 !important;
        }
    }
}

.modal_camera_overlay {
    z-index: var(--camera-overlay-z);
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--black), transparent 20%);
    mask-image: url("../img/common_img/camera_mask.png");
    -webkit-mask-image: url("../img/common_img/camera_mask.png");
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/*-------------------
タブメニュー
-------------------*/
.mypage_tab {
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    gap: 8px;
    margin-bottom: clamp(32px, 56vw/13.66, 56px);
    position: relative;
    z-index: var(--mypage-tab-z);
    & > li {
        flex: 1;
        & > a {
            display: grid;
            place-items: center;
            background: var(--light-gray);
            border: 2px solid var(--light-gray);
            border-bottom: none;
            width: 100%;
            height: 100%;
            text-align: center;
            text-decoration: none;
            line-height: 1;
            color: var(--gray);
            font-weight: 700;
            border-radius: var(--inner-radius) var(--inner-radius) 0 0;
            padding: 1em 0;
            transition: 0.2s;

            &:hover {
                background: var(--gray);
                border: 2px solid var(--gray);
                border-bottom: none;
                color: var(--light-tx-color);
            }
        }

        &.active {
            position: relative;
            z-index: 10;
            margin-bottom: -1px;
            & > a {
                pointer-events: none;
                background: var(--bg-white);
                color: var(--base-tx-color);
                border: 2px solid var(--light-gray);
                border-bottom: 1px solid var(--bg-white);
            }
        }
    }

    @media (width >= 768px) {
        & > li {
            flex: 0 1 25%;
        }
    }
    @media (width >= 1366px) {
        & > li {
            flex: 0 1 20%;
        }
    }
}

/*-------------------
申込履歴
-------------------*/
.history_list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.history_box {
    border: 1px solid var(--border-color);
    border-radius: var(--inner-radius);
    padding: 0 var(--box-pd) var(--box-pd);
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0 32px;

    .history_heading {
        width: calc(100% + calc(var(--box-pd) * 2));
        margin-left: calc(var(--box-pd) * -1);
        margin-right: calc(var(--box-pd) * -1);
        margin-bottom: var(--box-pd);
        background: var(--bg-color02);
        display: flex;
        align-items: center;
        padding: 1em var(--box-pd);
        font-weight: 700;
        font-size: var(--font-l);

        &::before {
            content: attr(data-ti) ":";
            display: inline-block;
            margin-right: 0.5em;
            color: var(--gray);
            font-size: var(--font-base);
        }
        &::after {
            font-weight: normal;
            margin-left: auto;
            padding: 0 0.6em;
            font-size: var(--font-base);
            font-weight: 700;
            min-width: 7ic;
            text-align: center;
        }
    }
    /*入金待ち*/
    &.unpaid {
        .history_heading {
            &::after {
                content: "入金確認待ち";
                color: var(--error-color);
                border: 2px solid color-mix(in srgb, var(--error-color), white 50%);
                background: color-mix(in srgb, var(--error-color), white 80%);
            }
        }
    }

    /*入金済み*/
    &.paid {
        .history_heading {
            &::after {
                content: "入金済";
                background: var(--bg-white);
                color: var(--base-tx-color);
                border: 2px solid color-mix(in srgb, var(--gray), white 50%);
            }
        }

        .cancel_btn {
            :is(a),
            :is(button) {
                pointer-events: none;
                background: var(--light-gray);
                border: var(--light-gray);
                color: var(--light-tx-color);
            }
        }
    }

    /*キャンセル済み*/
    &.cancel {
        .history_heading {
            &::after {
                content: "キャンセル済み";
                background: color-mix(in srgb, var(--gray), white 20%);
                color: var(--light-tx-color);
                border: 2px solid color-mix(in srgb, var(--gray), white 20%);
            }
        }
        .cancel_btn {
            :is(a),
            :is(button) {
                pointer-events: none;
                background: var(--light-gray);
                border: var(--light-gray);
                color: var(--light-tx-color);
            }
        }
    }

    .history_control {
        width: 100%;
        margin-top: 24px;
        & > li {
            width: min(100%, 240px);
            margin: 0 auto;
        }
    }

    @media (width >= 768px) {
        flex-direction: row;
        justify-content: space-between;

        .history_detail {
            width: calc(100% - 240px - 32px);
        }
        .history_control {
            width: 240px;
            align-self: flex-end;
            margin: 0;
        }
    }
}

.history_detail {
    .history_ti {
        font-weight: 700;
        font-size: var(--font-l);
        margin-bottom: 12px;
        .days {
            display: block;
            width: max-content;
            font-weight: normal;
            font-size: 0.8em;
            line-height: 1.2;
            padding: 0.2em 0.6em;
            background: color-mix(in srgb, var(--subcolor), white 60%);
            margin-bottom: 0.4em;
        }
    }

    & > dd {
        .history_subti {
            display: inline-block;
            margin-right: 0.5em;
            color: var(--gray);
            font-size: var(--font-base);
            &::after {
                content: ":";
            }
        }
    }
}

.history_control {
    display: flex;
    flex-direction: column;
    gap: 8px;
    :where(a, button, input) {
        display: flex;
        justify-content: center;
        align-items: center;
        line-height: 1.2;
        white-space: nowrap;
        transition: 0.2s;
        padding: 0.8em 1.4em;
        width: 100%;
        border-radius: var(--btn-radius);
        text-decoration: none;
        font-size: var(--font-base);
        font-weight: 700;
        background: var(--bg-white);
        border-style: solid;
        border-width: 2px;
        cursor: pointer;
    }
    .cancel_btn {
        :is(a),
        :is(button) {
            border-color: color-mix(in srgb, var(--gray), var(--white) 20%);
            color: var(--gray);

            &:hover {
                background: color-mix(in srgb, var(--gray), white 40%);
                color: var(--light-tx-color);
            }
        }
    }
    .detail_btn {
        :is(a),
        :is(button) {
            border-color: var(--maincolor);
            background: var(--maincolor);
            color: var(--light-tx-color);

            &:hover {
                background: color-mix(in srgb, var(--maincolor), white 40%);
            }
        }
    }
}

/*----------------------------
コース・日程選択
-----------------------------*/
/*----------------
course_box*/
.course_list {
    & + [class^="title0"] {
        margin-top: 40px;
    }
    border-radius: var(--inner-radius);
    border: var(--box-border-size) solid var(--light-gray);
    padding: var(--box-padding);

    .course_box {
        display: flex;
        flex-direction: column;
        gap: var(--box-gap-block) var(--box-gap-inline);
        & + .course_box {
            margin-top: var(--box-item-space);
            padding-top: var(--box-item-space);
            border-top: 1px dotted var(--light-gray);
        }
        .course_tx {
            width: 100%;
            .status {
                width: calc(40% - 16px);
            }
            .button {
                width: min(60%, 240px);
            }
        }
    }
    @media (width >= 992px) {
        .course_box {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            .course_ti {
                width: 60%;
            }
            .course_tx {
                width: calc(40% - var(--box-gap-inline));
            }
        }
    }
}
.course_ti {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
    & > dt {
        font-weight: 700;
        line-height: 1.4;
        font-size: var(--font-l);
    }
    & > dd {
        order: -1;
        width: max-content;
        font-size: var(--font-s);
        line-height: 1.2;
        padding: 0.2em 0.6em;
        background: color-mix(in srgb, var(--subcolor), white 60%);
    }
}
.course_tx {
    display: flex;
    align-items: center;
    gap: 16px;

    @media (width >= 992px) {
        justify-content: flex-end;
    }

    .status {
        display: grid;
        place-items: center;
        border: 2px solid var(--light-gray);
        font-weight: 700;
    }
    .button {
        :is(a) {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.4em;
            background: var(--maincolor);
            border-width: 2px;
            border-style: solid;
            border-color: var(--maincolor);
            border-radius: var(--btn-radius);
            padding: 0.8em 1em;
            text-decoration: none;
            color: var(--light-tx-color);
            line-height: 1;
            transition: 0.2s;
            &::before {
                content: "";
                display: inline-block;
                width: 1.2em;
                height: auto;
                aspect-ratio: 1;
                background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23fff" d="M7.24264 17.9967H3V13.754L14.435 2.319C14.8256 1.92848 15.4587 1.92848 15.8492 2.319L18.6777 5.14743C19.0682 5.53795 19.0682 6.17112 18.6777 6.56164L7.24264 17.9967ZM3 19.9967H21V21.9967H3V19.9967Z" /></svg>');
            }
            &:hover {
                background: color-mix(in srgb, var(--maincolor), var(--white) 20%);
            }
        }
    }

    /*非活性*/
    &.full {
        .status {
            color: var(--error-color);
            border: 2px solid color-mix(in srgb, var(--error-color), white 50%);
            background: color-mix(in srgb, var(--error-color), white 80%);
        }
        .button {
            :is(a) {
                pointer-events: none;
                background: var(--light-gray);
                border-color: var(--light-gray);
            }
        }
    }
}

/*----------------------------
講習申込一覧
-----------------------------*/
/*------------------------------------
pdf_ul
--------------------------------------*/
/*pdf_ul course_list 共通*/
:root {
    --box-padding: clamp(18px, 24vw/13.66, 24px) clamp(16px, 24vw/13.66, 24px);
    --box-border-size: 1px;
    --box-gap-block: 1.2em;
    --box-gap-inline: 40px;
    --box-item-space: 1.2em;
    --box-btn-pc-size: 240px;
}

.pdf_ul {
    & + [class^="title0"] {
        margin-top: 40px;
    }
    border-radius: var(--inner-radius);
    border: var(--box-border-size) solid var(--light-gray);
    padding: var(--box-padding);

    & > li {
        display: flex;
        flex-direction: column;
        gap: var(--box-gap-block) var(--box-gap-inline);

        & + li {
            margin-top: var(--box-item-space);
            padding-top: var(--box-item-space);
            border-top: 1px dotted var(--light-gray);
        }

        .tx_box {
            font-size: var(--font-l);
        }

        @media (width >= 992px) {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            .tx_box {
                width: calc(100% - var(--box-btn-pc-size) - var(--box-gap-inline));
            }
            .web_btn {
                width: var(--box-btn-pc-size);
            }
        }
    }

    .tx_box {
        position: relative;
        padding: 0 0.4em 0 0;
        line-height: 1.4;
        font-weight: 700;
        &:has(a[href$=".pdf"]) {
            padding: 0 0.4em 0 2.2em;
            &::before {
                content: "";
                display: inline-block;
                width: 1.4em;
                height: auto;
                aspect-ratio: 1;
                position: absolute;
                inset: -0.1em auto auto 0.4em;
                background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23D35230" d="M5 4H15V8H19V20H5V4ZM3.9985 2C3.44749 2 3 2.44405 3 2.9918V21.0082C3 21.5447 3.44476 22 3.9934 22H20.0066C20.5551 22 21 21.5489 21 20.9925L20.9997 7L16 2H3.9985ZM10.4999 7.5C10.4999 9.07749 10.0442 10.9373 9.27493 12.6534C8.50287 14.3757 7.46143 15.8502 6.37524 16.7191L7.55464 18.3321C10.4821 16.3804 13.7233 15.0421 16.8585 15.49L17.3162 13.5513C14.6435 12.6604 12.4999 9.98994 12.4999 7.5H10.4999ZM11.0999 13.4716C11.3673 12.8752 11.6042 12.2563 11.8037 11.6285C12.2753 12.3531 12.8553 13.0182 13.5101 13.5953C12.5283 13.7711 11.5665 14.0596 10.6352 14.4276C10.7999 14.1143 10.9551 13.7948 11.0999 13.4716Z" /></svg>');
            }
        }
    }

    .memo_tx {
        display: block;
        font-size: var(--font-s);
        margin-top: 0.5em;
        font-weight: 400;
        & > p {
            font-size: var(--font-s);
        }
    }
}

.web_btn {
    :is(a) {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.4em;
        background: var(--subcolor);
        border-radius: var(--btn-radius);
        padding: 0.8em 1em;
        text-decoration: none;
        color: var(--light-tx-color);
        line-height: 1;
        transition: 0.2s;

        &::before {
            content: "\eee8";
            font-family: "remixicon";
            font-style: normal;
            font-weight: normal;
            vertical-align: middle;
            font-size: 1.2em;
            color: color-mix(in srgb, var(--light-tx-color), white 30%);
        }
        & > i {
            display: none;
        }
        &:hover {
            background: color-mix(in srgb, var(--subcolor), white 30%);
        }
    }
}

/*----------------------------
本人確認書類に関するガイドライン
-----------------------------*/
.license_list {
    .bd_box01 {
        text-align: center;
    }
}
@media (width >= 992px) {
    .license_list {
        .bd_box01:last-child {
            width: calc((33.3333333333% - var(--lay-gap-md) * 2 / 3) * 2 + var(--lay-gap-md));
        }
    }
}
