:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #1b1b2b;
  --muted: #5d5d73;
  --accent: #4b3be6;
  --accent-soft: #ecebff;
  --border: #e4e4ee;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111118;
    --surface: #1b1b25;
    --text: #ececf4;
    --muted: #a5a5bb;
    --accent: #8d82ff;
    --accent-soft: #26244a;
    --border: #2c2c3a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
  line-height: 1.8;
}
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

header.site { padding: 20px 0; }
header.site .wrap { display: flex; align-items: center; gap: 12px; }
header.site img { width: 36px; height: 36px; border-radius: 9px; }
header.site a.brand { font-weight: 700; color: var(--text); text-decoration: none; }

section.wrap { max-width: 1040px; }
.hero { padding: 32px 16px 24px; display: grid; gap: 24px; align-items: center; text-align: center; }
.hero img.icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 12px 32px rgba(75, 59, 230, .3); }
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin: 20px 0 8px; line-height: 1.3; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); margin: 0 auto 28px; max-width: 30em; }
.hero-art { margin: 0 auto; width: min(300px, 78vw); }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 40px rgba(43, 42, 82, .35)); }
@media (min-width: 820px) {
  .hero { grid-template-columns: 1.2fr 1fr; text-align: left; padding-top: 48px; }
  .hero p.lead { margin-left: 0; }
}

/* 通知カードが右へ流れて消え、また戻るループ */
.hero-art .n { animation: purge 6s ease-in-out infinite; }
.hero-art .n2 { animation-delay: .15s; }
.hero-art .n3 { animation-delay: .3s; }
.hero-art .n4 { animation-delay: .45s; }
.hero-art .swoosh, .hero-art .done { animation: show 6s ease-in-out infinite; }
@keyframes purge {
  0%, 30% { transform: translateX(0); opacity: 1; }
  45%, 85% { transform: translateX(260px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes show {
  0%, 40% { opacity: 0; }
  50%, 80% { opacity: 1; }
  92%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .n, .hero-art .swoosh, .hero-art .done { animation: none; }
  .hero-art .swoosh, .hero-art .done { opacity: 0; }
}

.section-title { font-size: clamp(1.4rem, 4vw, 1.9rem); text-align: center; margin: 40px 0 20px; }
.scene-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.scene { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 12px 12px 18px; }
.scene svg { width: 100%; height: auto; display: block; border-radius: 14px; }
.scene h3 { margin: 14px 6px 4px; font-size: 1.1rem; line-height: 1.5; }
.scene p { margin: 0 6px; color: var(--muted); font-size: .95rem; }

.block.notify { border-color: var(--accent); background: var(--accent-soft); }
#notify-form .row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 10px; }
#notify-form input[type="email"] {
  flex: 1 1 220px; min-width: 0; padding: 14px 16px; font-size: 1rem;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text);
}
#notify-form button {
  padding: 14px 24px; font-size: 1rem; font-weight: 700; border: 0; border-radius: 12px;
  background: var(--accent); color: #fff; cursor: pointer;
}
#notify-form button:disabled { opacity: .6; cursor: wait; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: .35em; }
.form-msg { min-height: 1.6em; margin: 10px 0 0; font-weight: 700; }
.form-msg.ok { color: #1b8a4b; }
.form-msg.ng { color: #c62828; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main .block { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin: 24px 0; }
main .block h2 { margin-top: 0; font-size: 1.25rem; }
.badge {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
}
.badge[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.note { font-size: .85rem; color: var(--muted); margin-top: 10px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 24px 0 48px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .emoji { font-size: 1.6rem; }

section.block { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
section.block h2 { margin-top: 0; font-size: 1.25rem; }

article.doc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin: 8px 0 32px; }
article.doc h1 { font-size: 1.6rem; margin-top: 0; line-height: 1.4; }
article.doc h2 { font-size: 1.15rem; margin-top: 2em; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
article.doc table { border-collapse: collapse; width: 100%; font-size: .92rem; display: block; overflow-x: auto; }
article.doc th, article.doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
article.doc th { background: var(--accent-soft); white-space: nowrap; }
.meta { color: var(--muted); font-size: .9rem; }

footer.site { padding: 32px 0 48px; color: var(--muted); font-size: .9rem; text-align: center; }
footer.site nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 8px; }
