@charset "UTF-8";

.pagetop {
    height: 45dvh;
    background-image: url(../img/contact_img2.jpg);
    background-size: cover;
    background-position: 50% 66%;
}

@media screen and (orientation: portrait) {
    .pagetop {
        height: 28dvh;
    }
}

input,
textarea {
    border: none;
    background: #f3f3f3;
    width: 100%;
    padding: 0.8em;
    border-radius: 1px;
}

label input,
.cofirmbox input {
    width: fit-content;
}

textarea {
    min-height: 10rem;
}

#contact {
    overflow-x: hidden;
}

#contact-form tr {
    border-bottom: 1px solid #ededed;
    display: flex;
    flex-direction: column;
}

@media (min-width:992px) {
    #contact-form tr {
        flex-direction: row;
    }
}

#contact-form th {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    justify-content: flex-start;
    padding: 1.8em 0 1em;
    width: 18em;
}

#contact-form td {
    padding: 0em 0 1em 0em;
    width: 100%;
}

@media (min-width:992px) {
    #contact-form th {
        justify-content: space-between;
        padding: 1.8em 0;
    }

    #contact-form td {
        padding: 1em 0 1em 4em;
        width: calc(100% - 18em);
    }
}

#contact-form th .small {
    font-weight: 500;
}

#contact-form th .necessary {
    background: #181d24;
    color: #fff;
    font-size: 0.8em;
    font-weight: 500;
    padding: 3px 5px;
    border-radius: 2px;
    height: fit-content;
    margin-left: 1em;
}

.syubetubox label,
.contactway label {
    width: 100%;
}

@media (min-width:576px) {
    .syubetubox label {
        width: 50%;
        float: left;
    }

    .contactway label {
        width: fit-content;
    }
}

/*
input[type="radio"],
input[type="checkbox"] {
    transform: scale(1.3);
    accent-color: #333;
    margin-right: 5px;
    display: inline-block;
}
*/
input[type="radio"],
input[type="checkbox"] {
    display: none;
}

label.origcheck {
    height: calc(20px + 1.6em);
    display: inline-flex;
    align-items: center;
}

.origradio_sp,
.origcheckbox {
    position: relative;
    height: 20px;
    line-height: 20px;
    display: inline-block;
    padding-left: 30px;
}

.brand .origcheckbox {
    height: 26px;
    line-height: 26px;
    padding-left: 38px;
}

.origradio_sp::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: #ffffff;
    position: absolute;
    left: 0;
    top: 0;
    box-sizing: border-box;
    border: 1px solid #7a7a7a;
    border-radius: 50%;
}

.origcheck input[type="radio"]:checked+.origradio_sp::before {
    background: #181d24;
}

.origcheck input[type="radio"]:checked+.origradio_sp::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    left: 6px;
    top: 6px;
    background: #ffffff;
}

.origcheckbox::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 0;
    top: 0;
    box-sizing: border-box;
    border: 1px solid #7a7a7a;
    background: #ffffff;
    border-radius: 2px;
}

.brand .origcheckbox::before {
    width: 26px;
    height: 26px;
}

.origcheck input[type="checkbox"]:checked+.origcheckbox::before {
    background: #181d24;
}

.brand.origcheck input[type="checkbox"]:checked+.origcheckbox::before {
    background: #ffffff;
    border: 1px solid #c9af50;
}

.origcheck input[type="checkbox"]:checked+.origcheckbox::after {
    content: "";
    display: block;
    width: 14px;
    height: 7px;
    border-top: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
    transform: rotate(130deg);
    position: absolute;
    left: 3px;
    top: 5px;
    background: #181d24;
}

.brand.origcheck input[type="checkbox"]:checked+.origcheckbox::after {
    background: #ffffff;
    width: 19px;
    height: 10px;
    border-top: 3px solid #c9af50;
    border-right: 3px solid #c9af50;
    top: 6px;
}

input[type="checkbox"] {
    margin-right: 0.7em;
}

input[type="file"] {
    font-size: 0.8em;
}

.form-control {
    font-size: 0.8em;
    border-radius: 1px
}

.cofirmbox {
    font-size: 1.0rem;
    padding: 0.5rem 0.5rem 1rem;
    text-align: center;
    border-radius: 2px;
}

.cofirmbox p {
    font-size: 0.9rem;
}

.cofirmbox a {
    color: #ab8955;
}

.cofirmbox a:hover {
    color: initial;
}

.btn-wrapper {
    cursor: not-allowed;
    /* It Works! */
    text-align: center;
    margin-top: 1rem;
}

.btn-wrapper .unusable {
    pointer-events: none;
}

.btn_box {
    border: 1px #c9af50 solid;
    font-size: 1.1rem;
}

.btn_box.unusable {
    background: #c9af5094;
}

.attention {
    padding: 1rem;
    font-size: 0.9em;
    line-height: 2.0;
    background: #f3f3f3;
    margin-top: 2.5rem;
}

.section-sub {
    font-size: 1rem;
}