/* Cheetah デモ — 共通レイアウト。値は tokens.css を参照します。 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.85; letter-spacing: .02em; -webkit-font-smoothing: antialiased; }
svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 飾りは既定で隠し、スキンごとに出します */
.masthead, .note, .stamp, .spots { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- ボタン ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .8em; min-height: 52px; padding: .7em 1.5em; border: var(--bw) solid var(--ink); border-radius: var(--r); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; font-weight: 700; line-height: 1.3; transition: transform var(--move) var(--ease), background var(--move), color var(--move); }
.btn:hover { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-sub { font-size: .72rem; font-weight: 400; opacity: .8; letter-spacing: .08em; }

/* ---- ヘッダー ---- */
.site-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--gap); padding: 16px var(--pad); }
.run-line { position: absolute; left: 0; right: 0; bottom: -1px; height: calc(var(--bw) * 2); background: var(--ink); transform-origin: left; animation: run .8s var(--ease) both; }
@keyframes run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.logo { display: flex; align-items: center; gap: .7em; text-decoration: none; }
.logo-svg { display: block; height: 34px; width: auto; }
.lg-m { fill: currentColor; }
.lg-a { fill: var(--accent); }
.logo-kana { white-space: nowrap; font-size: .68rem; color: var(--muted); letter-spacing: .2em; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); font-size: .88rem; }
.site-nav a { white-space: nowrap; text-decoration: none; padding: .5em 0; border-bottom: var(--bw) solid transparent; }
.site-nav a:hover { border-bottom-color: currentColor; }
.nav-login { font-weight: 700; }
@media (max-width: 640px) { .site-nav a:nth-child(1), .site-nav a:nth-child(3) { display: none; } }
@media (max-width: 480px) { .logo-kana { display: none; } .logo-svg { height: 29px; } }

/* ---- トップ：ヒーロー ---- */
.hero { position: relative; padding: clamp(24px, 5vw, 64px) var(--pad) clamp(56px, 9vw, 120px); }
/* ヒーロー動画：都会とサバンナの融合。ヒーローの一番上に、横幅いっぱい・16:9 */
.hero-media { position: relative; margin: calc(-1 * clamp(24px, 5vw, 64px)) calc(-1 * var(--pad)) 0; aspect-ratio: 16 / 9; overflow: hidden; background: #0D0D0B; border-bottom: var(--bw) solid var(--line); }
.hero-media video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(13, 13, 11, .45); pointer-events: none; }
/* 動画の上に重ねる見出し */
.hero-overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(12px, 3vw, 36px) var(--pad); color: #F4F0E6; }
.hero-overlay .kicker { color: rgba(244,240,230, .88); }
.hero-overlay .hero-title { color: #F4F0E6; text-shadow: 0 2px 22px rgba(13,13,11, .55), 0 1px 4px rgba(13,13,11, .7); margin: .3em 0 0; }
.hero-overlay .hero-title .l3 { color: #F4F0E6; }
/* 動画の注記：動画の外（下）に、小さく目立たせない */
.hero-media-cap { margin: .5em 0 clamp(16px, 3vw, 32px); font-size: .7rem; letter-spacing: .1em; color: rgba(13,13,11,.62); text-align: right; }
@media (max-width: 640px) {
  .hero-overlay .hero-title { font-size: clamp(1.5rem, 7.8vw, 2rem); }
  .hero-overlay .kicker { font-size: .74rem; }
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: calc(var(--gap) * 2); align-items: end; max-width: var(--maxw); margin: 0 auto; position: relative; }
.kicker { font-size: .82rem; letter-spacing: .16em; color: var(--muted); }
.hero-title { font-family: var(--f-head); font-weight: var(--head-w); font-size: var(--h1); line-height: var(--head-lh); letter-spacing: var(--head-ls); font-feature-settings: "palt" 1; margin: .35em 0 .45em; }
.hero-title span { display: block; white-space: nowrap; }
.hero-title .l2 { margin-left: .5em; }
.hero-title .l3 { margin-left: 1.15em; color: var(--accent-text); }
.hero-title em { font-style: normal; }
.lead { max-width: 34em; font-size: clamp(1rem, 1.5vw, 1.12rem); }
.entry { display: inline-flex; margin: 1.6em 0 .6em; border: var(--bw) solid var(--line); border-radius: var(--r); }
.entry button { min-height: 44px; padding: .5em 1.3em; border: 0; background: transparent; cursor: pointer; font-weight: 700; }
.entry button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.entry-note { font-size: .9rem; color: var(--muted); min-height: 3.4em; max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: .6em; }
.hero-ticket { position: relative; padding: 22px 24px 20px; background: var(--bg-2); border: var(--bw) solid var(--line); border-radius: var(--r); }
.t-meta { font-size: .78rem; letter-spacing: .12em; color: var(--muted); }
.t-body { margin: .5em 0 1em; font-weight: 500; }
.t-offers li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: baseline; padding: .6em 0; border-top: var(--bw) solid var(--hair); }
.o-time, .o-price { font-family: var(--f-num); font-variant-numeric: tabular-nums; text-align: right; font-size: 1.15rem; }
.o-time { min-width: 4.5em; color: var(--muted); }
.t-more { display: inline-block; margin-top: .9em; font-size: .85rem; font-weight: 700; }

/* ---- トップ：各セクション ---- */
.sec-title { font-family: var(--f-head); font-weight: var(--head-w); font-size: clamp(1.7rem, 4vw, 2.9rem); line-height: var(--head-lh); letter-spacing: var(--head-ls); font-feature-settings: "palt" 1; }
.sec-title.sm { font-size: clamp(1.4rem, 3vw, 2.1rem); }
.flow, .assure, .areas { padding-block: clamp(48px, 8vw, 104px); }
.flow-list { margin-top: clamp(24px, 4vw, 48px); }
.flow-list li { display: grid; grid-template-columns: auto minmax(0, 28em); gap: clamp(16px, 3vw, 40px); align-items: center; padding-block: clamp(16px, 2.4vw, 28px); border-top: var(--bw) solid var(--hair); }
.flow-list li:nth-child(2) { margin-left: clamp(0px, 8vw, 120px); }
.flow-list li:nth-child(3) { margin-left: clamp(0px, 16vw, 240px); }
.f-no { font-family: var(--f-num); font-size: clamp(4rem, 12vw, 9rem); line-height: .85; color: var(--accent-text); font-variant-numeric: lining-nums; }
.flow-list h3 { font-family: var(--f-head); font-weight: var(--head-w); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; margin-bottom: .2em; }
.assure-list { margin-top: clamp(20px, 3vw, 36px); }
.assure-list > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: var(--gap); padding-block: 1.2em; border-top: var(--bw) solid var(--line); }
.assure-list dt { font-family: var(--f-head); font-weight: var(--head-w); font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.5; }
.assure-list dd { color: var(--muted); }
.pro { padding-block: clamp(56px, 9vw, 120px); background: var(--ink); color: var(--bg); }
.pro-lead { margin-top: 1em; max-width: 34em; opacity: .9; }
.pro-facts { display: flex; flex-wrap: wrap; gap: clamp(24px, 6vw, 80px); margin: clamp(28px, 4vw, 48px) 0 1.4em; }
.pro-facts dt { font-size: .78rem; letter-spacing: .12em; opacity: .75; }
.pro-facts dd { font-family: var(--f-num); font-size: 1.2rem; }
.pro-facts b { font-size: clamp(3.4rem, 8vw, 6rem); line-height: 1; font-weight: 400; margin-right: .06em; }
.pro-facts small { display: block; font-family: var(--f-body); font-size: .78rem; opacity: .75; }
.pro-note { font-size: .88rem; opacity: .8; max-width: 38em; margin-bottom: 1.6em; }
.pro .btn { border-color: var(--bg); }
.pro .btn-primary { background: var(--bg); color: var(--ink); }
.area-list { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 1em 0 .6em; font-family: var(--f-head); font-size: clamp(1.2rem, 2.6vw, 1.8rem); font-weight: 700}
.area-note { margin: 1em 0 .6em; max-width: 38em; }
.cat-list { color: var(--muted); font-size: .9rem; }

/* ---- フッター・デモバー・トースト ---- */
.site-foot { padding: 48px 0 140px; border-top: var(--bw) solid var(--line); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px 64px; justify-content: space-between; }
.foot-logo { line-height: 1; }
.foot-logo .logo-svg { height: 27px; }
.foot-note { font-size: .85rem; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .88rem; }
.foot-small { margin-top: 28px; font-size: .75rem; color: var(--muted); }
.demo-bar { position: fixed; z-index: 60; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 16px); padding: 6px 8px 6px 14px; background: #0D0D0B; color: #F4F0E6; border-radius: var(--r); font-family: var(--f-body); font-size: .75rem; line-height: 1; white-space: nowrap; }
.demo-tag { font-weight: 700; letter-spacing: .14em; }
.demo-label { opacity: .6; }
.skin-seg { display: flex; gap: 4px; }
.skin-seg button { min-height: 34px; padding: 0 12px; border: 0; border-radius: var(--r); background: transparent; color: #F4F0E6; cursor: pointer; font-size: .75rem; }
.skin-seg button[aria-pressed="true"] { background: #F4F0E6; color: #0D0D0B; font-weight: 700; }
@media (max-width: 520px) { .demo-label { display: none; } .skin-seg button { padding: 0 9px; } }
.toast { position: fixed; z-index: 70; left: 50%; top: 18px; transform: translateX(-50%); background: #0D0D0B; color: #F4F0E6; padding: .7em 1.2em; font-size: .85rem; border-radius: var(--r); transition: opacity .4s; }
.toast.out { opacity: 0; }

/* ---- 困りごと投稿 ---- */
.wiz { padding: clamp(16px, 4vw, 48px) var(--pad) 40px; }
.wiz-wrap { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: calc(var(--gap) * 2); align-items: start; }
.wiz-progress { height: calc(var(--bw) * 3); background: var(--hair); }
.wiz-progress i { display: block; height: 100%; width: 20%; background: var(--accent); transition: width var(--move) var(--ease); }
.wiz-step { margin: .9em 0 0; font-family: var(--f-num); font-size: 1rem; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.q { padding-top: clamp(8px, 2vw, 24px); }
.q[hidden] { display: none; }
.q-sub { font-size: .85rem; letter-spacing: .14em; color: var(--accent-text); font-weight: 700; margin-top: .4em; }
.q-title { font-family: var(--f-head); font-weight: var(--head-w); font-size: clamp(1.8rem, 5vw, 3.2rem); line-height: var(--head-lh); letter-spacing: var(--head-ls); font-feature-settings: "palt" 1; margin: .3em 0 1em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 54px; padding: .5em 1.3em; border: var(--bw) solid var(--line); border-radius: var(--r); background: transparent; cursor: pointer; font-weight: 700; transition: transform var(--move) var(--ease), background var(--move), color var(--move); }
.chip:hover { transform: translateX(3px); }
.chip[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.field { display: block; margin-top: 1.6em; }
.field > span { display: block; font-size: .82rem; letter-spacing: .08em; color: var(--muted); margin-bottom: .4em; }
.field .sr { position: absolute; }
input[type="text"], textarea { width: 100%; padding: .8em 1em; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--bg-2); }
select { width: 100%; min-height: 54px; padding: .8em 1em; border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--bg-2); font: inherit; color: inherit; }
textarea { min-height: 168px; resize: vertical; line-height: 1.8; }
.drop { margin-top: 1.2em; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.thumbs { display: flex; gap: 8px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border: var(--bw) solid var(--line); }
.drop-note { flex-basis: 100%; font-size: .8rem; color: var(--muted); }
.done-text { max-width: 30em; margin-bottom: 1.6em; color: var(--muted); }
.wiz-msg { min-height: 1.8em; margin-top: 1em; color: var(--accent-text); font-weight: 700; font-size: .9rem; }
.wiz-nav { display: flex; gap: 12px; margin-top: .4em; }
@media (max-width: 640px) { .wiz-nav .btn { flex: 1; min-height: 56px; } }
.wiz-nav[hidden] { display: none; }
.wiz-summary { padding: 22px 24px; background: var(--bg-2); border: var(--bw) solid var(--line); border-radius: var(--r); position: sticky; top: 16px; }
.wiz-summary h2 { font-family: var(--f-head); font-weight: var(--head-w); font-size: 1.3rem; margin-bottom: .6em; }
.wiz-summary dl > div { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 8px; padding: .55em 0; border-top: var(--bw) solid var(--hair); font-size: .9rem; }
.wiz-summary dt { color: var(--muted); }
.wiz-summary dd { overflow-wrap: anywhere; }
.sum-note { margin-top: 1em; font-size: .78rem; color: var(--muted); }
@media (max-width: 800px) { .wiz-wrap { grid-template-columns: 1fr; } .wiz-summary { position: static; } }

/* ---- 提案の比較 ---- */
.req { padding-block: clamp(24px, 5vw, 64px) 20px; }
.req-tag { font-size: .8rem; letter-spacing: .16em; color: var(--accent-text); font-weight: 700; }
.req-title { font-family: var(--f-head); font-weight: var(--head-w); font-size: clamp(1.7rem, 4.8vw, 3.6rem); line-height: var(--head-lh); letter-spacing: var(--head-ls); font-feature-settings: "palt" 1; margin: .3em 0 .4em; max-width: 18em; }
.req-title span { display: block; }
.req-meta { color: var(--muted); font-size: .92rem; }
.req-count { margin-top: .8em; font-weight: 700; }
.req-count b { font-family: var(--f-num); font-size: 2rem; margin-right: .1em; color: var(--accent-text); }
.results { padding-bottom: 40px; }
.sortbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; border-block: var(--bw) solid var(--line); }
.sort-label { font-size: .8rem; letter-spacing: .14em; color: var(--muted); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 44px; padding: .4em 1.1em; border: var(--bw) solid var(--line); border-radius: var(--r); background: transparent; cursor: pointer; font-weight: 700; font-size: .9rem; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.proposal { --c-price: 168px; --c-time: 112px; --c-rate: 104px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--c-price) + var(--c-time) + var(--c-rate)) 172px; grid-template-areas: "head nums act" "msg nums act"; column-gap: var(--gap); row-gap: .5em; align-items: start; padding-block: 1.5em; border-bottom: var(--bw) solid var(--hair); }
.p-head { grid-area: head; }
.p-nums { grid-area: nums; display: grid; grid-template-columns: var(--c-price) var(--c-time) var(--c-rate); }
.p-msg { grid-area: msg; color: var(--muted); font-size: .92rem; max-width: 36em; }
.p-act { grid-area: act; display: grid; gap: 8px; }
.p-act .btn { min-height: 46px; padding: .5em 1em; font-size: .88rem; }
.p-name { font-family: var(--f-head); font-weight: var(--head-w); font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.35; }
.p-name-btn { padding: 0; margin: 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; letter-spacing: inherit; border-bottom: var(--bw) solid var(--hair); }
.p-name-btn:hover { border-bottom-color: var(--ink); }
.p-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: .4em; font-size: .78rem; color: var(--muted); }
.p-tags li::before { content: "／"; margin-right: .5em; opacity: .5; }
.p-tags li:first-child::before { content: ""; margin: 0; }
.n dt { font-size: .72rem; letter-spacing: .14em; color: var(--muted); margin-bottom: .3em; }
.n dd { line-height: 1.2; }
.n b { font-family: var(--f-num); font-weight: 400; font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-variant-numeric: tabular-nums lining-nums; line-height: 1; }
.n .u { font-size: .85rem; margin-left: .15em; }
.n small { display: block; margin-top: .45em; font-size: .72rem; line-height: 1.5; color: var(--muted); }
.badge { display: inline-block; margin: .5em 0 .35em .6em; vertical-align: .35em; font-size: .68rem; font-weight: 700; letter-spacing: .12em; line-height: 1; padding: .25em .55em; color: var(--accent-text); border: var(--bw) solid var(--accent-text); }
.proposals[data-sort="price"] .n-price b, .proposals[data-sort="time"] .n-time b, .proposals[data-sort="rating"] .n-rate b { color: var(--accent-text); }
.prop-note { margin-top: 24px; font-size: .8rem; color: var(--muted); max-width: 44em; }
@media (max-width: 860px) {
  .proposal { --c-price: 1fr; --c-time: 1fr; --c-rate: 1fr; grid-template-columns: 1fr; grid-template-areas: "head" "nums" "msg" "act"; row-gap: .9em; }
  .p-nums { grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; padding-block: .8em; border-block: var(--bw) solid var(--hair); }
  .p-act { grid-template-columns: 1.4fr 1fr; }
}

/* ---- プロフィール（ダイアログ） ---- */
dialog.profile { width: min(640px, calc(100vw - 24px)); max-height: 88vh; padding: clamp(20px, 4vw, 36px); border: var(--bw) solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink); overflow: auto; }
dialog.profile::backdrop { background: rgba(13,13,11, .5); }
.pf-close { position: absolute; top: 12px; right: 12px; min-height: 40px; padding: 0 14px; border: var(--bw) solid var(--line); border-radius: var(--r); background: transparent; cursor: pointer; font-weight: 700; }
.pf-name { font-family: var(--f-head); font-weight: var(--head-w); font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.3; padding-right: 5em; }
.pf-intro { margin-top: .8em; }
.pf-jobs { margin-top: .4em; font-size: .85rem; color: var(--muted); }
.pf-h { margin: 1.6em 0 .4em; font-size: .78rem; letter-spacing: .16em; color: var(--muted); font-weight: 700; }
.pf-score > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 12px; align-items: center; padding: .35em 0; font-size: .88rem; }
.pf-score dd { display: flex; align-items: center; gap: 12px; }
.pf-score .bar { flex: 1; height: 8px; background: var(--hair); }
.pf-score .bar i { display: block; height: 100%; background: var(--accent); }
.pf-score b { font-family: var(--f-num); font-weight: 400; font-size: 1.2rem; min-width: 2em; text-align: right; font-variant-numeric: tabular-nums; }
.pf-quote { padding-left: 1em; border-left: calc(var(--bw) * 2) solid var(--ink); }
.pf-quote cite { display: block; margin-top: .3em; font-style: normal; font-size: .8rem; color: var(--muted); }
.pf-reply { margin-top: .9em; font-size: .88rem; color: var(--muted); }
.pf-reply b { display: block; font-size: .72rem; letter-spacing: .14em; color: var(--ink); }

/* ---- 小さい画面 ---- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .flow-list li { grid-template-columns: 1fr; gap: 4px; }
  .assure-list > div { grid-template-columns: 1fr; gap: 4px; }
  .pf-score > div { grid-template-columns: 1fr; gap: 2px; }
}
