/* ビギナー完全ガイド 学習ページ */

:root {
  --navy: #172532;
  --navy-2: #22374a;
  --blue: #0878b2;
  --blue-d: #06618f;
  --yellow: #ffe600;
  --white: #fff;
  --off: #f7f8fa;
  --sky: #e9f5fb;
  --lilac: #eeeafb;
  --muted: #475766;
  --line: 3px solid var(--navy);
  --line-2: 2px solid var(--navy);
  --shadow: 5px 5px 0 var(--navy);
  --shadow-sm: 3px 3px 0 var(--navy);
  --r: 18px;
  --r-sm: 12px;
  --glow-yellow: 0 0 0 4px rgba(255, 230, 0, .55), 0 0 24px rgba(255, 230, 0, .75);
  --glow-blue: 0 0 0 4px rgba(8, 120, 178, .28), 0 0 22px rgba(8, 120, 178, .45);
  --num: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--navy);
  background: var(--off);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
/* 見出しは文節で折り返す（対応ブラウザのみ）。本文は行末の1〜2文字の孤立を減らす */
h1, h2, h3, .entry__sub, .pager__title, .index-item__title {
  word-break: auto-phrase; text-wrap: balance; overflow-wrap: anywhere;
}
p, li { text-wrap: pretty; }
.site-footer__date, .site-footer__notes li { word-break: auto-phrase; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.sp { display: none; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--lg { width: 26px; height: 26px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); border: var(--line); border-radius: 999px;
  padding: 8px 16px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- 確認用の帯 ---------- */
.preview-band {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px;
  background: var(--navy); color: #fff; font-size: 13px; line-height: 1.5;
  padding: 7px 16px; text-align: center;
}
.preview-band b {
  background: var(--yellow); color: var(--navy); border-radius: 999px;
  padding: 1px 10px; font-size: 12px;
}

/* ---------- ボタン共通 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  border: var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 16px; line-height: 1.3; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover, .btn:focus-visible { transform: translate(-2px, -2px); outline: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }
.btn--sm { min-height: 40px; padding: 6px 16px; font-size: 14px; gap: 6px; }
.btn--white { background: #fff; }
.btn--white:hover, .btn--white:focus-visible { background: var(--sky); color: var(--blue-d); box-shadow: 5px 5px 0 var(--navy), var(--glow-blue); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover, .btn--blue:focus-visible { background: var(--yellow); color: var(--navy); box-shadow: 5px 5px 0 var(--navy), var(--glow-yellow); }
.btn--yellow { background: var(--yellow); }
.btn--yellow:hover, .btn--yellow:focus-visible { background: #fff27a; box-shadow: 5px 5px 0 var(--navy), var(--glow-yellow); }

.pill {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 12px;
  font-size: 13px; font-weight: 700; line-height: 1.6;
}
.pill--navy { background: var(--navy); color: var(--yellow); }

.link-btn {
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  font-weight: 700; font-size: 14px; color: var(--blue-d);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.link-btn:hover, .link-btn:focus-visible { color: var(--navy); background: var(--yellow); outline: none; border-radius: 4px; }

/* ---------- ヘッダー ---------- */
.site-header { background: #fff; border-bottom: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; border-radius: 8px; }
.brand img { width: auto; height: 28px; }
.brand__label {
  font-weight: 900; font-size: 15px; letter-spacing: .02em;
  border-left: var(--line-2); padding-left: 14px; line-height: 1.2;
}
.brand:hover .brand__label, .brand:focus-visible .brand__label { color: var(--blue); }

/* ---------- ヒーロー ---------- */
.hero {
  background-color: var(--sky);
  background-image:
    linear-gradient(rgba(8, 120, 178, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 120, 178, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: var(--line);
  padding: 44px 0 52px;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.hero__title {
  margin-top: 14px; font-size: 54px; line-height: 1.22; font-weight: 900; letter-spacing: -.01em;
}
.hero__title mark {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  color: inherit; padding: 0 2px;
}
.hero__lead { margin-top: 14px; font-size: 17px; font-weight: 500; color: var(--navy-2); }

.entry { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 16px; margin-top: 26px; }
.entry__btn {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 18px; border: var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  text-decoration: none; cursor: pointer; min-height: 96px;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.entry__btn:hover, .entry__btn:focus-visible { transform: translate(-3px, -3px); outline: none; }
.entry__btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--navy); }
.entry__btn--start { background: var(--yellow); }
.entry__btn--start:hover, .entry__btn--start:focus-visible { background: #fff27a; box-shadow: 8px 8px 0 var(--navy), var(--glow-yellow); }
.entry__btn--find { background: var(--blue); color: #fff; }
.entry__btn--find:hover, .entry__btn--find:focus-visible { background: var(--blue-d); box-shadow: 8px 8px 0 var(--navy), var(--glow-blue); }
.entry__icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); border: var(--line-2);
}
.entry__btn--find .entry__icon { background: #fff; }
.entry__icon svg { width: 24px; height: 24px; }
.entry__btn--start .entry__icon svg { fill: var(--yellow); margin-left: 3px; }
.entry__btn--find .entry__icon svg { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
.entry__text { display: grid; min-width: 0; }
.entry__kicker { font-size: 13px; font-weight: 700; line-height: 1.4; opacity: .85; }
.entry__main { font-size: 21px; font-weight: 900; line-height: 1.3; white-space: nowrap; }
.entry__sub { font-size: 13px; font-weight: 500; line-height: 1.45; margin-top: 2px; }

.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 26px; }
.stats > div { display: flex; align-items: baseline; gap: 8px; }
.stats dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.stats dd { font-size: 14px; font-weight: 700; }
.stats b { font-family: var(--num); font-size: 30px; font-weight: 900; letter-spacing: -.04em; margin: 0 2px; }

/* トップの「まずはここから」動画 */
.hero-video { min-width: 0; }
.hero-video__title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hero-video__no { flex: none; font-family: var(--num); font-size: 50px; font-weight: 900; letter-spacing: -.08em; line-height: .9; color: var(--blue); }
.hero-video__name { min-width: 0; font-size: 30px; font-weight: 900; line-height: 1.35; }
.hero-video__dur {
  flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  background: #fff; border: var(--line-2); border-radius: 999px; padding: 2px 12px;
  font-family: var(--num); font-weight: 800; font-size: 15px; line-height: 1.5;
}
.hero-video__dur svg { width: 15px; height: 15px; }
.hero-video__player { box-shadow: 7px 7px 0 var(--navy); }
.hero-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 18px; }
.hero-nav__btn {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 20px;
  border: var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm);
  font-weight: 900; font-size: 16px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.hero-nav__btn--next { justify-self: end; background: var(--navy); color: #fff; }
.hero-nav__btn:hover, .hero-nav__btn:focus-visible { transform: translate(-2px, -2px); background: var(--yellow); color: var(--navy); box-shadow: 5px 5px 0 var(--navy), var(--glow-yellow); }
.hero-nav__btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hero-nav__btn:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; background: #fff; color: var(--navy); }
.hero-nav__pos { font-family: var(--num); font-weight: 900; font-size: 18px; }
.hero-video__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 15px;
  color: var(--blue-d); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; border-radius: 4px;
}
.hero-video__more:hover, .hero-video__more:focus-visible { background: var(--yellow); color: var(--navy); outline: none; }

/* 全32講座（ヒーローの下に横幅いっぱいで並べる） */
.map {
  margin-top: 40px; background: #fff; border: var(--line); border-radius: 22px; box-shadow: 7px 7px 0 var(--navy);
  padding: 20px 22px 20px;
}
.map__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.map__head h2 { font-size: 24px; font-weight: 900; line-height: 1.3; }
.map__head p { font-size: 13px; line-height: 1.5; color: var(--muted); text-align: right; }
.pads { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.pads li { display: flex; }
.pad {
  flex: 1; display: flex; flex-direction: column; gap: 4px; min-height: 112px; padding: 9px 10px 12px;
  border: var(--line-2); border-radius: 12px; background: var(--tint); color: var(--navy); text-decoration: none;
  box-shadow: inset 0 -5px 0 var(--accent), 2px 2px 0 var(--navy);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.pad__no { font-family: var(--num); font-weight: 900; font-size: 24px; letter-spacing: -.06em; line-height: 1; color: var(--accent); }
.pad__title {
  font-size: 13px; font-weight: 700; line-height: 1.45; word-break: auto-phrase; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.pad__dur { margin-top: auto; font-family: var(--num); font-weight: 800; font-size: 12px; color: var(--muted); }
.pad:hover, .pad:focus-visible {
  transform: translate(-2px, -2px); background: var(--yellow); outline: none;
  box-shadow: inset 0 -5px 0 var(--accent), 4px 4px 0 var(--navy), var(--glow-yellow); z-index: 1;
}
.pad:hover .pad__no, .pad:focus-visible .pad__no { color: var(--navy); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.legend button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px 4px 8px;
  border: var(--line-2); border-radius: 999px; background: #fff; cursor: pointer;
  font-size: 13px; font-weight: 700; line-height: 1.3;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.legend button:hover, .legend button:focus-visible { background: var(--sky); box-shadow: var(--glow-blue); transform: translateY(-1px); outline: none; }
.swatch { width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--navy); background: var(--accent); flex: none; }

/* ---------- 大見出し（全画面共通） ---------- */
.page-head {
  background-color: var(--sky);
  background-image:
    linear-gradient(rgba(8, 120, 178, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 120, 178, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 26px 0 28px;
}
.page-head__eyebrow { margin-bottom: 12px; }
/* 「受講者特典」のラベルを大きく、影付きで目立たせる */
.page-head__eyebrow .pill {
  font-size: 20px; font-weight: 900; letter-spacing: .06em; line-height: 1.5;
  padding: 5px 22px; border: 3px solid var(--navy); box-shadow: 4px 4px 0 var(--blue);
}
@media (max-width: 767px) {
  .page-head__eyebrow { margin-bottom: 10px; }
  .page-head__eyebrow .pill { font-size: 16px; padding: 3px 16px; box-shadow: 3px 3px 0 var(--blue); }
}
.page-head__title {
  font-size: clamp(17px, 4.9vw, 46px); font-weight: 900; line-height: 1.3; letter-spacing: -.01em; white-space: nowrap;
}
.page-head__title mark {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  color: inherit; padding: 0 2px;
}

/* ---------- セクション見出し ---------- */
.sec-head { margin-bottom: 24px; }
.sec-head__eyebrow { font-weight: 700; font-size: 15px; }
.sec-head h2 { font-size: 38px; font-weight: 900; line-height: 1.3; margin-top: 2px; }
.sec-head h2:focus { outline: none; }
.sec-head__lead { margin-top: 6px; font-size: 16px; font-weight: 500; }

/* ---------- 悩みから選ぶ ---------- */
.worries { background: var(--yellow); border-bottom: var(--line); padding: 52px 0 56px; }
.worry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.worry {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff; border: var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 16px 16px 14px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.worry:hover, .worry:focus-visible { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--navy), var(--glow-blue); outline: none; }
.worry:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--navy); }
.worry__q { font-size: 19px; font-weight: 900; line-height: 1.45; }
.worry__q::before { content: "“"; display: block; font-family: Georgia, serif; font-size: 34px; line-height: .6; color: var(--accent); margin-bottom: 6px; }
.worry__a {
  display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px;
  font-weight: 900; font-size: 16px; line-height: 1.35; color: var(--blue-d);
}
.worry__arrow {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: var(--yellow);
}
.worry__arrow svg { width: 15px; height: 15px; }
.worry__meta { margin-top: 8px; padding-top: 8px; border-top: 2px dashed rgba(23, 37, 50, .25); font-size: 13px; line-height: 1.5; color: var(--muted); font-weight: 500; }
.worry__meta b { color: var(--navy); }
.worry:hover .worry__a, .worry:focus-visible .worry__a { color: var(--navy); }
.more-btn {
  display: none; margin: 18px auto 0; min-height: 46px; padding: 8px 22px;
  border: var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 15px; cursor: pointer;
}
.more-btn:hover, .more-btn:focus-visible { background: var(--navy); color: #fff; box-shadow: 3px 3px 0 var(--navy), var(--glow-blue); outline: none; }

/* ---------- 講座一覧 ---------- */
.library { padding: 52px 0 72px; background: var(--yellow); border-top: var(--line); }
.finder {
  background: #fff; border: var(--line); border-radius: 22px; box-shadow: var(--shadow);
  padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px;
}
.finder > * { min-width: 0; }
.search { position: relative; }
.search__ico { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%; height: 58px; padding: 0 56px 0 52px;
  border: var(--line); border-radius: 999px; background: var(--off);
  font: inherit; font-size: 17px; font-weight: 500; color: var(--navy);
  -webkit-appearance: none; appearance: none;
  transition: box-shadow .15s ease, background-color .15s ease;
}
.search input::placeholder { color: #6b7a88; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:hover { background: #fff; }
.search input:focus { outline: none; background: #fff; box-shadow: var(--glow-blue); }
.search__clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: var(--line-2); background: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.search__clear svg { width: 16px; height: 16px; fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; }
.search__clear:hover, .search__clear:focus-visible { background: var(--yellow); box-shadow: var(--glow-yellow); outline: none; }

.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.quick__label { font-size: 13px; font-weight: 700; color: var(--muted); }
.quick__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px; padding: 4px 14px; border: var(--line-2); border-radius: 999px; background: var(--sky);
  font-size: 14px; font-weight: 700; line-height: 1.3; cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.chip:hover, .chip:focus-visible { background: var(--yellow); box-shadow: var(--glow-yellow); transform: translateY(-1px); outline: none; }

.cats { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 2px dashed rgba(23, 37, 50, .2); }
.cat-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 14px 6px 10px;
  border: var(--line-2); border-radius: 999px; background: #fff; cursor: pointer;
  font-size: 15px; font-weight: 700; line-height: 1.3;
  transition: background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.cat-btn small { font-family: var(--num); font-weight: 900; font-size: 13px; color: var(--muted); }
.cat-btn:hover, .cat-btn:focus-visible { background: var(--sky); box-shadow: var(--glow-blue); outline: none; }
.cat-btn[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: 3px 3px 0 var(--blue); }
.cat-btn[aria-pressed="true"] small { color: var(--yellow); }
.cat-btn[aria-pressed="true"] .swatch { border-color: #fff; }

.result-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 26px 0 16px; }
.result-bar p { font-weight: 700; font-size: 16px; }
.result-bar p b { font-family: var(--num); font-size: 22px; font-weight: 900; margin: 0 2px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover, .card:focus-within { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--navy), var(--glow-blue); }
.card__top {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--tint);
  border-bottom: var(--line-2);
}
.card__no { font-family: var(--num); font-size: 44px; font-weight: 900; letter-spacing: -.08em; line-height: .9; color: var(--accent); min-width: 1.3em; }
.card__cat { font-size: 13px; font-weight: 700; line-height: 1.35; }
.card__dur {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; flex: none;
  background: #fff; border: var(--line-2); border-radius: 999px; padding: 2px 10px;
  font-family: var(--num); font-weight: 800; font-size: 14px; line-height: 1.4;
}
.card__dur svg { width: 14px; height: 14px; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card__title { font-size: 18px; font-weight: 900; line-height: 1.5; }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.card__link:focus-visible { outline: none; }
.card__sum { margin-top: 8px; font-size: 15px; line-height: 1.75; color: var(--navy-2); }
.card__hits { position: relative; z-index: 1; margin-top: 12px; display: grid; gap: 6px; }
.card__hit-list { display: grid; gap: 6px; }
.card__hits-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.hit {
  display: flex; align-items: baseline; gap: 10px; padding: 6px 10px; border-radius: 10px;
  background: var(--sky); border: 2px solid transparent; text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.45;
}
.hit time { flex: none; font-family: var(--num); font-weight: 900; color: var(--blue-d); }
.hit:hover, .hit:focus-visible { border-color: var(--navy); background: var(--yellow); outline: none; }
mark.hl { background: rgba(255, 230, 0, .85); color: inherit; border-radius: 3px; padding: 0 1px; }
.card__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: auto; padding-top: 14px;
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.card__foot .go {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: 14px;
}
.card:hover .go, .card:focus-within .go { background: var(--yellow); color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }

.empty {
  background: #fff; border: var(--line); border-radius: 22px; box-shadow: var(--shadow);
  padding: 28px 24px; text-align: center; display: grid; justify-items: center; gap: 12px;
}
.empty__title { font-size: 20px; font-weight: 900; }
.empty .quick__list { justify-content: center; }

/* ---------- 講座ページ ---------- */
/* 大見出しと講座エリアの仕切り（文字なしの帯） */
.lesson-bar { height: 8px; background: var(--navy); }
.index-open { min-height: 48px; }
@media (min-width: 1024px) { .index-open { display: none; } }
.lesson-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; }
.bar-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px;
  border: 2px solid rgba(255, 255, 255, .7); border-radius: 999px; background: transparent; color: #fff;
  font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.bar-btn:hover, .bar-btn:focus-visible { background: var(--yellow); color: var(--navy); border-color: var(--yellow); box-shadow: var(--glow-yellow); outline: none; }
.bar-btn--icon { width: 40px; padding: 0; justify-content: center; }
.bar-btn[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.bar-btn--index { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper__pos { font-family: var(--num); font-weight: 900; font-size: 17px; min-width: 4.4em; text-align: center; }

.lesson-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-top: 28px; padding-bottom: 64px; }
.lesson__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.lesson__no { flex: none; font-family: var(--num); font-size: 64px; font-weight: 900; letter-spacing: -.08em; line-height: .9; color: var(--accent); min-width: 1.15em; }
.lesson__headtext { min-width: 0; }
.lesson__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; font-weight: 700; color: var(--muted); }
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--tint); color: var(--navy);
  border: var(--line-2); border-radius: 999px; padding: 1px 10px; font-size: 13px;
}
.lesson__head h1 { font-size: 30px; font-weight: 900; line-height: 1.4; margin-top: 4px; }
.lesson__head h1:focus { outline: none; }

.player { border: var(--line); border-radius: var(--r); box-shadow: 7px 7px 0 var(--navy); overflow: hidden; background: #0d1620; scroll-margin-top: 16px; }
.player__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.player__loading { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 700; }

.lesson__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; }
.btn--text { border-radius: var(--r); padding: 12px 20px; gap: 14px; min-height: 64px; text-align: left; box-shadow: var(--shadow); }
/* 図解テキスト：動画の目次の最後に置く */
.toc-text { margin-top: 10px; }
.chapters__list.toc-3 > .toc-text { grid-column: 1 / -1; }
.toc-textbtn { width: 100%; justify-content: flex-start; min-height: 58px; padding: 10px 18px; box-shadow: var(--shadow-sm); }
.toc-textbtn > .ico:last-child { margin-left: auto; }
/* 再生中の項目（黄色）と区別するため、図解テキストは青にする */
.toc-textbtn { background: var(--blue); color: #fff; }
.toc-textbtn .btn__sub { opacity: .9; }
.toc-textbtn:hover, .toc-textbtn:focus-visible { background: var(--yellow); color: var(--navy); box-shadow: 5px 5px 0 var(--navy), var(--glow-yellow); }
}
.btn__main { display: block; font-size: 18px; font-weight: 900; line-height: 1.3; }
.btn__sub { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.lesson-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; padding: 14px 8px 4px; border-top: 2px dashed rgba(23, 37, 50, .2); }
.lesson-step:empty { display: none; }
.step-btn {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 20px;
  border: var(--line); border-radius: 16px; background: #fff; color: var(--navy); box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.step-btn--prev { grid-column: 1; }
.step-btn--next { grid-column: 2; justify-content: flex-end; text-align: right; background: var(--navy); color: #fff; }
.step-btn .ico { flex: none; width: 20px; height: 20px; }
.step-btn__text { display: grid; min-width: 0; }
.step-btn__dir { font-size: 12.5px; font-weight: 700; line-height: 1.4; opacity: .85; }
.step-btn__title { font-size: 16px; font-weight: 900; line-height: 1.45; word-break: auto-phrase; overflow-wrap: anywhere; }
.step-btn__title b { font-family: var(--num); margin-right: 6px; }
.step-btn:hover, .step-btn:focus-visible { transform: translate(-2px, -2px); background: var(--yellow); color: var(--navy); box-shadow: 5px 5px 0 var(--navy), var(--glow-yellow); outline: none; }
.step-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.lesson__body { margin-top: 22px; }
.about { background: var(--sky); border: var(--line); border-radius: var(--r); padding: 18px 20px; }
.about h2, .chapters h2 { font-size: 18px; font-weight: 900; line-height: 1.4; display: flex; align-items: center; gap: 8px; }
.about p { margin-top: 8px; font-size: 16px; line-height: 1.85; }
.chapters { background: #fff; border: var(--line); border-radius: var(--r); padding: 20px 16px 14px; }
/* 「動画の目次」の見出し：左に黄色の印、下に紺のライン */
.chapters h2 {
  margin: 0 4px; padding: 0 4px 10px 14px; position: relative;
  font-size: 21px; border-bottom: 3px solid var(--navy);
}
.chapters h2::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 13px; width: 6px; border-radius: 3px; background: var(--yellow); box-shadow: 0 0 0 2px var(--navy);
}
.count { font-family: var(--num); font-weight: 900; font-size: 13px; background: var(--navy); color: var(--yellow); border-radius: 999px; padding: 1px 9px; }
.chapters__list { margin-top: 12px; display: grid; gap: 4px; }
.chapter__title { min-width: 0; }

.chapter {
  width: 100%; display: grid; grid-template-columns: 4.2em minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 9px 10px; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; text-align: left;
  font-size: 15px; font-weight: 700; line-height: 1.45;
  transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.chapter time { font-family: var(--num); font-weight: 900; color: var(--blue-d); font-variant-numeric: tabular-nums; }
.chapter__now { display: none; font-size: 11px; font-weight: 900; background: var(--navy); color: var(--yellow); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.chapter:hover, .chapter:focus-visible { background: var(--sky); border-color: var(--navy); outline: none; box-shadow: var(--glow-blue); }
.chapter[aria-current="true"] { background: var(--yellow); border-color: var(--navy); }
.chapter[aria-current="true"] .chapter__now { display: inline-block; }
.chapter[aria-current="true"] time { color: var(--navy); }

.pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 28px; }
.pager__slot { display: flex; min-width: 0; }
.pager__slot > * { flex: 1; }
.pager__link, .pager__end {
  display: flex; flex-direction: column; gap: 2px; min-height: 92px; padding: 14px 18px;
  border: var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.pager__link:hover, .pager__link:focus-visible { transform: translate(-3px, -3px); background: var(--sky); box-shadow: 8px 8px 0 var(--navy), var(--glow-blue); outline: none; }
.pager__slot:last-child .pager__link { text-align: right; align-items: flex-end; background: var(--navy); color: #fff; }
.pager__slot:last-child .pager__link:hover, .pager__slot:last-child .pager__link:focus-visible { background: var(--yellow); color: var(--navy); box-shadow: 8px 8px 0 var(--navy), var(--glow-yellow); }
.pager__dir { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.pager__title { font-size: 16px; font-weight: 900; line-height: 1.45; }
.pager__title b { font-family: var(--num); margin-right: 6px; }
.pager__end { background: var(--off); border-style: dashed; box-shadow: none; justify-content: center; color: var(--muted); font-weight: 700; font-size: 14px; }
.pager__slot:last-child .pager__end { text-align: right; align-items: flex-end; }
.pager__end a { color: var(--blue-d); font-weight: 900; }

/* 右の講座目次 */
.course-index {
  position: sticky; top: 20px; background: #fff; border: var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 40px);
}
.course-index__head, .index-dialog__head {
  display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; border-bottom: var(--line); padding: 12px 16px;
}
.course-index__head h2, .index-dialog__head h2 { font-size: 18px; font-weight: 900; }
.course-index__pos { margin-left: auto; font-family: var(--num); font-weight: 900; font-size: 15px; background: #fff; color: var(--navy); border-radius: 999px; padding: 1px 10px; }
.index-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.index-item {
  display: grid; grid-template-columns: 2.1em minmax(0, 1fr); gap: 10px; align-items: center;
  padding: 8px 10px 8px 8px; border-radius: 10px; border: 2px solid transparent; text-decoration: none;
  transition: background-color .12s ease, border-color .12s ease;
}
.index-item__no { font-family: var(--num); font-weight: 900; font-size: 22px; letter-spacing: -.06em; line-height: 1.1; color: var(--navy); text-align: right; }
.index-item__title { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.45; }
/* カテゴリーの仕切り：濃いスレート1色の帯に白文字（2026-11-05 色分けをやめ、グレーの講座名と混ざらないよう濃い帯に） */
.index-cat {
  display: flex; align-items: center; gap: 8px; margin: 12px 4px 4px; padding: 6px 10px;
  background: #33424f; border-radius: 6px;
  font-size: 13px; font-weight: 900; line-height: 1.3; color: #fff;
}
.index-cat:first-child { margin-top: 4px; }
.index-cat .swatch { display: none; }
.index-item:hover, .index-item:focus-visible { background: var(--sky); border-color: var(--navy); outline: none; }
.index-item[aria-current="page"] { background: var(--yellow); border-color: var(--navy); }
.index-item[aria-current="page"] .index-item__no { color: var(--navy); }

/* スマホ・タブレット用の目次（ダイアログ） */
.index-dialog {
  padding: 0; border: var(--line); border-radius: var(--r) 0 0 var(--r);
  width: min(460px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  margin: 0 0 0 auto; color: var(--navy); background: #fff;
}
.index-dialog[open] { display: flex; flex-direction: column; }
.index-dialog::backdrop { background: rgba(23, 37, 50, .55); }
.index-dialog .index-list { flex: 1; }
.bar-btn--close { color: var(--navy); border-color: var(--navy); background: #fff; }
.index-dialog__head .course-index__pos { margin-left: auto; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 36px 0 44px; border-top: var(--line); }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; }
.site-footer__name { font-weight: 900; font-size: 18px; }
.site-footer__date { font-size: 14px; color: rgba(255, 255, 255, .75); margin-top: 4px; }
.site-footer__notes { display: grid; gap: 8px; font-size: 14px; line-height: 1.7; }
.site-footer__notes li { padding-left: 18px; position: relative; }
.site-footer__notes li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; background: var(--yellow); border-radius: 2px; }

/* ---------- 動画の目次の比較用の案（data-toc） ---------- */
.chapter__no {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sky); border: 2px solid var(--navy); font-family: var(--num); font-weight: 900; font-size: 13px; line-height: 1;
}
.chapter:has(.chapter__no) { grid-template-columns: 26px 4em minmax(0, 1fr) auto; }
.chapter[aria-current="true"] .chapter__no { background: var(--navy); color: var(--yellow); }
.toc-col > ol { display: grid; gap: 4px; }
.toc-label { display: flex; align-items: center; gap: 8px; margin: 2px 6px 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.toc-label b { background: var(--navy); color: var(--yellow); border-radius: 999px; padding: 1px 12px; font-size: 13px; }
.toc-2 .toc-col > ol { position: relative; padding-left: 20px; }
.toc-2 .toc-col > ol::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 20px; width: 2px; border-radius: 1px; background: #d3d9df; }
.toc-2 .toc-col > ol > li { position: relative; }
.toc-2 .toc-col > ol > li::before {
  content: ""; position: absolute; left: -18px; top: 50%; width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2px solid #b9c2cb; transform: translateY(-50%);
}
.toc-2 .toc-col > ol > li:has(.chapter[aria-current="true"])::before { background: var(--yellow); border-color: var(--navy); }
.toc-next, .toc-cont { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #7b8794; }
.toc-next { justify-content: flex-end; margin: 6px 6px 0; }
.toc-cont { margin: 2px 6px 6px 20px; }
@media (min-width: 1024px) {
  .chapters__list.toc-1, .chapters__list.toc-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .chapters__list.toc-1 > li + li, .chapters__list.toc-2 > li + li { border-left: 2px dashed rgba(23, 37, 50, .2); padding-left: 24px; }
  .chapters__list.toc-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; }
}
@media (max-width: 1023px) {
  .toc-next, .toc-cont { display: none; }
}
@media (max-width: 767px) {
  .chapter:has(.chapter__no) { grid-template-columns: 24px 3.4em minmax(0, 1fr) auto; }
  .chapter__no { width: 24px; height: 24px; font-size: 12px; }
}

/* ---------- キーボード操作の現在地（発光に加えて枠も出す） ---------- */
.btn:focus-visible, .entry__btn:focus-visible, .worry:focus-visible, .pad:focus-visible, .chip:focus-visible,
.cat-btn:focus-visible, .legend button:focus-visible, .more-btn:focus-visible, .pager__link:focus-visible,
.chapter:focus-visible, .index-item:focus-visible, .hit:focus-visible, .link-btn:focus-visible,
.search__clear:focus-visible, .brand:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 3px;
}
.card:has(.card__link:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.bar-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.entry__btn--find:focus-visible, .pager__slot:last-child .pager__link:focus-visible { outline-color: var(--navy); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1180px) {
  .hero__title { font-size: 46px; }
  .entry__main { font-size: 20px; }
}
@media (min-width: 1024px) and (max-width: 1160px) {
  .entry { grid-template-columns: 1fr; }
  .entry__btn { min-height: 80px; }
}

@media (max-width: 1023px) {
  .hero { padding: 34px 0 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .pads { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-video { max-width: 760px; }
  .worry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .lesson-grid { grid-template-columns: minmax(0, 1fr); padding-top: 22px; }
  .course-index { display: none; }
  .lesson__body { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  .bar-btn--index { display: none; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .sp { display: inline; }
  .pc-only { display: none; }
  html { scroll-padding-top: 12px; }
  .preview-band { font-size: 12px; padding: 6px 12px; }
  .site-header__inner { min-height: 56px; }
  .brand img { height: 22px; }
  .brand__label { display: none; }

  .hero { padding: 26px 0 30px; background-size: 22px 22px; }
  .hero__eyebrow { font-size: 13px; gap: 8px; }
  .hero__title { font-size: 34px; margin-top: 10px; }
  .hero__lead { font-size: 15px; margin-top: 10px; }
  .entry { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .entry__btn { min-height: 78px; padding: 12px 14px; gap: 12px; }
  .entry__icon { width: 42px; height: 42px; }
  .entry__main { font-size: 19px; }
  .stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 22px; margin-top: 18px; }
  .stats > div { flex-direction: column; gap: 0; }
  .stats dt { font-size: 12px; }
  .stats b { font-size: 26px; }
  .hero-video__title { gap: 10px; margin-bottom: 10px; }
  .hero-video__no { font-size: 34px; }
  .hero-video__name { font-size: 19px; }
  .hero-video__dur { font-size: 13px; padding: 1px 9px; }
  .hero-nav { gap: 8px; margin-top: 14px; }
  .lesson-step { padding: 12px 2px 2px; }
  .lesson-step { grid-template-columns: 1fr; gap: 10px; }
  .step-btn--prev, .step-btn--next { grid-column: 1; }
  .step-btn { min-height: 58px; padding: 8px 14px; gap: 10px; }
  .step-btn__title { font-size: 15px; }
  .step-btn--next { justify-content: space-between; text-align: left; }
  .hero-nav__btn { min-height: 44px; padding: 6px 14px; font-size: 14.5px; gap: 6px; }
  .hero-nav__pos { font-size: 15px; }
  .hero-video__more { font-size: 14px; }
  .map { margin-top: 28px; padding: 14px 12px; border-radius: 18px; box-shadow: var(--shadow-sm); }
  .map__head h2 { font-size: 20px; }
  .pads { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pad { min-height: 96px; padding: 8px 9px 11px; }
  .pad__no { font-size: 20px; }

  .sec-head { margin-bottom: 18px; }
  .sec-head h2 { font-size: 28px; }
  .sec-head__lead { font-size: 15px; }
  .worries { padding: 34px 0 36px; }
  .worry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .worry { padding: 12px 12px 10px; border-radius: 14px; box-shadow: var(--shadow-sm); }
  .worry__q { font-size: 15.5px; }
  .worry__q::before { font-size: 26px; margin-bottom: 4px; }
  .worry__a { font-size: 14.5px; gap: 6px; padding-top: 10px; }
  .worry__arrow { width: 22px; height: 22px; }
  .worry__arrow svg { width: 12px; height: 12px; }
  .worry__meta { font-size: 12px; }
  .worry__ch { display: none; }
  .worry-grid.is-collapsed > li:nth-child(n+7) { display: none; }
  .more-btn { display: block; }

  .library { padding: 34px 0 52px; }
  .finder { padding: 12px; border-radius: 18px; gap: 12px; box-shadow: var(--shadow-sm); }
  .search input { height: 52px; font-size: 16px; padding-left: 46px; }
  /* 入力前は消去ボタンが出ないので右の余白を詰め、案内文を最後まで見せる */
  .search input:placeholder-shown { padding-right: 14px; }
  .search input::placeholder { font-size: 13px; }
  .search__ico { left: 15px; width: 20px; height: 20px; }
  /* スマホでは言葉・カテゴリーを横スクロールの1列にして、一覧までの距離を縮める */
  .quick { flex-wrap: nowrap; }
  .quick__label { display: none; }
  #quick, .cats {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 -12px; padding: 2px 12px 6px; scroll-padding: 0 12px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  #quick::-webkit-scrollbar, .cats::-webkit-scrollbar { display: none; }
  #quick .chip, .cat-btn { flex: none; }
  .cats { gap: 6px; padding-top: 12px; border-top: 0; position: relative; }
  .finder .cats { box-shadow: inset 0 2px 0 rgba(23, 37, 50, .12); }
  .cat-btn { font-size: 14px; min-height: 40px; padding: 5px 12px 5px 9px; white-space: nowrap; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { box-shadow: var(--shadow-sm); }
  .card__no { font-size: 38px; }
  .card__title { font-size: 17px; }
  .result-bar { margin: 20px 0 12px; }

  .lesson-bar__inner { min-height: 52px; gap: 6px; }
  .bar-btn { padding: 6px 11px; font-size: 13.5px; min-height: 40px; }
  .bar-btn--icon { width: 40px; padding: 0; }
  .stepper { gap: 4px; }
  .stepper__pos { font-size: 15px; min-width: 3.8em; }
  .lesson-grid { padding-top: 14px; padding-bottom: 44px; }
  .lesson__head { gap: 10px; margin-bottom: 12px; align-items: flex-start; }
  .lesson__no { font-size: 42px; }
  .lesson__meta { font-size: 12.5px; gap: 2px 8px; }
  .cat-chip { font-size: 12px; padding: 0 8px; }
  .lesson__head h1 { font-size: 20px; line-height: 1.45; margin-top: 2px; }
  .player { border-radius: 12px; box-shadow: 4px 4px 0 var(--navy); }
  .lesson__actions { margin-top: 16px; }
  .btn--text { width: 100%; justify-content: flex-start; min-height: 60px; box-shadow: var(--shadow-sm); }
  .btn--text > .ico:last-child { margin-left: auto; }
  .btn__main { font-size: 17px; }
  .lesson__body { margin-top: 18px; gap: 16px; }
  .about { padding: 14px 16px; }
  .about p { font-size: 15px; }
  .chapters { padding: 14px 6px 8px; }
  .chapter { grid-template-columns: 3.6em minmax(0, 1fr) auto; font-size: 14.5px; padding: 9px 8px; gap: 8px; min-height: 44px; }
  .pager { gap: 10px; margin-top: 20px; }
  .pager__link, .pager__end { min-height: 84px; padding: 10px 12px; box-shadow: var(--shadow-sm); }
  .pager__title { font-size: 14px; }

  .index-dialog { width: 100vw; border-radius: 0; border-left: 0; border-right: 0; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 374px) {
  .hero__title { font-size: 31px; }
  .xs-hide { display: none; }
  .bar-btn--back, .bar-btn--index { padding: 6px 12px 6px 10px; }
  .stepper__pos { min-width: 3.4em; }
  .worry__q { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .entry__btn:hover, .worry:hover, .card:hover, .card:focus-within, .pad:hover, .pager__link:hover,
  .btn:focus-visible, .entry__btn:focus-visible, .worry:focus-visible, .pad:focus-visible, .pager__link:focus-visible { transform: none; }
}

.auth-dialog{width:min(520px,calc(100% - 32px));border:3px solid #172532;border-radius:18px;padding:0;color:#172532;box-shadow:7px 7px 0 #172532}.auth-dialog::backdrop{background:rgba(10,20,35,.65)}.auth-dialog__body{padding:28px}.auth-dialog__eyebrow{font-weight:900;color:#0878b2;font-size:14px}.auth-dialog h2{font-size:24px;margin:8px 0}.auth-dialog p{line-height:1.7}.auth-dialog .btn{display:inline-flex;margin:10px 0}.auth-close{display:block;border:0;background:none;text-decoration:underline;font:inherit;cursor:pointer;margin-top:10px}
.demo-tag{display:inline-block;font-size:10px;font-weight:700;color:#315e7e;background:#e7f3fc;border-radius:4px;padding:1px 5px;white-space:nowrap;vertical-align:middle}

/* 体験版：講座ごとの公開状態を、色と文字の両方で伝える */
.index-item.demo-locked { background:#f4f6f8; color:#53616e; }
.index-item.demo-locked .index-item__no { color:#667583; }
.index-item.demo-locked:hover, .index-item.demo-locked:focus-visible { background:#e8eff5; border-color:#172532; color:#172532; }
.index-item.demo-free:not([aria-current="page"]) { background:#fff9cf; }
.demo-badge { display:inline-block; vertical-align:middle; margin:3px 0 3px 5px; padding:2px 7px; border-radius:5px; font-size:11px; font-weight:800; line-height:1.5; letter-spacing:0; white-space:nowrap; }
.demo-badge--free { color:#172532; background:#ffe600; }
.demo-badge--locked { color:#465563; background:#e3e8ec; }
.card.demo-locked { background:#f7f8fa; }
.card.demo-locked .card__title, .card.demo-locked .card__sum { color:#53616e; }

/* 体験版：認証画面と講座1・7の下に、無料体験レッスンへの導線（2026-11-05） */
.auth-dialog__lesson { font-weight: 800; color: #33424f; }
.auth-block { margin-top: 14px; padding: 14px 16px 4px; border: 2px solid var(--navy); border-radius: 12px; background: #fff; }
.auth-dialog .auth-block p { margin: 0; font-size: 15px; line-height: 1.7; }
.auth-dialog .auth-block .auth-block__label { margin-bottom: 4px; font-size: 14px; font-weight: 900; color: var(--blue-d); }
.auth-block--trial { background: #fffbe0; }
.auth-dialog .auth-block .auth-block__note { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.auth-dialog__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -6px; }

.trial-cta {
  margin-top: 22px; padding: 26px 28px 28px;
  border: var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  background: radial-gradient(circle, rgba(8, 120, 178, .14) 1.6px, transparent 2px) 0 0 / 18px 18px, var(--sky);
}
.trial-cta__eyebrow {
  display: inline-block; padding: 4px 16px 5px; border-radius: 999px; background: var(--navy); color: #fff;
  font-size: 14px; font-weight: 900; letter-spacing: .04em; box-shadow: 3px 3px 0 var(--blue);
}
.trial-cta__lead { margin-top: 14px; font-size: 20px; font-weight: 900; line-height: 1.5; }
.trial-cta__text { margin-top: 8px; font-size: 15px; line-height: 1.85; color: #2a3d4f; }
.trial-cta__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.trial-cta__facts li {
  display: grid; justify-items: center; gap: 2px; padding: 14px 8px 12px; text-align: center;
  background: #fff; border: var(--line-2); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.trial-cta__facts .ico { width: 30px; height: 30px; margin-bottom: 4px; color: var(--blue); stroke-width: 2.2; }
.trial-cta__facts b { font-size: 16px; font-weight: 900; line-height: 1.3; }
.trial-cta__facts span { font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.4; }
.trial-cta__action { margin-top: 22px; text-align: center; }
.trial-cta__btn { min-width: min(100%, 380px); min-height: 58px; font-size: 18px; font-weight: 900; box-shadow: var(--shadow); }
@media (max-width: 767px) {
  .auth-dialog__body { padding: 22px 18px; }
  .auth-block { padding: 12px 10px 4px; }
  .auth-dialog .btn { display: flex; width: 100%; padding: 10px 14px; font-size: 15px; }
  .auth-dialog .auth-block--trial .btn { padding: 10px 6px; font-size: 14px; letter-spacing: -.01em; }
  .trial-cta { padding: 20px 16px 22px; box-shadow: var(--shadow-sm); }
  .trial-cta__lead { font-size: 17.5px; }
  .trial-cta__facts { gap: 8px; }
  .trial-cta__facts li { padding: 12px 4px 10px; }
  .trial-cta__facts .ico { width: 26px; height: 26px; }
  .trial-cta__facts b { font-size: 14px; }
  .trial-cta__facts span { font-size: 11px; }
  .trial-cta__btn { width: 100%; min-width: 0; padding: 10px 12px; gap: 6px; font-size: 15px; }
}

/* 体験版：ID・パスワードがわからない方の再発行フォーム（2026-11-05） */
.auth-help-link { margin: 0 0 8px; }
.auth-dialog .auth-help-link .link-btn { padding: 4px 2px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.help-back { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--blue-d); cursor: pointer; }
.help-back:hover, .help-back:focus-visible { text-decoration: underline; outline: none; }
.auth-dialog #help-title { margin-top: 6px; font-size: 21px; line-height: 1.4; }
.auth-dialog .help-lead { font-size: 14.5px; color: #2a3d4f; }
.help-form { display: grid; gap: 12px; margin-top: 14px; }
.help-field { display: grid; gap: 4px; }
.help-field > span { font-size: 14px; font-weight: 800; }
.help-field b, .help-field i { margin-left: 8px; padding: 1px 7px; border-radius: 4px; font-size: 11px; font-style: normal; font-weight: 800; vertical-align: 1px; }
.help-field b { background: var(--navy); color: #fff; }
.help-field i { background: #e3e8ec; color: #465563; }
.help-field input, .help-field select, .help-field textarea {
  width: 100%; padding: 10px 12px; border: 2px solid var(--navy); border-radius: 10px; background: #fff;
  font: inherit; font-size: 16px; color: var(--navy);
}
.help-field textarea { resize: vertical; min-height: 76px; }
.help-field input:focus, .help-field select:focus, .help-field textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.help-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.help-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.6; }
.help-agree input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.help-agree a { color: var(--blue-d); }
.auth-dialog .help-error { margin: 0; padding: 8px 12px; border-radius: 8px; background: #ffe5e1; color: #9b1c12; font-size: 14px; font-weight: 700; }
.auth-dialog .help-submit { justify-self: start; margin: 4px 0 0; }
.help-done { margin-top: 16px; padding: 16px; border: 2px solid var(--navy); border-radius: 12px; background: var(--sky); outline: none; }
.auth-dialog .help-done p { margin: 0; font-size: 15px; }
.auth-dialog .help-done .help-done__title { margin-bottom: 6px; font-size: 18px; font-weight: 900; }
.auth-dialog .help-done .help-done__note { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 767px) {
  .auth-dialog .help-submit { justify-self: stretch; }
}

/* 体験版のお知らせ「2講座を無料で体験！」（2026-11-05 大きく。無料講座と同じ淡い黄色でつなげる）
   受講者ページ（members/）を開いたことがあるブラウザでは非表示（index.html の head で is-member を付ける） */
.demo-notice { background:#fff9cf; border-bottom:3px solid var(--navy); padding:22px 0 24px; text-align:center; color:var(--navy); }
.demo-notice p { margin:0; }
.demo-notice__title { font-size:clamp(24px, 3.4vw, 36px); font-weight:900; line-height:1.3; letter-spacing:.02em; }
.demo-notice__num {
  font-family:var(--num); font-size:1.35em; line-height:1; margin-right:3px; color:var(--blue);
}
.demo-notice__text { margin-top:8px !important; font-size:clamp(15px, 1.8vw, 19px); font-weight:700; line-height:1.6; }
.demo-notice__text span { display:inline-block; }
.demo-notice__text b { color:var(--blue-d); }
@media (max-width: 767px) { .demo-notice { padding:16px 0 18px; } .demo-notice__text { margin-top:4px !important; } }
.is-member .demo-notice { display:none; }
/* 講座1・7の下の「ご受講を検討中の方へ」も受講者には出さない（2026-11-05 本人の依頼） */
.is-member .trial-cta { display:none; }

/* 認証画面：ID・パスワードはマイページの「受講特典」で案内（2026-11-05 受講者にもう一度ログインしてもらう方針） */
.auth-dialog .auth-mypage { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #b9c6d1; }
.auth-dialog .auth-mypage p { font-size: 14px; }
.auth-dialog .auth-mypage p span { display: inline-block; }
.auth-dialog .auth-mypage .btn, .auth-dialog .help-reset .btn { margin: 6px 0 4px; }
.auth-dialog .help-lead + .help-lead { margin-top: 6px; }
.auth-dialog .help-reset { margin: 2px 0 10px; }
.auth-dialog .help-reset + .help-lead { margin-top: 4px; padding-top: 10px; border-top: 1px dashed #b9c6d1; }

/* 図解テキスト：目次の外に2つの操作を並べる */
.text-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.text-action {display:flex;align-items:center;justify-content:center;gap:10px;min-height:64px;padding:12px;border:3px solid #172532;border-radius:12px;text-decoration:none;font-weight:900;font-size:15px;line-height:1.4;text-align:center;box-shadow:3px 3px 0 #172532;transition:transform .15s,box-shadow .15s}
.text-action .ico {width:22px;height:22px;flex:none;stroke:currentColor;stroke-width:2;fill:none}
.text-action--read {background:#0878b2;color:#fff}
.text-action--download {background:#ffe600;color:#172532}
.text-action:hover,.text-action:focus-visible {transform:translate(2px,2px);box-shadow:1px 1px 0 #172532}
@media(max-width:480px){.text-actions{gap:8px}.text-action{font-size:13px;gap:6px;padding:10px 6px;min-height:68px}.text-action .ico{width:19px;height:19px}}

/* 図解テキストの操作は同色で、文字を大きく表示 */
.text-action--read,.text-action--download {background:#0878b2;color:#fff}
.text-action {font-size:20px;font-weight:900;min-height:76px;gap:10px;line-height:1.3}
.text-action .ico {width:25px;height:25px}
.text-action:hover,.text-action:focus-visible {background:#075d8c;color:#fff}
@media(max-width:480px){.text-action{font-size:15px;min-height:76px;gap:5px;padding:10px 5px}.text-action .ico{width:19px;height:19px}}

.text-action span{word-break:keep-all;overflow-wrap:normal}

/* 目次内の前後動画の案内を非表示 */
.lesson-step { display: none !important; }
