@import url('https://fonts.googleapis.com/css2?family=Kiwi+Maru:wght@400;500&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root {
  --paper: #fff8ec;
  --ink: #292826;
  --muted: #68645e;
  --red: #b94f37;
  --teal: #276f69;
  --yellow: #e3b83d;
  --line: #d8cdbb;
  --white: #fffdf8;
  --mint: #eef6ef;
  --cream-yellow: #fff3d0;
  --teal-light: #e0efec;
  --muted-dark: #68645e;
  --footer-text: #ddd6ca;
  --font-main: 'Noto Sans JP', sans-serif;
  --font-round: 'Kiwi Maru', serif;
  --frame: min(1160px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background-color: var(--paper); background-image: radial-gradient(var(--line) .7px, transparent .7px); background-size: 19px 19px; font-family: var(--font-main); line-height: 1.82; letter-spacing: .025em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-decoration-color: var(--red); text-underline-offset: .23em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; left: 8px; top: 8px; padding: 8px 14px; background: var(--ink); color: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.frame { width: var(--frame); margin-inline: auto; }

.sample-bar { padding: 7px 20px; text-align: center; background: var(--yellow); font-size: .73rem; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 25; border-bottom: 2px solid var(--ink); background: var(--paper); }
.header-inner { width: var(--frame); min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-round); font-size: 1.2rem; font-weight: 500; text-decoration: none; }
.brand-dots { display: flex; gap: 3px; }
.brand-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.brand-dots i:nth-child(2) { background: var(--teal); }
.brand-dots i:nth-child(3) { background: var(--yellow); }
.nav { display: flex; align-items: center; gap: 25px; font-size: .86rem; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-style: wavy; }
.nav-cta { padding: 9px 16px; background: var(--red); color: var(--white); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-1deg); }
.nav-toggle { display: none; border: 2px solid var(--ink); background: var(--yellow); padding: 7px 11px; }

.hero { position: relative; min-height: 760px; overflow: hidden; background: var(--paper); }
.hero-grid { width: var(--frame); min-height: 760px; margin: auto; display: grid; grid-template-columns: .92fr 1.08fr; gap: 52px; align-items: center; }
.hero-copy { position: relative; z-index: 4; padding: 80px 0; }
.eyebrow { display: inline-block; margin: 0 0 24px; padding: 6px 12px; background: var(--yellow); border: 2px solid var(--ink); transform: rotate(-1deg); font-size: .75rem; font-weight: 700; }
.hero h1 { margin: 0; font-family: var(--font-round); font-size: clamp(3rem, 6vw, 6.3rem); font-weight: 500; line-height: 1.25; letter-spacing: -.045em; text-wrap: balance; word-break: auto-phrase; }
.hero h1 .tone-red { color: var(--red); }.hero h1 .tone-teal { color: var(--teal); }
.hero-lead { max-width: 600px; margin: 28px 0; font-size: 1.07rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 22px; border: 2px solid var(--ink); background: var(--red); color: var(--white); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; font-weight: 700; cursor: pointer; }
.button::after { content: '♪'; margin-left: 26px; }
.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.hero-art { position: relative; min-height: 560px; }
.sound-key { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; font-family: var(--font-round); font-size: .78rem; }
.sound-key span { display: inline-flex; align-items: center; gap: 6px; }
.sound-key i { width: 10px; height: 10px; display: inline-block; border: 2px solid var(--ink); border-radius: 50%; }
.sound-key .key-red { background: var(--red); }.sound-key .key-teal { background: var(--teal); }.sound-key .key-yellow { background: var(--yellow); }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 3px solid var(--ink); clip-path: polygon(2% 4%, 97% 0, 100% 94%, 4% 100%); transition: transform .32s cubic-bezier(.2,.7,.2,1); }
.hero-art::before { content: 'ACTIVITY / 01'; position: absolute; z-index: 4; left: 7%; top: 5%; padding: 6px 9px; background: var(--white); border: 2px solid var(--ink); font-family: var(--font-round); font-size: .66rem; transform: rotate(-2deg); }
.hero-art::after { content: '生成イメージ'; position: absolute; right: 7%; bottom: 1%; padding: 5px 9px; background: var(--white); border: 2px solid var(--ink); font-size: .66rem; transform: rotate(2deg); }
.flowing-line { position: absolute; z-index: 3; left: -8%; right: -6%; bottom: 8%; height: 140px; pointer-events: none; }
.flowing-line::before { content: ''; position: absolute; inset: 20px 0; border-top: 8px solid var(--red); border-radius: 50%; transform: rotate(-4deg) skewX(20deg); }
.flowing-line::after { content: ''; position: absolute; right: 12%; top: 2px; width: 28px; height: 28px; border: 7px solid var(--teal); border-radius: 50%; }

.section { padding: clamp(78px, 10vw, 126px) 0; border-top: 2px solid var(--ink); background: color-mix(in srgb, var(--paper) 94%, transparent); }
.section-head { display: grid; grid-template-columns: 160px 1fr; gap: 40px; margin-bottom: 56px; }
.section-label { font-size: .73rem; font-weight: 700; color: var(--teal); letter-spacing: .12em; }
.section-head h2 { margin: 0; font-family: var(--font-round); font-size: clamp(2.2rem, 4.6vw, 4.8rem); font-weight: 500; line-height: 1.34; letter-spacing: -.035em; text-wrap: balance; }
.section-head p { max-width: 650px; }

.age-paths { display: grid; gap: 16px; }
.age-path { display: grid; grid-template-columns: 150px 1fr auto; gap: 30px; align-items: center; padding: 25px 30px; border: 2px solid var(--ink); background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.age-path:nth-child(2) { margin-left: 5%; background: var(--mint); }
.age-path:nth-child(3) { margin-left: 10%; background: var(--cream-yellow); }
.age-badge { display: inline-grid; place-content: center; width: 88px; height: 88px; border-radius: 50%; background: var(--red); color: var(--white); border: 2px solid var(--ink); font-family: var(--font-round); font-size: 1.2rem; transform: rotate(-3deg); }
.age-path:nth-child(2) .age-badge { background: var(--teal); transform: rotate(2deg); }
.age-path:nth-child(3) .age-badge { background: var(--yellow); color: var(--ink); }
.age-path h3 { margin: 0 0 4px; font-family: var(--font-round); font-size: 1.45rem; }
.age-path p { margin: 0; color: var(--muted); }
.age-link { white-space: nowrap; font-weight: 700; }

.rules { background: var(--teal); color: var(--white); }
.rules .section-label { color: var(--yellow); }
.rule-list { display: grid; grid-template-columns: 1.08fr .92fr 1fr; gap: 26px; }
.rule { position: relative; padding: 38px 30px; border: 2px solid var(--white); min-height: 320px; }
.rule::before { content: attr(data-number); display: block; font-family: var(--font-round); font-size: 5rem; color: var(--yellow); line-height: 1; }
.rule h3 { margin: 34px 0 14px; font-family: var(--font-round); font-size: 1.65rem; }
.rule p { color: var(--teal-light); }

.programs { counter-reset: program; border-top: 2px solid var(--ink); }
.program { counter-increment: program; display: grid; grid-template-columns: 90px 1.2fr 1fr 130px; gap: 28px; align-items: center; padding: 25px 0; border-bottom: 2px solid var(--ink); transition: transform .2s ease, background .2s ease; }
.program::before { content: '0' counter(program); font-family: var(--font-round); color: var(--red); font-size: 1.8rem; }
.program h3 { margin: 0; font-family: var(--font-round); font-size: 1.4rem; }
.program p { margin: 0; color: var(--muted); }
.program span { justify-self: end; padding: 5px 10px; border: 2px solid var(--ink); background: var(--yellow); font-size: .75rem; font-weight: 700; transform: rotate(1deg); }

.philosophy-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.philosophy-image { position: relative; }
.philosophy-image img { border: 3px solid var(--ink); transform: rotate(-1deg); }
.philosophy-image::after { content: ''; position: absolute; inset: 16px -16px -16px 16px; z-index: -1; background: var(--yellow); border: 3px solid var(--ink); }
.philosophy-copy h2 { margin: 0 0 26px; font-family: var(--font-round); font-size: clamp(2.2rem, 4.5vw, 4.7rem); font-weight: 500; line-height: 1.34; }
.teacher-note { margin-top: 30px; padding: 18px; border-left: 6px solid var(--red); background: var(--white); font-size: .83rem; }

.visit-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.visit-flow article { padding: 25px; border-top: 8px solid var(--red); background: var(--white); min-height: 240px; }
.visit-flow article:nth-child(2) { border-color: var(--teal); transform: translateY(15px); }
.visit-flow article:nth-child(3) { border-color: var(--yellow); transform: translateY(-8px); }
.visit-flow article:nth-child(4) { border-color: var(--red); transform: translateY(10px); }
.visit-flow span { font-family: var(--font-round); font-size: 2rem; color: var(--muted); }
.visit-flow h3 { font-family: var(--font-round); }

.parent-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; }
.parent-grid h2 { margin: 0; font-family: var(--font-round); font-size: clamp(2.2rem, 4.6vw, 4.7rem); font-weight: 500; line-height: 1.35; }
.parent-list { border-top: 2px solid var(--ink); }
details { border-bottom: 2px solid var(--ink); }
summary { position: relative; cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '●'; position: absolute; right: 8px; color: var(--red); }
details[open] summary::after { color: var(--teal); }
details p { margin: 0; padding: 0 44px 24px 0; color: var(--muted); }

.cta { padding: 74px 0; border-top: 3px solid var(--ink); background: var(--yellow); }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: center; }
.cta h2 { margin: 0; font-family: var(--font-round); font-size: clamp(2.2rem, 4.5vw, 4.8rem); font-weight: 500; line-height: 1.35; }

.page-hero { padding: 105px 0 75px; border-bottom: 3px solid var(--ink); background: var(--white); }
.page-hero h1 { margin: 18px 0 24px; font-family: var(--font-round); font-size: clamp(3rem, 8vw, 7rem); font-weight: 500; line-height: 1.1; letter-spacing: -.045em; }
.page-hero p { max-width: 680px; }
.content-grid { display: grid; grid-template-columns: 240px 1fr; gap: 70px; padding: 45px 0; border-top: 2px solid var(--ink); }
.content-grid h2 { margin: 0; font-family: var(--font-round); font-weight: 500; }
.prose { max-width: 800px; }
.prose h2 { margin-top: 2.4em; font-family: var(--font-round); font-weight: 500; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.demo-box { padding: 20px 24px; background: var(--yellow); border: 2px solid var(--ink); }

.form-wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1/-1; }
label { font-weight: 700; font-size: .9rem; }
.form-side-title { font-family: var(--font-round); font-weight: 500; font-size: 2rem; }
.inline-check { width: auto; }
input, select, textarea { width: 100%; padding: 13px 14px; border: 2px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); }
textarea { min-height: 170px; resize: vertical; }
button:disabled { opacity: .5; cursor: not-allowed; }
.form-status { min-height: 2em; color: var(--red); font-weight: 700; }

.site-footer { padding: 58px 0 25px; background: var(--ink); color: var(--white); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: .84rem; }
.footer-note { margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--muted-dark); color: var(--footer-text); font-size: .77rem; }

[data-reveal] { opacity: 0; transform: rotate(-.5deg) translateY(18px); transition: opacity .24s ease, transform .24s ease; }
[data-reveal][data-visible='true'] { opacity: 1; transform: rotate(0) translateY(0); }

@media (hover: hover) {
  .hero-art:hover img { transform: scale(1.025) rotate(.4deg); }
  .age-path:hover { transform: translateX(8px); box-shadow: 7px 7px 0 var(--ink); }
  .program:hover { transform: translateX(8px); background: var(--white); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 55px 0; }
  .hero-copy { padding: 30px 0 0; }
  .hero-art { min-height: 500px; }
  .section-head, .philosophy-grid, .parent-grid, .content-grid, .form-wrap { grid-template-columns: 1fr; gap: 28px; }
  .rule-list { grid-template-columns: 1fr; }
  .program { grid-template-columns: 60px 1fr; }
  .program p, .program span { grid-column: 2; justify-self: start; }
  .visit-flow { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  :root { --frame: min(100% - 28px, 1160px); }
  .header-inner { min-height: 66px; }
  .nav-toggle { display: block; }
  .nav { position: absolute; inset: 66px 0 auto; display: none; flex-direction: column; align-items: stretch; padding: 22px; background: var(--paper); border-bottom: 3px solid var(--ink); }
  .nav[data-open='true'] { display: flex; }
  .hero, .hero-grid { min-height: 0; }
  .hero h1 { font-size: clamp(2.9rem, 14vw, 4.8rem); }
  .hero-art { min-height: 390px; }
  .sound-key { margin-top: 20px; }
  .flowing-line { left: 0; right: 0; }
  .section { padding: 74px 0; }
  .age-path { grid-template-columns: 80px 1fr; margin-left: 0 !important; padding: 20px 16px; gap: 18px; }
  .age-badge { width: 72px; height: 72px; }
  .age-link { grid-column: 2; }
  .visit-flow { grid-template-columns: 1fr; }
  .visit-flow article { transform: none !important; min-height: 190px; }
  .cta-inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .footer-grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
