@charset "utf-8";
/* =====================================================================
 * お問い合わせフォーム用 datepicker / 時刻セレクト スタイル
 * jQuery UI datepicker（plugin.js に同梱）のウィジェット表示用 CSS。
 * 公開側 plugin.css には ui-datepicker のスタイルが無いため補完する。
 * 2026-06-02 区分追加対応
 * ===================================================================== */

/* ご利用目的（複数選択チェックボックス）：四角いチェックボックスを各行表示
 * （ul/li を使うと共通CSS .contact_form td ul li label span が丸いラジオ装飾を当てるため、
 *   プライバシー欄と同じ input[type=checkbox] + span 構造で表示する） */
.contact_form td .purpose_item {
  display: flex;
  align-items: center;
  line-height: 1;
  cursor: pointer;
  margin-bottom: 12px;
}
.contact_form td .purpose_item:last-of-type {
  margin-bottom: 0;
}

/* 「任意」バッジ（必須バッジと視覚的に区別：グレー）
 * .contact_form th span はデフォルトで必須色（橙）になるため上書きする */
.contact_form th span.optional {
  background: #8a9099;
}

/* 日付入力（readonly テキスト） */
.input_calender {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat right 10px center;
  cursor: pointer;
}

/* 日付／時刻の「×」クリアボタン */
.contact_form td .js-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid #bfc8d6;
  border-radius: 50%;
  background: #fff;
  color: #8a9099;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  flex-shrink: 0;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.contact_form td .js-clear-btn:hover {
  border-color: #ca541b;
  color: #fff;
  background: #ca541b;
}
.contact_form td .js-clear-btn span {
  display: block;
  margin-top: -1px;
}

/* 時刻セレクト */
.js-time-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.js-time-wrap select,
.js-datetime-wrap select {
  min-width: 110px;
  padding: 6px 8px;
}
.js-datetime-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.js-datetime-wrap .input_calender {
  width: 160px;
}

/* 入力（日付/時刻）の右横に×ボタンを並べる。
 * .contact_form td input/select の width:100% を上書きして固定幅・インラインにする */
.contact_form td input[type="text"].js-datepicker {
  width: 180px;
  display: inline-block;
  vertical-align: middle;
}
.contact_form td select.js-time-select {
  width: auto;
  vertical-align: middle;
}

/* 入力＋×ボタンのグループ（横並びを維持） */
.contact_form td .js-field-group {
  display: inline-flex;
  align-items: center;
}

/* スマホ：見学希望日時の「日付」と「時刻」を別の行に並べる */
@media print, screen and (max-width: 768px) {
  .contact_form td .js-datetime-wrap {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ---------------------------------------------------------------------
 * jQuery UI datepicker ウィジェット
 * ------------------------------------------------------------------- */
.ui-datepicker {
  width: 18em;
  padding: 6px;
  background: #fff;
  border: 1px solid #bfc8d6;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  z-index: 9999 !important;
  display: none;
}
.ui-datepicker .ui-datepicker-header {
  position: relative;
  padding: 4px 0 8px;
  text-align: center;
}
.ui-datepicker .ui-datepicker-title {
  font-weight: 700;
  color: #231815;
}
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  position: absolute;
  top: 2px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  color: #ca541b;
  font-size: 12px;
  user-select: none;
}
.ui-datepicker .ui-datepicker-prev { left: 0; }
.ui-datepicker .ui-datepicker-next { right: 0; }
.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
  background: #fcf1e1;
}
/* テーマ画像を使わず前/次テキストを表示する */
.ui-datepicker .ui-datepicker-prev .ui-icon,
.ui-datepicker .ui-datepicker-next .ui-icon {
  display: inline;
  text-indent: 0;
  background: none;
  width: auto;
  height: auto;
  overflow: visible;
}
.ui-datepicker table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.ui-datepicker th {
  padding: 4px;
  text-align: center;
  font-weight: 700;
  color: #666;
  border: none;
  background: none;
}
.ui-datepicker td {
  padding: 1px;
  border: none;
  text-align: center;
}
.ui-datepicker td a,
.ui-datepicker td span {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  color: #231815;
  border-radius: 4px;
}
.ui-datepicker td a:hover {
  background: #fcf1e1;
}
/* 本日：淡いクリーム＋橙文字（選択日と区別） */
.ui-datepicker td a.ui-state-highlight {
  background: #fcf1e1;
  color: #ca541b;
  font-weight: 700;
}
/* 選択中の日：ブランドの橙（本日と重なっても選択を優先） */
.ui-datepicker td a.ui-state-active,
.ui-datepicker td a.ui-state-highlight.ui-state-active {
  background: #ca541b;
  color: #fff;
}
.ui-datepicker td.ui-datepicker-unselectable span {
  color: #ccc;
}
