﻿:root {
    --close-white1: #fff;
    --close-blue1: #001E62;
    --close-gray1: #ccc;
    --close-gray2: #F8F8F8;
    --close-gray3: #999;
    --close-red1: #D9534F;
}
/* ---- UTILs ---- */
@media screen and (max-width: 767px) {
    .pc {display: none;}
}
@media screen and (min-width: 768px) {
    .sp {display: none;}
}

.top_comment_ + p {display: none;}


/* 
 * PC
 */
@media screen and (min-width: 768px) {
    /* ---- LAYOUT ---- */
    main {
        margin: 150px 0;
    }
    .p-hd__inner2 {display: none;}
    .questionnaire_.col1_ {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }
    .breadcrumb.navitopicpath_.p-hd__bread {display: none !important;}
    .common_headline2_ {display: none;}
    .p-contact {display: none;}
    
    /* ---- CONTENTS ---- */
    .closeContact-h1 {
        font-size: 28px;
        font-weight: bold;
        color: var(--close-blue1);
        text-align: center;
    }
    .closeContact-lead {
        font-size: 16px;
        text-align: center;
        color: var(--close-blue1);
        margin-top: 24px;
    }
    .closeContact-h2 {
        font-size: 22px;
        font-weight: bold;
        color: var(--close-blue1);
        margin-top: 64px;
    }
    .closeContact-formtext {
        font-size: 16px;
        color: var(--close-blue1);
        line-height: calc(26 / 16);
        margin-top: 24px;
    }
    #form_close_contact_form {
        margin-top: 16px;
        border-top: 1px solid var(--close-gray1);
        .questionnaire_box_ {
            display: flex;
            border-bottom: 1px solid var(--close-gray1);
            .common_headline2_ {
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 245px;
                font-size: 16px;
                color: var(--close-blue1);
                font-weight: bold;
                padding: 34px 24px;
                background-color: var(--close-gray2);
                img {
                    display: none;
                }
                &::after {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    content: "必須";
                    width: 35px;
                    height: 21px;
                    font-size: 11px;
                    font-weight: bold;
                    color: var(--close-white1);
                    line-height: 1;
                    background-color: var(--close-red1);
                    border-radius: 2px;
                }
            }
            input[type="text"],
            input[type="email"],
            select,
            textarea {
                width: 100%;
                max-width: 400px;
                font-size: 16px;
                line-height: calc(26 / 16);
                border: 1px solid var(--close-gray3);
                border-radius: 4px;
                padding: 10px 16px;
            }
            textarea {
                max-width: 800px;
            }
            .small_ {
                display: inline-block;
                color: var(--close-gray3);
            }
            .error_ {
                display: inline-block;
                color: var(--close-red1);
            }
            .questionnaire_box_content_ {
                width: calc(100% - 245px);
                padding: 24px;
                background-color: var(--close-white1);
            }
            .formdetail_ {
                width: calc(100% - 245px - (24px * 2));
                margin: 24px;
                tbody {
                    th {
                        width: 180px;
                        text-align: left;
                    }
                    td {
                    }
                }
            }
            /* 個人情報の取り扱いについて */
            &:has(.closeContact-privacy) {
                border-bottom: none;
                margin-top: 24px;
                .questionnaire_box_content_ {
                    width: 100%;
                    padding: 32px 32px 0;
                    background-color: var(--close-gray2);
                    .closeContact-privacy-title {
                        font-size: 18px;
                        font-weight: bold;
                    }
                    .closeContact-privacy-text {
                        font-size: 14px;
                        line-height: calc(24 / 14);
                        margin-top: 16px;
                        a {
                            color: var(--close-blue1);
                            text-decoration: underline;
                        }
                    }
                }
                + .questionnaire_box_ {
                    display: block;
                    border-top: none;
                    background-color: var(--close-gray2);
                    padding: 24px 32px 32px;
                    border-bottom: none;
                    img {display: none;}
                    .questionnaire_box_content_ {
                        display: flex;
                        justify-content: flex-start;
                        align-items: center;
                        column-gap: 12px;
                        font-size: 14px;
                        background-color: transparent;
                        padding: 0;
                    }
                }
            }
        }
        .submit_ {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 40px;
            a[href="javascript:history.go(-1);"] {
                display: none;
            }
            button[name="confirm"] {
                width: 317px;
                height: 56px;
                background: url('/cms/asics-corp/img/close-contact/btn_submit.png') no-repeat center / contain;
                border-radius: 4px;
            }
        }
    }
    
    /* ---- bottom ---- */
    .closeContact-bottom {
        border-top: 1px solid var(--close-gray1);
        padding: 32px;
        margin-top: 64px;
        .closeContact-bottom-title {
            font-size: 18px;
            font-weight: bold;
            line-height: calc(29 / 18);
        }
        .closeContact-bottom-text {
            font-size: 14px;
            line-height: calc(24 / 14);
            margin-top: 16px;
        }
        .closeContact-bottom-info {
            margin-top: 24px;
            .closeContact-bottom-info-title {
                display: flex;
                .closeContact-bottom-info-title-main {
                    font-size: 14px;
                    font-weight: bold;
                }
                .closeContact-bottom-info-title-sub {
                    font-size: 14px;
                }
            }
        }
    }
    
    /* ---- 確認画面 ---- */
    body:has(.questionnaire_confirm_) {
    
        table.formdetail_.questionnaire_confirm_ {
            width: 100%;
            border-top: 1px solid var(--close-gray1);
            margin-top: 16px;
            tr {
                border-bottom: 1px solid var(--close-gray1);
            }
            th {
                width: 245px;
                font-size: 16px;
                font-weight: bold;
                text-align: left;
                background-color: var(--close-gray2);
                padding: 34px 60px 34px 25px;
                position: relative;
                img {display: none;}
                &::after {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    content: "必須";
                    width: 35px;
                    height: 21px;
                    font-size: 11px;
                    font-weight: bold;
                    color: var(--close-white1);
                    line-height: 1;
                    background-color: var(--close-red1);
                    border-radius: 2px;
                    position: absolute;
                    right: 15px;
                    top: 34px;
                }
            }
            td {
                width: calc(1200px - 245px);
                font-size: 16px;
                padding: 24px;
            }
        }
        .submit_ {
            display: flex;
            justify-content: center;
            align-items: center;
            column-gap: 30px;
            margin-top: 40px;
            input[name="back"],
            input[name="regist"] {
                box-sizing: border-box;
                width: 317px;
                height: 56px;
                padding-left: 317px;
                overflow: hidden;
                border: 0;
                cursor: pointer;
                border-radius: 4px;
                transition: .3s;
                &:hover {
                    opacity: .7;
                }
            }
            input[name="back"] {
                background: url("/cms/asics-corp/img/close-contact/btn_back.png") no-repeat center / contain;
            }
            input[name="regist"] {
                background: url('/cms/asics-corp/img/close-contact/btn_submit.png') no-repeat center / contain;
            }
        }
    }
    
    
    /* ---- 完了画面 ---- */
    .closeContact-thanks {
        max-width: 800px;
        margin: 0 auto;
        .closeContact-thanks-h1 {
            font-size: 28px;
            font-weight: bold;
            color: var(--close-blue1);
            text-align: center;
        }
        .closeContact-thanks-text {
            font-size: 16px;
            line-height: calc(26px / 16px);
            text-align: left;
            margin-top: 64px;
        }
        .closeContact-thanks-note {
            font-size: 12px;
            line-height: calc(26px / 16px);
            text-align: left;
            margin-top: 5px;
            li {
                padding-left: 12px;
                text-indent: -12px;
            }
        }
        a {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 317px;
            height: 56px;
            font-size: 16px;
            font-weight: bold;
            color: var(--close-white1);
            background-color: var(--close-blue1);
            margin: 40px auto 0;
            transition: .3s;
            &:hover {
                opacity: .7;
            }
        }
    }
}

/* 
 * SP
 */
@media screen and (max-width: 767px) {
    /* ---- LAYOUT ---- */
    main {
        margin: 100px 0;
    }
    .breadcrumb.navitopicpath_.p-hd__bread {display: none !important;}
    .common_headline2_ {display: none;}
    .p-contact {display: none;}
    
    /* ---- CONTENTS ---- */
    #close_contact_form {
        padding: 0 10px;
    }
    .closeContact-h1 {
        font-size: 20px;
        font-weight: bold;
        color: var(--close-blue1);
        text-align: center;
    }
    .closeContact-lead {
        font-size: 14px;
        text-align: center;
        color: var(--close-blue1);
        margin-top: 24px;
    }
    .closeContact-h2 {
        font-size: 14px;
        font-weight: bold;
        color: var(--close-blue1);
        margin-top: 32px;
    }
    .closeContact-formtext {
        font-size: 12px;
        color: var(--close-blue1);
        line-height: calc(20 / 12);
        margin-top: 16px;
    }
    #form_close_contact_form {
        margin-top: 24px;
        .questionnaire_box_ {
            display: block;
            + .questionnaire_box_ {
                margin-top: 10px;
            }
            .common_headline2_ {
                display: flex;
                justify-content: flex-start;
                align-items: center;
                column-gap: 5px;
                width: 100%;
                font-size: 12px;
                color: var(--close-blue1);
                font-weight: bold;
                padding: 0;
                margin-bottom: 5px;
                img {
                    display: none;
                }
                &::after {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    content: "必須";
                    width: 35px;
                    height: 18px;
                    font-size: 11px;
                    font-weight: bold;
                    color: var(--close-white1);
                    line-height: 1;
                    background-color: var(--close-red1);
                    border-radius: 2px;
                }
            }
            input[type="text"],
            input[type="email"],
            select,
            textarea {
                width: 100%;
                font-size: 16px;
                line-height: calc(26 / 16);
                border: 1px solid var(--close-gray3);
                border-radius: 4px;
                padding: 10px 16px;
            }
            .small_ {
                display: inline-block;
                font-size: 12px;
                color: var(--close-gray3);
            }
            .error_ {
                display: inline-block;
                font-size: 12px;
                color: var(--close-red1);
            }
            .questionnaire_box_content_ {
                width: 100%;
            }
            .formdetail_ {
                display: block;
                padding-left: 20px;
                margin-top: 10px;
                tbody, tr, th, td {display: block;}
                tbody {
                    th {
                        font-size: 12px;
                        text-align: left;
                    }
                    td {
                    }
                }
            }
            /* 個人情報の取り扱いについて */
            &:has(.closeContact-privacy) {
                margin-top: 24px;
                .questionnaire_box_content_ {
                    width: 100%;
                    padding: 24px 24px 0;
                    background-color: var(--close-gray2);
                    .closeContact-privacy-title {
                        font-size: 18px;
                        font-weight: bold;
                    }
                    .closeContact-privacy-text {
                        font-size: 14px;
                        line-height: calc(24 / 14);
                        margin-top: 16px;
                        a {
                            color: var(--close-blue1);
                            text-decoration: underline;
                        }
                    }
                }
                + .questionnaire_box_ {
                    display: block;
                    border-top: none;
                    background-color: var(--close-gray2);
                    padding: 24px;
                    border-bottom: none;
                    margin-top: 0;
                    img {display: none;}
                    .questionnaire_box_content_ {
                        display: flex;
                        justify-content: flex-start;
                        align-items: center;
                        column-gap: 14px;
                        font-size: 12px;
                        background-color: transparent;
                        padding: 0;
                    }
                }
            }
        }
        .submit_ {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 32px;
            a[href="javascript:history.go(-1);"] {
                display: none;
            }
            button[name="confirm"] {
                width: 317px;
                height: 56px;
                background: url('/cms/asics-corp/img/close-contact/btn_submit.png') no-repeat center / contain;
                border-radius: 4px;
            }
        }
    }
    
    /* ---- bottom ---- */
    .closeContact-bottom {
        border: 1px solid var(--close-gray1);
        padding: 32px 24px;
        margin: 56px 0 32px;
        .closeContact-bottom-title {
            font-size: 18px;
            font-weight: bold;
            line-height: calc(29 / 18);
        }
        .closeContact-bottom-text {
            font-size: 14px;
            line-height: calc(24 / 14);
            margin-top: 16px;
        }
        .closeContact-bottom-info {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid var(--close-gray1);
            .closeContact-bottom-info-title {
                display: flex;
                .closeContact-bottom-info-title-main {
                    font-size: 14px;
                    font-weight: bold;
                }
                .closeContact-bottom-info-title-sub {
                    font-size: 14px;
                }
            }
        }
    }
    
    /* ---- 確認画面 ---- */
    body:has(.questionnaire_confirm_) {
        table.formdetail_.questionnaire_confirm_ {
            display: block;
            width: 100%;
            margin-top: 16px;
            tbody, tr, th, td {display: block;}
            tr {
                margin-top: 11px;
            }
            th {
                display: flex;
                justify-content: flex-start;
                column-gap: 5px;
                align-items: center;
                width: 100%;
                font-size: 12px;
                color: var(--close-blue1);
                font-weight: bold;
                text-align: left;
                img {display: none;}
                &::after {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    content: "必須";
                    width: 35px;
                    height: 18px;
                    font-size: 11px;
                    font-weight: bold;
                    color: var(--close-white1);
                    line-height: 1;
                    background-color: var(--close-red1);
                    border-radius: 2px;
                }
            }
            td {
                font-size: 12px;
                margin-top: 5px;
            }
        }
        .submit_ {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            row-gap: 20px;
            margin-top: 32px;
            input[name="back"],
            input[name="regist"] {
                box-sizing: border-box;
                width: 317px;
                height: 56px;
                padding-left: 317px;
                overflow: hidden;
                border: 0;
                cursor: pointer;
                border-radius: 4px;
            }
            input[name="back"] {
                background: url("/cms/asics-corp/img/close-contact/btn_back.png") no-repeat center / contain;
            }
            input[name="regist"] {
                background: url('/cms/asics-corp/img/close-contact/btn_submit.png') no-repeat center / contain;
            }
        }
    }
    
    
    /* ---- 完了画面 ---- */
    .closeContact-thanks {
        width: 100%;
        padding: 0 10px;
        margin: 0 auto;
        .closeContact-thanks-h1 {
            font-size: 20px;
            font-weight: bold;
            color: var(--close-blue1);
            text-align: center;
        }
        .closeContact-thanks-text {
            font-size: 14px;
            line-height: calc(20px / 12px);
            text-align: left;
            margin-top: 40px;
        }
        .closeContact-thanks-note {
            font-size: 12px;
            line-height: calc(26px / 16px);
            text-align: left;
            margin-top: 5px;
            li {
                padding-left: 12px;
                text-indent: -12px;
            }
        }
        a {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 317px;
            height: 56px;
            font-size: 16px;
            font-weight: bold;
            color: var(--close-white1);
            background-color: var(--close-blue1);
            margin: 32px auto 0;
        }
    }
}