:root {
  --bg: #f4f4f9;
  --surface: #ffffff;
  --surface-2: #f2f2f8;
  --ink: #1b1e28;
  --ink-soft: #4a4f60;
  --ink-faint: #8b8fa4;
  --border: #e5e5f0;
  --accent: #4f46e5;
  --accent-deep: #3a32b0;
  --accent-soft: #ecebfb;
  --dawn: #dc9c46;
  --dawn-soft: #f6dcae;
  --ok: #0d9488;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --font-sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand-name { line-height: 1; }
.brand:hover .brand-name { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 16px; font-size: .9rem; }
.site-nav a { color: var(--accent); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.nav-user { font-weight: 600; }
.nav-muted { color: var(--ink-soft); }

/* messages */
.messages { list-style: none; padding: 0; margin: 16px 0 0; }
.msg {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent-soft);
  margin-bottom: 8px;
}

/* main */
main { padding: 40px 20px 64px; }

/* --- hero --- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin: 8px 0 40px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--dawn); }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  line-height: 1.16; letter-spacing: .03em;
  margin: 0 0 20px; text-wrap: balance;
}
.hero h1 .hl { color: var(--accent); }
.hero .sub { color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 26px; max-width: 34em; }

/* hero の夜明けシーン（ロゴの世界観） */
.scene {
  position: relative; border-radius: 22px; overflow: hidden;
  min-height: clamp(240px, 30vw, 340px);
  background: linear-gradient(178deg, #120f26 0%, #211a3c 55%, #3a2b4e 100%);
  box-shadow: 0 1px 2px rgba(20,20,50,.05), 0 16px 40px rgba(20,20,50,.14);
}
.scene-stars {
  position: absolute; inset: 0; opacity: .85;
  background-image:
    radial-gradient(1.4px 1.4px at 15% 24%, #fff, transparent),
    radial-gradient(1px 1px at 32% 42%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 68% 20%, #fff, transparent),
    radial-gradient(1px 1px at 82% 38%, #e9e2ff, transparent),
    radial-gradient(1px 1px at 48% 16%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 90% 15%, #fff, transparent),
    radial-gradient(1px 1px at 24% 60%, #cbd0ff, transparent),
    radial-gradient(1px 1px at 58% 52%, #fff, transparent);
}
.scene-glow {
  position: absolute; left: 63%; top: 34%; width: 180px; height: 180px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(240,180,90,.5), rgba(240,180,90,0) 62%);
}
.scene-mark {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: clamp(140px, 20vw, 200px); height: auto;
}
.scene-cap {
  position: absolute; left: 0; right: 0; bottom: 15px; text-align: center;
  color: rgba(255,255,255,.6); font-family: var(--font-serif);
  font-size: .8rem; letter-spacing: .16em;
}
@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
  .scene { order: -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .scene-glow { animation: scene-tw 3.8s ease-in-out infinite; }
  @keyframes scene-tw { 0%, 100% { opacity: .9; } 50% { opacity: .5; } }
}

/* --- トップの新着・更新された世界観 --- */
.home-worlds { margin-top: 8px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.section-head h2 { margin: 0; font-size: 1.4rem; font-family: var(--font-serif); font-weight: 600; letter-spacing: .04em; }
.more-link { font-size: .88rem; color: var(--accent); text-decoration: none; white-space: nowrap; }
.more-link:hover { text-decoration: underline; }

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--ink-soft);
}

/* --- nav buttons --- */
.logout-form { display: inline; margin: 0; }
.linkbtn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.linkbtn:hover { text-decoration: underline; }

/* --- buttons --- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 9px 18px;
  border: none;
  border-radius: 9px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--accent-deep); }
.btn-x {
  background: #111;
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent-soft); filter: none; }
.cta-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-guide { margin: 16px 0 0; font-size: .9rem; }
.hero-guide a { color: var(--accent); text-decoration: none; font-weight: 600; }
.hero-guide a:hover { text-decoration: underline; }

/* --- forms --- */
.auth-card, .form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 30px;
  max-width: 460px;
  margin: 8px auto;
  box-shadow: 0 1px 2px rgba(20,22,30,.04), 0 4px 14px rgba(20,22,30,.04);
}
.form-card { max-width: 560px; }
.auth-card h1, .form-card h1 { margin: 0 0 18px; font-size: 1.4rem; }
.form-lead { color: var(--ink-soft); font-size: .9rem; margin: -8px 0 18px; }
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 5px; }
.form-row label { font-weight: 600; font-size: .9rem; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="url"],
.form-row textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-row .help { color: var(--ink-soft); font-size: .8rem; }
.form-row .errorlist { color: #be123c; font-size: .82rem; margin: 2px 0 0; padding-left: 18px; }
.auth-alt { margin-top: 18px; font-size: .9rem; color: var(--ink-soft); }

/* --- page head --- */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.page-head h1 { font-size: 1.75rem; margin: 0; font-family: var(--font-serif); font-weight: 600; letter-spacing: .04em; }

/* --- wiki list --- */
.wiki-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.wiki-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.wiki-title { font-size: 1.15rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.wiki-title:hover { color: var(--accent); }
.wiki-desc { color: var(--ink-soft); margin: 6px 0; }
.wiki-meta { color: var(--ink-faint, var(--ink-soft)); font-size: .82rem; }

/* --- wiki detail --- */
.cover {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
}
.prose { margin: 14px 0 8px; color: var(--ink); }
.block { margin-top: 34px; }
.block h2 {
  font-size: 1.15rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.page-list, .work-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.cat-tag {
  display: inline-block;
  font-size: .72rem;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 8px;
  border-radius: 20px;
  margin-right: 6px;
}
.work-list a { color: var(--accent); }
.empty { color: var(--ink-soft); }

/* --- work cards --- */
.work-cards { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.work-title { font-size: 1.1rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.work-title:hover { text-decoration: underline; }
.work-meta { color: var(--ink-soft); font-size: .85rem; margin: 6px 0; }
.work-meta a { color: var(--accent); }
.work-summary { margin: 6px 0 12px; }
.work-actions { display: flex; gap: 14px; align-items: center; }
.linkbtn.danger { color: #be123c; }

/* --- characters --- */
.chart-image {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: block;
  margin: 8px 0;
}
.chart-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.char-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.char-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.char-card a { color: var(--ink); text-decoration: none; font-weight: 600; }
.char-card a:hover { color: var(--accent); }
.add-menu { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* --- section nav (world主要セクションへの入り口) --- */
.section-nav { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.section-tab {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
}
.section-tab:hover { background: var(--accent); color: #fff; }

/* --- footer --- */
.footer-inner { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.footer-link { color: var(--accent); text-decoration: none; font-size: .85rem; }
.footer-link:hover { text-decoration: underline; }

/* --- markdown guide --- */
.md-guide { display: grid; gap: 26px; margin-top: 24px; }
.md-guide-item h2 { font-size: 1.1rem; margin: 0 0 10px; }
.md-guide-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.md-guide-src, .md-guide-out {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.col-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-soft);
  padding: 7px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.md-guide-src pre {
  margin: 0;
  padding: 12px 14px;
  font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace);
  font-size: .82rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-x: auto;
}
.md-guide-out .md-body { padding: 12px 14px; }
.md-guide-out .md-body > :first-child { margin-top: 0; }
.md-guide-out .md-body > :last-child { margin-bottom: 0; }
.md-guide-tip {
  margin-top: 28px;
  padding: 14px 18px;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: .92rem;
}
@media (max-width: 620px) {
  .md-guide-cols { grid-template-columns: 1fr; }
}

/* --- 本文画像・挿入ツール --- */
.img-tools { display: flex; align-items: center; gap: 12px; margin: 6px 0 4px; }
.img-status { font-size: .82rem; color: var(--ink-soft); }
.md-body img { max-width: 100%; height: auto; border-radius: 8px; }

/* --- template reference (details) --- */
.template-ref {
  margin: 0 0 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.template-ref summary {
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--accent);
}
.template-pre {
  margin: 0;
  padding: 12px 16px;
  overflow-x: auto;
  font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace);
  font-size: .8rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
  white-space: pre-wrap;
}

/* --- pagination --- */
.pagination { display: flex; gap: 16px; align-items: center; margin-top: 22px; color: var(--ink-soft); }
.pagination a { color: var(--accent); text-decoration: none; }

/* --- select / textarea --- */
.form-row select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
}
.wide-form { max-width: 760px; }
.form-actions { display: flex; gap: 12px; align-items: center; }
.md-hint { color: var(--ink-soft); font-size: .82rem; margin: -4px 0 14px; }
.md-hint code { background: var(--surface-2); padding: 0 4px; border-radius: 4px; }

/* --- breadcrumb / heads --- */
.crumb { font-size: .85rem; color: var(--ink-soft); margin: 0 0 6px; }
.crumb a { color: var(--accent); text-decoration: none; }
.head-actions { display: flex; gap: 10px; align-items: center; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.block-head h2 { border: none; padding: 0; }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }

/* --- prose (Markdown output) --- */
.md-body { line-height: 1.8; }
.md-body h1, .md-body h2, .md-body h3 { line-height: 1.3; margin: 1.4em 0 .5em; }
.md-body h1 { font-size: 1.5rem; }
.md-body h2 { font-size: 1.25rem; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.md-body h3 { font-size: 1.1rem; }
.md-body p { margin: .8em 0; }
.md-body ul, .md-body ol { padding-left: 1.4em; }
.md-body li { margin: .3em 0; }
.md-body a { color: var(--accent); }
.md-body code {
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 5px;
  font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace);
  font-size: .9em;
}
.md-body pre {
  background: var(--surface-2);
  padding: 14px 16px;
  border-radius: 10px;
  overflow-x: auto;
}
.md-body pre code { background: none; padding: 0; }
.md-body blockquote {
  border-left: 3px solid var(--border);
  margin: 1em 0;
  padding: 2px 0 2px 14px;
  color: var(--ink-soft);
}
.md-body table { border-collapse: collapse; margin: 1em 0; }
.md-body th, .md-body td { border: 1px solid var(--border); padding: 6px 10px; }

.old-notice {
  background: #fff7e6;
  border: 1px solid #f0d9a8;
  color: #7c4a03;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .9rem;
}
.rev-label { color: var(--ink-soft); font-weight: 400; }

/* --- history table --- */
.table-scroll { overflow-x: auto; }
.history { border-collapse: collapse; width: 100%; margin-top: 18px; font-size: .9rem; }
.history th, .history td { border-bottom: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.history th { color: var(--ink-soft); font-weight: 600; }
.history .nowrap { white-space: nowrap; }
.row-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-actions a { color: var(--accent); text-decoration: none; }
.inline-form { display: inline; margin: 0; }
.badge-current {
  display: inline-block;
  font-size: .68rem;
  background: var(--ok);
  color: #fff;
  padding: 1px 7px;
  border-radius: 20px;
  margin-left: 5px;
}

/* --- diff --- */
.diff {
  margin-top: 16px;
  font-family: var(--font-mono, ui-monospace, Menlo, Consolas, monospace);
  font-size: .85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: auto;
}
.diff > div { padding: 2px 12px; white-space: pre-wrap; word-break: break-all; }
.d-add { background: #e6f6ea; color: #14622a; }
.d-del { background: #fce8e8; color: #8a1f1f; }
.d-hunk { background: var(--surface-2); color: var(--ink-soft); }
.d-meta { color: var(--ink-faint, var(--ink-soft)); }
.d-ctx { color: var(--ink); }

@media (prefers-color-scheme: dark) {
  .old-notice { background: #33280f; border-color: #6b551f; color: #fbbf24; }
  .d-add { background: #10321a; color: #7ee29a; }
  .d-del { background: #331515; color: #f0a0a0; }
}

/* --- 見出しの明朝化（物語性） --- */
.block h2, .block-head h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: .03em; }

/* --- 世界観カード（トップ・一覧の共通） --- */
.wgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}
.wcard {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,20,50,.04), 0 12px 30px rgba(20,20,50,.06);
  transition: transform .26s ease, box-shadow .26s ease;
}
.wcard:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(20,20,50,.05), 0 20px 40px rgba(20,20,50,.12); }
.wc-cover {
  position: relative; display: block;
  aspect-ratio: 16 / 10;
  background-size: cover; background-position: center;
  overflow: hidden;
}
.wc-g0 { background: linear-gradient(140deg, #3b3486, #5a4bd8); }
.wc-g1 { background: linear-gradient(140deg, #243a66, #4f6bcf); }
.wc-g2 { background: linear-gradient(140deg, #472f6e, #7d5bce); }
.wc-g3 { background: linear-gradient(140deg, #5a2f43, #b0603c); }
.wc-g4 { background: linear-gradient(140deg, #22243f, #3f4d86); }
.wc-g5 { background: linear-gradient(140deg, #173a4a, #2f7a86); }
.wc-mono {
  position: absolute; right: -4px; bottom: -16px;
  font-family: var(--font-serif); font-weight: 600;
  font-size: 5.4rem; line-height: 1; color: rgba(255,255,255,.17);
}
.wc-spark { position: absolute; left: 15px; top: 13px; width: 19px; height: 19px; color: var(--dawn-soft); }
.wc-hz { position: absolute; left: 14px; right: 14px; bottom: 15px; height: 1.5px; background: rgba(255,255,255,.5); border-radius: 2px; }
.wc-body { display: flex; flex-direction: column; gap: 7px; padding: 15px 16px 16px; flex: 1; }
.wc-hash { font-size: .72rem; color: var(--accent); font-weight: 700; }
.wc-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; letter-spacing: .02em; line-height: 1.35; margin: 0; }
.wc-title a { color: var(--ink); text-decoration: none; }
.wc-title a:hover { color: var(--accent); }
.wc-desc { font-size: .86rem; color: var(--ink-soft); margin: 0; flex: 1; }
.wc-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: .74rem; color: var(--ink-faint);
  padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--border);
}
.wc-fd { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.wc-fd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-av {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: .6rem; font-weight: 800;
}
.wc-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .wgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .wgrid { grid-template-columns: 1fr; } }

/* --- はじめてガイド --- */
.guide-lead { color: var(--ink-soft); font-size: 1rem; max-width: 62ch; margin: 6px 0 0; }
.guide-block { margin-top: 40px; }
.guide-h {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 1.35rem; letter-spacing: .03em;
  margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.guide-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.guide-step {
  display: flex; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
}
.step-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem;
}
.guide-step h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; margin: 3px 0 6px; }
.guide-step p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.guide-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.guide-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.guide-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; margin: 0 0 6px; }
.guide-card p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.guide-sample {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--accent-soft); border-radius: 16px; padding: 22px 24px;
}
.guide-sample .guide-h { border: none; padding: 0; margin: 6px 0; }
.guide-sample p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.guide-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
@media (max-width: 560px) { .guide-cards { grid-template-columns: 1fr; } }

/* --- ガイド冒頭のインフォグラフィック --- */
.appeal { margin: 8px 0 8px; }
.appeal-h { font-family: var(--font-serif); font-weight: 600; font-size: 1.4rem; letter-spacing: .04em; margin: 0 0 6px; }
.appeal-lead { color: var(--ink-soft); margin: 0 0 22px; max-width: 60ch; }
.appeal-flow { display: flex; align-items: stretch; gap: 12px; }
.appeal-step {
  flex: 1; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 16px 20px;
  box-shadow: 0 1px 2px rgba(20,20,50,.04), 0 10px 26px rgba(20,20,50,.05);
}
.appeal-art {
  background: linear-gradient(180deg, var(--accent-soft), transparent 88%);
  border-radius: 12px; padding: 8px; margin-bottom: 14px;
}
.appeal-svg { display: block; width: 100%; height: auto; }
.appeal-svg .a-stroke { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.appeal-svg .a-stroke2 { fill: none; stroke: var(--accent); stroke-width: 2; }
.appeal-svg .a-thin { fill: none; stroke: var(--accent); stroke-width: 1.6; opacity: .38; }
.appeal-svg .a-dthin { fill: none; stroke: var(--dawn); stroke-width: 1.8; opacity: .75; stroke-linecap: round; }
.appeal-svg .a-line { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .32; stroke-linecap: round; }
.appeal-svg .a-accent { fill: var(--accent); }
.appeal-svg .a-soft { fill: var(--accent-soft); }
.appeal-svg .a-soft2 { fill: #a9a3ec; }
.appeal-svg .a-dawn { fill: var(--dawn); }
.appeal-svg .a-dawnf { fill: #e6b566; }
.appeal-svg .a-paper { fill: var(--surface); stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; }
.appeal-step h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; margin: 0 0 8px; text-align: center; }
.appeal-step p { margin: 0; color: var(--ink-soft); font-size: .86rem; }
.appeal-arrow { align-self: center; flex: none; color: var(--accent); font-size: 1.5rem; font-weight: 700; }
@media (max-width: 720px) {
  .appeal-flow { flex-direction: column; }
  .appeal-arrow { transform: rotate(90deg); align-self: center; }
}
