/* 
|
|
| 変数
|
|
*/
:root {
    --green-color          : #23C653;
    --green-dark-color     : #1B9A3D;
    --blue-color           : #296692;
    --brown-color          : #603933;
    --black-color          : #2A2A2A;
    --gray-color           : #CFCFCF;
    --gray-light-color     : #E9E9E9;
    --white-color          : #FFFFFF;
    --white-opacity-color  : #ffffff2A;
    --blue-gradient-color  : linear-gradient(-45deg, #39ADF4, #278BD2);
    --yellow-gradient-color: linear-gradient(-45deg, #F4BD26, #FFDC17);
    --bg-color             : #F2F7F4;
    --bg-stripe-color      : #F2FCF6;
    --text-color           : #202020;
    --shadow-color         : #E1E1E1;
}
/* 
|
|
| CONTACT
|
|
*/
.contact_container {
    position: relative ;
    display: flex ;
    flex-direction: column ;
    align-items: center ;
    padding: 120px 40px ;
    width: 100% ;
    box-sizing: border-box ;
    gap: 32px ;
}

.contact_box {
    width: 100% ;
}

.contact_textbox {
    display: flex ;
    flex-direction: column ;
    width: 100% ;
    gap: 16px ;
    color: var(--white-color) ;
    margin-bottom: 32px ;
}

.contact_title {
    font-size: 20px ;
}

.contact_text {
    font-size: 12px ;
    display: flex ;
    flex-direction: column ;
    justify-content: center ;
    gap: 8px ;
}

.contact_text span {
    position: relative ;
    font-size: 12px;
    line-height:initial ;
    padding: 20px ;
    background: var(--white-color) ;
    color: var(--text-color) ;
    border-radius: 16px ;
    font-weight: bold ;
    box-sizing: border-box ;
}

.contact_text span a {
    color: var(--green-color) ;
    text-decoration: underline ;
    font-weight: bold ;
}

.contact_imgbox {
    display: flex ;
    justify-content: center ;
    align-items: center ;
    width: 100% ;
}

.contact_img {
    width: 100% ;
    height: auto ;
    max-width: 300px ;
}

.contact_formbox {
    width: 100% ;
    background-color: var(--white-color) ;
    padding: 32px 24px ;
    border-radius: 16px ;
    box-sizing: border-box ;
}

.contact_formbox.shadow:hover {
    top: 0 ;
    box-shadow: 0 4px 0 0 var(--shadow-color);
}

@media screen and (min-width: 768px) {
    .contact_container {
        flex-direction: row ;
        align-items: start ;
        gap: 40px ;
    }

    .contact_box {
        padding: 40px ;
        box-sizing: border-box;
        position: sticky ;
        top: 120px ;
    }

    .contact_title {
        font-size: 24px ;
    }

    .contact_text {
        font-size: 16px ;
    }

    .contact_img {
        max-width: 400px ;
    }

}
/* 
|
|
| Contact Form 7
|
|
*/
.wpcf7 {
    width: 100% ;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 16px 14px ;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-sizing: border-box ;
    letter-spacing: 0.08rem ;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: var(--green-color) ;
    outline: 0;
}

span:has(input[type="checkbox"]) {
    width: 100% ;
    box-sizing: border-box ;
    display: flex ;
    align-items: center ;
    gap: 4px ;
    margin-top: 2px;
}

.wpcf7 input[type="submit"] {
    position: relative ;
    width: 100% ;
    height: 56px ;
    border-radius: 28px ;
    border: 2px solid var(--white-color) ;
    font-size: 14px ;
    font-weight: bold ;
    color: var(--white-color) ;
    background: var(--yellow-gradient-color) ;
    transition: all .3s ease-in-out ;
    box-sizing: border-box ;
    letter-spacing: 0.08rem ;
}

.btn-text {
    display: flex ;
    justify-content: center ;
    align-items: center ;
    width: 100% ;
    height: 100%;
    text-align: center ;
    text-decoration: none ;
    color: var(--white-color) ;
    white-space: nowrap ;

}

.wpcf7 input[type="submit"]:hover {
    background-color: #FFC107;
}

.required {
    font-size: 0.8em;
    padding: 3px;
    background: #F64545 ;
    color: #ffffff;
    border-radius: 2px;
    margin-right: 10px;
    margin-bottom: 2px;
    display: inline-block;
}

.wpcf7-not-valid-tip,
.wpcf7-response-output.wpcf7-validation-errors {
    color: #F64545;
    font-weight: bold;
    font-size: 14px ;
}

.wpcf7 form {
    display: flex ;
    flex-direction: column ;
    gap: 16px ;
}

.wpcf7 label {
    font-size: 14px;
    color: var(--font-color) ;
    margin-bottom: 6px;
}

.wpcf7 select {
    background-image:
        linear-gradient(45deg, transparent 50%, gray 50%),
        linear-gradient(135deg, gray 50%, transparent 50%),
        linear-gradient(to right, #ccc, #ccc);
    background-position:
        calc(100% - 24px) calc(1em + 10px),
        calc(100% - 19px) calc(1em + 10px),
        calc(100% - 3em) calc(1em + 2px);
    background-size:
        5px 5px,
        5px 5px,
        1px 1.5em;
    background-repeat: no-repeat;
}

.wpcf7 select:focus {
    background-image:
        linear-gradient(45deg, var(--green-color) 50%, transparent 50%),
        linear-gradient(135deg, transparent 50%, var(--green-color) 50%),
        linear-gradient(to right, #ccc, #ccc);
    background-position:
        calc(100% - 19px) calc(1em + 10px),
        calc(100% - 24px) calc(1em + 10px),
        calc(100% - 3em) calc(1em + 2px);
    background-size:
        5px 5px,
        5px 5px,
        1px 1.5em;
    background-repeat: no-repeat;
    border-color: var(--green-color) ;
    outline: 0;
}
/* 
|
|
| Modal
|
|
*/
.modal {
    visibility: hidden; /* 初期状態は非表示 */
    opacity: 0 ; /* アニメーション用 */
    position: fixed;
    z-index: 1000;
    top: 0 ;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* モーダル全体のスクロールを無効化 */
    background-color: rgba(0, 0, 0, 0.5); /* 背景を暗くする */
    transition: visibility 0s, opacity 0.3s ease; /* アニメーション */
    display: flex ;
    justify-content: center ; /* 中央寄せ */
    align-items: start ;
}

.modal.show {
    visibility: visible; /* 表示状態 */
    opacity: 1; /* フェードイン */
}

.modal_content {
    background-color: #fff;
    margin: 96px 20px ;
    padding: 24px;
    border-radius: 16px;
    width: calc(100% - 40px); /* モーダルの幅を画面幅に合わせる */
    max-width: 800px;
    max-height: calc(100% - (96px * 2)); /* モーダルの高さを制限 */
    overflow-y: auto; /* モーダル内でスクロール可能にする */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
    transform: translateY(-20px); /* 初期位置を少し上に */
    transition: transform 0.3s ease; /* スライドインのアニメーション */
}

.modal_content.shadow:hover {
    top: 0 ;
    box-shadow: 0 4px 0 0 var(--shadow-color);
}

.modal_content::-webkit-scrollbar {
    display:none;
}

.modal.show .modal_content {
    transform: translateY(0); /* 元の位置にスライドイン */
}

.modal_close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal_close:hover,
.modal_close:focus {
    color: black;
    text-decoration: none;
}

.modal_content h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-color) ;
    font-weight: bold ;
    width: 100%;
    text-align: center;
    height: 28px;
    line-height: 28px;
    padding-left: 32px;
    box-sizing: border-box;
}

.modal_content p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-color) ;
}

#privacy_text_button {
    text-decoration: underline; /* 下線を追加 */
    cursor: pointer; /* ポインタを表示 */
    color: var(--green-color); /* リンクらしい色に変更 */
    font-weight: bold; /* 強調表示 */
    transition: all 0.3s ease; /* ホバー時のアニメーション */
}

#privacy_text_button:hover {
    color: var(--green-dark-color); /* ホバー時の色変更 */
}