
/* =========================================================
   ホームページ案の無料作成：質問ページ（2/4〜4/4＋完了）
   トップのカードで 1/4（サイトの種類）を選んだ状態から始まる
   ========================================================= */
:root {
  --main: #ea9800; --main-deep: #cf8100; --main-pale: #fff4e0; --yellow: #ffd23f;
  --navy: #1e2a44; --ink: #232a3a; --ink-2: #5a6172; --line: #e3ddd2; --bg: #fffaf2; --white: #fff; --err: #d9442b;
  --en: "Oswald", "Noto Sans JP", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: "Noto Sans JP", sans-serif; color: var(--ink); background: var(--main); line-height: 1.8; -webkit-font-smoothing: antialiased; min-height: 100vh; }
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ヘッダー（離脱させないため最小限） */
.hd { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.hd__inner { max-width: 1000px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.hd img { height: 34px; width: auto; }
.hd__tel { text-decoration: none; text-align: right; line-height: 1.2; }
.hd__tel b { display: block; font-family: var(--en); font-size: 20px; letter-spacing: .03em; }
.hd__tel small { font-size: 11px; color: var(--ink-2); }

.wrap { max-width: 1000px; margin: 0 auto; padding: 40px 24px 64px; }
.box { background: var(--white); border-radius: 24px; padding: 32px 36px 36px; box-shadow: 0 8px 0 rgba(150, 80, 0, .3); }

/* 進捗 */
.prog__head { display: flex; align-items: baseline; gap: 14px; }
.prog__num { font-family: var(--en); font-weight: 700; color: var(--main-deep); }
.prog__num b { font-size: 32px; }
.prog__num span { font-size: 16px; color: #9aa0ad; }
.prog__label { font-weight: 900; font-size: 16px; }
.prog__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.prog__bar i { height: 7px; border-radius: 999px; background: #ece8e1; transition: background .3s; }
.prog__bar i.is-done { background: var(--main); }
.prog__bar i.is-now { background: #f3c873; }
.chosen { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.chosen b { background: var(--main-pale); color: var(--main-deep); padding: 2px 12px; border-radius: 999px; }
.chosen a { font-size: 13px; color: var(--ink-2); }

/* ステップ */
.step { padding-top: 28px; }
.step__ttl { font-size: clamp(22px, 3vw, 30px); font-weight: 900; line-height: 1.45; color: var(--navy); }
.field { margin-top: 24px; }
.field__label { display: block; font-weight: 900; font-size: 15px; margin-bottom: 4px; }
.req, .opt { font-size: 11px; font-weight: 700; margin-left: 8px; padding: 1px 8px; border-radius: 4px; vertical-align: 2px; }
.req { background: var(--err); color: var(--white); }
.opt { background: #eceff3; color: var(--ink-2); }
.hint { font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); font-weight: 700; cursor: pointer; transition: all .15s; }
.pill span::before { content: ""; width: 16px; height: 16px; border: 2px solid #b9bec9; border-radius: 4px; background: var(--white); }
.pill input:checked + span { border-color: var(--main); background: var(--main-pale); color: var(--main-deep); }
.pill input:checked + span::before { background: var(--main) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.5'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--main); }
.pill input:focus-visible + span { outline: 3px solid var(--yellow); }
.input, .select { width: 100%; max-width: 640px; height: 54px; border: 2px solid var(--line); border-radius: 12px; padding: 0 16px; background: var(--white); font-size: 15px; }
.input:focus, .select:focus { outline: none; border-color: var(--main); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid2 .input, .grid2 .select { max-width: none; }
.extras { margin-top: 28px; background: var(--bg); border-radius: 16px; padding: 18px 20px; }
.extras p { font-size: 12px; color: var(--ink-2); margin-bottom: 10px; }
.extras .grid2 { gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--main); }
.agree { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; font-size: 14px; font-weight: 700; }
.agree input { width: 18px; height: 18px; accent-color: var(--main); }
.error { color: var(--err); font-size: 13px; font-weight: 700; margin-top: 16px; text-align: center; }

/* ボタン */
.actions { margin-top: 32px; text-align: center; }
.next { width: 100%; max-width: 460px; height: 64px; border: 0; border-radius: 14px; background: var(--main); color: var(--white); font-weight: 900; font-size: 18px; cursor: pointer; box-shadow: 0 5px 0 var(--main-deep); transition: transform .1s, box-shadow .1s; }
.next:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--main-deep); }
.next--final { max-width: 620px; background: var(--navy); box-shadow: 0 5px 0 #0d1424; }
.back { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--ink-2); background: none; border: 0; text-decoration: underline; cursor: pointer; }

/* 完了 */
.done { text-align: center; padding: 24px 0 8px; }
.done__icon { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; background: var(--main); display: grid; place-items: center; }
.done__icon svg { width: 36px; }
.done h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; margin-top: 18px; }
.done p { color: var(--ink-2); margin-top: 12px; }
.done ol { text-align: left; max-width: 520px; margin: 24px auto 0; padding: 20px 24px 20px 44px; background: var(--bg); border-radius: 16px; font-weight: 700; }
.done a { display: inline-block; margin-top: 24px; font-weight: 700; color: var(--main-deep); }

.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; color: var(--white); font-size: 13px; font-weight: 700; }
.trust li::before { content: "✓ "; }
ul.trust { list-style: none; padding: 0; }

@media (max-width: 768px) {
  .hd__inner { padding: 0 16px; height: 60px; }
  .hd img { height: 28px; }
  .wrap { padding: 20px 12px 40px; }
  .box { padding: 22px 16px 26px; border-radius: 18px; }
  .prog__num b { font-size: 26px; }
  .prog__label { font-size: 14px; }
  .pill span { padding: 10px 16px; font-size: 14px; }
  .grid2 { grid-template-columns: 1fr; }
  .next { height: 58px; font-size: 16px; }
}
/* 入力を見守る案内役 */
.prog__intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.prog__intro .prog__head { flex-wrap: wrap; gap: 4px 14px; min-width: 0; }
.prog__mascot { width: 60px; height: 72px; object-fit: contain; flex-shrink: 0; }
@media (max-width: 768px) {
  .prog__intro { gap: 12px; }
  .prog__mascot { width: 48px; height: 58px; }
  .prog__intro .prog__head { column-gap: 10px; }
}
.prog__guide { display: flex; align-items: center; gap: 12px; }
.prog__speech { position: relative; max-width: 220px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; line-height: 1.7; color: var(--ink-2); }
.prog__speech::after { content: ''; position: absolute; right: -5px; top: 50%; width: 8px; height: 8px; background: white; border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); }
@media (max-width: 768px) {
  .prog__intro { flex-wrap: wrap; }
  .prog__guide { width: 100%; justify-content: flex-end; gap: 10px; }
  .prog__speech { max-width: 230px; padding: 8px 12px; }
}

.agree { flex-wrap: wrap; }
.agree label { display: flex; align-items: center; gap: 8px; }
.privacy-open { border: 0; padding: 8px 4px; background: none; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.privacy-modal { width: min(720px, calc(100% - 24px)); max-height: 85vh; max-height: 85dvh; padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: white; }
.privacy-modal[open] { display: flex; flex-direction: column; }
.privacy-modal::backdrop { background: rgba(20,28,44,.6); }
.privacy-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.privacy-modal__head h2 { font-size: 19px; }
.privacy-modal__close { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; white-space: nowrap; }
.privacy-modal__body { padding: 24px; overflow-y: auto; overscroll-behavior: contain; font-size: 14px; min-height: 0; }
.privacy-modal__body h3 { font-size: 16px; margin: 24px 0 8px; }
.privacy-modal__body ul { padding-left: 24px; }
.privacy-modal__body p + p { margin-top: 12px; }
.privacy-modal :focus-visible, .privacy-open:focus-visible { outline: 3px solid #16658f; outline-offset: 2px; }
@media(max-width: 480px) { .privacy-modal__head { padding: 14px 16px; gap: 8px; } .privacy-modal__head h2 { font-size: 16px; } .privacy-modal__body { padding: 18px; } }
