/* yao-yorozu inquiry form — サイトCTA色 #f37b00（暖色オレンジ）に統一 */

.yo-inquiry-wrap {
  --yo-orange: #f37b00;
  --yo-orange-dark: #e36f00;
  --yo-orange-darker: #c95f00;
  --yo-orange-soft: #fff7ef;
  --yo-orange-border: #ffd3ad;
  --yo-brown: #735636;
  --yo-text: #1f1a14;
  --yo-text-soft: #6b6259;
  --yo-line: #e5dfd6;
  --yo-bg: #fffaf5;
  --yo-error: #d92d20;
  --yo-error-bg: #fef3f2;
  --yo-success: #027a48;

  max-width: 720px;
  margin: 32px auto;
  padding: 0;
  background: #fff;
  border: 1px solid var(--yo-orange-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(243, 123, 0, 0.10), 0 2px 8px rgba(0,0,0,0.04);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--yo-text);
  scroll-margin-top: 80px;
  box-sizing: border-box;
}
.yo-inquiry-wrap *, .yo-inquiry-wrap *::before, .yo-inquiry-wrap *::after { box-sizing: border-box; }

/* ===== ヘッダー ===== */
.yo-inquiry-head {
  background: linear-gradient(180deg, var(--yo-orange-soft) 0%, #fff 100%);
  padding: 28px 28px 22px;
  text-align: center;
  border-bottom: 1px solid var(--yo-orange-border);
}
.yo-inquiry-pill {
  display: inline-block;
  background: var(--yo-orange);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(243, 123, 0, 0.3);
}
.yo-inquiry-title {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--yo-text);
  line-height: 1.3;
}
.yo-inquiry-title__sub {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--yo-orange-darker);
  margin-bottom: 2px;
}
.yo-inquiry-title__main {
  display: block;
  font-size: 24px;
  font-weight: 900;
}
.yo-inquiry-lead {
  font-size: 14px;
  color: var(--yo-text-soft);
  margin: 0 0 16px;
  line-height: 1.7;
}
.yo-inquiry-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}
.yo-inquiry-trust li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--yo-orange-border);
  color: var(--yo-text);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}
.yo-inquiry-trust__icon {
  color: var(--yo-orange);
  font-weight: 900;
}

/* ===== フォーム本体 ===== */
.yo-inquiry-form {
  padding: 24px 28px 28px;
  margin: 0;
}

.yo-section {
  border: none;
  margin: 0 0 22px;
  padding: 0;
}
.yo-section__legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--yo-text);
  padding: 0;
  margin-bottom: 14px;
  width: 100%;
  border-bottom: 2px solid var(--yo-orange-border);
  padding-bottom: 8px;
}
.yo-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--yo-orange);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}
.yo-section__opt {
  margin-left: auto;
  background: #ddd6cc;
  color: var(--yo-text);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 4px;
}
.yo-section__note {
  font-size: 13px;
  color: var(--yo-text-soft);
  margin: 0 0 12px;
  background: var(--yo-orange-soft);
  border-left: 3px solid var(--yo-orange);
  padding: 8px 12px;
  border-radius: 4px;
}

.yo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.yo-field { display: flex; flex-direction: column; }
.yo-field--full { grid-column: 1 / -1; }

.yo-field label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--yo-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.yo-req {
  display: inline-block;
  background: #d92d20;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
.yo-opt {
  display: inline-block;
  background: #ddd6cc;
  color: #5a5048;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 3px;
}
/* hidden 属性で必須/任意バッジを切り替えるための specificity 対策 */
.yo-req[hidden], .yo-opt[hidden] { display: none; }
.yo-help {
  font-size: 12px;
  color: var(--yo-text-soft);
  margin: 5px 0 0;
}

.yo-field input[type=text],
.yo-field input[type=email],
.yo-field input[type=tel],
.yo-field input[type=date],
.yo-field select,
.yo-field textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  line-height: 1.4;
  border: 1.5px solid var(--yo-line);
  border-radius: 10px;
  background: #fff;
  color: var(--yo-text);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}
.yo-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path fill='%23735636' d='M7 9L0 0h14z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.yo-field input[type=date] {
  cursor: pointer;
}
.yo-field input:hover,
.yo-field select:hover,
.yo-field textarea:hover {
  border-color: var(--yo-orange-border);
}
.yo-field input:focus,
.yo-field select:focus,
.yo-field textarea:focus {
  outline: none;
  border-color: var(--yo-orange);
  box-shadow: 0 0 0 4px rgba(243, 123, 0, 0.15);
  background-color: #fffefb;
}
.yo-field input[aria-invalid=true],
.yo-field select[aria-invalid=true],
.yo-field textarea[aria-invalid=true] {
  border-color: var(--yo-error);
  background-color: var(--yo-error-bg);
}
.yo-field textarea {
  resize: vertical;
  min-height: 84px;
}

/* ===== 連絡方法タブ ===== */
.yo-contact-pref { margin-top: 4px; }
.yo-field__pseudolabel {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--yo-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.yo-contact-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.yo-contact-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 14px 42px;
  background: #fff;
  border: 2px solid var(--yo-line);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  color: var(--yo-text-soft);
  transition: border-color 0.15s, background-color 0.15s, color 0.15s, box-shadow 0.15s;
  user-select: none;
}
.yo-contact-tab input[type=radio] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}
.yo-contact-tab::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--yo-line);
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.15s, background-color 0.15s;
}
.yo-contact-tab::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 19px;
  transform: translateY(-50%) scale(0);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
.yo-contact-tab.is-active {
  background: var(--yo-orange-soft);
  border-color: var(--yo-orange);
  color: var(--yo-text);
  box-shadow: 0 4px 12px rgba(243, 123, 0, 0.18);
}
.yo-contact-tab.is-active::before {
  background: var(--yo-orange);
  border-color: var(--yo-orange);
}
.yo-contact-tab.is-active::after {
  transform: translateY(-50%) scale(1);
}
.yo-contact-tab:hover:not(.is-active) {
  border-color: var(--yo-orange-border);
  color: var(--yo-text);
}
.yo-contact-tab:focus-within {
  outline: none;
  box-shadow: 0 0 0 4px rgba(243, 123, 0, 0.18);
}
.yo-contact-tab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(243, 123, 0, 0.10);
  color: var(--yo-orange);
  flex-shrink: 0;
}
.yo-contact-tab.is-active .yo-contact-tab__icon {
  background: var(--yo-orange);
  color: #fff;
}
.yo-contact-tab__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}
.yo-contact-tab__main {
  font-size: 15px;
  font-weight: 800;
}
.yo-contact-tab__sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--yo-text-soft);
}
.yo-contact-tab.is-active .yo-contact-tab__sub {
  color: var(--yo-orange-darker);
}
.yo-contact-help {
  font-size: 12px;
  color: var(--yo-text-soft);
  margin: 6px 0 0;
}

/* ===== 希望日リスト ===== */
.yo-pref-list {
  background: var(--yo-bg);
  border: 1px solid var(--yo-orange-border);
  border-radius: 12px;
  padding: 4px 14px;
}
.yo-pref-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--yo-orange-border);
}
.yo-pref-row:last-child { border-bottom: none; }
.yo-pref-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--yo-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.yo-pref-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
}
/* grid子要素のデフォルト min-width:auto を抑え、長いoptionで広がらないように */
.yo-pref-inputs > input,
.yo-pref-inputs > select {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  text-overflow: ellipsis;
}
.yo-pref-row .yo-error {
  grid-column: 1 / -1;
  margin-top: 0;
}

/* ===== エラー表示 ===== */
.yo-error {
  color: var(--yo-error);
  font-size: 13px;
  font-weight: 700;
  margin: 6px 0 0;
}
.yo-error:empty { display: none; }

/* ===== 同意 ===== */
.yo-consent-block {
  background: var(--yo-bg);
  border: 1px solid var(--yo-orange-border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.yo-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
  font-weight: 600;
  color: var(--yo-text);
}
.yo-consent input[type=checkbox] {
  width: 22px;
  height: 22px;
  margin: 0;
  margin-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--yo-orange);
}
.yo-consent a {
  color: var(--yo-brown);
  text-decoration: underline;
  font-weight: 700;
}
.yo-consent a:hover {
  color: var(--yo-orange-darker);
}

/* ===== 送信ボタン ===== */
.yo-inquiry-actions {
  text-align: center;
  margin-top: 8px;
}
.yo-inquiry-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 28px;
  background: linear-gradient(180deg, #ff9420 0%, var(--yo-orange) 50%, var(--yo-orange-dark) 100%);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow:
    0 12px 24px rgba(243, 123, 0, 0.40),
    0 2px 4px rgba(243, 123, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.1s ease, box-shadow 0.15s, opacity 0.15s, background 0.15s;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  font-family: inherit;
  position: relative;
}
.yo-inquiry-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 30px rgba(243, 123, 0, 0.45),
    0 4px 8px rgba(243, 123, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.yo-inquiry-submit:active {
  transform: translateY(1px);
  box-shadow:
    0 6px 14px rgba(243, 123, 0, 0.35),
    inset 0 2px 4px rgba(0,0,0,0.1);
}
.yo-inquiry-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.yo-inquiry-submit__arrow {
  font-size: 22px;
  font-weight: 900;
  transition: transform 0.15s;
}
.yo-inquiry-submit:hover .yo-inquiry-submit__arrow {
  transform: translateX(4px);
}

.yo-inquiry-guarantee {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.yo-inquiry-guarantee li {
  font-size: 13px;
  color: var(--yo-text-soft);
  position: relative;
  padding-left: 20px;
  text-align: left;
  display: inline-block;
}
.yo-inquiry-guarantee li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--yo-orange);
  font-weight: 900;
}

/* ===== 状態表示 ===== */
.yo-inquiry-status {
  margin-top: 16px;
  font-size: 14px;
}
.yo-inquiry-status.is-error {
  color: var(--yo-error);
  background: var(--yo-error-bg);
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #fdcfca;
  font-weight: 700;
}

.yo-inquiry-form.is-submitting .yo-inquiry-submit {
  pointer-events: none;
  opacity: 0.7;
}
.yo-inquiry-form.is-submitting .yo-inquiry-submit__arrow { display: none; }
.yo-inquiry-form.is-submitting .yo-inquiry-submit::after {
  content: '';
  display: inline-block;
  width: 18px; height: 18px;
  border: 3px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: yoSpin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes yoSpin { to { transform: rotate(360deg); } }

.yo-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ===== モバイル（高齢者家族向けに大きめ） ===== */
@media (max-width: 640px) {
  .yo-inquiry-wrap {
    margin: 16px 0;
    border-radius: 12px;
    border-left: none;
    border-right: none;
    box-shadow: 0 4px 12px rgba(243, 123, 0, 0.10);
    font-size: 17px;
    line-height: 1.7;
  }
  .yo-inquiry-head { padding: 24px 18px 20px; }
  .yo-inquiry-form { padding: 22px 18px 24px; }

  .yo-inquiry-pill { font-size: 14px; padding: 6px 18px; }
  .yo-inquiry-title__main { font-size: 24px; }
  .yo-inquiry-title__sub { font-size: 15px; }
  .yo-inquiry-lead { font-size: 15px; line-height: 1.75; }

  .yo-inquiry-trust { gap: 6px 8px; }
  .yo-inquiry-trust li { font-size: 13px; padding: 5px 11px; font-weight: 800; }

  .yo-section { margin-bottom: 26px; }
  .yo-section__legend {
    font-size: 18px;
    padding-bottom: 10px;
    margin-bottom: 16px;
  }
  .yo-section__num { width: 30px; height: 30px; font-size: 15px; }
  .yo-section__note { font-size: 14px; padding: 10px 13px; }

  .yo-grid { grid-template-columns: 1fr; gap: 16px; }
  .yo-field label { font-size: 16px; margin-bottom: 8px; }
  .yo-help { font-size: 13px; }
  .yo-req, .yo-opt { font-size: 12px; padding: 3px 9px; }

  .yo-field input[type=text],
  .yo-field input[type=email],
  .yo-field input[type=tel],
  .yo-field input[type=date],
  .yo-field select,
  .yo-field textarea {
    padding: 14px 14px;
    font-size: 17px;
    border-radius: 11px;
  }
  .yo-field textarea { min-height: 96px; }

  .yo-pref-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 0;
  }
  .yo-pref-list { padding: 0 14px; }
  .yo-pref-label { font-size: 16px; }

  .yo-consent-block { padding: 16px; }
  .yo-consent { font-size: 15.5px; line-height: 1.7; gap: 12px; }
  .yo-consent input[type=checkbox] { width: 26px; height: 26px; margin-top: 2px; }

  .yo-error { font-size: 14px; }

  .yo-inquiry-submit {
    font-size: 19px;
    padding: 20px 22px;
    max-width: none;
    border-radius: 12px;
  }
  .yo-inquiry-submit__arrow { font-size: 22px; }

  .yo-inquiry-guarantee li { font-size: 14px; padding-left: 22px; }

  .yo-field__pseudolabel { font-size: 16px; }
  .yo-contact-tabs { grid-template-columns: 1fr; gap: 10px; }
  .yo-contact-tab {
    padding: 16px 14px 16px 46px;
  }
  .yo-contact-tab__main { font-size: 16px; }
  .yo-contact-tab__sub { font-size: 12px; }
  .yo-contact-help { font-size: 13px; }
}

@media (max-width: 380px) {
  .yo-inquiry-title__main { font-size: 22px; }
  .yo-inquiry-trust li { font-size: 12px; padding: 4px 9px; }
  .yo-inquiry-submit { font-size: 18px; padding: 18px 18px; }
}

/* ===== TCDテーマ干渉対策 ===== */
.yo-inquiry-wrap a { box-shadow: none; }
.yo-inquiry-wrap button { font-family: inherit; }
.yo-inquiry-wrap fieldset { min-width: 0; }
.yo-inquiry-wrap .yo-grid > *,
.yo-inquiry-wrap .yo-pref-row,
.yo-inquiry-wrap .yo-pref-list { min-width: 0; }
.yo-inquiry-wrap input, .yo-inquiry-wrap select, .yo-inquiry-wrap textarea { max-width: 100%; }

/* === ご検討状況 (urgency_level Radio) === added 2026-05-04 */
.yo-urgency{display:flex;flex-direction:column;gap:8px;}
.yo-urgency__option{
  display:flex;flex-direction:column;gap:2px;
  padding:14px 16px;
  border:2px solid #d4d4d4;border-radius:8px;
  cursor:pointer;transition:all .15s ease;
  background:#fff;
}
.yo-urgency__option:hover{border-color:#1c8a3f;background:#f5fbf7;}
.yo-urgency__option:has(input:checked){border-color:#1c8a3f;background:#e8f5ec;box-shadow:0 0 0 1px #1c8a3f inset;}
.yo-urgency__option input[type="radio"]{position:absolute;opacity:0;pointer-events:none;}
.yo-urgency__main{font-weight:700;font-size:15px;color:#222;}
.yo-urgency__sub{font-size:12px;color:#666;}
.yo-urgency__option:has(input:checked) .yo-urgency__main{color:#1c8a3f;}
@media (min-width:769px){
  .yo-urgency{flex-direction:row;}
  .yo-urgency__option{flex:1 1 0;text-align:center;align-items:center;}
}
