/* AI自習室 LP（school.digital-ya.dev）
   スマホが先（広告から来る人の99%がスマホ。2026-11 の GA4）。PCはそれを広げる。
   色は digital-ya.com と同じ系統（白・薄い青の地に、濃い青と黄色の差し色）。ピンクは使わない */

:root {
  --blue: #0B5E9E;
  --blue-deep: #08497C;
  --ink: #13243D;
  --text: #33415A;
  --muted: #66758C;
  --pale: #EAF3FA;
  --mist: #F4F8FB;
  --line: #D5E3EE;
  --yellow: #FFE35A;
  --yellow-deep: #E8C62E;
  --yellow-soft: #FFF6C9;
  --wrap: 1080px;
  --gutter: 20px;
  --head-h: 56px;
}
@media (min-width: 760px) { :root { --gutter: 40px; --head-h: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: "Noto Sans JP", system-ui, sans-serif; font-size: 16px; line-height: 1.85; letter-spacing: 0.02em;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); word-break: auto-phrase; text-wrap: balance; }
p { text-wrap: pretty; }
.pc { display: none; }
@media (min-width: 760px) { .pc { display: inline; } }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - var(--gutter) * 2); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; letter-spacing: 0.06em;
  transition: transform .15s, box-shadow .15s;
}
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 5px 0 var(--blue-deep); }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 5px 0 var(--yellow-deep); }
.btn--blue:hover, .btn--yellow:hover { transform: translateY(3px); }
.btn--blue:hover { box-shadow: 0 2px 0 var(--blue-deep); }
.btn--yellow:hover { box-shadow: 0 2px 0 var(--yellow-deep); }
.btn--lg { width: 100%; max-width: 420px; padding: 18px 24px; font-size: 17px; }
.btn--sm { padding: 8px 18px; font-size: 13px; box-shadow: 0 3px 0 var(--blue-deep); }
.btn--block { width: 100%; }
.btn__arrow { width: 0; height: 0; border-left: 8px solid var(--yellow); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.btn--yellow .btn__arrow { border-left-color: var(--blue); }

/* ---------- ヘッダー ---------- */
.site-head { position: sticky; top: 0; z-index: 20; height: var(--head-h); background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.logo__name { font-size: 20px; font-weight: 900; color: var(--blue); letter-spacing: 0.08em; }
.logo__sub { font-size: 11px; color: var(--muted); }
.site-head__cta { display: none; }
@media (min-width: 760px) {
  .logo__name { font-size: 24px; }
  .logo__sub { font-size: 12px; }
  .site-head__cta { display: inline-flex; }
}

/* ---------- 最初の1画面 ----------
   スマホ：文 → 写真（左に3つの事実を重ねる）→ 白い台の上に予約ボタン。写真の下端は白い台の上端にそろえる
   PC：左に文と予約ボタン、右に写真。写真の下端は帯の下端にそろえる */
.hero { position: relative; overflow: hidden; background: var(--pale); }
.hero__bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 82% 52%, #fff 0, #fff 30%, transparent 30.2%),
    radial-gradient(circle at 100% 100%, var(--yellow) 0, var(--yellow) 18%, transparent 18.2%); }
.hero__in { position: relative; display: grid; grid-template-areas: "text" "visual" "action"; padding-top: 24px; }
.hero__text { grid-area: text; display: flex; flex-direction: column; gap: 12px; }
.hero__eyebrow { font-size: 13px; font-weight: 700; color: var(--blue); }
.hero__title { font-size: clamp(32px, 9.4vw, 60px); font-weight: 900; line-height: 1.3; letter-spacing: 0.04em; font-feature-settings: "palt"; margin-left: -0.12em; /* 行頭のかぎ括弧の空きを詰めて、左端をそろえる */ }
.hero__title mark { background: linear-gradient(transparent 62%, var(--yellow) 62%); color: inherit; padding: 0 .05em; }
.hero__lead { font-size: 15px; line-height: 1.9; }

.hero__visual { grid-area: visual; position: relative; display: flex; justify-content: flex-end; margin-top: 8px; }
.hero__photo { width: 58vw; max-width: 340px; margin-right: -8px;
  /* 写真の左端は腕が縦に切れているので、そこだけぼかす */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%); mask-image: linear-gradient(to right, transparent, #000 14%); }
.hero__facts { position: absolute; left: 0; bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.hero__facts li { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(19, 36, 61, .08); line-height: 1.4; }
.hero__facts b { font-size: 16px; font-weight: 900; color: var(--ink); }
.hero__facts li:first-child b { color: var(--blue); font-size: 19px; }
.hero__facts small { font-size: 11px; color: var(--muted); }

.hero__action { grid-area: action; position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-inline: calc(var(--gutter) * -1); padding: 20px var(--gutter) 28px; background: #fff; text-align: center; }
.hero__assure { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.7; }
.hero__note { font-size: 12px; color: var(--muted); }

@media (min-width: 960px) {
  .hero__bg { background:
    radial-gradient(circle at 76% 58%, #fff 0, #fff 24%, transparent 24.2%),
    radial-gradient(circle at 100% 100%, var(--yellow) 0, var(--yellow) 16%, transparent 16.2%); }
  .hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "text visual" "action visual"; column-gap: 32px; padding-top: 64px; min-height: 600px; }
  .hero__text { align-self: end; gap: 18px; }
  .hero__eyebrow { font-size: 15px; }
  .hero__lead { font-size: 17px; max-width: 34em; }
  .hero__visual { align-self: end; justify-content: center; margin-top: 0; }
  .hero__photo { width: 100%; max-width: 440px; margin-right: 0; }
  .hero__facts { left: -24px; bottom: 56px; }
  .hero__facts li { padding: 10px 18px; }
  .hero__facts b { font-size: 18px; }
  .hero__facts li:first-child b { font-size: 22px; }
  .hero__action { align-items: flex-start; margin: 28px 0 0; padding: 0 0 72px; background: none; text-align: left; }
  .hero__assure { font-size: 15px; }
}

/* ---------- 節 ---------- */
.sec { padding: 64px 0; }
.sec--pale { background: var(--mist); }
.sec__title { font-size: clamp(22px, 6vw, 32px); font-weight: 900; line-height: 1.5; letter-spacing: 0.04em; }
.sec__lead { margin-top: 14px; max-width: 40em; font-size: 15px; }
.sec__note { margin-top: 16px; font-size: 13px; color: var(--muted); }
@media (min-width: 760px) {
  .sec { padding: 96px 0; }
  .sec__lead { font-size: 16px; }
}

/* 学べること：アイコン＋名前＋ひとこと。スマホは2列、PCは4列。縦線で区切る */
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; margin-top: 32px; }
.topics li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 12px; text-align: center; }
.topics li:nth-child(odd) { border-right: 1px solid var(--line); }
.topics__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--pale); color: var(--blue); }
.topics__icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.topics h3 { margin-top: 4px; font-size: 16px; font-weight: 700; }
.topics p { font-size: 13px; line-height: 1.7; color: var(--muted); }
@media (min-width: 760px) {
  .topics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; }
  .topics li { border-right: 1px solid var(--line); }
  .topics li:first-child { border-left: 1px solid var(--line); }
  .topics__icon { width: 76px; height: 76px; }
  .topics h3 { font-size: 17px; }
}

/* カリキュラム：アプリの画面に見立てたカード（例）。スマホは横にめくる */
.curr { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 16px; margin: 28px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
.curr__card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 10px 10px 0 var(--yellow); }
.curr__who { font-size: 12px; font-weight: 700; color: var(--blue); }
.curr__goal { font-size: 17px; font-weight: 700; line-height: 1.6; }
.curr__bar { height: 8px; border-radius: 99px; background: var(--pale); overflow: hidden; }
.curr__bar span { display: block; width: calc(var(--done) / var(--all) * 100%); min-width: 8px; height: 100%; border-radius: inherit; background: var(--blue); }
.curr__steps { display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.curr__steps li { position: relative; padding-left: 34px; font-size: 14px; line-height: 1.7; counter-increment: s; color: var(--muted); }
.curr__steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); background: #fff; }
.curr__steps li.is-done { color: var(--text); }
.curr__steps li.is-done::before { content: "✓"; border-color: var(--blue); background: var(--blue); color: #fff; }
.curr__steps li.is-now { color: var(--ink); font-weight: 700; }
.curr__steps li.is-now::before { border-color: var(--blue); color: var(--blue); background: var(--yellow-soft); }
@media (min-width: 960px) {
  .curr { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 40px 0 0; padding: 0 12px 12px 0; overflow: visible; }
}

/* 進め方：縦の線でつなぐ。3〜5 はくり返しなので、点線の枠で囲む */
.flow { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.flow__step { display: flex; gap: 16px; }
.flow__num { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; font-size: 17px; }
.flow__step h3 { font-size: 17px; font-weight: 700; line-height: 1.6; }
.flow__step p { margin-top: 4px; font-size: 15px; }
.flow__loop { padding: 20px 16px; border: 2px dashed var(--blue); border-radius: 16px; background: var(--pale); }
.flow__loop-label { margin-bottom: 16px; font-size: 13px; font-weight: 700; color: var(--blue); }
/* くり返す3つの段は写真つき。スマホは縦に、PCは3列 */
.loop { display: grid; gap: 24px; }
.loop__item { display: flex; flex-direction: column; gap: 14px; }
.loop__photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; background: #fff; }
.loop__body { display: flex; gap: 14px; }
.loop__body h3 { font-size: 17px; font-weight: 700; line-height: 1.6; }
.loop__body p { margin-top: 4px; font-size: 15px; }
@media (min-width: 760px) {
  .flow { margin-top: 44px; }
  .flow__loop { padding: 28px 28px; }
}
@media (min-width: 960px) {
  #flow .wrap--narrow { width: min(var(--wrap), 100% - var(--gutter) * 2); }
  .flow > .flow__step { max-width: 820px; }
  .loop { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .loop__body { flex-direction: column; gap: 10px; }
  .loop__body p { font-size: 14px; }
}

/* 料金 */
.price { margin: 28px 8px 0 0; padding: 28px 22px 32px; border-radius: 20px; background: #fff; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--blue); display: flex; flex-direction: column; align-items: center; gap: 24px; }
.price__head { text-align: center; }
.price__name { font-size: 14px; font-weight: 700; color: var(--blue); }
.price__amount { font-size: 28px; font-weight: 900; color: var(--ink); line-height: 1.2; }
.price__amount b { font-size: 72px; color: var(--blue); margin: 0 4px; }
.price__amount small { font-size: 15px; font-weight: 700; }
.price__sub { margin-top: 4px; font-size: 14px; font-weight: 700; }
.price__body { display: grid; gap: 20px; width: 100%; padding-top: 20px; border-top: 1px solid var(--line); }
.price__body h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.ticks li, .dots li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.8; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.dots li::before { content: ""; position: absolute; left: 6px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.price__note { margin-top: -12px; font-size: 13px; color: var(--muted); }
@media (min-width: 760px) {
  .price { padding: 40px 48px 44px; margin-top: 40px; box-shadow: 12px 12px 0 var(--blue); }
  .price__body { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* 教える人・場所 */
.teacher { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.teacher__photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.teacher__name { font-size: 20px; font-weight: 900; color: var(--ink); margin-bottom: 8px; }
.teacher__name small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.place { margin-top: 40px; padding: 20px 22px; border-left: 4px solid var(--yellow); background: var(--yellow-soft); border-radius: 0 12px 12px 0; }
.place h3 { font-size: 17px; font-weight: 700; }
.place p { margin-top: 6px; font-size: 15px; }
@media (min-width: 760px) {
  .teacher { flex-direction: row; align-items: center; gap: 36px; margin-top: 40px; }
  .teacher__photo { width: 180px; height: 180px; flex-shrink: 0; }
}

/* よくあるご質問 */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 40px 18px 0; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; line-height: 1.7; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; font-size: 15px; }

/* 締め */
.cta { padding: 64px 0 72px; background: var(--blue); color: #fff; text-align: center; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta__title { color: #fff; font-size: clamp(22px, 6vw, 32px); font-weight: 900; line-height: 1.5; }
.cta__lead { font-size: 15px; }
.cta__note { font-size: 13px; opacity: .85; }
@media (min-width: 760px) { .cta { padding: 96px 0; } }

/* フッター */
.site-foot { padding: 32px 0 120px; background: var(--ink); color: #C9D4E3; font-size: 13px; text-align: center; }
.site-foot a { color: #fff; }
.site-foot__name { font-size: 16px; font-weight: 900; color: #fff; margin-bottom: 8px; letter-spacing: 0.08em; }
@media (min-width: 760px) { .site-foot { padding-bottom: 40px; } }

/* スマホの予約の帯：最初のボタンと締めの帯が画面に無いときだけ出す（main.js） */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s; }
.sticky.is-on { transform: none; }
@media (min-width: 760px) { .sticky { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky { transition: none; }
}
