:root {
  --bg: #fffaf2;
  --surface: #ffffff;
  --soft: #fff1df;
  --ink: #2b2118;
  --muted: #756657;
  --line: #eadbc7;
  --accent: #e5792f;
  --accent-dark: #b8541e;
  --green: #247a54;
  --red: #b13c2f;
  --shadow: 0 16px 40px rgba(74, 45, 20, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  line-height: 1.75;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 32px)); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 242, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 18px; }
.brand { color: var(--ink); font-weight: 800; letter-spacing: .02em; font-size: 1.25rem; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 16px; font-size: .93rem; }
.site-nav a { color: var(--ink); font-weight: 650; }
.site-nav a.active { color: var(--accent-dark); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 14px;
  border-radius: 999px;
}
.hero { padding: 72px 0 56px; background: linear-gradient(135deg, #fffaf2 0%, #ffe4c3 100%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 42px; align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--accent-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
h1, h2, h3 { line-height: 1.35; margin-top: 0; }
h1 { font-size: clamp(2.25rem, 6vw, 4.6rem); letter-spacing: -.04em; margin-bottom: 20px; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); letter-spacing: -.03em; }
h3 { font-size: 1.16rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
.hero-note { color: var(--muted); font-size: .95rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  min-height: 44px;
  font-weight: 800;
  cursor: pointer;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none !important;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost:hover { background: var(--soft); }
.btn.full { width: 100%; }
.quest-card, .panel, .side-card, .form-card, .cta-box, .empty-state, .quest-summary-box, .related-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.quest-card { padding: 28px; transform: rotate(1deg); }
.quest-label, .tag {
  display: inline-flex;
  background: var(--soft);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.section { padding: 56px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 26px; }
.section-head.row { display: flex; justify-content: space-between; align-items: end; gap: 20px; max-width: none; }
.character-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.character {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  min-height: 110px;
}
.character strong { display: block; font-size: 1.06rem; margin-bottom: 6px; }
.character span { color: var(--muted); font-size: .9rem; }
.character.muted { background: #f7efe5; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.check-list, .no-list { padding-left: 1.15em; }
.check-list li::marker { color: var(--green); }
.no-list li::marker { color: var(--red); }
.panel { padding: 26px; }
.panel.ok { border-top: 5px solid var(--green); }
.panel.no { border-top: 5px solid var(--red); }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.report-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.report-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--soft); }
.report-card > div { padding: 18px; }
.report-card h2, .report-card h3 { margin-bottom: 8px; }
.report-card p { color: var(--muted); font-size: .95rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .88rem; }
.meta-row span { background: #f6ecdf; border-radius: 999px; padding: 4px 9px; }
.meta-row.large { font-size: .95rem; }
.cta-section { padding: 56px 0 72px; }
.cta-box { padding: 34px; text-align: center; }
.page-title { padding: 52px 0 28px; background: linear-gradient(135deg, #fffaf2 0%, #ffe9cf 100%); border-bottom: 1px solid var(--line); }
.page-title h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.form-card { padding: 24px; }
.form-card label { display: block; font-weight: 800; margin-bottom: 16px; }
.form-card label span { color: var(--red); font-size: .78rem; margin-left: 4px; }
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree-box { background: var(--soft); border-radius: 18px; padding: 14px 16px; margin: 12px 0 20px; color: var(--muted); }
.form-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.side-card { padding: 20px; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.flow div { padding: 18px; background: var(--soft); border-radius: 18px; }
.flow strong { display: block; font-size: 1.1rem; }
.flow span { color: var(--muted); }
.flash { margin: 18px 0; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.flash-success { border-color: #b7dfc8; background: #eefaf3; color: #20553b; }
.flash-error { border-color: #edbeb7; background: #fff0ee; color: #7a2118; }
.empty-state { padding: 36px; text-align: center; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.article-body { min-width: 0; }
.article-body h2 { margin-top: 34px; }
.main-photo { margin: 0 0 24px; }
.main-photo img { width: 100%; border-radius: 24px; box-shadow: var(--shadow); }
.quest-summary-box, .related-box { padding: 22px; margin: 22px 0; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.photo-grid img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
.article-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.def-list { display: grid; gap: 8px; }
.def-list dt { font-weight: 800; }
.def-list dd { margin: 0 0 8px; color: var(--muted); }
.site-footer { background: #2b2118; color: #fff8ee; padding: 36px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.site-footer a { color: #fff8ee; display: block; margin-bottom: 8px; }
.site-footer p { color: #ddc8ad; }
.hashtags { font-weight: 800; color: #fff !important; }
.footer-copy { color: #c8b392; font-size: .85rem; margin-top: 20px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.filter-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.filter-bar input, .filter-bar select { margin: 0; }
.admin-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { background: var(--soft); font-size: .88rem; }
.admin-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.full-span { grid-column: 1 / -1; }
.check-row { margin: 10px 0; }
.check-row label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.check-row input { width: auto; margin: 0; }
@media (max-width: 920px) {
  .site-header { position: static; }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .site-nav { flex-wrap: wrap; gap: 10px; }
  .hero-grid, .two-col, .form-layout, .article-layout, .footer-grid, .admin-edit-grid { grid-template-columns: 1fr; }
  .character-grid { grid-template-columns: repeat(2, 1fr); }
  .report-grid { grid-template-columns: 1fr 1fr; }
  .form-side, .article-side { position: static; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1120px); }
  .hero { padding: 46px 0; }
  .section { padding: 40px 0; }
  .grid-2, .report-grid, .character-grid, .flow, .photo-grid { grid-template-columns: 1fr; }
  .quest-card { transform: none; }
  .filter-bar { flex-direction: column; align-items: stretch; }
}
