/* =========================================================
   色の設定（仮の色。決まったらここだけ書きかえてください）
   ========================================================= */
:root {
  --main: #17305a;        /* メインカラー（仮：こん色） */
  --main-light: #eef2f8;
  --accent: #ffd23f;      /* アイキャッチの強調（仮：黄色） */
  --red: #e5484d;
  --line: #06c755;        /* LINEの緑 */
  --line-dark: #04a347;
  --text: #17305a;
  --text-sub: #6b7385;
  --bg: #dee0e5;          /* ページの背景（グレー） */
  --border: #e3e6ec;
  --blue: #2f6fdb;        /* リンクなど */
  /* レベルのテーマカラー（サイト全体で統一） */
  --n1: #2f6fdb;          /* N1：青 */
  --n2: #e8336d;          /* N2：ピンク系の赤 */
  --n3: #2e9e4f;          /* N3：緑 */
  --n4: #7b3fd1;          /* N4：紫 */
  --n5: #f08a1c;          /* N5：オレンジ */
  --shadow: 0 2px 8px rgba(23,48,90,.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  padding-bottom: 90px;         /* 固定ボタンの分 */
}
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ふりがな */
ruby rt { font-size: .5em; color: var(--text-sub); font-weight: 400; }
.no-furigana ruby rt { display: none; }

/* ---------- ヘッダー ---------- */
.site-header { background: #fff; }
.header-inner {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 60px; padding-top: 8px; padding-bottom: 8px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--main); }
.logo-mark { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; display: block; }
.logo-text { display: flex; flex-direction: column; align-items: center; }
.logo-catch { font-size: 9px; letter-spacing: .1em; color: var(--text-sub); line-height: 1.2; }
.logo-name { font-weight: 800; font-size: 22px; letter-spacing: .12em; line-height: 1.3; }

.menu-btn {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  display: grid; place-content: center; gap: 6px;
}
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--main); }
.furigana-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: 1px solid var(--main); background: #fff; color: var(--main);
  border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap; font-family: inherit; line-height: 1.8;
}
.furigana-toggle[aria-pressed="true"] { background: var(--main); color: #fff; }
@media (max-width: 400px) {
  .furigana-toggle { padding: 2px 7px; font-size: 11px; }
  .logo-name { font-size: 19px; letter-spacing: .06em; }
}

/* グローバルメニュー（PCはロゴの下に中央寄せ。スマホはハンバーガー） */
.gnav { background: #fff; }
.gnav ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; }
.gnav a { display: block; color: var(--main); text-decoration: none; font-size: 14px; font-weight: 700; }
.gnav .sub { display: block; font-size: 9px; letter-spacing: .12em; color: var(--text-sub); font-weight: 400; line-height: 1.2; }

@media (max-width: 959px) {
  .gnav { display: none; border-top: 1px solid var(--border); }
  .gnav.open { display: block; }
  .gnav a { padding: 12px 20px; border-bottom: 1px solid var(--border); }
}
@media (min-width: 960px) {
  .menu-btn { display: none; }
  .header-inner { min-height: 80px; }
  .logo-name { font-size: 28px; }
  .logo-mark { width: 56px; height: 56px; }
  .furigana-toggle { right: 16px; }
  .gnav ul { display: flex; justify-content: center; gap: 8px; padding-bottom: 10px; }
  .gnav a { padding: 4px 18px; text-align: center; position: relative; }
  .gnav a::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px;
    background: var(--main); transition: .2s; transform: translateX(-50%);
  }
  .gnav a:hover::after { width: 60%; }
}

/* お知らせバー（TikTok誘導） */
.notice-bar { display: block; background: var(--main); color: #fff; text-decoration: none; text-align: center; padding: 8px 12px; font-size: 14px; font-weight: 700; letter-spacing: .05em; }
.notice-bar .notice-btn {
  display: inline-block; margin-left: 10px; background: #fff; color: var(--main);
  font-size: 12px; padding: 0 10px; border-radius: 4px; line-height: 1.9;
}
@media (max-width: 559px) { .notice-bar .notice-btn { display: none; } }

/* ---------- レイアウト ---------- */
.layout { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 40px; }
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding-top: 32px; }
}
.box { background: #fff; border-radius: 4px; padding: 24px 16px; margin-bottom: 24px; }
@media (min-width: 560px) { .box { padding: 32px 28px; } }

.section-title { text-align: center; font-size: 20px; font-weight: 800; margin: 0 0 20px; line-height: 1.5; }
.more { text-align: center; margin-top: 24px; }
.btn-more {
  display: inline-block; min-width: 240px; padding: 10px 28px; border-radius: 999px;
  border: 1px solid var(--main); color: var(--main); background: #fff;
  font-weight: 700; font-size: 14px; text-decoration: none; transition: .2s;
}
.btn-more::after { content: " ›"; }
.btn-more:hover { background: var(--main); color: #fff; }

/* ---------- ファーストビュー（LINE特典） ---------- */
.fv { background: #fff; border-radius: 4px; padding: 16px; margin-bottom: 24px; }
@media (min-width: 720px) {
  .fv { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: center; padding: 24px; }
}
/* 画像バナーの代わり（あとで画像に差しかえ） */
.fv-banner {
  display: block; position: relative; overflow: hidden; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #0f2346 0%, #17305a 55%, #1f4a7a 100%);
  border-radius: 4px; padding: 14px 14px 44px; container-type: inline-size;
}
.fv-banner .fb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fv-banner .logo-mark { width: 36px; height: 36px; box-shadow: 0 0 0 2px #fff; }
.fv-banner .fb-site { font-size: 11px; line-height: 1.3; font-weight: 700; }
.fv-banner .fb-line {
  background: #fff; color: var(--main); font-weight: 900; font-size: clamp(18px, 7cqw, 30px);
  padding: 0 10px; border-radius: 4px; line-height: 1.5;
}
.fv-banner .fb-line b { color: var(--line); }
.fv-banner .fb-lead { font-size: clamp(12px, 4cqw, 16px); font-weight: 700; margin: 0 0 8px; }
.fb-items { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 70%; }
.fb-items div {
  background: #fff; color: var(--main); border-radius: 4px; padding: 4px 6px;
  font-size: clamp(10px, 3.3cqw, 14px); font-weight: 800; line-height: 1.35;
}
.fb-items small { display: block; color: var(--blue); font-size: .8em; }
.fb-items em { font-style: normal; color: var(--red); font-size: 1.45em; }
.fb-free {
  position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.35);
  text-align: center; font-weight: 900; font-size: clamp(13px, 4.6cqw, 19px); padding: 6px;
}
.fb-free span { color: var(--accent); }
.fb-avatar {
  position: absolute; right: 4%; top: 30%; width: 24%; aspect-ratio: 1;
  border-radius: 50%; background: #e9eef6; border: 3px solid #fff;
  display: grid; place-items: center; font-size: clamp(28px, 10cqw, 52px);
}
.fv-text { text-align: center; padding: 16px 0 4px; }
.fv-text p { margin: 0 0 10px; font-size: 15px; line-height: 1.8; }
.fv-text .fv-sub { font-size: 14px; }
.btn-line {
  display: block; background: var(--line); color: #fff; font-weight: 800; font-size: 16px; line-height: 1.5;
  padding: 14px 16px; border-radius: 999px; text-decoration: none; text-align: center;
  box-shadow: 0 4px 0 var(--line-dark); transition: .15s;
}
.btn-line:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--line-dark); }

/* ---------- 記事カード ---------- */
.cards { display: grid; gap: 28px 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: block; text-decoration: none; color: var(--text); }
.card:hover .thumb { opacity: .85; }
/* 文字入りアイキャッチ（あとで画像に差しかえ） */
.thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px;
  background:
    radial-gradient(circle at 85% 75%, hsl(var(--h) 65% 45% / .9), transparent 55%),
    linear-gradient(135deg, #10131c, hsl(var(--h) 45% 22%));
  color: #fff; padding: 6% 7%; display: flex; flex-direction: column; justify-content: center;
  container-type: inline-size;
}
.thumb-tag {
  display: inline-block; align-self: flex-start; background: #fff; color: #111;
  font-weight: 900; font-size: 5.5cqw; padding: 0 6px; margin-bottom: 2cqw; line-height: 1.5;
}
.thumb-main { font-weight: 900; font-size: 9.5cqw; line-height: 1.25; text-shadow: 2px 2px 0 rgba(0,0,0,.5); }
.thumb-main em { font-style: normal; color: var(--accent); }
.thumb-cat {
  position: absolute; top: 0; right: 0; background: rgba(0,0,0,.75); color: #fff;
  font-size: 11px; padding: 2px 8px; line-height: 1.6;
}
.thumb-cat::before { content: "■ "; font-size: 8px; vertical-align: 2px; }
.thumb-lv { position: absolute; right: 0; bottom: 0; color: #fff; font-size: 12px; font-weight: 800; padding: 0 10px; line-height: 1.8; }
.lv-N1 { background: var(--n1); }
.lv-N2 { background: var(--n2); }
.lv-N3 { background: var(--n3); }
.lv-N4 { background: var(--n4); }
.lv-N5 { background: var(--n5); }
.rank {
  position: absolute; top: 0; left: 0; width: 32px; height: 32px; z-index: 1;
  color: #fff; font-weight: 800; font-size: 16px; display: grid; place-items: center;
  background: #8a8f9c;
}
.rank-1 { background: #c9a227; }
.rank-2 { background: #9aa3ae; }
.rank-3 { background: #b07042; }
.card-title { font-size: 15px; line-height: 1.6; margin: 10px 0 4px; font-weight: 700; }
.card-ex { font-size: 13px; color: var(--text-sub); line-height: 1.7; margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-date { font-size: 12px; color: var(--text-sub); }
.card-date::before { content: "◷ "; }

/* ---------- プロフィール ---------- */
.profile { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .profile { grid-template-columns: 140px 1fr; align-items: start; } }
.avatar {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto;
  background: var(--main-light); border: 3px solid var(--main);
  display: grid; place-items: center; font-size: 48px;
}
.profile-name { font-size: 20px; font-weight: 800; margin: 0; text-align: center; }
.profile-role { font-size: 13px; color: var(--text-sub); margin: 0 0 12px; text-align: center; }
@media (min-width: 560px) { .profile .profile-name, .profile .profile-role { text-align: left; } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.stats li { background: var(--main-light); border-radius: 6px; padding: 8px 4px; text-align: center; font-size: 12px; line-height: 1.5; }
.stats b { display: block; font-size: 22px; color: var(--main); }
.profile-list { list-style: none; margin: 0 0 16px; padding: 0; font-size: 15px; line-height: 1.7; text-align: left; }
.profile-list li { position: relative; padding-left: 1.4em; margin-bottom: 4px; }
.profile-list li::before { content: "✓"; position: absolute; left: 0; color: var(--line); font-weight: 800; }
.profile .btn-more { min-width: 0; }

/* ---------- カテゴリー一覧（トップ） ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 560px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-grid a {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--border); border-radius: 6px; background: #fafbfc;
  padding: 12px 14px; text-decoration: none; color: var(--main); font-weight: 700;
}
.cat-grid a:hover { border-color: var(--main); }
.count { font-size: 12px; color: var(--text-sub); font-weight: 400; }

/* ---------- サイドバー ---------- */
.sidebar { display: grid; gap: 24px; align-content: start; }
.widget { background: #fff; border-radius: 4px; padding: 16px; }
.widget-title {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--main); color: #fff; font-size: 15px; margin: -16px -16px 14px;
  padding: 10px; border-radius: 4px 4px 0 0; line-height: 1.4;
}
.widget-title::before, .widget-title::after { content: ""; width: 20px; height: 1px; background: rgba(255,255,255,.6); }
.mini-profile { text-align: center; }
.mini-profile .avatar { width: 90px; height: 90px; font-size: 36px; margin-bottom: 6px; }
.mini-profile .profile-list { font-size: 14px; margin: 10px 0; }
/* LINE登録バナー（画像の代わり） */
.side-banner {
  display: block; text-decoration: none; border-radius: 4px; overflow: hidden;
  background: linear-gradient(160deg, #e9fbef, #c9f2d8); border: 2px solid var(--line);
  padding: 16px; color: var(--main); text-align: center;
}
.side-banner .sb-label { display: inline-block; background: var(--line); color: #fff; font-size: 12px; font-weight: 800; padding: 0 10px; border-radius: 999px; }
.side-banner .sb-title { font-size: 20px; font-weight: 900; line-height: 1.4; margin: 8px 0; }
.side-banner .sb-title em { font-style: normal; color: var(--line-dark); }
.side-banner p { font-size: 13px; margin: 0 0 10px; line-height: 1.6; }
.side-banner .btn-line { font-size: 14px; padding: 10px; }
.tiktok-banners { display: grid; gap: 10px; }
.tt-banner {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff;
  background: #111; border-radius: 4px; padding: 14px 16px; font-weight: 800; line-height: 1.4;
}
.tt-banner .tt-lv { flex: none; width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center; font-size: 18px; }
.tt-banner small { display: block; font-weight: 400; font-size: 12px; color: #ccc; }
.search { display: flex; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.search input { flex: 1; min-width: 0; padding: 10px; border: 0; font-size: 16px; font-family: inherit; }
.search button { padding: 0 14px; border: 0; background: var(--main); color: #fff; font-weight: 700; font-family: inherit; cursor: pointer; }
.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats li { border-bottom: 1px solid var(--border); }
.side-cats a { display: flex; justify-content: space-between; padding: 10px 4px; text-decoration: none; color: var(--main); font-size: 15px; }
.side-cats a::before { content: "›"; margin-right: 8px; color: var(--text-sub); }
.side-cats a span:first-child { flex: 1; }

/* ---------- フッター ---------- */
.site-footer { background: var(--main); color: #c8d0de; padding: 32px 0; text-align: center; font-size: 13px; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer small { font-size: 12px; }

/* ---------- 画面下の固定ボタン（吹き出しつき） ---------- */
.sticky-line {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 50;
  width: calc(100% - 24px); max-width: 520px;
}
.sticky-line[hidden] { display: none; }
.sticky-link {
  position: relative; display: block; background: var(--line); color: #fff; text-decoration: none;
  border-radius: 12px; padding: 18px 44px 10px 16px; text-align: center; font-weight: 900; font-size: 16px; line-height: 1.4;
  box-shadow: 0 4px 0 var(--line-dark), 0 6px 16px rgba(0,0,0,.2);
}
.sticky-link em { font-style: normal; color: #fff36b; }
.sticky-link::after { content: "›"; position: absolute; right: 14px; top: 50%; transform: translateY(-35%); width: 22px; height: 22px; line-height: 20px; border-radius: 50%; background: #fff; color: var(--line); font-size: 18px; }
.sticky-bubble {
  position: absolute; left: 50%; top: -12px; transform: translateX(-50%); white-space: nowrap;
  background: #fff; color: var(--line-dark); border: 2px solid var(--line); border-radius: 999px;
  font-size: 12px; font-weight: 800; padding: 0 12px; line-height: 1.8;
}
.sticky-close {
  position: absolute; right: -6px; top: -14px; width: 26px; height: 26px; border-radius: 50%;
  border: 0; background: #555; color: #fff; font-size: 14px; cursor: pointer; line-height: 1;
}

/* ページ上部へ戻る */
.to-top {
  position: fixed; right: 12px; bottom: 100px; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border); color: var(--main); text-decoration: none;
  display: grid; place-items: center; font-size: 16px; box-shadow: var(--shadow); z-index: 40;
}

/* ---------- 記事ページ ---------- */
.breadcrumb { font-size: 12px; color: var(--text-sub); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-sub); }
.article { background: #fff; border-radius: 4px; padding: 20px 16px 28px; }
@media (min-width: 560px) { .article { padding: 32px; } }
.article-tags { display: flex; gap: 6px; }
.article-tags span { font-size: 12px; font-weight: 700; padding: 0 8px; line-height: 1.8; color: #fff; }
.article-tags .tag-cat { background: var(--main); }
.article-title { font-size: 24px; line-height: 1.6; margin: 10px 0; }
.article-meta { font-size: 13px; color: var(--text-sub); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.article .thumb { margin-bottom: 24px; }
.toc { border: 1px solid var(--border); background: #fafbfc; padding: 14px 18px; margin: 24px 0; }
.toc-title { font-weight: 800; margin: 0 0 6px; text-align: center; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc a { text-decoration: none; color: var(--main); }
.article h2 {
  font-size: 20px; margin: 44px 0 18px; padding: 12px 16px; line-height: 1.5;
  background: var(--main); color: #fff; border-radius: 2px;
}
.article h2 rt { color: #c8d0de; }
.article h3 { font-size: 18px; margin: 28px 0 12px; padding: 0 0 6px; border-bottom: 2px solid var(--main); line-height: 1.5; }
.article p { margin: 0 0 1.3em; }
.example { background: #fffbea; border-left: 4px solid var(--accent); padding: 12px 16px; margin: 0 0 1.3em; }
.example p { margin: 0 0 .4em; }
.example .ok::before { content: "○ "; color: var(--line-dark); font-weight: 800; }
.example .ng::before { content: "× "; color: var(--red); font-weight: 800; }
.point { border: 2px solid var(--blue); border-radius: 6px; padding: 14px 16px; margin: 0 0 1.3em; background: #f3f7ff; }
.point-label { font-weight: 800; color: var(--blue); margin: 0 0 4px; }
.cta-line { margin: 40px 0 0; }
.cta-line .fv { padding: 0; margin: 0; }

/* スマホではキャッチコピーをお知らせバーの上に回して、ふりがなボタンと重ならないようにする */
@media (max-width: 559px) {
  .header-inner .logo-catch { display: none; }
  .header-catch { display: block; background: #fff; text-align: center; font-size: 11px; color: var(--text-sub); line-height: 1.4; padding: 0 0 6px; margin-top: -4px; }
}
@media (min-width: 560px) { .header-catch { display: none; } }

/* ---------- 無料問題集・無料レッスン・参加特典 ---------- */
.book-banner { padding-bottom: 48px; }
.books { display: flex; justify-content: center; gap: 6%; margin: 6px 0 4px; }
.book {
  position: relative; width: 36%; aspect-ratio: 1 / 1.35; border-radius: 3px 8px 8px 3px;
  background: #fff; color: var(--main); padding: 10% 8% 8%; display: flex; flex-direction: column;
  box-shadow: -5px 0 0 rgba(0,0,0,.25) inset, 4px 6px 0 rgba(0,0,0,.3); transform: rotate(-3deg);
}
.book-n3 { transform: rotate(3deg); }
.book-lv { align-self: flex-start; color: #fff; font-weight: 900; font-size: 6cqw; padding: 0 8px; line-height: 1.4; border-radius: 3px; }
.book-n2 .book-lv { background: var(--n2); }
.book-n3 .book-lv { background: var(--n3); }
.book-title { font-weight: 900; font-size: 4.2cqw; line-height: 1.3; margin-top: 6%; }
.book-num { margin-top: auto; font-weight: 800; font-size: 3.6cqw; }
.book-num em { font-style: normal; color: var(--red); font-size: 2em; line-height: 1; }

.offer { text-align: center; }
.offer-label { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--line-dark); }
.offer .section-title { margin-bottom: 16px; }
.offer-sub { font-size: 14px; color: var(--text-sub); margin: -6px 0 18px; }
.offer .btn-line { max-width: 420px; margin: 22px auto 0; }

.book-cards { display: grid; gap: 14px; text-align: left; }
@media (min-width: 560px) { .book-cards { grid-template-columns: 1fr 1fr; } }
.book-card { border: 2px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.bc-head { margin: 0; font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.bc-head span { color: #fff; font-size: 13px; padding: 0 8px; border-radius: 3px; line-height: 1.7; }
.bc-num { margin: 4px 0 8px; font-size: 14px; font-weight: 700; }
.bc-num b { font-size: 30px; color: var(--red); line-height: 1.2; }
.check-list, .point-list { list-style: none; margin: 0; padding: 0; text-align: left; }
.check-list li { position: relative; padding-left: 1.4em; font-size: 14px; line-height: 1.8; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--line); font-weight: 800; }
.point-list { margin-top: 16px; background: var(--main-light); border-radius: 8px; padding: 12px 16px; }
.point-list li { font-size: 14px; line-height: 1.7; padding: 4px 0 4px 1.4em; position: relative; }
.point-list li::before { content: "●"; position: absolute; left: 0; color: var(--main); font-size: 10px; top: 9px; }

.lesson-facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lesson-facts li { border-radius: 50%; aspect-ratio: 1; max-width: 120px; margin: 0 auto; width: 100%;
  background: var(--main); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; line-height: 1.4; }
.lesson-facts b { font-size: 24px; color: var(--accent); }
.lesson-lead { font-size: 15px; margin: 0 0 16px; }
.lesson-lead b { color: var(--red); font-size: 1.2em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; text-align: left; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: #fafbfc; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; font-weight: 700; font-size: 15px; line-height: 1.5; }
.steps span { display: block; font-size: 11px; color: var(--line-dark); letter-spacing: .1em; }
.steps small { display: block; font-weight: 400; font-size: 12px; color: var(--text-sub); }

.gifts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.gift { display: flex; gap: 14px; align-items: center; border: 2px solid var(--accent); background: #fffdf2; border-radius: 10px; padding: 12px 14px; }
.gift-no { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; line-height: 1.1; }
.gift-no b { font-size: 26px; }
.gift p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-sub); }
.gift .gift-title { font-size: 17px; font-weight: 800; color: var(--main); margin-bottom: 2px; }
.gift-total { margin: 18px 0 0; font-weight: 800; }
.gift-total b { color: var(--red); font-size: 1.3em; }

.side-lesson { background: linear-gradient(160deg, #eef2f8, #dde6f5); border-color: var(--main); }
.side-lesson .sb-label { background: var(--main); }
.sidebar > .side-banner + .side-banner { margin-top: 0; }

/* スマホで横にはみ出さないようにする */
.layout { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.lesson-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lesson-facts li { font-size: 11px; }
.lesson-facts b { font-size: clamp(18px, 6vw, 24px); }
.book { min-width: 0; }
.book-title { font-size: 4.6cqw; white-space: nowrap; }

/* 問題集の表紙画像 */
.book-img { width: 42%; height: auto; border-radius: 4px; box-shadow: 4px 6px 0 rgba(0,0,0,.3); transform: rotate(-3deg); background: #fff; }
.book-img + .book-img { transform: rotate(3deg); }
.books { gap: 5%; margin: 8px 0 6px; }
.fb-lead .yellow { font-style: normal; color: var(--accent); font-size: 1.15em; }

/* プロフィール写真（ロゴ画像） */
img.avatar { object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--border); background: #fff; }

/* 問題集カードをレベルの色に合わせる */
.book-card.N2 { --lv: var(--n2); border-color: var(--n2); background: #fff5f8; }
.book-card.N3 { --lv: var(--n3); border-color: var(--n3); background: #f3fbf5; }
.book-card .bc-head, .book-card .bc-num, .book-card .bc-num b { color: var(--lv); }
.book-card .check-list li::before { color: var(--lv); }
.gift .gift-when { display: inline-block; background: var(--line); color: #fff; font-size: 12px; font-weight: 700; padding: 0 10px; border-radius: 999px; margin-bottom: 4px; }
.lesson-gift { margin: 16px 0 0; background: #fffdf2; border: 2px dashed var(--accent); border-radius: 8px; padding: 10px; font-size: 15px; }
.lesson-gift b { color: var(--red); }
.lesson-gift p { margin: 0; }
.kanji-books { display: block; width: 100%; max-width: 460px; height: auto; margin: 10px auto 4px; }
.lesson-gift .kg-sub { font-size: 13px; color: var(--text-sub); }
.can-list { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 10px; text-align: left; max-width: 520px; }
.can-list li { position: relative; background: #fafbfc; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px 10px 44px; font-size: 15px; line-height: 1.6; }
.can-list li::before { content: "✓"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.can-list b { color: var(--main); }

/* ---------- 控えめなボタン（LINEの緑・影をやめる） ---------- */
body { padding-bottom: 0; }
.btn-line {
  background: var(--main); color: #fff; box-shadow: none; border-radius: 8px;
  font-size: 15px; font-weight: 700; padding: 13px 16px; transition: opacity .2s;
}
.btn-line:hover { transform: none; box-shadow: none; opacity: .85; }
.offer .btn-line, .fv-text .btn-line { max-width: 360px; margin-left: auto; margin-right: auto; }
.btn-note { margin: 6px 0 0 !important; font-size: 12px !important; color: var(--text-sub); text-align: center; }
.fv-banner .fb-line { color: var(--main); }
.offer-label { color: var(--text-sub); }
.gift .gift-when { background: var(--main-light); color: var(--main); }
.can-list li::before { background: var(--main); }
.profile-list li::before, .check-list li::before { color: var(--main); }
.side-banner { background: #fff; border: 1px solid var(--border); }
.side-banner .sb-label { background: var(--main-light); color: var(--main); }
.side-banner .sb-title em { color: var(--main); }
.to-top { bottom: 20px; }

/* 「無料プレゼント」を明るく */
.fv-banner .fb-line {
  background: linear-gradient(135deg, #ffe066, #ffb703); color: #b3123c;
  box-shadow: 0 2px 0 rgba(0,0,0,.25); letter-spacing: .05em;
}
/* ボタン：グラデーションのこん色 */
.btn-line {
  background: linear-gradient(135deg, #0b1c3a 0%, #1f4a8a 60%, #2f6fdb 100%);
  border-radius: 999px; font-size: 16px; letter-spacing: .05em; padding: 14px 20px;
  box-shadow: 0 6px 16px rgba(23,48,90,.35); position: relative;
}
.btn-line::after { content: "›"; margin-left: 10px; font-size: 1.2em; }
.btn-line:hover { opacity: 1; filter: brightness(1.12); box-shadow: 0 8px 20px rgba(23,48,90,.45); }

/* 「無料プレゼント」：白い四角、無料だけ赤 */
.fv-banner .fb-line { background: #fff; color: #111; box-shadow: none; border-radius: 2px; letter-spacing: .03em; }
.fv-banner .fb-line .red { color: var(--red); }
/* ボタン：明るめのこん色グラデーション */
.btn-line {
  background: linear-gradient(135deg, #24508f 0%, #2f66b8 55%, #4a8de0 100%);
  box-shadow: 0 5px 14px rgba(47,102,184,.35);
}
.btn-line:hover { box-shadow: 0 7px 18px rgba(47,102,184,.45); }

/* 「無料プレゼント！」を明るく：白い四角＋プレゼントの絵＋きらきら */
.fv-banner .fb-line {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border-radius: 6px; padding: 0 12px; transform: rotate(-2deg);
  box-shadow: 0 0 0 3px #ffd23f, 0 4px 10px rgba(0,0,0,.25);
}
.fv-banner .fb-line .gift-icon { font-size: .8em; }
.fv-banner .fb-line::before, .fv-banner .fb-line::after {
  content: "✦"; position: absolute; color: #ffd23f; font-size: 14px; line-height: 1;
}
.fv-banner .fb-line::before { left: -14px; top: -8px; }
.fv-banner .fb-line::after { right: -14px; bottom: -6px; font-size: 18px; }

.fv-banner .fb-line { transform: none; }

/* 参加特典の見出し：大きく華やかに（リボン風） */
.gift-heading { position: relative; margin: 4px 0 24px; text-align: center; line-height: 1.2; }
.gift-heading::before, .gift-heading::after {
  content: "✦"; position: absolute; top: 50%; color: #ffb703; font-size: 22px;
}
.gift-heading::before { left: 2%; transform: translateY(-80%); }
.gift-heading::after { right: 2%; transform: translateY(-10%); font-size: 28px; }
.gh-ribbon {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 34px 8px; font-size: clamp(30px, 9vw, 42px); font-weight: 900; letter-spacing: .08em;
  color: #e5194f; background: linear-gradient(180deg, #fff3a6 0%, #ffd23f 55%, #f6b300 100%);
  border-radius: 6px; box-shadow: 0 4px 0 #d99a00, 0 8px 18px rgba(246,179,0,.35);
  text-shadow: 2px 2px 0 #fff;
}
.gh-ribbon::before, .gh-ribbon::after {
  content: ""; position: absolute; top: 12px; bottom: -8px; width: 22px; background: #e9a500; z-index: -1;
}
.gh-ribbon::before { left: -14px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); }
.gh-ribbon::after { right: -14px; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); }
.gh-icon { font-size: .8em; text-shadow: none; }
.gift-heading rt { color: #b3123c; font-size: .32em; text-shadow: none; }

/* 参加特典：もらえる条件を大きく、その下に特典名 */
.gifts2 { display: grid; gap: 18px; }
@media (min-width: 720px) { .gifts2 { grid-template-columns: 1fr 1fr; } }
.gift2 { border: 3px solid var(--accent); border-radius: 12px; overflow: hidden; background: #fffdf2; text-align: center; }
.g2-when {
  margin: 0; background: var(--main); color: #fff; padding: 12px 10px 10px;
  font-size: clamp(18px, 5.2vw, 22px); font-weight: 900; line-height: 1.5;
}
.g2-when rt { color: #c8d0de; }
.g2-no { display: block; width: fit-content; margin: 0 auto 4px; background: var(--accent); color: var(--main); font-size: 13px; padding: 0 12px; border-radius: 999px; line-height: 1.7; }
.g2-arrow { margin: 6px 0 0; color: var(--red); font-size: 22px; line-height: 1; }
.g2-title { margin: 4px 0 6px; font-size: clamp(24px, 7vw, 30px); font-weight: 900; color: var(--red); line-height: 1.5; }
.g2-title rt { color: var(--red); }
.g2-desc { margin: 0; padding: 0 14px 16px; font-size: 14px; color: var(--text-sub); line-height: 1.8; }

/* 条件の帯：明るめのこん色グラデーション（ボタンと同じ系統） */
.g2-when { background: linear-gradient(135deg, #24508f 0%, #2f66b8 55%, #4a8de0 100%); }
.g2-when rt { color: #dbe7fb; }

/* リンクのあるボタンだけ、落ち着いたライトグリーンにする */
.btn-line {
  background: linear-gradient(135deg, #7fd3a0 0%, #55bf82 55%, #3fae6f 100%);
  box-shadow: 0 5px 14px rgba(63,174,111,.3);
  text-shadow: 0 1px 1px rgba(0,0,0,.15);
}
.btn-line:hover { box-shadow: 0 7px 18px rgba(63,174,111,.4); }

/* ボタン：グラデーションなしの濃い緑 */
.btn-line { background: #2e8b57; box-shadow: 0 4px 12px rgba(46,139,87,.3); text-shadow: none; }
.btn-line:hover { filter: brightness(1.1); box-shadow: 0 6px 16px rgba(46,139,87,.4); }

/* 「無料プレゼント！」を真ん中に（ロゴは左上の角へ） */
.book-banner .fb-head { position: relative; justify-content: center; min-height: 40px; }
.book-banner .fb-head .logo-mark { position: absolute; left: 0; top: 0; width: 32px; height: 32px; }
.book-banner .fb-lead { text-align: center; }

/* ボタン：LINEに近い、少し明るめの緑 */
.btn-line { background: #1fb85a; box-shadow: 0 4px 12px rgba(31,184,90,.3); }
.btn-line:hover { box-shadow: 0 6px 16px rgba(31,184,90,.4); }

/* ボタンの文字を大きく */
.btn-line { font-size: clamp(18px, 5vw, 20px); font-weight: 800; padding: 16px 20px; }

.free-badge { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 4px; background: #fff; color: #1fb85a; font-size: .75em; font-weight: 900; letter-spacing: .08em; line-height: 1.6; vertical-align: 2px; }

/* ボタンの矢印はなし */
.btn-line::after { content: none; }


/* 無料個別レッスン60分の見出しを強調 */
.lesson-label {
  display: inline-block; margin: 0 0 10px; padding: 2px 16px; border-radius: 999px;
  background: linear-gradient(135deg, #24508f, #4a8de0); color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: .2em;
}
.lesson-heading {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px;
  margin: 0 0 22px; line-height: 1.3; font-weight: 900;
}
.lh-free {
  background: var(--red); color: #fff; font-size: clamp(22px, 6.5vw, 28px);
  padding: 2px 12px; border-radius: 6px; box-shadow: 0 3px 0 #b3123c;
}
.lh-free rt { color: #ffd6e0; }
.lh-main { font-size: clamp(28px, 8.5vw, 38px); color: var(--main); }
.lh-time { font-size: clamp(22px, 6.5vw, 28px); color: var(--red);
  background: linear-gradient(transparent 62%, #ffe066 62%); padding: 0 4px; }
.lh-time b { font-size: 1.6em; line-height: 1; }

/* 無料個別レッスン60分：ひとつの見出しで、厚みのある立体的なグラデーション文字 */
.lesson-heading { display: block; margin: 0 0 22px; text-align: center; line-height: 1.4; }
.lh-text {
  display: inline-block; font-size: clamp(26px, 7.6vw, 36px); font-weight: 900; letter-spacing: .04em;
  background: linear-gradient(180deg, #5fa0f0 0%, #2f66b8 50%, #17305a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 0 #0e2246) drop-shadow(0 1px 0 #0e2246) drop-shadow(0 1px 0 #0e2246)
          drop-shadow(0 4px 4px rgba(14,34,70,.3));
  -webkit-text-stroke: .5px rgba(255,255,255,.35);
}
.lh-text rt { -webkit-text-fill-color: var(--text-sub); -webkit-text-stroke: 0; font-weight: 400; }

/* 見出しを読みやすく：こん色1色＋うすい水色の影で少しだけ厚み */
.lh-text {
  background: none; -webkit-text-fill-color: currentColor; color: var(--main);
  filter: none; -webkit-text-stroke: 0;
  text-shadow: 0 3px 0 #cfdcf3;
}
.lh-text rt { -webkit-text-fill-color: var(--text-sub); text-shadow: none; }

/* 「無料」「60分」は無料プレゼントの「無料」と同じ赤 */
.lh-text .lh-red { color: var(--red); -webkit-text-fill-color: var(--red); text-shadow: 0 3px 0 #f6d0d8; }
.lh-text .lh-red rt { -webkit-text-fill-color: var(--text-sub); text-shadow: none; }

/* 見出しの下に、少し太めの黄色いアンダーライン */
.lh-text { background: linear-gradient(transparent 78%, #ffe066 78%, #ffe066 96%, transparent 96%); padding: 0 6px; }

/* =========================================================
   WordPress用の追加
   ========================================================= */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.admin-bar .site-header { position: relative; }

/* メニュー（管理画面の「外観 → メニュー」で作ったもの） */
.gnav ul.menu { list-style: none; margin: 0 auto; padding: 0; }

/* 記事カードのアイキャッチ画像 */
.thumb-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-photo .thumb-main { font-size: 7cqw; }

/* 記事一覧のページ送り */
.pager { margin-top: 28px; text-align: center; }
.pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager .page-numbers { display: inline-block; min-width: 40px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--main); }
.pager .page-numbers.current { background: var(--main); color: #fff; border-color: var(--main); }
.empty { text-align: center; color: var(--text-sub); }

/* 記事本文（ブロックエディタ） */
.article-eyecatch img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 24px; }
.article-body img { max-width: 100%; height: auto; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.article-body blockquote { margin: 0 0 1.3em; padding: 12px 16px; border-left: 4px solid var(--border); background: #fafbfc; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.3em; font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 8px 10px; }
.article-body th { background: var(--main-light); }
.article-body .wp-block-image { margin: 0 0 1.3em; }
.article-body figcaption { font-size: 13px; color: var(--text-sub); text-align: center; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }

/* フッターのメニュー */
.site-footer ul.menu { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }

/* スマホで見出しとボタンが2行に割れないようにする */
.lh-text { font-size: clamp(20px, 6.4vw, 36px); white-space: nowrap; }
.btn-line { font-size: clamp(15px, 4.4vw, 20px); white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.free-badge { margin-left: 6px; }

/* iPadなどの中くらいの画面では、スマホと同じく「バナー → 説明文 → ボタン」の縦並びにする */
@media (min-width: 720px) and (max-width: 1099px) {
  .fv { display: block; padding: 24px; }
  .fv .fv-banner { max-width: 560px; margin: 0 auto; }
  .fv-text .btn-line { max-width: 420px; }
}

/* どの画面の幅でも、一番上は「バナー → 説明文 → ボタン」の縦並びにそろえる */
.fv { display: block !important; padding: 24px 16px; }
.fv .fv-banner { max-width: 560px; margin: 0 auto; }
.fv-text .btn-line { max-width: 420px; }

/* 暗い背景・色のついた背景の上のふりがなは、明るい色にして読みやすくする */
.fv-banner rt, .notice-bar rt, .lesson-facts rt, .btn-line rt, .tt-banner rt, .lv-N1 rt, .lv-N2 rt, .lv-N3 rt { color: rgba(255,255,255,.85); }
.book-banner .fb-line rt { color: var(--text-sub); }
.btn-line { line-height: 1.9; }
.notice-bar { line-height: 2; }
