:root {
  --card-max: 560px;
  --gutter: 12px;
  /* 両サイドの余白 */
}



/* =========================
   全体のスタイル調整
========================= */
h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #ff5e9c8c, #ff8fb98c);
  /* はっきりした濃ピンク */
  padding: 8px 20px;
  border-radius: 5px;
  margin: 22px auto 14px;
  width: 90%;
  max-width: 480px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  /* 白い輪郭 */
  box-shadow: 0 4px 10px rgba(255, 105, 150, 0.4);
  /* しっかり浮かせる */
}

/* アイコン強調 */
h2 i {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 16px;
  padding: 4px;
  border-radius: 50%;
}

.info-icon {
  position: relative;
  display: inline-block;
  margin-left: 8px;
  font-size: 14px;
  cursor: pointer;
  color: #888;
}

.tooltip-text {
  position: absolute;
  top: 130%;
  right: 50%;
  background: #fff;
  color: #b4b4b4;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  font-size: 13px;
  line-height: 1.5;
  z-index: 10;
  display: none;
  width: 300px;
  text-align: left;
  font-weight: nomal;
}

/* 表示状態クラス */
.tooltip-text.show {
  display: block;
}

.profile-input,
.search-form {
  /* 必要に応じて後で追加 */
}

.search-form {
  display: none;
}

.search-form.show {
  display: block;
}

/* =========================
     共通フィールド枠（背景・角丸）
  ========================= */
.profile-fields {
  width: min(var(--card-max), calc(100% - var(--gutter) * 2));
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0 auto;
  background: #fff;
  padding: 40px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
  max-width: 500px;
}

/* =========================
     入力グループ（基本情報・身体的特徴どちらも）
  ========================= */
.input-group {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  /* ← 高さそろえる */
  border-bottom: 1px solid #cccccc80;
  padding-bottom: 15px;
}

.input-group label,
.input-group dt {
  font-weight: bold;
  color: #ff4d6d;
  min-width: 100px;
  text-align: left;
}

.input-group dd {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

/* =========================
     ラジオボタン風ラベル（身体的特徴）
  ========================= */
.input-group dd label {
  flex: 1;
  /* ← 幅均等 */
  min-width: 80px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid #ddd;
  background: #fff;
  font-size: 16px;
  font-weight: bold;
  color: #444;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}

.input-group dd input {
  display: none;
}

.input-group dd input:checked+label {
  background: linear-gradient(135deg, #ff8aa8, #ff6f91);
  color: #fff;
  border-color: #ff6f91;
  box-shadow: 0 4px 6px rgba(255, 111, 145, 0.2);
}

/* =========================
   ラジオ行のラベル幅を整える
========================= */

.radio-row dt {
  min-width: 100px;
  font-weight: bold;
  color: #444;
}

.radio-row dd {
  display: flex;
  gap: 10px;
}

.radio-row label {
  padding: 8px 16px;
  border-radius: 10px;
  border: 2px solid #ddd;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  background: #fff;
  color: #444;
  font-weight: bold;
}

.radio-row input {
  display: none;
}

.radio-row input:checked+label {
  background: linear-gradient(135deg, #ff8aa8, #ff6f91);
  color: #fff;
  border-color: #ff6f91;
  box-shadow: 0 4px 6px rgba(255, 111, 145, 0.2);
}

/* =========================
   身分証セクション（共通デザイン）
========================= */
.id-verification {}

.id-verification h2 {
  text-align: center;
  font-size: 20px;
  color: #ff6f91;
  margin-bottom: 15px;
}

/* =========================
     身分証チェック項目のラップと配置
  ========================= */

.input-title {
  font-weight: bold;
  color: #ff4d6d;
  font-size: 16px;
  margin-bottom: 15px;
  text-align: center;
  line-height: 1.4;
}

.input-group.check-layout {
  display: block;
  /* ← flexが邪魔なのでblock化 */
  border-bottom: none;
  margin: 0 auto;
  max-width: 500px;
}

.input-group.check-layout dt {
  font-weight: bold;
  color: #ff4d6d;
  font-size: 16px;
  margin-bottom: 15px;
  text-align: center;
  line-height: 1.4;
  width: 100%;
}

.checkbox-group {
  display: flex;
  justify-content: center;
  /* ← 中央寄せ */
  width: 100%;
}

.checkbox-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, auto));
  gap: 14px 16px;
  /* justify-content: start; */
  /* ← 左詰で表示 */
  width: 100%;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: bold;
  color: #ff6f91;
  background: #fff;
  border: 2px solid #ff6f91;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal;
  word-break: break-word;
  box-sizing: border-box;
  line-height: 1.4;
  min-height: 48px;
  box-shadow: 0 2px 4px rgba(255, 111, 145, 0.1);
}

.checkbox-group input {
  display: none;
}

.checkbox-group input:checked+label {
  background: linear-gradient(135deg, #ff6f91, #ff4d6d);
  color: #fff;
  border-color: #ff4d6d;
  box-shadow: 0 4px 8px rgba(255, 111, 145, 0.25);
}

.input-group small {
  display: block;
  font-size: 12px;
  color: #999;
  text-align: right;
  margin-top: 6px;
  padding-right: 4px;
}

/* =========================
   期間
========================= */

.date-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 8px;
}

.date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  /* ★これも重要 */
  flex-wrap: wrap;
  /* ★画面が狭いときに無理やり1行にしない！ */
  flex-direction: column;
  align-content: flex-end;
}

.date-row input[type="date"] {
  flex: 1 1 40%;
  /* ★ここ大事！バランスよく幅取る！ */
  min-width: 120px;
  max-width: 180px;
  padding: 8px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: "Segoe UI", "Hiragino Sans", "Meiryo", sans-serif;
  text-align: center;
}

.date-separator {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: bold;
  color: #ff6f91;
  padding: 0 4px;
}

.hope-none-checkbox {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
  justify-content: flex-end;
}

.hope-none-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.hope-none-checkbox label {
  cursor: pointer;
  min-width: auto !important;
}

/* =========================
   ラジオボタン（カスタムデザイン）
========================= */
.radio-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
}

.radio-group dt {
  font-weight: bold;
  color: #444;
  min-width: 100px;
  text-align: left;
}

.radio-group dd {
  display: flex;
  gap: 10px;
}

/* ✅ ボタン風のラジオボタン */
.radio-group label {
  padding: 8px 16px;
  border-radius: 10px;
  border: 2px solid #ddd;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  background: #fff;
  color: #444;
  font-weight: bold;
}

/* ✅ 選択時のラジオボタン */
.radio-group input {
  display: none;
}

.radio-group input:checked+label {
  background: linear-gradient(135deg, #ff8aa8, #ff6f91);
  color: #fff;
  border-color: #ff6f91;
  box-shadow: 0 4px 6px rgba(255, 111, 145, 0.2);
}

/* =========================
   ボタンスタイル（検索ボタンなど）
========================= */
.btn-search {
  display: block;
  width: 100%;
  max-width: 300px;
  background: linear-gradient(135deg, #ff8aa8, #ff6f91);
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: 0.3s;
  margin: 20px auto;
  box-shadow: 0 4px 10px rgba(255, 111, 145, 0.2);
}

.btn-search:hover {
  background: linear-gradient(135deg, #ff6f91, #ff4d6d);
  box-shadow: 0 6px 15px rgba(255, 111, 145, 0.3);
}

.btn-search:active {
  background: linear-gradient(135deg, #ff4d6d, #ff2d4a);
  box-shadow: 0 3px 8px rgba(255, 111, 145, 0.4);
}

/* =========================
   タブメニュー（世界観に合わせたピンク）
========================= */
.tab-menu {
  display: flex;
  justify-content: center;
  gap: 12px;
  /* ボタンの間隔を調整 */
  margin: 30px auto 40px;
  max-width: 500px;
}

.tab-btn {
  flex: 1;
  /* 均等に幅を配分 */
  min-width: 150px;
  /* 小さすぎないように最低幅 */
  max-width: 240px;
  /* 大きすぎないよう制限 */
  padding: 14px 20px;
  font-size: 16px;
  text-align: center;
  background: #ffffff00;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(255, 140, 170, 0.15);
}

/* ✅ アクティブなタブ */
.tab-btn.active {
  background: linear-gradient(135deg, #ff7aa9, #ff97c0);
  color: #fff;
  border-color: #ff7aa9;
  box-shadow: 0 4px 10px rgba(255, 120, 160, 0.3);
}

/* ✅ ホバー時もやわらかく */
.tab-btn:hover {
  background: linear-gradient(135deg, #ff8fb9, #ff7aa9);
  color: #fff;
  border-color: #ff7aa9;
  box-shadow: 0 4px 12px rgba(255, 120, 160, 0.3);
}

/* =========================
   レスポンシブ対応（スマホ用）
========================= */
@media (max-width: 600px) {
  .tab-menu {
    flex-direction: row;
    gap: 10px;
    display: flex;
    margin: 20px;
  }

  .tab-btn {
    font-size: 14px;
    padding: 12px;
  }
}

.search-form small {
  text-align: right;
  display: block;
  font-size: 0.8rem;
}

/* チェックボックスのカスタム */
.checkbox-group input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ff6f91;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #fff;
}

/* フォントアウェサムのチェックマーク */
.checkbox-group input:checked {
  background: #ff6f91;
  border-color: #ff6f91;
}

.checkbox-group input:checked::before {
  content: "\f00c";
  /* fa-check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* スマホ対応 */
@media (max-width: 600px) {
  .checkbox-group {
    flex-direction: row;
    justify-content: space-between;
    gap: 5px;
  }

  .checkbox-group label {}
}

.check-layout dt {
  text-align: center;
  border: 1px solid #ff4d6d;
  width: 65vw;
  padding: 10px;
  background: #fff;
}

/* ✅ チェックボックスグループ（3列レイアウト） */
.check-layout,
.checkbox-group {
  display: flex;
  /* 3列 */
  /* gap: 10px; */
  /* ボックスの間隔 */
  /* max-width: 400px; */
  /* 全体の横幅 */
  margin: 0 auto;
  /* センター配置 */
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* PCサイズ以上でgapを有効化 */
@media screen and (min-width: 1024px) {

  .check-layout,
  .checkbox-group {
    gap: 10px;
  }
}

/* ✅ ボタン風チェックボックス */
.check-layout label,
.checkbox-group label {
  /* display: flex; */
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  /* ✅ デフォルトでPINK */
  /* ✅ 文字色を白 */
  border: 2px solid #ff6f91;
  /* ✅ ボーダーもPINK */
  border-radius: 8px;
  text-align: center;
  min-width: 100px;
  /* 幅を統一 */
  box-sizing: border-box;
  transition: 0.3s;
  /* なめらかに変化 */
  font-size: 0.9rem;
}

/* ✅ チェックボックスを非表示に */
.check-layout input,
.checkbox-group input {
  display: none;
}

/* ✅ チェックが外れた時のスタイル */
.check-layout input:not(:checked)+label,
.checkbox-group input:not(:checked)+label {
  background: #fff;
  /* ✅ 白背景 */
  color: #ff6f91;
  /* ✅ 文字色をPINK */
  border: 2px solid #ff6f91;
  transition: 0.3s;
}

/* ✅ 選択時（デフォルトですべて選択状態） */
.check-layout input:checked+label,
.checkbox-group input:checked+label {
  background: linear-gradient(135deg, #ff6f91, #ff4d6d);
  /* ✅ クリック時に濃いPINKに */
  color: #fff;
  border-color: #ff4d6d;
  box-shadow: 0 4px 6px rgba(255, 111, 145, 0.3);
}

/* ✅ Font Awesome のチェックマーク */
.check-layout input:checked+label::before,
.checkbox-group input:checked+label::before {
  content: "\f00c";
  /* ✔（チェックマーク） */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 5px;
  font-size: 0.8rem;
}

/* ✅ レスポンシブ対応（スマホで2列にする） */
@media (max-width: 480px) {
  .check-layout {
    /* 2列 */
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
  }
}

.search-content {
  border-radius: 10px;
}

.check-layout dt span {
  display: block;
  font-size: 0.8rem;
  color: #bdbdbd;
  line-height: 1;
}

/* =========================
========================= */

.select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.select-wrapper select {
  font-variant: JIS04;
  width: 100%;
  min-width: 100px;
  padding: 6px 32px 6px 10px;
  /* ← 少しコンパクト */
  font-size: 16px;
  /* ← 少しだけ大きめ（今16pxならそのままでOK） */
  font-weight: bold;
  /* ← 文字をちょっとだけ太くして密度UP！ */
  border: 2px solid #ddd;
  border-radius: 10px;
  appearance: none;
  background: #fff;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  color: #3a3a3a;
}

/* ユニット（cm, kg, 歳） */
.unit {
  margin-left: 4px;
  /* ← ぐっと近づける */
  font-size: 14px;
  color: #555;
}

/* やじるしだけデザインする場合 */
.select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #aaa;
}

/* iOS / Android のデフォルト矢印を非表示 */
select::-webkit-calendar-picker-indicator,
select::-webkit-inner-spin-button,
select::-webkit-outer-spin-button,
select::-ms-expand {
  display: none !important;
  -webkit-appearance: none;
}

/* カスタム矢印 */
.select-wrapper::after {
  content: "\f078";
  /* Font Awesome の下矢印 */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 14px;
  color: gray;
  position: absolute;
  right: 12px;
  /* 右端に配置 */
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  /* クリックできないようにする */
}

/* フォーカス時のエフェクト */
select:focus {
  border-color: #ff4d6d;
  outline: none;
  box-shadow: 0 0 5px rgba(255, 111, 145, 0.5);
}

.rate-container {
  display: flex;
  align-items: center;
  gap: 8px;
  /* 要素間の余白 */
}

.rate-label {
  white-space: nowrap;
  /* 折り返しを防ぐ */
}

#min-rate {
  font-size: 16px;
}

.btn4 .check-layout label,
.checkbox-group label {
  min-width: 70px;
}

/* ==== Tattoo / Scar size controls — FULL CSS (ticks highlight) ==== */

/* dd 内の input を全部消さず、radio/checkbox のみに限定 */
.input-group dd input[type="radio"],
.input-group dd input[type="checkbox"] {
  display: none;
}

/* 右カラムは残り幅で縮む（はみ出し防止） */
.profile-fields .input-group dd {
  flex: 1 1 auto;
  min-width: 0;
}

/* 下位質問のトーン */
.is-hidden {
  display: none;
}

.profile-fields .input-group--sub {
  margin-top: .25rem;
  padding-left: .75rem;
  border-left: 2px dashed rgba(0, 0, 0, .12);
}

.profile-fields .helptext--sub {
  margin: .25rem 0 .6rem 1rem;
  font-size: .8rem;
  color: #777;
}

/* スライダー（3段階） */
.profile-fields .level-range-wrap {
  position: relative;
  width: 100%;
}

/* トラック */
.profile-fields .level-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  outline: 0;
  background: linear-gradient(to right, #ff4f8b var(--pct, 33%), #f6d0dd var(--pct, 33%));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
}

.profile-fields .level-range::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
  border: none;
  border-radius: 999px;
}

.profile-fields .level-range::-moz-range-track {
  height: 8px;
  background: transparent;
  border: none;
  border-radius: 999px;
}

/* つまみ */
.profile-fields .level-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff4f8b;
  border: 3px solid #fff;
  margin-top: -6px;
  /* 8pxトラックの中央に */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.profile-fields .level-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff4f8b;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

/* 目盛（クリック/タップ可能） */
.profile-fields .level-ticks {
  display: flex;
  justify-content: space-between;
  gap: 0;
  margin-top: .35rem;
  color: #777;
  font-size: .78rem;
}

.profile-fields .level-ticks span {
  flex: 1 1 0;
  text-align: center;
  cursor: pointer;
  position: relative;
  outline: none;
  padding-top: .15rem;
  user-select: none;
  transition: color .15s ease;
}

.profile-fields .level-ticks span.is-active {
  color: #ff4f8b;
  font-weight: 600;
}

.profile-fields .level-ticks span.is-active::after {
  content: "";
  position: absolute;
  top: -.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4f8b;
}

/* モバイル微調整 */
@media (max-width:420px) {
  .profile-fields .helptext--sub {
    font-size: .76rem;
  }

  .profile-fields .level-ticks {
    font-size: .74rem;
  }
}


/* ==== Steppers & Cup Chips — FULL CSS ==== */

/* 右カラムはみ出し防止（必須） */
.profile-fields .input-group dd {
  flex: 1 1 auto;
  min-width: 0;
}

/* 既存の「dd内input全部非表示」をやめ、radio/checkboxだけ非表示に */
.input-group dd input[type="radio"],
.input-group dd input[type="checkbox"] {
  display: none;
}


/* ---------- “以上”チップ（190cm以上 / 120kg以上） ---------- */
.over-chip {
  display: inline-block;
  padding: .42rem .7rem;
  border: 1px solid #eadfea;
  border-radius: 999px;
  background: #fff;
  color: #333;
  cursor: pointer;
  user-select: none;
  transition: background .15s, color .15s, border-color .15s;
}

.over-chip.is-active {
  background: #ff8fb3;
  color: #fff;
  border-color: #ff8fb3;
}

.over-chip:focus-visible {
  outline: 2px solid #ff8fb3;
  outline-offset: 2px;
}

/* ---------- カップ数：グリッドチップ（A〜G＋H以上） ---------- */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  /* スマホは3列 x 3行で綺麗に9個 */
  gap: .5rem;
}

@media (min-width: 480px) {
  .chip-grid {
    grid-template-columns: repeat(4, minmax(74px, 1fr));
  }
}

.chip-grid input[type="radio"] {
  display: none;
}

.chip-grid label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .4rem;
  border: 1px solid #eadfea;
  border-radius: 14px;
  background: #fff;
  color: #333;
  cursor: pointer;
  user-select: none;
  transition: background .15s, color .15s, border-color .15s;
  min-width: 0;
  /* 既存の min-width 上書き */
  box-sizing: border-box;
  font-weight: 600;
}

.chip-grid label:focus-visible {
  outline: 2px solid #ff8fb3;
  outline-offset: 2px;
}

.chip-grid input[type="radio"]:checked+label {
  background: #ff8fb3;
  color: #fff;
  border-color: #ff8fb3;
}

/* ==== Fix: Cup chips & steppers layout (override) ==== */

/* 右カラムはみ出し防止（念押し） */
.profile-fields .input-group dd {
  flex: 1 1 auto;
  min-width: 0;
}

/* ステッパー（そのまま） */
.stepper {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #eadfea;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .02);
  margin-right: .5rem;
}

.stepper-btn {
  width: 44px;
  height: 38px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  color: #ff4f8b;
  cursor: pointer;
  user-select: none;
}

.stepper-btn:disabled {
  opacity: .35;
  cursor: default;
}


/* “以上”チップ */
.over-chip {
  display: inline-block;
  padding: .42rem .7rem;
  border: 1px solid #eadfea;
  border-radius: 999px;
  background: #fff;
  color: #333;
  cursor: pointer;
  user-select: none;
  transition: background .15s, color .15s, border-color .15s;
}

.over-chip.is-active {
  background: #ff8fb3;
  color: #fff;
  border-color: #ff8fb3;
}

/* ==== Cup chips grid (A〜G + H以上) — 強制リセット込み ==== */
.chip-grid {
  display: grid;
  width: 100%;
  /* 画面幅に応じて列数可変：非常に狭い→2列 / 通常→3列 / 少し広い→4列 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}

@media (max-width: 380px) {
  .chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 560px) {
  .chip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ここが肝：共通の .input-group dd label ルールを “無効化/上書き” */
.chip-grid label {
  /* リセット（他のボタン風スタイルが残らないように） */
  min-width: 0 !important;
  flex: 0 0 auto !important;
  box-shadow: none !important;
  transform: none !important;
  border: 1px solid #eadfea !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #333 !important;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .4rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}

.chip-grid input[type="radio"] {
  display: none;
}

.chip-grid input[type="radio"]:checked+label {
  background: #ff8fb3 !important;
  color: #fff !important;
  border-color: #ff8fb3 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* 右カラムはみ出し防止（未設定なら） */
.profile-fields .input-group dd {
  flex: 1 1 auto;
  min-width: 0;
}

/* 横並び */
.rate-inline {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.rate-fixed {
  display: inline-block;
  padding: .35rem .7rem;
  min-width: 64px;
  background: #fff;
  border: 1px solid #eadfea;
  border-radius: 999px;
  text-align: center;
}

.rate-suffix {
  color: #777;
}

/* ステッパー（共通） */
.stepper {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #eadfea;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .02);
}

.stepper-btn {
  width: 44px;
  height: 38px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  color: #ff4f8b;
  cursor: pointer;
  user-select: none;
}

.stepper-btn:disabled {
  opacity: .35;
  cursor: default;
}



/* 一行で収める＆読みやすく */
.rate-inline,
.guarantee-inline {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

@media (min-width: 420px) {

  .rate-inline,
  .guarantee-inline {
    flex-direction: row;
    align-items: center;
  }
}

/* 60分バッジ */
.chip {
  display: inline-block;
  padding: .35rem .7rem;
  border: 1px solid #eadfea;
  border-radius: 999px;
  background: #fff;
}

.chip--fixed {
  min-width: 64px;
  text-align: center;
}

/* ステッパー（共通） */
.stepper {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #eadfea;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .02);
}

.stepper-btn {
  width: 44px;
  height: 38px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  color: #ff4f8b;
  cursor: pointer;
  user-select: none;
}

.stepper-btn:disabled {
  opacity: .35;
  cursor: default;
}

.stepper-display {
  min-width: 128px;
  /* 「18,000円以上」を1行で */
  padding: 0 .6rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  word-break: keep-all;
}

.stepper-unit {
  margin-left: .1rem;
  white-space: nowrap;
}

.stepper-suffix {
  margin-left: .25rem;
  color: #777;
  white-space: nowrap;
}

/* 注釈（目立たせない） */
.note-muted {
  margin: .2rem 0 0;
  font-size: .82rem;
  color: #777;
}

/* 合計保証の見栄え */
.total-amount {
  font-weight: 700;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.total-amount .unit {
  margin-left: .2rem;
  color: #777;
  font-weight: 600;
}

/* 右カラムのはみ出し防止（未設定なら） */
.profile-fields .input-group dd {
  flex: 1 1 auto;
  min-width: 0;
}

/* 女子給の行：常に縦積み（ステッパー → 注釈）で崩れ防止 */
#rate-row dd {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
}

/* ステッパー単独行の整列 */
#rate-row .rate-inline--single {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
}

/* 注釈（既存 .bubble を控えめに） */
.note-say {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}

/* しゃべる注釈用：キャラアイコン */
.char-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  /* 余計な下余白防止 */
}

.bubble {
  background: #fff4f8;
  color: #e6577f;
  padding: 10px 14px;
  border-radius: 0px 18px 18px 18px;
  box-shadow: 0 2px 8px rgba(255, 140, 170, 0.15);
  max-width: 250px;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
}

/* 希望保証の行：ステッパー → 注釈の縦積み */
#guarantee-row dd {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
}

/* ステッパー単独行の整列 */
#guarantee-row .guarantee-inline--single {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
}

/* （既に追加済みなら不要）注釈UI */
.char-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.note-say {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-top: .35rem;
}

.bubble--note {
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 260px;
  opacity: .95;
  position: relative;
}

/* ステッパーの“−”ボタン幅 + 余白ぶんインデント */
#rate-row .note-say,
#guarantee-row .note-say {
  /* margin-left: 60px; */
}

@media (min-width: 480px) {

  #rate-row .note-say,
  #guarantee-row .note-say {
    margin-left: 64px;
  }
}

/* 日付バリデーション */
.form-error {
  display: none;
  margin-top: 6px;
  color: #e6577f;
  font-size: 12px;
}

.form-error.show {
  display: block;
}

.date-group.is-error input[type="date"] {
  border-color: #e6577f !important;
  background: #fff5f7 !important;
}

.is-error {
  border-color: #ff6f91 !important;
  box-shadow: 0 0 0 3px rgba(255, 111, 145, .18);
}

.field-note--error {
  color: #ff4d6d;
  font-size: 12px;
  margin-top: 6px;
}