/* お問い合わせフォーム（style.css, visual.css の後に読み込む） */
.contact-form-wrap { position: relative; }
.contact-form, .cf-done { max-width: 820px; margin-inline: auto; padding: clamp(22px, 5vw, 52px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px #30276522; }
.contact-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.contact-form [hidden], .cf-done[hidden] { display: none !important; }
.cf-categories legend { width: 100%; margin-bottom: 18px; font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 900; text-align: center; }
.cf-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cf-choice { position: relative; display: grid; }
.cf-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cf-choice span { display: grid; place-items: center; min-height: 84px; padding: 10px 6px; border: 2px solid var(--line); border-radius: 10px; font-weight: 700; line-height: 1.5; text-align: center; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.cf-choice span:hover { border-color: var(--brand-light); }
.cf-choice input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--mint); }
.cf-choice input:focus-visible + span { outline: 3px solid #81aa27; outline-offset: 3px; }
.cf-body { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.cf-field { margin-bottom: 22px; }
.cf-field label, .cf-field legend { display: block; margin-bottom: 7px; font-weight: 700; }
.cf-tag { display: inline-block; margin-left: 10px; padding: 0 8px; border-radius: 4px; background: var(--surface); color: var(--muted); font-size: .72rem; font-weight: 700; vertical-align: 2px; }
.cf-tag.req { background: var(--brand); color: #fff; }
.cf-field input:not([type=checkbox]), .cf-field textarea { width: 100%; padding: 12px 14px; border: 1px solid #bdb7e0; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.6; }
.cf-field textarea { resize: vertical; }
.cf-field input:focus, .cf-field textarea:focus { outline: 3px solid #5040d855; border-color: var(--brand); }
.cf-field input[aria-invalid="true"]:not([type=checkbox]), .cf-field textarea[aria-invalid="true"] { border-color: #b3261e; background: #fff6f5; }
.cf-note, .cf-status { margin: 6px 0 0; color: var(--muted); font-size: .84rem; }
.cf-status:empty { display: none; }
.cf-company { position: relative; }
.cf-suggest { position: absolute; z-index: 20; left: 0; right: 0; max-height: 340px; overflow-y: auto; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--brand); border-radius: 8px; box-shadow: 0 18px 40px #30276540; }
.cf-suggest li { padding: 10px 12px; border-radius: 6px; cursor: pointer; line-height: 1.5; }
.cf-suggest li small { display: block; color: var(--muted); font-size: .8rem; }
.cf-suggest li:hover, .cf-suggest li[aria-selected="true"] { background: var(--surface); }
.cf-topics { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.cf-topics legend { float: left; grid-column: 1 / -1; width: 100%; }
.cf-topics label { align-self: start; display: flex; align-items: center; gap: 9px; margin: 0; padding: 5px 0; font-weight: 500; cursor: pointer; }
.cf-topics input, .cf-consent input { flex: none; width: 18px; height: 18px; accent-color: var(--brand); }
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-consent { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 28px 0 18px; cursor: pointer; }
.cf-consent a { color: var(--brand); text-decoration: underline; }
.cf-error { margin-bottom: 16px; padding: 12px 16px; border-radius: 8px; background: #fff0ef; color: #8c1d18; font-weight: 700; text-align: center; }
.cf-submit { display: flex; width: min(360px, 100%); min-height: 60px; margin-inline: auto; border-radius: 999px; font: inherit; font-weight: 900; cursor: pointer; }
.cf-submit:disabled { opacity: .6; cursor: progress; }
.cf-done { text-align: center; }
.contact-phone .phone { display: block; margin: 8px 0; font: 700 clamp(2.2rem, 4.4vw, 3.6rem)/1.15 var(--display); letter-spacing: -.04em; }
.policy { max-width: 820px; }
.policy h2 { margin: 36px 0 10px; font-size: 1.25rem; }
.policy h2:first-child { margin-top: 0; }
@media (max-width: 680px) { .cf-topics { grid-template-columns: 1fr; } .cf-choices { grid-template-columns: repeat(2, 1fr); } .cf-choice span { min-height: 72px; font-size: .92rem; } }
.contact-phone h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.contact-form fieldset.cf-field { margin-bottom: 22px; }
.policy a { color: var(--brand); text-decoration: underline; overflow-wrap: anywhere; }
.policy .policy-date { margin-top: 36px; text-align: right; }
