:root {
  --red: #c8122f;
  --red-dark: #980c22;
  --ink: #151517;
  --charcoal: #25252a;
  --paper: #ffffff;
  --mist: #f3f2f0;
  --line: #d8d5d1;
  --muted: #625f5c;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #ffb3c0; outline-offset: 3px; }
.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; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; background: var(--ink); color: #fff; padding: .8rem 1rem; }
.skip-link:focus { top: 1rem; }
.wrap { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.eyebrow { margin: 0 0 .7rem; color: var(--red); font-size: .82rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.06; text-wrap: balance; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
h1 { font-size: clamp(2.7rem, 7vw, 5.7rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.65rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.lead { max-width: 44rem; font-size: clamp(1.12rem, 2vw, 1.35rem); color: #39383b; }
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .lead { color: #fff; }
.section-heading { display: grid; gap: 1rem; margin-bottom: 2.4rem; }
.section-heading p { max-width: 43rem; color: var(--muted); }
.section--dark .section-heading p { color: #cfced1; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 850; letter-spacing: .02em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; color: var(--red); font-family: Georgia, serif; font-size: 1.45rem; line-height: 1; }
.brand small { display: block; color: var(--muted); font-size: .7rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.nav-toggle { display: none; border: 1px solid var(--ink); background: #fff; min-width: 48px; min-height: 48px; padding: .5rem; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a { padding: .75rem .64rem; font-size: .9rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red); }
.site-nav .nav-cta, .btn--red { background: var(--red); color: #fff; }
.site-nav .nav-cta { margin-left: .55rem; padding-inline: 1rem; }
.site-nav .nav-cta:hover { background: var(--red-dark); color: #fff; }

.hero { min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); background: var(--ink); color: #fff; }
.hero-copy { display: flex; align-items: center; padding: clamp(4rem, 7vw, 8rem) max(1rem, calc((100vw - var(--max)) / 2)); padding-right: clamp(2rem, 6vw, 6rem); position: relative; overflow: hidden; }
.hero-copy::after { content: "協"; position: absolute; right: 1rem; bottom: -3.2rem; color: rgba(255,255,255,.045); font-family: Georgia, serif; font-size: clamp(12rem, 28vw, 25rem); line-height: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 670px; }
.hero h1 span { color: #ff3856; }
.hero h1 { font-size: clamp(3.2rem, 6vw, 5.2rem); }
.hero .lead { color: #dfdee1; margin: 1.5rem 0 2rem; }
.hero-photo { min-height: 560px; position: relative; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,21,23,.5), transparent 35%); }
.hero-note { position: absolute; z-index: 2; right: 1rem; bottom: 1rem; max-width: 18rem; padding: .9rem 1rem; background: rgba(255,255,255,.93); color: var(--ink); border-left: 5px solid var(--red); font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .78rem 1.05rem; border: 2px solid currentColor; font-weight: 800; text-decoration: none; cursor: pointer; }
.btn--red { border-color: var(--red); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--light { color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--ink { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn--ink:hover { background: var(--charcoal); }

.benefit-strip { border-bottom: 1px solid var(--line); }
.benefit-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.benefit { padding: 1.2rem 1rem; border-right: 1px solid var(--line); font-weight: 800; text-align: center; }
.benefit:first-child { border-left: 1px solid var(--line); }
.benefit strong { display: block; color: var(--red); font-family: Georgia, serif; font-size: 1.45rem; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.2rem, 6vw, 6rem); align-items: center; }
.image-frame { position: relative; }
.image-frame picture { display: block; width: 100%; }
.image-frame img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.image-frame::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--red); z-index: -1; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .8rem; }
.ticks li { position: relative; padding-left: 1.65rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62rem; width: .65rem; height: .65rem; background: var(--red); transform: rotate(45deg); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.choice { background: #fff; padding: clamp(2rem, 5vw, 4rem); }
.choice:nth-child(2) { background: var(--ink); color: #fff; }
.choice p { margin: 1rem 0 1.6rem; color: var(--muted); }
.choice:nth-child(2) p { color: #cfced1; }
.choice-kicker { color: var(--red); font-size: .86rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.schedule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.schedule { border-top: 5px solid var(--red); background: #fff; color: var(--ink); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.schedule address { margin: .5rem 0 1.4rem; color: var(--muted); font-style: normal; }
.time-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.time-row span:last-child { font-weight: 800; text-align: right; }
.notice { border-left: 5px solid var(--red); background: #fff1f3; padding: 1rem 1.2rem; color: #65101e; }

.page-hero { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -7rem; bottom: -7rem; width: 22rem; height: 22rem; border: 4rem solid rgba(200,18,47,.3); border-radius: 50%; }
.page-hero .lead { margin-top: 1.4rem; color: #dbdade; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.step-list { counter-reset: steps; list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.2rem; }
.step-list li { counter-increment: steps; padding: 0 0 1.2rem 3.6rem; border-bottom: 1px solid var(--line); position: relative; }
.step-list li::before { content: counter(steps, decimal-leading-zero); position: absolute; left: 0; top: -.2rem; color: var(--red); font-family: Georgia, serif; font-size: 1.6rem; font-weight: 700; }
.term-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.term { padding: 1.5rem; border-top: 4px solid var(--red); background: var(--mist); }
.term h3 { margin-bottom: .6rem; }

.teacher-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.teacher { border-top: 4px solid var(--red); padding-top: 1.3rem; }
.fact-check { border: 2px dashed var(--red); padding: 1.3rem; background: #fff8f9; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field--wide { grid-column: 1 / -1; }
label { font-weight: 750; }
input, select, textarea { width: 100%; min-height: 50px; border: 1px solid #8f8b87; background: #fff; padding: .72rem .8rem; color: var(--ink); }
textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; }
.check input { width: 1.2rem; min-height: 1.2rem; margin-top: .25rem; flex: 0 0 auto; }
.form-help { font-size: .9rem; color: var(--muted); }
.form-status { display: none; padding: 1rem; border-left: 4px solid var(--red); background: #fff1f3; }
.form-status.is-visible { display: block; }
.contact-stack { display: grid; gap: .8rem; }
.contact-link { display: block; padding: 1rem; border: 1px solid var(--line); text-decoration: none; font-weight: 800; }
.contact-link:hover { border-color: var(--red); color: var(--red); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1.2rem 2.5rem 1.2rem 0; cursor: pointer; font-weight: 800; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: .5rem; color: var(--red); font-size: 1.5rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 50rem; padding-bottom: 1rem; color: var(--muted); }

.cta-band { background: var(--red); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.cta-inner h2 { max-width: 700px; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; white-space: nowrap; }
.site-footer { background: #0d0d0f; color: #e8e7e9; padding: 3.5rem 0 6rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer-grid h3 { margin-bottom: .8rem; color: #fff; }
.footer-grid a { color: #e8e7e9; }
.footer-links { display: grid; gap: .45rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid #38383e; color: #aaa8ad; font-size: .9rem; }
.mobile-cta { display: none; }
.whatsapp-float { position: fixed; z-index: 55; right: 1.25rem; bottom: 1.25rem; display: inline-flex; align-items: center; gap: .55rem; min-height: 52px; padding: .65rem 1rem .65rem .7rem; border: 2px solid #fff; border-radius: 999px; background: #137a3f; color: #fff; text-decoration: none; font-weight: 850; box-shadow: 0 8px 24px rgba(0,0,0,.24); transition: transform .2s ease, background-color .2s ease; }
.whatsapp-float:hover { background: #0f6534; color: #fff; transform: translateY(-2px); }
.whatsapp-float:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.whatsapp-float__icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #137a3f; font-size: .72rem; font-weight: 900; letter-spacing: -.04em; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: absolute; left: 0; right: 0; top: 76px; display: none; align-items: stretch; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: .75rem 1rem 1rem; box-shadow: 0 12px 24px rgba(0,0,0,.1); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .9rem; }
  .site-nav .nav-cta { margin: .4rem 0 0; text-align: center; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 4.5rem 1rem; }
  .hero-photo { min-height: 440px; }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit:nth-child(4), .benefit:nth-child(5) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  body { padding-bottom: 67px; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .brand { font-size: .9rem; }
  .brand small { font-size: .62rem; }
  .hero-photo { min-height: 360px; }
  .hero-photo::after { background: linear-gradient(0deg, rgba(21,21,23,.25), transparent 50%); }
  .hero-note { left: 1rem; right: 1rem; max-width: none; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .benefit { border-top: 1px solid var(--line); }
  .benefit:last-child { grid-column: 1 / -1; }
  .split, .choice-grid, .schedule-grid, .content-grid, .teacher-grid, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
  .image-frame { margin: 14px 0 0 14px; }
  .term-grid { grid-template-columns: 1fr; }
  .time-row { grid-template-columns: 1fr; gap: .2rem; }
  .time-row span:last-child { text-align: left; }
  .form { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .mobile-cta { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: block; padding: .65rem 1rem; background: var(--red); color: #fff; text-align: center; text-decoration: none; font-weight: 850; box-shadow: 0 -5px 20px rgba(0,0,0,.18); }
  .whatsapp-float { right: .75rem; bottom: 4.9rem; min-height: 48px; padding: .55rem .85rem .55rem .6rem; }
  .contact-page { padding-bottom: 0; }
  .contact-page .mobile-cta { display: none; }
  .contact-page .whatsapp-float { bottom: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
