﻿@media (max-width: 768px) {
    body{
        grid-template-columns: calc(100vw - 40px) 40px ;
        align-items: flex-start;
    }
    body > header{
        grid-column: 1 / -1;
        grid-row: 1;
    }
    ul.banner{
        grid-column: 2;
        grid-row: 1 / 4;
    }
    body > main{
        grid-column: 1;
        grid-row: 2;
    }
    body > footer{
        grid-column: 1 / -1;
        grid-row: 3;
    }
    body > #slider,
    body > p{
        display: none;
    }
}

article > header > figure{
    position: relative;
    margin-bottom: 1rem;
}
article > header > figure::after{
    content: "";
    background: radial-gradient( rgba(var(--main-color-opacity), .7) 0%, rgba(var(--main-color-opacity), 0) 70%);
    width: 17.5rem;
    height: 13.5rem;
    position: absolute;
    bottom: -10rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

article > header > figure img{
    width: 50vw;
    height: 25rem;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 768px) {
    article > header > figure img{
        width: 100vw;
        height: 15rem;
    }
}

article > header h2{
    font-size: 2rem;
    padding-left: 6rem;
    position: relative;
    margin-bottom: 3rem;
}
article > header h2::before{
    content: "";
    width: 26.75rem;
    height: 2px;
    background: var(--main-color);
    position: absolute;
    left: 0;
    bottom: -1.5rem;
}
article > header h2::after{
    content: "Contact";
    color: rgba(var(--main-color-opacity), .5);
    font-size: 3rem;
    position: absolute;
    left: 2rem;
    bottom: -2rem;
    z-index: -1;
}
article > section{
    padding: 2rem 0 3rem;
}
article > section > div{
    width: 90%;
    margin: 0 auto;
}
@media (max-width: 768px) {
    article section{
        padding: 2rem 0;
    }
    article > header h2{
        font-size: 1.5rem;
        padding-left: 2rem;
    }
    article > header h2::before{
        width: 16rem;
    }
    article > header h2::after{
        left: 17rem;
    }
}



form{
    max-width: 900px;
    margin: 5rem auto;
}
form > p{
    padding: 1rem 0;
    font-size: .9rem;
}
article > section > div > p{
    max-width: 900px;
    margin: 0 auto;
    font-size: .9rem;
    text-align: justify;
}

input,
textarea {
    -webkit-transition: all 0.5s ease-out 0s;
    -moz-transition: all 0.5s ease-out 0s;
    -ms-transition: all 0.5s ease-out 0s;
    -o-transition: all 0.5s ease-out 0s;
    transition: all 0.5s ease-out 0s;
    margin: .6rem auto 0;
    font-size: 1rem;
    color: var(--text-color);
    border: 1px solid rgba(var(--text-color-opacity), .5);
    box-shadow: none;
    padding: 0 1rem;
}
input{
    height: 3rem;
}
input[name="your-name"],
input[name="your-name-kana"],
input[type="email"],
input[name="your-address"],
input[name="your-subject"]{
    width: 17.5rem;
}
textarea{
    width: 25rem;
}

input[type="radio"]{
    margin-left: 1rem;
    margin-top: .15rem;
}
textarea{
    padding: 1rem;
}
form p:last-of-type{
    text-align: center;
}
input[type="submit"]{
    padding: .5rem 1.5rem;
    background: rgba(83,71,65,.1);
}
input[type="submit"]:hover{
    background: rgba(83,71,65,1);
    color: rgba(255,255,255,1);
}
.mwform-radio-field label{
    display: flex;
    align-items: center;
}
@media (max-width: 768px) {
    textarea{
        width: 20rem;
    }
}