/* 塾のデジタル屋さん: Apple風で、親しみやすく読みやすいデザイン。キーカラーは緑(2026-11-07) */
:root {
  --ink: #1d1d1f;
  --sub: #5f6661;
  --line: #d2d2d7;
  --bg: #ffffff;
  --alt: #ecfbf1;
  /* 明るい緑は面とアイコンに。緑の文字と小さいボタンは、読みやすい濃さの --green-text */
  --green: #16a34a;
  --green-text: #15803d;
  --green-dark: #0f6630;
  --deep: #14532d;
  --link: #15803d;
  --tint: #dcfce7;
  --warm: #fff6ea;
  --warm-ink: #a55a00;
  --radius: 24px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }
h1, h2, h3 { word-break: auto-phrase; letter-spacing: 0; }
h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.25; font-weight: 700; margin: 0 0 20px; }
h2 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.3; font-weight: 700; margin: 0 0 14px; }
h3 { font-size: 20px; line-height: 1.5; font-weight: 700; margin: 0 0 8px; }
p { margin: 0 0 14px; }

/* 上部メニュー */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 16px; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(140deg, #4ade80, #16a34a); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--ink); }
.nav-links a.pill { color: #fff; }
@media (max-width: 760px) { .nav-links a:not(.pill) { display: none; } }

/* ボタン */
.pill, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; font-weight: 600; text-decoration: none; transition: background 0.2s, transform 0.2s;
}
.pill { background: var(--green-text); color: #fff; padding: 6px 16px; font-size: 15px; }
.pill:hover { background: var(--green-dark); text-decoration: none; }
/* 明るい緑の上でも白い文字が読めるよう、ボタンの文字は大きめの太字 */
.btn { padding: 14px 30px; font-size: 19px; font-weight: 700; min-height: 54px; }
.btn.primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(22, 163, 74, 0.28); }
.btn.primary:hover { background: var(--green-text); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { color: var(--green-text); background: #fff; box-shadow: inset 0 0 0 1.5px var(--green); }
.btn.ghost:hover { background: var(--tint); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.center { text-align: center; }
.center .actions { justify-content: center; }

/* 最初の画面 */
.hero {
  padding: 72px 0 0; overflow: hidden;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(74, 222, 128, 0.30), transparent 70%),
    radial-gradient(50% 45% at 90% 25%, rgba(253, 224, 71, 0.22), transparent 70%),
    linear-gradient(180deg, #dcfce7 0%, #f0fdf4 70%, #ffffff 100%);
}
.hero .eyebrow, .eyebrow { display: inline-block; color: var(--green-text); background: var(--tint); font-size: 15px; font-weight: 700; padding: 4px 14px; border-radius: 999px; margin: 0 0 18px; }
.hero h1 { max-width: 15em; margin-left: auto; margin-right: auto; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--sub); line-height: 1.75; max-width: 34em; margin: 0 auto 28px; }
.hero .price-chip { display: inline-block; font-size: 15px; color: var(--ink); background: #fff; border-radius: 999px; padding: 8px 18px; box-shadow: var(--shadow); margin: 0 0 30px; }
.hero .price-chip b { color: var(--green-text); }
.device {
  width: min(300px, 72vw); margin: 56px auto 0; padding: 12px 12px 0;
  background: #1d1d1f; border-radius: 44px 44px 0 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}
.device img { border-radius: 32px 32px 0 0; height: 420px; width: 100%; object-fit: cover; object-position: top; }
.device-note { text-align: center; color: var(--sub); font-size: 13px; padding: 14px 0 28px; margin: 0; }

/* トップ: 背景の動画(右にノートPC、左に文字) */
.brand img { display: block; height: 32px; width: auto; }
/* 背景色は動画の端の色(#f7faf4)に合わせ、動画は右に寄せて文字と重ねない */
.hero.hero-video { position: relative; padding: 0; min-height: min(640px, 84vh); display: flex; align-items: center; background: #f7faf4; }
.hero-video .hero-bg {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 0;
  width: 66%; height: auto; aspect-ratio: 16 / 9;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.hero-copy { max-width: 540px; }
.hero-video h1 { font-size: clamp(30px, 4vw, 48px); margin-left: 0; margin-right: 0; }
.hero-video .lead { margin-left: 0; font-size: clamp(17px, 1.7vw, 19px); }
.hero-video .price-chip { margin-bottom: 8px; }
.h1-sub { display: block; font-size: clamp(16px, 1.6vw, 19px); color: var(--green-text); letter-spacing: 0.04em; margin-bottom: 14px; }
.hero-note { color: var(--sub); font-size: 16px; margin: 0 0 24px; }
.cta-note { color: var(--sub); font-size: 15px; margin: 14px 0 0; }
/* スマホ: 動画を背景にして、淡い膜の上に文字を重ねる(上下に分けない) */
@media (max-width: 860px) {
  .hero.hero-video { display: block; min-height: 0; }
  .hero-video .hero-bg { inset: 0; top: 0; transform: none; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 80% center; -webkit-mask-image: none; mask-image: none; }
  .hero-video::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(247, 250, 244, 0.78) 0%, rgba(247, 250, 244, 0.88) 45%, rgba(247, 250, 244, 0.95) 100%); }
  .hero-inner { padding-top: 40px; padding-bottom: 44px; }
  .hero-copy { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video .hero-bg { display: none; }
  .hero.hero-video { background: #f7faf4 url("assets/hero-bg-poster.jpg") right center / 66% auto no-repeat; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .hero.hero-video { background-image: none; }
}

/* 動き: 最初の画面は順番に浮かび上がる。スクロールで各ブロックが現れる(main.js) */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(70px, 40px) scale(1.08); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.28s; }
  .hero-copy > :nth-child(6) { animation-delay: 0.34s; }
  .hero-copy > :nth-child(7) { animation-delay: 0.4s; }
  .hero-video .hero-bg { animation: fade 1.4s ease 0.2s both; }
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
  .reveal.is-in { opacity: 1; transform: none; }
  .faq details[open] p { animation: rise 0.35s ease both; }
}

/* ページ内の小見出し(英字) */
.kicker { color: var(--green-text); font-size: 15px !important; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 8px; }

/* お悩みチェック */
.quiz { display: grid; gap: 12px; }
.quiz-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 2px solid #e3ece6; border-radius: 18px; padding: 18px 20px; cursor: pointer; font-size: 17px; font-weight: 600; line-height: 1.6; transition: border-color 0.2s, background 0.2s, transform 0.15s; }
.quiz-item:hover { border-color: #86efac; }
.quiz-item:active { transform: scale(0.985); }
.quiz-item input { appearance: none; -webkit-appearance: none; flex: none; width: 30px; height: 30px; margin: 0; border-radius: 50%; border: 2px solid #b7d9c2; background: #fff; display: grid; place-items: center; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.quiz-item input::after { content: ""; width: 12px; height: 7px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: translate(0, -2px) rotate(-45deg) scale(0); transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1); }
.quiz-item input:checked { background: var(--green); border-color: var(--green); }
.quiz-item input:checked::after { transform: translate(0, -2px) rotate(-45deg) scale(1); }
.quiz-item input:focus-visible { outline: 3px solid #86efac; outline-offset: 2px; }
.quiz-item:has(input:checked) { border-color: var(--green); background: #f0fdf4; }
.quiz-result { text-align: center; margin-top: 28px; padding: 30px 24px; background: var(--alt); border-radius: var(--radius); }
.quiz-result:not([hidden]) { animation: rise 0.4s ease both; }
.quiz-count { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.quiz-count b { font-size: 46px; color: var(--green-text); margin-right: 4px; }
.quiz-result p:not(.quiz-count) { color: var(--ink); margin-bottom: 20px; }

/* ふわっと動く背景の丸(フリースクールのサイトに多い、やわらかい演出) */
section.deco { position: relative; overflow: hidden; }
section.deco::before, section.deco::after { content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; width: 460px; height: 460px; }
section.deco::before { top: -160px; left: -160px; background: radial-gradient(circle, rgba(74, 222, 128, 0.22), transparent 70%); }
section.deco::after { right: -180px; bottom: -200px; background: radial-gradient(circle, rgba(253, 224, 71, 0.2), transparent 70%); }
section.deco > .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  section.deco::before { animation: drift 16s ease-in-out infinite alternate; }
  section.deco::after { animation: drift 19s ease-in-out -8s infinite alternate-reverse; }
}

/* 料金の後の申し込み */
.inline-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }

/* 運営者 */
.profile { display: flex; gap: 28px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.profile-mark img { width: 96px; height: 96px; border-radius: 24px; background: var(--tint); padding: 12px; }
.profile-name { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.profile-name span { display: block; font-size: 15px; color: var(--green-text); }
.profile-body p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .profile { flex-direction: column; gap: 18px; padding: 28px 24px; } }

/* 追従する予約ボタン */
.float-cta { position: fixed; z-index: 20; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 28px; border-radius: 999px; background: var(--green); color: #fff; font-size: 19px; font-weight: 700; box-shadow: 0 10px 28px rgba(21, 128, 61, 0.35); transform: translateY(160%); opacity: 0; transition: transform 0.35s ease, opacity 0.35s ease, background 0.2s; }
.float-cta:hover { background: var(--green-text); text-decoration: none; }
.float-cta.is-shown { transform: none; opacity: 1; }
@media (min-width: 861px) { .float-cta { left: auto; right: 28px; bottom: 28px; } }

/* 上部メニューの影(スクロールしたら) */
.nav { transition: box-shadow 0.3s ease; }
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06); }

/* 本文へ移動(キーボード操作の人向け) */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.skip:focus { left: 16px; }

/* 文中のリンクは下線で区別する */
main p a:not(.btn), .doc a, footer p a { text-decoration: underline; text-underline-offset: 3px; }

/* 触れたときの小さな反応 */
.card, .price-card, .steps li { transition: transform 0.25s ease, box-shadow 0.25s ease; }
@media (hover: hover) {
  .card:hover, .price-card:hover, .steps li:hover { transform: translateY(-4px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05), 0 20px 44px rgba(0, 0, 0, 0.09); }
}
.btn:active, .pill:active { transform: scale(0.97); }

/* 区切り */
section { padding: 96px 0; }
section.alt { background: var(--alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--sub); font-size: 19px; }

/* カード */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow); }
section.alt .card { box-shadow: none; }
.card p { color: var(--sub); margin: 0; font-size: 16px; }
.icon { width: 52px; height: 52px; border-radius: 16px; background: var(--tint); color: var(--green); display: grid; place-items: center; margin-bottom: 20px; }
.icon svg { width: 28px; height: 28px; }

/* 料金 */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 860px; margin: 0 auto; }
.price-card { background: #fff; border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow); text-align: center; }
.price-card .label { font-weight: 700; color: var(--sub); margin: 0 0 6px; }
.price-card .amount { font-size: clamp(44px, 7vw, 56px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.price-card .amount small { font-size: 18px; font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.price-card .tax { color: var(--sub); font-size: 15px; margin: 4px 0 16px; }
.badge { display: inline-block; background: var(--warm); color: var(--warm-ink); font-weight: 700; font-size: 15px; border-radius: 999px; padding: 4px 16px; margin: 0 0 16px; }
.checks { list-style: none; padding: 0; margin: 0; text-align: left; }
.checks li { position: relative; padding: 8px 0 8px 32px; border-top: 1px solid #e3ece6; font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 14px; height: 8px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.checks.no li::before { width: 14px; height: 0; border-left: 0; border-bottom: 2.5px solid #aeaeb2; top: 21px; transform: none; }
.fineprint { color: var(--sub); font-size: 15px; max-width: 860px; margin: 28px auto 0; text-align: center; }

/* 流れ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: #fff; border-radius: 20px; padding: 26px 22px; box-shadow: var(--shadow); }
section.alt .steps li { box-shadow: none; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--sub); font-size: 15px; margin: 0; }

/* 約束 */
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

/* よくある質問 */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border-radius: 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
section.alt .faq details { box-shadow: none; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 56px 22px 26px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 26px 22px; margin: 0; color: var(--sub); }

/* 開発中 */
.note-card { background: #fff; border: 1.5px dashed #86efac; border-radius: var(--radius); padding: 32px; max-width: 860px; margin: 0 auto; }
.note-card p { color: var(--sub); margin: 0 0 8px; }

/* 締め */
.cta {
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(253, 224, 71, 0.25), transparent 70%),
    linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #fff; border-radius: 32px; padding: 64px 28px; text-align: center;
}
.cta p { color: #fff; font-size: 19px; font-weight: 700; margin-bottom: 28px; }
.cta .actions { justify-content: center; }
.cta .btn.primary { background: #fff; color: var(--green-text); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); }
.cta .btn.primary:hover { background: #f0faf3; }
.cta .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85); }
.cta .btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.br-wide { display: inline; }
@media (max-width: 600px) { .br-wide { display: none; } }

/* 下部 */
footer { background: var(--deep); color: rgba(255, 255, 255, 0.78); font-size: 15px; padding: 40px 0 48px; }
.footer-logo { display: block; height: 28px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 18px; }
@media (max-width: 860px) { footer { padding-bottom: 110px; } }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
footer a { color: #fff; }

/* 規約などの文書 */
.doc { padding: 56px 0 88px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 28px; }
.doc h2 { font-size: 21px; margin: 40px 0 10px; }
.doc p, .doc li { font-size: 16px; }
.doc ul { padding-left: 1.3em; }
.table { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid #e3ece6; font-size: 16px; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { width: 32%; font-weight: 700; background: #f4faf6; }
@media (max-width: 600px) {
  th, td { display: block; width: 100%; }
  th { border-bottom: 0; padding-bottom: 4px; }
  td { padding-top: 0; }
}
.plain { padding-left: 1.3em; margin: 0; }
.plain li { margin-bottom: 6px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 28px; }
  section { padding: 72px 0; }
  .hero { padding-top: 48px; }
  .btn { width: 100%; }
  .card, .price-card { padding: 28px 24px; }
}

@media print {
  .nav, .no-print, .device, .hero-bg, .float-cta, .skip { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; font-size: 11pt; }
  .cta, footer { background: #fff; color: #000; }
  .cta p, footer a { color: #000; }
  section { padding: 20px 0; break-inside: avoid; }
  .card, .price-card, .table, .steps li { box-shadow: none; border: 1px solid #ddd; }
  /* PDFにすると、ぼかした影が灰色の四角になるため、印刷では影と飾りを消す */
  *, *::before, *::after { box-shadow: none !important; }
  section.deco::before, section.deco::after { display: none; }
  .btn.ghost { border: 1.5px solid var(--green); }
  .hero .price-chip, .profile, .faq details { border: 1px solid #ddd; }
}

/* スマホでメニューのボタンが折り返さないように */
.pill { white-space: nowrap; }
@media (max-width: 420px) { .brand img { height: 26px; } .nav-links .pill { padding: 6px 14px; } }
.profile-mark { flex: none; }
