/* CSS Document */
@charset "UTF-8";


body {
    background: #DACDCD;
}

section {
    padding: 110px 0 0 0 ;
}

.contact_ttl {
    margin-top: 100px;
}

.contact_grp {
    display: flex;
    position: relative;
    margin-top: 230px;
    padding: 110px 0;
    width: 100%;
    height: auto;
    background: #3C3635;
}
.mail_mrk {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #3C3635;
}
.contact_grp > .container {
    display: flex;
    justify-content: space-between;
}
.section_ttl {
    color: #DACDCD;
}
.contact_txt {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 70px;
    color: #DACDCD;
}
.privacy {
    border-top: none;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid #DACDCD;
    background: none;
    color: #DACDCD;
    letter-spacing: normal;
}
.privacy_overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    transform: translateY(100%);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(60, 54, 53, 0.40); /* 半透明の背景 */
    z-index: 999 !important;
    will-change: opacity, transform; /* パフォーマンス最適化 */
}
.privacy_overlay.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
 /* オーバーレイの中身 */
.privacy-overlay_inner {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: flex-start; /* 上揃えに変更 */
    align-items: center;
    box-sizing: border-box;
    width: 80%;  /* 横幅を調整 */
    max-height: 90vh;  /* 最大高さを指定 */
    overflow-y: auto; /* 縦スクロールを有効に */
    background: #DACDCD;
    padding: 60px 30px 30px; /* 上部のパディングを増やす */
    border-radius: 20px;
    transform: translateY(100%);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 表示時にスライドアップ */
.privacy_overlay.active .privacy-overlay_inner {
    transform: translateY(0);
    opacity: 1;
    z-index: 1001 !important;
}
.privacy_ttl {
    margin-top: 0; /* 上部のマージンを削除 */
    font-size: 2.5rem;
    text-align: center;
    z-index: 1;
    width: 100%;
    word-wrap: break-word;
    padding: 0 20px;
    box-sizing: border-box;
}
.privacy-sub_ttl {
    margin: 30px 0;
}
.privacy_txt {
    margin: 5px 0;
}
.privacy_group {
    display: flex;
    flex-direction: column;
    margin: 30px 0;
    width: 100%; /* 幅を100%に設定 */
    box-sizing: border-box;
    padding: 0 20px; /* 左右に余白を追加 */
}
.privacy-last_txt {
    margin: 10px 0;
}
.form_group {
    display: flex;
    flex-direction: column;
    width: 50%;
    padding: 0 20px; /* 追加: 左右のパディング */
    box-sizing: border-box; /* 追加: パディングを幅に含める */
}
.form_parts {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px; /* 変更: 下方向のマージンのみ */
    box-sizing: border-box; /* 追加 */
}
.form_parts:last-child {
    margin-bottom: 0; /* 追加: 最後の項目にはマージンを下方向のマージンをなしにする */
}
.form_parts-label {
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #DACDCD;
}
.form_parts-input {
    width: 100%;
    height: auto;
    background: #ECE4E4;
    border-radius: 20px;
    font-size: 1rem;
    box-sizing: border-box;
}
.wpcf7-form-control-wrap {
    display: block;
    width: 100% !important;
}
#your-name {
    border-radius: 20px;
}
#your-mail {
    border-radius: 20px;
}
#your-number {
    border-radius: 20px;
}
#your-subject {
    border-radius: 20px;
}
#your-message {
    border-radius: 20px;
    height: 200px;
    padding: 15px;
    resize: none;
    vertical-align: top;
    line-height: 1.5;
}
.send_btn {
    display: flex;
    justify-content: center; /* テキストと矢印を両端に配置 */
    align-items: center;
    margin: 70px auto;
    width: 40%;
    height: 60px;
    background: #ECE4E4;
    border-radius: 50px;
    padding: 0 30px; /* 左右の余白を追加 */
    box-sizing: border-box; /* paddingをwidth/heightに含める */
}
.wpcf7-form-control.wpcf7-submit.has-spinner.form_send {
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: 500;
    color: #3C3635;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    flex-grow: 1; /* 利用可能なスペースを占有 */
    text-align: left; /* テキストを左寄せ */
    padding: 0; /* デフォルトのpaddingを削除 */
}
.send_btn > inpu[type="submit"] {
    border: none;
    background: none;
    font-size: 1.25rem;
    font-weight: 500;
    color: #3C3635;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    flex-grow: 1; /* 利用可能なスペースを占有 */
    text-align: left; /* テキストを左寄せ */
    padding: 0; /* デフォルトのpaddingを削除 */
}
.send_btn > p {
    display: flex;
}
.wpcf7-spinner {
    display: none !important; /* スピナーを非表示にする */
}
.send_arrow {
    display: flex;
    position: relative;
    flex-shrink: 0; /* 矢印が縮まないようにする */
    margin-top: 3px;
    margin-left: 30px; /* 不要なマージンを削除 */
    width: 25px; /* 矢印アイコンの幅 */
    height: 25px; /* 矢印アイコンの高さ */
}
.send_arrow::before {
    display: block;
    content: "";
    position: absolute;
    right: 17px;
    top: 5px;
    width: 20px;
    height: 3px;
    background: #3C3635;
    border-radius: 3px;
    transform: rotate(45deg);
}
.send_arrow::after {
    display: block;
    content: "";
    position: absolute;
    right: 17px;
    bottom: 5px;
    width: 20px;
    height: 3px;
    background: #3C3635;
    border-radius: 3px;
    transform: rotate(-45deg);
}

/* スピナーの位置調整 */
.wpcf7-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media(max-width: 1200px){
    .contact_grp > .container {
        flex-direction: column;
        justify-content: center;
    }
    .contact_blk {
        margin: auto;
    }
    .form_group {
        margin-top: 50px;
        width: 100%;
    }
    .send_btn {
        width: 90%;
    }
}

.select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box; /* 追加 */
}

.select-wrap select {
    width: 100% !important;
    padding: 10px 15px;
    background: #ECE4E4;
    border: none;
    border-radius: 20px;
    appearance: none;
    cursor: pointer;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 1rem;
    color: #3C3635;
    height: auto;
    transition: border-radius 0.4s ease-in-out;
    box-sizing: border-box; /* 再追加 */
}

.select-wrap select:focus {
    outline: none;
    border-radius: 20px 20px 0 0;
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    width: 24px;
    height: 24px;
    pointer-events: none;
    transform: translateY(-50%);
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.select-arrow::before,
.select-arrow::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 3px;
    background: #3C3635;
    border-radius: 1px;
}

.select-arrow::before {
    top: 7px;
    transform: rotate(45deg);
}

.select-arrow::after {
    bottom: 7px;
    transform: rotate(-45deg);
}

.select-wrap select:focus + .select-arrow {
    transform: translateY(-50%) rotate(90deg);
}

.select-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 0;
    background: #3C3635;
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.select-wrap select:focus ~ .select-bar {
    width: 100%;
}

/* 選択肢のスタイル */
.select-wrap select option {
    padding: 18px 20px;
    background: #ECE4E4;
    color: #3C3635;
    transition: all 0.3s ease;
}

.select-wrap select option:hover,
.select-wrap select option:focus {
    background: #3C3635;
    color: #ECE4E4;
}

.select-wrap > p {
    width: 100%;
}

/* ドロップダウンリストのアニメーション */
.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ECE4E4;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 24px rgba(60,54,53,0.10);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
    height: 0;
}

.select-wrap select:focus::after {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    height: auto;
}

/* 選択肢のリストスタイル */
.select-wrap select:focus {
    border-radius: 20px 20px 0 0;
}

.select-wrap select option {
    display: none;
}

.select-wrap select:focus option {
    display: block;
    padding: 18px 20px;
    background: #ECE4E4;
    color: #3C3635;
    transition: all 0.3s ease;
}

.select-wrap select option:hover {
    background: #3C3635;
    color: #ECE4E4;
}

.error-message {
    color: #ff0000;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form_parts-input:invalid:focus + .error-message {
    display: block;
}

.form_parts-input:invalid:not(:focus) + .error-message {
    display: none;
}

/* プライバシーポリシーモーダル表示時はエラーメッセージを非表示 */
.privacy_overlay.active ~ .form_group .error-message {
    display: none !important;
}

/* Contact Form 7のバリデーションメッセージ制御 */
.wpcf7-not-valid-tip {
    display: none !important;
}

.wpcf7 form .wpcf7-response-output {
    display: none !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.sent .wpcf7-response-output {
    display: block !important;
}

/* 送信ボタンクリック時のみバリデーションメッセージを表示 */
.form_send:focus ~ .form_parts .wpcf7-not-valid-tip,
.form_send:active ~ .form_parts .wpcf7-not-valid-tip {
    display: block !important;
}

