@charset "UTF-8";
/* ==========================================================================
   STEP2（物件詳細フォーム）まとめCSS
   --------------------------------------------------------------------------
   対象：
     .hy-thanks … /auction/simulator/thanks の導入部
     .hy-chat   … チャットUI（JSが有効なとき）
     .hy-pf     … MW WP Form 本体。JS無効時・確認画面ではこちらがそのまま出る
     .hy-done   … 送信完了ページ

   配色は STEP1 シミュレーター（テーマ ouchi-soudan）に合わせている。
     青    #0252c6   質問カード・選択肢の枠
     水色  #02bfd3   選択中・回答の吹き出し
     黄    #ffe210   残り質問数バッジ
     枠線  #ccc      吹き出し
   ========================================================================== */

.hy-thanks,
.hy-chat,
.hy-pf,
.hy-done {
  --sim-blue: #0252c6;
  --sim-cyan: #02bfd3;
  --sim-yellow: #ffe210;
  --sim-navy: #1a385f;
  --sim-red: #df4545;
  --sim-line: #ccc;
  --sim-bg: #eaf5fc;
  --sim-text: #333;
}

/* ==========================================================================
   1. 導入部（/auction/simulator/thanks）
   ========================================================================== */
.hy-thanks {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
  color: var(--sim-text);
  line-height: 1.75;
}

.hy-thanks__head {
  padding: 24px 0 28px;
  text-align: center;
}

.hy-thanks__eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: #3a9d4a;
  border-radius: 100px;
}

.hy-thanks__ttl {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--sim-navy);
}

.hy-thanks__lead {
  margin: 0;
  font-size: 15px;
}

.hy-thanks__next {
  margin-bottom: 30px;
  padding: 26px 22px 22px;
  text-align: center;
  background: #fff;
  border: 3px solid var(--sim-blue);
  border-radius: 15px;
}

.hy-thanks__next-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sim-navy);
  background: var(--sim-yellow);
  border-radius: 100px;
}

.hy-thanks__next-ttl {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--sim-blue);
}

.hy-thanks__next-body {
  margin: 0 0 20px;
  font-size: 15px;
}

.hy-thanks__next-body strong {
  font-weight: 700;
  background: linear-gradient(transparent 62%, var(--sim-yellow) 62%);
}

.hy-thanks__merit {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.hy-thanks__merit li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  background: var(--sim-bg);
  border-radius: 10px;
}

.hy-thanks__merit span {
  flex: 0 0 auto;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: var(--sim-blue);
  border-radius: 4px;
}

.hy-thanks__scroll {
  position: relative;
  margin: 0;
  padding-bottom: 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sim-blue);
}

.hy-thanks__scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 16px;
  height: 10px;
  transform: translateX(-50%);
  background: var(--sim-blue);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ==========================================================================
   2. チャットUI
   ========================================================================== */
.hy-chat {
  padding: 26px 16px 30px;
  background: var(--sim-bg);
  border-radius: 16px;
  color: var(--sim-text);
  line-height: 1.7;
  /* 吹き出しの出現アニメ（translateX）が一瞬はみ出すため横スクロールを止める */
  overflow-x: hidden;
}

.hy-chat__log {
  max-width: 640px;
  margin: 0 auto;
}

.hy-chat__turn + .hy-chat__turn {
  margin-top: 34px;
}

/* ---------- コンシェルジュの吹き出し ---------- */
.hy-chat__say {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hy-chat__say.is-in {
  opacity: 1;
  transform: translateX(0);
}

.hy-chat__avatar,
.hy-chat__avatar-sp {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
}

.hy-chat__avatar {
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.hy-chat__avatar--ph svg {
  width: 100%;
  height: 100%;
}

.hy-chat__bubble {
  position: relative;
  margin: 0;
  padding: 16px 20px;
  font-size: 15.5px;
  overflow-wrap: anywhere;
  background: #fff;
  border: 2px solid var(--sim-line);
  border-radius: 15px;
}

/* 吹き出しの左向きしっぽ */
.hy-chat__say .hy-chat__bubble::before,
.hy-chat__say .hy-chat__bubble::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
}

.hy-chat__say .hy-chat__bubble::before {
  left: -24px;
  border-right: 16px solid var(--sim-line);
}

.hy-chat__say .hy-chat__bubble::after {
  left: -21px;
  border-right: 16px solid #fff;
}

.hy-chat__em {
  color: var(--sim-red);
  font-weight: 700;
}

.hy-chat__mark {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: #e8880f;
  line-height: 1.6;
}

/* ---------- 青い質問カード ---------- */
.hy-chat__q {
  position: relative;
  margin: 30px 0 16px;
  padding: 26px 22px 22px;
  text-align: center;
  background: var(--sim-blue);
  border-radius: 15px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hy-chat__q.is-in {
  opacity: 1;
  transform: translateY(0);
}

.hy-chat__rest {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 150px;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--sim-navy);
  background: var(--sim-yellow);
  border-radius: 100px;
}

.hy-chat__rest--opt {
  color: #fff;
  background: #6a7280;
}

.hy-chat__rest b {
  margin: 0 2px;
  font-size: 17px;
  font-weight: 900;
}

.hy-chat__q-tit {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #fff;
}

.hy-chat__q-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #bcd7ff;
}

/* ---------- 回答エリア ---------- */
.hy-chat .hy-chat__control {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.hy-chat .hy-chat__control.is-in {
  opacity: 1;
  transform: translateY(0);
}

.hy-chat .hy-chat__control.is-shake {
  animation: hy-chat-shake 0.4s;
}

@keyframes hy-chat-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* チャット内では説明文・ラベルは質問カード側に出しているので隠す */
.hy-chat .hy-chat__control .hy-pf__note {
  display: none;
}

/* 選択肢カード（ラジオ・チェックボックス） */
.hy-chat .hy-chat__control .mwform-radio-field,
.hy-chat .hy-chat__control .mwform-checkbox-field {
  display: block;
  margin: 0;
}

.hy-chat .hy-chat__control[data-hy-kind="radio"] .hy-pf__field,
.hy-chat .hy-chat__control[data-hy-kind="checkbox"] .hy-pf__field {
  display: grid;
  /* minmax(0,…) にしないと、長い選択肢のときに親幅をはみ出す */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hy-chat .hy-chat__control .mwform-radio-field label,
.hy-chat .hy-chat__control .mwform-checkbox-field label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-height: 64px;
  margin: 0;
  padding: 16px 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  color: var(--sim-navy);
  cursor: pointer;
  background: #fff;
  border: 3px solid var(--sim-blue);
  border-radius: 15px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.hy-chat .hy-chat__control .mwform-radio-field label:hover,
.hy-chat .hy-chat__control .mwform-checkbox-field label:hover {
  background: #eaf1ff;
}

.hy-chat .hy-chat__control .mwform-radio-field input,
.hy-chat .hy-chat__control .mwform-checkbox-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.hy-chat .hy-chat__control .mwform-checkbox-field label::before {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 2px solid var(--sim-blue);
  border-radius: 4px;
}

.hy-chat .hy-chat__control .mwform-radio-field label:has(input:checked),
.hy-chat .hy-chat__control .mwform-checkbox-field label:has(input:checked) {
  color: #fff;
  background: var(--sim-cyan);
  border-color: var(--sim-cyan);
}

.hy-chat .hy-chat__control .mwform-checkbox-field label:has(input:checked)::before {
  background: #fff
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%2302bfd3' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='m2 7.4 3.2 3.2L12 3.8'/%3E%3C/svg%3E")
    no-repeat center;
  border-color: #fff;
}

/* キーボード操作でも選択位置がわかるように */
.hy-chat .hy-chat__control label:focus-within {
  outline: 3px solid rgba(2, 191, 211, 0.5);
  outline-offset: 2px;
}

/* テキスト・セレクト */
.hy-chat .hy-chat__control input[type="text"],
.hy-chat .hy-chat__control input[type="email"],
.hy-chat .hy-chat__control input[type="tel"],
.hy-chat .hy-chat__control select,
.hy-chat .hy-chat__control textarea {
  padding: 15px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--sim-text);
  background: #fff;
  border: 2px solid var(--sim-line);
  border-radius: 12px;
  box-shadow: none;
}

.hy-chat .hy-chat__control textarea {
  width: 100%;
  line-height: 1.7;
}

/* 単独の入力欄は横いっぱい。複数を横並びにする行（.hy-pf__inline）は幅を保つ */
.hy-chat .hy-chat__control input[type="text"],
.hy-chat .hy-chat__control input[type="email"],
.hy-chat .hy-chat__control input[type="tel"] {
  width: 100%;
}

.hy-chat .hy-chat__control .hy-pf__inline input[type="text"],
.hy-chat .hy-chat__control .hy-pf__inline input[type="email"],
.hy-chat .hy-chat__control .hy-pf__inline input[type="tel"] {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
}

.hy-chat .hy-chat__control .hy-pf__inline select {
  width: auto;
  min-width: 110px;
}

.hy-chat .hy-chat__control select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 52px;
  font-weight: 700;
  color: var(--sim-navy);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='15' fill='%23e3e7ee'/%3E%3Cpath fill='none' stroke='%23666' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m9.5 13 5.5 5 5.5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.hy-chat .hy-chat__control input:focus,
.hy-chat .hy-chat__control select:focus,
.hy-chat .hy-chat__control textarea:focus {
  outline: none;
  border-color: var(--sim-blue);
  box-shadow: 0 0 0 3px rgba(2, 82, 198, 0.18);
}

.hy-chat .hy-chat__control .hy-pf__inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.hy-chat .hy-chat__control .hy-pf__unit {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--sim-navy);
}

.hy-chat .hy-chat__control .hy-pf__file {
  margin: 0 0 10px;
}

.hy-chat .hy-chat__control input[type="file"] {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  background: #fff;
  border: 2px dashed var(--sim-line);
  border-radius: 12px;
}

/* ボタン */
.hy-chat__act {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.hy-chat__btn {
  min-width: 190px;
  padding: 14px 26px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: var(--sim-blue);
  border: 3px solid var(--sim-blue);
  border-radius: 100px;
  transition: opacity 0.15s;
}

.hy-chat__btn:hover {
  opacity: 0.85;
}

.hy-chat__btn--ghost {
  color: #6a7280;
  background: #fff;
  border-color: #d5dde6;
}

.hy-chat__alert {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: var(--sim-red);
}

/* ---------- 回答の吹き出し ---------- */
.hy-chat__me {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hy-chat__me.is-in {
  opacity: 1;
  transform: translateX(0);
}

.hy-chat__bubble--me {
  max-width: 88%;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--sim-cyan);
  border: 2px solid var(--sim-cyan);
  border-radius: 15px;
}

.hy-chat__me.is-muted .hy-chat__bubble--me {
  font-weight: 500;
  color: #6a7280;
  background: #eef2f7;
  border-color: #dfe4ec;
}

/* ---------- 送信エリア ---------- */
.hy-chat .hy-chat__finish {
  margin-top: 26px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hy-chat .hy-chat__finish.is-in {
  opacity: 1;
  transform: translateY(0);
}

.hy-chat .hy-chat__finish .hy-pf__privacy,
.hy-chat .hy-chat__finish .hy-pf__actions,
.hy-chat .hy-chat__finish .hy-pf__after {
  display: block;
}

/* STEP1から引き継いだご連絡先の確認欄 */
.hy-chat .hy-chat__recheck {
  margin-bottom: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 2px solid var(--sim-line);
  border-radius: 12px;
}

.hy-chat .hy-chat__recheck-ttl {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sim-navy);
}

.hy-chat .hy-chat__recheck-note {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: #6a7280;
}

.hy-chat .hy-chat__recheck .hy-pf__note {
  display: none;
}

.hy-chat .hy-chat__recheck .hy-pf__inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.hy-chat .hy-chat__recheck input[type="text"],
.hy-chat .hy-chat__recheck input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  border: 2px solid var(--sim-line);
  border-radius: 10px;
}

.hy-chat .hy-chat__recheck input:focus {
  outline: none;
  border-color: var(--sim-blue);
  box-shadow: 0 0 0 3px rgba(2, 82, 198, 0.18);
}

.hy-chat .hy-chat__finish .hy-pf__privacy {
  padding: 20px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
}

/* 確認画面ありの設定では通常1つしか出ないが、複数出ても崩れないよう縦積みにする */
.hy-chat .hy-chat__finish .hy-pf__actions {
  flex-direction: column;
  flex-wrap: nowrap; /* column + wrap だとフレックスラインが左に寄るため */
  align-items: center;
}

.hy-chat .hy-chat__finish .hy-pf__actions input[type="submit"],
.hy-chat .hy-chat__finish .hy-pf__actions button {
  width: 100%;
  max-width: 380px;
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
  /* テーマ側のボタン装飾（影・縁）を打ち消す */
  border: 0;
  box-shadow: none;
  text-shadow: none;
  background-image: none;
  background-color: var(--sim-blue);
  color: #fff;
}

.hy-chat .hy-chat__finish .hy-pf__actions input[type="submit"]::before,
.hy-chat .hy-chat__finish .hy-pf__actions input[type="submit"]::after,
.hy-chat .hy-chat__finish .hy-pf__actions button::before,
.hy-chat .hy-chat__finish .hy-pf__actions button::after {
  content: none;
}

/* 「入力内容を修正する」だけ白抜き */
.hy-chat .hy-chat__finish .hy-pf__actions input[name="submitBack"],
.hy-chat .hy-chat__finish .hy-pf__actions input[value*="修正"] {
  color: var(--sim-navy);
  background-color: #fff;
  border: 2px solid var(--sim-navy);
}

/* 同意チェックは選択肢カードではないので、塗りつぶしスタイルを打ち消す
   （:has() を含むフォールバック側のルールに勝てるよう詳細度を上げてある） */
.hy-chat .hy-chat__finish .mwform-checkbox-field label,
.hy-chat .hy-chat__finish .mwform-checkbox-field label:has(input:checked) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  color: var(--sim-navy);
  cursor: pointer;
  background: none;
  border: 0;
  box-shadow: none;
}

.hy-chat .hy-chat__finish .mwform-checkbox-field label::before,
.hy-chat .hy-chat__finish .mwform-checkbox-field label:has(input:checked)::before {
  content: none;
}

.hy-chat .hy-chat__finish .mwform-checkbox-field input {
  position: static;
  width: 20px;
  height: 20px;
  opacity: 1;
  accent-color: var(--sim-blue);
}

/* ---------- 戻る ---------- */
.hy-chat__bar {
  max-width: 640px;
  margin: 24px auto 0;
  text-align: center;
}

.hy-chat__back {
  padding: 9px 22px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #6a7280;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d5dde6;
  border-radius: 100px;
}

.hy-chat__back[hidden] {
  display: none;
}

/* ---------- チャット起動中は通常フォームを隠す ---------- */
/* 導入文は固定ページ側（.hy-thanks）に出しているので、チャット時は二重にしない */
.hy-pf--chat .hy-pf__head,
.hy-pf--chat .hy-pf__sec,
.hy-pf--chat > .hy-pf__privacy,
.hy-pf--chat > .hy-pf__actions,
.hy-pf--chat > .hy-pf__after {
  display: none;
}

/* ==========================================================================
   3. 通常フォーム（JS無効時・確認画面のフォールバック）
   ========================================================================== */
.hy-pf {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 0 60px;
  color: var(--sim-text);
  line-height: 1.75;
}

.hy-pf__head {
  padding: 30px 20px 28px;
  margin-bottom: 30px;
  text-align: center;
  background: var(--sim-bg);
  border-radius: 15px;
}

.hy-pf__step {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--sim-blue);
  border-radius: 100px;
}

.hy-pf__ttl {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--sim-navy);
}

.hy-pf__lead {
  margin: 0;
  font-size: 15px;
}

.hy-pf__lead strong {
  font-weight: 700;
  background: linear-gradient(transparent 62%, var(--sim-yellow) 62%);
}

.hy-pf__assure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hy-pf__assure li {
  margin: 0;
  padding: 5px 14px 5px 30px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sim-navy);
  background: #fff
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%233a9d4a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m2 7.4 3.2 3.2L12 3.8'/%3E%3C/svg%3E")
    no-repeat 11px center;
  border: 1px solid #dfe4ec;
  border-radius: 100px;
}

.hy-pf__recap[hidden] {
  display: none;
}

.hy-pf__recap {
  display: inline-block;
  margin: 16px 0 0;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sim-navy);
  background: #fff;
  border: 1px solid #dfe4ec;
  border-radius: 6px;
}

.hy-pf__sec {
  margin-bottom: 34px;
  overflow: hidden;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
}

.hy-pf__sec-ttl {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: var(--sim-blue);
}

.hy-pf__sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: 900;
  color: var(--sim-navy);
  background: var(--sim-yellow);
  border-radius: 50%;
}

.hy-pf__sec-lead {
  margin: 0;
  padding: 12px 20px;
  font-size: 13px;
  color: #56617a;
  background: #f7f9fc;
  border-bottom: 1px solid #dfe4ec;
}

.hy-pf__badge {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #6a7280;
  border-radius: 4px;
}

.hy-pf__row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px dashed #dfe4ec;
}

.hy-pf__row:last-child {
  border-bottom: 0;
}

.hy-pf__row[hidden] {
  display: none;
}

.hy-pf__label {
  flex: 0 0 190px;
  padding-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sim-navy);
}

.hy-pf__field {
  flex: 1 1 auto;
  min-width: 0;
}

.hy-pf__req,
.hy-pf__any {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  vertical-align: 2px;
  border-radius: 3px;
}

.hy-pf__req {
  color: #fff;
  background: var(--sim-red);
}

.hy-pf__any {
  color: #6a7280;
  background: #eef2f8;
}

.hy-pf__note {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #6a7280;
}

.hy-pf__inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.hy-pf__unit {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: #56617a;
}

.hy-pf__file {
  margin: 0 0 8px;
}

.hy-pf input[type="text"],
.hy-pf input[type="email"],
.hy-pf input[type="tel"],
.hy-pf select,
.hy-pf textarea {
  max-width: 100%;
  padding: 11px 13px;
  font-size: 16px; /* iOS の自動ズーム防止 */
  font-family: inherit;
  color: var(--sim-text);
  background: #fff;
  border: 1px solid #c8d0dd;
  border-radius: 8px;
  box-shadow: none;
}

.hy-pf textarea {
  width: 100%;
  line-height: 1.7;
}

.hy-pf select {
  min-width: 200px;
}

.hy-pf input:focus,
.hy-pf select:focus,
.hy-pf textarea:focus {
  outline: none;
  border-color: var(--sim-blue);
  box-shadow: 0 0 0 3px rgba(2, 82, 198, 0.15);
}

.hy-pf .mwform-radio-field,
.hy-pf .mwform-checkbox-field {
  display: inline-block;
  margin: 0 8px 8px 0;
}

.hy-pf .mwform-radio-field label,
.hy-pf .mwform-checkbox-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #c8d0dd;
  border-radius: 8px;
}

.hy-pf .mwform-radio-field label:has(input:checked),
.hy-pf .mwform-checkbox-field label:has(input:checked) {
  font-weight: 700;
  color: #fff;
  background: var(--sim-cyan);
  border-color: var(--sim-cyan);
}

.hy-pf .error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sim-red);
}

.hy-pf__privacy {
  margin-bottom: 24px;
  padding: 20px;
  text-align: center;
  background: var(--sim-bg);
  border-radius: 12px;
}

.hy-pf__privacy p {
  margin: 0;
}

.hy-pf__privacy .hy-pf__note {
  margin-top: 10px;
}

.hy-pf__privacy a {
  color: var(--sim-blue);
  text-decoration: underline;
}

.hy-pf__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hy-pf__actions input[type="submit"],
.hy-pf__actions button {
  min-width: 280px;
  padding: 17px 28px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  cursor: pointer;
  background: var(--sim-blue);
  border: 0;
  border-radius: 100px;
  transition: opacity 0.15s;
}

.hy-pf__actions input[type="submit"]:hover,
.hy-pf__actions button:hover {
  opacity: 0.85;
}

.hy-pf__actions input[value*="修正"],
.hy-pf__actions input[name="submitBack"] {
  min-width: 200px;
  color: var(--sim-navy);
  background: #fff;
  border: 2px solid var(--sim-navy);
}

.hy-pf__actions .is-sending {
  opacity: 0.5;
  cursor: wait;
}

.hy-pf__after {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
  color: #56617a;
}

/* 確認画面 */
.mw_wp_form_confirm .hy-pf__head .hy-pf__lead,
.mw_wp_form_confirm .hy-pf__assure,
.mw_wp_form_confirm .hy-pf__sec-lead,
.mw_wp_form_confirm .hy-pf__note {
  display: none;
}

.mw_wp_form_confirm .hy-pf__row[hidden] {
  display: flex;
}

.mw_wp_form_confirm .hy-pf__field {
  padding-top: 6px;
  font-size: 15px;
  font-weight: 700;
}

/* ==========================================================================
   4. 送信完了ページ
   ========================================================================== */
.hy-done {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 70px;
  text-align: center;
  color: var(--sim-text);
  line-height: 1.75;
}

.hy-done__icon {
  margin-bottom: 18px;
  line-height: 1;
}

.hy-done__ttl {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--sim-navy);
}

.hy-done__lead {
  margin: 0 0 32px;
  font-size: 15.5px;
}

.hy-done__lead strong {
  font-weight: 700;
  background: linear-gradient(transparent 62%, var(--sim-yellow) 62%);
}

.hy-done__box {
  margin-bottom: 26px;
  overflow: hidden;
  text-align: left;
  border: 1px solid #dfe4ec;
  border-radius: 12px;
}

.hy-done__box-ttl {
  margin: 0;
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: var(--sim-blue);
}

.hy-done__flow {
  margin: 0;
  padding: 8px 20px 16px;
  list-style: none;
}

.hy-done__flow li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 13px 0;
  font-size: 14.5px;
  border-bottom: 1px dashed #dfe4ec;
}

.hy-done__flow li:last-child {
  border-bottom: 0;
}

.hy-done__flow span {
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: var(--sim-cyan);
  border-radius: 50%;
}

.hy-done__flow em {
  display: block;
  margin-bottom: 2px;
  font-style: normal;
  font-weight: 700;
  color: var(--sim-navy);
}

.hy-done__note {
  margin: 0 0 30px;
  font-size: 13px;
  color: #6a7280;
}

.hy-done__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
}

.hy-done__btn {
  display: inline-block;
  min-width: 240px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: var(--sim-blue);
  border-radius: 100px;
}

.hy-done__btn:hover {
  color: #fff;
  opacity: 0.85;
}

.hy-done__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--sim-blue);
  text-decoration: underline;
}

/* ==========================================================================
   5. レスポンシブ
   ========================================================================== */
@media screen and (max-width: 782px) {
  .hy-thanks__ttl,
  .hy-done__ttl {
    font-size: 20px;
  }

  .hy-thanks__next {
    padding: 22px 14px 20px;
  }

  .hy-thanks__next-ttl {
    font-size: 18px;
  }

  .hy-chat {
    padding: 20px 12px 24px;
    border-radius: 0;
  }

  .hy-chat__avatar,
  .hy-chat__avatar-sp {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .hy-chat__say {
    gap: 10px;
  }

  .hy-chat__bubble {
    padding: 13px 16px;
    font-size: 14.5px;
  }

  .hy-chat__q {
    padding: 24px 16px 20px;
  }

  .hy-chat__q-tit {
    font-size: 17px;
  }

  .hy-chat .hy-chat__control .mwform-radio-field label,
  .hy-chat .hy-chat__control .mwform-checkbox-field label {
    min-height: 56px;
    padding: 14px 10px;
    font-size: 15px;
  }

  .hy-chat__btn {
    width: 100%;
    min-width: 0;
  }

  .hy-pf__row {
    display: block;
    padding: 16px;
  }

  .hy-pf__label {
    margin-bottom: 10px;
    padding-top: 0;
  }

  .hy-pf select {
    width: 100%;
    min-width: 0;
  }

  .hy-pf .mwform-radio-field,
  .hy-pf .mwform-checkbox-field {
    display: block;
    margin: 0 0 8px;
  }

  .hy-pf .mwform-radio-field label,
  .hy-pf .mwform-checkbox-field label {
    width: 100%;
  }

  .hy-pf__actions input[type="submit"],
  .hy-pf__actions button,
  .hy-done__btn {
    width: 100%;
    min-width: 0;
  }
}

/* 画面が狭いときは選択肢を1列に */
@media screen and (max-width: 560px) {
  .hy-chat .hy-chat__control[data-hy-kind="radio"] .hy-pf__field,
  .hy-chat .hy-chat__control[data-hy-kind="checkbox"] .hy-pf__field {
    grid-template-columns: minmax(0, 1fr);
  }

  .hy-chat .hy-chat__control .mwform-radio-field label,
  .hy-chat .hy-chat__control .mwform-checkbox-field label {
    justify-content: flex-start;
    min-height: 0;
    text-align: left;
  }

  .hy-chat .hy-chat__control[data-hy-kind="checkbox"] .mwform-checkbox-field label {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hy-chat__say,
  .hy-chat__q,
  .hy-chat .hy-chat__control,
  .hy-chat__me,
  .hy-chat .hy-chat__finish {
    transition: none;
  }
}
