/* 問い合わせフォーム — template.html のトークン変数を利用（--paper など）。 */
[hidden]{display:none !important;}

.inq{margin-top:22px;background:var(--paper-raised);border:1px solid var(--line);border-radius:12px;padding:22px 20px;}
.inq-demo{margin:0 0 18px;padding:11px 14px;border-radius:3px;font-size:.8rem;background:var(--ok-bg);color:var(--ok);border:1px solid var(--ok);}
.inq-demo.warn{background:var(--warn-bg);color:var(--warn);border-color:var(--warn);}

.inq-step{border:none;border-top:1px solid var(--line);margin:8px 0 0;padding:24px 0 6px;}
.inq-step:first-of-type{border-top:none;padding-top:0;}
.inq-step legend{font-size:.95rem;font-weight:600;letter-spacing:.03em;color:var(--slate-deep);padding:0;margin-bottom:15px;}
.inq-branch legend{color:var(--gold-deep);}

.inq-field{margin-bottom:14px;}
.inq-field > label,.inq-label{display:block;font-size:.84rem;margin-bottom:6px;}
.req{display:inline-block;font-size:max(.75rem,12px);line-height:1.4;background:var(--gold);color:#1c1710;padding:2px 8px;border-radius:4px;margin-left:6px;vertical-align:middle;}
.opt{display:inline-block;font-size:max(.75rem,12px);line-height:1.4;background:var(--line);color:var(--ink-soft);padding:2px 8px;border-radius:4px;margin-left:6px;vertical-align:middle;}

.inq input[type=text],.inq input[type=tel],.inq input[type=email],.inq select,.inq textarea{
  width:100%;box-sizing:border-box;padding:11px 12px;font:inherit;font-size:16px;
  background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:8px;
}
.inq textarea{resize:vertical;min-height:96px;}
.inq select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8 0 0h12z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px;}
.inq input:focus-visible,.inq select:focus-visible,.inq textarea:focus-visible{outline:2px solid var(--focus);outline-offset:1px;border-color:var(--focus);}
.inq [aria-invalid="true"]{border-color:var(--err);}

.inq-choice{display:flex;flex-wrap:wrap;gap:8px;}
.inq-choice label{display:inline-flex;align-items:center;gap:7px;font-size:.86rem;border:1px solid var(--line);border-radius:10px;padding:9px 13px;background:var(--paper);cursor:pointer;}
.inq-choice input{accent-color:var(--slate);width:16px;height:16px;}
.inq-choice label:focus-within{outline:2px solid var(--focus);outline-offset:1px;}

.inq-err{color:var(--err);font-size:max(.78rem,12px);margin:5px 0 0;min-height:0;}
.inq-err:empty{display:none;}
.inq-hint{color:var(--ink-soft);font-size:max(.78rem,12px);margin:5px 0 0;}

.inq-consent{margin:18px 0 6px;padding-top:16px;border-top:1px solid var(--line);}
.inq-consent label{display:flex;align-items:flex-start;gap:10px;font-size:.82rem;color:var(--ink-soft);}
.inq-consent input{margin-top:4px;flex:none;width:16px;height:16px;accent-color:var(--slate);}

.inq-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}

#inqSubmit{margin-top:16px;width:100%;justify-content:center;scroll-margin-bottom:88px;}
#inqSubmit:disabled{opacity:.55;cursor:not-allowed;}
.inq-status{margin:12px 0 0;font-size:.85rem;white-space:pre-wrap;}
.inq-status.ok{color:var(--ok);}
.inq-status.err{color:var(--err);}
.inq-fallback{margin:12px 0 0;font-size:.78rem;color:var(--ink-soft);}
.inq-fallback a{color:var(--slate-deep);}

@media (max-width:560px){
  .inq{padding:14px 12px;margin-top:14px;line-height:1.55;}
  .inq-step{margin-top:10px;padding:12px 0 0;min-width:0;}
  .inq-step legend{margin-bottom:8px;font-size:15px;}
  .inq-field{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:4px 8px;margin-bottom:8px;min-width:0;}
  .inq-field>label,.inq-field>.inq-label{margin:0;font-size:13px;line-height:1.5;}
  .inq-field>.inq-err,.inq-field>.inq-hint{grid-column:2;}
  .inq input[type=text],.inq input[type=tel],.inq input[type=email],.inq select{min-width:0;min-height:44px;padding:8px;font-size:16px;}
  .inq select{padding-right:25px;background-position:right 8px center;}
  .inq-choice{gap:6px;}
  .inq-choice label{flex:1 1 44%;min-height:44px;padding:6px 8px;font-size:13px;line-height:1.45;}
  .inq-field .inq-choice{flex-wrap:nowrap;}
  .inq-field .inq-choice label{flex:1 1 auto;justify-content:center;padding-inline:5px;gap:4px;}
  .inq textarea{height:76px;min-height:76px;padding:9px;font-size:16px;}
  .inq .req,.inq .opt{padding:1px 5px;font-size:11px;margin-left:3px;}
  .inq-demo{margin-bottom:12px;padding:8px 10px;font-size:12px;line-height:1.5;}
  .inq-consent{margin-top:12px;padding-top:12px;}
  .inq-consent label{font-size:12px;line-height:1.6;gap:8px;}
  #inqSubmit{margin-top:12px;min-height:46px;}
  .inq-status:empty{display:none;}
}

.subpage-intro{padding:40px clamp(20px,5vw,56px) 28px;background:var(--paper-raised);border-bottom:1px solid var(--line)}
.subpage-intro .wrap{max-width:1120px;margin-inline:auto;min-width:0}
.subpage-intro h1{font-size:clamp(2rem,5vw,3.5rem);line-height:1.25;margin:8px 0 0;color:var(--slate-deep);overflow-wrap:anywhere}
.subpage-breadcrumb{font-size:.78rem;color:var(--ink-soft);margin:0 0 22px}
.subpage-breadcrumb a{color:inherit}
@media(max-width:720px){.subpage-intro{padding:30px 20px 24px}.subpage-intro h1{font-size:clamp(2rem,8vw,2.8rem)}}

/* 購入ページ：販売住戸と相談をページ冒頭から探せる構成 */
@media(min-width:861px){#buy .wrap.split{grid-template-columns:1.1fr .9fr;gap:clamp(32px,4vw,56px)}}
.buy-shortcuts .btn{min-height:48px}
.inq-fixed-purpose{display:inline-block;padding:7px 15px;border:1px solid var(--gold);border-radius:999px;background:var(--paper);color:var(--slate-deep);font-weight:700}
.inq-fixed-purpose+.inq-hint a{display:inline-flex;align-items:center;min-height:44px;margin-left:5px;color:var(--gold-deep);text-underline-offset:4px}
.buy-support .reasons-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;background:none;border:0}
.buy-support .reason{border:1px solid var(--line);border-radius:10px;min-width:0}
@media(max-width:860px){.buy-support .reasons-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.buy-shortcuts{display:grid;grid-template-columns:1fr}.buy-shortcuts .btn{justify-content:center}.buy-support .reasons-grid{grid-template-columns:1fr}}
