@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --text: #3F6084;
    --base: #FFFEF6;
    --blue: #E7F0F6;
    --darkblue: #A2C6FF;
    --pink: #FAC7C1;
}
html {
    font-size: 10px;
    overflow-y: scroll;
}
body {
    font-size: 1.6em;
    line-height: 1;
    font-family: "Kiwi Maru", serif;
    color: var(--text);
    background: var(--base);
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    width: 100%;
}
ul, ol, dl {
    list-style: none;
}

/* header -------------------- */
.contact header {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    padding: 2em 0 0 2em;
    gap: 1.5em;
}
.contact header>div {
    width: 300px;
}
.contact header nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75em;
    width: 30%;
}
.contact header nav ul li {
    font-size: 1.25em;
    background: #FFFFFF;
    box-shadow: 0 0 10px 5px #E7F0F6B3 inset;
    border-radius: 999px;
    width: 9.5em;
    text-align: center;
    padding: .75em 0;
    transition: 1s;
}
.contact header nav ul li:hover {
    transform: scale(1.1);
    transition-duration: .5s;
}
.contact header {
    background: url(../img/topblue.webp) no-repeat right bottom/cover;
    height: 370px;
}


/* contact
------------------------------------------ */
.contact main {
    background-color: var(--base);
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
}
.contact main>div {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin: 3em auto;
    gap: .25em;
}
.contact main>div h1 {
    font-size: 3em;
    font-weight: 500;
    text-align: center;
}
.contact main>div:has(h1) img {
    width: 4em;
    height: 3em;
    object-fit: cover; 
}
.contact main>div:has(h1) img:first-of-type {
    order: -1;
}
.contact main>p:first-of-type{
    text-align: center;
    margin: 4em auto;
    line-height: 1.5;
}
.contact label {
    font-size: 1.25em;
    margin: 0 0 1em;
}
.form-required {
    margin: 2em auto;
    max-width: 80%;
    display: flex;
    flex-flow: column;
    justify-content: center;
}
.form-required div {
    display: flex;
    flex-flow: column;
    margin-bottom: 3em;
    width: 100%;
}
.form-required form label {
    margin: 0 0 1em;
}
.required {
    background-color: var(--pink);
    color: var(--base);
    padding: 0 .5em;
    margin-right: .5em;
}
.contact form input[type="text"],
.contact form input[type="email"],
.contact form input[type="tel"],
.contact form input[type="date"],
.contact form select,
.contact form textarea {
    width: 100%;
    padding: .5em;
    border: 1px solid var(--text);
    border-radius: 0.25em;
    font: inherit;
    outline: none;
}
.contact form input[type="date"],
.contact form select {
    max-width: 250px;
}

.contact form input[type="text"],
.contact form input[type="email"],
.contact form input[type="tel"],
.contact form textarea {
    max-width: 500px;
}
.questionary p {
    font-size: 1.5em;
    border-bottom: var(--darkblue) solid 3px;
    line-height: 1.5;
}
.optional {
    background-color: var(--darkblue);
    color: var(--base);
    padding: 0 .5em;
    margin-right: .5em;
}
.form-optional {
    margin: 2em auto 3em;
    max-width: 80%;
    display: flex;
    flex-flow: column;
    justify-content: center;
}
.form-optional div {
    display: flex;
    flex-flow: column;
    margin-bottom: 3em;
    width: 100%;
}
.form-optional label {
    line-height: 1.5;
    margin: 0 0 1em;
}
.form-optional select,
.form-optional textarea {
    width: 100%;
    padding: .5em;
    border: 1px solid var(--text);
    border-radius: 0.25em;
    font: inherit;
    outline: none;
}
.form-optional select {
    max-width: 250px;
}
.form-required textarea {
    resize: vertical;
    height: 10em;
    line-height: 1.7em;
}

/* プライバシーポリシー */
.privacy-policy_area {
    align-items: center;
}
.privacy-policy {
    width: 80%;
    height: 160px;
    padding: .5em 2em;
    margin: 0 auto 2em;
    border: 1px solid var(--text);
    border-radius: .25em;
    background-color:#FFF;
    overflow-y: scroll;
}
.privacy-policy__head {
    text-align: center;
    border-bottom: 4px dotted var(--darkblue);
    margin: 0 auto .75em;
    padding: .75em 0;
    line-height: 1.25;
}
.privacy-policy__detail {
    line-height: 1.5em;
    margin-bottom: 1.25em;
    text-align: justify;
}
.privacy-policy_checkbox {
    display: flex;
    flex-flow: row !important;
    gap: 1em;
    justify-content: center;
    margin-bottom: 4em !important;
}
.privacy-policy_checkbox label {
    margin: 0 !important;
}
/* 送信ボタン */
.contact .submit {
    border: none;
    width: 16em;
    padding: 1em 0;
    font: inherit;
    font-size: 1.25em;
    border-radius: 5em;
    background-color: var(--text);
    color: #FFF;
    transition: .5s;
}
.contact .submit:hover {
    background-color: #3F608488;
    color: var(--base);
}
.contact .btn {
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: 2em;
    margin: 4em auto;
}
.btn a {
    background-color: var(--pink);
    color: #FFF;
    border-radius: 5em;
    font: inherit;
    font-size: 1.25em;
    width: 16em;
    padding: 1em 0;
    text-align: center;
    transition: .5s;
}
.btn a:hover {
    background-color: #FAC7C1bb;
    color: var(--base);
}
/* footer 
---------------------------------------------------------- */
footer {
    background: url(../img/footer.webp) no-repeat top center/cover;
}

/* address ---------- */
.address {
    font-style: normal;
    width: 100%;
    margin: 0 auto;
    padding: 3em 1.5em 0;
    display: flex;
    justify-content: center;
    gap: 3em;
}
.address ul {
    display: flex;
    flex-flow: column;
    gap: 2em;
}
.address ul li h4 {
    font-size: 3em;
    font-weight: 500; 
    line-height: 1.25;
}
.address ul li h4>span {
    font-size: .375em;
    font-weight: normal;
}
.address ul li p {
    font-size: 1.125em;
    line-height: 1.75;
}
.address ul li a:hover {
    text-decoration: underline;
}
.address iframe {
    width: 40%;
    margin-top: 1.5em;
}

/* footerNav ---------- */
.footerNav {
    width: 100%;
    margin: 0 auto;
}
.footerNav ul {
    display: flex;
    flex-flow: column;
    text-align: center;
    gap: 1em;
    padding: 8em 1.5em 3em;
}
.footerNav ul li {
    font-size: 1em;
}

/* footerCopy ---------- */
.copyright {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 1.5em;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1em;
}
.copyright small {
    margin-bottom: .5em;
}
.copyright img {
    width:50px;
}

/* 800px以下--------------------------------------------- */
@media (max-width: 800px) {
    .lead {
        width: 28em;
    }
    .lead a {
        font-size: 1.75em;
    }
    .lead img {
        width: 2em;
        height: 2em;
    }
    .address ul li h4 {
        font-size: 2em;
    }
    .address ul li p {
        font-size: 1em;
    }
    .address {
        flex-flow: column;
        align-items: center;
    }
    .address iframe {
        width: 85%;
        height: 250px;
        margin-top: 0;
    }
}

/* 480px以下---------------------------------- */
@media (max-width:480px) {
    .contact header nav ul li {
        font-size: 1em;
    }
    .contact header {
        height: 300px;
    }
    .lead {
        width: 20.5em;
    }
    .lead a {
        font-size: 1.25em;
    }
    .lead img {
        width: 1.5em;
        height: 1.5em;
    }
    .contact main>div h1 {
        font-size: 2em;
    }
    .contact main>div img {
        width: 3em;
        height: 2em;
        object-fit: cover; 
    }
    .questionary p {
        font-size: 1.25em;
    }
    .privacy-policy {
        padding: .5em 1em;
    }
}