/* AIで稼ぐ MLM研究室 v2 ／ 低視力対応：本文20px・行間1.85・高コントラスト（濃紺×白・水色と金はアクセント） */
:root {
  --night: #0a1630;
  --night2: #10244a;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #3b4658;
  --paper: #ffffff;
  --paper2: #f3f6fb;
  --line: #cbd5e1;
  --cyan: #38bdf8;
  --cyan-ink: #075985;
  --gold: #f5c542;
  --gold-ink: #0a1630;
  --focus: #f5c542;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 20px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Meiryo", sans-serif;
  font-size: 1rem; line-height: 1.85; overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--gold-ink); padding: 12px 16px; z-index: 50; font-weight: 700; }
.skip-link:focus { left: 8px; top: 8px; }

/* ── ヘッダー */
.site-header { background: var(--night); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(56,189,248,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--cyan); border-radius: 10px; font-weight: 900; font-size: 1.25rem; color: #fff; background: rgba(56,189,248,.12); flex: 0 0 46px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; }
.brand-sub { font-size: .8rem; color: #cfe8fb; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; }
.nav a:hover { background: rgba(255,255,255,.1); }
.nav a.nav-cta { background: var(--gold); color: var(--gold-ink); }
.nav a.nav-cta:hover { background: #ffd866; }

/* ── ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 12px 28px; border-radius: 999px; font-size: 1.05rem; font-weight: 800; text-decoration: none; text-align: center; line-height: 1.4; max-width: 100%; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 8px 24px rgba(245,197,66,.35); }
.btn-ghost { color: #fff; border: 2px solid #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { min-height: 66px; font-size: 1.15rem; padding: 14px 36px; }

/* ── 方眼の濃紺背景（研究室のノート） */
.hero, .note-hero, .cta-panel, .band {
  background-color: var(--night);
  background-image:
    linear-gradient(rgba(120,190,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,190,255,.09) 1px, transparent 1px),
    radial-gradient(ellipse at 80% 20%, rgba(56,189,248,.28), transparent 55%),
    linear-gradient(135deg, var(--night) 0%, var(--night2) 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
  color: #fff;
}

/* ── トップ：ヒーロー */
.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 24px; min-height: 620px; }
.hero-copy { padding: 72px 0 80px; }
.kicker, .sec-kicker { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-weight: 800; letter-spacing: .22em; font-size: .85rem; color: var(--cyan); margin: 0 0 10px; }
.hero h1 { margin: 0; line-height: 1.12; font-weight: 900; letter-spacing: .01em; }
.hero h1 span { display: block; }
.hero h1 span:first-child { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
.hero h1 span:last-child { font-size: clamp(2.6rem, 6.4vw, 4.4rem); background: linear-gradient(90deg, #ffffff 0%, #bfe6ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-catch { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; margin: 26px 0 14px; padding-left: 16px; border-left: 6px solid var(--gold); line-height: 1.5; }
.hero-lead { font-size: 1.02rem; color: #e2ecf7; max-width: 34em; margin: 0 0 30px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-pic { position: relative; align-self: end; display: flex; justify-content: center; }
.hero-pic img { position: relative; z-index: 1; width: min(100%, 470px); filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
.hero-ring { position: absolute; z-index: 0; width: 88%; aspect-ratio: 1; top: 8%; left: 6%; border-radius: 50%; border: 2px solid rgba(56,189,248,.55); box-shadow: 0 0 80px rgba(56,189,248,.35), inset 0 0 60px rgba(56,189,248,.18); }
.hero-ring::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; border: 1px dashed rgba(56,189,248,.45); }
.hero-badge { position: absolute; z-index: 2; left: 0; bottom: 60px; margin: 0; background: rgba(10,22,48,.92); border: 2px solid var(--cyan); border-radius: 12px; padding: 8px 16px; line-height: 1.4; }
.hero-badge b { display: block; font-size: 1rem; }
.hero-badge span { font-size: .8rem; color: #cfe8fb; }

/* ── 約束の帯 */
.band { border-top: 1px solid rgba(56,189,248,.35); background-image: none; background-color: #07102a; }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.band-grid p { margin: 0; padding: 26px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,.14); }
.band-grid p:first-child { border-left: none; }
.band-grid b { display: block; font-size: 1.2rem; color: var(--gold); margin-bottom: 4px; }
.band-grid span { font-size: .92rem; color: #e2ecf7; }

/* ── セクション */
.section-block { padding: 80px 0; }
.section-block.alt { background: var(--paper2); }
.sec-kicker { color: var(--cyan-ink); }
.sec-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 900; color: var(--ink); margin: 0 0 36px; line-height: 1.35; }

.theme-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.theme { border: 2px solid var(--line); border-top: 6px solid var(--night); border-radius: 14px; padding: 22px 20px 18px; background: #fff; }
.theme-no { margin: 0; font-size: 2rem; font-weight: 900; color: var(--night); line-height: 1; font-family: "Segoe UI", Arial, sans-serif; }
.theme-no span { display: block; font-size: .72rem; letter-spacing: .2em; color: var(--cyan-ink); margin-top: 6px; }
.theme h3 { margin: 12px 0 6px; font-size: 1.35rem; color: var(--ink); }
.theme p { margin: 0 0 10px; font-size: .95rem; }
.theme ul { list-style: none; padding: 10px 0 0; margin: 0; border-top: 1px solid var(--line); }
.theme li { margin: 6px 0; font-size: .9rem; line-height: 1.5; }
.theme li a { font-weight: 700; }

.note-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.note-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 20px 22px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.note-card a:hover { border-color: var(--night); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10,22,48,.12); }
.nc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nc-no { font-family: "Segoe UI", Arial, sans-serif; font-weight: 900; color: var(--night); font-size: .95rem; letter-spacing: .08em; }
.tag { display: inline-block; font-family: "Segoe UI", Arial, sans-serif; font-size: .7rem; font-weight: 800; letter-spacing: .14em; color: #fff; background: var(--night); border-radius: 999px; padding: 2px 12px; }
.nc-title { font-size: 1.15rem; font-weight: 800; color: var(--ink); line-height: 1.5; margin: 12px 0 8px; }
.nc-desc { font-size: .88rem; color: var(--muted); line-height: 1.7; flex: 1; }
.nc-more { margin-top: 14px; font-weight: 800; color: var(--cyan-ink); }

.profile { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.profile-pic { width: 200px; height: 200px; border-radius: 50%; border: 6px solid var(--night); box-shadow: 0 0 0 4px var(--cyan); }
.profile .sec-title { margin-bottom: 14px; }
.text-link { font-weight: 800; }

/* ── 誘導パネル */
.cta-panel { padding: 80px 0 0; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: end; }
.cta-grid > div { padding-bottom: 80px; }
.cta-panel h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 900; margin: 0 0 18px; line-height: 1.4; }
.cta-panel p { color: #e2ecf7; }
.cta-points { list-style: none; padding: 0; margin: 20px 0 28px; }
.cta-points li { position: relative; padding-left: 34px; margin: 10px 0; font-weight: 700; }
.cta-points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-size: .8rem; display: grid; place-items: center; margin-top: 5px; font-weight: 900; }
.cta-note { font-size: .85rem; margin-top: 16px; }
.cta-note a { color: #bfe6ff; }
.cta-pic { width: 320px; filter: drop-shadow(0 16px 32px rgba(0,0,0,.45)); }

/* ── 記事・下層ページ */
.note-hero { padding: 26px 0 44px; }
.note-hero.small { padding-bottom: 36px; }
.note-hero h1 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); font-weight: 900; line-height: 1.45; margin: 10px 0 20px; max-width: 30em; }
.note-kicker { margin: 18px 0 0; font-weight: 800; color: #cfe8fb; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .95rem; }
.note-kicker .tag { background: var(--cyan); color: var(--night); }
.byline { display: flex; align-items: center; gap: 14px; }
.byline img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--cyan); }
.byline p { margin: 0; line-height: 1.45; }
.byline b { display: block; }
.byline span { font-size: .85rem; color: #cfe8fb; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; font-size: .85rem; }
.breadcrumb a { color: #cfe8fb; }
.breadcrumb li { color: #fff; }
.breadcrumb li + li::before { content: "›"; margin: 0 .5em; color: #9fb6cf; }

.article-wrap { max-width: 860px; padding-top: 36px; padding-bottom: 72px; }
.article h2 { font-size: 1.4rem; line-height: 1.5; color: var(--ink); margin: 2.2em 0 .7em; padding: 10px 16px; background: var(--paper2); border-left: 8px solid var(--night); border-radius: 0 10px 10px 0; }
.article h3 { font-size: 1.18rem; line-height: 1.5; color: var(--ink); margin: 1.6em 0 .4em; padding-bottom: 6px; border-bottom: 3px solid var(--cyan); }
.article ul, .article ol { padding-left: 1.4em; }
.article li { margin: .35em 0; }
.lead { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.ai-note { background: #eef7fe; border: 2px solid var(--cyan-ink); padding: 12px 16px; border-radius: 10px; font-size: .95rem; }
.toc { border: 2px solid var(--night); border-radius: 12px; padding: 16px 20px; margin: 28px 0; background: #fff; }
.toc-title { font-weight: 900; margin: 0 0 6px; font-size: 1.05rem; color: var(--night); }
.toc ol { margin: 0; }
.toc ol ol { font-size: .95rem; }
blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 6px solid var(--gold); background: #fffbeb; border-radius: 0 10px 10px 0; }
blockquote p { margin: 0; }

.table-wrap { width: 100%; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { border: 2px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--night); color: #fff; border-color: var(--night); }
@media (max-width: 700px) {
  table, thead, tbody, tr, th, td { display: block; width: 100%; }
  thead { position: absolute; left: -9999px; }
  tr { border: 2px solid var(--line); margin-bottom: 12px; border-radius: 10px; overflow: hidden; }
  td { border: none; border-bottom: 1px solid var(--line); }
  td:last-child { border-bottom: none; }
  td::before { content: attr(data-label); display: block; font-weight: 800; color: var(--night); font-size: .85rem; }
}

.checklist { list-style: none; padding: 0 !important; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.checklist input { width: 28px; height: 28px; flex: 0 0 28px; margin-top: 4px; accent-color: var(--night); }
.checklist label { cursor: pointer; }

.related-list { list-style: none; padding: 0 !important; }
.related-list li { border: 2px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
.related-link { font-weight: 800; display: block; }
.related-reason { display: block; color: var(--muted); font-size: .92rem; }
.notice { background: var(--paper2); border-radius: 12px; padding: 4px 18px 14px; }
.notice h2 { background: none; border-left: none; padding-left: 0; }
.important { border: 3px solid var(--night); border-radius: 12px; padding: 0 18px 10px; }
.important h2 { margin-top: .9em; }
.cta-action { margin: 14px 0 0; }
.small-note { font-size: .88rem; color: var(--muted); }

/* 記事内の案内ボックス */
.nex-box { margin: 40px 0; border-radius: 16px; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse at 90% 0%, rgba(56,189,248,.35), transparent 60%), linear-gradient(135deg, var(--night), var(--night2)); }
.nex-box-in { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 24px 24px 22px; align-items: start; }
.nex-face { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--cyan); }
.nex-box p { margin: 0 0 10px; color: #e2ecf7; }
.nex-kicker { font-family: "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: .2em; font-size: .75rem; color: var(--cyan) !important; margin-bottom: 2px !important; }
.nex-title { font-size: 1.25rem; font-weight: 900; color: #fff !important; }
.nex-action { margin-top: 14px !important; }
.nex-note { font-size: .82rem; color: #cfe0f2 !important; margin: 10px 0 0 !important; }

.nex-feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 8px; }
.nex-feature div { background: var(--night); color: #fff; border-radius: 14px; padding: 18px 14px; text-align: center; line-height: 1.45; }
.nex-feature b { display: block; font-size: 1.8rem; font-weight: 900; color: var(--gold); }
.nex-feature span { font-size: .9rem; }

.about-top { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.about-top img { width: 240px; border-radius: 16px; background: linear-gradient(180deg, var(--night2), var(--night)); }

/* ── フッター */
.site-footer { background: #07102a; color: #e2ecf7; padding: 48px 0 36px; border-top: 4px solid var(--cyan); }
.site-footer a { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.footer-name { margin: 0; font-weight: 900; font-size: 1.15rem; color: #fff; }
.footer-sub { margin: 0; font-size: .85rem; color: #cfe8fb; }
.footer-heading { font-weight: 800; margin: 0 0 6px; color: #fff; }
.footer-notice { border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 14px 18px; }
.footer-notice ul { margin: 0; padding-left: 1.2em; }
.footer-notice li { font-size: .86rem; margin: .3em 0; }
.footer-links { list-style: none; padding: 0; margin: 18px 0 6px; display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-links a { display: inline-block; min-height: 44px; line-height: 44px; }
.copyright { font-size: .8rem; color: #9fb6cf; margin: 0; }

/* ── スマホ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 44px 0 8px; }
  .hero-pic { max-width: 380px; margin: 0 auto; }
  .hero-badge { bottom: 30px; }
  .theme-grid { grid-template-columns: 1fr 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-grid > div { padding-bottom: 0; }
  .cta-pic { width: 240px; margin: 0 auto; }
}
@media (max-width: 600px) {
  html { font-size: 19px; }
  .wrap { padding: 0 16px; }
  .brand-sub { display: none; }
  .nav a { padding: 0 9px; font-size: .85rem; }
  .theme-grid { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr; }
  .band-grid p { border-left: none; border-top: 1px solid rgba(255,255,255,.14); padding: 16px; }
  .band-grid p:first-child { border-top: none; }
  .section-block { padding: 56px 0; }
  .profile { grid-template-columns: 1fr; gap: 20px; justify-items: center; text-align: left; }
  .profile-pic { width: 160px; height: 160px; }
  .about-top { grid-template-columns: 1fr; }
  .about-top img { width: 200px; margin: 0 auto; }
  .nex-box-in { grid-template-columns: 1fr; }
  .nex-face { width: 72px; height: 72px; }
  .nex-feature { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .note-card a { transition: none; } }

/* ════════ v3：テーマ色（記録＝ティール／数字＝オレンジ／連絡＝ローズ／判断＝バイオレット） */
.t-rec { --ac: #0f766e; --ac2: #ccfbf1; --ac3: #06b6d4; --acs: #14b8a6; }
.t-num { --ac: #b45309; --ac2: #fef3c7; --ac3: #f97316; --acs: #f59e0b; }
.t-con { --ac: #be123c; --ac2: #ffe4e6; --ac3: #ec4899; --acs: #f43f5e; }
.t-dec { --ac: #6d28d9; --ac2: #ede9fe; --ac3: #6366f1; --acs: #8b5cf6; }

/* トップのテーマカード・ノートカードに色 */
.theme[class*="t-"] { border-top-color: var(--ac); background: linear-gradient(180deg, var(--ac2) 0, #fff 120px); }
.theme[class*="t-"] .theme-no, .theme[class*="t-"] .theme-no span { color: var(--ac); }
.note-card[class*="t-"] a { padding: 0; overflow: hidden; border-top: 6px solid var(--ac); }
.note-card[class*="t-"] a:hover { border-color: var(--ac); }
.nc-img { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--ac2); }
.nc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.note-card a:hover .nc-img img { transform: scale(1.05); }
.note-card[class*="t-"] .nc-top, .note-card[class*="t-"] .nc-title, .note-card[class*="t-"] .nc-desc, .note-card[class*="t-"] .nc-more { padding-left: 20px; padding-right: 20px; }
.note-card[class*="t-"] .nc-top { padding-top: 14px; }
.note-card[class*="t-"] .nc-more { padding-bottom: 18px; color: var(--ac); }
.note-card[class*="t-"] .nc-no { color: var(--ac); }
.note-card[class*="t-"] .tag, .rel-card .tag { background: var(--ac); }

/* ── 記事ヒーロー：背景画像＋テーマ色のグラデーション＋流星 */
.art-hero { position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(100deg, rgba(10,22,48,.94) 0%, rgba(10,22,48,.82) 45%, color-mix(in srgb, var(--ac) 55%, transparent) 100%), var(--hero) center/cover no-repeat, var(--night); }
.art-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--ac), var(--ac3), var(--gold)); }
.art-hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: end; min-height: 440px; }
.art-hero-copy { padding: 26px 0 48px; }
.art-hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); font-weight: 900; line-height: 1.35; margin: 12px 0 8px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.art-sub { font-size: 1.15rem; font-weight: 700; color: #fff; margin: 0 0 22px; padding: 4px 14px; display: inline-block; background: color-mix(in srgb, var(--ac) 80%, transparent); border-radius: 8px; }
.art-hero .note-kicker .tag { background: var(--gold); color: var(--night); }
.art-hero-pose { width: 300px; align-self: end; filter: drop-shadow(0 12px 28px rgba(0,0,0,.5)); }

/* 要点の吹き出し */
.summary { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: start; margin: 8px 0 28px; }
.summary > img { width: 88px; height: 88px; border-radius: 50%; border: 4px solid var(--ac); }
.bubble { position: relative; background: var(--ac2); border: 3px solid var(--ac); border-radius: 16px; padding: 14px 18px; }
.bubble::before { content: ""; position: absolute; left: -14px; top: 26px; border: 12px solid transparent; border-right-color: var(--ac); border-left: 0; }
.bubble p { margin: 0; color: var(--ink); }
.bubble-label { font-weight: 900; color: var(--ac) !important; margin-bottom: 4px !important; }

/* 目次：色付きの番号 */
.page-note .toc { border: 3px solid var(--ac); background: linear-gradient(180deg, var(--ac2), #fff 70%); }
.page-note .toc-title { color: var(--ac); }
.page-note .toc ol { list-style: none; padding: 0; display: grid; gap: 8px; }
.page-note .toc li a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 700; padding: 8px 10px; border-radius: 10px; background: #fff; border: 2px solid color-mix(in srgb, var(--ac) 30%, #fff); }
.page-note .toc li a:hover { border-color: var(--ac); }
.toc-no { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--ac), var(--ac3)); color: #fff; font-weight: 900; font-size: .85rem; font-family: "Segoe UI", Arial, sans-serif; }

/* 見出し */
.page-note .article h2 { display: flex; align-items: center; gap: 14px; background: none; border-left: none; padding: 0 0 12px; border-radius: 0; font-size: 1.45rem; border-bottom: 4px solid transparent; border-image: linear-gradient(90deg, var(--ac), var(--ac3), transparent) 1; }
.h2-no { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ac), var(--ac3)); color: #fff; font-weight: 900; font-size: 1.1rem; font-family: "Segoe UI", Arial, sans-serif; box-shadow: 0 6px 16px color-mix(in srgb, var(--ac) 40%, transparent); }
.page-note .article h3 { border-bottom: none; padding: 6px 0 6px 14px; border-left: 6px solid var(--acs); background: linear-gradient(90deg, var(--ac2), transparent); border-radius: 0 8px 8px 0; }
.page-note blockquote { border-left-color: var(--ac); background: var(--ac2); }
.page-note th { background: var(--ac); border-color: var(--ac); }
.page-note td::before { color: var(--ac); }
.page-note .checklist li { border-color: color-mix(in srgb, var(--ac) 35%, #fff); background: #fff; }
.page-note .checklist input { accent-color: var(--ac); }
.page-note .article strong { background: linear-gradient(transparent 60%, color-mix(in srgb, var(--acs) 35%, transparent) 60%); }

/* 章の扉（画像） */
.chapter { position: relative; margin: 48px 0 8px; border-radius: 18px; overflow: hidden; background: var(--night); }
.chapter-bg { width: 100%; height: 260px; object-fit: cover; }
.chapter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--ac) 88%, transparent) 0%, color-mix(in srgb, var(--ac) 45%, transparent) 55%, transparent 80%); }
.chapter-pose { position: absolute; z-index: 2; right: 12px; bottom: 0; height: 250px; width: auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.4)); }
.chapter figcaption { position: absolute; z-index: 2; left: 24px; top: 50%; transform: translateY(-50%); right: 210px; color: #fff; }
.chapter-no { display: inline-block; font-family: "Segoe UI", Arial, sans-serif; font-weight: 900; letter-spacing: .18em; font-size: .8rem; background: var(--gold); color: var(--night); padding: 2px 12px; border-radius: 999px; }
.chapter-say { display: block; margin-top: 10px; font-size: 1.2rem; font-weight: 800; line-height: 1.5; text-shadow: 0 2px 8px rgba(0,0,0,.35); }

/* よくある質問 */
.faq-head { display: grid; grid-template-columns: 130px 1fr; align-items: end; gap: 12px; background: linear-gradient(135deg, var(--ac2), #fff); border: 3px solid var(--ac); border-radius: 18px; padding: 0 18px; margin-top: 48px; overflow: hidden; }
.faq-head img { height: 170px; width: auto; }
.page-note .faq-head h2 { border: none; border-image: none; padding: 18px 0; margin: 0; color: var(--ac); }
.page-note .faq h3 { background: var(--ac2); border-left: none; border-radius: 12px 12px 0 0; padding: 12px 16px; margin-bottom: 0; }
.page-note .faq h3 + p { margin-top: 0; border: 2px solid var(--ac2); border-top: none; border-radius: 0 0 12px 12px; padding: 12px 16px; }

/* あわせて読みたい：画像カード */
.page-note .related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.page-note .related-list li.rel-card { padding: 0; overflow: hidden; border: 2px solid var(--line); border-top: 5px solid var(--ac); border-radius: 14px; margin: 0; }
.rel-card a { display: block; text-decoration: none; color: var(--text); height: 100%; }
.rel-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.rel-body { display: block; padding: 10px 14px 14px; }
.rel-title { display: block; font-weight: 800; color: var(--ink); margin: 6px 0 4px; line-height: 1.5; }
.rel-card a:hover .rel-title { color: var(--ac); text-decoration: underline; }

@media (max-width: 800px) {
  .art-hero-grid { grid-template-columns: 1fr 150px; min-height: 0; }
  .art-hero-pose { width: 150px; }
  .chapter figcaption { right: 130px; left: 16px; }
  .chapter-pose { height: 190px; }
  .chapter-bg { height: 210px; }
}
@media (max-width: 600px) {
  .art-hero-grid { grid-template-columns: 1fr; }
  .art-hero-copy { padding-bottom: 8px; }
  .art-hero-pose { width: 170px; justify-self: end; margin-top: -20px; }
  .summary { grid-template-columns: 1fr; }
  .summary > img { width: 64px; height: 64px; }
  .bubble::before { display: none; }
  .chapter-say { font-size: 1rem; }
  .chapter figcaption { right: 110px; }
  .chapter-pose { height: 170px; right: 0; }
  .faq-head { grid-template-columns: 90px 1fr; }
  .faq-head img { height: 130px; }
}
