/* =========================================================
   OneHeart ユーザーフォーム スタイル 完全版
   ---------------------------------------------------------
   送迎情報タブUI調整版
   ========================================================= */

/* 全体枠 */
.oneheart-form {
  max-width: 1000px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-family: "Yu Gothic", sans-serif;
}

/* タブボタン */
.oh-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid #01acb2;
  margin-bottom: 20px;
}

.oh-tab {
  background: #f5f5f5;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
  color: #555;
}

.oh-tab.active {
  background: #01acb2;
  color: #fff;
  border-radius: 8px 8px 0 0;
}

.oh-tab:hover {
  background: #00969b;
  color: #fff;
}

/* タブコンテンツ表示制御 */
.oh-tab-content {
  display: none;
  margin-top: 20px;
}

.oh-tab-content.active {
  display: block;
}

/* グリッド配置 */
.oh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 20px;
  align-items: center;
}

label {
  font-weight: bold;
  font-size: 14px;
  color: #555;
}

input,
select,
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fff;
}

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

/* ボタン */
.btn-submit {
  padding: 10px 20px;
  background: #01acb2;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  background: #00969b;
}

.btn-clear {
  padding: 10px 20px;
  background: #eee;
  color: #333;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 10px;
}

.btn-clear:hover {
  background: #ccc;
}

/* ボタン位置 */
.oh-submit-top,
.oh-submit-bottom {
  text-align: right;
  margin: 10px 0;
}

/* メッセージ */
.oh-message {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
}

.oh-message.success {
  background: #e0f7e9;
  color: #0a5c2e;
}

.oh-message.error {
  background: #fde0e0;
  color: #9e1c1c;
}

/* セクション見出し */
.oh-section-title {
  grid-column: 1 / -1;
  font-weight: bold;
  font-size: 16px;
  color: #01acb2;
  padding: 5px 0;
  border-bottom: 2px solid #01acb2;
  margin: 10px 0;
}

/* チェックボックス */
.oh-checkbox-only {
  display: flex;
  align-items: center;
  padding: 4px 0;
}

.oh-grid input[type="checkbox"] {
  width: auto;
  height: 18px;
}

.oh-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.oh-checkbox-group label {
  font-weight: normal;
  font-size: 14px;
  color: #555;
}

/* 家族グリッド */
.oh-grid-family {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

/* 続柄欄を短くする（保護者＋家族共通） */
input[name="guardian1_relation"],
input[name="guardian2_relation"],
input[name="family1_relation"],
input[name="family2_relation"],
input[name="family3_relation"],
input[name="family4_relation"] {
  width: 6em;
  min-width: 80px;
}

/* タブボタンのホバーやアクティブを滑らかに */
.oh-tab,
.btn-submit,
.btn-clear {
  transition: all 0.2s ease;
}

/* 健康・生活セクション：セレクト＋テキストエリア横並び */
.oh-grid-inline {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
}

.oh-grid-inline select {
  flex: 0 0 140px;
}

.oh-grid-inline textarea {
  flex: 1;
  min-height: 60px;
  resize: vertical;
}

/* =========================================================
   送迎情報タブ 専用
   ========================================================= */

/* 使用設定 */
.oh-transfer-setting-switch {
  margin: 0 0 24px;
  padding: 18px 20px;
  background: #f8fbfb;
  border: 1px solid #d9eeee;
  border-radius: 10px;
}

.oh-transfer-setting-switch > label {
  display: block;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: #555;
}

/* ラジオ横並び */
.oh-transfer-setting-radios {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.oh-transfer-setting-radios label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #444;
  line-height: 1.4;
  cursor: pointer;
}

.oh-transfer-setting-radios input[type="radio"] {
  width: auto;
  margin: 0;
  transform: scale(1.15);
}

/* 設定パネル */
.oh-transfer-setting-panel {
  margin: 0 0 24px;
  padding: 20px;
  background: #fff;
  border: 1px solid #d7e8e8;
  border-radius: 10px;
}

.oh-transfer-setting-panel.active {
  border: 2px solid #01acb2;
  box-shadow: 0 0 0 3px rgba(1, 172, 178, 0.08);
}

/* 送迎情報内の設定見出しを少し強く */
#tab-transfer .oh-transfer-setting-panel .oh-section-title {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 800;
  color: #01acb2;
  border-bottom: 3px solid #01acb2;
  padding-bottom: 8px;
}

/* 送迎情報タブのグリッド余白 */
#tab-transfer .oh-grid {
  gap: 18px 24px;
  align-items: start;
}

/* 時間入力3つを横並び */
.oh-transfer-time-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.oh-transfer-time-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 110px;
  flex: 0 0 110px;
}

.oh-transfer-time-item span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #666;
  line-height: 1.2;
}

.oh-transfer-time-item input[type="time"] {
  width: 100%;
  min-width: 0;
}

/* その他送迎について */
#tab-transfer textarea[name="transfer_note"] {
  min-height: 120px;
}

/* =========================================================
   閲覧モード調整
   ========================================================= */
.view-mode .oh-transfer-setting-switch,
.view-mode .oh-transfer-setting-panel {
  background: #fafafa;
}

/* =========================================================
   スマホ調整
   ========================================================= */
@media (max-width: 768px) {
  .oh-grid {
    grid-template-columns: 1fr;
  }

  .btn-submit,
  .btn-clear {
    width: 100%;
    margin: 5px 0;
  }

  .oh-tabs {
    overflow-x: auto;
  }

  .oh-grid-inline {
    flex-direction: column;
  }

  .oh-grid-inline select {
    flex: none;
    width: 100%;
  }

  .oh-transfer-setting-switch {
    padding: 14px;
  }

  .oh-transfer-setting-radios {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .oh-transfer-setting-radios label {
    font-size: 15px;
  }

  .oh-transfer-setting-panel {
    padding: 14px;
  }

  .oh-transfer-time-group {
    flex-direction: column;
    gap: 10px;
  }

  .oh-transfer-time-item {
    min-width: 100%;
    flex: none;
  }
}