
/* Layout: graph-paper ground, one reading column, red pen used only for marks and numbers */
:root {
  --paper: #F6F8FA;
  --grid: #E1E8EF;
  --sheet: #FFFFFF;
  --ink: #16233F;
  --pencil: #5E6878;
  --line: #C9D3DE;
  --red: #D1202F;
  --red-soft: #FBEAEC;
  --line-green: #06C755;
  --line-green-dark: #04963F;
  --max: 1040px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-weight: 500;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
.hand { font-family: "Klee One", "Zen Kaku Gothic New", sans-serif; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
section { padding-block: 64px; }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: .08em; color: var(--pencil); }
h2 { font-weight: 900; font-size: clamp(22px, 5vw, 36px); line-height: 1.4; margin-top: 8px; text-wrap: balance; }
.lead { color: var(--pencil); margin-top: 14px; max-width: 640px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246,248,250,.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { font-weight: 900; font-size: 24px; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.logo small { font-weight: 700; font-size: 12px; color: var(--pencil); margin-left: 8px; letter-spacing: .04em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; text-decoration: none; border-radius: 999px;
  padding: 14px 26px; font-size: 16px; line-height: 1.2;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-line { background: var(--line-green); color: #fff; box-shadow: 0 4px 0 var(--line-green-dark); }
.btn-ghost { border: 2px solid var(--ink); background: var(--sheet); }
.top .btn { padding: 9px 16px; font-size: 14px; box-shadow: 0 3px 0 var(--line-green-dark); white-space: nowrap; }

/* hero */
.hero { padding-block: 48px 56px; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
.hero h1 { font-weight: 900; font-size: clamp(28px, 7.2vw, 46px); line-height: 1.3; letter-spacing: -.01em; margin-top: 10px; }
.hero h1 .mark { position: relative; white-space: nowrap; }
.hero h1 .mark::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -6px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q 10 1 18 6 T 34 6 T 50 6 T 66 6 T 82 6 T 98 6 T 118 6' fill='none' stroke='%23D1202F' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.nw { white-space: nowrap; }
.hero .lead { font-size: 17px; color: var(--ink); margin-top: 22px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-weight: 700; font-size: 14px; color: var(--pencil); }
.badges span::before { content: "✓ "; color: var(--red); }
.screen svg { width: 100%; height: auto; filter: drop-shadow(5px 7px 0 rgba(22,35,63,.08)); }
.screen figcaption { color: var(--pencil); font-size: 13px; margin-top: 10px; text-align: center; }

/* features */
.features { display: grid; gap: 14px; margin-top: 30px; }
.feature { background: var(--sheet); border: 1px solid var(--line); padding: 22px 22px 24px; display: grid; gap: 6px; }
.feature .k { font-family: "Klee One", sans-serif; font-weight: 600; color: var(--red); font-size: 15px; }
.feature h3 { font-weight: 900; font-size: 19px; line-height: 1.5; }
.feature p { color: var(--pencil); font-size: 15px; }

/* two pillars */
.pillars { display: grid; gap: 16px; margin-top: 30px; }
.pillar { background: var(--sheet); border: 2px solid var(--ink); padding: 24px 22px 26px; }
.pillar .k { font-family: "Klee One", sans-serif; font-weight: 600; color: var(--red); font-size: 15px; }
.pillar h3 { font-weight: 900; font-size: 22px; line-height: 1.4; margin-top: 2px; }
.pillar .sub { color: var(--pencil); font-size: 14px; margin-top: 2px; }
.pillar ul { list-style: none; margin-top: 16px; display: grid; gap: 12px; }
.pillar li { padding-left: 24px; position: relative; }
.pillar li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 900; }
.pillar li b { display: block; font-size: 16px; }
.pillar li span { color: var(--pencil); font-size: 15px; }
.bridge { margin-top: 16px; background: var(--red-soft); border: 2px dashed var(--red); padding: 16px 20px; }
.bridge b { font-weight: 900; }
.bridge span { color: var(--ink); font-size: 15px; }

/* flows side by side */
.flows { display: grid; gap: 40px; margin-top: 30px; }
.flows h3.ft { font-weight: 900; font-size: 20px; margin-bottom: 6px; }
.flows h3.ft small { font-weight: 700; font-size: 13px; color: var(--pencil); margin-left: 8px; }

/* lesson timeline */
.lesson { list-style: none; margin-top: 10px; border-left: 3px solid var(--ink); display: grid; gap: 0; }
.lesson li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 16px 0 16px 18px; position: relative; }
.lesson li::before {
  content: ""; position: absolute; left: -8px; top: 25px; width: 13px; height: 13px;
  background: var(--paper); border: 3px solid var(--red); border-radius: 50%;
}
.lesson .min { font-family: "Klee One", sans-serif; font-weight: 600; color: var(--red); font-size: 17px; white-space: nowrap; }
.lesson h3 { font-weight: 900; font-size: 18px; }
.lesson p { color: var(--pencil); font-size: 15px; }

/* who */
.who { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.who li { display: flex; gap: 12px; align-items: flex-start; background: var(--sheet); border: 1px solid var(--line); padding: 14px 16px; font-weight: 700; }
.who li svg { flex: none; margin-top: 4px; }

/* four types */
.types { display: grid; margin-top: 26px; border-top: 3px solid var(--ink); }
.type { padding: 18px 0; border-bottom: 3px solid var(--ink); }
.type h3 { font-weight: 900; font-size: 20px; }
.type p { color: var(--pencil); margin-top: 4px; font-size: 16px; }

/* pricing */
.plans { display: grid; gap: 16px; margin-top: 30px; }
.plan { background: var(--sheet); border: 2px solid var(--ink); padding: 24px 22px 26px; position: relative; }
.plan.pick { border-color: var(--red); }
.plan .tag { position: absolute; top: -13px; left: 18px; background: var(--red); color: #fff; font-weight: 700; font-size: 12px; padding: 3px 10px; letter-spacing: .06em; }
.plan h3 { font-weight: 900; font-size: 20px; }
.plan .for { color: var(--pencil); font-size: 14px; margin-top: 2px; }
.price { margin-top: 12px; font-weight: 900; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price small { font-size: 15px; font-weight: 700; margin-left: 2px; }
.plan ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; font-size: 15px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.plan li.inherit { color: var(--pencil); }
.note { color: var(--pencil); font-size: 14px; margin-top: 16px; }
.ticket-plan { margin-top: 16px; background: var(--sheet); border: 2px solid var(--ink); padding: 22px 22px 24px; }
.ticket-plan .head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.ticket-plan h3 { font-weight: 900; font-size: 20px; }
.ticket-plan .price { margin-top: 0; font-size: 28px; }
.ticket-plan .for { color: var(--pencil); font-size: 15px; margin-top: 6px; }
.ticket-plan ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; font-size: 15px; }
.ticket-plan li { padding-left: 22px; position: relative; }
.ticket-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.trial-plan { margin-top: 20px; background: var(--sheet); border: 2px dashed var(--red); padding: 24px 22px 26px; }
.trial-plan .head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.trial-plan h3 { font-weight: 900; font-size: 20px; }
.trial-plan .price { margin-top: 0; font-size: 28px; }
.trial-plan .for { color: var(--pencil); font-size: 15px; margin-top: 6px; }
.trial-kinds { display: grid; gap: 14px; margin-top: 18px; }
.trial-kind { border-top: 2px solid var(--ink); padding-top: 12px; }
.trial-kind .k { font-family: "Klee One", sans-serif; font-weight: 600; color: var(--red); font-size: 15px; }
.trial-kind h4 { font-weight: 900; font-size: 17px; line-height: 1.5; }
.trial-kind ul { list-style: none; margin-top: 8px; display: grid; gap: 6px; font-size: 15px; }
.trial-kind li { padding-left: 22px; position: relative; }
.trial-kind li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.trial-plan .after { margin-top: 18px; font-size: 15px; }
.trial-plan .ask { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.trial-plan .ask p { color: var(--pencil); font-size: 15px; flex: 1 1 260px; }

/* trial */
.trial-box { display: grid; gap: 24px; margin-top: 28px; align-items: start; }
.trial-steps { list-style: none; display: grid; gap: 12px; counter-reset: t; }
.trial-steps li { background: var(--sheet); border: 1px solid var(--line); padding: 16px 18px 16px 62px; position: relative; counter-increment: t; }
.trial-steps li::before { content: counter(t); position: absolute; left: 20px; top: 12px; font-family: "Klee One", sans-serif; font-weight: 600; font-size: 30px; color: var(--red); line-height: 1.2; }
.trial-steps h3 { font-weight: 900; font-size: 17px; }
.trial-steps p { color: var(--pencil); font-size: 15px; }
.sample-box { background: var(--sheet); border: 1px solid var(--line); padding: 14px; }
.sample-box img { border: 1px solid var(--line); }
.sample-box figcaption { color: var(--pencil); font-size: 13px; margin-top: 10px; }

/* teacher */
.teacher { display: grid; gap: 26px; margin-top: 26px; align-items: start; }
.photo { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; background: var(--sheet); border: 2px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; border-top: 2px solid var(--ink); }
.facts li { padding: 13px 0; border-bottom: 2px solid var(--ink); font-weight: 700; font-size: 17px; }
.quote { margin-top: 20px; font-size: 21px; line-height: 1.6; }
.quote .q { color: var(--red); }

/* setup */
.setup { display: grid; gap: 12px; margin-top: 26px; }
.setup div { background: var(--sheet); border: 1px solid var(--line); padding: 18px 20px; }
.setup h3 { font-weight: 900; font-size: 17px; }
.setup p { color: var(--pencil); font-size: 15px; margin-top: 2px; }
.setup .opt { font-size: 12px; font-weight: 700; color: var(--red); border: 1px solid var(--red); padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }

/* faq & rules */
.faq { margin-top: 24px; display: grid; gap: 10px; }
details { background: var(--sheet); border: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 18px; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; position: absolute; right: 18px; top: 15px; color: var(--red); font-weight: 900; }
details[open] summary::after { content: "－"; }
details .body { padding: 0 18px 18px; color: var(--pencil); }
.rules { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.rules li { background: var(--sheet); border-left: 4px solid var(--ink); padding: 12px 16px; }
.rules b { display: block; }
.rules span { color: var(--pencil); font-size: 15px; }

/* final */
.final { text-align: center; }
.final h2 { margin-top: 0; }
.final .btn { margin-top: 24px; }
.final .sub { color: var(--pencil); font-size: 14px; margin-top: 14px; }

footer { border-top: 1px solid var(--line); background: var(--sheet); padding-block: 36px 48px; font-size: 14px; color: var(--pencil); }
footer .law { margin-top: 16px; }
footer .copy { margin-top: 24px; }

@media (min-width: 720px) {
  section { padding-block: 80px; }
  br.sp { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .who { grid-template-columns: 1fr 1fr; }
  .types { grid-template-columns: 1fr 1fr; }
  .type:nth-child(odd) { padding-right: 28px; border-right: 3px solid var(--ink); }
  .type:nth-child(even) { padding-left: 28px; }
  .teacher:has(> .photo) { grid-template-columns: 180px 1fr; } /* 写真が無いときは1列（写真の枠は読み込めないと消える） */
  .setup { grid-template-columns: repeat(3, 1fr); }
  .trial-kinds { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1.05fr .95fr; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .trial-box { grid-template-columns: 1fr 1fr; }
  .flows { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---- 2026-10-13: トップ（理念）と「料金と進め方」の2ページに分けたときに足したもの ---- */

/* header nav */
.top .right { display: flex; align-items: center; gap: 14px; }
.nav { display: none; gap: 18px; font-weight: 700; font-size: 14px; }
.nav a { text-decoration: none; color: var(--pencil); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* page head (料金と進め方) */
.page-head { padding-block: 40px 8px; }
.page-head h1 { font-weight: 900; font-size: clamp(28px, 7vw, 42px); line-height: 1.3; margin-top: 6px; }

/* hero (理念) */
.hero h1 .mark-s { position: relative; white-space: nowrap; }
.hero h1 .mark-s::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -6px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q 10 1 18 6 T 34 6 T 50 6 T 66 6 T 82 6 T 98 6 T 118 6' fill='none' stroke='%23D1202F' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

/* こんな勉強になっていませんか */
.issues { list-style: none; margin-top: 26px; display: grid; gap: 10px; }
.issues li { background: var(--sheet); border: 1px solid var(--line); padding: 14px 16px 14px 46px; position: relative; font-weight: 700; }
.issues li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 3px; }
.callout { margin-top: 22px; background: var(--red-soft); border-left: 4px solid var(--red); padding: 16px 20px; font-size: 17px; font-weight: 700; line-height: 1.8; }

/* 大事にしていること */
.principles { list-style: none; margin-top: 30px; display: grid; gap: 16px; counter-reset: p; }
.principles li { background: var(--sheet); border: 2px solid var(--ink); padding: 22px 22px 24px 72px; position: relative; counter-increment: p; }
.principles li::before { content: counter(p); position: absolute; left: 22px; top: 14px; font-family: "Klee One", sans-serif; font-weight: 600; font-size: 38px; color: var(--red); line-height: 1.2; }
.principles h3 { font-weight: 900; font-size: 20px; line-height: 1.5; }
.principles p { color: var(--pencil); margin-top: 8px; }
.principles p + p { margin-top: 10px; }
.principles .voice { color: var(--ink); }

/* 文章のかたまり（学校・塾・AI／どうなってほしいか） */
.prose { margin-top: 20px; max-width: 720px; font-size: 17px; }
.prose p + p { margin-top: 14px; }
.statement { margin-top: 26px; background: var(--sheet); border: 2px solid var(--ink); padding: 24px 22px; font-size: 18px; line-height: 1.9; }
.statement .hand { color: var(--red); font-weight: 600; }
.more { margin-top: 22px; }

@media (min-width: 720px) {
  .nav { display: flex; }
  .issues { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principles li:first-child { grid-column: 1 / -1; }
  .principles li:first-child p { max-width: 760px; }
}
@media (min-width: 960px) {
  .principles { grid-template-columns: repeat(3, 1fr); }
  .teacher > div:only-child { max-width: 760px; }
}
