:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --text: #1f2937;
  --sub: #6b7280;
  --line: #e5e7eb;
  /* デジイナAI大学のブランド（emerald）。文字・ボタンは白地で読める濃さにする */
  --accent: #047857;
  --accent-dark: #065f46;
  --accent-soft: #ecfdf5;
  --accent-line: #a7f3d0;
  --brand: #10b981;
  --brand-gradient: linear-gradient(100deg, #059669 0%, #2563eb 55%, #7c3aed 100%);
  --ok: #047857;
  --ok-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --danger: #be123c;
  --radius: 12px;
  --tabbar-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--sub); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== 帯・ヘッダー ===== */
.test-banner { background: #fef3c7; color: #92400e; font-size: 13px; text-align: center; padding: 6px 12px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { text-decoration: none; color: var(--text); line-height: 1.25; display: flex; align-items: center; gap: 10px; }
/* 2026-11-25: ロゴの印を「07 夜空にともる D」に（オーナーが 10 案から選んだ。案は reports/2026-11-25_logo/） */
.brand-mark { width: 30px; height: 30px; border-radius: 8.5px; background: #172033 url(/brand-mark.svg) center / 100% 100% no-repeat; box-shadow: 0 2px 8px rgba(30,27,75,.28); flex: none; }
.brand-text small, .brand-text strong { display: block; }
.brand small { display: block; font-size: 11px; color: var(--sub); letter-spacing: .04em; }
.brand strong { font-size: 16px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--sub); font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.tabbar { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--tabbar-h);
    background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--sub); font-size: 11px; }
  .tabbar a .ico { font-size: 20px; line-height: 1; }
  .tabbar a[aria-current="page"] { color: var(--accent); font-weight: 600; }
  body.has-tabbar main { padding-bottom: calc(var(--tabbar-h) + 24px); }
}

main { padding: 28px 0 56px; min-height: 60vh; }
.site-footer { border-top: 1px solid var(--line); padding: 20px 0; font-size: 13px; color: var(--sub); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; }
body.has-tabbar .site-footer { padding-bottom: calc(var(--tabbar-h) + 20px); }

/* ===== 部品 ===== */
h1 { font-size: 26px; line-height: 1.4; margin: 0 0 12px; }
h2.section { font-size: 18px; margin: 36px 0 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 10px; padding: 11px 20px; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; font-family: inherit; line-height: 1.4; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(4,120,87,.22); }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { background: #f0fdf4; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-small { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #fff; color: var(--danger); border-color: #fecdd3; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 17px; }
form.inline { display: inline; }

.card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card + .card { margin-top: 12px; }
.card h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.5; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--accent-line); box-shadow: 0 4px 16px rgba(4,120,87,.10); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.notice { border-radius: var(--radius); padding: 14px 18px; margin: 0 0 20px; font-size: 15px; }
.notice-ok { background: var(--ok-soft); color: #065f46; }
.notice-warn { background: var(--warn-soft); color: #92400e; }
.input-code { font-size: 28px; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
.notice-info { background: var(--accent-soft); color: var(--accent-dark); }

.progress { height: 8px; background: #eef0f4; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand-gradient); border-radius: 99px; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--sub); margin-top: 6px; }

.tag { display: inline-block; font-size: 12px; padding: 1px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--sub); }
.tag-ok { background: var(--ok-soft); color: var(--ok); border-color: #a7f3d0; }
.tag-warn { background: var(--warn-soft); color: var(--warn); border-color: #fde68a; }
.tag-danger { background: #fff1f2; color: var(--danger); border-color: #fecdd3; }

.field { display: block; margin: 0 0 14px; }
.field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; font: inherit; padding: 11px 14px; border: 1px solid #d1d5db; border-radius: 10px; }
.field input:focus { outline: 2px solid var(--accent-line); border-color: var(--accent); }

/* ===== 紹介ページ ===== */
.hero { padding: 24px 0 8px; }
.hero .eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.hero h1 { font-size: 34px; margin: 8px 0 14px; }
.hero .lead { font-size: 17px; color: #374151; max-width: 640px; }
.price { margin: 20px 0; display: flex; align-items: baseline; gap: 8px; }
.price strong { font-size: 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.feature-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.feature-list li b { display: block; }
@media (max-width: 600px) { .hero h1 { font-size: 27px; } .price strong { font-size: 30px; } }

/* ===== 大学への案内 ===== */
.upsell { border: 1px solid var(--accent-line); background: linear-gradient(135deg, var(--accent-soft), #fff); border-radius: var(--radius); padding: 18px 20px; margin-top: 28px; }
.upsell h3 { margin: 0 0 6px; font-size: 16px; color: var(--accent-dark); }
.upsell p { margin: 4px 0 12px; font-size: 14px; color: #374151; }
.upsell .note { font-size: 12.5px; color: var(--sub); margin-top: 10px; }

/* ===== コース・講義の一覧 ===== */
.dept-head { display: flex; align-items: center; gap: 10px; margin: 32px 0 12px; }
.dept-head h2 { margin: 0; font-size: 19px; }
.lesson-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lesson-list li + li { border-top: 1px solid var(--line); }
.lesson-list a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; text-decoration: none; color: var(--text); }
.lesson-list a:hover { background: var(--surface); }
.lesson-list .num { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--sub); font-weight: 700; }
.lesson-list .done .num { background: var(--ok); border-color: var(--ok); color: #fff; }
.breadcrumb { font-size: 13px; color: var(--sub); margin-bottom: 8px; }
.breadcrumb a { color: var(--sub); }

/* ===== 講義ページ ===== */
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 13.5px; border-left: 2px solid var(--line); padding-left: 14px; max-height: calc(100vh - 110px); overflow: auto; }
.toc p { font-weight: 700; margin: 0 0 6px; color: var(--sub); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 4px 0; line-height: 1.5; }
.toc li.l3 { padding-left: 12px; font-size: 13px; }
.toc a { color: var(--sub); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.toc-mobile { display: none; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.toc-mobile summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.toc-mobile ol { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
.toc-mobile li { margin: 6px 0; }
.toc-mobile li.l3 { padding-left: 14px; }
@media (max-width: 960px) {
  .lesson-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-mobile { display: block; }
}
.lesson-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 36px 0 0; padding: 20px; background: var(--surface); border-radius: var(--radius); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pager a { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--text); font-size: 14px; }
.pager a small { display: block; color: var(--sub); font-size: 12px; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

/* 本文（大学サイトの見た目に合わせる） */
.prose { font-size: 16.5px; line-height: 1.95; overflow-wrap: anywhere; }
.prose h1 { font-size: 26px; margin: 8px 0 20px; }
.prose h2 { font-size: 22px; margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--line); line-height: 1.5; scroll-margin-top: 80px; }
.prose h3 { font-size: 18.5px; margin: 32px 0 12px; line-height: 1.5; scroll-margin-top: 80px; }
.prose h4 { font-size: 16.5px; margin: 24px 0 8px; }
.prose p { margin: 14px 0; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin: 6px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.prose img { display: block; margin: 20px auto; border-radius: 8px; border: 1px solid var(--line); }
.prose strong { font-weight: 700; }
.prose a.anchor { display: none; }
.prose h2 > a[aria-hidden], .prose h3 > a[aria-hidden] { display: none; }
.prose .table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose .inline-code { padding: 2px 6px; border-radius: 5px; background: #f3f4f6; color: #be185d; font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.prose .ext { font-size: 11px; opacity: .6; margin-left: 2px; }
.prose .codeblock { position: relative; margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; background: #f6f8fa; overflow: hidden; }
.prose .codeblock pre { margin: 0; padding: 38px 16px 16px; overflow-x: auto; font-size: 14px; line-height: 1.7; background: transparent !important; }
.prose .codeblock code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.prose .codeblock .lang { position: absolute; top: 10px; left: 12px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #4b5563; background: rgba(229,231,235,.85); padding: 1px 8px; border-radius: 4px; font-family: ui-monospace, Menlo, monospace; }
.prose .codeblock .copy-btn { position: absolute; top: 8px; right: 8px; font-size: 12px; padding: 3px 10px; border-radius: 6px; border: 0; background: #374151; color: #e5e7eb; cursor: pointer; font-family: inherit; }
.prose .callout { border-left: 4px solid #9ca3af; background: #f9fafb; border-radius: 0 10px 10px 0; padding: 12px 18px; margin: 18px 0; }
.prose .callout-label { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 2px; }
.prose .callout-label .icon { font-size: 18px; }
.prose .callout-body > p { margin: 4px 0; }
.prose .callout-point { background: #ecfdf5; border-color: #10b981; } .prose .callout-point .callout-label { color: #065f46; }
.prose .callout-warn { background: #fff1f2; border-color: #f43f5e; } .prose .callout-warn .callout-label { color: #9f1239; }
.prose .callout-tip { background: #fdf2f8; border-color: #ec4899; } .prose .callout-tip .callout-label { color: #9d174d; }
.prose .callout-reason { background: #fffbeb; border-color: #fcd34d; } .prose .callout-reason .callout-label { color: #92400e; }
.prose .callout-info { background: #f0f9ff; border-color: #0ea5e9; } .prose .callout-info .callout-label { color: #075985; }
.prose .callout-default .callout-label { color: #374151; }
.prose .soft-quote { background: rgba(238,242,255,.6); border-left: 4px solid #a5b4fc; border-radius: 0 10px 10px 0; padding: 10px 18px; margin: 16px 0; color: #374151; }
.prose .soft-quote > p { margin: 4px 0; }

/* ===== 月末配信 ===== */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* a.card（display: block）より強く効かせる。弱いと横に並ばず、サムネイルの枠の幅が 0 になって見えない */
a.card.bc-item, .card.bc-item { display: flex; gap: 14px; align-items: center; }
.bc-thumb { display: block; flex: none; width: 128px; aspect-ratio: 16/9; border-radius: 8px; background: #e5e7eb center/cover no-repeat; }
@media (max-width: 480px) { .bc-thumb { width: 96px; } }

/* ===== 管理 ===== */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 20px; }
.admin-tabs a { text-decoration: none; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--sub); font-size: 14px; }
.admin-tabs a[aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.data th { background: var(--surface); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.stat b { display: block; font-size: 24px; color: var(--accent); }
.stat span { font-size: 13px; color: var(--sub); }

/* ===== ホームの見出しパネル ===== */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 28px; border-radius: 20px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(124,58,237,.35) 0%, rgba(124,58,237,0) 55%), linear-gradient(120deg, #065f46 0%, #047857 45%, #1d4ed8 100%);
  box-shadow: 0 10px 30px rgba(6,95,70,.25); }
.home-hero-eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; opacity: .85; }
.home-hero-title { margin: 6px 0 4px; font-size: 21px; line-height: 1.5; }
.home-hero-course { margin: 0 0 16px; font-size: 13px; opacity: .85; }
.home-hero-progress { text-align: center; }
.home-hero-progress p { margin: 8px 0 0; font-size: 13px; opacity: .9; }
.ring { --pct: 0; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto;
  background: conic-gradient(#a7f3d0 calc(var(--pct) * 1%), rgba(255,255,255,.18) 0); }
.ring span { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 22px; gap: 1px; background: rgba(6,78,59,.55); white-space: nowrap; }
.ring small { font-size: 13px; font-weight: 700; }
.ring b { font-size: 26px; }
@media (max-width: 600px) {
  .home-hero { grid-template-columns: 1fr; padding: 22px 20px; text-align: left; }
  .home-hero-progress { display: flex; align-items: center; gap: 14px; text-align: left; }
  .home-hero-progress .ring { width: 72px; height: 72px; margin: 0; }
  .ring span { width: 56px; height: 56px; padding-top: 15px; }
  .ring b { font-size: 18px; }
  .home-hero-progress p { margin: 0; }
}

/* ===== LP と同じ見た目の部品（申込・ログイン） ===== */
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.btn-grad { background: var(--brand-gradient); color: #fff; box-shadow: 0 8px 22px rgba(37,99,235,.25); border-radius: 999px; }
.btn-grad:hover { filter: brightness(1.06); }
.card-feature { position: relative; border: 0; border-radius: 24px; padding: 28px 24px; box-shadow: 0 20px 50px rgba(29,78,216,.12); }
.card-feature::before { content: ""; position: absolute; inset: 0; padding: 2.5px; border-radius: 24px; background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.price-grad strong { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 44px; font-weight: 900; }
.check-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 600; }
.check-list li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; flex: none; }

/* 定期購入の条件の表（申込画面） */
.terms-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0 0 14px; }
.terms-table th, .terms-table td { padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
.terms-table th { width: 7.5em; color: var(--sub); font-weight: 600; white-space: nowrap; }

/* キーボードで操作する人向け: Tab を押したときだけ出る「本文へ移動」 */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 8px; }
.lesson-done { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 28px; }

.card-title { margin: 0 0 6px; font-size: 17px; line-height: 1.5; }
.card-title-note { display: block; font-size: 15px; }

/* はじめての方へ（ホーム・まだ講義を開いていない人だけ） */
.guide { margin-top: 20px; border-color: var(--accent-line); background: linear-gradient(180deg, #fff, var(--accent-soft)); }
.guide-title { margin: 0 0 10px; font-size: 17px; }
.guide-steps { margin: 0; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 10px; }
.guide-steps li { counter-increment: g; position: relative; padding-left: 40px; display: grid; gap: 2px; }
.guide-steps li::before { content: counter(g); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; background: var(--brand-gradient); }
.guide-steps b { font-size: 15.5px; }
.guide-steps span { font-size: 14px; color: var(--sub); }
.bc-item b, .card h3 { word-break: keep-all; overflow-wrap: anywhere; }

/* 最終確認画面 */
.join-auto { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: #92400e; font-weight: 700; font-size: 14.5px; }
.join-form { margin-top: 6px; }
.agree { display: flex; gap: 10px; align-items: flex-start; padding: 12px; margin: 0 0 12px; border: 1.5px solid var(--accent-line); border-radius: 12px; background: var(--accent-soft); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.agree input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.join-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 14px 0 0; font-size: 14px; }
.join-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* 法務のページ（public/legal/*.html。scripts/build-legal.mjs が作る） */
.legal .table-wrap th { white-space: normal; min-width: 6.5em; }


/* =====================================================================
   会員ページの見た目 v2（2026-10-27 オーナーの指摘：色が足りない・押せるか／読み込み中か分からない）
   ===================================================================== */
:root {
  --page: #f4f6fb;
  --ring-focus: rgba(37, 99, 235, .55);
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .05), 0 2px 8px rgba(15, 23, 42, .05);
  --shadow-2: 0 10px 28px rgba(15, 23, 42, .12);
}
body.has-tabbar {
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(16, 185, 129, .12), transparent 60%),
    radial-gradient(900px 420px at 100% -10%, rgba(124, 58, 237, .10), transparent 60%),
    var(--page);
  background-attachment: fixed;
}
body.has-tabbar .site-header { background: rgba(255, 255, 255, .9); }
body.has-tabbar .card { box-shadow: var(--shadow-1); border-color: #e6e9f0; }

/* ナビ：今いる画面を色で */
.nav a { transition: background-color .15s, color .15s; font-weight: 600; }
.nav a[aria-current="page"] { color: #fff; background: var(--brand-gradient); box-shadow: 0 4px 12px rgba(37, 99, 235, .25); }
@media (max-width: 760px) {
  .tabbar { box-shadow: 0 -6px 20px rgba(15, 23, 42, .06); }
  .tabbar a { position: relative; transition: color .15s; font-weight: 600; }
  .tabbar a .ico { display: grid; place-items: center; width: 40px; height: 28px; border-radius: 999px; transition: background-color .15s; }
  .tabbar a[aria-current="page"] { color: #1d4ed8; }
  .tabbar a[aria-current="page"] .ico { background: linear-gradient(100deg, rgba(5, 150, 105, .16), rgba(37, 99, 235, .16), rgba(124, 58, 237, .16)); }
}
.ico-svg { display: block; flex: none; }

/* ボタン：触れる・押した・選んだ・読み込み中が分かるように */
.btn { position: relative; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, filter .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(4, 120, 87, .3); }
.btn-grad:hover { box-shadow: 0 12px 28px rgba(37, 99, 235, .35); }
.btn-ghost:hover { border-color: #c7d2fe; color: #1d4ed8; background: #f5f7ff; }
.btn-light:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.btn[disabled], .btn[aria-busy="true"] { cursor: progress; }
.btn.is-loading { opacity: .88; pointer-events: none; transform: none; }
.btn.is-loading::before {
  content: ""; width: 1em; height: 1em; border-radius: 50%; flex: none;
  border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn:focus-visible, a.card:focus-visible, .course-card:focus-visible, .stat-tile:focus-visible, .nav a:focus-visible, .tabbar a:focus-visible, .lesson-list a:focus-visible {
  outline: 3px solid var(--ring-focus); outline-offset: 2px;
}

/* 画面を移るあいだの線（public/app.js） */
.nav-progress { position: fixed; top: 0; left: 0; z-index: 200; height: 3px; width: 0; opacity: 0; pointer-events: none;
  background: var(--brand-gradient); box-shadow: 0 0 10px rgba(37, 99, 235, .55); transition: opacity .2s; }
html.is-navigating .nav-progress { opacity: 1; animation: navp 6s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes navp { 0% { width: 0; } 15% { width: 40%; } 100% { width: 92%; } }
html.is-navigating, html.is-navigating a { cursor: progress; }

/* カード：触れると浮く */
a.card { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: #c7d2fe; }

/* ホーム：あいさつ */
.home-greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.home-greet h1 { margin: 0; font-size: 26px; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-greet .muted { margin: 2px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.chip-trial { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ホーム：続きから */
.home-hero { position: relative; overflow: hidden; padding: 30px 32px; border-radius: 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(124, 58, 237, .45) 0%, rgba(124, 58, 237, 0) 55%),
    radial-gradient(80% 120% at 0% 100%, rgba(16, 185, 129, .35) 0%, rgba(16, 185, 129, 0) 60%),
    linear-gradient(120deg, #064e3b 0%, #047857 40%, #1d4ed8 100%);
  box-shadow: 0 18px 40px rgba(29, 78, 216, .22); }
.home-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 36px solid rgba(255, 255, 255, .06); pointer-events: none; }
.home-hero-eyebrow { display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); opacity: 1; }
.home-hero-title { font-size: 23px; }
.home-hero .btn-light { color: #065f46; font-weight: 800; }
.ring { width: 116px; height: 116px; background: conic-gradient(#34d399 0%, #60a5fa calc(var(--pct) * .6%), #c4b5fd calc(var(--pct) * 1%), rgba(255, 255, 255, .18) 0); }
.ring span { width: 90px; height: 90px; padding-top: 26px; background: rgba(6, 40, 60, .55); }
@media (max-width: 600px) {
  .home-hero-progress .ring { width: 76px; height: 76px; }
  .home-hero-progress .ring span { width: 58px; height: 58px; padding-top: 14px; }
  .home-hero-progress .ring b { font-size: 19px; }
}

/* ホーム：数字のタイル */
.stat-tiles { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-tiles > li { display: flex; }
.stat-tiles > li.stat-tile { display: grid; }
.stat-tile { flex: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid #e6e9f0; box-shadow: var(--shadow-1);
  text-decoration: none; color: var(--text); position: relative; overflow: hidden; }
.stat-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c1); }
a.stat-tile { transition: transform .15s ease, box-shadow .15s ease; }
a.stat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.stat-ico { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--c1); }
.stat-label { font-size: 12.5px; color: var(--sub); font-weight: 600; line-height: 1.4; }
.stat-tile b { font-size: 24px; line-height: 1.3; color: var(--c1); font-weight: 900; }
.stat-tile b small { font-size: 13px; color: var(--sub); font-weight: 700; }
.stat-tile b.stat-date { font-size: 18px; }
@media (max-width: 860px) { .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .stat-tile { padding: 12px; column-gap: 10px; border-radius: 14px; }
  .stat-ico { width: 34px; height: 34px; border-radius: 10px; }
  .stat-tile b { font-size: 21px; }
  .stat-tile b.stat-date { font-size: 15.5px; }
  .stat-label { font-size: 12px; }
}

/* 見出しと「すべて見る」 */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 12px; }
.sec-head h2 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.sec-head h2::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: var(--brand-gradient); }
.sec-head a { font-size: 14px; font-weight: 700; text-decoration: none; }
.sec-head a:hover { text-decoration: underline; }

/* コースのカード（学部ごとの色） */
.course-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.course-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; border-radius: 18px; background: #fff; text-decoration: none; color: var(--text);
  border: 1px solid #e6e9f0; box-shadow: var(--shadow-1); position: relative; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.course-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--c2); }
.course-dept { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--c1); }
.course-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--soft); color: var(--c1); }
.course-card h3 { margin: 0; font-size: 17px; line-height: 1.5; }
.course-foot { margin-top: auto; padding-top: 6px; display: grid; gap: 6px; }
.course-bar { display: block; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.course-bar > span { display: block; height: 100%; min-width: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.course-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--sub); }
.course-go { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--c1); transition: gap .15s ease; }
.course-card:hover .course-go { gap: 8px; }

/* 進み具合の棒（ほかの画面） */
.progress { background: #e8ecf5; }

/* 月末配信：リアル参加 */
.live-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 0 0 18px; padding: 20px 22px; border-radius: 20px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(100deg, #f43f5e, #f59e0b, #7c3aed) border-box; border: 2px solid transparent; box-shadow: 0 12px 30px rgba(244, 63, 94, .12); }
.live-card-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 800; color: #be123c; letter-spacing: .03em; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #f43f5e; box-shadow: 0 0 0 0 rgba(244, 63, 94, .6); }
.live-card.is-on-air .live-dot { animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, .6); } 100% { box-shadow: 0 0 0 10px rgba(244, 63, 94, 0); } }
.live-card-title { margin: 4px 0 2px; font-size: 20px; }
.live-card-when { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 700; color: #374151; }
.live-card-note { margin: 6px 0 0; font-size: 14px; color: var(--sub); }
.live-card-action { text-align: center; max-width: 260px; }
.live-card-small { margin: 8px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--sub); }
.btn-live { color: #fff; border-radius: 999px; padding: 13px 24px; font-size: 16px; background: linear-gradient(100deg, #e11d48, #f59e0b); box-shadow: 0 10px 24px rgba(225, 29, 72, .3); }
.btn-live:hover { filter: brightness(1.05); box-shadow: 0 14px 30px rgba(225, 29, 72, .38); }
@media (max-width: 640px) { .live-card { grid-template-columns: 1fr; } .live-card-action { max-width: none; text-align: left; } .btn-live { width: 100%; } }

/* 月末配信：最新の 1 本（再生の印） */
.bc-thumb { position: relative; }
.bc-feature .bc-thumb { width: 200px; }
.bc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(15, 23, 42, .65); color: #fff; transition: transform .15s ease, background-color .15s ease; }
a.card:hover .bc-play { transform: translate(-50%, -50%) scale(1.1); background: #e11d48; }
@media (max-width: 480px) { .bc-feature .bc-thumb { width: 120px; } .bc-play { width: 34px; height: 34px; } }

/* 動きを減らす設定の人には、動かさない */
@media (prefers-reduced-motion: reduce) {
  .btn, a.card, .course-card, a.stat-tile, .bc-play { transition: none; }
  .btn:hover, .btn:active, a.card:hover, .course-card:hover, a.stat-tile:hover { transform: none; }
  html.is-navigating .nav-progress { animation: none; width: 70%; }
  .live-card.is-on-air .live-dot { animation: none; }
}
.course-desc { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dept-title::before { background: linear-gradient(180deg, var(--c1), var(--c2)) !important; }
.join-once { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #f5f7ff; border: 1px solid #dbe3ff; font-size: 13.5px; line-height: 1.7; color: #374151; }

/* ===== デジイナAI大学（Cloudflare 版）で足した見た目 ===== */
/* 下のタブが 6 つのとき */
@media (max-width: 760px) {
  .tabbar.tabbar-6 { grid-template-columns: repeat(6, 1fr); }
  .tabbar.tabbar-6 a { font-size: 10px; }
}
/* 戻るリンク */
.backlink { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--sub); font-size: 14px; margin: 4px 0 12px; }
.backlink:hover { color: var(--accent); }
/* 学部カード */
.dept-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 8px 0 28px; }
.dept-card { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 18px; border-radius: 18px; text-decoration: none; color: var(--text);
  background: linear-gradient(135deg, var(--soft), #fff 60%); border: 1px solid #e6e9f0; box-shadow: var(--shadow-1); position: relative; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease; }
.dept-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.dept-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.dept-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; border: 1px solid #e6e9f0; font-size: 28px; }
.dept-body { min-width: 0; }
.dept-body h3 { margin: 4px 0 2px; font-size: 18px; line-height: 1.4; }
.dept-body p { margin: 0 0 8px; color: var(--sub); font-size: 13.5px; line-height: 1.6; }
.dept-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dept-tags .step, .dept-hero .step { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #fff; background: linear-gradient(90deg, var(--c1), var(--c2)); padding: 2px 8px; border-radius: 999px; }
.dept-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dept-foot .course-bar { flex: 1 1 120px; }
.dept-foot .course-go { margin-left: auto; color: var(--c1); }
/* 学部の見出し */
.dept-hero { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 20px; margin: 0 0 20px; border-radius: 20px;
  background: linear-gradient(135deg, var(--soft), #fff 70%); border: 1px solid #e6e9f0; }
.dept-hero-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #fff; border: 1px solid #e6e9f0; font-size: 32px; }
.dept-hero h1 { margin: 6px 0 4px; font-size: 24px; }
.dept-hero .lead { margin: 0 0 6px; color: var(--text); }
.dept-hero .muted { margin: 0; }
@media (max-width: 480px) { .dept-hero { grid-template-columns: 1fr; } .dept-hero-ico { width: 52px; height: 52px; font-size: 26px; } .dept-hero h1 { font-size: 21px; } }
.sec-head .dept-title a { color: var(--c1, var(--accent)); text-decoration: none; }
/* Q&A 集 */
.faq-toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 20px; }
.faq-toc > p { margin: 0 0 8px; font-weight: 700; font-size: 14px; }
.faq-toc > div { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.faq-toc a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.faq-toc a small { margin-left: auto; color: var(--sub); }
.faq-section { margin: 0 0 28px; scroll-margin-top: 80px; }
.faq-section > header { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; }
.faq-section > header h2 { margin: 0; font-size: 20px; }
.faq-section > header p { margin: 2px 0 0; }
.faq-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c1, var(--accent)); color: #fff; font-weight: 800; flex: none; }
.faq-card { background: #fff; border: 1px solid #e6e9f0; border-radius: 14px; padding: 14px 16px; margin: 0 0 10px; box-shadow: var(--shadow-1); scroll-margin-top: 80px; }
.faq-q { display: flex; gap: 10px; align-items: flex-start; }
.faq-q h3 { margin: 2px 0 0; font-size: 16px; line-height: 1.6; }
.faq-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--c1, var(--accent)); color: #fff; font-weight: 800; flex: none; }
.faq-a { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.faq-amark { color: var(--c1, var(--accent)); font-weight: 800; flex: none; width: 28px; text-align: center; }
.faq-body { min-width: 0; flex: 1; max-width: 100%; }
.faq-body p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.faq-card, .faq-q h3, .faq-section > header h2, .faq-toc a span { overflow-wrap: anywhere; min-width: 0; }
.faq-body img { display: block; margin: 12px 0 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.faq-foot { margin-top: 8px; }
/* 記事カード（受講生のリアルな質問） */
.article-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.article-card { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 6px; }
.article-card h3 { margin: 0; font-size: 16px; line-height: 1.55; flex: 1; }
.article-card .course-go { color: var(--accent); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
/* 配信のタブ・一覧 */
.stream-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.stream-tabs a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.stream-tabs a small { color: var(--sub); font-weight: 600; }
.stream-tabs a[aria-current="page"] { color: #fff; border-color: transparent; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.stream-tabs a[aria-current="page"] small { color: rgba(255,255,255,.85); }
.stream-list { display: grid; gap: 10px; }
.bc-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 4px; font-size: 13px; }
.bc-text b { display: block; line-height: 1.5; }
/* リンク集 */
.res-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 0 0 22px; }
.res-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e9f0; border-radius: 16px; box-shadow: var(--shadow-1); overflow: hidden; }
.res-main { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px; text-decoration: none; color: var(--text); flex: 1; }
.res-main:hover { background: var(--soft, var(--surface)); }
.res-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soft, var(--surface)); font-size: 22px; }
.res-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.res-text b { line-height: 1.5; }
.res-text small { color: var(--sub); font-size: 13px; line-height: 1.5; }
.res-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.res-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--surface); }
.res-pin { display: flex; margin: 0; }
.res-pin .btn { display: inline-flex; align-items: center; gap: 4px; }
.res-pin .btn.is-pinned { color: var(--c1, var(--accent)); border-color: var(--c1, var(--accent)); background: #fff; }
/* 新着 */
.news { margin: 18px 0 8px; }
.news h2 { font-size: 18px; margin: 0 0 8px; }
.news ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.news li > a, .news li > div { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #e6e9f0; text-decoration: none; color: var(--text); }
.news li > a:hover { background: var(--surface); }
.news-badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface); white-space: nowrap; }
.news-announce { background: #fff7ed; color: #c2410c; }
.news-lesson { background: #ecfdf5; color: #047857; }
.news-stream { background: #fff1f2; color: #be123c; }
.news-text { min-width: 0; display: flex; flex-direction: column; }
.news-text b { font-size: 14.5px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; }
.news-text small { color: var(--sub); font-size: 12.5px; }
.news-date { white-space: nowrap; font-size: 12.5px; }
@media (max-width: 480px) { .news li > a, .news li > div { grid-template-columns: 1fr auto; } .news-badge { grid-column: 1 / -1; justify-self: start; } }
/* 講義の書き足し */
.addenda { margin-top: 28px; }
.addendum { padding: 14px 16px; border: 1px solid #fde68a; background: #fffbeb; border-radius: 14px; margin: 0 0 14px; }
/* 管理画面の小物 */
.admin-tabs { flex-wrap: wrap; }
.data select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.data td code { font-size: 12px; background: var(--surface); padding: 2px 6px; border-radius: 6px; }
.field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.eyebrow { font-size: 12px; letter-spacing: .1em; color: var(--sub); font-weight: 700; margin: 0 0 6px; }
/* 入口（ログイン前） */
.landing { text-align: center; padding: 40px 0 20px; }
.landing h1 { font-size: 30px; margin: 10px 0 8px; }
.landing .lead { color: var(--sub); margin: 0 0 20px; }
.landing-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); text-align: left; margin: 24px 0; }

/* ===== 第2段階（2026-11）: コメント欄・領収書・アンケート・ポイント ===== */
.comments { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.comments h2 { font-size: 20px; margin: 0 0 4px; }
.comment-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 12px; }
.comment { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: #fff; }
.comment-hidden { opacity: .65; border-style: dashed; }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.comment-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; }
.comment-body { margin: 8px 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.7; }
.comment-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.comment-form { margin-top: 12px; }
.link-row { display: flex; gap: 8px; flex-wrap: wrap; }
.receipt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.receipt { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.receipt-main { min-width: 0; }
.receipt-main b { font-size: 18px; }
.receipt-main .muted { font-size: 13px; overflow-wrap: anywhere; }
.survey-prompt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.survey-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.survey-form { display: grid; gap: 18px; }
.survey-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0; background: #fff; min-width: 0; }
.survey-q legend { font-weight: 700; padding: 0 6px; font-size: 16px; }
.survey-num { color: var(--accent); margin-right: 4px; }
.survey-help { margin: 4px 0 10px; font-size: 14px; }
.scale { display: grid; gap: 6px; }
.scale-row { display: flex; gap: 4px; flex-wrap: wrap; }
.scale-row label { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; min-width: 32px; padding: 6px 2px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.scale-row label:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); }
.scale-row input { margin: 0; }
.scale-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--sub); }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; cursor: pointer; }
.choice input { margin-top: 4px; flex: none; }
.survey-q textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; box-sizing: border-box; }
.points-balance { font-size: 32px; font-weight: 800; }
.bar { height: 10px; background: var(--accent); border-radius: 5px; min-width: 2px; }
.dist { display: grid; grid-template-columns: 2.5em 1fr 3em; gap: 6px 8px; align-items: center; font-size: 13px; }
.dist-labels { grid-template-columns: minmax(6em, 14em) 1fr 3em; }
.dist-labels > span:first-child, .dist-labels > span:nth-child(3n+1) { overflow-wrap: anywhere; }
.survey-select { width: 100%; max-width: 420px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }

/* ===== 新カリキュラム（57 の教材）。中身の見た目は /nc/assets/nc-*.css（取り込みが作る・囲みの中だけに効く） ===== */
.pager[hidden] { display: none; }
.nc-preview-notice { margin: 0 0 16px; }
.nc-video { margin: 0 0 22px; }
.nc-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0f172a; border-radius: var(--radius); }
.nc-video figcaption { margin-top: 6px; color: var(--sub); font-size: 13px; }
.nc-body { min-width: 0; }
.nc-body .nc-doc, .nc-body .nc-page { background: transparent; }
.nc-body .nc-ep-head h1, .nc-body .nc-page h1 { margin-top: 0; }
.nc-body .nc-video { margin: 4px 0 24px; }
.vis-cell { min-width: 190px; }
.vis-cell form { display: block; margin-top: 6px; }

/* ===== 配布ツール一覧・クイックリンク（2026-11-06） ===== */
a.card.jump-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); border-color: color-mix(in srgb, var(--c1, #4338ca) 25%, #fff); background: #fff; padding: 14px 16px; margin: 14px 0 22px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.card.jump-card:hover { transform: translateY(-2px); border-color: var(--c1, #4338ca); box-shadow: var(--shadow-2); }
a.card.jump-card:focus-visible { outline: 3px solid var(--c1, #4338ca); outline-offset: 2px; }
.jump-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--soft, #eef2ff); }
.jump-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jump-text b { font-size: 15px; line-height: 1.5; }
.jump-text small { font-size: 13px; color: var(--sub); }
.jump-arrow { flex: none; color: var(--c1, #4338ca); font-weight: 800; }
.quick-links { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.quick-links > li { display: flex; }
.quick-links a.card.jump-card { flex: 1; margin: 0; }
.quick-links .card + .card { margin-top: 0; }
@media (max-width: 1100px) { .quick-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .quick-links { grid-template-columns: 1fr; } }
.empty-card { text-align: center; border-style: dashed; padding: 32px 20px; margin: 16px 0 8px; }
.empty-card p { margin: 4px 0; }
.empty-ico { font-size: 44px; line-height: 1.2; }
.empty-card .small { font-size: 12px; margin-top: 14px; }
.tools-sec { margin: 6px 0 30px; }
.tools-lead { margin: -2px 0 12px; }

/* ===== 動画の目次と視聴の記録（src/views/video.tsx・public/video.js） =====
   新カリキュラムの本文（.nc-doc）の中にも置くので、.vp から始めて、要素ではなく class で書く */
.vp { margin: 0 0 22px; }
.vp .vp-screen { margin: 0; }
.vp .vp-screen video { position: absolute; inset: 0; width: 100%; height: 100%; background: #0f172a; }
.vp .vp-note { margin: 6px 0 0; color: var(--sub); font-size: 13px; }
.vp .vp-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.vp .vp-meter { flex: 1 1 140px; min-width: 120px; max-width: 260px; height: 8px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.vp .vp-meter > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s ease; }
.vp .vp-stat { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; font-size: 14px; color: var(--sub); line-height: 1.6; }
.vp .vp-stat b { color: var(--text); font-size: 15px; }
.vp .vp-sep::before { content: "・"; margin-right: 4px; color: #cbd5e1; }
.vp .vp-done { color: var(--ok); font-weight: 700; }
.vp .vp-done[hidden] { display: none; }
.vp .vp-resume { margin-left: auto; }
.vp .vp-toc { margin: 16px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.vp .vp-h { margin: 0; padding: 12px 16px 0; border: 0; font-size: 17px; line-height: 1.5; letter-spacing: 0; color: var(--text); }
.vp .vp-count { display: inline-block; min-width: 24px; margin-left: 4px; padding: 0 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 700; text-align: center; vertical-align: 2px; }
.vp .vp-hint { margin: 2px 0 8px; padding: 0 16px; color: var(--sub); font-size: 13px; line-height: 1.6; }
.vp .vp-draft { display: block; color: #92400e; font-size: 12px; }
.vp .vp-key-ex { display: inline-block; padding: 0 6px; border-radius: 6px; background: #fff7ed; color: #c2410c; font-size: 11px; font-weight: 700; border: 1px solid #fed7aa; line-height: 1.6; }
.vp .vp-list { list-style: none; margin: 0; padding: 0 0 6px; counter-reset: none; }
.vp .vp-list.is-long { max-height: 28rem; overflow-y: auto; overscroll-behavior: contain; }
.vp .vp-item { margin: 0; padding: 0; border-top: 1px solid #f1f5f9; }
.vp .vp-ch { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: start; gap: 2px 12px; padding: 10px 16px 12px; color: var(--text); text-decoration: none; line-height: 1.55; }
.vp .vp-ch:hover { background: #f8fafc; }
.vp .vp-ch:focus-visible { outline: 3px solid #e5a800; outline-offset: -3px; }
.vp .vp-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); font-size: 14px; padding-top: 1px; }
.vp .vp-title { font-size: 15px; overflow-wrap: anywhere; }
.vp .vp-key { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 6px; background: #fff7ed; color: #c2410c; font-size: 11px; font-weight: 700; border: 1px solid #fed7aa; vertical-align: 1px; line-height: 1.6; }
.vp .vp-ch.is-key .vp-title { font-weight: 700; }
.vp .vp-here { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: #eff6ff; color: #1d4ed8; font-size: 11px; font-weight: 700; border: 1px solid #bfdbfe; vertical-align: 1px; line-height: 1.6; }
.vp .vp-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0; font-size: 12px; color: var(--sub); white-space: nowrap; padding-top: 2px; }
.vp .vp-mark { color: var(--sub); min-height: 1em; }
.vp .vp-ch.is-seen .vp-mark { color: var(--ok); font-weight: 700; }
.vp .vp-chbar { position: absolute; left: 16px; right: 16px; bottom: 5px; height: 3px; border-radius: 99px; background: transparent; overflow: hidden; }
.vp .vp-chbar > span { display: block; height: 100%; background: #6ee7b7; border-radius: 99px; }
.vp .vp-ch.is-seen .vp-chbar > span { background: var(--accent); }
/* 今見ている目次 */
.vp .vp-ch.is-now { background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent); }
.vp .vp-ch.is-now .vp-time::after { content: " ▶"; font-size: 10px; vertical-align: 1px; }
@media (max-width: 600px) {
  .vp .vp-status { padding: 10px 12px; }
  .vp .vp-meter { max-width: none; flex-basis: 100%; }
  .vp .vp-resume { margin-left: 0; width: 100%; text-align: center; }
  .vp .vp-ch { grid-template-columns: 56px minmax(0, 1fr); padding: 10px 12px 12px; }
  .vp .vp-side { grid-column: 2; flex-direction: row; gap: 10px; align-items: center; padding-top: 0; }
  .vp .vp-chbar { left: 12px; right: 12px; }
  .vp .vp-h { padding: 12px 12px 0; }
  .vp .vp-hint { padding: 0 12px; }
}
/* 一覧のカードの、見た割合の細い線 */
.vp-line { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--sub); }
.vp-line-bar { flex: 0 1 120px; height: 5px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.vp-line-bar > span { display: block; height: 100%; background: #34d399; border-radius: 99px; }
.vp-line.is-done { color: var(--ok); font-weight: 700; }
.vp-line.is-done .vp-line-bar > span { background: var(--accent); }
/* 管理画面の分析 */
.va-bar { display: block; height: 10px; border-radius: 99px; background: #e2e8f0; overflow: hidden; min-width: 80px; }
.va-bar > span { display: block; height: 100%; background: var(--accent); }
.va-bar.is-click > span { background: #f59e0b; }
.va-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.va-key { color: #c2410c; font-weight: 700; }
.va-help { color: var(--sub); font-size: 13px; }
.va-text { width: 100%; min-height: 260px; font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.7; }
.va-errors { margin: 8px 0; padding-left: 1.2em; color: var(--danger); font-size: 14px; }

/* ===== レベルと課題（2026-11-10） ===== */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.field select { max-width: 100%; }
.tag-wait { background: var(--warn-soft); color: #92400e; border-color: #fde68a; }
.tag-back { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.tag-req { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.level-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin: 0 0 20px; border-radius: 18px; color: #fff;
  background: linear-gradient(110deg, #065f46 0%, #047857 45%, #1d4ed8 100%); box-shadow: 0 6px 20px rgba(4,120,87,.18); }
.level-badge { flex: none; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.level-badge small { font-size: 11px; letter-spacing: .08em; opacity: .9; }
.level-badge b { font-size: 26px; }
.level-main { flex: 1; min-width: 0; }
.level-title { margin: 0 0 8px; font-weight: 700; font-size: 16px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.level-xp { font-size: 14px; font-weight: 600; opacity: .95; }
.level-card .progress { background: rgba(255,255,255,.25); }
.level-card .progress > span { background: #fff; }
.level-next { margin: 8px 0 0; font-size: 13px; opacity: .95; }
.level-link { flex: none; display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 640px) {
  .level-card { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .level-badge { width: 52px; height: 52px; }
  .level-badge b { font-size: 22px; }
  .level-link { width: 100%; justify-content: center; }
}
.earn-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.earn-list li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; font-size: 14px; }
.earn-list b { color: var(--accent); margin-right: 6px; }
.attend-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.attend-form .field { min-width: 200px; }
.level-sec { margin-top: 8px; }
.level-sec h2.section { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.perk-list { margin: 0 0 12px; padding-left: 1.3em; font-size: 14px; color: var(--accent-dark); }
a.card.mission-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.mission-row.is-done { background: var(--accent-soft); border-color: var(--accent-line); }
.mission-text { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mission-text b { overflow-wrap: anywhere; }
.mission-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.mission-pt { flex: none; font-weight: 700; color: var(--accent); white-space: nowrap; }
.reward-box { margin-top: 12px; border: 1px dashed var(--accent-line); border-radius: 14px; padding: 12px 16px; background: #fff; }
.reward-head { margin: 0 0 8px; font-weight: 700; font-size: 14px; }
.reward-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.reward-row:first-of-type { border-top: 0; }
details.card > summary { cursor: pointer; }
.check-line { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; font-size: 14px; }
.check-line input { margin-top: 4px; flex: none; }

/* ===== 見やすさ・読み込み中の見え方（2026-11-10） ===== */
/* 押したリンク（カード・一覧の行・メニュー）: 薄くして、くるくるを出す */
a.is-pending { opacity: .6; pointer-events: none; }
.course-card.is-pending::after, a.card.is-pending::after, a.stat-tile.is-pending::after, .dept-card.is-pending::after, .dept-start.is-pending::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid var(--accent); border-right-color: transparent; animation: spin .7s linear infinite; }
a.card.is-pending, a.stat-tile.is-pending, .dept-card.is-pending { position: relative; }
.lesson-list a.is-pending::after, .nc-doc a.nc-navbtn.is-pending::after, .pager a.is-pending::after {
  content: ""; flex: none; margin-left: auto; width: 16px; height: 16px; border-radius: 50%; display: inline-block; vertical-align: -3px;
  border: 2.5px solid var(--accent); border-right-color: transparent; animation: spin .7s linear infinite; }
.nc-doc a.nc-navbtn.is-pending::after { float: right; margin-top: 6px; }
/* 時間がかかるとき、画面の下に出す札 */
.nav-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); z-index: 210; display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 99px; background: rgba(17, 24, 39, .92); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
body.has-tabbar .nav-toast { bottom: 24px; }
@media (max-width: 760px) { body.has-tabbar .nav-toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
html.is-navigating-slow .nav-toast { opacity: 1; transform: translate(-50%, 0); }
.nav-toast-spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid #fff; border-right-color: transparent; animation: spin .7s linear infinite; }
/* 動画の読み込み中 */
.vp .vp-screen.is-buffering::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .9); border-right-color: transparent; animation: spin .8s linear infinite; pointer-events: none; }
/* 読み進みの線と「上へ」 */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150; pointer-events: none; background: transparent; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--brand-gradient); border-radius: 0 3px 3px 0; }
.to-top { position: fixed; right: 16px; bottom: 24px; z-index: 30; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--accent-dark);
  font-size: 20px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(15, 23, 42, .16); }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.to-top:focus-visible { outline: 3px solid var(--ring-focus); outline-offset: 2px; }
@media (max-width: 760px) { body.has-tabbar .to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
/* お知らせが出たことが分かるように */
.notice-flash, .lesson-done { animation: flash-in .5s ease; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 学部の画面: まずはここから・順番の数字 */
.dept-start { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 18px; padding: 16px 20px; border-radius: 18px; color: #fff; text-decoration: none;
  background: linear-gradient(110deg, #047857 0%, #0d9488 50%, #2563eb 100%); box-shadow: 0 8px 22px rgba(4, 120, 87, .2); }
.dept-start small { display: block; font-size: 13px; font-weight: 700; opacity: .92; letter-spacing: .04em; }
.dept-start b { display: block; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.dept-start .btn { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.course-step { flex: none; width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 800;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 3px 8px rgba(15, 23, 42, .15); }
.course-flag { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--c1); color: #fff; }
.course-flag.is-ok { background: var(--soft); color: var(--c1); border: 1px solid var(--c2); }
.course-card.is-next { border-color: var(--c2); box-shadow: 0 0 0 3px var(--soft), var(--shadow-2, 0 8px 22px rgba(15, 23, 42, .1)); }
.course-card.is-finished h3 { color: var(--sub); }

/* コースの画面: つづきから・つぎはここ・Mac / Windows */
.course-resume { margin-top: 14px; justify-content: space-between; text-align: left; }
.course-alldone { margin: 12px 0 0; font-weight: 700; color: var(--accent-dark); }
.lesson-list a { flex-wrap: wrap; }
.lesson-list .lesson-title { flex: 1; min-width: 12em; }
.lesson-list .is-next a { background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent); }
.lesson-list .is-next .num { border-color: var(--accent); color: var(--accent); }
.lesson-list .done .lesson-title { color: var(--sub); }
.tag-next { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.lesson-os.os-mac { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }
.lesson-os.os-win { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

/* 講義の終わり: 完了にして、次の回へ */
.lesson-go-next { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; }
.lesson-go-next .btn { justify-content: center; }
.lesson-go-next small { color: var(--sub); font-size: 13px; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  .notice-flash, .lesson-done { animation: none; }
  .nav-toast { transition: none; }
}
.course-flag.is-hint { background: var(--soft); color: var(--c1); border: 1px dashed var(--c2); }
@media (max-width: 600px) {
  .lesson-list .lesson-title { flex: 1 1 calc(100% - 44px); min-width: 0; }
  .lesson-list .lesson-os, .lesson-list .tag-next { margin-left: 40px; }
  .lesson-list .lesson-os + .tag-next { margin-left: 0; }
}

h1, h2, .course-card h3 { text-wrap: balance; line-break: strict; }
@media (max-width: 760px) { .tabbar.tabbar-2 { grid-template-columns: repeat(2, 1fr); } }
.preview-banner { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; background: #eef2ff; color: #3730a3; border-bottom: 1px solid #c7d2fe; }
.preview-banner .btn { background: #fff; }

/* ===== 上位グループ（エージェントマスターグループ）への申し込み ===== */
.group-hero { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: 16px; padding: 24px 22px 20px; margin: 0 0 16px; }
.group-hero small { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 12px; border-radius: 999px; padding: 2px 12px; margin-bottom: 10px; }
.group-hero h1 { font-size: 23px; line-height: 1.45; margin: 0 0 10px; text-wrap: balance; }
.group-hero p { margin: 0; color: var(--sub); font-size: 15px; }
/* 申請の条件（2026-11-19 作り直し）: 2 つの条件を 1 枚のパネルにまとめ、境目の「＋」で「両方とも」を見せる */
.group-hero h1 { word-break: auto-phrase; }
.group-cond { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border: 1px solid var(--accent-line); border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 100%); word-break: auto-phrase; }
.group-cond-item { display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; align-items: start; padding: 18px 20px 18px 18px; }
.group-cond-item + .group-cond-item { border-left: 1px solid var(--accent-line); padding-left: 26px; }
.group-cond-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--accent); background: #fff;
  border: 1px solid var(--accent-line); box-shadow: 0 2px 6px rgba(4,120,87,.08); }
.group-cond-text { display: flex; flex-direction: column; min-width: 0; }
.group-cond-cap { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.5; }
.group-cond-num { display: flex; align-items: baseline; gap: 2px; margin: 4px 0 4px; font-size: 15px; font-weight: 700; color: var(--accent-dark); line-height: 1; }
.group-cond-num b { font-size: 40px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; font-variant-numeric: proportional-nums; line-height: 1.1; margin-right: 1px; }
.group-cond-sub { font-size: 13px; color: var(--sub); line-height: 1.6; }
.group-cond-num b.is-one { margin-right: -.12em; }
.group-cond-plus { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; color: #fff; background: var(--accent); box-shadow: 0 0 0 4px #fff, 0 3px 8px rgba(4,120,87,.25); }
.group-cond-plus .ico-svg path { stroke-width: 2.6; }
.group-cond-note { margin: 12px 0 0 !important; font-size: 13px !important; color: var(--sub); }
@media (max-width: 560px) {
  .group-cond { grid-template-columns: 1fr; }
  .group-cond-item + .group-cond-item { border-left: 0; border-top: 1px solid var(--accent-line); padding-left: 18px; padding-top: 22px; }
}
.group-form { padding-top: 6px; }
.group-step { display: flex; align-items: center; gap: 9px; font-size: 17px; margin: 24px 0 8px; line-height: 1.5; }
.group-step i { font-style: normal; background: var(--accent); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; flex: none; }
.group-row { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; margin: 0 0 8px; }
.group-row span { font-size: 13px; font-weight: 700; color: var(--sub); text-align: right; }
.group-row input { width: 100%; min-width: 0; font: inherit; padding: 11px 14px; border: 1px solid #d1d5db; border-radius: 10px; }
.group-row input:focus { outline: 2px solid var(--accent-line); border-color: var(--accent); }
/* 2026-12-01: 作ったツールの欄（1 つごとに、URL か、スクリーンショット） */
.group-tool { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; background: var(--surface); }
.group-tool-no { font-size: 13px; font-weight: 700; color: #fff; background: var(--accent); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; }
.group-tool-body { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px 12px; align-items: end; min-width: 0; }
.group-tool-field { display: block; min-width: 0; }
.group-tool-field > span { display: block; font-size: 12px; font-weight: 700; color: var(--sub); margin: 0 0 4px; }
.group-tool-field input { width: 100%; min-width: 0; font: inherit; }
.group-tool-field input[type="url"] { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; }
.group-tool-field input[type="url"]:focus { outline: 2px solid var(--accent-line); border-color: var(--accent); }
.group-tool-field input[type="file"] { font-size: 13px; padding: 7px 0; }
.group-tool-or { font-size: 12px; font-weight: 700; color: var(--sub); padding-bottom: 12px; }
.group-tool-prev { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--sub); }
.group-tool-prev label { margin-left: 8px; white-space: nowrap; }
/* 課題の提出（URL かスクリーンショット）: 番号の列なし */
.group-tool.mission-tool { grid-template-columns: 1fr; }
.group-tool-notes { margin: 0 0 12px; padding-left: 20px; font-size: 13px; color: var(--sub); line-height: 1.8; }
.group-tool-error { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; font-size: 14px; font-weight: 700; }
.group-tool-error[hidden] { display: none; }
@media (max-width: 640px) {
  .group-tool-body { grid-template-columns: 1fr; }
  .group-tool-or { padding: 0; text-align: center; }
}
.group-skill { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; background: var(--surface); }
.group-more { margin: 4px 0 0; }
.group-more summary, .group-edit summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--accent-dark); border: 1px dashed var(--accent-line); border-radius: 10px; padding: 9px 14px; margin: 0 0 10px; }
.group-edit { margin-top: 12px; }
.field small { display: block; margin-top: 4px; font-size: 13px; }
.safe-box { background: var(--ok-soft); border: 1px solid #a7f3d0; border-radius: 14px; padding: 16px 18px 12px; margin-top: 26px; }
.safe-box h2 { font-size: 16px; margin: 0 0 8px; color: #065f46; line-height: 1.5; }
.safe-box > ul { list-style: none; margin: 0; padding: 0; }
.safe-box > ul > li { font-size: 14px; color: #374151; padding: 7px 0; border-top: 1px solid #c6f0dc; line-height: 1.7; }
.safe-box > ul > li:first-child { border-top: 0; }
.safe-box > ul > li > b { display: block; color: var(--text); }
.safe-full { margin-top: 8px; border-top: 1px solid #c6f0dc; padding-top: 8px; }
.safe-full summary { cursor: pointer; font-size: 14px; font-weight: 700; color: #065f46; padding: 4px 0; }
.safe-fulltext { background: #fff; border: 1px solid #c6f0dc; border-radius: 10px; padding: 6px 16px 12px; margin-top: 8px; font-size: 13px; color: #374151; max-height: 320px; overflow: auto; }
.safe-fulltext h3 { font-size: 13px; color: var(--text); margin: 12px 0 2px; }
.safe-fulltext p { margin: 0 0 4px; }
.safe-fulltext ol, .safe-fulltext ul { margin: 2px 0 4px; padding-left: 20px; }
.agree-box { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #374151; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 12px; cursor: pointer; }
.agree-box input { width: 18px; height: 18px; margin-top: 4px; flex: none; }
.agree-box small { display: block; font-size: 12.5px; color: var(--sub); margin-top: 2px; }
.group-invite { border-color: #a7f3d0; background: linear-gradient(180deg, var(--ok-soft), #fff 70%); }
.group-invite-head { font-size: 18px; font-weight: 700; margin: 0 0 8px; line-height: 1.5; }
.group-urls { margin: 0; padding-left: 20px; word-break: break-all; font-size: 14px; }
/* Agentsマスターコースの入口（2026-11-19 目立つ形に）: 夜空のような紺→紫のカードに、条件 2 つと白いボタン */
.group-entry { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 24px 26px;
  border-radius: 20px; text-decoration: none; color: #fff; background: linear-gradient(120deg, #1e1b4b 0%, #4338ca 55%, #7c3aed 100%);
  box-shadow: 0 10px 28px rgba(67,56,202,.28); transition: transform .15s ease, box-shadow .15s ease; }
.group-entry::before { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,.45), rgba(167,139,250,0) 65%); pointer-events: none; }
.group-entry:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(67,56,202,.36); color: #fff; }
.group-entry:focus-visible { outline: 3px solid #fbbf24; outline-offset: 3px; }
.group-entry-body { position: relative; display: block; min-width: 0; }
.group-entry-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: #1e1b4b; background: linear-gradient(90deg, #fde68a, #fbbf24); }
.group-entry-title { display: block; margin-top: 10px; font-size: 22px; font-weight: 800; line-height: 1.35; }
.group-entry-lead { display: block; margin-top: 4px; font-size: 14px; color: rgba(255,255,255,.82); }
.group-entry-conds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.group-entry-conds > span:not(.group-entry-plus) { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 700; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.group-entry-conds i { font-style: normal; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; color: #1e1b4b; background: #fbbf24; }
.group-entry-plus { font-weight: 800; font-size: 16px; color: #fbbf24; }
.group-entry-cta { position: relative; flex: none; padding: 12px 20px; border-radius: 999px; font-weight: 800; font-size: 15px; color: #3730a3; background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); white-space: nowrap; }
@media (max-width: 640px) {
  .group-entry { flex-direction: column; align-items: stretch; padding: 20px; }
  .group-entry-title { font-size: 19px; }
  .group-entry-cta { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .group-entry { transition: none; } .group-entry:hover { transform: none; } }
@media (max-width: 520px) { .group-hero h1 { font-size: 20px; } }

/* ===== 2026-11-13 全体の見直し（表示・押しやすさ・スマホ） ===== */
/* スマホの上の帯に、アカウント（と管理）への入口を出す（下のタブには無いため） */
.header-mini { display: none; }
@media (max-width: 760px) {
  .header-mini { display: flex; align-items: center; gap: 6px; margin-left: auto; }
  .header-mini a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; color: var(--sub); text-decoration: none; font-size: 13px; font-weight: 700; }
  .header-mini a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
  .header-mini-admin { border: 1px solid var(--line); height: 36px !important; }
}
/* 講義の表: スマホで、せまい列の文字が縦に 1 文字ずつ並ばないようにする（表は横に動かせる） */
.prose th, .prose td { min-width: 4.5em; }
.prose td:first-child, .prose th:first-child { min-width: 5.5em; }
@media (max-width: 600px) {
  .prose table { font-size: 14.5px; }
  .prose th { white-space: normal; }
  .prose .table-wrap table:has(th:nth-child(3)) { min-width: 540px; }
  .prose .table-wrap table:has(th:nth-child(5)) { min-width: 720px; }
}
/* アンケート: 見出しが枠の線に重ならないようにする。選ぶ所を押しやすくする */
.survey-q { padding: 16px; }
.survey-q legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; line-height: 1.6; }
.survey-q legend + * { clear: both; }
.survey-q > *:not(legend) { clear: both; }
.choice { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; align-items: center; min-height: 44px; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin: 0; width: 20px; height: 20px; accent-color: var(--accent); }
.scale-row label { min-width: 40px; min-height: 44px; justify-content: center; }
.scale-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.survey-select { min-height: 46px; font-size: 16px; }
/* Q&A: 質問を押すと答えが開く（スマホで長くなりすぎないように） */
details.faq-card > summary { list-style: none; cursor: pointer; align-items: center; min-height: 32px; }
details.faq-card > summary::-webkit-details-marker { display: none; }
details.faq-card > summary h3 { flex: 1; }
.faq-chev { flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--sub); border-bottom: 2.5px solid var(--sub); transform: rotate(45deg); margin: 0 6px 4px 4px; transition: transform .15s; }
details.faq-card[open] .faq-chev { transform: rotate(-135deg); margin-bottom: -4px; }
details.faq-card > summary:hover h3 { color: var(--accent-dark); }
details.faq-card > summary:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 4px; border-radius: 8px; }
.faq-body a { overflow-wrap: anywhere; }
/* 押す所の大きさ（スマホ）: 下の帯のリンク・目次の開け閉め・選ぶ欄 */
.site-footer a { display: inline-block; padding: 8px 2px; margin: -8px 0; }
.toc-mobile summary { padding: 8px 0; min-height: 28px; }
.field select, .card select { min-height: 42px; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; background: #fff; }
.data select { min-height: 34px; }
/* Mac／Windows の組で、もう片方を終えた回（やらなくてよい回） */
.lesson-list li.is-skip a { opacity: .62; }
.lesson-list li.is-skip .num { background: #eef0f4; color: var(--sub); }
/* 読み込めなかった画像（YouTube のサムネイルが無い回など）は、色の板に替える */
img.is-broken { visibility: hidden; }
/* 管理画面: 数字の札をきれいに並べる・さがす欄 */
.stats { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
form.inline input[name="q"] { font: inherit; font-size: 15px; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 10px; min-height: 44px; }
form.inline input[name="q"]:focus { outline: 2px solid var(--accent-line); border-color: var(--accent); }
/* 上の帯: 下の文字が透けて読めてしまわないようにする */
.site-header, body.has-tabbar .site-header { background: rgba(255, 255, 255, .985); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* 押す所の大きさ（スマホ）: 戻りのリンク・見出しの横のリンク・選ぶ欄（Safari は min-height が効かないので height で） */
.backlink a, h2 a, .section-head a, .breadcrumb a { display: inline-block; padding: 9px 0; margin: -9px 0; }
.field select, .card select, .survey-select { height: 46px; }
.data select { height: 36px; }
details.card > summary { padding: 6px 0; }
.sec-head > a { display: inline-block; padding: 10px 0; margin: -10px 0; }

/* ===== 管理: 会員の一覧・詳細（2026-11-19。大学サイトの会員一覧と同じ見え方） ===== */
.pv { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 99px; border: 1px solid #e5e7eb; background: #f3f4f6; color: #4b5563; margin-right: 4px; }
.pv-stripe { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.pv-univapay { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
.pv-kaihipay { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.pv-bank { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.pv-other, .pv-muted { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }
.pv-warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.pv-ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.warn-text { color: #b45309; font-weight: 700; }
.small { font-size: 12px; }
.mono { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--sub); }
.check-inline input { width: 18px; height: 18px; }
table.member-list tr.row-link { cursor: pointer; }
table.member-list tr.row-link:hover td { background: #f8fafc; }
table.member-list a { color: inherit; text-decoration: none; }
table.member-list a.row-name { font-weight: 700; }
table.member-list a:hover { text-decoration: underline; }
.md-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.md-head h1 { margin: 0 6px 0 0; }
.md-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
@media (min-width: 900px) { .md-grid { grid-template-columns: 1fr 1fr; } .md-wide { grid-column: 1 / -1; } }
.md-grid .card + .card { margin-top: 0; }
.md-grid h2 { margin: 0 0 10px; font-size: 16px; }
.kv { display: grid; grid-template-columns: 9.5em 1fr; gap: 6px 10px; margin: 0; font-size: 14px; }
.kv dt { color: var(--sub); }
.kv dd { margin: 0; word-break: break-all; }
.md-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
.md-list li { display: flex; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); }
.md-list li:first-child { border-top: 0; }
.md-list .when { flex: none; width: 6.5em; color: var(--sub); font-variant-numeric: tabular-nums; font-size: 13px; }
.md-list .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.md-list .num { flex: none; font-variant-numeric: tabular-nums; }
.md-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.md-actions form { display: flex; gap: 6px; align-items: center; }
.survey-box { background: var(--surface); border-radius: 12px; padding: 12px 14px; }
.survey-box + .survey-box { margin-top: 10px; }
.survey-box dt { font-size: 12px; color: var(--sub); margin-top: 6px; }
.survey-box dd { margin: 0; white-space: pre-wrap; }
@media (max-width: 600px) { .kv { grid-template-columns: 7.5em 1fr; } }

/* 管理: 会員の一覧は、大学サイトと同じく全部の欄が横に入るよう広く・詰めて */
.container-wide { max-width: 1440px; }
table.member-list th, table.member-list td { padding: 8px 10px; font-size: 13px; }
table.member-list .mono { font-size: 12px; }
.md-list .when { width: 8.5em; white-space: nowrap; }
.kv { grid-template-columns: 11em 1fr; }
@media (max-width: 600px) { .kv { grid-template-columns: 8em 1fr; } .md-list .when { width: 7.5em; } }
table.member-list td:nth-child(1), table.member-list td:nth-child(2) { white-space: normal; min-width: 7em; max-width: 13em; }

/* アカウントの画面のプロフィール（2026-11-19） */
.profile-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 0; margin: 0 0 14px; }
.profile-list dt { font-size: 13px; color: var(--muted, #6b7280); margin-top: 8px; }
.profile-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }


/* ライブの視聴の記録の画面（2026-11-19） */
.watch-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid #dc2626; border-radius: 16px; padding: 22px; margin: 0 0 16px; }
.watch-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.watch-top .watch-status { margin: 0; }
.watch-top form { margin: 0; flex: none; }
.watch-close { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--sub); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.watch-close span { font-size: 16px; line-height: 1; }
.watch-close:hover { color: var(--text); border-color: #cbd5e1; background: #f8fafc; }
.watch-close:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.watch-status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #b91c1c; background: #fef2f2; }
.watch-card.is-ended .watch-status { color: var(--sub); background: #f1f5f9; }
.watch-card.is-ended .live-dot { animation: none; background: #94a3b8; }
.watch-title { font-size: 22px; line-height: 1.45; margin: 0 0 6px; text-wrap: balance; }
.watch-when { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--sub); font-size: 14px; }
.watch-note { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--line); font-size: 14px; white-space: pre-wrap; }
.watch-zoom { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; }
.watch-meter { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.watch-meter > span { font-size: 14px; font-weight: 700; color: var(--accent-dark); }
.watch-meter b { font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.watch-meter small { font-size: 15px; margin-left: 4px; color: var(--accent-dark); }
.watch-howto h2 { font-size: 16px; margin: 0 0 10px; }
.watch-howto ol { margin: 0 0 14px; padding-left: 22px; font-size: 14px; line-height: 1.8; }
.watch-howto li + li { margin-top: 4px; }
.watch-pass { margin-top: 10px; }
.watch-pass .progress { height: 8px; }
.watch-pass p { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--sub); }
.watch-card.is-passed .watch-pass p { color: var(--accent-dark); }

/* ===== 退会のお手続き（2026-11-19）: 押す前に立ち止まってもらう ===== */
.withdraw-alert { border: 2px solid #fecdd3; background: #fff1f2; border-radius: 14px; padding: 18px 20px; color: #4c0519; }
.withdraw-alert h2 { margin: 0 0 4px; font-size: 18px; color: var(--danger); }
.withdraw-alert-lead { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.withdraw-alert ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.withdraw-alert li { line-height: 1.7; }
.withdraw-alert li b { color: #881337; }
.withdraw-subs { margin: 0; padding-left: 20px; }
.withdraw-stay { border-color: var(--accent); }
.withdraw-form { border-color: #fecdd3; }
.withdraw-form .btn-danger { margin-top: 6px; background: var(--danger); color: #fff; border-color: var(--danger); }
.withdraw-form .btn-danger:hover { background: #9f1239; }
.receipt .btn { white-space: nowrap; flex: none; }

/* ライブのカレンダー（2026-11-20。/live の上。種類ごとの色は src/lib/live-calendar.ts の LIVE_KINDS） */
.lcal { margin: 0 0 22px; padding: 16px 16px 14px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-1); scroll-margin-top: 76px; }
.lcal-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.lcal-title { margin: 0; font-size: 19px; min-width: 7.2em; text-align: center; }
.lcal-nav { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 22px; line-height: 1; text-decoration: none; }
.lcal-nav:hover { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-dark); }
.lcal-today { margin-left: auto; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.lcal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 0 0 10px; font-size: 12.5px; color: var(--sub); }
.lcal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.lcal-swatch { width: 12px; height: 12px; border-radius: 4px; background: var(--c1); }
.lcal-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lcal-grid th { padding: 6px 0; font-size: 12px; font-weight: 700; color: var(--sub); text-align: center; background: #f8fafc; }
.lcal-grid th.is-sun { color: #dc2626; }
.lcal-grid th.is-sat { color: #2563eb; }
.lcal-cell { height: 84px; padding: 4px; vertical-align: top; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.lcal-cell:first-child { border-left: 0; }
.lcal-cell.is-out { background: #fafbfc; }
.lcal-day { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 3px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #374151; }
.lcal-cell.is-sun .lcal-day { color: #dc2626; }
.lcal-cell.is-sat .lcal-day { color: #2563eb; }
.lcal-cell.is-out .lcal-day { color: #cbd5e1; }
.lcal-cell.is-today { background: #f0fdf9; }
.lcal-cell.is-today .lcal-day { background: var(--accent); color: #fff; }
.lcal-ev { display: block; margin-top: 3px; padding: 3px 3px 3px 5px; border-radius: 7px; border-left: 3px solid var(--c1); background: var(--soft); color: var(--c1); font-size: 11px; line-height: 1.4; text-decoration: none; white-space: nowrap; overflow: hidden; }
.lcal-ev-time { font-weight: 800; }
.lcal-ev-kind { margin-left: 3px; font-weight: 700; }
.lcal-ev-who { display: block; overflow: hidden; color: #374151; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
a.lcal-ev:hover { background: var(--c1); color: #fff; }
a.lcal-ev:hover .lcal-ev-who { color: #fff; }
.lcal-ev.is-past { background: #f3f4f6; color: #4b5563; }
a.lcal-ev.is-past:hover { background: #4b5563; color: #fff; }
.lcal-ev.is-past .lcal-ev-who { color: #4b5563; }
.lcal-ev.is-now { box-shadow: 0 0 0 2px var(--c1); }
.lcal-empty { margin: 10px 0 0; font-size: 14px; color: var(--sub); text-align: center; }
.lcal-list { display: none; }
.lcal-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; border-left: 4px solid var(--c1); background: var(--soft); color: var(--text); text-decoration: none; }
.lcal-row-date { display: grid; justify-items: center; font-size: 20px; font-weight: 800; line-height: 1.1; color: var(--c1); }
.lcal-row-date small { font-size: 11px; font-weight: 700; }
.lcal-row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; }
.lcal-tag { padding: 1px 8px; border-radius: 999px; background: var(--c1); color: #fff; font-size: 12px; font-weight: 700; }
.lcal-state { padding: 0 7px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--sub); font-size: 11.5px; font-weight: 700; }
.lcal-state.is-now { color: #be123c; border-color: #fecdd3; }
.lcal-row-who { display: block; font-size: 13px; color: #4b5563; }
.lcal-list li.is-past .lcal-row { background: #f3f4f6; }
.lcal-list li.is-past .lcal-row-date, .lcal-list li.is-past .lcal-row-who { color: #4b5563; }
.lcal-list li.is-past .lcal-tag { background: #6b7280; }
[id^="live-"] { scroll-margin-top: 84px; }
[id^="live-"]:target { outline: 3px solid #fbbf24; outline-offset: 3px; }
@media (max-width: 600px) {
  .lcal { padding: 12px 8px; }
  .lcal-head { padding: 0 4px; }
  .lcal-legend { padding: 0 4px; }
  .lcal-cell { height: 64px; padding: 2px; }
  .lcal-day { min-width: 20px; height: 20px; font-size: 11.5px; }
  .lcal-ev { min-height: 34px; padding: 2px 1px 2px 4px; border-left-width: 2px; border-radius: 5px; font-size: 10px; }
  .lcal-ev-kind { display: block; margin-left: 0; white-space: nowrap; overflow: hidden; text-overflow: clip; }
  .lcal-ev-who { display: none; }
  .lcal-list { display: grid; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
}

/* ホームの上の、デジイナの SNS・メルマガ（2026-11-20。中身は src/lib/content.ts の SNS_LINKS） */
.sns { margin: 0 0 18px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-1); }
.sns-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 10px; }
.sns-head h2 { margin: 0; font-size: 16px; }
.sns-head p { margin: 0; font-size: 13px; color: #4b5563; }
.sns-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.sns-item { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.sns-item:hover { border-color: var(--c1); box-shadow: 0 6px 16px rgba(15, 23, 42, .08); transform: translateY(-1px); }
.sns-badge { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--c1); color: #fff; font: 800 18px/1 -apple-system, "Helvetica Neue", Arial, sans-serif; }
.sns-instagram .sns-badge { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af 80%, #515bd4); }
.sns-text { display: grid; min-width: 0; line-height: 1.3; }
.sns-text b { font-size: 14px; }
.sns-text small { overflow: hidden; font-size: 12px; color: #4b5563; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 960px) { .sns-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* スマホは、アプリのアイコンのように 5 つを横 1 列に（アカウント名は出さない） */
@media (max-width: 600px) {
  .sns { padding: 12px 10px; }
  .sns-head { padding: 0 4px; }
  .sns-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .sns-item { flex-direction: column; justify-content: center; gap: 5px; min-height: 0; padding: 8px 2px; border-color: transparent; }
  .sns-text { text-align: center; }
  .sns-text b { font-size: 11.5px; white-space: nowrap; }
  .sns-text small { display: none; }
  .sns-badge { width: 40px; height: 40px; border-radius: 12px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .sns-item { transition: none; } .sns-item:hover { transform: none; } }

/* 開いたときに出すお知らせ（ホームの「ユーザー設定の入力のお願い」。2026-11-20） */
.settings-remind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 16px; }
.settings-remind .btn { flex: none; }
.pop { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--text); box-shadow: 0 24px 60px rgba(15, 23, 42, .3); }
.pop::backdrop { background: rgba(15, 23, 42, .55); }
.pop-body { padding: 22px 22px 18px; }
.pop-eyebrow { margin: 0 0 4px; font-size: 13px; font-weight: 800; color: #b45309; }
.pop h2 { margin: 0 0 10px; font-size: 20px; }
.pop p { margin: 0 0 10px; line-height: 1.75; }
.pop-sub { font-size: 13px; font-weight: 700; color: #4b5563; }
.pop-list { margin: 0 0 18px; padding: 10px 14px 10px 32px; border: 1px solid #fde68a; border-radius: 12px; background: #fffbeb; color: #92400e; font-weight: 700; }
.pop-list li { margin: 2px 0; }
.pop-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 480px) { .pop-body { padding: 20px 16px 16px; } .pop-actions { flex-direction: column-reverse; } .pop-actions .btn { width: 100%; justify-content: center; } }

/* フォローアップ相談会への質問・相談ボード（2026-11-20。/consult と管理画面「相談会の質問」） */
.consult-entry { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 16px; border: 1px solid #c7d2fe; border-radius: 16px; background: linear-gradient(100deg, #eef2ff, #fff); color: var(--text); text-decoration: none; box-shadow: var(--shadow-1); }
.consult-entry:hover { border-color: #818cf8; box-shadow: 0 6px 18px rgba(67, 56, 202, .12); }
.consult-entry-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #4338ca; font-size: 20px; }
.consult-entry-text { display: grid; min-width: 0; line-height: 1.45; }
.consult-entry-text b { font-size: 15px; }
.consult-entry-text small { font-size: 12.5px; color: #4b5563; }
.consult-entry-go { flex: none; display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 7px 14px; border-radius: 999px; background: #4338ca; color: #fff; font-size: 14px; font-weight: 700; }
@media (max-width: 600px) { .consult-entry { flex-wrap: wrap; } .consult-entry-go { width: 100%; justify-content: center; } }
.cs-form textarea { min-height: 120px; }
.cs-vis { margin: 0 0 14px; padding: 0; border: 0; }
.cs-vis legend { margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.cs-vis label { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 6px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.cs-vis label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.cs-vis input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.cs-vis span { display: grid; line-height: 1.45; }
.cs-vis b { font-size: 14.5px; }
.cs-vis small { font-size: 12.5px; color: #4b5563; }
.cs-month { margin: 22px 0 8px; font-size: 15px; color: #4b5563; }
.cs-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cs-post { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; scroll-margin-top: 84px; }
.cs-post.is-mine { border-color: var(--accent-line); }
.cs-post:target, .cs-admin:target { outline: 3px solid #fbbf24; outline-offset: 2px; }
.cs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.cs-who { font-weight: 700; }
.cs-date { font-size: 12.5px; }
.cs-body { margin: 8px 0 10px; font-size: 15px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.cs-reply { margin: 0 0 10px; padding: 10px 12px; border-left: 4px solid #4338ca; border-radius: 10px; background: #eef2ff; font-size: 14px; }
.cs-reply b { color: #3730a3; }
.cs-reply p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cs-actions .btn-small { min-height: 34px; }
.cs-admin { margin: 0 0 12px; scroll-margin-top: 84px; }
.cs-admin-row { display: flex; flex-wrap: wrap; gap: 0 14px; }
.cs-admin select { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }

/* リンク集のカードの見直し（2026-11-20。「開く」「中を見る」のボタン・コマンドの見た目・まとめの中身・まとめのページは 1 列） */
.res-open { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; background: var(--c1, var(--accent)); color: #fff; border-color: transparent; font-weight: 700; }
.res-open:hover { filter: brightness(1.08); color: #fff; }
.res-main:hover + .res-foot .res-open { filter: brightness(1.08); }
.res-text small code { padding: 1px 5px; border-radius: 5px; background: #f1f5f9; color: #1f2937; font-size: 12px; overflow-wrap: anywhere; }
.res-kids { color: #374151 !important; }
.res-host { color: #4b5563 !important; }
.res-howto { margin: 0 0 14px; font-size: 14px; }
.res-grid.is-list { grid-template-columns: 1fr; }
.res-grid.is-list .res-card { flex-direction: row; }
.res-grid.is-list .res-main { flex: 1; }
.res-grid.is-list .res-foot { flex-direction: column; justify-content: center; border-top: 0; border-left: 1px solid var(--line); min-width: 120px; }
@media (max-width: 600px) {
  .res-grid.is-list .res-card { flex-direction: column; }
  .res-grid.is-list .res-foot { flex-direction: row; border-left: 0; border-top: 1px solid var(--line); }
}
.jump-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 8px; }
.jump-row .jump-card { margin: 0; }
@media (max-width: 760px) { .jump-row { grid-template-columns: 1fr; } }


/* ===== 配信アーカイブの要約ページ（2026-11-20。文章と図解。原稿は content/archive-summaries/） ===== */
.tag-sum { background: #fffbeb; color: #92400e; border-color: #fcd34d; }
.bc-lead { display: block; color: var(--sub); font-size: 13.5px; line-height: 1.6; margin-top: 3px; }
.stream-tabs a.stream-tab-sum { border-style: dashed; border-color: #f59e0b; }
.stream-tabs a.stream-tab-sum[aria-current="page"] { border-style: solid; }
.page-tabs { display: flex; gap: 4px; margin: 0 0 18px; border-bottom: 2px solid var(--line); }
.page-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 11px 16px; min-height: 44px; margin-bottom: -2px; text-decoration: none; color: var(--sub); font-weight: 700; font-size: 15px; border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0; }
.page-tabs a:hover { background: var(--surface); color: var(--text); }
.page-tabs a[aria-current="page"] { color: var(--accent-dark); border-bottom-color: var(--accent); background: var(--accent-soft); }
.sum-note { font-size: 13px; color: var(--sub); background: var(--surface); border-radius: 10px; padding: 10px 14px; margin: 28px 0 0; line-height: 1.7; }

.sum-doc { --s1: #b45309; --s-soft: #fffbeb; --s-line: #fcd34d; font-size: 16.5px; line-height: 1.95; overflow-wrap: anywhere; background: #fff; border: 1px solid #e6e9f0; border-radius: 16px; padding: 26px 28px 30px; box-shadow: var(--shadow-1); }
.sum-doc p { margin: 14px 0; }
.sum-doc b, .sum-doc strong { font-weight: 700; }
.sum-doc mark { background: linear-gradient(transparent 60%, #fde68a 60%); color: inherit; font-weight: 700; padding: 0 2px; }
.sum-doc h2 { display: flex; align-items: flex-start; gap: 12px; font-size: 22px; line-height: 1.5; margin: 52px 0 6px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.sum-doc h2 .sum-no { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #111827; color: #fff; font-size: 17px; font-weight: 800; }
.sum-doc h3 { font-size: 18px; margin: 28px 0 8px; line-height: 1.5; }
.sum-jump { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: #92400e; background: var(--s-soft); border: 1px solid var(--s-line); border-radius: 999px; padding: 5px 14px; min-height: 34px; text-decoration: none; margin: 4px 0 6px 48px; }
.sum-jump:hover { background: #fef3c7; }
/* 結論の箱 */
.sum-hero { background: var(--s-soft); border: 2px solid #111827; border-radius: 14px; padding: 18px 22px; margin: 0 0 22px; }
.sum-hero-label { display: inline-block; background: #111827; color: #fff; font-size: 13px; font-weight: 800; padding: 2px 12px; border-radius: 999px; margin: 0 0 8px; }
.sum-hero ol { margin: 6px 0 0; padding-left: 1.4em; }
.sum-hero li { margin: 6px 0; font-weight: 600; line-height: 1.7; }
.sum-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13.5px; color: #4b5563; }
.sum-meta li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }
.sum-toc { margin: 0 0 8px; padding: 14px 18px; background: var(--surface); border-radius: 12px; font-size: 15px; }
.sum-toc b { display: block; font-size: 13px; color: #4b5563; margin-bottom: 4px; }
.sum-toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 28px; }
.sum-toc li { margin: 3px 0; break-inside: avoid; }
.sum-toc a { color: var(--text); text-decoration: none; display: inline-block; padding: 4px 0; }
.sum-toc a:hover { color: var(--accent); text-decoration: underline; }
/* 講師のことば・ポイント */
.sum-quote { position: relative; margin: 18px 0; padding: 14px 18px 14px 52px; background: #f9fafb; border-radius: 12px; font-weight: 700; line-height: 1.75; }
.sum-quote::before { content: "“"; position: absolute; left: 14px; top: 2px; font-size: 44px; line-height: 1; color: var(--s1); font-family: Georgia, serif; }
.sum-quote small { display: block; font-weight: 500; color: #4b5563; font-size: 13px; margin-top: 2px; }
.sum-point { border-left: 5px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; padding: 12px 18px; margin: 18px 0; }
.sum-point > b:first-child { display: block; color: var(--accent-dark); font-size: 14px; }
.sum-point p { margin: 2px 0; }
/* 図解の枠 */
.sum-fig { margin: 22px 0; border: 2px solid #111827; border-radius: 14px; overflow: hidden; background: #fff; }
.sum-fig figcaption { display: flex; align-items: center; gap: 10px; background: #111827; color: #fff; font-weight: 700; font-size: 15px; padding: 8px 16px; line-height: 1.5; }
.sum-fig figcaption span { flex: none; background: #f59e0b; color: #111827; font-size: 12px; font-weight: 800; border-radius: 6px; padding: 1px 8px; }
.sum-fig-body { padding: 18px; }
.sum-fig-foot { margin: 0; padding: 10px 16px; border-top: 1px dashed #d1d5db; background: var(--s-soft); font-size: 14.5px; font-weight: 700; line-height: 1.7; }
/* 図: 2 つを比べる（人の答え／AI の答え） */
.sum-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.sum-vs-col { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.sum-vs-col.is-b { border-color: var(--s-line); background: var(--s-soft); }
.sum-vs-col h4 { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.sum-vs-mid { display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #dc2626; }
.sum-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sum-chips li { font-size: 14px; line-height: 1.5; border: 1.5px solid #111827; border-radius: 999px; padding: 2px 11px; background: #fff; }
.sum-vs-col.is-b .sum-chips li { border-color: var(--s1); color: #7c2d12; font-weight: 700; }
/* 図: 指示のはしご（あいまい → 具体的） */
.sum-ladder { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sum-ladder li { display: grid; grid-template-columns: minmax(0, 1.05fr) 28px minmax(0, 1.25fr); gap: 8px; align-items: center; }
.sum-say { position: relative; background: #fff; border: 2px solid #111827; border-radius: 14px 14px 14px 4px; padding: 8px 12px; font-weight: 700; font-size: 15px; line-height: 1.55; }
.sum-arrow { text-align: center; font-weight: 900; color: #6b7280; }
.sum-got { border-radius: 10px; padding: 8px 12px; font-size: 14px; line-height: 1.55; background: #f3f4f6; }
.sum-got b { display: block; font-size: 12px; letter-spacing: .04em; }
.sum-ladder li[data-lv="1"] .sum-got { background: #fee2e2; } .sum-ladder li[data-lv="1"] .sum-got b { color: #991b1b; }
.sum-ladder li[data-lv="2"] .sum-got { background: #ffedd5; } .sum-ladder li[data-lv="2"] .sum-got b { color: #9a3412; }
.sum-ladder li[data-lv="3"] .sum-got { background: #fef9c3; } .sum-ladder li[data-lv="3"] .sum-got b { color: #854d0e; }
.sum-ladder li[data-lv="4"] .sum-got { background: #d1fae5; } .sum-ladder li[data-lv="4"] .sum-got b { color: #065f46; }
/* 図: 横に流れる（ゴール → プロセス → …） */
.sum-flow { display: flex; align-items: stretch; gap: 0; margin: 0; padding: 0; list-style: none; }
.sum-flow li { position: relative; flex: 1 1 0; min-width: 0; border: 2px solid #111827; border-radius: 12px; padding: 10px 8px 12px; margin-right: 24px; background: #fff; text-align: center; }
.sum-flow li:last-child { margin-right: 0; }
.sum-flow li:not(:last-child)::after { content: "▶"; position: absolute; right: -21px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #111827; }
.sum-flow b { display: block; font-size: 16px; line-height: 1.4; }
.sum-flow small { display: block; font-size: 12.5px; color: #4b5563; line-height: 1.5; margin-top: 4px; }
.sum-flow .sum-step { display: inline-block; font-size: 11px; font-weight: 800; color: #fff; background: #111827; border-radius: 999px; padding: 0 9px; margin-bottom: 4px; }
.sum-flow li.is-key { background: var(--s-soft); border-color: var(--s1); box-shadow: 0 0 0 3px #fde68a; }
.sum-flow li.is-key .sum-step { background: #92400e; }
/* 図: 番号つきの流れ（折り返す） */
.sum-chain { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; margin: 0; padding: 0; list-style: none; counter-reset: ch; }
.sum-chain li { position: relative; counter-increment: ch; display: inline-flex; align-items: center; gap: 7px; border: 2px solid #111827; border-radius: 999px; padding: 4px 14px 4px 5px; font-weight: 700; font-size: 15px; background: #fff; }
.sum-chain li::before { content: counter(ch); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #111827; color: #fff; font-size: 13px; }
.sum-chain li:not(:last-child)::after { content: "→"; position: absolute; right: -22px; top: 50%; transform: translateY(-50%); color: #6b7280; font-weight: 900; }
.sum-chain li.is-key { background: var(--s-soft); border-color: var(--s1); }
.sum-chain li.is-key::before { background: #92400e; }
/* 図: 3 つの担当（エージェント → スキル → タスク） */
.sum-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sum-col { border: 2px solid #111827; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.sum-col-agent { background: #111827; color: #fff; padding: 8px 12px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.sum-col-agent small { display: block; font-size: 11px; color: #d1d5db; font-weight: 500; }
.sum-col-skill { background: var(--s-soft); border-bottom: 1.5px dashed var(--s-line); padding: 7px 12px; font-size: 14px; font-weight: 800; color: #7c2d12; }
.sum-col-skill small { display: block; font-size: 11px; font-weight: 600; color: #92400e; }
.sum-col ul { margin: 0; padding: 10px 12px 12px 30px; font-size: 14px; line-height: 1.6; }
.sum-col li { margin: 4px 0; }
.sum-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; color: #4b5563; }
.sum-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1.5px solid #111827; }
.sum-legend i.lg-agent { background: #111827; } .sum-legend i.lg-skill { background: #fffbeb; border-color: #b45309; } .sum-legend i.lg-task { background: #fff; }
/* 図: たてに並ぶ手順 */
.sum-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.sum-steps li { counter-increment: st; position: relative; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px 10px 56px; line-height: 1.7; font-size: 15px; }
.sum-steps li::before { content: counter(st); position: absolute; left: 12px; top: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #111827; color: #fff; font-weight: 800; }
.sum-steps li b { display: block; font-size: 16px; }
.sum-steps li q { display: block; quotes: "「" "」"; background: #f3f4f6; border-radius: 8px; padding: 4px 10px; margin-top: 4px; font-size: 14px; }
/* 図: 外枠 → 中身 */
.sum-two { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 8px; align-items: stretch; }
.sum-two > div { border: 2px solid #111827; border-radius: 12px; padding: 12px 14px; }
.sum-two > div.is-key { background: var(--s-soft); border-color: var(--s1); }
.sum-two > div.sum-arrow { border: 0; padding: 0; display: grid; place-items: center; font-size: 18px; }
.sum-two h4 { margin: 0 0 4px; font-size: 16px; }
.sum-two p { margin: 2px 0; font-size: 14.5px; line-height: 1.65; }
.sum-two ul { margin: 4px 0 0; padding-left: 1.3em; font-size: 14px; line-height: 1.6; }
/* 今日からやること */
.sum-todo { margin: 14px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sum-todo li { position: relative; padding: 10px 14px 10px 46px; border: 1.5px solid var(--accent-line); background: var(--accent-soft); border-radius: 12px; line-height: 1.7; }
.sum-todo li::before { content: "✓"; position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; border-radius: 6px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; line-height: 1; }
@media (max-width: 640px) {
  .sum-doc { padding: 18px 16px 22px; font-size: 16px; border-radius: 14px; }
  .sum-doc h2 { font-size: 19.5px; gap: 10px; }
  .sum-doc h2 .sum-no { width: 32px; height: 32px; font-size: 15px; }
  .sum-jump { margin-left: 0; }
  .sum-toc ol { columns: 1; }
  .sum-fig-body { padding: 14px 12px; }
  .sum-vs { grid-template-columns: 1fr; }
  .sum-vs-mid { font-size: 24px; }
  .sum-ladder li { grid-template-columns: 1fr; gap: 4px; padding-bottom: 6px; }
  .sum-ladder .sum-arrow { transform: rotate(90deg); justify-self: start; margin-left: 18px; }
  .sum-flow { flex-direction: column; }
  .sum-flow li { margin: 0 0 26px; text-align: left; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; }
  .sum-flow li:last-child { margin-bottom: 0; }
  .sum-flow li .sum-step { grid-row: span 2; margin: 0; }
  .sum-flow li small { margin-top: 0; }
  .sum-flow li:not(:last-child)::after { content: "▼"; right: auto; left: 50%; top: auto; bottom: -23px; transform: translateX(-50%); }
  .sum-cols { grid-template-columns: 1fr; }
  .sum-two { grid-template-columns: 1fr; }
  .sum-two > div.sum-arrow { transform: rotate(90deg); height: 22px; }
  .sum-chain li { font-size: 14.5px; }
  .page-tabs a { padding: 11px 12px; font-size: 14.5px; }
}
/* 要約ページ: 質問と答え・表・コマンド（2026-11-20 追加） */
.sum-qa { margin: 18px 0; display: grid; gap: 10px; }
.sum-qa > div { border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.sum-qa dt { position: relative; margin: 0; padding: 10px 14px 10px 46px; font-weight: 700; line-height: 1.65; background: #f9fafb; }
.sum-qa dd { position: relative; margin: 0; padding: 10px 14px 10px 46px; line-height: 1.75; font-size: 15.5px; }
.sum-qa dt::before, .sum-qa dd::before { position: absolute; left: 12px; top: 11px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 13px; font-weight: 800; line-height: 1; }
.sum-qa dt::before { content: "Q"; background: #111827; color: #fff; }
.sum-qa dd::before { content: "A"; background: #92400e; color: #fff; }
.sum-table-wrap { overflow-x: auto; margin: 4px 0; border: 1.5px solid #111827; border-radius: 10px; }
.sum-table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.6; }
.sum-table th, .sum-table td { border-bottom: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.sum-table thead th { background: #111827; color: #fff; white-space: nowrap; }
.sum-table tbody th { background: var(--s-soft); white-space: nowrap; }
.sum-table tr:last-child th, .sum-table tr:last-child td { border-bottom: 0; }
.sum-doc code { padding: 2px 6px; border-radius: 5px; background: #f3f4f6; color: #9d174d; font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.sum-doc ul:not([class]), .sum-doc ol:not([class]) { padding-left: 1.5em; }
.sum-doc ul:not([class]) li, .sum-doc ol:not([class]) li { margin: 5px 0; }
@media (max-width: 640px) { .sum-table { min-width: 560px; font-size: 14px; } .sum-table tbody th { white-space: normal; min-width: 7em; } .sum-table thead th { white-space: normal; } }

/* アカウントの画面のプロフィールのアンケート（目立つ色つきのカード。2026-11-21） */
.profile-hero { margin-top: 16px; padding: 0; overflow: hidden; border: 2px solid #f59e0b; scroll-margin-top: 84px; }
.profile-hero-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; background: linear-gradient(100deg, #fef3c7, #fde68a); }
.profile-hero-head > div { flex: 1 1 220px; min-width: 0; }
.profile-hero-head h2 { margin: 0; font-size: 18px; color: #78350f; }
.profile-hero-head p { margin: 2px 0 0; font-size: 13px; color: #92400e; }
.profile-hero-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; font-size: 22px; flex: none; }
.profile-hero-body { padding: 16px 18px 18px; }
.profile-hero.is-done { border-color: var(--accent-line); }
.profile-hero.is-done .profile-hero-head { background: linear-gradient(100deg, #ecfdf5, #d1fae5); }
.profile-hero.is-done .profile-hero-head h2 { color: var(--accent-dark); }
.profile-hero.is-done .profile-hero-head p { color: #047857; }

/* 2026-11-25: 入口（トップ）を作り直し・新規登録・無料会員の案内 */
.landing-v2 { padding: 48px 0 28px; }
.landing-v2 .landing-mark { display: block; margin: 0 auto 14px; border-radius: 20px; box-shadow: 0 10px 28px rgba(30, 27, 75, .28); }
.landing-v2 h1 { font-size: 32px; line-height: 1.4; letter-spacing: .01em; }
.landing-v2 .lead { max-width: 560px; margin: 0 auto 26px; line-height: 1.9; }
.landing-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.landing-actions .btn { min-width: 180px; }
.landing-signup { border-width: 2px; }
.landing-note { max-width: 520px; margin: 26px auto 0; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: left; font-size: 14px; line-height: 1.8; color: var(--text); }
.landing-note p { margin: 0; }
.sp-br { display: none; }
@media (max-width: 560px) {
  .landing-v2 { padding-top: 32px; }
  .landing-v2 h1 { font-size: 24px; }
  .sp-br { display: inline; }
  .landing-actions .btn { flex: 1 1 100%; }
}
.signup-guide { margin-top: 16px; font-size: 14px; line-height: 1.8; }
.signup-guide p { margin: 0 0 10px; }
.signup-guide p:last-child { margin: 0; }
.free-welcome { text-align: center; padding: 28px 0; }
.free-welcome .landing-mark { display: block; margin: 0 auto 12px; border-radius: 18px; }
.free-welcome-note { text-align: left; margin: 18px 0; font-size: 14px; line-height: 1.8; }
.free-welcome-note p { margin: 0; }
.free-welcome .link-row { justify-content: center; }
.tag-free { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
/* 2026-12-01: Agentsマスターコースに申請した人の札（会員の一覧・詳細） */
.tag-agents { background: #f5f3ff; color: #5b21b6; border-color: #ddd6fe; font-weight: 700; text-decoration: none; }
a.tag-agents:hover { background: #ede9fe; }
.pw-show { margin: -4px 0 4px; font-size: 14px; }

.profile-bonus { display: inline-block; margin: 0 0 12px; padding: 3px 12px; border-radius: 999px; background: #fef3c7; color: #92400e; font-weight: 700; font-size: 14.5px; }

/* 2026-11-27: 会員の詳細の「ほかのメールでもログイン」 */
.alias-box { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface); }
.alias-h { margin: 0 0 6px; font-weight: 700; font-size: 14px; }
.alias-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.alias-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.alias-form { display: flex; flex-wrap: wrap; gap: 6px; }
.alias-form input { flex: 1 1 180px; min-width: 0; }

.alias-in-list, .memo-in-list { display: block; margin-top: 2px; font-size: 12px; color: var(--sub); font-family: inherit; }
.memo-box textarea { width: 100%; }

/* 2026-11-27: お問い合わせ */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .field small { display: block; margin-top: 4px; font-size: 12.5px; }
.landing-help { display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 14px auto 0; padding: 14px 18px; border-radius: 14px; border: 1px solid #fde68a; background: #fffbeb; color: var(--text); text-decoration: none; text-align: left; }
.landing-help:hover { border-color: #f59e0b; }
.landing-help b { display: block; font-size: 14.5px; }
.landing-help small { display: block; color: var(--sub); font-size: 12.5px; line-height: 1.6; margin-top: 2px; }
.landing-help-go { margin-left: auto; font-weight: 700; color: #b45309; }
/* 2026-11-27: 入力欄の見出しの中の札（必須・任意・みんなに見える）は、横いっぱいの帯にしない（.field span の display:block が札にもかかっていた） */
.field span.tag { display: inline-block; margin: 0 0 0 6px; font-size: 11.5px; vertical-align: 1px; }

.pv-staff { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }

/* 2026-11-27: 講義のアウトプット */
.output-box { margin: 24px 0 16px; padding: 16px 18px; border: 2px solid #a7f3d0; border-radius: 14px; background: #f8fffb; }
.output-box h2 { font-size: 17px; margin: 0 0 6px; }
.output-box textarea { width: 100%; margin-bottom: 10px; }

/* ===== イベント（会場に集まる催し。2026-12-01。src/routes/meetups.tsx） ===== */
/* 下のタブが 7 つのとき（イベントが出ているとき） */
@media (max-width: 760px) {
  .tabbar.tabbar-7 { grid-template-columns: repeat(7, 1fr); }
  .tabbar.tabbar-7 a { font-size: 9.5px; letter-spacing: -.02em; }
  .tabbar.tabbar-7 a .ico { width: 36px; }
}
.tag-meetup { background: #fff1f2; color: #9f1239; border-color: #fecdd3; font-weight: 700; }
.tag-meetup.is-attended { background: var(--ok-soft); color: var(--ok); border-color: #a7f3d0; }
/* 会場ごとの色分け（2026-12-03。色は会場の並びの順: 1 青・2 オレンジ・3 緑・4 むらさき・5 ピンク・6 青緑。決まりは src/lib/meetups.ts の venueNo） */
.tag.tag-venue-1, .stat-venue-1, .row-venue-1 { --vc: #1d4ed8; --vb: #eff6ff; --vl: #bfdbfe; }
.tag.tag-venue-2, .stat-venue-2, .row-venue-2 { --vc: #c2410c; --vb: #fff7ed; --vl: #fdba74; }
.tag.tag-venue-3, .stat-venue-3, .row-venue-3 { --vc: #15803d; --vb: #f0fdf4; --vl: #86efac; }
.tag.tag-venue-4, .stat-venue-4, .row-venue-4 { --vc: #7e22ce; --vb: #faf5ff; --vl: #d8b4fe; }
.tag.tag-venue-5, .stat-venue-5, .row-venue-5 { --vc: #be185d; --vb: #fdf2f8; --vl: #f9a8d4; }
.tag.tag-venue-6, .stat-venue-6, .row-venue-6 { --vc: #0f766e; --vb: #f0fdfa; --vl: #5eead4; }
.tag[class*="tag-venue-"] { background: var(--vb); color: var(--vc); border-color: var(--vl); font-weight: 700; }
.tag-meetup[class*="tag-venue-"].is-attended::before { content: "✓ "; }
.tag-meetup[class*="tag-venue-"].is-waiting { border-style: dashed; background: #fff; }
[class*="stat-venue-"] { border-color: var(--vl); background: var(--vb); border-left: 6px solid var(--vc); }
[class*="stat-venue-"] b { color: var(--vc); }
table.mu-entries tr[class*="row-venue-"] > td:first-child { border-left: 5px solid var(--vc); }
table.mu-entries { font-size: 14px; }
table.mu-entries th, table.mu-entries td { padding: 8px 10px; }
table.mu-entries .tag, table.mu-entries .btn, table.mu-entries .nowrap, table.mu-entries th { white-space: nowrap; }
table.mu-entries td.mono:not(.nowrap) { overflow-wrap: anywhere; max-width: 260px; min-width: 215px; font-size: 13px; }
table.mu-entries td.nowrap { font-size: 13px; }
table.mu-entries th, table.mu-entries td { padding-left: 8px; padding-right: 8px; }
.mu-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.mu-filter a.tag { text-decoration: none; padding: 6px 14px; font-size: 14px; }
.mu-filter a.mu-filter-all { font-weight: 700; }
.mu-filter a.tag.is-on { box-shadow: 0 0 0 2px currentColor; }
a.mu-card { display: block; text-decoration: none; color: inherit; margin-top: 14px; transition: box-shadow .15s, border-color .15s; }
a.mu-card:hover { border-color: #c7d2fe; box-shadow: 0 8px 22px rgba(15, 23, 42, .08); }
.mu-card-top, .mu-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.mu-card-title { font-size: 20px; line-height: 1.45; margin: 0 0 8px; }
.mu-when, .mu-where { margin: 0 0 4px; font-weight: 600; }
.mu-where span { display: inline-block; }
.mu-summary { margin: 8px 0 0; }
.mu-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 0; }
.mu-coins { font-weight: 700; color: #92400e; }
.mu-hero { position: relative; overflow: hidden; padding-top: 22px; }
.mu-hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--brand-gradient); }
.mu-title { font-size: 26px; line-height: 1.4; margin: 0 0 10px; }
.mu-lead { font-size: 16px; margin: 0 0 14px; }
.mu-facts { margin: 0; display: grid; gap: 10px; }
.mu-facts > div { display: grid; grid-template-columns: 8em 1fr; gap: 10px; padding: 10px 12px; background: var(--surface); border-radius: 10px; }
.mu-facts dt { font-weight: 700; white-space: nowrap; }
.mu-facts dd { margin: 0; }
.mu-venue { display: block; }
.mu-cap { display: inline-block; margin-left: 8px; font-size: 13px; color: var(--sub); }
.mu-venue .tag, .choice .tag { margin-left: 6px; vertical-align: 1px; }
.tag-full { background: #f3f4f6; color: #4b5563; border-color: #d1d5db; font-weight: 700; }
.choice-off { opacity: .6; cursor: not-allowed; background: #f9fafb; }
.mu-body { white-space: pre-line; margin: 14px 0 0; line-height: 1.9; }
.mu-apply h2, .mu-done h2, .mu-checkin h2 { margin: 0 0 8px; font-size: 19px; }
.mu-done { border-color: #a7f3d0; background: #f0fdf9; }
.mu-wait { border-color: #fde68a; background: #fffbeb; }
.mu-wait h2 { margin: 0 0 8px; font-size: 19px; }
/* 「先にプロフィールの記載をお願いします」（プロフィールがまだの人に、申し込みの欄の代わりに出す。2026-12-02） */
.mu-until { margin: 2px 0 0; font-size: 14px; font-weight: 700; color: #b45309; }
.mu-gate { border-color: #fde68a; background: #fffbeb; scroll-margin-top: 84px; }
.mu-gate h2 { margin: 0 0 8px; font-size: 19px; }
.mu-gate-sub { margin: 14px 0 4px; font-weight: 700; font-size: 14px; }
.mu-gate-list { margin: 0 0 16px; padding-left: 1.3em; }
.mu-gate-list li { margin: 4px 0; }
.mu-venues { border: 0; padding: 0; margin: 0; }
.mu-venues legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.mu-join { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #a7f3d0; }
.mu-join p { margin: 0 0 10px; }
.mu-change summary { cursor: pointer; font-weight: 600; color: var(--sub); }
@media (max-width: 520px) {
  .mu-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .mu-title { font-size: 22px; }
}
/* 上のメニューが 7 つ（＋管理）になったので、せまいパソコンの幅でも 1 行におさめる（2026-12-01。字が 2 行に折れていた） */
.nav a { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1060px) {
  .site-header .container { gap: 10px; }
  .nav { gap: 0; }
  .nav a { font-size: 13px; padding: 8px 7px; }
  .nav .coin-pill { margin-left: 2px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .brand { gap: 7px; }
  .brand strong { font-size: 14px; }
  .nav a { font-size: 12.5px; padding: 8px 5px; }
  .nav .coin-pill small { display: none; }
}
