*, *::before, *::after { box-sizing: border-box; }

/* 方向：通勤前と寝る前の 25 分。落とした青緑 1 色、左寄せ、料金は実表、時刻は等幅数字 */
:root {
  --paper: #fbfbfa;
  --paper-alt: #f0f2f1;
  --surface: #ffffff;
  --ink: #1b2422;
  --ink-2: #44504d;
  --ink-3: #5d6966;
  --line: rgba(27, 36, 34, .13);
  --line-strong: rgba(27, 36, 34, .62);
  --accent: #2e6a64;
  --accent-deep: #22504b;
  --accent-tint: #e4eeec;
  --accent-band: #d2e3df;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.8;
  background: var(--paper);
}

h1, h2, h3 { line-height: 1.4; margin: 0; font-weight: 600; }
p { margin: 0 0 12px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.fake { font-size: .6em; font-weight: 400; color: var(--ink-3); }
.note { font-size: .8125rem; color: var(--ink-3); margin: 12px 0 0; }
.note.light { color: rgba(255, 255, 255, .82); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.125rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo svg { width: 32px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; border-radius: 8px; padding: 14px 28px; text-align: center; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 8px 16px; font-size: .875rem; color: var(--accent-deep); border: 1px solid var(--accent); }
.btn-small:hover { background: var(--accent-tint); }
.btn-primary { background: var(--accent); color: #fff; font-size: 1rem; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-white { background: #fff; color: var(--accent-deep); }
.btn-white:hover { background: var(--accent-tint); }

/* hero */
.hero { padding: 80px 0 96px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-label { font-size: .875rem; color: var(--ink-3); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.3; margin-bottom: 24px; }
.hero-lead { color: var(--ink-2); margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-actions .note { margin: 0; }

/* 見せ場：1 日のレッスン可能時間 */
.day { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px 24px 20px; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: .875rem; color: var(--ink-2); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.day-head .mono { color: var(--ink); font-size: 1rem; }
.day-track {
  position: relative; height: 120px;
  background:
    linear-gradient(var(--accent-band), var(--accent-band)) 0 16px / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 15.789%);
}
.day-track::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.slot { position: absolute; top: 0; display: flex; flex-direction: column; gap: 4px; font-size: .8125rem; color: var(--ink-2); white-space: nowrap; line-height: 1.5; }
.slot::before { content: ""; display: block; width: 10px; height: 40px; background: var(--accent); border-radius: 2px; margin-bottom: 8px; }
.slot .mono { color: var(--ink); font-size: .9375rem; }
.slot-am { left: 5.26%; align-items: flex-start; }
.slot-pm { right: 8.34%; align-items: flex-end; }
.slot-pm::before { align-self: flex-end; }
.day-axis { position: relative; height: 20px; margin-top: 8px; font-size: .75rem; color: var(--ink-3); }
.day-axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.day-axis span:first-child { transform: none; }
.day-axis span:last-child { transform: translateX(-100%); }

/* sections */
section[id] { scroll-margin-top: 68px; }
.section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }
.section-title { font-size: 1.625rem; margin-bottom: 32px; }
.section-lead { color: var(--ink-2); margin: -16px 0 32px; }

/* problems */
.problems { border-top: 1px solid var(--line-strong); }
.problem { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1.3fr); gap: 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.problem-q { margin: 0; color: var(--ink-3); font-size: 1rem; }
.arrow { width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.problem h3 { font-size: 1.1875rem; margin-bottom: 4px; }
.problem p:last-child { margin: 0; color: var(--ink-2); font-size: .9375rem; }

/* plan table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plan-table { width: 100%; min-width: 320px; border-collapse: collapse; background: var(--surface); table-layout: fixed; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.plan-table th, .plan-table td { padding: 14px 12px; text-align: center; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.plan-table tbody tr:last-child > * { border-bottom: none; }
.plan-table thead th { font-size: 1rem; padding-top: 20px; padding-bottom: 16px; vertical-align: bottom; border-bottom: 1px solid var(--line-strong); }
.plan-table thead th:first-child { width: 30%; }
.plan-table tbody th { text-align: left; font-weight: 400; color: var(--ink-2); font-size: .875rem; }
.plan-table td { color: var(--ink-2); }
.plan-table strong { font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.plan-table .recommend { background: var(--accent-band); color: var(--ink); }
.plan-table thead .recommend { box-shadow: inset 0 3px 0 var(--accent); }
.badge { display: block; font-size: .75rem; font-weight: 400; color: var(--accent-deep); margin-bottom: 2px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.step-num { display: block; font-family: var(--mono); font-size: .875rem; color: var(--accent-deep); margin-bottom: 8px; }
.step h3 { font-size: 1.125rem; margin-bottom: 8px; }
.step p { margin: 0; font-size: .9375rem; color: var(--ink-2); }

/* faq */
.faq-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.faq { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: 1rem; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  text-align: left; background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--ink); padding: 20px 0;
  transition: color 160ms var(--ease);
}
.faq-q:hover { color: var(--accent-deep); }
.faq-icon { position: relative; flex: 0 0 16px; height: 16px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 1.5px; background: currentColor; transition: transform 200ms var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 32px 24px 0; color: var(--ink-2); }
.faq-a p { margin: 0; }
.faq-a:not([hidden]) { animation: faq-open 200ms var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* cta */
.cta { padding: 80px 0; color: #fff; background: var(--accent-deep); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.375rem, 3.4vw, 1.875rem); margin-bottom: 8px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .86); }
.cta-action { display: grid; gap: 4px; justify-items: start; }

/* footer */
.site-footer { background: #151c1b; color: #b9c3c0; padding: 32px 0 40px; font-size: .8125rem; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: #fff; }
.site-footer a:focus-visible, .cta a:focus-visible { outline-color: #fff; }
.sample-label { font-size: .9375rem; font-weight: 600; color: #fff; }

/* 出現：scroll-triggered fade-up（shared/reveal.js） */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 480ms var(--ease), transform 480ms var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 720px) {
  .problem { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .arrow { transform: rotate(90deg); }
  .steps { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 40px); }
  .hero { padding: 48px 0 64px; }
  .section { padding: 72px 0; }
  .section-title { font-size: 1.375rem; }
  .hero-actions .btn { width: 100%; }
  .day { padding: 20px 16px 16px; }
  .plan-table th, .plan-table td { padding: 10px 2px; font-size: .8125rem; }
  .plan-table thead th { font-size: .8125rem; }
  .plan-table thead th:first-child { width: 24%; }
  .plan-table tbody th { font-size: .75rem; padding-left: 4px; word-break: keep-all; line-height: 1.5; }
  .plan-table strong { font-size: 1rem; }
  .cta { padding: 64px 0; }
  .cta-action, .cta-action .btn { width: 100%; }
}

/* 印刷・PDF では出現前の要素も表示する */
@media print {
  .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .faq-a[hidden] { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
