/* ===== form_request2 フォームスタイル ===== */
#fm_form dl {
  width: 100%;
}

@media (min-width: 768px) {
  #fm_form dl {
    width: 80%;
  }
}

#fm_form dt {
  background: #FFD600;
  color: #000;
  font-weight: bold;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  box-sizing: border-box;
}

#fm_form dd {
  margin: 0 0 20px 0;
  padding: 0 4px;
}

/* 必須バッジ */
#fm_form .required {
  background: #e00;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: auto;
  white-space: nowrap;
}

/* 必須項目はピンク */
#fm_form input[required],
#fm_form textarea[required] {
  background: #FFF0F0;
  border: 1px solid #f5c0c0;
}

/* 任意項目は白 */
#fm_form input:not([required]),
#fm_form textarea:not([required]),
#fm_form select {
  background: #fff;
  border: 1px solid #ccc;
}

/* input / select / textarea 共通 */
#fm_form input[type="text"],
#fm_form input[type="email"],
#fm_form input[type="tel"],
#fm_form select,
#fm_form textarea {
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  color: #c00;
  width: 100%;
  box-sizing: border-box;
}

#fm_form input::placeholder,
#fm_form textarea::placeholder {
  color: #e08080;
}

#fm_form textarea {
  height: 120px;
  resize: vertical;
}

/* 姓・名 などの横並び */
#fm_form dd > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

#fm_form .before_text {
  font-size: 13px;
  white-space: nowrap;
  min-width: 4em;
  color: #333;
}

#fm_form .after_text {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

/* エラー */
#fm_form p.err {
  color: #c00;
  font-size: 16px;
  margin: 4px 0 0;
font-family: "FOT-セザンヌ Pro M","FOT-筑紫A丸ゴシック Std D", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "Yu Gothic", "メイリオ", Meiryo, sans-serif;
    font-weight: bold;
}

/* 同意エリア */
#agreebox {
  border: none;
  margin: 10px 0 16px;
  padding: 0;
  background: none;
  font-size: 120%;
}

#agreebox .require {
  background: #e00;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  white-space: nowrap;
}

/* 送信ボタン */
#fm_form .submit {
  list-style: none;
  text-align: center;
  margin-top: 24px;
  padding: 0;
}

#fm_form .submit button {
  background: #990000;
  color: #fff;
  border: none;
  padding: 16px 48px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

#fm_form .submit button:hover {
  background: #e6c000;
}

/* ===== PC：左右レイアウト ===== */
@media (min-width: 768px) {
  #fm_form dl {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px 24px;
    align-items: stretch;
  }

  #fm_form dt {
    height: 100%;
    margin-bottom: 0;
  }

  #fm_form input[type="text"],
  #fm_form input[type="email"],
  #fm_form input[type="tel"],
  #fm_form select {
    max-width: none;
  }

  #fm_form dd > div input {
    max-width: none;
  }
}

p#contact-attention2{
    color:#666;
    font-size: 90%;
}
dd[type="fm_check_box"] > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px;
  align-items: flex-start !important;
  width: 100%;
}
dd[type="fm_check_box"] label {
  margin-left: 6px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.error-triangle {
  display: inline;  /* ← これを追加 */
  animation: blink 0.8s ease-in-out infinite;
}

#fm_form input[required]::placeholder,
#fm_form textarea[required]::placeholder {
  color: #e08080;
}

#fm_form input:not([required])::placeholder,
#fm_form textarea:not([required])::placeholder,
#fm_form select::placeholder {
  color: #666;
}
#fm_form input[type="text"],
#fm_form input[type="email"],
#fm_form input[type="tel"],
#fm_form select,
#fm_form textarea {
  color: #333; 
}
#fm_form input[required]:not(:placeholder-shown),
#fm_form textarea[required]:not(:placeholder-shown) {
  background: #fff;
  border-color: #ccc;
}
button.back,
button.sendmail {
  background: #FFD600;
  color: #333;
  border: none;
  padding: 16px 48px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

button.back:hover,
button.sendmail:hover {
  background: #e6c000;
}
button.back {
  margin-right: 24px; 
}
#fm_form .submit button.back {
  background: #FFD600; 
    color: #111;
}
#fm_form .submit button.sendmail {
  background: #e00;
    color: #fff;
}

/* ご希望日時：空欄はピンク、記入済みは白 */
#fm_form dd[type="fm_date_reservation"] input[name*="[input_1]"],
#fm_form dd[type="fm_date_reservation"] select[name*="[input_2]"] {
  background: #FFF0F0;
  border: 1px solid #f5c0c0;
}
#fm_form dd[type="fm_date_reservation"] input[name*="[input_1]"].has-value,
#fm_form dd[type="fm_date_reservation"] select[name*="[input_2]"].has-value {
  background: #fff;
  border-color: #ccc;
}

/* ご希望日時：日付・時間・リセットを横並びに */
#fm_form dd[type="fm_date_reservation"] > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* 日付inputの横幅を調整 */
#fm_form dd[type="fm_date_reservation"] input[name*="[input_1]"] {
  width: 130px;
  flex-shrink: 0;
}

/* 時間selectは残りのスペースを使う */
#fm_form dd[type="fm_date_reservation"] select[name*="[input_2]"] {
  flex: 1;
  min-width: 0;
}

/* リセットボタン */
#fm_form dd[type="fm_date_reservation"] button[type="button"] {
  flex-shrink: 0;
  background: #fff;
  color: #999;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
#fm_form dd[type="fm_date_reservation"] button[type="button"]:hover {
  background: #f5f5f5;
  color: #666;
  border-color: #aaa;
}





/* 物件ラジオボタン間隔 */
#fm_form .fm_bukken_list {
  display: block;
}
#fm_form .fm_bukken_list > span {
  display: block;
  line-height: 1.6em;
}

/* ご希望日時：空欄はピンク、記入済みは白 */
#fm_form dd[type="fm_date_reservation_set_date"] input[name*="[input_2]"],
#fm_form dd[type="fm_date_reservation_set_date"] select[name*="[input_3]"] {
  background: #FFF0F0;
  border: 1px solid #f5c0c0;
}
#fm_form dd[type="fm_date_reservation_set_date"] input[name*="[input_2]"].has-value,
#fm_form dd[type="fm_date_reservation_set_date"] select[name*="[input_3]"].has-value {
  background: #fff;
  border-color: #ccc;
}

/* ご希望日時：日付・時間・リセットを横並びに */
#fm_form dd[type="fm_date_reservation_set_date"] > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* 日付inputの横幅を調整 */
#fm_form dd[type="fm_date_reservation_set_date"] input[name*="[input_2]"] {
  width: 130px;
  flex-shrink: 0;
}

/* 時間selectは残りのスペースを使う */
#fm_form dd[type="fm_date_reservation_set_date"] select[name*="[input_3]"] {
  flex: 1;
  min-width: 0;
}

/* リセットボタン */
#fm_form dd[type="fm_date_reservation_set_date"] button[type="button"] {
  flex-shrink: 0;
  background: #fff;
  color: #999;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
#fm_form dd[type="fm_date_reservation_set_date"] button[type="button"]:hover {
  background: #f5f5f5;
  color: #666;
  border-color: #aaa;
}















/* ===== jQuery UI Datepicker カレンダースタイル ===== */

/* カレンダー全体 */
.ui-datepicker {
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  font-size: 13px;
  font-family: inherit;
}

/* ヘッダー（年月表示バー） */
.ui-datepicker-header {
  background: linear-gradient(to bottom, #e8e8e8, #d0d0d0);
  border: 1px solid #bbb;
  border-radius: 3px;
  padding: 6px 0;
  color: #333;
  font-weight: bold;
  margin-bottom: 4px;
}

/* 前月・次月ボタン */
.ui-datepicker-prev,
.ui-datepicker-next {
  cursor: pointer;
  top: 4px;
  width: 24px;
  height: 24px;
  border: none !important;
  background: none !important;
}
.ui-datepicker-prev { left: 4px; }
.ui-datepicker-next { right: 4px; }
.ui-datepicker-prev span,
.ui-datepicker-next span {
  background-image: none !important;
  text-indent: 0 !important;
  overflow: visible !important;
  color: #555;
  font-size: 16px;
}

/* 曜日ヘッダー行 */
.ui-datepicker th {
  padding: 4px 2px;
  font-size: 12px;
  font-weight: bold;
  color: #555;
}
/* 日・祝ヘッダー文字色 */
.ui-datepicker th:first-child { color: #c00; }
/* 土ヘッダー文字色 */
.ui-datepicker th:last-child  { color: #00c; }

/* 日付セル共通 */
.ui-datepicker td {
  padding: 1px;
  border: none;
}
.ui-datepicker td a,
.ui-datepicker td span {
  display: block;
  text-align: center;
  padding: 5px 4px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 13px;
  color: #333;
}

/* ── 日曜日（fm_sun）── */
.ui-datepicker td.fm_sun a,
.ui-datepicker td.fm_sun span {
  background: #fff0f0;
  color: #c00;
}
/* ── 土曜日（fm_sat）── */
.ui-datepicker td.fm_sat a,
.ui-datepicker td.fm_sat span {
  background: #f0f0ff;
  color: #00c;
}
/* ── 祝日（fm_hol）── */
.ui-datepicker td.fm_hol a,
.ui-datepicker td.fm_hol span {
  background: #fff0f0;
  color: #c00;
}

/* ── 予約可能（reserve_ok）── */
.ui-datepicker td.reserve_ok a {
  font-weight: bold;
}
/* ── 満席（reserve_full）── */
.ui-datepicker td.reserve_full span {
  color: #bbb;
  background: #f5f5f5;
  text-decoration: line-through;
}
/* ── 予約枠なし・過去日（reserve_ng）── */
.ui-datepicker td.reserve_ng span {
  color: #bbb;
  background: #f5f5f5;
}
/* 日曜×過去・満席 */
.ui-datepicker td.fm_sun.reserve_full span,
.ui-datepicker td.fm_sun.reserve_ng  span {
  background: #fff0f0;
  color: #dbb;
}
/* 土曜×過去・満席 */
.ui-datepicker td.fm_sat.reserve_full span,
.ui-datepicker td.fm_sat.reserve_ng  span {
  background: #f0f0ff;
  color: #bbbd;
}

/* ── 選択中の日付 ── */
.ui-datepicker td.ui-datepicker-current-day a,
.ui-datepicker td a.ui-state-active {
  background: #4a90d9 !important;
  color: #fff !important;
}
/* ── 今日の日付 ── */
.ui-datepicker td.ui-datepicker-today a {
  background: #fff8cc;
  color: #333;
  border: 1px solid #e6c000;
}

/* ホバー */
.ui-datepicker td.reserve_ok a:hover {
  background: #4a90d9;
  color: #fff;
}
