@import url("cssreset.css");
@import url("base.css");
@import url("header.css");
@import url("footer.css");

/* contact */

/* lead */
section#lead {
    background-color: #f6f6f6;
}
section#lead .inner {
    background-repeat: no-repeat;
    background-position: right 125px center;
    background-image: url("../images/contact/illust.png");
    padding:60px 0 40px 125px;
}
section#lead .text {
    width: 550px;
}
@media only screen and (max-width: 1100px) {
    section#lead .inner {
        background-position: right 8% center;
        background-size: 25%;
        padding:60px 0 40px 10%;
    }
    section#lead .text {
        width: 60%;
    }
}

section#lead p {
    margin-bottom: 1em;
    text-align: left;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.05em;
}
section#lead p.note {
    margin-bottom: 2em;
    line-height: 1.4;
    font-size: 14px;
    color: #c4494d;
}
section#lead p.tel {
    margin-bottom: 0;
    line-height: 1.4;
    font-size: 20px;
    font-weight: 700;
}
section#lead p.tel span {
    font-size: 14px;
    font-weight: 500;
}
section#lead p.tel a {
    position: relative;
    padding-left: 1.0em;
    font-family: "Montserrat", sans-serif;
    font-size: 38px;
    color: #c4494d;
    text-decoration: none;
}
section#lead p.tel a:before {
    position: absolute;
    top: 0.2em;
    left: 0;
    width: 0.85em;
    height: 0.85em;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("../images/common/icon_tel.svg");
    background-size: contain;
    content: "";
}
section#lead p.tel a:hover {
    opacity: 0.7;
}

@media only screen and (max-width: 750px) {
    section#lead .inner {
        background-image: none;
        padding:8vw 7.5% 6vw;
    }
    section#lead .text {
        width: 100%;
    }
    section#lead p {
        font-size: 3.4vw;
    }
    section#lead p.note {
        font-size: 2.7vw;
    }
    section#lead p.tel {
        line-height: 1.6;
        font-size: 4.0vw;
    }
    section#lead p.tel span {
        font-size: 2.7vw;
    }
    section#lead p.tel a {
        font-size: 5.4vw;
    }
}


section#form .inner {
    max-width: 850px;
    padding-top: 48px;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 96px;
}
@media only screen and (max-width: 1100px) {
    section#form .inner {
        width: 85%;
    }
}
@media only screen and (max-width: 750px) {
    section#form .inner {
        padding-top: 6.4vw;
        padding-bottom: 13vw;
    }
}

/* flow */
ol.flow {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}
ol.flow li {
    position: relative;
    width: calc(100% / 3);
    background-color: #bdbab9;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}
ol.flow li.current {
    background-color: #c4494d;
}
ol.flow li span {
    position: relative;
}
ol.flow li:after {
    position: absolute;
    top: 0;
    right: -6px;
    bottom: 0;
    width: 12px;
    height: 40px;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("../images/contact/arrow_flow_a.png");
    background-size: cover;
    z-index: 1;
    content: "";
}
ol.flow li:has(+ .current):after {
    background-image: url("../images/contact/arrow_flow_b.png");
}
ol.flow li.current:after {
    background-image: url("../images/contact/arrow_flow_c.png");
}
ol.flow li:last-child:after {
    display: none;
}
@media only screen and (max-width: 750px) {
    ol.flow {
        margin-bottom: 8vw;
    }
    ol.flow li {
        line-height: 6.4vw;
        font-size: 3.2vw;
    }
    ol.flow li:not(:last-child):after {
        width: 2.266vw;
        height: 6.4vw;
    }
}


/* form */
section#form p {
    margin-bottom: 1em;
    font-size: 20px;
    font-weight: 500;
}
section#form p.note {
    line-height: 1.4;
    font-size: 14px;
    color: #c4494d;
}
section#form dl {
    margin-bottom: 65px;
    text-align: left;
}
section#form dl dt {
    margin-bottom: 0.25em;
    font-size: 20px;
    font-weight: bold;
}
section#form dl dt span {
    background-color: #c4494d;
    margin-left: 1em;
    padding: 0 0.5em;
    font-size: 14px;
    color: #ffffff;
}
section#form dl dd {
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 500;
}
section#form .common-error {
    color:red;
    font-size:1.2em;
    margin:1em auto;
    text-align:center;
}
section#form .error {
    color:red;
    font-size:0.9em;
    margin: 0.3em 0 0.5em;
}

@media only screen and (max-width: 750px) {
    section#form p {
        font-size: 3.8vw;
    }
    section#form.note {
        font-size: 2.7vw;
    }
    section#form dl {
        margin-bottom: 8vw;
    }
    section#form dl dt {
        font-size: 3.8vw;
    }
    section#form dl dt span {
        font-size: 2.6vw;
    }
    section#form dl dd {
        margin-bottom: 6.6vw;
        font-size: 3.8vw;
    }
}


/* form reset */
section#form input,
section#form textarea,
section#form select {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    border-radius: 0;
    outline: 0;
}

/* input */
section#form dl input,
section#form dl textarea {
    width: 100%;
    background-color: #ffffff;
    padding: 0.5em 1.5em;
    border: 1px solid #c8c5c4;
    border-radius: 0;
    font-size: 20px;
    font-weight: 500;
    outline: 0;
}
section#form dl input {
    height: 64px;
}
section#form dl textarea {
    height: 280px;
}
section#form dl input::placeholder,
section#form dl textarea::placeholder {
    color: #918b8a;
}
section#form dl input:focus,
section#form dl textarea:focus {
    background-color: #f6f6f6;
    border: 1px solid #c8c5c5;
    border-radius: 0;
    outline: 0;
}
section#form dl .select-wrap {
    position: relative;
    width: 450px;
    height: 60px;
}
section#form dl .select-wrap:after {
    position: absolute;
    top: 25px;
    right: 20px;
    width: 20px;
    height: 10px;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("../images/contact/arrow_select.svg");
    background-size: contain;
    z-index: 1;
    pointer-events: none;
    content: "";
}
section#form dl select {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    padding: 0.5em 1.5em;
    border: 1px solid #c8c5c4;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
}
section#form dl select option:disabled {
    color: #918b8a;
}

/* placeholder focus */
section#form dl input:focus::-webkit-input-placeholder {color: transparent;}
section#form dl input:focus::-moz-placeholder {color: transparent;}
section#form dl input:focus::-ms-input-placeholder {color: transparent;}
section#form dl input:focus::placeholder {color: transparent;}
section#form dl textarea:focus::-webkit-input-placeholder {color: transparent;}
section#form dl textarea:focus::-moz-placeholder {color: transparent;}
section#form dl textarea:focus::-ms-input-placeholder {color: transparent;}
section#form dl textarea:focus::placeholder {color: transparent;}


@media only screen and (max-width: 750px) {
    section#form dl input,
    section#form dl textarea,
    section#form dl select {
        padding: 0.5em 1em;
        font-size: 3.8vw;
    }
    section#form dl input {
        height: 9.6vw;
    }
    section#form dl textarea {
        height: 38.6vw;
    }
    section#form dl .select-wrap {
        width: 64vw;
        height: 9.6vw;
    }
    section#form dl .select-wrap:after {
        top: 3.8vw;
        right: 3.2vw;
    }
}



/* submit button */
ul.btn-submit li {
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}
ul.btn-submit li:not(:last-child) {
    margin-bottom: 25px;
}
ul.btn-submit input {
    display: none;
}
ul.btn-submit label {
    display: block;
    position: relative;
    width: 100%;
    background-color: #c4494d;
    border-radius: 2em;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: all .3s ease;
}
ul.btn-submit label:after {
    position: absolute;
    top: 0;
    right: 12px;
    bottom: 0;
    width: 8px;
    height: 12px;
    background-color: #ffffff;
    margin: auto;
    clip-path: polygon(0 0, 0 100%, 100% 50%);
    content: "";
}
ul.btn-submit label:hover {
    opacity: 0.7;
}

/* disable */
ul.btn-submit label:has(input.back),
ul.btn-submit label:has(input:disabled) {
    background-color: #bdbab9;
}
ul.btn-submit label:has(input:disabled) {
    background-color: #666666;
    cursor: not-allowed;
}
ul.btn-submit label:has(input:disabled):hover {
    opacity: 1;
}

@media only screen and (max-width: 750px) {
    ul.btn-submit li {
        width: 72vw;
    }
    ul.btn-submit li:not(:last-child) {
        margin-bottom: 4.8vw;
    }
    ul.btn-submit label {
        line-height: 13.333vw;
        font-size: 4.2vw;
    }
    ul.btn-submit label:after {
        right: 4.6vw;
        width: 1.6vw;
        height: 3.2vw;
    }
}

/* agree */
section#form p a[target="_blank"] {
    display: inline-block;
    position: relative;
    padding-right: 1.25em;
    text-decoration: none;
}
section#form p a[target="_blank"]:after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1.15em;
    height: 1.15em;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("../images/common/icon_external.png");
    background-size: contain;
    margin: auto;
    content: "";
}
section#form p a[target="_blank"]:hover {
    opacity: 0.7;
}

section#form p.agree {
    margin-bottom: 2.5em;
}
section#form p.agree input {
    display: none;
}
section#form p.agree label {
    display: inline-block;
    position: relative;
    padding-left: 1.75em;
    transition: all .3s ease;
    cursor: pointer;
}
section#form p.agree label:hover {
    opacity: 0.7;
}
section#form p.agree label:before,
section#form p.agree label:after {
    position: absolute;
    margin: auto;
    content: "";
}
section#form p.agree label:before {
    top: 0;
    left: 0;
    bottom: 0;
    width: 1.2em;
    height: 1.2em;
    background-color: #ffffff;
    border: 1px solid #231815;
}
section#form p.agree label:after {
    top: 0.4em;
    left: 0.25em;
    width: 0.7em;
    height: 0.4em;
    border-left: 2px solid #231815;
    border-bottom: 2px solid #231815;
    opacity: 0;
    transform: rotate(-45deg);
    transition: all .3s ease;
}
section#form p.agree input:checked ~ label:after {
    opacity: 1;
}


/* confirm */
section#form.confirm,
section#form.thanks {
    padding-top: 65px;
}
@media only screen and (max-width: 750px) {
    section#form.confirm,
    section#form.thanks {
        padding-top: 8.666vw;
    }
}
section#form.confirm dl dd {
    padding: 0.5em 1.5em;
    background-color: #f6f6f6;
    border: 1px solid #c8c5c5;
    min-height: 3em;
    box-sizing: border-box;
}

/* thanks */
section#form.thanks p {
    text-align: left;
}
section#form.thanks p.center {
    margin-bottom: 2.5em;
    text-align: center;
}
section#form.thanks p.note {
    margin-bottom: 3.5em;
}


