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

/* 基本的なリセットとレイアウト調整 */
body {
    overflow-x: hidden;
    font-family: 'メイリオ', sans-serif, 'Hiragino Sans', 'ヒラギノ角ゴ ProN W3', sans-serif;
    color: #333;
    line-height: 1.6;
}
main {
    overflow: hidden;
    margin-bottom: 80px; /* フッターとの間隔を確保 */
}

/* フォーム全体のラッパー */
#form_wrap {
    padding: 20px; /* 全体の余白 */
}

/* フォームタイトル */
.form-title {
    margin: 60px auto 40px;
    text-align: center;
}
.form-title h2 {
    position: relative;
    display: inline-block;
    font-size: 2.2rem; /* 少し大きく */
    color: #856b30; /* ホテルのテーマカラーに合わせる */
    margin-bottom: 20px; /* Pタグとの間隔を調整 */
    letter-spacing: 0.05em; /* 文字間隔を調整 */
}
.form-title h2:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px; /* 下線と文字の間隔を調整 */
    display: inline-block;
    width: 80px; /* 下線の長さを調整 */
    height: 1px;
    background-color: #bb8f55; /* ホテルのテーマカラーに合わせる */
    transition: .5s all;
}
.form-title p {
    font-size: 1.1rem;
    color: #555;
}

/* 電話案内ボックス */
.form-tel {
    width: 60%; /* 幅を調整 */
    max-width: 800px; /* 最大幅を設定 */
    margin: 0 auto 40px;
    padding: 20px;
    background-color: #f8f8f8; /* 明るい背景色 */
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* 控えめな影 */
}
.form-tel p {
    margin-bottom: 10px;
    color: #666;
    font-size: 0.95rem;
}
.form-tel a {
    font-size: 1.8rem; /* 電話番号を大きく */
    color: #bb8f55; /* テーマカラー */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}
.form-tel a:hover {
    color: #856b30; /* ホバー時の色 */
}

/* フォーム本体のスタイル */
#contact-form {
    width: 60%; /* 幅を調整 */
    max-width: 800px; /* 最大幅を設定 */
    margin: 0 auto;
    padding: 40px;
    background: #FFF;
    border: solid 1px #e0e0e0; /* 控えめなボーダー */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* 影を強化 */
}

.color-wrap {
    padding: 0; /* Mailform Proの`.color-wrap`のpaddingをリセット */
    background: none; /* Mailform Proの`.color-wrap`の背景をリセット */
}

/* フォーム項目リスト */
dl.mailform {
    width: 100%; /* 親要素に合わせる */
    margin: 0 auto;
    border: none; /* dlのボーダーを削除 */
    background: none; /* dlの背景を削除 */
    padding: 0; /* dlのpaddingをリセット */
}
dl.mailform dt {
    margin-bottom: 8px;
    color: #444;
    font-size: 1rem;
    display: flex; /* 必須マークと横並びにするため */
    align-items: center;
}
dl.mailform dd {
    margin-bottom: 25px; /* 各項目間の余白 */
}

/* 必須マーク */
.must {
    display: inline-block; /* dt内でインライン要素として表示 */
    background-color: #cd853f; /* ブラウン系の背景色 */
    color: #FFF;
    font-size: 0.75rem; /* 小さめ */
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 10px; /* ラベルとの間隔 */
    vertical-align: middle;
    line-height: 1; /* 行の高さを調整 */
}

/* 入力フィールド、セレクトボックス、テキストエリア */
input[type="text"],
input[type="email"],
input[type="tel"], /* 電話番号用にtelタイプも追加 */
select,
textarea {
    width: 100%;
    padding: 12px 15px; /* 内側の余白を増やす */
    border-radius: 6px; /* 角を少し丸く */
    border: solid 1px #ccc; /* 控えめなボーダー */
    font-size: 1rem;
    color: #333;
    box-sizing: border-box; /* paddingとborderをwidthに含める */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #bb8f55; /* フォーカス時のボーダー色 */
    box-shadow: 0 0 5px rgba(187, 143, 85, 0.3); /* フォーカス時の影 */
    outline: none; /* デフォルトのアウトラインを消す */
}
textarea {
    resize: vertical; /* 縦方向のみリサイズ可能に */
    min-height: 120px; /* 最小高さを設定 */
}

/* 半幅レイアウト */
.half {
    display: flex;
    justify-content: space-between;
    gap: 4%; /* 各カラム間の隙間 */
    margin-bottom: 25px;
}
.half > div {
    width: 48%; /* 2カラムなので48%に */
}
.half dt {
    margin-bottom: 8px;
}
.half dd {
    margin-bottom: 0; /* ddの下余白はdtのあるddのみ */
}

/* ラジオボタン・チェックボックス */
input[type="radio"],
input[type="checkbox"] {
    width: auto; /* 幅を自動調整 */
    margin-right: 8px;
    vertical-align: middle; /* テキストと高さを揃える */
}
.check_wrap {
    display: flex;
    align-items: center; /* ラベルとチェックボックスを縦方向中央揃え */
    margin-bottom: 10px;
}
.check_wrap label {
    font-size: 1rem;
    color: #444;
    cursor: pointer;
}

/* プライバシーポリシーリンク */
.privacy_link {
    text-align: center;
    margin: 30px 0;
    font-size: 0.9rem;
    color: #666;
}
.privacy_link a {
    display: inline;
    color: #bb8f55; /* テーマカラー */
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.privacy_link a:hover {
    color: #856b30;
}

/* 送信ボタン */
div.mfp_buttons {
    clear: both;
    padding: 20px 0;
    text-align: center;
}
div.mfp_buttons button {background:linear-gradient(to bottom,#8dcd38 0%,#53af25 100%);border:none;padding:15px 20px;font-size:14px;color:#FFF;width:300px;border-radius:10px;text-shadow:none;transition:.3s ease-in-out;}
div.mfp_buttons button:hover{background:linear-gradient(to bottom,#8dcd38 0%,#53af25 100%);opacity:.5;}

/* ありがとうございます画面用 */
.thanks-cap {
    margin: 50px auto;
    text-align: center;
    font-size: 1.2rem;
    color: #555;
}
.done a {
    display: inline-block; /* 中央寄せと幅指定のために */
    text-align: center;
    padding: 15px;
    width: 300px;
    margin: 30px auto;
    transition: .5s all;
    background: linear-gradient(to bottom, #8dcd38 0%, #53af25 100%);
    border-radius: 5px;
    color: #FFF;
    text-decoration: none;
}
.done a:hover {
    opacity: .8;
}

/* フォーム以外のフッターやSNSボタンなど、関係ない部分は省略 */
footer.fit{position:fixed;bottom:0;} /* これはフォームには関係ないので、必要に応じて調整してください */


/* --- モーダル部分のスタイル（変更なし、または微調整） --- */
/* モーダルのオーバーレイ */
.modal {
  display: none; /* 初期状態では非表示 */
  position: fixed;
  z-index: 1000; /* 他の要素より手前に表示 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* 内容がはみ出た場合にスクロール可能に */
  background-color: rgba(0,0,0,0.6); /* 半透明の背景 */
  backdrop-filter: blur(3px); /* 背景を少しぼかす */
  -webkit-backdrop-filter: blur(3px); /* Safari対応 */
}

/* モーダルのコンテンツボックス */
.modal-content {
  background-color: #fff;
  margin: 80px auto; /* 上下中央寄せ、上部に少し余白 */
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px; /* 最大幅を設定 */
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  animation-name: animatetop;
  animation-duration: 0.4s;
}

/* モーダル表示アニメーション */
@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}

/* 閉じるボタン */
.close-button {
  color: #aaa;
  float: right;
  font-size: 32px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: #000;
  text-decoration: none;
}

/* モーダルのタイトル */
.modal-content h2 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

/* 確認内容の表示エリア */
.modal-form-details {margin-top:20px;}

.modal-form-details p {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
}

.modal-form-details strong {
  color: #555;
  display: inline-block;
  width: 120px; /* ラベルの幅を揃える */
}

/* モーダル内のボタンコンテナ */
.modal-actions {
  text-align: center;
  margin-top: 30px;
}

/* モーダル内のボタン */
.modal-button {
  padding: 12px 25px;
  margin: 0 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.confirm-button {
  background-color: #bb8f55; /* 送信ボタンの色をホテルカラーに合わせる */
  color: white;
}

.confirm-button:hover {
  background-color: #cd853f; /* ホバー時の色を調整 */
}

.cancel-button {
  background-color: #777; /* キャンセルボタンの色を落ち着いた色に */
  color: white;
}

.cancel-button:hover {
  background-color: #555;
}

a.back-link{display:block;width:300px;margin:20px auto;text-align:center;background:linear-gradient(to bottom,#8dcd38 0%,#53af25 100%);border-radius:30px;color:#FFF;padding:15px;transition:.3s ease-in-out;}
a.back-link i{color:#FFF;margin-right:10px;}
a.back-link:hover{opacity:.5;}

/* --- レスポンシブ対応 --- */
@media screen and (max-width: 1024px) {
    #contact-form {
        width: 75%; /* タブレットで少し幅を広げる */
        padding: 30px;
    }
    .form-tel {
        width: 75%;
    }
}

@media screen and (max-width: 768px) {
    .form-title h2 {
        font-size: 1.8rem;
    }
    .form-title h2:before {
        width: 50px;
        bottom: -8px;
    }
    .form-tel {
        width: 90%; /* スマホで幅を調整 */
        padding: 15px;
    }
    .form-tel a {
        font-size: 1.4rem;
    }
    #contact-form {
        width: 95%; /* スマホでほぼ100%に */
        padding: 20px;
    }
    .half {
        flex-direction: column; /* 縦並びにする */
        gap: 0; /* 隙間をなくす */
    }
    .half > div {
        width: 100%; /* 幅を100%に */
    }
    .half dt {
        margin-top: 15px; /* 上部に余白 */
    }
    .half dt:first-child {
        margin-top: 0; /* 最初のdtは余白なし */
    }
    dl.mailform dd {
        margin-bottom: 20px; /* スマートフォンでの項目間余白 */
    }
    div.mfp_buttons button {
        width: 90%; /* ボタン幅を調整 */
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* モーダル部分のレスポンシブ */
    .modal-content {
        margin: 40px auto;
        width: 95%;
        padding: 20px;
    }
    .modal-form-details strong {
        display: block;
        width: auto;
        margin-bottom: 5px;
    }
    .modal-button {
        display: block;
        width: calc(100% - 20px);
        margin: 10px auto;
    }
}

@media screen and (max-width: 480px) {
    .form-title h2 {
        font-size: 1.5rem;
    }
    .form-title p {
        font-size: 1rem;
    }
    .form-tel a {
        font-size: 1.2rem;
    }
}

/* Mailform Proの既存クラスが原因でレイアウトが崩れる場合は追加調整 */
.mfp_rows { /* Mailform Proの内部クラスに対する調整 */
    display: block !important; /* flexなどになっていたら解除 */
}
.mfp_col5, .mfp_col10 { /* Mailform Proの内部クラスに対する調整 */
    width: 100% !important; /* 幅を常に100%に */
}

/* Mailform Proのデフォルトスタイルを上書きするための調整 */
form#mailformpro input,
form#mailformpro select,
form#mailformpro textarea {
    /* ここに input, select, textarea のスタイルを再度記述して優先度を高める */
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: solid 1px #ccc;
    font-size: 1rem;
    color: #333;
    box-sizing: border-box;
    -webkit-appearance: none; /* Safariでのinput, selectのスタイルをリセット */
    -moz-appearance: none;
    appearance: none;
}
form#mailformpro select {
    background: url('data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%23333%22%3E%3Cpath%20d%3D%22M7%2010l5%205%205-5z%22%2F%3E%3C%2Fsvg%3E') no-repeat right 10px center / 18px 18px; /* セレクトボックスの右に矢印を追加 */
}
form#mailformpro dl.mailform dd {
    /* Mailform Proのddのborder-bottomをリセット */
    border-bottom: none;
    padding-bottom: 0;
}