@charset "UTF-8";
/* =============================================================
   サイト制作ひな形 — style.css
   正本: docs/web-site/blueprint.md
   ビルド不要。このファイルと index.html だけで完結する。
   ブランドを変えるときは §1 のトークンだけ差し替える。
   ============================================================= */

/* ---------- §1 デザイントークン（★案件ごとに差し替えるのはここだけ） ---------- */
:root {
  /* 主色（深い有彩色）・生成り・差し色の3色で組む。lightness/chroma/hue の順 */
  --brand:       oklch(32.0% 0.100 265);  /* 見出し・ボタン・濃背景（ペン先生の紺） */
  --brand-deep:  oklch(22.0% 0.090 265);  /* フッター・最も濃い面 */
  --brand-soft:  oklch(50.0% 0.130 265);  /* リンク・フォーカスリング */
  --cream:       oklch(97.5% 0.012  92);  /* 明るい面 */
  --cream-deep:  oklch(95.0% 0.018  88);  /* 交互に敷く面 */
  --accent:      oklch(70.0% 0.125  82);  /* 差し色＝ペン先生の金。罫線と英字ラベルだけに使う */
  --accent-soft: oklch(86.0% 0.070  88);

  --bg:          oklch(98.5% 0.006 265);
  --ink:         oklch(26.0% 0.020 265);  /* 本文 */
  --ink-mute:    oklch(50.0% 0.022 265);  /* 補足・注記 */
  --line:        oklch(90.0% 0.016 265);

  --font-sans:    "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-serif:   var(--font-sans);   /* 2026-08-06 青野さん指示で明朝をやめ Noto Sans JP に一本化 */
  --font-display: var(--font-sans);   /* 英字ラベルも同じ書体で通す */

  --wrap: 1120px;
  --radius: 0.5rem;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- §2 リセットと基本組版（和文の読みやすさはここで決まる） ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 2;                      /* ★和文の本文は 1.9〜2.0。ここを詰めると一気に安っぽくなる */
  letter-spacing: 0.04em;
  text-spacing-trim: trim-start;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 3px; }

/* 日本語の折り返し。句読点や助詞での孤立を減らす */
.jp-balance { text-wrap: balance; word-break: auto-phrase; overflow-wrap: anywhere; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tint { background: var(--cream); }
.section--dark { background: var(--brand); color: var(--cream); }
.section--dark .lead, .section--dark .note { color: oklch(97.5% 0.012 92 / 0.8); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- §3 セクション見出し（全セクション共通の4段構造） ----------
   英字ラベル → 和文H2 → 差し色の細罫 → リード文。これを崩さないと統一感が出る */
.heading { text-align: center; }
.heading--left { text-align: left; }
.heading__eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--accent);
}
.section--dark .heading__eyebrow { color: var(--accent-soft); }
.heading__title {
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 500; line-height: 1.55; letter-spacing: 0.06em;
  color: var(--brand-deep);
}
.section--dark .heading__title { color: var(--cream); }
.heading__rule {
  width: 4rem; height: 1px; margin-top: 1.25rem;
  background: linear-gradient(90deg, var(--accent), oklch(72% 0.095 82 / 0));
}
.heading:not(.heading--left) .heading__rule { margin-inline: auto; background: linear-gradient(90deg, oklch(72% 0.095 82 / 0), var(--accent), oklch(72% 0.095 82 / 0)); }
.heading__lead {
  margin-top: 1.5rem; max-width: 42rem;
  font-size: 0.95rem; line-height: 2; color: var(--ink-mute);
}
.heading:not(.heading--left) .heading__lead { margin-inline: auto; }
.section--dark .heading__lead { color: oklch(97.5% 0.012 92 / 0.8); }

/* ---------- §4 ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 2rem; border: 0; border-radius: 999px;
  font: inherit; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.08em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--brand); color: var(--cream); box-shadow: 0 10px 30px -12px oklch(25.5% 0.05 156 / 0.55); }
.btn--primary:hover { background: var(--brand-deep); }
.btn--ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--brand-soft); }
.btn--light { background: var(--cream); color: var(--brand-deep); }
.btn--accent { background: var(--accent); color: var(--brand-deep); }
.btn--accent:hover { filter: brightness(1.06); }
.btn--sm { padding: 0.75rem 1.5rem; font-size: 0.85rem; }

/* ---------- §5 ヘッダー（追従・モバイルはドロワー） ---------- */
/* ヒーローが濃色なので、最上部は白文字・スクロール後に地色＋黒文字へ反転させる */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--cream);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.header.is-scrolled {
  color: var(--ink);
  background: oklch(98.5% 0.008 92 / 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.header__logo { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.2em; text-decoration: none; color: inherit; }
.header.is-scrolled .header__logo { color: var(--brand-deep); }
.header__nav { display: none; }
.header__nav ul { display: flex; align-items: center; gap: 1.5rem; }
.header__nav a { font-size: 0.8rem; letter-spacing: 0.1em; text-decoration: none; color: inherit; text-shadow: 0 1px 12px oklch(22.0% 0.09 265 / 0.55); }
.header.is-scrolled .header__nav a { text-shadow: none; }
.header__nav a:hover { color: var(--accent-soft); }
.header.is-scrolled .header__nav a:hover { color: var(--brand-soft); }
.header__toggle { display: inline-flex; padding: 0.5rem; background: none; border: 0; cursor: pointer; color: inherit; }
@media (min-width: 960px) {
  .header__nav { display: block; }
  .header__toggle { display: none; }
}
.drawer {
  position: fixed; inset: 0; z-index: 49;
  display: grid; place-content: center; gap: 0.5rem;
  background: var(--brand); color: var(--cream);
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.drawer[data-open="true"] { opacity: 1; visibility: visible; }
.drawer a { padding: 0.6rem 2rem; font-size: 1rem; letter-spacing: 0.12em; text-decoration: none; text-align: center; }

/* ---------- §6 ヒーロー ---------- */
.hero { position: relative; display: grid; align-items: center; min-height: min(88svh, 780px); padding-block: 8rem 4rem; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, oklch(22.0% 0.09 265 / 0.78) 0%, oklch(22.0% 0.09 265 / 0.42) 55%, transparent 100%); }
.hero__inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.15fr 0.85fr; } }
.hero__eyebrow { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent-soft); }
.hero__title {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 5.6vw, 3.25rem);
  font-weight: 500; line-height: 1.5; letter-spacing: 0.08em;
  color: var(--cream);
}
.hero__lead { margin-top: 1.75rem; max-width: 34rem; font-size: 0.95rem; line-height: 2.1; color: oklch(97.5% 0.012 92 / 0.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
.hero__product img { margin-inline: auto; max-width: 22rem; filter: drop-shadow(0 30px 50px oklch(0% 0 0 / 0.35)); }

/* ---------- §7 カードの3点セット（こんな方に／選ばれる理由／使い方） ----------
   1セット5枚が基準。desktop 3+2 に自然に落ちる */
.cards { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.section--tint .card { background: var(--bg); }
.card__media { aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.5rem 1.5rem 1.75rem; }
.card__scene { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.card__title { margin-top: 0.5rem; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; line-height: 1.7; color: var(--brand-deep); }
.card__text { margin-top: 0.9rem; font-size: 0.85rem; line-height: 2; color: var(--ink-mute); }

/* ---------- §8 息継ぎ（全幅の写真＋1行） ---------- */
.interlude { position: relative; display: grid; place-items: center; min-height: min(42svh, 460px); padding-block: 5rem; text-align: center; overflow: hidden; }
.interlude__bg { position: absolute; inset: 0; z-index: -2; }
.interlude__bg img { width: 100%; height: 100%; object-fit: cover; }
.interlude::after { content: ""; position: absolute; inset: 0; z-index: -1; background: oklch(22.0% 0.09 265 / 0.55); }
.interlude p { font-family: var(--font-serif); font-size: clamp(1.15rem, 3.2vw, 1.75rem); line-height: 2; letter-spacing: 0.12em; color: var(--cream); }

/* ---------- §9 商品（写真＋スペック表） ---------- */
.product { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) { .product { grid-template-columns: 1fr 1fr; } }
.product__media img { border-radius: var(--radius); }
.spec { border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-block: 0.9rem; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.spec dt { color: var(--ink-mute); letter-spacing: 0.08em; }
.spec dd { line-height: 1.9; }

/* ---------- §10 toB（卸売・OEM・代理店） ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.split__media img { border-radius: var(--radius); }
.checklist { margin-top: 1.75rem; display: grid; gap: 0.85rem; }
.checklist li { position: relative; padding-left: 1.6rem; font-size: 0.88rem; line-height: 1.95; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 0.6rem; height: 1px; background: var(--accent); }

/* ---------- §11 購入の流れ（5ステップ） ---------- */
.steps { display: grid; gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); counter-reset: step; }
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { counter-increment: step; text-align: center; }
.step__media { aspect-ratio: 1 / 1; border-radius: 999px; overflow: hidden; margin-inline: auto; max-width: 11rem; }
.step__media img { width: 100%; height: 100%; object-fit: cover; }
.step__no { display: block; margin-top: 1.25rem; font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.28em; color: var(--accent); }
.step__no::before { content: "STEP 0" counter(step); }
.step__title { margin-top: 0.4rem; font-family: var(--font-serif); font-size: 1rem; font-weight: 500; color: var(--brand-deep); }
.step__text { margin-top: 0.7rem; font-size: 0.8rem; line-height: 1.95; color: var(--ink-mute); }

/* ---------- §12 FAQ（details/summary。JS不要・検索エンジンも読む） ---------- */
.faq { max-width: 46rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; gap: 1rem;
  padding-block: 1.25rem; cursor: pointer; list-style: none;
  font-size: 0.95rem; font-weight: 500; line-height: 1.8; color: var(--brand-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--font-display); font-size: 0.95rem; color: var(--accent); }
.faq summary::after { content: "+"; margin-left: auto; font-size: 1.1rem; color: var(--ink-mute); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 1.4rem 2rem; font-size: 0.87rem; line-height: 2; color: var(--ink-mute); }

/* ---------- §13 相手別CTA（4枚） ---------- */
.cta-grid { display: grid; gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 700px) { .cta-grid { grid-template-columns: repeat(2, 1fr); } }
.cta-card { display: flex; flex-direction: column; padding: 1.75rem; background: oklch(97.5% 0.012 92 / 0.08); border: 1px solid oklch(97.5% 0.012 92 / 0.22); border-radius: var(--radius); }
.cta-card h3 { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 500; color: var(--cream); }
.cta-card p { margin-top: 0.75rem; font-size: 0.84rem; line-height: 1.95; color: oklch(97.5% 0.012 92 / 0.78); }
.cta-card .btn { margin-top: auto; align-self: flex-start; margin-top: 1.5rem; }

/* ---------- §14 フッター ---------- */
.footer { background: var(--brand-deep); color: oklch(97.5% 0.012 92 / 0.7); }
.footer__inner { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1.1fr 1fr; } }
.footer__logo { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.18em; color: var(--cream); }
.footer dl > div { display: flex; gap: 0.75rem; padding-block: 0.3rem; font-size: 0.8rem; line-height: 1.9; }
.footer dt { flex: 0 0 4.5rem; color: oklch(97.5% 0.012 92 / 0.5); }
.footer__sitemap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1.5rem; font-size: 0.8rem; }
.footer__sitemap a { text-decoration: none; }
.footer__sitemap a:hover { color: var(--cream); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; padding-block: 1.5rem; border-top: 1px solid oklch(97.5% 0.012 92 / 0.15); font-size: 0.72rem; }
.note { font-size: 0.73rem; line-height: 1.9; color: var(--ink-mute); }

/* ---------- §15 スクロール表示（動きを嫌う設定は尊重する） ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }


/* ---------- §12 ペン先生LP 追加（2026-08-06・site-build） ---------- */
/* 講座の目次: STEP → DAY 表記に */
.steps--days .step__no::before { content: "DAY 0" counter(step); }
.steps--days .step__title { font-size: 0.95rem; line-height: 1.8; text-align: left; }
.steps--days .step__text { text-align: left; }
.steps--days .step { text-align: left; }

/* 問い型カリキュラム */
.qa { max-width: 46rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0; display: grid; gap: 0; }
.qa__item { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.qa__day { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.2em; color: var(--accent); padding-top: 0.35em; }
.qa__q { font-family: var(--font-serif); font-size: 1.02rem; font-weight: 500; line-height: 1.95; color: var(--brand-deep); }
.qa__a { margin-top: 0.55rem; font-size: 0.84rem; line-height: 1.95; color: var(--ink-mute); }

/* 最初の1通の実物風カード */
.mailcard { max-width: 34rem; margin: clamp(2rem, 4vw, 3rem) auto 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px oklch(22% 0.09 265 / 0.08); overflow: hidden; }
.mailcard__head { padding: 1.1rem 1.4rem; background: var(--cream-deep); border-bottom: 1px solid var(--line); font-size: 0.78rem; line-height: 2; color: var(--ink-mute); }
.mailcard__head b { color: var(--brand-deep); font-weight: 600; }
.mailcard, .mailcard__body { color: var(--ink); }
.mailcard__body { padding: 1.4rem; font-size: 0.85rem; line-height: 2.05; }
.section--dark .mailcard__more { color: var(--ink-mute); }
.mailcard__more { margin-top: 1rem; color: var(--ink-mute); font-size: 0.8rem; }

/* 登録フォーム */
.signup { max-width: 30rem; margin: clamp(2rem, 4vw, 3rem) auto 0; text-align: center; }
.signup input[type="email"] { width: 100%; padding: 0.95rem 1rem; font-size: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
.signup input[type="email"]:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.signup .btn { width: 100%; margin-top: 0.9rem; justify-content: center; }
.signup .note { margin-top: 0.9rem; }
.section--dark .signup input[type="email"] { border-color: oklch(97.5% 0.012 92 / 0.3); }

/* 流れ＋約束 */
.flowlist { max-width: 44rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0; display: grid; gap: 0; }
.flowlist li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); font-size: 0.87rem; line-height: 1.95; }
.flowlist dt, .flowlist b { color: var(--brand-deep); font-weight: 600; letter-spacing: 0.04em; }

/* キャラ挿絵（透過PNGを面の上に置く） */
.card__media--fig { flex: 0 0 auto; height: 14rem; display: grid; place-items: center; aspect-ratio: auto; padding: 1.1rem; overflow: hidden; background: var(--cream-deep); }
.card__media--fig img { width: auto; height: auto; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.figure-inline { display: block; margin-inline: auto; max-width: 9rem; }

@media (min-width: 700px) { .qa__item { grid-template-columns: 5.5rem 1fr; } }
@media (max-width: 599px) {
  .qa__item, .flowlist li { grid-template-columns: 1fr; gap: 0.35rem; }
  .qa__day { padding-top: 0; }
}

/* プロフィールのキャラは等身大に見えるサイズで止める（原寸だと画面半分を占める） */
#teacher .split__media img { max-width: 13rem; margin-inline: auto; display: block; }

/* スマホ: ヒーローのキャラが画面いっぱいになるのを抑える */
@media (max-width: 640px) {
  .hero__title { letter-spacing: 0.04em; }
  .hero__product img { max-width: 13rem; }
  .hero { min-height: auto; padding-block: 6rem 3rem; }
  .figure-inline { max-width: 7rem; }
  #teacher .split__media img { max-width: 10rem; }
}

/* ---------- §13 書体の一本化（2026-08-06） ---------- */
.heading__title, .hero__title, .card__title, .qa__q, .step__title, .cta-card h3, .footer__logo, .interlude p, .faq summary { font-weight: 600; }
.heading__eyebrow, .hero__eyebrow, .card__scene, .qa__day, .step__no, .header__logo { font-weight: 600; letter-spacing: 0.18em; }
.hero__title { letter-spacing: 0.04em; }
.heading__title { letter-spacing: 0.06em; }
.interlude p { letter-spacing: 0.08em; }

/* ---------- §14 スマホのヒーロー（2026-08-06） ----------
   16:9の情景イラストを縦画面に切り出すと机も窓も切れて背景として成立しないので、
   スマホでは情景を出さずに紺のグラデーションに置き換え、キャラだけを見せる */
@media (max-width: 640px) {
  .hero__bg { display: none; }
  .hero::after { background: linear-gradient(170deg, var(--brand) 0%, var(--brand-deep) 100%); }
  .hero { min-height: auto; padding-block: 5.5rem 2.5rem; text-align: left; }
  .hero__inner { gap: 1.75rem; }
  .hero__product { order: -1; }
  .hero__product img { max-width: 11rem; filter: none; }
  .hero__actions { display: block; }
  .hero__actions .btn { display: flex; width: 100%; min-width: 0; margin-top: 0.75rem; }
  .hero__actions .btn:first-child { margin-top: 0; }
  /* 375px では「無料で7日間のメール講座を受け取る」がボタン幅を超えるので詰める */
  .btn { padding: 0.95rem 1.25rem; font-size: 0.86rem; letter-spacing: 0.04em; }
}

/* ---------- §15 ヘッダーの可読性（2026-08-06） ----------
   透明ヘッダーを絵の上に置くと、明るい部分でナビが読めなくなる。
   上端に細い暗のスクリムを敷き、スクロール後は白背景に切り替わるので消す */
.header::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 7rem; z-index: -1;
  background: linear-gradient(to bottom, oklch(18% 0.07 265 / 0.62) 0%, oklch(18% 0.07 265 / 0.30) 55%, transparent 100%);
  pointer-events: none; transition: opacity 0.3s var(--ease);
}
.header.is-scrolled::before { opacity: 0; }
.header__nav a { text-shadow: none; }

/* ヒーロー: 背景の情景は900px未満だと切り抜きが破綻するので出さない（スマホ・タブレット共通） */
@media (max-width: 899px) {
  .hero__bg { display: none; }
  .hero::after { background: linear-gradient(170deg, var(--brand) 0%, var(--brand-deep) 100%); }
  .hero { min-height: auto; padding-block: 6rem 3rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__product { order: -1; }
  .hero__product img { max-width: 12rem; filter: none; }
}

/* ---------- §16 ヒーローのキャラ重複（2026-08-06） ----------
   背景の情景イラストにペン先生が描かれているので、その上にキャラ画像を重ねると
   幅によってずれて「ペンギンが2匹」になる。900px以上では情景の中のペン先生だけを見せ、
   重ねるキャラは出さない（900px未満は情景を出さずキャラだけを見せる＝§15と対になる） */
@media (min-width: 900px) {
  .hero__product { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__inner > div:first-child { max-width: 40rem; }
}

/* 決済フォーム（本番 index.php の埋め込み版に合わせる） */
.pay { max-width: 30rem; margin: 1.75rem auto 0; }
.pay__lead { font-size: 0.9rem; text-align: center; margin-bottom: 0.75rem; font-weight: 600; color: var(--brand-deep); }
.pay .btn { width: 100%; margin-top: 1rem; }
.pay__err { display: none; color: #C0392B; font-size: 0.85rem; text-align: center; margin-top: 0.75rem; }
.pay__test { background: #fff3cd; border: 1px solid #ffe08a; border-radius: var(--radius); padding: 0.7rem 0.9rem; font-size: 0.85rem; margin-bottom: 0.9rem; }

.pay--wide { max-width: 32rem; margin-inline: auto; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: clamp(2rem, 4vw, 2.5rem); border-top: 1px solid var(--line); }
