:root {
  --paper: #f4ead3;
  --paper-2: #ebdcbd;
  --card: #fbf5e7;
  --ink: #1d1b1e;
  --ink-2: #4a443e;
  --muted: #776d60;
  --red: #c4322a;
  --red-dark: #9e231d;
  --gold: #b8913f;
  --line: #d9c7a3;
  --radius: 14px;
  --max: 1100px;
  --serif: "Shippori Mincho", "Noto Serif JP", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
}
img { max-width: 100%; display: block; }
a { color: var(--red-dark); }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 234, 211, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: .95rem; font-weight: 500; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(244,234,211,.92) 45%, rgba(244,234,211,.25) 100%), url("img/bg-map.webp") center 35% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 40px; }
.hero .sun { position: absolute; right: 8%; top: 40px; width: 360px; height: 360px; border-radius: 50%; background: var(--red); opacity: .88; filter: blur(.3px); }
.hero-art { position: relative; justify-self: center; }
.hero-art img { position: relative; max-height: 520px; width: auto; height: auto; filter: drop-shadow(0 16px 24px rgba(0,0,0,.25)); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-dark); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 2px solid var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; color: #fff; }
.btn-light { background: transparent; color: var(--ink); }
.btn-light:hover { background: var(--card); color: var(--ink); }
.btn svg { width: 20px; height: 20px; }
.facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: var(--ink-2); font-size: .95rem; }
.facts b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }

/* Sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--ink-2); }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-family: var(--serif); color: var(--red); font-size: 1.6rem; font-weight: 700; line-height: 1; margin-bottom: 8px; }
.muted { color: var(--muted); }

.chapter { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.chapter img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.chapter .body { padding: 16px; }
.chapter .tag { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red-dark); }
.chapter h3 { margin: 4px 0 6px; }
.chapter p { font-size: .92rem; color: var(--ink-2); margin: 0; }

.boss { text-align: center; padding: 16px 12px 18px; }
.boss img { height: 170px; width: auto; margin: 0 auto 10px; object-fit: contain; }
.boss h3 { margin: 0; }
.boss p { font-size: .88rem; color: var(--muted); margin: 2px 0 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table th { background: var(--ink); color: var(--paper); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

.seal-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.seal-list li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: .93rem; }
.seal-list b { color: var(--ink); }
.seal-list span { color: var(--red-dark); font-weight: 600; white-space: nowrap; }

/* Docs (privacy / terms / support) */
.page-head { padding: 52px 0 28px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.page-head p { color: var(--ink-2); margin: 0; }
.doc { max-width: 780px; padding: 40px 20px 72px; margin: 0 auto; }
.doc h2 { font-size: 1.45rem; margin-top: 2em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px; padding: 16px 18px; margin: 20px 0; }

.contact-card { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 26px; margin: 8px 0 32px; }
.contact-card h2 { margin: 0 0 4px; font-size: 1.4rem; color: var(--paper); }
.contact-card p { margin: 0; color: #d8cdb6; }
.contact-card .btn { background: var(--red); border-color: var(--red); color: #fff; }
.contact-card .btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.contact-card > div { flex: 1 1 260px; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
details[open] { padding-bottom: 14px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--red); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #cfc4ad; padding: 36px 0; font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--paper); text-decoration: none; margin-right: 16px; }
.site-footer a:hover { text-decoration: underline; color: #fff; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; }
  .hero { background: linear-gradient(180deg, rgba(244,234,211,.95) 0%, rgba(244,234,211,.85) 60%, rgba(244,234,211,.6) 100%), url("img/bg-map.webp") center / cover no-repeat; }
  .hero .sun { width: 240px; height: 240px; right: -40px; top: auto; bottom: 60px; }
  .hero-art img { max-height: 360px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid-3, .grid-4, .seal-list { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; }
  .nav a { padding: 5px 10px; font-size: .9rem; }
  section.block { padding: 48px 0; }
}
