:root {
  --ink: #1c2a38;
  --blue: #1e6b99;
  --blue-dark: #154d70;
  --paper: #fffdf6;
  --note: #fff3a0;
  --note-edge: #f0d24a;
  --sky: #cfeafb;
  --sky2: #9fd4f3;
  --muted: #5a6a78;
  --line: #ead98a;
  --danger: #9b1c16;
  --ok: #146c43;
  --ok-bg: #e5f6ec;
  --warn-bg: #fff1d6;
  --err-bg: #fdecea;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 70, 110, 0.12);
  --grass-h: 60px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  padding-bottom: calc(var(--grass-h) + env(safe-area-inset-bottom, 0px));
}
body {
  font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 520px at 50% -60px, var(--sky2), transparent 72%),
    linear-gradient(
      180deg,
      var(--sky) 0,
      #cfeafb 10vh,
      #d9eef8 28vh,
      #eaf6fb 42vh,
      #f7fbff 52vh,
      #f7fbff 100%
    );
  height: 100%;
  line-height: 1.55;
  font-size: 1.0625rem;
  overflow-x: clip;
  overflow-y: auto;
  position: relative;
}
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
.wrap {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
}
.site-header {
  background: var(--blue);
  color: #fff;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 0 rgba(21, 77, 112, 0.16);
}
.site-header a { color: #fff; text-decoration: none; }
.site-header a:hover { color: #fff; text-decoration: underline; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.logo:hover { text-decoration: none; }
.logo-word { display: inline; }
.logo-word span { color: #ffe27a; }
.logo-mascot {
  display: block;
  width: auto;
  height: 3.125rem;
  flex-shrink: 0;
}
.nav nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.95rem;
}
.nav nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav nav a:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.who {
  font-size: 0.8rem;
  opacity: 0.85;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
header, main, footer { position: relative; z-index: 1; }
main.wrap { padding: 28px 0 56px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.6rem, 5vw, 2.15rem); }
h2 { font-size: 1.3rem; color: var(--blue-dark); }
.lede { font-size: 1.1rem; color: var(--muted); margin-top: 0; }
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}
@media (min-width: 740px) {
  .hero { grid-template-columns: 0.9fr 1.1fr; }
}
.note {
  background: var(--note);
  border: 1px solid var(--note-edge);
  border-radius: 2px 2px 3px 3px;
  box-shadow: 4px 8px 0 rgba(180, 150, 20, 0.18), var(--shadow);
  padding: 22px 20px 26px;
  transform: rotate(-1.2deg);
  position: relative;
}
.note:after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 90px;
  height: 18px;
  margin-left: -45px;
  background: rgba(255,255,255,0.45);
  transform: rotate(-2deg);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.note h1 { margin-top: 8px; }
.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
}
label, .label {
  display: block;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.92rem;
  font-weight: 650;
  margin: 0 0 6px;
}
.field { margin: 0 0 16px; }
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) {
  .row-3 { grid-template-columns: 1fr 1fr 1fr; }
  .row-2 { grid-template-columns: 1fr 1fr; }
}
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%;
  font: 16px/1.4 system-ui, -apple-system, Segoe UI, sans-serif;
  padding: 12px 12px;
  min-height: 48px;
  border: 1px solid #c9d6e0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid #9fd4f3;
  border-color: var(--blue);
}
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.btn, button, input[type="submit"] {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn:hover, button:hover, input[type="submit"]:hover {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}
.btn-secondary {
  background: #fff;
  color: var(--blue-dark);
  border: 2px solid var(--blue);
}
.btn-danger {
  background: #fff;
  color: var(--danger);
  border: 2px solid var(--danger);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.captcha {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.captcha .sum {
  font-family: system-ui, sans-serif;
  font-weight: 800;
  background: #fff;
  border: 1px dashed var(--blue);
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.captcha input { max-width: 90px; }
.muted { color: var(--muted); }
.flash {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 20px;
  font-family: system-ui, sans-serif;
}
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--err-bg); color: var(--danger); }
.flash-info { background: #e7f3fb; color: var(--blue-dark); }
.list { display: flex; flex-direction: column; gap: 12px; }
.item {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--note-edge);
}
.item.pending { border-left-color: #e39b00; background: #fffdf6; }
.item h3 { font-size: 1.05rem; margin: 0 0 8px; }
.meta { font-family: system-ui, sans-serif; font-size: 0.9rem; color: var(--muted); margin: 0 0 10px; }
.empty {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.site-footer {
  padding: 24px 0 20px;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.92rem;
}
.site-footer p { margin: 0 0 6px; }
.help { font-size: 0.95rem; }
.help ul { padding-left: 1.2em; }
.reminder-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  background: #fff;
  border: 1px solid #d7e3ec;
  border-radius: 10px;
  overflow: hidden;
}
.reminder-row {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  padding: 7px 12px;
  border-bottom: 1px solid #e6eef4;
}
.reminder-row:last-child { border-bottom: 0; }
.reminder-row.pending { background: #fffdf6; }
.reminder-main { flex: 1; min-width: 0; }
.reminder-title {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.reminder-title a { font-weight: 600; }
.reminder-meta {
  margin: 2px 0 0;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}
.reminder-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
}
.reminder-actions form { margin: 0; display: inline; }
.reminder-actions a,
.reminder-actions button {
  appearance: none;
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--blue);
  font: 650 0.82rem/1 system-ui, -apple-system, Segoe UI, sans-serif;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.reminder-actions button { color: var(--danger); }
.reminder-actions a:hover,
.reminder-actions button:hover { background: #eef6fb; color: var(--blue-dark); }
.reminder-actions button:hover { color: var(--danger); }
@media (max-width: 560px) {
  .reminder-row { flex-wrap: wrap; align-items: flex-start; padding: 8px 10px; }
  .reminder-main { flex: 1 1 100%; }
  .reminder-actions { margin-left: auto; }
}

/* Scene: sun and grass (decorative, behind content) */
.scene-sun {
  position: absolute;
  top: 3.6rem;
  right: -2.2rem;
  width: min(240px, 48vw);
  height: min(240px, 48vw);
  pointer-events: none;
  z-index: 0;
  opacity: .7;
}
.scene-clouds {
  position: absolute;
  top: 3.4rem;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.scene-clouds-svg { display: block; width: 100%; height: 100%; }
.scene-clouds-svg .cloud { transform-box: fill-box; transform-origin: 50% 50%; }
.scene-clouds-svg .c1 { animation: hm-cloud-drift 90s ease-in-out infinite; }
.scene-clouds-svg .c2 { animation: hm-cloud-drift 110s ease-in-out infinite 4s; }
.scene-clouds-svg .c3 { animation: hm-cloud-drift 80s ease-in-out infinite 8s; }
.scene-sun-svg { display: block; width: 100%; height: 100%; }
.scene-sun-svg .sun-rays { transform-origin: 110px 110px; animation: hm-sun-spin 80s linear infinite; }
.scene-sun-svg { animation: hm-sun-glow 10s ease-in-out infinite; }
.scene-grass {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--grass-h) + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  z-index: 0;
  background: #b4d89c;
}
.scene-grass-svg {
  display: block;
  width: 100%;
  height: var(--grass-h);
}
.grass-blades .blade { transform-box: fill-box; transform-origin: 50% 100%; }
.grass-blades .b1, .grass-blades .b4 { animation: hm-blade 5.5s ease-in-out infinite; }
.grass-blades .b2, .grass-blades .b5, .grass-blades .b7 { animation: hm-blade 6.8s ease-in-out infinite .6s; }
.grass-blades .b3, .grass-blades .b6 { animation: hm-blade 7.5s ease-in-out infinite 1.1s; }
@keyframes hm-sun-glow {
  0%, 100% { opacity: .86; }
  50% { opacity: 1; }
}
@keyframes hm-sun-spin { to { transform: rotate(360deg); } }
@keyframes hm-blade {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(5deg); }
}
@keyframes hm-cloud-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(22px); }
}
@media (max-width: 560px) {
  :root { --grass-h: 46px; }
  main.wrap { padding-top: 52px; }
  .scene-sun { top: 6.35rem; right: -0.35rem; width: 108px; height: 108px; opacity: .82; }
  .scene-clouds { top: 5.8rem; height: 140px; }
  .scene-clouds-svg .c2 { display: none; }
  .logo { font-size: 1.35rem; }
  .logo-mascot { width: auto; height: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-sun-svg,
  .scene-sun-svg .sun-rays,
  .grass-blades .blade,
  .scene-clouds-svg .cloud { animation: none; }
}

.faq { margin: 36px 0 8px; }
.faq h2 { margin-bottom: 16px; }
.faq-item { margin: 0 0 18px; }
.faq-item h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.faq-item p { margin: 0; color: var(--ink); }

.guide {
  margin: 0 auto 8px;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guide-intro,
.guide-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
}
.guide-card {
  border-left: 6px solid var(--note-edge);
}
.guide h1 { margin-bottom: 0.55em; }
.guide h2 { margin: 0 0 0.45em; font-size: 1.2rem; }
.guide p, .guide li { margin: 0 0 0.9em; }
.guide-intro > :last-child,
.guide-card > :last-child { margin-bottom: 0; }
.guide-cta { margin: 8px 0 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
}
.site-footer .footer-links a { color: var(--blue); }
@media (max-width: 560px) {
  .guide { gap: 14px; }
  .guide-intro,
  .guide-card { padding: 20px 16px 18px; }
}
