:root {
  --cream: #fffdf8;
  --peach: #fff3e6;
  --mint: #edf7f1;
  --sky: #eaf4fb;
  --text: #4d4544;
  --muted: #7d7573;
  --green: #4fae66;
  --green-dark: #3b9352;
  --green-soft: #dff3e5;
  --blue: #5aa9dc;
  --blue-soft: #e1f0fa;
  --yellow: #ffda71;
  --yellow-soft: #fff4cc;
  --coral: #ef8a7c;
  --coral-soft: #fde6e2;
  --line: #ece4d8;
  --white: #ffffff;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 8px 24px rgba(120, 90, 50, .08);
  --maxw: 1040px;
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .5em; font-weight: 700; letter-spacing: .03em; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 900; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 900; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.marker { background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding: 0 .1em; }
.marker-pink { background: linear-gradient(transparent 62%, var(--coral-soft) 62%, var(--coral-soft) 92%, transparent 92%); }

.section { padding: 72px 0; position: relative; }
.bg-cream { background: var(--cream); }
.bg-peach { background: var(--peach); }
.bg-mint { background: var(--mint); }
.bg-sky { background: var(--sky); }
.bg-white { background: var(--white); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head .kicker {
  display: inline-block; background: var(--white); border: 2px solid var(--line); color: var(--green-dark);
  font-weight: 700; font-size: .85rem; padding: 3px 14px; border-radius: 999px; margin-bottom: 12px;
}
.section-head p { color: var(--muted); }

.wave { display: block; width: 100%; height: 48px; margin-bottom: -1px; }
.wave svg { width: 100%; height: 100%; display: block; }
.wave-top { margin-top: -48px; position: relative; z-index: 1; transform: rotate(180deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: .15s ease;
  text-decoration: none !important; line-height: 1.3; font-family: inherit;
}
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 4px 0 var(--green-dark); }
.btn-primary:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--green-dark); }
.btn-secondary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 4px 0 #3f8fc2; }
.btn-secondary:hover { transform: translateY(2px); box-shadow: 0 2px 0 #3f8fc2; }
.btn-outline { background: var(--white); color: var(--text); border-color: var(--line); box-shadow: 0 4px 0 var(--line); }
.btn-outline:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--line); }
.btn-lg { padding: 16px 34px; font-size: 1.1rem; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, .94); backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.brand-mark { width: 40px; height: 40px; flex: none; display: block; }
.brand-name { font-weight: 900; font-size: 1.15rem; line-height: 1.1; white-space: nowrap; }
.brand-sub { font-size: .7rem; color: var(--muted); font-weight: 700; display: block; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text); font-weight: 700; font-size: .95rem; }
.nav a:hover { color: var(--green-dark); text-decoration: none; }
.nav .btn { padding: 9px 18px; font-size: .92rem; }

.nav-simple { display: flex; align-items: center; gap: 18px; }
.nav-simple a { color: var(--text); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 2px solid var(--line); padding: 8px 20px 18px; box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px dashed var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
}

.hero {
  padding: 56px 0 40px; overflow: hidden;
  background-color: var(--cream);
  background-image: radial-gradient(#ebe3d6 1.3px, transparent 1.3px);
  background-size: 24px 24px;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.hero-copy { position: relative; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 1.08rem; color: var(--text); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 14px; align-items: center; }
.hero-note { color: var(--muted); font-size: .875rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.badge {
  display: inline-block; padding: 4px 13px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: var(--white); color: var(--text); border: 2px solid var(--line);
}
.badge-green { background: var(--green-soft); border-color: var(--green-soft); color: var(--green-dark); }
.badge-yellow { background: var(--yellow-soft); border-color: var(--yellow-soft); color: #9a7100; }
.badge-blue { background: var(--blue-soft); border-color: var(--blue-soft); color: #2f7db2; }
.hero-figure { position: relative; display: grid; place-items: center; }
.hero-figure::before {
  content: ""; position: absolute; inset: 6% 4%; border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%;
  background: var(--peach); z-index: 0;
}
.hero-figure img { position: relative; z-index: 1; width: 92%; max-width: 480px; }
.stamp {
  position: absolute; right: 2%; top: 0; z-index: 2;
  width: 108px; height: 108px; border-radius: 50%; border: 3px dashed var(--coral);
  background: var(--white); color: var(--coral); display: grid; place-items: center; text-align: center;
  transform: rotate(-10deg); line-height: 1.15; font-weight: 900; box-shadow: var(--shadow);
}
.stamp .big { font-size: 1.7rem; }
.stamp .small { font-size: .78rem; }
@media (max-width: 860px) {
  .hero { padding: 40px 0 28px; }
  .hero .container { grid-template-columns: 1fr; gap: 20px; }
  .hero-figure { order: -1; }
  .hero-figure img { width: 80%; max-width: 380px; }
  .stamp { width: 92px; height: 92px; right: 0; }
  .stamp .big { font-size: 1.4rem; }
  .stamp .small { font-size: .66rem; }
}

.feature-strip { padding: 8px 0 56px; }
.feature-strip .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: flex; gap: 14px; align-items: center;
}
.feature .num {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: baseline; justify-content: center; white-space: nowrap;
  font-weight: 900; font-size: 1.25rem; line-height: 64px;
}
.feature .num small { font-size: .7rem; font-weight: 700; }
.feature .num.c1 { background: var(--yellow-soft); color: #9a7100; }
.feature .num.c2 { background: var(--blue-soft); color: #2f7db2; }
.feature .num.c3 { background: var(--green-soft); color: var(--green-dark); }
.feature strong { display: block; font-size: 1rem; }
.feature span { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .feature-strip .container { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.split.reverse > .split-figure { order: -1; }
.split-figure { display: grid; place-items: center; }
.split-figure img { width: 88%; max-width: 420px; }
@media (max-width: 800px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 24px; }
  .split.reverse > .split-figure, .split > .split-figure { order: -1; }
  .split-figure img { width: 70%; max-width: 320px; }
}

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.point {
  position: relative; background: var(--white); border-radius: var(--radius-sm); padding: 30px 22px 22px;
  border: 2px solid var(--line); box-shadow: var(--shadow);
}
.point::before {
  content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 84px; height: 22px; background: var(--yellow); opacity: .85; border-radius: 3px;
}
.point:nth-child(2)::before { background: var(--blue-soft); transform: translateX(-50%) rotate(2deg); }
.point:nth-child(3)::before { background: var(--coral-soft); transform: translateX(-50%) rotate(-2deg); }
.point h3 { font-size: 1.08rem; margin-bottom: 6px; }
.point p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) { .points { grid-template-columns: 1fr; gap: 26px; } }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  border-radius: var(--radius-sm); padding: 22px 20px; border: 2px solid transparent; background: var(--white);
  border-color: var(--line);
}
.tile:nth-child(4n+1) { background: var(--yellow-soft); border-color: var(--yellow-soft); }
.tile:nth-child(4n+2) { background: var(--sky); border-color: var(--sky); }
.tile:nth-child(4n+3) { background: var(--mint); border-color: var(--mint); }
.tile:nth-child(4n+4) { background: var(--peach); border-color: var(--peach); }
.tile h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--muted); font-size: .92rem; }
.tile .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; color: var(--text);
  background: var(--white); padding: 2px 10px; border-radius: 999px; margin-top: 10px; border: 1px solid var(--line);
}
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }
.tile-featured { grid-column: 1 / -1; background: var(--blue-soft) !important; border-color: var(--blue) !important; }
.tile-featured h3 { font-size: 1.15rem; }
.tile-featured .tag { background: var(--white); }

.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 8px; margin: 0 auto 36px; max-width: 900px; }
.people figure { margin: 0; text-align: center; flex: 0 1 160px; }
.people img { width: 100%; max-width: 150px; margin: 0 auto 6px; }
.people figcaption { font-size: .85rem; font-weight: 700; color: var(--muted); }
@media (max-width: 640px) { .people figure { flex-basis: 30%; } .people figcaption { font-size: .75rem; } }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm);
}
.check-list li::before {
  content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-soft); color: var(--green-dark); font-weight: 900;
  display: grid; place-items: center; font-size: .95rem; margin-top: 3px;
}
@media (min-width: 700px) { .check-list { grid-template-columns: 1fr 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 18px; max-width: 860px; margin-inline: auto; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center;
  padding: 20px 24px; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); position: relative;
}
.steps .step-figure { display: grid; place-items: center; }
.steps .step-figure img { width: 130px; height: 110px; object-fit: contain; }
.steps h3 { margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.steps h3::before {
  content: counter(step); flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--yellow); color: var(--text); display: grid; place-items: center; font-weight: 900; font-size: 1rem;
}
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps .note {
  margin-top: 10px; padding: 8px 14px; background: var(--peach); color: #9a5a2a;
  border-radius: var(--radius-sm); font-size: .88rem;
}
@media (max-width: 600px) {
  .steps li { grid-template-columns: 1fr; gap: 8px; text-align: left; padding: 18px; }
  .steps .step-figure img { width: 120px; height: 90px; }
}

.style-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.style-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.style-list .ic {
  flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: .8rem; text-align: center; line-height: 1.1; padding: 4px;
}
.style-list .ic.c1 { background: var(--yellow-soft); color: #9a7100; }
.style-list .ic.c2 { background: var(--blue-soft); color: #2f7db2; }
.style-list .ic.c3 { background: var(--coral-soft); color: #b8564a; }
.style-list h3 { font-size: 1.02rem; margin-bottom: 2px; }
.style-list p { margin: 0; color: var(--muted); font-size: .93rem; }

.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 15px 0; list-style: none; display: flex; align-items: flex-start; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow);
  color: var(--text); display: grid; place-items: center; font-weight: 900; font-size: .9rem; margin-top: 2px;
}
.faq summary::after { content: "＋"; margin-left: auto; color: var(--green-dark); font-weight: 900; flex: none; }
.faq details[open] summary::after { content: "－"; }
.faq .answer { display: flex; gap: 12px; padding: 0 0 16px; color: var(--muted); }
.faq .answer::before {
  content: "A"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft);
  color: var(--green-dark); display: grid; place-items: center; font-weight: 900; font-size: .9rem; margin-top: 2px;
}
.faq .answer p { margin: 0; }
.faq-figure { text-align: center; margin: 0 auto 10px; }
.faq-figure img { width: 180px; margin: 0 auto; }

.cta-band { background: var(--green-soft); padding: 56px 0; }
.cta-band .container { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: center; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--muted); margin-bottom: 20px; }
.cta-band img { width: 100%; max-width: 320px; margin: 0 auto; }
@media (max-width: 760px) { .cta-band .container { grid-template-columns: 1fr; text-align: center; } .cta-band img { max-width: 260px; } }

.site-footer { padding: 32px 0; border-top: 2px solid var(--line); color: var(--muted); font-size: .875rem; background: var(--cream); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer .credit { width: 100%; font-size: .78rem; color: #a39b98; }

.page-head { padding: 48px 0 8px; }
.page-head .container { display: grid; grid-template-columns: 1fr 200px; gap: 20px; align-items: center; max-width: 760px; }
.page-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.page-head img { width: 100%; max-width: 200px; margin: 0 auto; }
@media (max-width: 600px) { .page-head .container { grid-template-columns: 1fr; } .page-head img { max-width: 150px; } }
.form-wrap { max-width: 720px; margin: 0 auto; }
.form-card { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .form-card { padding: 24px 18px; } }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend {
  font-weight: 900; font-size: 1.05rem; padding: 0; margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
legend::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); }
.field { margin-bottom: 20px; }
.field > label, .field .label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { display: inline-block; font-size: .7rem; font-weight: 700; color: #fff; background: var(--coral); padding: 1px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.opt { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--muted); background: var(--peach); padding: 1px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.help { font-size: .85rem; color: var(--muted); margin-top: 4px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px var(--green-soft); }
textarea { min-height: 120px; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237d7573' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.choices { display: grid; gap: 8px; }
.choices.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .choices.cols-2 { grid-template-columns: 1fr; } }
.choice {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border: 2px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; background: var(--white); transition: .15s;
}
.choice:hover { border-color: #d8ccb8; }
.choice input { margin: 5px 0 0; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.consent { padding: 14px 16px; background: var(--peach); border-radius: var(--radius-sm); }
.consent .choice + .choice { margin-top: 8px; }
.form-actions { margin-top: 8px; }
.form-actions .btn { width: 100%; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .95rem; }
.alert-info { background: var(--blue-soft); color: #2f7db2; }
.alert-success { background: var(--green-soft); color: var(--green-dark); }
.alert-warn { background: var(--yellow-soft); color: #9a7100; }
.alert-danger { background: var(--coral-soft); color: #b8564a; }
.alert p:last-child { margin: 0; }
.hidden { display: none !important; }
.thanks { text-align: center; padding: 16px 0; }
.thanks img { width: 220px; margin: 0 auto 14px; }

.doc { max-width: 780px; margin: 0 auto; }
.doc h2 { font-size: 1.3rem; margin-top: 2.2em; padding-bottom: .3em; border-bottom: 3px dotted var(--line); }
.doc h3 { font-size: 1.05rem; margin-top: 1.6em; }
.doc .updated { color: var(--muted); font-size: .875rem; }

.gate { max-width: 720px; margin: 0 auto; padding: 40px 20px 60px; }
.gate-card { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.gate-progress { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; margin-bottom: 12px; font-weight: 700; }
.gate-progress .hint { font-weight: 500; font-size: .82rem; color: var(--muted); }
.gate-bar { height: 10px; background: var(--peach); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.gate-bar > span { display: block; height: 100%; width: 0; background: var(--green); transition: width .4s; }
.ad-slot {
  position: relative; width: 100%; min-height: 280px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--cream); border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); text-align: center;
}
.ad-slot iframe, .ad-slot video { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.ad-slot .placeholder { padding: 24px; font-size: .9rem; }
.ad-slot .placeholder img { width: 110px; margin: 0 auto 10px; }
.ad-slot .placeholder strong { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 4px; }
.ad-slot .placeholder span { display: block; font-size: .88rem; }
.ad-slot .placeholder .btn { margin-top: 12px; }
.gate-timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.gate-timer .count { font-weight: 700; font-size: 1.05rem; }
.gate-timer .count span { color: var(--green-dark); font-size: 1.5rem; font-weight: 900; }
.gate-done { text-align: center; padding: 16px 0 6px; }
.gate-done img { width: 220px; margin: 0 auto 14px; }
.gate-footer { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 20px; }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--peach); padding: 2px 6px; border-radius: 4px; word-break: break-all; }

.head-figure { text-align: center; margin: 0 auto 6px; }
.head-figure img { width: 150px; margin: 0 auto; }

.portal { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; padding: 32px 0 64px; align-items: start; }
.portal-wide { grid-template-columns: 1fr; }
.portal-main { min-width: 0; }
@media (max-width: 860px) { .portal { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; } }
.portal-nav form { display: inline; }
.link-btn { background: none; border: 0; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; padding: 0; white-space: nowrap; }
@media (max-width: 560px) {
  .site-header .container { gap: 8px; }
  .brand-name { font-size: 1rem; }
  .site-header .brand-sub { font-size: .6rem; }
  .portal-nav { gap: 10px; }
  .portal-nav a, .portal-nav .link-btn { font-size: .82rem; }
  .portal-header .brand > span, .compact-header .brand > span { display: none; }
  .compact-header .nav-simple { gap: 10px; }
  .compact-header .nav-simple .btn { padding: 8px 14px; font-size: .85rem; }
}
.link-btn:hover { color: var(--green-dark); }
.portal-h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 16px; }
.portal-h2 { font-size: 1.15rem; margin: 8px 0 12px; padding-left: 12px; border-left: 5px solid var(--yellow); display: flex; align-items: center; }
.portal-h3 { font-size: .95rem; color: var(--muted); margin: 18px 0 8px; }
.material-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.material-list a { display: block; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--text); text-decoration: none; transition: .15s; }
.material-list a:hover { border-color: var(--green); transform: translateY(-1px); }
.material-list strong { display: block; }
.material-list span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.6; }
.material-list .meta { font-size: .78rem; margin-bottom: 2px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: .92rem; }
.side-box { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 14px; }
.side-box h3 { font-size: .95rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.pr { font-size: .65rem; background: var(--peach); color: #9a5a2a; padding: 1px 8px; border-radius: 999px; font-weight: 700; }
.aff-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.aff-list a { font-weight: 700; text-decoration: underline; }
.aff-list span { display: block; font-size: .8rem; color: var(--muted); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.choice-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 20px 16px;
  background: var(--cream); border: 2px solid var(--line); border-radius: var(--radius-sm); color: var(--text);
  text-decoration: none !important; cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1.6; transition: .15s;
}
.choice-card:hover { border-color: var(--green); transform: translateY(-2px); }
.choice-card img { width: 96px; height: 72px; object-fit: contain; margin-bottom: 6px; }
.choice-card strong { font-size: 1.02rem; }
.choice-card span { font-size: .82rem; color: var(--muted); }
.choice-card.support { background: var(--yellow-soft); border-color: var(--yellow-soft); }
.ad-box { text-align: center; }
.login-wrap { max-width: 480px; margin: 0 auto; padding: 32px 0 64px; }
.code-input { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: 1.2rem; text-align: center; }

.md { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.md h1 { font-size: 1.55rem; margin-bottom: .8em; }
.md h2 { font-size: 1.25rem; margin-top: 1.8em; padding-left: 12px; border-left: 5px solid var(--yellow); }
.md h3 { font-size: 1.05rem; margin-top: 1.5em; }
.md p, .md li { line-height: 1.9; }
.md ul, .md ol { padding-left: 1.5em; }
.md a { text-decoration: underline; }
.md pre { background: #2f2b2a; color: #f3efe7; padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; font-size: .88rem; line-height: 1.6; }
.md code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.md :not(pre) > code { background: var(--peach); padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.md table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.md th { background: var(--cream); }
.md blockquote { margin: 1em 0; padding: 10px 16px; background: var(--mint); border-radius: var(--radius-sm); border-left: 5px solid var(--green); }
.md blockquote p:last-child { margin: 0; }
.md img { border-radius: var(--radius-sm); }
.md hr { border: 0; border-top: 3px dotted var(--line); margin: 2em 0; }
@media (max-width: 560px) { .md { padding: 18px; } }

.ai-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; counter-reset: ai; }
.ai-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; counter-increment: ai; }
.ai-list li::before {
  content: counter(ai); flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-soft); color: #2f7db2; font-weight: 900; display: grid; place-items: center; font-size: .9rem; margin-top: 3px;
}
.ai-list strong { display: block; }
.ai-list span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.7; }

.admin-card { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.admin-form-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.admin-form-row .field { flex: 1 1 180px; margin-bottom: 8px; }
.admin-form-row .field-btn { flex: 0 0 auto; }
.admin-meta { display: flex; flex-wrap: wrap; gap: 20px 36px; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th, .admin-table td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.admin-table th { font-size: .8rem; color: var(--muted); font-weight: 700; }
.admin-table tr.is-inactive td { color: var(--muted); }
.admin-table .nowrap { white-space: nowrap; }
.admin-table .inline { display: inline; margin-left: 6px; }
.code-badge { font-size: .95rem; letter-spacing: .06em; font-weight: 700; }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-width: 2px; box-shadow: none; }
.btn-sm:hover { transform: none; }
.md-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; line-height: 1.7; min-height: 320px; }
.note-form .choices { margin-top: 4px; }
.preview-bar { background: var(--yellow-soft); border-radius: var(--radius-sm); padding: 10px 16px; margin-bottom: 16px; font-size: .9rem; }

.session-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--green-soft); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px; }
.session-card strong { display: block; font-size: .9rem; color: var(--green-dark); }
.session-card .session-when { font-size: 1.3rem; font-weight: 900; margin: 2px 0; }
.session-card .small { display: block; }
.session-card.is-empty { background: var(--peach); }
.session-card.is-empty strong { color: #9a5a2a; }

.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.slot-btn { font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--text); cursor: pointer; transition: .15s; }
.slot-btn:hover { border-color: var(--green); background: var(--green-soft); transform: translateY(-1px); }
.session-card a.small { display: inline-block; margin-top: 4px; }
.slot-table td.is-booked { color: var(--green-dark); font-weight: 700; }
.admin-links { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-mini, .material-list .tag-mini { display: inline-block; width: auto; font-size: .68rem; padding: 1px 8px; vertical-align: middle; margin-left: 4px; line-height: 1.6; }
.weekday-row { display: flex; flex-wrap: wrap; gap: 6px; }
.weekday-row .choice { padding: 6px 12px; }
.bulk-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.slot-table .day-row td { background: var(--cream); font-weight: 700; padding: 8px 10px; }
.slot-table .ops { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.slot-table .ops form { display: flex; gap: 6px; align-items: center; margin: 0; }
.slot-table select { padding: 6px 30px 6px 10px; font-size: .85rem; width: auto; background-color: var(--white); }

.learn-wrap { max-width: 820px; margin: 0 auto; padding: 32px 20px 64px; }
.breadcrumb { color: var(--muted); margin-bottom: 8px; }
.learn-head { margin-bottom: 20px; }
.learn-head .kicker { display: inline-block; background: var(--white); border: 2px solid var(--line); color: var(--green-dark); font-weight: 700; font-size: .85rem; padding: 3px 14px; border-radius: 999px; margin-bottom: 10px; }
.learn-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.toc { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 20px; }
.toc-title { font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.4em; font-size: .93rem; line-height: 1.9; }
.learn-body h2 { scroll-margin-top: 84px; }
.learn-body h3 { scroll-margin-top: 84px; }
.learn-cta { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; background: var(--green-soft); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0 8px; }
.learn-cta strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.learn-cta p { margin-bottom: 12px; font-size: .95rem; }
.learn-cta .btn { margin-bottom: 6px; }
@media (max-width: 620px) { .learn-cta { grid-template-columns: 1fr; text-align: center; } .learn-cta img { margin: 0 auto; width: 140px; } }
.learn-list li a strong { font-size: 1.05rem; }
.info-box { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 10px 8px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.info-table th { width: 9em; color: var(--muted); font-weight: 700; font-size: .9rem; white-space: nowrap; }

.learn-wrap, .md { min-width: 0; }
.md pre { max-width: 100%; }
.md code { overflow-wrap: anywhere; }
.info-table td { overflow-wrap: anywhere; }
.info-table { display: block; overflow-x: auto; }

.callout { background: var(--yellow-soft); border-radius: var(--radius); padding: 22px 24px; margin: 8px 0 28px; }
.callout strong { display: block; font-size: 1.08rem; margin-bottom: 8px; }
.callout p { margin-bottom: 12px; font-size: .95rem; }
.callout-label { font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.callout pre { background: #2f2b2a; color: #f3efe7; padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; font-size: .88rem; line-height: 1.7; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.callout code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.learn-wrap .portal-h2 { margin-top: 40px; }
.learn-wrap .learn-list { margin-bottom: 12px; }
.portal-main .portal-h3 { margin-top: 26px; }
