@charset "UTF-8";
button {
  width: 100%;
  padding: 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s; }

button:disabled {
  background-color: #a0aec0;
  cursor: not-allowed; }

/* 角丸フレーム */
.modal-content {
  width: 90vw;
  max-width: 960px;
  /* ← min() なしで同等 */
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  /* ← ここで角をクリップ */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: flex;
  /* 下の #modalBody をスクロールさせるため */
  flex-direction: column; }

/* スクロールは中身 (#modalBody) に担当させる */
#modalBody {
  flex: 1;
  min-height: 0;
  /* ← flex子をスクロール可能にするおまじない */
  overflow: auto;
  padding: 16px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; }

/* 画面端に少し余白を作りたいならオーバーレイ側でパディング */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000; }

.modal.is-open {
  display: flex; }

/* 閉じるボタン（お好みで） */
.close {
  align-self: flex-end;
  margin: 8px 8px 0 0; }

.modal {
  /* 参加者情報のセクションのスタイル */
  /* 既存のスタイルに追記 */ }
  .modal body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    display: flex;
    justify-content: center;
    padding: 20px; }
  .modal .form-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
    /* max-width: 600px;
    width: 100%; */ }
  .modal h1 {
    text-align: center;
    color: #0056b3; }
  .modal h3 {
    border-left: 5px solid #0056b3;
    padding-left: 10px;
    margin-top: 30px;
    margin-bottom: 15px; }
  .modal .form-group {
    margin-bottom: 20px; }
  .modal label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold; }
  .modal .required {
    color: #e3342f;
    font-size: 0.9em;
    margin-left: 5px; }
  .modal input[type="text"],
  .modal input[type="email"],
  .modal input[type="tel"],
  .modal select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px; }
  .modal .name-fields {
    display: flex;
    gap: 10px; }
  .modal .name-fields input {
    flex: 1; }
  .modal .radio-group div {
    display: flex;
    align-items: center;
    margin-bottom: 5px; }
  .modal .radio-group input[type="radio"] {
    margin-right: 10px; }
  .modal .error-message {
    color: #e3342f;
    font-size: 0.9em;
    margin-top: 5px;
    display: none; }
  .modal input:invalid,
  .modal select:invalid,
  .modal input.error,
  .modal select.error {
    border-color: #e3342f; }
  .modal button {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s; }
  .modal button:disabled {
    background-color: #a0aec0;
    cursor: not-allowed; }
  .modal .participant-section {
    border-top: 1px solid #ccc;
    padding-top: 20px;
    margin-top: 20px; }
  .modal .participant-section h4 {
    color: #0056b3; }
  .modal .confirmation-container {
    background-color: white;
    /* padding: 30px; */
    border-radius: 8px;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
    /* max-width: 100%;
    width: 100%; */ }
  .modal .confirmation-container h2 {
    text-align: center;
    color: #0056b3;
    margin-bottom: 20px; }
  .modal #confirmationContent p {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee; }
  .modal #confirmationContent strong {
    display: inline-block;
    width: 150px;
    color: #555; }
  .modal .button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px; }
  .modal #backButton, .modal #sendButton {
    width: 48%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer; }
  .modal #backButton {
    background-color: #6c757d;
    color: white; }
  .modal #sendButton {
    background-color: #28a745;
    color: white; }
  .modal #sendButton:disabled {
    background-color: #a0aec0;
    cursor: not-allowed; }
  .modal input.error,
  .modal select.error {
    border-color: #dc3545;
    /* 枠線を赤色に */
    background-color: #f8d7da;
    /* 背景色を薄い赤に */ }
  .modal .error-message {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
    /* デフォルトでは非表示 */ }
  .modal .address-fields,
  .modal .tel-fields {
    display: flex;
    align-items: center;
    gap: 5px; }
  .modal .address-fields input,
  .modal .tel-fields input {
    flex: 1; }
  .modal .address-fields input[id$="First"] {
    width: 60px;
    /* 郵便番号上3桁用 */ }
  .modal .address-fields input[id$="Last"] {
    width: 80px;
    /* 郵便番号下4桁用 */ }
  .modal .tel-fields input[id$="First"],
  .modal .tel-fields input[id$="Second"],
  .modal .tel-fields input[id$="Third"] {
    width: 80px;
    /* 電話番号用 */ }
  .modal #addressSearchButton {
    width: auto;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 14px;
    cursor: pointer; }
  .modal #addressSearchButton:hover {
    background-color: #0056b3; }
