:root{
    --topColor:#2b2a2a;
    --textColor:#000;
    --btnColor:#72521a;
    --hoverColor: #3f2c11; 
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    font-size: 10px;
}
body{
    background-image: url(../image/gbPc.jpg);
}
body,footer{
    font-size: 1.6em;
    line-height: 1.5;
    font-family: "Kiwi Maru", serif;
    color: var(--textColor);
}
.eng{
    font-family: "Comfortaa", sans-serif;
}

img{
    max-width: 100%;
} 
a{
    text-decoration: none;
}
main{
    padding: 0 5em;
}
h2{
    font-weight: normal;
}
h3{
    font-weight: normal;
}
h4{
    font-weight: normal;
}

/***HEADER***/
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    padding: 1.5em 0;
    background-image:linear-gradient(0deg,transparent,#fff,80% ,#fff) ;
    transition: 0.5s;
}
header .nav{
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
}
header .logo img{
    width: 10em;
}
header ul{
    display: flex;
    gap: 1em;
    font-size: 1.5em;
    list-style: none;
}
header ul li a{
    color: var(--textColor);
}
header ul li a:hover{
    color: var(--btnColor);
}
#Hbg,
#Hbg+label {
    display: none;
}
/***MAIN***/
.mailform{
    width: 100%;
    /* display: flex; */
    align-items: center;
    position: relative;
}
.mailform::before {
    content: '';
    display: block;
    background: url(../image/birthday2.png) no-repeat center/cover;
    width: 100%;
    aspect-ratio: 3840/2559;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: -1;
    opacity: .3;
}
.mailform ul{
    text-align: justify;
}
.mailform ul li{
    margin-bottom: .5em;
}
.inner{
    margin: 7em 10em;
}
.innerTitle h2{
    text-align: center;
    margin: 0 2em;
}
p{
    text-align: justify;
}
.innerTitle{
    display: flex;
    justify-content: center;
    margin-bottom: 3em;
}
.innerTitle::before{
    content: '';
    display: inline-block;
    background: url(../image/line.png) no-repeat;
    flex-grow: 1;
    background-position: center;
}
.innerTitle::after{
    content: '';
    display: inline-block;
    background: url(../image/line.png) no-repeat;
    flex-grow: 1;
    background-position: center;
}
.innerTitle.btn{
    display: flex;
    justify-content: center;
}
main>section{
    padding: 8em 0 12em 0;
}
h3{
    text-align: center;
    font-size: 1.5em;
    padding-top: 4.5em;
    padding-bottom: 1em;
}
.btn{
    display: flex;
    justify-content: center;
    gap: 3em;
    margin-top: 6em;
    margin-bottom: 5em;
}
.btn>li{
    background-color: var(--btnColor);
    color: #ffffff;
    border-radius:999px;
    margin: 0 auto;
    margin-top: 2em; 
    text-align: center;
    width: 15em;
    line-height: 2.5em;
    font-size: 1.2em;
    transition: 0.5s;
}
.btn>li:hover {
    background-color: var(--hoverColor);
}
.btn>li>a{
    color: #ffffff;
    display: block;
}
input.sendbtn{
    -webkit-appearance: none;
    appearance: none;
    font-family: "Kiwi Maru", serif;
    width: 30% !important;
    line-height: 2.5em;
    font-size: 1.2em;
    border-radius:999px;
    color: #ffffff;
    background-color: var(--btnColor);
    text-align: center;
}
input.sendbtn:hover {
    background-color: var(--hoverColor);
}
table{
    font-size: 1.15em;
}
.mailform table{
    width: 100%;
    border-collapse: collapse;
}
.mailform li{
    list-style: none;
}
.mailform input[type="text"],
.mailform input[type="email"],
.mailform input[type="tel"],
.mailform input[type="date"],
.mailform textarea,
.mailform select{
    width: 100%;
    padding: .5em;
    border: 1px solid var(--colorText);
    border-radius: .25em;
    font: inherit;
    outline: none;
}
.mailform input[type="text"]:focus,
.mailform input[type="email"]:focus,
.mailform input[type="tel"]:focus,
.mailform textarea:focus{
    outline: 3px solid var(--colorBlue);
    outline-offset: -3px;
    background: #f7ffab;
}
.mailform input[type="radio"] {
    scale: 1.5;
    transform-origin: left center;
    margin-right: 1em;
}
.mailform textarea{
    resize: vertical;
    height: 10em;
    line-height: 1.5;
}
.mailform div input:not([type="radio"]) {
    width: 14em;
}
.mailform div input {
    font-size: 1em;
}
.mailform::placeholder{
    color: #0006;
}
.mailform select{
    width: auto;
}
.mailform table th{
    vertical-align: top;
    padding: 1.25em 0;
    width: 40%;
    text-align: end;
    padding-right: 5em;
}
.mailform table td{
    padding: .75em 0;
    width: 70%;
}
form>div{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    margin-top: 1em;
}
form>div input{
    border: none;
    margin: 0;
    cursor: pointer;
}

/***FOOTER***/
footer .logo{
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
}
footer .logo img{
    width: 10em;
}
footer .footerLink{
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
    border-top: 1px solid var(--hoverColor);
    padding-top: 1em;
}
footer .footerLink ul{
    list-style: none;
    width: 270px;
    display: flex;
    justify-content: space-between;
    gap:1.25em;
}
footer .footerLink ul li{
    display: block;
    width: 80px;
    font-size: .6em;
}
footer .footerLink ul li a{
    color: #000;
}
.footer small{
    display: block;
    background-color: var(--btnColor);
    color: #fff;
    text-align: center;
    padding: 0.5em 0;
    font-size: .5em;
}
/***1220px以下***/
@media (max-width: 1220px) {
    .mailform table th {
        width: 33%;
        padding-right: 4%;
    }
}
/* **960px以下***/ 
@media (max-width: 960px) {
    .btn{
        flex-flow: column;
        gap: 0;
        margin-top: 0;
    }
    .btn>li>a{
        display: block;
    }
    .inner {
        margin: 5%;
    }
    main {
        padding: 5%;
    }
    #Hbg+label {
    display: flex;
    align-items: center;
    width: 3em;
    aspect-ratio: 4/3;
    position: absolute;
    top: 2.25em;
    right: 1em;
    }
    #Hbg+label span,
    #Hbg+label::before,
    #Hbg+label::after{
    content: "";
    display: block;
    background: var(--textColor);
    width: 100%;
    height: 4px;
    transition: .5s;
    }
    #Hbg+label::before,
    #Hbg+label::after{
    position: absolute;
    }
    #Hbg+label::before{
    top: 0;
    }
    #Hbg+label::after{
    bottom: 0;
    }
    #Hbg:checked+label span {
    background: transparent;
    }
    #Hbg:checked+label::before{
    top: calc(50% - 2px);
    rotate: 45deg;
    }
    #Hbg:checked+label::after{
    bottom: calc(50% - 2px);
    rotate: -45deg;
    }
    body>header div nav ul {
    gap: 1.25em;
    font-size: 2em;
    padding: 1.5em 0;
    background: var(--hoverColor);
    opacity: .7;
    flex-flow: column;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 80%;
    left: 100%;
    transition: .5s;
    }
    body>header div nav ul li a {
    color: #fff;
    }
    #Hbg:checked~ul {
    left: 0;
    }
    footer .footerLink{
        max-width: 1000px;
        padding-top: 0.5em;
    }
    footer .logo img{
        width: 5em;
    }
    footer .footerLink ul{
        width: 120px;
        gap:1.5em 1em;
        }
    footer .footerLink ul li{
        width: 50px;
        font-size: .4em;
    }
    .mailform {
        border-radius: 2em;
    }
    .mailform table,
    .mailform table tbody,
    .mailform table tr,
    .mailform table th,
    .mailform table td {
        display: block;
        width: 100%;
    }
    .mailform table th {
        padding: 1.25em 0 0;
        text-align: left;
    }
}
/***430px以下***/
@media (max-width: 430px) {
    footer .footerLink{
        max-width: 500px;
        padding-top: 0.2em;
    }
    footer .logo img{
        width: 3em;
    }
    footer .footerLink ul{
        justify-content: center;
        gap:0em 0.5em;
        }
    footer .footerLink ul li{
        width: 50px;
        font-size: .3em;
        text-align: center;
    }
    footer ul li img{
        height: 3em;
    }
    h3{
        font-size: 1.4em;
    }
}
