
#container h2 {
    background: linear-gradient(to right, #17342f, #5a6557);
    padding: 10px 20px;
    color: #d2a635;
    text-align: center;
    margin: 0 auto;         
    display: block;         
    width: fit-content;     
    border-radius: 0px;     
}

#container h3 {
    background: linear-gradient(to right, #17342f, #5a6557);
    width: 1000%;
    max-width: 460px;
    padding: 10px 0px 0px;
    color: #d2a635;
    text-align: center;
    margin: 0 auto 5vw;
    display: block;
    border-radius: 0px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

#container h3 .jptext {
    display: block;
    margin-bottom: -10px;
}

#container h3 .entext {
    display: block;
    font-size: min(max(25px, calc(1.5625rem + ((1vw - 7.67px) * 4.7923))), 40px);
    min-height: 0vw;
    margin-bottom: 0px;
}

#container h3 .jptext,
#container h3 .entext {
    font-family: "Noto Serif", serif;
    font-weight: normal;
}

main#container{
    margin-bottom: 100px;
}

#contact {
	width: 80%;
	margin: 20px auto;
}

section#id{
    margin: 0 0; 
    padding: 0px 0; 
   
}

.formBox{
    width: 80%;
    margin: 30px auto 0;
}

.text-content {
    flex: 1; 
    padding-top: 5px; 
}

.text-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.text-content p {
    margin-top: 0;
    margin-bottom: 0;
}

.inputBox .red {
    font-size: 0.85em;
    margin-top: 0.25em;
}

.inputBox span {
    word-break: keep-all;
    font-size: 18px;
}

.inputBox input,
.inputBox select,
.inputBox textarea {
    width: 100%;
    font-size: 18px;
    padding: 1.25em;
    background-color: #f7f7f7;
    outline: 2px solid #374b43;
    border: none;
    border-radius: 4px;
    margin-top: 0.5em;
    box-sizing: border-box;
}

.inputBox #tel1,
.inputBox #mail,
.inputBox #mail2{
    width: 60%;
}

.inputBox input:focus,
.inputBox select:focus,
.inputBox textarea:focus {
    outline: 2px solid #374b43;
}

.inputBox select {
    cursor: pointer;
}

.selectWrapper {
    position: relative;
}

.inputBox select {
    appearance: none;
    color: black !important;
}

.inputBox #adSelect td {
    border-bottom: 0.5px solid #000000;
    border-right: dotted 1px #ccc;
    padding: 0 10px;
}

.inputBox #adSelect td select {
    margin-bottom: 0.5em;
    text-align: center;
    outline: none;
}

.submitBox>input,
.submitBox>a,
.returnBox>input {
    width: 300px;
    padding-block: 0;
    padding-inline: 0;
    border-width: 0;
    border-style: none;
    display: inline-block;
    font-size: 21px;
    color: white;
    letter-spacing: 0.1em;
    background-color: #17342f;
    padding: 0.5em 1.5em;
    border-radius: 8px;
    margin-top: 2em;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.6s;
    text-align: center;
}

.returnBox>input {
    background-color: #ae040a;
}

@media (hover: hover) {

    .submitBox>input:hover,
    .returnBox>input:hover {
        opacity: 0.7;
    }
}

#formBody input[type="text"].errorInput {
    background-color: #fee6e7 !important;
}

.error {
    font-size: 1.1em;
    font-weight: 600;
    color: #ffffff;
    padding: 0.25em 0.5em;
    background-color: #ae040a;
    border-radius: 4px;
    margin: 1em 0;
}


/*
* form check
*/
.check {
    padding-bottom: var(17.5vh);
}

p.formCheck {
    margin-top: 1em;
}

.check #formWraper {}

.check #formWraper .formBox {
    font-size: 21px;
    color: #545454;
}

.check #formWraper .formBox~.formBox {
    padding-top: var(5vh);
    border-top: 1px solid #d4d4d4;
}

.check #formWraper .formBox label {
    display: block;
    font-size: 18px;
    color: #766e6b;
}


/*
* thanks
*/
.thanksBox {
    margin-top: 7.5vh;
}

.thanksTitle {}

.thanksText {
    margin-top: 1em;
}

.thanksText span {
    font-size: 21px;
    padding-right: 0.5em;
}

.alignC{
    text-align: center;
}

.btnCnt {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 5%;
}

#container h3.thanksTitle{
    font-size: min(max(18px, calc(1.125rem + ((1vw - 7.67px) * 1.278))), 22px);
    background: unset;
    color: #000;
}

#container h3.checkTitle {
    font-size: min(max(18px, calc(1.125rem + ((1vw - 7.67px) * 1.278))), 22px);
    background: unset;
    color: #000;
}

.thanksPage .thanksTxt{
    margin-bottom: 50px;
}

#contact_body{
        position: relative;
        min-height: 100%;
        height: auto !important;
        height: 100%
}

#contact_body footer{
    position: absolute;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

#formBody{
    margin-bottom: 100px;
}

.bottomCaution{
    margin-top: 20px;
    padding-bottom: 150px;
}
