/* -------------------------------------------------
 * フォーム本体（モダンデザイン）
 * ------------------------------------------------- */
 
/* ハニーポット非表示 */
.honeypot { display: none !important; visibility: hidden; height: 0; }

/* 本体 */
.form-wrapper {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: 760px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-top: 8px solid #3D7670;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  padding: 4.5rem 3.5rem;
  margin: 0 auto !important;
}

@media screen and (max-width: 600px) {
  .form-wrapper {
    max-width: 100%;
  }
}

.form-wrapper:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.form-wrapper h1 {
  font-size: 2.6rem;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 3.5rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

@media screen and (max-width: 600px) {
  .form-wrapper h1 {
    font-size: 2rem;
  }
}

form {
  display: grid;
  gap: 2.4rem;
  margin-bottom: 4rem;
}

.form-block {
  display: flex;
  flex-direction: column;
  align-items: center; /* 中央寄せ */
}

label {
  font-size: 1.6rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
  width: 100%;
  max-width: 520px; /* ラベルも中央寄せ */
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  max-width: 520px; /* 全体統一幅（中央寄せ） */
  font-size: 1.6rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  color: #111827;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.8rem 1.2rem !important;
  box-sizing: border-box;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

/* スマホ時は全幅に拡張 */
@media screen and (max-width: 600px) {
  label,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    max-width: 100%;
  }
}

/* -------------------------------------------------
 * エラーテキスト（入力欄下・赤文字・左揃え固定）
 * ------------------------------------------------- */
.error-text {
  color: #dc2626;
  font-size: 1.3rem;
  font-weight: 500;
  margin-top: 0.4rem;
  text-align: left;
  width: 100%;
  max-width: 520px;
  align-self: flex-start; /* ← 中央揃えを無効化 */
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* inline（お名前など）専用調整：input横ではなく下に出す */
.form-block.inline .error-text {
  margin-top: 0.4rem;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 520px;
}



/* -------------------------------------------------
 * お名前欄（input + 様）
 * ------------------------------------------------- */
.input-inline {
  display: flex;
  align-items: center;
  justify-content: center; /* ← 中央揃え */
  gap: 0.6rem;
  width: 100%;
  max-width: 520px; /* 全体と同じ幅に揃える */
}

.input-inline input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  font-size: 1.6rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  padding: 0.8rem 1.2rem;
  box-sizing: border-box;
}

/* iPhone Safariの date入力をフル幅に整える */
input[type="date"] {
  width: 100%;
  min-height: 3.6rem; /* ボタンと高さを揃える */
  font-size: 1.6rem;
  line-height: 1.4;
  box-sizing: border-box;
  appearance: none; /* Safariの独自スタイルを無効化 */
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0.8rem 1.2rem;
  border: 1px solid #c7ccd1;
  border-radius: 6px;
  background-color: #fff;
}


.input-inline .suffix {
  flex: 0 0 auto;
  font-size: 1.6rem;
  color: #374151;
  white-space: nowrap;
}

/* エラーテキストを下寄せに */
.form-block.inline .error-text {
  align-self: flex-start;
  margin-left: calc((100% - 520px) / 2);
}

/* スマホ時は全幅化 */
@media screen and (max-width: 600px) {
  .input-inline {
    max-width: 100%;
    justify-content: flex-start;
  }
  .form-block.inline .error-text {
    margin-left: 0;
  }
}



textarea {
  min-height: 130px;
  resize: vertical;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%233D7670' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E<path stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.4rem;
  padding-right: 3rem;
}

.submit-area {
  text-align: center;
  margin-top: 3.5rem;
}

.submit-area button {
  font-size: 1.7rem;
  font-weight: 600;
  background: #3D7670;
  color: #fff;
  border: none;
  padding: 1.2rem 3.5rem;
  cursor: pointer;
  border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(61, 118, 112, 0.25);
  transition: all 0.3s ease;
}

.submit-area button:hover {
  background: #33635d;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(61, 118, 112, 0.35);
}

.form-privacy {
  font-size: 1.4rem;
  text-align: center;
}

@media screen and (max-width: 600px) {
  .form-privacy {
    font-size: 1.3rem;
    text-align: left;
  }
}

/* -------------------------------------------------
 * 必須・任意バッジ
 * ------------------------------------------------- */
.badge {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.25em 0.6em;
  border-radius: 4px;
  margin-left: 0.4em;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.badge.required {
  background: #dc2626;
  color: #fff;
}

.badge.optional {
  background: #2563eb;
  color: #fff;
  opacity: 0.9;
}


/* -------------------------------------------------
 * 確認モーダル 共通（スマホ～タブレット／iPhone Safari対応）
 * ------------------------------------------------- */
.confirm-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  min-height: -webkit-fill-available;
  z-index: 1000;
  overflow: hidden; /* 背景固定 */
}

.confirm-modal.show {
  display: block;
  animation: fadeIn 0.25s ease;
}

.confirm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.confirm-box {
  position: relative;
  z-index: 10;
  width: 92%;
  max-width: 520px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* ← iPhone用の慣性スクロール */
  padding: 2rem 3rem;
  margin: 0 auto;
}

.confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

/* -------------------------------------------------
 * PCサイズ（広い画面では中央固定＆スクロール解除）
 * ------------------------------------------------- */
@media (min-width: 768px) {
  .confirm-box {
    max-height: none; /* 固定解除 */
    overflow-y: visible;
    margin-top: 5vh;
    margin-bottom: 5vh;
  }

  .confirm-buttons {
    position: static; /* sticky解除で自然配置 */
    box-shadow: none;
    background: none;
    padding: 0;
  }
}



/* -------------------------------------------------
 * 確認モーダル用・小型バッジ
 * ------------------------------------------------- */
.badge-mini {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.2em 0.5em;
  border-radius: 3px;
  margin-left: 0.4em;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.badge-mini.required {
  background: #dc2626;
  color: #fff;
}

.badge-mini.optional {
  background: #2563eb;
  color: #fff;
  opacity: 0.9;
}

/* -------------------------------------------------
 * ページ遷移オーバーレイ（ローディングと遷移を統合）
 * ------------------------------------------------- */
#page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ★★★ 白い背景を指定 ★★★ */
    background-color: white; 
    
    /* ★★★ 画面中央にコンテンツを配置するための Flexbox を追加 ★★★ */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* デフォルトは透明（画面が見えている状態）*/
    opacity: 0; 
    visibility: hidden;
    
    /* ★★★ 遷移速度（JSで上書きする場合があるが、基本値として維持） ★★★ */
    transition: opacity 0.5s ease-out; 
    
    z-index: 9998; /* モーダルの下、ページの最前面 */
    pointer-events: none; /* デフォルトでクリックを無効化 */
}

/* -------------------------------------------------
 * ローディング要素（JSで #page-transition-overlay の子として追加される）
 * ------------------------------------------------- */
#page-transition-overlay .sending-content {
    /* ローディングテキストとスピナーの間のスペースなどを調整 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ★★★ スピナーのアニメーション（既存の .sending-overlay .spinner を流用） ★★★ */
#page-transition-overlay .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* -------------------------------------------------
 * ロック・モーダル関連（既存を維持）
 * ------------------------------------------------- */

.confirm-modal.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* モーダル外の操作を禁止 */
body.modal-lock {
    overflow: hidden;         /* スクロール停止 */
    pointer-events: none;     /* 全体クリック禁止 */
}

/* モーダル本体だけ操作可能に戻す */
body.modal-lock .confirm-modal {
    pointer-events: auto;
}

/* -------------------------------------------------
 * thanks.html の初期状態（既存を維持）
 * ------------------------------------------------- */
body.initial-fade-out #page-transition-overlay {
    opacity: 1 !important; /* ★★★ !important で強制的に不透明を維持 ★★★ */
    visibility: visible;
}

/* -------------------------------------------------
 * スクロール対応ボックス
 * ------------------------------------------------- */
.confirm-box {
  position: relative;
  max-width: 640px;
  max-height: min(82vh, 780px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 6vh auto;
  background: #ffffff;
  padding: 3.5rem 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  z-index: 1001;
  animation: slideUp 0.3s ease;
}

.confirm-box h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1.2rem;
  text-align: center;
  letter-spacing: 0.03em;
}

.confirm-note {
  font-size: 1.4rem;
  color: #444;
  margin: 0.5rem 0 1.6rem;
  line-height: 1.6;
  text-align: center;
}

/* -------------------------------------------------
 * スクロール領域（中身のみ縦スクロール）
 * ------------------------------------------------- */
.confirm-content {
  font-size: 1.6rem;
  color: #333;
  line-height: 1.7;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.5rem;
  margin-bottom: 2rem;
}

/* -------------------------------------------------
 * 確認モーダル（テーブル風・ストライプ行・レスポンシブ対応）
 * ------------------------------------------------- */
.confirm-content dl {
  display: grid;
  grid-template-columns: 42% 1fr;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  font-size: 1.5rem;
  margin-bottom: 0;
}

/* 各行(dt+dd)共通調整（はみ出し防止・整列） */
.confirm-content dt,
.confirm-content dd {
  box-sizing: border-box;
  padding: 1rem 1.2rem;
  line-height: 1.6;
  border-bottom: 1px solid #e5e7eb;
  overflow-wrap: break-word;
  word-break: break-word;
  align-self: start;
  min-width: 0;
}

/* 背景ストライプ */
.confirm-content dt:nth-of-type(odd),
.confirm-content dd:nth-of-type(odd) {
  background: #f9fafb;
}

.confirm-content dt:nth-of-type(even),
.confirm-content dd:nth-of-type(even) {
  background: #fdfdfd;
}

/* 項目名（dt） */
.confirm-content dt {
  font-weight: 600;
  color: #374151;
  display: inline-flex; /* 修正: flex → inline-flex */
  align-items: center;
  justify-content: flex-start;
  gap: 0.4em;
  white-space: nowrap; /* 修正: 改行禁止で「必須」を横並び化 */
  line-height: 1.6;
}

.confirm-content dt .em09 { /* ※カレンダーから選択してくださいを隠す */
  display: none !important;
}


/* 値（dd） */
.confirm-content dd {
  color: #111827;
  margin: 0 !important;
  overflow-wrap: anywhere;
}

/* -------------------------------------------------
 * スマートフォン対応（縦並びに切り替え）
 * ------------------------------------------------- */
@media screen and (max-width: 600px) {
  .confirm-content dl {
    display: block;
    border-radius: 8px;
  }

  .confirm-content dt,
  .confirm-content dd {
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.2rem;
  }

  .confirm-content dt {
    background: #f9fafb;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6em;
  }

  .confirm-content dd {
    background: #ffffff;
  }

  .confirm-content dt:nth-of-type(odd),
  .confirm-content dd:nth-of-type(odd),
  .confirm-content dt:nth-of-type(even),
  .confirm-content dd:nth-of-type(even) {
    background: none;
  }
}

/* -------------------------------------------------
 * ボタン行（固定表示）
 * ------------------------------------------------- */
.confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  padding-top: 0.8rem;
  flex-shrink: 0;
}

.confirm-buttons button {
  font-size: 1.6rem;
  padding: 1rem 2.8rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

#backBtn {
  background: #f3f4f6;
  color: #374151;
}

#backBtn:hover {
  background: #e5e7eb;
}

#sendBtn {
  background: #3D7670;
  color: #fff;
  box-shadow: 0 4px 14px rgba(61, 118, 112, 0.25);
}

#sendBtn:hover {
  background: #33635d;
  transform: translateY(-2px);
}

/* -------------------------------------------------
 * モーダル表示中は背景スクロール禁止
 * ------------------------------------------------- */
body.modal-open {
  overflow: hidden;
}

/* -------------------------------------------------
 * モバイル調整
 * ------------------------------------------------- */
@media (max-width: 600px) {
  .confirm-box {
    margin: 2vh auto;
    max-height: 92vh;
    border-radius: 10px;
  }

  .confirm-content dl {
    grid-template-columns: 40% 1fr;
    gap: 1rem 1.2rem;
  }
}

/* -------------------------------------------------
 * アニメーション
 * ------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* -------------------------------------------------
 * 宴席プランページ内：ご案内セクション（.plan-info）
 * ------------------------------------------------- */

/* 上書き */
.page-header {
  padding-bottom: 0;
  margin-bottom: 0;
}

.page-header .logo {
  margin-bottom: 0;
}

.plan-info {
  background: #fff;
  max-width: 1000px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 1.6rem;
  color: #333;
  line-height: 2;
/*  border-top: 6px solid #3D7670;  花はんグリーンライン */
  padding: 2rem 3rem;
  margin: 0 auto;
}

.plan-info h1 {
  font-size: 2.4rem;
  text-align: center;
  margin-top: 0;
}

.plan-info h2,
.plan-info h3 {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
}

.plan-info h2 {
  font-size: 2.2rem;
  margin-top: 0;
}

.plan-info h3 {
  font-size: 1.8rem;
  margin-top: 3rem;
}

/* h2装飾（宴席プランタイトル下線） */
.plan-title {
  display: block;
  text-align: center;
  position: relative;
  margin: 0 auto 2.4rem;
  padding-bottom: 0.6rem;
}

.plan-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #3D7670;
  border-radius: 2px;
}

.plan-info p {
  margin-bottom: 1.8rem;
}

.mark {
  color: #a40b5e;
  font-weight: bold;
}

.plan-info ul {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 2rem 0;
}

.plan-info li {
  position: relative;
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.plan-info li::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0;
  color: #3D7670;
  font-size: 1.2rem;
  line-height: 1;
}

.plan-info strong {
  font-weight: 600;
}

.plan-info .tel-box {
  background: #f5f7f4;
  border-left: 4px solid #3D7670;
  font-size: 1.6rem;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}

.plan-info .tel-box strong {
  color: #111;
  font-size: 1.8rem;
}

@media screen and (max-width: 600px) {
  .plan-info {
    padding: 1rem 0.5rem;
  }
  .plan-info h1 {
    font-size: 2.2rem;
    line-height: 1.5;
  }
  .plan-info h2 {
    font-size: 2rem;
  }
  .plan-info h3 {
    font-size: 1.7rem;
  }
  .dial-box {
    margin-bottom: 0 !important;
  }
  .dial-label, .dial-number {
    margin-bottom: 0 !important;
  }
}

/* -------------------------------------------------
 * 携帯キャリアメール注意書き（.mail-note）
 * ------------------------------------------------- */
.mail-note {
  background: #e7f4fa;
  border-radius: 6px;
  color: #222;
  font-size: 1.5rem;
  line-height: 1.9;
  padding: 2.4rem 2rem;
  margin: 3rem auto;
  max-width: 800px;
}

.mail-note h4 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #004b63;
  margin: 0 0 1.2rem;
}

.mail-note p {
  margin: 0;
}

.mail-note strong {
  color: #004b63;
  font-weight: 600;
}

@media screen and (max-width: 600px) {
  .mail-note {
    font-size: 1.4rem;
    padding: 2rem 1.6rem;
  }

  .mail-note h4 {
    font-size: 1.6rem;
  }
}

/* -------------------------------------------------
 * 専用ダイヤルボックス（.dial-box）
 * ------------------------------------------------- */
.dial-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  font-size: 2.2rem;
  color: #231815;
  letter-spacing: 0.08em;
  margin: 3rem auto;
  gap: 1rem;
}

.dial-label {
  background: #1a2461; /* 濃紺 */
  color: #fff;
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.8rem 1.4rem 0.9rem;
  border-radius: 3px;
  margin: 0;
}

.dial-number {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 500;
  color: #231815;
}

.dial-number span {
  font-size: 1.6rem;
  color: #333;
  margin-left: 0.4em;
}

/* モバイル調整 */
@media screen and (max-width: 600px) {
  .dial-box {
    flex-direction: column;
    font-size: 1.8rem;
    gap: 0.8rem;
  }

  .dial-label {
    font-size: 1.6rem;
    padding: 0.6rem 1.2rem 0.7rem;
  }

  .dial-number {
    font-size: 2rem;
  }

  .dial-number span {
    font-size: 1.4rem;
  }
}

/* -------------------------------------------------
 * 店舗情報
 * ------------------------------------------------- */
 
.group-hours ul {
  padding: 1rem 2rem;
  margin: 0;
}
.group-hours li {
  line-height: 1.5;
}

/* フォームリード文 */
.form-lead {
  font-size: 1.6rem;
  line-height: 1.9;
  text-align: center;
  color: #333;
  margin: 2rem auto 8rem;
}

@media screen and (max-width: 600px) {
  .form-lead {
    text-align: left;
  }
}

/* 文字サイズ */
.em09 {
  font-size: 90%;
}