/* youtown.jp /contact 相談フォーム（2026-09-21 全面整理）
   目的：スマホで迷わず送れる。画面に出す文字を減らし、写真→内容→返信先の3ステップにする。
   既存の .pt-form / .pt-field / .pt-details の見た目を土台にし、このページだけ上書きする。 */

body:has(.pt-nav) .pt-section.cf-section { padding: 36px 0 64px; }
.cf-section .pt-container-narrow { max-width: 720px; }

.cf-h1 { margin: .35rem 0 .9rem; }
.cf-br { display: none; }
@media (max-width: 480px) { .cf-br { display: inline; } }

/* 条件チップ（初回無料・当日〜翌日返信 など） */
.cf-chips { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--pt-border); color: var(--pt-heading); font-size: 13px; font-weight: 700; }
.cf-chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pt-copper); }

/* フォーム本体 */
.cf-form { padding: clamp(1.1rem, 4vw, 2rem); }
.cf-step { padding: 0 0 1.4rem; margin: 0 0 1.4rem; border-bottom: 1px solid var(--pt-border); }
.cf-step-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.cf-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--pt-deep); color: #fff; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.cf-step-title { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--pt-heading); line-height: 1.4; }
.cf-step-title label { font: inherit; color: inherit; margin: 0; display: inline; }
.cf-step-head .pt-req, .cf-step-head .pt-opt { margin-left: 0; }

.cf-field { margin-bottom: 1rem; }
.cf-field:last-child { margin-bottom: 0; }
.cf-field label { font-size: .95rem; margin-bottom: .35rem; }
.cf-hint { font-size: .82rem; }
.cf-form .pt-field textarea { min-height: 120px; }

/* 写真の添付：大きなタップ領域 */
.cf-file-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cf-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cf-field label.cf-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 108px; padding: 16px; margin: 0; border: 2px dashed #b9c6bf; border-radius: var(--pt-radius); background: #fbfcfa; color: var(--pt-heading); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.cf-drop:hover, .cf-drop:active { border-color: var(--pt-copper); background: #fff; }
.cf-field:has(.cf-file-input:focus-visible) .cf-drop { outline: 3px solid rgba(23, 80, 72, .35); outline-offset: 2px; }
.cf-drop-icon { line-height: 1; color: var(--pt-copper); }
.cf-drop-icon svg { width: 30px; height: 30px; display: block; }
.cf-drop-main { font-weight: 800; font-size: 1rem; }
.cf-drop-sub { font-size: .8rem; color: var(--pt-muted); }
.cf-drop.has-files { border-style: solid; border-color: var(--pt-deep-2); background: #fff; }

/* よくある内容チップ */
.cf-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: .7rem; }
.cf-quick-btn { appearance: none; border: 1px solid var(--pt-border-strong, #b9c6bf); background: #fff; color: var(--pt-heading); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; line-height: 1.3; cursor: pointer; min-height: 36px; transition: background .15s, border-color .15s; }
.cf-quick-btn:hover { border-color: var(--pt-copper); color: var(--pt-copper); }
.cf-quick-btn.is-used { background: var(--pt-paper-alt); border-color: var(--pt-deep-2); color: var(--pt-deep); }
.cf-quick-btn.is-used::before { content: "✓ "; }

/* 折りたたみ（任意項目） */
.cf-more { margin: .25rem 0 0; }
.cf-more > summary { list-style: none; display: inline-flex; align-items: center; gap: .5rem; padding: 8px 0; color: var(--pt-deep-2); font-weight: 700; font-size: .92rem; cursor: pointer; }
.cf-more > summary::-webkit-details-marker { display: none; }
.cf-more > summary::before { content: "＋"; color: var(--pt-copper); font-weight: 800; }
.cf-more[open] > summary::before { content: "－"; }
.cf-more > summary .pt-opt { margin-left: 0; }
.cf-more > *:not(summary) { margin-top: .6rem; }
.cf-more-detail { padding: 0 0 1.2rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--pt-border); }
.cf-row { gap: 1rem; }

/* 同意・送信 */
.cf-agree { margin: 0 0 1rem; }
.cf-agree .pt-check label { font-weight: 700; margin: 0; }
.cf-agree .pt-check input[type="checkbox"] { width: 22px; height: 22px; margin-top: .2rem; }
.cf-submit { min-height: 56px; font-size: 1.05rem; }
.cf-after { margin: .8rem 0 0; font-size: .85rem; color: var(--pt-muted); text-align: center; }
.cf-mail { margin: 1.2rem 0 0; font-size: .88rem; color: var(--pt-muted); text-align: center; }

/* 確認事項（ページ最下部、既定で閉じる） */
.cf-terms { margin-top: 1.4rem; }
.cf-terms > summary { font-size: .95rem; }
.cf-terms .pt-list { margin: .5rem 0 0; font-size: .9rem; }
.cf-terms .pt-note-title { margin-bottom: .2rem; }

@media (max-width: 680px) {
  .cf-form { border-radius: 12px; }
  .cf-step-title { font-size: 1.05rem; }
}

/* 受付完了ページ（2026-09-21） */
.cf-receipt { margin: 0 0 .6rem; font-size: 1rem; color: var(--pt-muted); }
.cf-receipt strong { display: inline-block; margin-left: .35rem; padding: .15rem .7rem; border-radius: 8px; background: #fff; border: 1px solid var(--pt-border); color: var(--pt-heading); font-size: 1.25rem; letter-spacing: .04em; }
.cf-lead { margin: 0 0 1.2rem; font-weight: 700; color: var(--pt-heading); }
.cf-done { padding: clamp(1rem, 4vw, 1.6rem); }
.cf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.cf-steps li { display: flex; align-items: flex-start; gap: .7rem; font-weight: 600; color: var(--pt-heading); line-height: 1.6; }
.cf-steps .cf-num { width: 28px; height: 28px; font-size: 14px; margin-top: 2px; }
.cf-done .cf-after { text-align: left; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--pt-border); }
.cf-actions { margin: 1.4rem 0 0; }
