:root{
  --navy:#293D9B;
  --navy-dark:#2C3F75;
  --navy-black:#231F20;
  --blue:#186BBE;
  --cyan:#0D8AD5;
  --cyan-light:#26B9F1;
  --pale-blue:#E0F5FD;
  --pale-blue-2:#DCEEFB;
  --coral:#F36E93;
  --page-bg:#EFEFEF;
  --ink:#2B2B2B;
  --muted:#8A8A8A;
  --white:#fff;
  --page-w: 900px;
  --font-main:'Noto Sans JP','Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif;
}
*{box-sizing:border-box;}
body{
  margin:0;
  font-family:var(--font-main);
  background:var(--page-bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}

/* ---- App shell (index / course list) ---- */
.app-shell{
  max-width:1100px;
  margin:0 auto;
  padding:18px 16px 60px;
}

/* ---- Site-wide header / footer ---- */
.site-header{
  background:var(--navy);
  padding:10px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  position:sticky;
  top:0;
  z-index:50;
  box-shadow:0 2px 10px rgba(0,0,0,0.15);
}
.site-header a.brand{
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:#fff;
}
.site-header .brand-mark{
  display:inline-flex;
  color:var(--cyan-light);
}
.site-header .brand-text{
  font-weight:800;
  font-size:15px;
  color:#fff;
  letter-spacing:.01em;
}
.site-header .brand-text small{
  display:block;
  font-weight:500;
  font-size:10.5px;
  color:#b9c3ef;
}
.site-header nav a{
  color:#cfd7f5;
  text-decoration:none;
  font-size:12.5px;
  font-weight:700;
  margin-left:18px;
}
.site-header nav a:hover{ color:var(--cyan-light); }

.site-footer{
  text-align:center;
  padding:26px 16px 34px;
  color:#999;
  font-size:12px;
}

/* ---- Index / course-list page ---- */
.hero-band{
  background:linear-gradient(120deg,var(--navy-black) 0%,var(--navy) 45%,var(--blue) 78%,var(--cyan) 100%);
  padding:46px 16px 38px;
  text-align:center;
  color:#fff;
  position:relative;
  overflow:hidden;
}
.hero-band::after{
  content:"";
  position:absolute;
  right:-40px; top:-40px; bottom:-40px;
  width:46%;
  background-image:
    linear-gradient(60deg, rgba(255,255,255,0.07) 25%, transparent 25.5%, transparent 74.5%, rgba(255,255,255,0.07) 75%),
    linear-gradient(-60deg, rgba(255,255,255,0.07) 25%, transparent 25.5%, transparent 74.5%, rgba(255,255,255,0.07) 75%);
  background-size:64px 110px;
  pointer-events:none;
}
.hero-band .eyebrow{
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.14em;
  color:var(--cyan-light);
  margin:0 0 10px;
}
.hero-band h1{
  font-size:26px;
  font-weight:800;
  margin:0 0 10px;
  position:relative;
}
.hero-band p{
  color:#dbe2f7;
  font-size:14px;
  margin:0;
  position:relative;
}
.hero-band .hero-brand{
  margin-top:18px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  font-size:15px;
  position:relative;
}
.hero-band .hero-brand svg{ color:var(--cyan-light); }

.course-wrap{
  max-width:960px;
  margin:0 auto;
  padding:30px 16px 60px;
}
.course-wrap h2{
  font-size:16px;
  font-weight:800;
  color:var(--navy);
  border-bottom:2px solid var(--navy);
  padding-bottom:8px;
  margin:34px 0 14px;
  display:flex;
  align-items:baseline;
  gap:10px;
}
.course-wrap h2 .module-no{
  display:inline-block;
  background:var(--navy);
  color:#fff;
  font-size:12px;
  border-radius:6px;
  padding:2px 8px;
}
.lesson-list{
  display:flex;
  flex-direction:column;
  gap:9px;
}
.lesson-card{
  display:flex;
  align-items:center;
  gap:16px;
  background:#fff;
  border-radius:10px;
  padding:13px 18px;
  box-shadow:0 1px 6px rgba(0,0,0,0.06);
  text-decoration:none;
  color:inherit;
  transition:transform .15s ease, box-shadow .15s ease;
  border-left:4px solid var(--navy);
}
.lesson-card.enabled:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(41,61,155,0.18);
}
.lesson-card.disabled{
  opacity:0.6;
  cursor:default;
  border-left-color:#bbb;
}
.lesson-card .lesson-code{
  flex:0 0 58px;
  text-align:center;
  font-weight:800;
  font-size:12.5px;
  color:#fff;
  background:var(--navy);
  border-radius:7px;
  padding:6px 0;
}
.lesson-card.disabled .lesson-code{ background:#bbb; }
.lesson-card .lesson-title{
  flex:1;
  font-size:14.5px;
  font-weight:700;
  color:#333;
}
.lesson-card .lesson-duration{
  flex:0 0 auto;
  font-size:12.5px;
  color:#999;
}
.lesson-card .lesson-status{
  flex:0 0 auto;
  font-size:12px;
  font-weight:700;
  color:#aaa;
}

/* ================================================================
   レッスンページ: 固定シェル(動画+ページ送りタブは常時表示)
   ================================================================ */
html.lesson-page-html, body.lesson-page-body{
  height:100%;
  overflow:hidden;
  margin:0;
}
.lesson-shell{
  display:flex;
  flex-direction:column;
  height:100vh;
  background:var(--page-bg);
}
.lesson-topbar-mini{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:6px 16px;
  flex:0 0 auto;
  background:#fff;
}
.lesson-topbar-mini .back-link{
  color:#777;
  text-decoration:none;
  font-weight:700;
  font-size:12px;
  white-space:nowrap;
}
.lesson-topbar-mini .back-link:hover{ color:var(--navy); }

.pager-compact{ position:relative; flex:0 0 auto; z-index:70; }
.pager-toggle{
  display:flex;
  align-items:center;
  gap:6px;
  background:var(--navy);
  border:none;
  border-radius:8px;
  padding:5px 10px;
  font-family:inherit;
  font-size:12.5px;
  font-weight:800;
  color:#fff;
  cursor:pointer;
  box-shadow:0 1px 4px rgba(0,0,0,0.15);
}
.pager-toggle::after{ content:"▾"; font-size:10px; color:#cfd7f5; }
.pager-compact .page-tabs{
  position:absolute;
  top:100%;
  right:0;
  margin-top:4px;
  background:#fff;
  border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,0.18);
  padding:8px;
  opacity:0;
  transform:translateY(-6px);
  pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
  width:max-content;
  max-width:70vw;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.pager-compact:hover .page-tabs,
.pager-compact.open .page-tabs{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.page-tabs button{
  border:none;
  background:#f0f0f0;
  color:var(--muted);
  font-family:inherit;
  font-weight:700;
  font-size:13px;
  padding:8px 14px;
  border-radius:8px;
  cursor:pointer;
  transition:all .15s ease;
}
.page-tabs button.active{
  background:var(--navy);
  color:#fff;
}
.page-tabs button:hover:not(.active){ background:#e2e6f5; }

.progress-track-bar{ flex:0 0 auto; height:3px; background:#ddd; }
.progress-track-bar .progress-fill{ height:100%; background:linear-gradient(90deg,var(--navy),var(--cyan)); }

.lesson-split{
  display:flex;
  flex:1;
  min-height:0;
  gap:0;
  max-width:1700px;
  width:100%;
  margin:0 auto;
  padding:0 16px 10px;
}
.video-col{
  flex:0 0 42%;
  min-width:220px;
  max-width:75%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding-right:14px;
  min-height:0;
}
.video-stage{
  flex:1;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:4px 0;
}
.video-col .video-frame{
  position:relative;
  background:#000;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 4px 18px rgba(0,0,0,0.22);
}
.video-col .video-frame iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.video-col .video-frame .video-placeholder{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#9fb0e6;
  text-align:center;
  padding:20px;
  font-size:12.5px;
  line-height:1.7;
}
.video-col .video-frame .video-placeholder strong{
  color:#fff; font-size:14px;
}
.video-meta-line{
  flex:0 0 auto;
  padding:8px 4px 0;
  font-size:12px;
  color:#777;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.video-meta-line strong{ color:var(--navy); font-size:13px; }
.video-meta-line .sep{ margin:0 6px; color:#ccc; }

.col-resizer{
  flex:0 0 8px;
  cursor:col-resize;
  position:relative;
  align-self:stretch;
}
.col-resizer::after{
  content:"";
  position:absolute;
  top:0; bottom:0; left:50%;
  width:2px;
  margin-left:-1px;
  background:#ccc;
  border-radius:2px;
}
.col-resizer:hover::after,
.col-resizer.dragging::after{ background:var(--navy); }

.text-col{
  flex:1;
  min-width:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
.text-col-inner{ padding-bottom:20px; }

.sheet-wrap{
  background:var(--page-bg);
  border-radius:12px;
  min-height:600px;
  padding:6px 18px 0;
}
.lesson-page{ display:none; }
.lesson-page.active{ display:block; animation:fadein .25s ease; }
@keyframes fadein{ from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);} }

img.zoomable{ cursor:zoom-in; }
.img-modal-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,0.78);
  display:flex; align-items:center; justify-content:center;
  z-index:2000; cursor:zoom-out; padding:24px;
}
.img-modal-overlay img{ max-width:92vw; max-height:92vh; border-radius:8px; box-shadow:0 8px 34px rgba(0,0,0,0.5); }

.nav-buttons{
  display:flex;
  justify-content:space-between;
  max-width:1100px;
  margin:14px auto 0;
  padding:0 16px 16px;
}
.nav-buttons button{
  font-family:inherit;
  font-weight:700;
  font-size:14px;
  padding:10px 22px;
  border-radius:8px;
  border:none;
  background:#fff;
  color:var(--navy);
  box-shadow:0 2px 8px rgba(0,0,0,0.1);
  cursor:pointer;
}
.nav-buttons button:disabled{ opacity:.35; cursor:default; }
.nav-buttons button:hover:not(:disabled){ background:var(--navy); color:#fff; }

@media (max-width:980px){
  .lesson-split{ flex-direction:column; padding:0 10px 8px; gap:0; }
  .col-resizer{ flex:0 0 10px; width:100%; cursor:row-resize; align-self:auto; }
  .col-resizer::after{ top:50%; bottom:auto; left:0; right:0; margin-left:0; height:2px; width:auto; margin-top:-1px; }
  .video-col{ flex:0 0 40vh; max-width:none; max-height:none; padding-right:0; }
  .text-col{ flex:1 1 auto; }
  .text-col-inner{ zoom:0.94; }
}

/* ================================================================
   ワークブック・コンテンツ（PDFデザインの再現コンポーネント）
   ================================================================ */

/* ---- 扉ページ（第◯回タイトル） ---- */
.divider-page{
  min-height:520px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:60px 8px 0;
}
.divider-page .divider-title{
  font-size:24px;
  font-weight:800;
  color:#222;
  margin:0 0 14px;
}
.divider-page .divider-rule{
  height:6px;
  border-radius:3px;
  background:linear-gradient(90deg, rgba(41,61,155,0) 0%, var(--navy) 30%, var(--blue) 100%);
}

/* ---- 各コンテンツページ共通ヘッダー（第◯回 タイトルバー） ---- */
.workbook-header{
  position:relative;
  background:linear-gradient(120deg,var(--navy-black) 0%, var(--navy) 40%, var(--blue) 100%);
  color:#fff;
  padding:16px 22px;
  border-radius:10px;
  margin-bottom:18px;
  overflow:hidden;
  font-size:19px;
  font-weight:800;
  letter-spacing:.01em;
}
.workbook-header::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0; width:120px;
  background-image:
    linear-gradient(60deg, rgba(255,255,255,0.09) 25%, transparent 25.5%, transparent 74.5%, rgba(255,255,255,0.09) 75%),
    linear-gradient(-60deg, rgba(255,255,255,0.09) 25%, transparent 25.5%, transparent 74.5%, rgba(255,255,255,0.09) 75%);
  background-size:30px 52px;
  opacity:.8;
}
.workbook-header span{ position:relative; margin-left:6px; }

/* ---- イントロ：章立てリスト（水色ボックス） ---- */
.intro-box{
  background:var(--pale-blue);
  border-radius:14px;
  padding:20px 26px;
  margin:0 0 20px;
}
.intro-item{
  display:flex;
  align-items:center;
  gap:14px;
  padding:8px 0;
  font-size:14.5px;
  font-weight:700;
  color:var(--navy);
}
.intro-item .pill{
  flex:0 0 auto;
  background:var(--navy-dark);
  color:#fff;
  font-size:12.5px;
  font-weight:700;
  padding:5px 14px;
  border-radius:999px;
  white-space:nowrap;
}

/* ---- 本レッスンのゴール（旗型ボックス） ---- */
.goal-flag{
  display:flex;
  align-items:stretch;
  margin:0 0 26px;
}
.goal-flag .flag-label{
  flex:0 0 118px;
  background:var(--navy);
  color:#fff;
  font-weight:800;
  font-size:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.4;
  padding:10px 6px;
  clip-path:polygon(0 0,100% 0,88% 50%,100% 100%,0 100%);
}
.goal-flag .flag-body{
  flex:1;
  background:#fff;
  border:1.5px solid #e2e2e2;
  border-left:none;
  padding:14px 20px 14px 34px;
  display:flex;
  flex-direction:column;
  gap:8px;
  justify-content:center;
}
.goal-flag .flag-body .goal-item{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14.5px;
  font-weight:600;
}
.goal-flag .flag-body .goal-item svg{ flex:0 0 auto; color:var(--navy); }

/* ---- 第◯章 セクションタグバー（グラデーション） ---- */
.section-tag-bar{
  display:flex;
  align-items:stretch;
  margin:28px 0 14px;
  height:38px;
  border-radius:3px;
  overflow:hidden;
  background:linear-gradient(90deg, var(--navy) 0%, var(--blue) 55%, var(--cyan) 100%);
}
.section-tag-bar .tag-chip{
  flex:0 0 auto;
  background:var(--navy-black);
  color:#fff;
  font-weight:700;
  font-size:13.5px;
  display:flex;
  align-items:center;
  padding:0 16px;
  white-space:nowrap;
}
.section-tag-bar .tag-text{
  flex:1;
  display:flex;
  align-items:center;
  color:#fff;
  font-weight:700;
  font-size:14px;
  padding:0 16px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.section-tag-bar .tag-dots{
  flex:0 0 70px;
  background-image:
    linear-gradient(90deg, transparent 50%, rgba(255,255,255,0.55) 50%),
    linear-gradient(0deg, transparent 50%, rgba(255,255,255,0.55) 50%);
  background-size:10px 10px;
  opacity:.9;
}

/* ---- レッスン映像のポイント（見出し） ---- */
.info-point{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
  padding-bottom:10px;
  border-bottom:1.5px solid #333;
  font-size:14.5px;
  font-weight:800;
  color:#222;
}
.info-point .info-circle{
  flex:0 0 auto;
  width:22px; height:22px;
  border:2px solid var(--navy);
  border-radius:50%;
  color:var(--navy);
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:800;
}

/* ---- 定義見出し ＋ 本文 ---- */
.def-heading{
  text-align:center;
  font-size:22px;
  font-weight:800;
  color:#222;
  margin:6px 0 14px;
}
.body-text{ font-size:14.5px; line-height:1.85; margin:8px 0; color:#333; }
.body-text.small{ font-size:13.5px; }

/* ---- 要するに… まとめ吹き出し ---- */
.summary-row{
  display:flex;
  align-items:center;
  gap:18px;
  margin:22px 0 10px;
  flex-wrap:wrap;
}
.summary-row .summary-circle{
  flex:0 0 118px;
  height:118px;
  border-radius:50%;
  background:var(--pale-blue-2);
  color:var(--navy);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13.5px;
  font-weight:700;
  text-align:center;
}
.summary-row .summary-text{
  flex:1 1 320px;
  font-size:18px;
  font-weight:800;
  color:var(--navy);
  line-height:1.6;
}

/* ---- 中央矢印（下向き） ---- */
.arrow-down{
  display:flex;
  justify-content:center;
  margin:14px 0;
}
.arrow-down svg{ color:#222; }

/* ---- 例示ボックス（町の定食屋さん 等） ---- */
.example-box{
  border:1px solid #333;
  border-radius:4px;
  padding:12px 18px;
  font-size:14.5px;
  font-weight:700;
  text-align:center;
  margin:10px 0;
}
.flow-row{
  display:flex;
  gap:14px;
  margin:14px 0;
  flex-wrap:wrap;
}
.flow-box{
  flex:1 1 200px;
  background:var(--pale-blue);
  border-radius:8px;
  padding:14px 16px;
  min-width:0;
}
.flow-box.dark{ background:var(--navy); color:#fff; }
.flow-box .flow-label{
  display:inline-block;
  font-weight:800;
  font-size:13px;
  margin-bottom:6px;
}
.flow-box .flow-sub{ font-size:11.5px; color:var(--muted); margin-bottom:4px; }
.flow-box.dark .flow-sub{ color:#cfd7f5; }
.flow-box .flow-tagline{
  display:inline-block;
  background:rgba(255,255,255,0.85);
  color:var(--navy);
  font-size:11.5px;
  font-weight:800;
  border-radius:5px;
  padding:2px 8px;
  margin-bottom:6px;
}
.flow-box p{ margin:2px 0; font-size:13px; line-height:1.6; }
.flow-arrow-mid{
  flex:0 0 auto;
  align-self:center;
  color:#222;
}

/* ---- 結論の帯（DXの本質とは 等） ---- */
.tag-line{
  display:flex;
  align-items:center;
  gap:0;
  margin:18px 0;
  border-radius:4px;
  overflow:hidden;
  flex-wrap:wrap;
}
.tag-line .tag-key{
  background:#dedede;
  color:#333;
  font-weight:800;
  font-size:13.5px;
  padding:10px 16px;
  white-space:nowrap;
}
.tag-line .tag-val{
  background:#f2f2f2;
  color:#333;
  font-size:13.5px;
  padding:10px 16px;
  flex:1;
}

/* ---- 映像視聴メモ（ドット方眼 + 付箋カード） ---- */
.memo-panel{
  background:
    radial-gradient(circle, #d8d8d8 1px, transparent 1.2px) 0 0/14px 14px,
    #fafafa;
  border:1px solid #e2e2e2;
  border-radius:6px;
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-bottom:8px;
}
.memo-card{
  background:#fff;
  border-left:4px solid var(--navy);
  border-radius:4px;
  padding:14px 18px;
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
  font-size:13.5px;
  line-height:1.75;
  color:#333;
}
.memo-card .memo-title-chip{
  display:inline-block;
  background:var(--navy-dark);
  color:#fff;
  font-size:12px;
  font-weight:700;
  padding:4px 12px;
  border-radius:3px;
  margin-bottom:8px;
}
.memo-card .memo-heading{
  font-size:15px;
  font-weight:800;
  color:var(--navy);
  margin:2px 0 6px;
}
.memo-card .memo-heading .accent{ color:var(--coral); }
.memo-card .accent{ color:var(--coral); font-weight:700; }
.memo-card .memo-example{ color:var(--muted); font-size:12.5px; margin-top:4px; }

/* ---- アウトプット：課題提起ボックス ---- */
.output-box{
  position:relative;
  border:1.5px solid var(--navy);
  border-radius:2px;
  padding:26px 30px 22px;
  margin:18px 0 28px;
}
.output-box::before,
.output-box::after{
  content:"";
  position:absolute;
  width:16px; height:16px;
  border:2px solid var(--navy);
  top:-2px;
}
.output-box::before{ left:-2px; border-right:none; border-bottom:none; }
.output-box::after{ right:-2px; border-left:none; border-bottom:none; }
.output-box .output-title{
  text-align:center;
  font-weight:800;
  font-size:15px;
  color:var(--navy);
  letter-spacing:.3em;
  margin:0 0 16px;
}
.output-box p{ font-size:14px; line-height:1.85; margin:6px 0; color:#333; }

.q-item{ margin:22px 0; }
.q-item .q-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:14.5px;
  font-weight:700;
  color:#222;
  margin-bottom:10px;
}
.q-item .q-num{
  flex:0 0 auto;
  width:26px; height:26px;
  background:var(--navy);
  color:#fff;
  border-radius:5px;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:800;
}
.answer-area{
  background:#f5f5f5;
  border-radius:6px;
  padding:16px 18px;
}
.answer-area .answer-line{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13.5px;
  font-weight:700;
  color:#333;
  margin-bottom:6px;
}
.answer-area .answer-line::before{ content:"■"; color:var(--navy); font-size:10px; }
.answer-area textarea{
  width:100%;
  border:none;
  border-bottom:1px solid #ccc;
  background:transparent;
  font-family:inherit;
  font-size:13.5px;
  padding:6px 2px 10px;
  resize:vertical;
  min-height:38px;
}
.answer-area textarea:focus{ outline:none; border-color:var(--navy); }

.choice-row{
  display:flex;
  gap:28px;
  flex-wrap:wrap;
  padding:16px 18px 4px;
  background:#f5f5f5;
  border-radius:6px 6px 0 0;
}
.choice-row label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13.5px;
  font-weight:700;
  cursor:pointer;
}
.choice-row input[type=checkbox]{
  width:16px; height:16px;
  accent-color:var(--navy);
}
.answer-area.with-choice{ border-radius:0 0 6px 6px; }

/* ---- DXまでの3ステップ（階段） ---- */
.step-flow{
  display:flex;
  align-items:flex-end;
  gap:0;
  margin:10px 0 18px;
}
.step-flow .step-col{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.step-flow .step-figure{
  height:46px;
  display:flex;
  align-items:flex-end;
  color:var(--navy);
  margin-bottom:6px;
}
.step-flow .step-col:nth-child(2) .step-figure{ height:58px; }
.step-flow .step-col:nth-child(3) .step-figure{ height:70px; color:var(--cyan); }
.step-flow .step-tag{
  width:100%;
  background:#dfe3ee;
  color:#333;
  font-weight:800;
  font-size:12.5px;
  padding:5px 0;
}
.step-flow .step-col:nth-child(2) .step-tag{ background:var(--navy-dark); color:#fff; }
.step-flow .step-col:nth-child(3) .step-tag{ background:var(--navy-black); color:#fff; }
.step-flow .step-block{
  width:100%;
  padding:14px 10px 18px;
  background:#eef0f5;
}
.step-flow .step-col:nth-child(2) .step-block{ background:#dbe6f5; }
.step-flow .step-col:nth-child(3) .step-block{ background:linear-gradient(160deg,var(--navy),var(--cyan)); color:#fff; }
.step-flow .step-name{ font-weight:800; font-size:14.5px; margin-bottom:2px; }
.step-flow .step-en{ font-size:10.5px; color:var(--muted); margin-bottom:8px; }
.step-flow .step-col:nth-child(3) .step-en{ color:#dbe9fb; }
.step-flow .step-big{ font-size:22px; font-weight:800; margin:2px 0; }
.step-flow .step-desc{ font-size:12px; line-height:1.6; }

.compare-tags{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin:10px 0 4px;
}
.compare-tags .compare-tag{
  flex:1 1 260px;
  background:#eee;
  border-radius:5px;
  padding:9px 14px;
  font-size:13px;
  text-align:center;
  font-weight:700;
  color:#333;
}
.compare-tags .compare-tag b{ color:var(--navy); }

/* ---- 2列比較（持続的なデータ活用／デジタル技術の最適導入） ---- */
.compare-two{
  display:flex;
  gap:2px;
  margin:16px 0;
  flex-wrap:wrap;
}
.compare-two .compare-col{
  flex:1 1 260px;
  min-width:0;
}
.compare-two .compare-head{
  font-weight:800;
  font-size:14.5px;
  text-align:center;
  padding:12px 10px;
}
.compare-two .compare-col:first-child .compare-head{ background:var(--pale-blue); color:var(--navy); }
.compare-two .compare-col:last-child .compare-head{ background:var(--navy); color:#fff; }
.compare-two .compare-body{
  background:#f7f7f7;
  padding:14px 16px;
  font-size:13px;
  line-height:1.75;
  color:#333;
  height:100%;
}

/* ---- 車の図解（DXという車） ---- */
.car-row{
  display:flex;
  align-items:center;
  gap:18px;
  margin:16px 0;
  flex-wrap:wrap;
}
.car-row .car-badge{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--navy);
  color:#fff;
  font-weight:800;
  font-size:15px;
  padding:10px 18px 10px 12px;
  border-radius:6px 20px 20px 6px;
}
.car-row .car-question{
  font-size:16px;
  font-weight:800;
  color:#222;
}

/* ---- 本日のまとめ カード ---- */
.matome-card .memo-title-chip{ background:var(--navy); }

.footer-bar{
  text-align:center;
  margin-top:30px;
  padding-top:14px;
  border-top:1px solid #ddd;
}
.footer-bar .pagenum{ font-size:13px; color:#666; margin-bottom:4px; }
.footer-bar .copy{ font-size:10.5px; color:#aaa; }

@media (max-width:720px){
  .flow-arrow-mid{ transform:rotate(90deg); }
  .goal-flag{ flex-direction:column; }
  .goal-flag .flag-label{ clip-path:none; border-radius:6px 6px 0 0; }
  .goal-flag .flag-body{ border-left:1.5px solid #e2e2e2; padding-left:20px; }
  .step-flow{ flex-direction:column; }
  .step-flow .step-col{ width:100%; }
}

/* ================================================================
   管理ダッシュボード (admin/index.html)
   ================================================================ */
.admin-shell{ min-height:100vh; background:var(--page-bg); }
.admin-topbar{
  background:var(--navy);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 22px;
}
.admin-topbar .who{ font-size:12.5px; color:#cfd7f5; }
.admin-topbar .who b{ color:#fff; }
.admin-topbar button.logout-btn{
  background:rgba(255,255,255,0.14);
  color:#fff;
  border:none;
  border-radius:6px;
  padding:6px 14px;
  font-family:inherit;
  font-size:12.5px;
  font-weight:700;
  cursor:pointer;
}
.admin-topbar button.logout-btn:hover{ background:rgba(255,255,255,0.24); }

.login-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(120deg,var(--navy-black) 0%, var(--navy) 45%, var(--blue) 100%);
  padding:20px;
}
.login-card{
  background:#fff;
  border-radius:14px;
  padding:38px 36px;
  width:100%;
  max-width:360px;
  box-shadow:0 12px 40px rgba(0,0,0,0.25);
}
.login-card h1{ font-size:16px; font-weight:800; color:var(--navy); margin:0 0 4px; text-align:center; }
.login-card .sub{ font-size:12px; color:var(--muted); text-align:center; margin:0 0 22px; }
.form-row{ margin-bottom:14px; }
.form-row label{ display:block; font-size:12.5px; font-weight:700; color:#444; margin-bottom:5px; }
.form-row input[type=text], .form-row input[type=email], .form-row input[type=password], .form-row select{
  width:100%;
  border:1.5px solid #ddd;
  border-radius:7px;
  padding:9px 12px;
  font-family:inherit;
  font-size:14px;
}
.form-row input:focus, .form-row select:focus{ outline:none; border-color:var(--navy); }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  background:var(--navy);
  color:#fff;
  border:none;
  border-radius:8px;
  padding:10px 20px;
  font-family:inherit;
  font-size:13.5px;
  font-weight:700;
  cursor:pointer;
}
.btn:hover{ filter:brightness(1.08); }
.btn.btn-block{ width:100%; }
.btn.btn-outline{ background:#fff; color:var(--navy); border:1.5px solid var(--navy); }
.btn.btn-danger{ background:#fff; color:#c0392b; border:1.5px solid #e0a8a0; }
.btn.btn-sm{ padding:6px 12px; font-size:12px; }
.form-error{ color:#c0392b; font-size:12.5px; margin:10px 0 0; min-height:16px; text-align:center; }

.admin-wrap{ max-width:1100px; margin:0 auto; padding:24px 20px 60px; }
.tabbar{ display:flex; gap:8px; margin-bottom:20px; flex-wrap:wrap; }
.tabbar button{
  background:#fff;
  border:1.5px solid #ddd;
  color:#555;
  font-family:inherit;
  font-weight:700;
  font-size:13px;
  padding:9px 18px;
  border-radius:8px;
  cursor:pointer;
}
.tabbar button.active{ background:var(--navy); color:#fff; border-color:var(--navy); }

.panel-card{
  background:#fff;
  border-radius:12px;
  padding:22px 24px;
  margin-bottom:20px;
  box-shadow:0 1px 6px rgba(0,0,0,0.06);
}
.panel-card h2{ font-size:15px; font-weight:800; color:var(--navy); margin:0 0 16px; }
.panel-card h3{ font-size:13.5px; font-weight:800; color:#333; margin:20px 0 10px; }

.data-table{ width:100%; border-collapse:collapse; font-size:13px; }
.data-table th{
  text-align:left;
  font-size:11.5px;
  color:var(--muted);
  font-weight:700;
  padding:8px 10px;
  border-bottom:2px solid #eee;
  white-space:nowrap;
}
.data-table td{ padding:9px 10px; border-bottom:1px solid #f0f0f0; vertical-align:middle; }
.data-table tr:hover td{ background:#fafbff; }

.badge{ display:inline-block; font-size:11px; font-weight:700; padding:3px 9px; border-radius:999px; }
.badge.on{ background:#e3f6ea; color:#1b7a43; }
.badge.off{ background:#f2f2f2; color:#999; }
.badge.role-super{ background:var(--navy); color:#fff; }
.badge.role-admin{ background:var(--pale-blue); color:var(--navy); }
.badge.role-student{ background:#f0f0f0; color:#555; }

.module-check-grid{ display:flex; flex-wrap:wrap; gap:10px; margin:8px 0 4px; }
.module-check-grid label{
  display:flex; align-items:center; gap:6px;
  background:#f5f5f5; border-radius:7px; padding:7px 12px;
  font-size:12.5px; font-weight:700; cursor:pointer;
}
.module-check-grid input{ accent-color:var(--navy); }

.inline-form{ display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; margin-bottom:16px; }
.inline-form .form-row{ margin-bottom:0; min-width:170px; flex:1; }

.company-select-bar{ display:flex; align-items:center; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.company-select-bar select{ min-width:220px; }

.empty-hint{ color:var(--muted); font-size:12.5px; padding:14px 0; }
.toast{
  position:fixed; bottom:24px; right:24px;
  background:var(--navy); color:#fff;
  padding:12px 20px; border-radius:8px;
  font-size:13px; font-weight:700;
  box-shadow:0 6px 20px rgba(0,0,0,0.2);
  z-index:999;
}
