:root { color-scheme: light; }
select, input, textarea, button { color-scheme: light; }
:root {
  --ink:#1A1614; --sub:#6E655E; --muted:#8A8078; --page:#FFFBF6; --surface:#F4F0EA;
  --line:rgba(26,22,20,0.10);
  --accent:#B8916A; --accent-dark:#8B6F4E; --accent-light:#E8D8C3;
  --danger:#C84B3C; --danger-ink:#9C3423;
  --warn:#D89B3C; --warn-ink:#8A5E14; --ok:#6B8E62; --info:#4A6E96;
  --t:#B8916A; --t-soft:#F4F0EA;
  --radius:16px; --radius-sm:10px; --radius-pill:999px;
  --shadow:0 -8px 24px rgba(26,22,20,0.08);
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--page); color:var(--ink); font-family:'Inter', system-ui, -apple-system, sans-serif; font-size:16px; line-height:1.75; overflow-wrap:anywhere; }
h1,h2,h3,p,ul,dl,dd { margin:0; }
ul { padding:0; list-style:none; }
a { color:var(--accent-dark); }
img, svg { max-width:100%; height:auto; }
:focus-visible { outline:3px solid var(--info); outline-offset:2px; }
.wrap { width:100%; max-width:1040px; margin:0 auto; padding:0 16px; }
.vh { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* デモ表示（常に見える） */
.demobar { position:sticky; top:0; z-index:20; background:var(--ink); color:#fff; font-size:13px; line-height:1.5; padding:6px 0; }
.demobar .wrap { display:flex; gap:8px; align-items:center; justify-content:center; text-align:center; }
.demobar b { background:var(--accent); color:var(--ink); border-radius:var(--radius-pill); padding:0 10px; font-size:12px; }

/* ヘッダー */
.site-head { background:var(--page); border-bottom:1px solid var(--line); }
.site-head .wrap { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; padding-top:10px; padding-bottom:10px; }
.brand { display:flex; align-items:center; gap:8px; font-weight:700; font-size:20px; color:var(--ink); text-decoration:none; min-height:44px; }
.brand-mark { width:28px; height:28px; border-radius:50%; background:var(--accent-light); display:inline-flex; align-items:center; justify-content:center; }
.brand small { font-size:12px; color:var(--sub); font-weight:500; }
.head-cta { margin-left:auto; order:2; }
.nav { order:3; width:100%; display:flex; gap:4px; }
.nav a { flex:1; text-align:center; min-height:44px; display:flex; align-items:center; justify-content:center; text-decoration:none; color:var(--ink); font-size:14px; border-radius:var(--radius-sm); }
.nav a[aria-current="page"] { background:var(--surface); font-weight:700; }
@media (min-width:760px) {
  .nav { order:1; width:auto; margin-left:20px; }
  .nav a { flex:none; padding:0 14px; }
}

/* ボタン */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:0 20px; border-radius:var(--radius-pill); border:1px solid var(--line); background:#fff; color:var(--ink); font:inherit; font-size:15px; font-weight:600; cursor:pointer; text-decoration:none; }
.btn-primary { background:var(--accent-dark); border-color:var(--accent-dark); color:#fff; }
.btn-primary:hover { background:#765B3F; }
.btn-ghost { background:transparent; }
.btn-danger { color:var(--danger-ink); border-color:var(--danger); }
.btn-lg { min-height:52px; padding:0 28px; font-size:16px; }
.btn-sm { font-size:14px; }

/* 共通パーツ */
.pill { display:inline-flex; align-items:center; padding:2px 10px; border-radius:var(--radius-pill); font-size:12px; line-height:1.6; background:var(--accent-light); color:#5E4830; }
.pill.me { background:var(--ink); color:#fff; }
.card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:20px; }
.sec { padding:40px 0 8px; }
.sec h2 { font-size:22px; line-height:1.4; margin-bottom:6px; }
.sec .sec-lead { color:var(--sub); font-size:14px; margin-bottom:16px; }
.crumb { font-size:13px; color:var(--sub); padding-top:16px; }
.crumb a { color:var(--sub); }
.note { font-size:13px; color:var(--sub); }

/* トップ */
.hero { padding:36px 0 12px; }
.hero h1 { font-size:28px; line-height:1.45; letter-spacing:0.01em; }
.hero p { color:var(--sub); margin-top:12px; max-width:36em; }
.hero .actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.theme-grid { display:grid; grid-template-columns:1fr; gap:14px; }
.theme-card { display:flex; flex-direction:column; gap:8px; text-decoration:none; color:var(--ink); background:#fff; border:1px solid var(--line); border-top:6px solid var(--t); border-radius:var(--radius); padding:18px 20px 20px; }
.theme-card h3 { font-size:20px; line-height:1.4; }
.theme-card p { font-size:14px; color:var(--sub); }
.theme-card .count { font-size:13px; font-weight:700; color:var(--ink); }
.theme-card .go { margin-top:auto; font-size:14px; font-weight:700; color:var(--accent-dark); }
.theme-card.soon { border-style:dashed; border-top:6px dashed var(--muted); background:var(--surface); }
.steps { display:grid; grid-template-columns:1fr; gap:12px; counter-reset:s; }
.step { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px 20px 18px 64px; position:relative; }
.step::before { counter-increment:s; content:counter(s); position:absolute; left:18px; top:16px; width:34px; height:34px; border-radius:50%; background:var(--accent-dark); color:#fff; font-weight:700; display:flex; align-items:center; justify-content:center; }
.step h3 { font-size:16px; }
.step p { font-size:14px; color:var(--sub); }
.cta-band { margin-top:40px; background:var(--surface); border-radius:var(--radius); padding:24px 20px; display:flex; flex-direction:column; gap:12px; align-items:flex-start; }
.cta-band h2 { font-size:20px; line-height:1.5; }
@media (min-width:760px) {
  .hero h1 { font-size:38px; }
  .theme-grid { grid-template-columns:repeat(3,1fr); }
  .steps { grid-template-columns:repeat(3,1fr); }
  .cta-band { flex-direction:row; align-items:center; justify-content:space-between; padding:28px; }
}

/* テーマページ */
.theme-head { background:var(--t-soft); border-bottom:1px solid var(--line); padding-bottom:24px; }
.theme-head h1 { font-size:26px; line-height:1.45; margin-top:6px; }
.theme-head p.lead { color:var(--sub); font-size:15px; margin-top:8px; max-width:40em; }
.theme-head .row { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:16px; }
.bigcount { font-size:15px; }
.bigcount b { font-size:30px; line-height:1; margin-right:2px; }
.banner { margin-top:16px; border-radius:var(--radius-sm); padding:12px 16px; font-size:14px; background:#E9F1E6; border:1px solid var(--ok); color:#2F4A28; }
.banner.warn { background:#FBF1DD; border-color:var(--warn); color:var(--warn-ink); }

details.filter { margin-top:24px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); }
details.filter .st small { display:block; font-size:13px; font-weight:500; color:var(--sub); line-height:1.5; }
details.filter > summary { list-style:none; cursor:pointer; min-height:48px; padding:10px 18px; display:flex; align-items:center; gap:10px; font-weight:700; }
details.filter > summary::-webkit-details-marker { display:none; }
details.filter > summary::after { content:''; margin-left:auto; width:8px; height:8px; border-right:2px solid var(--ink); border-bottom:2px solid var(--ink); transform:rotate(45deg); }
details.filter[open] > summary::after { transform:rotate(-135deg); }
.filter-body { padding:2px 18px 18px; display:grid; gap:14px; }
.fgroup-label { font-size:13px; color:var(--sub); font-weight:700; margin-bottom:4px; }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip { min-height:44px; padding:0 16px; border-radius:var(--radius-pill); border:1px solid var(--line); background:#fff; color:var(--ink); font:inherit; font-size:14px; cursor:pointer; }
.chip[aria-pressed="true"] { background:var(--accent-dark); border-color:var(--accent-dark); color:#fff; font-weight:700; }
.fstate { font-size:13px; color:var(--sub); font-weight:500; }

.result-bar { margin-top:28px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.result-bar .n { font-size:15px; }
.result-bar .n b { font-size:24px; }
.empty { background:var(--surface); border:1px dashed var(--muted); border-radius:var(--radius); padding:22px 20px; color:var(--ink); }
.empty b { display:block; font-size:16px; margin-bottom:4px; }
.empty p { font-size:14px; color:var(--sub); }

.agg-grid { display:grid; grid-template-columns:1fr; gap:14px; margin-top:12px; }
.agg { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px 18px 14px; }
.agg h3 { font-size:16px; line-height:1.5; margin-bottom:2px; }
.agg .top { font-size:13px; color:var(--sub); margin-bottom:12px; }
.agg .top b { color:var(--ink); }
.agg .foot { margin-top:10px; font-size:12px; color:var(--sub); }
.agg.few { background:var(--surface); border-style:dashed; }
.agg.few p { font-size:14px; }
.bar-row { margin-bottom:10px; }
.bar-head { display:flex; justify-content:space-between; gap:8px; font-size:14px; line-height:1.5; margin-bottom:3px; }
.bar-head .pc { font-weight:700; white-space:nowrap; }
.bar-head .c { color:var(--sub); font-size:12px; margin-left:6px; font-weight:400; }
.bar-track { height:12px; border-radius:var(--radius-pill); background:var(--surface); overflow:hidden; }
.bar-fill { height:100%; border-radius:var(--radius-pill); background:var(--t); transition:width .35s ease; }
.bar-row.max .bar-fill { background:var(--accent-dark); }
.scale-main { display:flex; align-items:baseline; gap:6px; margin-bottom:8px; }
.scale-main b { font-size:40px; line-height:1.2; }
.scale-main span { color:var(--sub); font-size:14px; }
.scale-ends { display:flex; justify-content:space-between; font-size:12px; color:var(--sub); margin-top:2px; }
@media (min-width:760px) {
  .agg-grid { grid-template-columns:1fr 1fr; }
  .theme-head h1 { font-size:32px; }
}
@media (prefers-reduced-motion:reduce) { .bar-fill { transition:none; } }

/* 体験談一覧 */
.entries { display:grid; gap:12px; margin-top:12px; }
.entry { display:block; text-decoration:none; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px; }
.entry.mine { border-color:var(--accent-dark); box-shadow:0 0 0 2px var(--accent-light); }
.entry .tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.entry .txt { font-size:15px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.entry .txt.sum { color:var(--sub); font-size:14px; }
.entry .txt.none { color:var(--sub); font-size:14px; }
.entry .meta { margin-top:8px; font-size:12px; color:var(--sub); display:flex; justify-content:space-between; gap:8px; }
.entry .more { color:var(--accent-dark); font-weight:700; }
.more-wrap { text-align:center; margin-top:16px; }

/* 詳細 */
.detail { margin-top:16px; }
.detail dl { display:grid; grid-template-columns:1fr; gap:0; }
.detail .drow { padding:12px 0; border-bottom:1px solid var(--line); display:grid; grid-template-columns:1fr; gap:2px; }
.detail dt { font-size:13px; color:var(--sub); }
.detail dd { font-size:16px; }
.dots { display:inline-flex; gap:4px; vertical-align:middle; margin-right:8px; }
.dots i { width:14px; height:14px; border-radius:50%; background:var(--surface); border:1px solid var(--muted); }
.dots i.on { background:var(--accent-dark); border-color:var(--accent-dark); }
.freetext { background:var(--surface); border-radius:var(--radius-sm); padding:14px 16px; white-space:pre-wrap; }
@media (min-width:760px) {
  .detail .drow { grid-template-columns:240px 1fr; gap:16px; }
}

/* フォーム */
.tabs { display:flex; gap:8px; margin-top:14px; flex-wrap:wrap; }
.tab { min-height:44px; display:inline-flex; align-items:center; padding:0 18px; border-radius:var(--radius-pill); border:1px solid var(--line); background:#fff; text-decoration:none; color:var(--ink); font-size:15px; }
.tab[aria-current="page"] { background:var(--accent-dark); color:#fff; border-color:var(--accent-dark); font-weight:700; }
.form { margin-top:20px; display:grid; gap:16px; }
.fieldset { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px 18px 8px; margin:0; min-width:0; }
.fieldset > legend { padding:0 8px; font-weight:700; font-size:15px; }
.q { margin-bottom:18px; border:0; padding:0; margin-left:0; margin-right:0; min-width:0; }
.q > legend, .q > label.ql { font-weight:700; font-size:15px; line-height:1.6; display:block; padding:0; margin-bottom:6px; }
.req { font-size:11px; font-weight:700; color:var(--danger-ink); border:1px solid var(--danger); border-radius:var(--radius-pill); padding:0 7px; margin-left:6px; vertical-align:middle; }
.help { font-size:13px; color:var(--sub); margin-bottom:6px; }
.opt { position:relative; display:inline-block; }
.opt input { position:absolute; opacity:0; width:100%; height:100%; left:0; top:0; margin:0; cursor:pointer; }
.opt span { display:inline-flex; align-items:center; min-height:44px; padding:0 16px; border-radius:var(--radius-pill); border:1px solid var(--muted); background:#fff; font-size:15px; }
.opt input:checked + span { background:var(--accent-dark); border-color:var(--accent-dark); color:#fff; font-weight:700; }
.opt input:focus-visible + span { outline:3px solid var(--info); outline-offset:2px; }
.opts { display:flex; flex-wrap:wrap; gap:8px; }
.scale-opts { display:flex; gap:8px; }
.scale-opts .opt { flex:1; }
.scale-opts .opt span { width:100%; justify-content:center; padding:0; border-radius:var(--radius-sm); font-weight:700; }
input[type=text], textarea { width:100%; font:inherit; font-size:16px; padding:10px 12px; border:1px solid var(--muted); border-radius:var(--radius-sm); background:#fff; color:var(--ink); min-height:48px; }
textarea { min-height:120px; resize:vertical; }
.counter { font-size:12px; color:var(--sub); text-align:right; }
.err { color:var(--danger-ink); font-size:13px; font-weight:700; margin-top:4px; display:none; }
.q.bad .err, .consent.bad .err { display:block; }
.q.bad .opt span { border-color:var(--danger); }
.q.bad input[type=text], .q.bad textarea { border-color:var(--danger); }
.consent { background:var(--surface); border-radius:var(--radius); padding:16px 18px; }
.consent label { display:flex; gap:12px; align-items:flex-start; cursor:pointer; min-height:44px; }
.consent input { width:24px; height:24px; margin:2px 0 0; flex:none; accent-color:var(--accent-dark); }
.submit-row { display:flex; flex-direction:column; gap:10px; align-items:flex-start; }
.errsum { background:#FBE9E5; border:1px solid var(--danger); border-radius:var(--radius-sm); padding:12px 16px; color:var(--danger-ink); font-size:14px; font-weight:700; }

/* メンバー */
.member-grid { display:grid; grid-template-columns:1fr; gap:14px; margin-top:12px; }
.member { border:2px dashed var(--muted); background:var(--surface); border-radius:var(--radius); padding:20px; }
.member .ph { width:72px; height:72px; border-radius:50%; background:#fff; border:1px dashed var(--muted); display:flex; align-items:center; justify-content:center; margin-bottom:10px; }
.member h3 { font-size:17px; line-height:1.5; }
.member .role { font-size:13px; font-weight:700; color:var(--accent-dark); margin-bottom:6px; }
.member p { font-size:14px; color:var(--sub); }
@media (min-width:760px) { .member-grid { grid-template-columns:repeat(3,1fr); } }

/* 規約 */
.prose h2 { font-size:19px; line-height:1.5; margin:28px 0 6px; }
.prose p, .prose li { font-size:15px; }
.prose ul { list-style:disc; padding-left:1.4em; }

/* フッター */
.site-foot { margin-top:56px; background:var(--surface); padding:28px 0 36px; font-size:13px; color:var(--sub); }
.site-foot .links { display:flex; flex-wrap:wrap; gap:4px 16px; margin-bottom:10px; }
.site-foot .links a { color:var(--ink); min-height:44px; display:inline-flex; align-items:center; }
.site-foot p + p { margin-top:4px; }
.ghost-reset { margin-top:28px; font-size:13px; color:var(--sub); display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
