/* 仮の見た目。正本は Figma「22 診断LP案（2026-12-01）」。オーナーの手直しのあと、それに合わせて直す。
   色と書体は右往左往のデザインの決まり（uousaou-site docs/design-system.md）に合わせた。線は使わない。 */
:root {
  --yellow: #FFEE00; --text: #1A1A1A; --text-2: #4D4D4D; --text-3: #666666;
  --bg: #FFFFFF; --subtle: #F2F2F2; --coral: #B0423C; --good: #197A4B; --bad: #B0423C; --warn: #7D6F00;
  --r-box: 16px; --r-btn: 8px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', sans-serif; font-size: 16px; line-height: 1.7; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #000; color: var(--yellow); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: none; background: #000; color: var(--yellow); }

.hd { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.hd__logo { font-weight: 700; text-decoration: none; font-size: 18px; }
.hd__name { font-weight: 700; font-size: 14px; }

.hero { background: var(--yellow); padding: 72px 0; }
.eyebrow { font-weight: 700; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 5vw, 45px); line-height: 1.4; margin: 0 0 16px; }
h2 { font-size: clamp(24px, 3.5vw, 36px); line-height: 1.4; margin: 0 0 32px; }
h3 { font-size: 20px; line-height: 1.5; margin: 0 0 8px; }
.lead { font-size: 18px; margin: 0 0 32px; }
.check label { display: block; font-weight: 700; margin-bottom: 8px; }
.check__row { display: flex; gap: 12px; flex-wrap: wrap; }
.check input { flex: 1 1 320px; font: inherit; font-size: 18px; padding: 14px 16px; border: 0; border-radius: var(--r-btn); background: #FFFFFF; color: var(--text); }
.check input:focus { background: #FFF9B0; outline: none; }
.check button, .btn { display: inline-block; font: inherit; font-weight: 700; padding: 14px 28px; border: 0; border-radius: var(--r-btn); background: var(--text); color: #FFFFFF; cursor: pointer; text-decoration: none; }
.check button:disabled { background: #666666; cursor: wait; }
/* 「調べる」の横の印（2026-12-02 オーナー採用。比較ページで確認）。
   ボタンの幅は「調べています…」が入る広さに決めておき、押しても欄や印が動かないようにする。
   印はふだんも場所だけとって見えない。ボタンと印はひとまとまりで、狭い画面で折り返しても離れない */
.check__go { display: inline-flex; align-items: center; gap: 12px; flex: none; }
#check-btn { min-width: calc(7em + 56px); }
.status { position: relative; width: 28px; height: 28px; flex: none; }
.status svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.status__spin, .status__done { opacity: 0; }
.status__track { fill: none; stroke: rgb(26 26 26 / .18); stroke-width: 3; }
.status__arc { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 18 100; }
.status.is-busy .status__spin { opacity: 1; animation: status-spin .8s linear infinite; transform-origin: 50% 50%; }
.status__disc { fill: var(--text); transform-origin: 50% 50%; }
.status__tick { fill: none; stroke: #FFFFFF; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; }
.status.is-done .status__done { opacity: 1; }
.status.is-done .status__disc { animation: status-disc .25s cubic-bezier(.3, 1.4, .5, 1) both; }
.status.is-done .status__tick { animation: status-tick .3s ease-out .15s forwards; }
@keyframes status-spin { to { transform: rotate(360deg); } }
@keyframes status-disc { from { transform: scale(.4); } to { transform: scale(1); } }
@keyframes status-tick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .status.is-busy .status__spin { animation: none; }
  .status.is-done .status__disc, .status.is-done .status__tick { animation: none; stroke-dashoffset: 0; }
}
.btn { background: var(--yellow); color: var(--text); }
.btn--sub { background: var(--subtle); }
.sec--subtle .btn--sub { background: #FFFFFF; }
.turnstile { margin-top: 12px; }
.note { font-size: 14px; color: var(--text-2); margin-top: 16px; }
.hero .note { color: var(--text); }

.sec { padding: 72px 0; }
.sec--subtle { background: var(--subtle); }
.result { padding: 56px 0; background: #FFFFFF; }
.result__url { color: var(--text-3); word-break: break-all; }
.result__msg { font-weight: 700; }
.result h3 { margin-top: 32px; }

/* 「調べる」を押すと出るポップ（Figma の部品 LP/Wait survey）。暗い幕は敷かない。
   スマホは画面の下、PC（768px 以上）は右下に浮かせる。×は調べ終わったときだけ出す */
.wait { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: #FFFFFF; border-radius: var(--r-box); padding: 16px 24px 24px 24px;
  box-shadow: 0 2px 12px 2px rgba(0,0,0,.1), 0 1px 6px 0 rgba(0,0,0,.3); }
.wait[hidden] { display: none; }
@media (min-width: 768px) { .wait { left: auto; right: 32px; bottom: 32px; width: 400px; } }
.wait__top { display: flex; gap: 8px; align-items: flex-start; }
.wait__progress { flex: 1 1 auto; padding-top: 8px; }
.wait__close { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: var(--r-btn); background: transparent; color: var(--text-2); font: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.wait__close:hover { background: var(--subtle); }

/* 進み具合のバー。実際の進みは分からないので、かかる時間の目安に沿って伸ばし、終わったら100%にする */
.progress__head { display: flex; flex-direction: column; gap: 2px; margin: 0 0 10px; font-weight: 700; }
.progress__time { color: var(--text-2); font-weight: 400; font-size: 14px; font-variant-numeric: tabular-nums; }
.progress__track { height: 12px; border-radius: 6px; background: #E6E6E6; overflow: hidden; }
.progress__fill { height: 100%; width: 0; background: var(--text); border-radius: 6px; transition: width 0.4s linear; }
@media (prefers-reduced-motion: reduce) { .progress__fill { transition: none; } }

/* 待ち時間のアンケート（Figma の部品 LP/Survey step）。1問ずつ app.js が出す */
.survey { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.survey p { margin: 0; }
.survey__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.survey__label { font-size: 14px; font-weight: 700; color: var(--text-2); }
.survey__skip { min-height: 44px; padding: 0 4px; border: 0; background: transparent; font: inherit; color: #8F34C6; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.survey__q { font-size: 18px; font-weight: 700; line-height: 1.6; }
.survey__q--label { display: block; }
.survey__choices { display: grid; grid-template-columns: 1fr; gap: 8px; }
.survey__choices--2 { grid-template-columns: 1fr 1fr; }
/* Secondary の小さいボタン（NN/g を優先して輪郭あり：--border-input #666・1px） */
.survey__choices button { min-height: 44px; padding: 8px 4px; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--text); background: #E6E6E6; border: 1px solid #666666; border-radius: var(--r-btn); cursor: pointer; }
.survey__choices button:hover { background: #D9D9D9; }
.survey__help { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.survey textarea { width: 100%; min-height: 104px; font: inherit; padding: 12px; color: var(--text); background: #FFFFFF; border: 1px solid #666666; border-radius: var(--r-btn); resize: vertical; }
.survey textarea:focus { outline: 2px solid var(--text); outline-offset: 0; background: #FFF9B0; }
.survey__actions { display: flex; align-items: center; gap: 16px; }
.survey__send { min-height: 44px; min-width: 104px; padding: 8px 24px; border: 0; border-radius: var(--r-btn); background: var(--yellow); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.survey__consult { text-align: center; font-size: 14px; padding: 12px 16px; }
.survey__note { font-size: 14px; color: var(--text-3); line-height: 1.5; }
.survey__msg { color: var(--text-2); }
.survey__q:focus { outline: none; }
@media (min-width: 768px) { .survey__q { font-size: 20px; } }

.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.group { background: var(--subtle); border-radius: var(--r-box); padding: 24px; }
.group ul { margin: 0; padding-left: 1.2em; color: var(--text-2); }

.rows { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.row { display: flex; gap: 16px; align-items: flex-start; background: #FFFFFF; border-radius: var(--r-box); padding: 18px 20px; }
.result .row { background: var(--subtle); }
.row p { margin: 0; }
.row__title { font-weight: 700; }
.row__detail { color: var(--text-2); margin-top: 4px !important; }
.mark { flex: 0 0 auto; width: 32px; font-size: 24px; font-weight: 700; line-height: 1.2; text-align: center; }
.mark--good { color: var(--good); } .mark--warn { color: var(--warn); } .mark--bad { color: var(--bad); } .mark--na { color: var(--text-3); }

.boxes, .plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.box { background: var(--subtle); border-radius: var(--r-box); padding: 28px; }
.box p { margin: 0 0 10px; color: var(--text-2); }
.tag { color: var(--coral) !important; font-weight: 700; font-size: 14px; }
.price { font-weight: 700; font-size: 22px; color: var(--text) !important; }
.plan { background: #FFFFFF; border-radius: var(--r-box); padding: 28px; }
.plan p { margin: 0 0 8px; color: var(--text-2); }
.faq dt { font-weight: 700; margin-top: 24px; }
.faq dd { margin: 4px 0 0; color: var(--text-2); }
.strong { font-weight: 700; font-size: 20px; }

.ft { background: var(--text); color: #FFFFFF; padding: 40px 0; font-size: 14px; }
.ft a { color: #FFFFFF; }
