/* JICプログラム Eラーニング ― 動画と同じ えんじ＋白 */
:root {
  --red: #9e1e34;      /* えんじ */
  --red-d: #7c1428;    /* 濃いえんじ */
  --red-l: #f7e9ec;    /* うすいえんじ */
  --gold: #dec4a0;     /* 帯の下の細い線 */
  --bg: #f1f0ef;
  --ink: #282828;
  --gray: #787878;
  --line: #e2dfdc;
  --white: #fff;
  --ok: #2f7d4f;
  --radius: 10px;
  --serif: "Noto Serif JP", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.8; font-size: 15px; }
a { color: var(--red); }
button { font-family: inherit; }
.hidden { display: none !important; }

/* ---------- 上の帯 ---------- */
.topbar { background: var(--red); color: #fff; border-bottom: 3px solid var(--gold); }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-logo { background: #fff; border-radius: 6px; padding: 4px 8px; display: flex; }
.brand-logo img { height: 34px; display: block; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.badge { display: inline-block; background: #fff; color: var(--red); font-family: var(--serif); font-weight: 700; border-radius: 5px; padding: 0 8px; font-size: 14px; line-height: 1.7; }
.topnav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.topnav a, .topnav button { color: #fff; text-decoration: none; background: transparent; border: 0; font-size: 14px; padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.topnav a:hover, .topnav button:hover { background: rgba(255,255,255,.14); }
.topnav .who { font-size: 13px; opacity: .9; padding: 0 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; }
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.pad { padding: 24px 28px; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 10px 22px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--red-d); }
.btn.ghost { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.btn.ghost:hover { background: var(--red-l); }
.btn.soft { background: var(--red-l); color: var(--red); }
.btn.done { background: #e7f3ec; color: var(--ok); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }

/* ---------- 入口 ---------- */
.hero { background: var(--red); color: #fff; border-radius: var(--radius); padding: 44px 40px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--gold); }
.hero .eyebrow { letter-spacing: .25em; font-size: 12px; opacity: .85; }
.hero h1 { font-family: var(--serif); font-size: 34px; margin: 6px 0 10px; }
.hero p { margin: 0; opacity: .95; }
.steps { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.steps span { background: rgba(255,255,255,.14); border-radius: 30px; padding: 4px 16px 4px 6px; font-size: 14px; }
.steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--red); margin-right: 8px; font-size: 13px; }
.section { margin-top: 30px; }
.step-label { color: var(--red); font-weight: 700; letter-spacing: .15em; font-size: 12px; }
.section h2 { font-family: var(--serif); font-size: 22px; margin: 2px 0 6px; }
.section .lead { color: var(--gray); margin: 0 0 16px; }
.status { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: #bbb; }
.status .dot.on { background: var(--ok); }
.course-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.course-card { overflow: hidden; display: flex; flex-direction: column; }
.course-card .body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-card h3 { margin: 0; font-size: 17px; }
.course-card .meta { color: var(--gray); font-size: 13px; }
.lock { font-size: 12px; color: var(--red); font-weight: 700; }

/* コースの表紙（写真のかわりに えんじの帯） */
.cover { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--red) 0%, var(--red-d) 100%); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; position: relative; }
.cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold); }
.cover .cv-logo { background: #fff; border-radius: 6px; padding: 5px 10px; }
.cover .cv-logo img { height: 30px; display: block; }
.cover .cv-sub { font-family: var(--serif); font-size: 15px; opacity: .9; }
.cover .cv-title { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: .06em; }
.cover.big .cv-title { font-size: 42px; }
.cover.big .cv-logo img { height: 40px; }

/* ---------- ログイン ---------- */
.auth { max-width: 440px; margin: 20px auto; }
.auth h1 { font-family: var(--serif); font-size: 24px; margin: 0 0 4px; text-align: center; }
.auth .sub { text-align: center; color: var(--gray); margin: 0 0 20px; font-size: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.field input { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; }
.field input:focus { outline: none; border-color: var(--red); }
.err { color: var(--red); font-size: 13px; min-height: 1.4em; margin: 4px 0 8px; }
.auth .alt { text-align: center; font-size: 14px; margin-top: 16px; }
.note { font-size: 12px; color: var(--gray); background: #faf8f6; border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; margin-top: 16px; }

/* ---------- コースのページ ---------- */
.crumbs { font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.crumbs a { color: var(--gray); }
.course-head h1 { font-family: var(--serif); font-size: 28px; margin: 0 0 4px; }
.course-head .cat { font-size: 13px; color: var(--gray); }
.course-grid { display: grid; grid-template-columns: 1fr 330px; gap: 26px; margin-top: 18px; align-items: start; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0 18px; }
.tabs button { background: none; border: 0; padding: 10px 16px; font-size: 14px; cursor: pointer; color: var(--gray); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--red); border-bottom-color: var(--red); font-weight: 700; }
.learn-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; list-style: none; padding: 0; margin: 0; }
.learn-list li { padding-left: 26px; position: relative; }
.learn-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.h-section { font-family: var(--serif); font-size: 19px; margin: 28px 0 12px; }

/* カリキュラム（アコーディオン） */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; border: 0; padding: 13px 18px; font-size: 15px; font-weight: 700; cursor: pointer; color: var(--ink); }
.acc-head:hover { background: #fbf7f7; }
.acc-head .chev { margin-left: auto; transition: transform .2s; color: var(--gray); }
.acc-item.open .acc-head { color: var(--red); background: var(--red-l); }
.acc-item.open .chev { transform: rotate(180deg); }
.acc-body { display: none; }
.acc-item.open .acc-body { display: block; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 30px; border-top: 1px solid #f3f1ef; font-size: 14px; color: var(--ink); text-decoration: none; }
.acc-row:hover { background: #faf8f6; }
.acc-row .dur { margin-left: auto; color: var(--gray); font-size: 13px; }
.acc-row.reserved { color: #aaa; }
.ico { width: 18px; height: 18px; flex: none; color: var(--gray); }

/* 右の進み具合の箱 */
.side-box { padding: 20px; }
.side-box + .side-box { margin-top: 16px; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray); }
.bar { height: 8px; background: #ece8e5; border-radius: 9px; overflow: hidden; margin: 6px 0 16px; }
.bar > i { display: block; height: 100%; background: var(--red); border-radius: 9px; transition: width .3s; }
.side-info { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.side-info li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid #f1eeeb; }
.side-info li:first-child { border-top: 0; }
.side-info span:first-child { color: var(--gray); }
.complete-note { display: flex; gap: 10px; background: #fdf6e9; border: 1px solid #f1dfb8; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-top: 12px; }
.enrolled { font-size: 12px; color: var(--gray); margin-top: 10px; text-align: center; }
.simple-list { margin: 0; padding-left: 1.2em; }

/* コースのパスワード */
.locked { max-width: 520px; margin: 30px auto; text-align: center; }
.locked .icon { font-size: 34px; }
.locked h2 { font-family: var(--serif); margin: 6px 0; }
.locked form { display: flex; gap: 8px; margin-top: 14px; }
.locked input { flex: 1; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; }

/* ---------- 学習画面 ---------- */
.learn { display: grid; grid-template-columns: 340px 1fr; height: 100vh; }
.l-side { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.l-side-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.l-side-head .bar { margin: 6px 0 0; }
.l-curr { overflow-y: auto; flex: 1; }
.l-topic { border-bottom: 1px solid #f1eeeb; }
.l-topic-head { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; text-align: left; padding: 11px 14px; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--ink); }
.l-topic-head .cnt { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--gray); }
.l-topic.open .l-topic-head { color: var(--red); }
.l-items { display: none; padding-bottom: 6px; }
.l-topic.open .l-items { display: block; }
.l-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 14px 8px 22px; text-decoration: none; color: var(--ink); font-size: 13.5px; line-height: 1.5; }
.l-item:hover { background: #faf8f6; }
.l-item.on { background: var(--red-l); box-shadow: inset 3px 0 0 var(--red); }
.l-item .sub { display: block; font-size: 11.5px; color: var(--gray); }
.l-item.reserved { color: #aaa; }
.chk { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #c9c4bf; flex: none; margin-top: 2px; display: grid; place-items: center; }
.chk.on { background: var(--ok); border-color: var(--ok); }
.chk.on::after { content: ""; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.chk.none { border-style: dashed; }

.l-main { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.l-top { background: var(--red); color: #fff; display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 3px solid var(--gold); }
.l-top a, .l-top button { color: #fff; }
.l-top .back { text-decoration: none; font-size: 20px; line-height: 1; }
.l-top .ttl { font-family: var(--serif); font-weight: 700; font-size: 16px; }
.l-top .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.l-top .btn-top { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4); border-radius: 6px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.l-top .btn-top[disabled] { opacity: .5; cursor: not-allowed; }
.l-top .menu { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; }
.l-scroll { flex: 1; overflow-y: auto; }
.l-content { max-width: 920px; margin: 0 auto; padding: 24px 24px 30px; }
.l-content h1 { font-family: var(--serif); font-size: 24px; margin: 4px 0 16px; line-height: 1.5; }
.l-kind { font-size: 12px; color: var(--red); font-weight: 700; letter-spacing: .1em; }
.doc { padding: 26px 30px; }
.doc h3 { font-family: var(--serif); color: var(--red); font-size: 17px; margin: 22px 0 6px; padding-left: 10px; border-left: 4px solid var(--red); line-height: 1.5; }
.doc h3:first-child { margin-top: 0; }
.doc ul { padding-left: 1.3em; margin: 8px 0; }
.doc li { margin: 4px 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--red-l); color: var(--red-d); }
.doc strong { background: linear-gradient(transparent 62%, #ffe27a 62%); }
.goal-box { background: #faf8f6; border: 1px solid var(--line); border-radius: 8px; padding: 14px 20px; }
.goal-box .t { font-weight: 700; font-size: 14px; }
.empty { text-align: center; color: var(--gray); padding: 50px 20px; }
.empty .big { font-size: 30px; }

/* 動画の枠（今は入れていない） */
.player { aspect-ratio: 16/9; background: #1c1c1e; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; gap: 10px; position: relative; }
.player video, .player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player .ph-logo { background: #fff; border-radius: 6px; padding: 5px 10px; opacity: .95; }
.player .ph-logo img { height: 34px; display: block; }
.player .ph-title { font-family: var(--serif); font-size: 22px; font-weight: 700; text-align: center; padding: 0 20px; }
.player .ph-sub { font-size: 13px; opacity: .7; }
.player .ph-play { width: 64px; height: 64px; border-radius: 50%; background: var(--red); display: grid; place-items: center; opacity: .55; }
.player .ph-play::after { content: ""; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }

/* 概要・Notes・コメント */
.ltabs { display: flex; gap: 2px; margin-top: 18px; border-bottom: 1px solid var(--line); }
.ltabs button { background: none; border: 0; padding: 9px 14px; font-size: 14px; cursor: pointer; color: var(--gray); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.ltabs button.on { color: var(--red); border-bottom-color: var(--red); font-weight: 700; }
.ltab-body { padding-top: 16px; }
textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; resize: vertical; min-height: 90px; background: #fff; }
textarea:focus { outline: none; border-color: var(--red); }
.row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.note-item, .cmt { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-top: 10px; }
.note-item .meta, .cmt .meta { font-size: 12px; color: var(--gray); display: flex; gap: 10px; align-items: center; }
.note-item .meta button, .cmt .meta button { margin-left: auto; background: none; border: 0; color: var(--gray); cursor: pointer; font-size: 12px; }
.note-item .txt, .cmt .txt { white-space: pre-wrap; margin-top: 4px; }

.l-foot { background: #fff; border-top: 1px solid var(--line); padding: 10px 18px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.l-foot .nav { background: none; border: 0; color: var(--ink); cursor: pointer; font-size: 14px; padding: 6px 10px; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.l-foot .nav[aria-disabled="true"] { visibility: hidden; }
.l-foot .prev { margin-right: auto; }
.l-foot .next { margin-left: auto; }

/* ---------- ダッシュボード ---------- */
.dash { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.dash-nav { padding: 12px; position: sticky; top: 16px; }
.dash-nav a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14px; }
.dash-nav a.on { background: var(--red-l); color: var(--red); font-weight: 700; }
.dash h1 { font-family: var(--serif); font-size: 24px; margin: 0 0 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 16px 18px; }
.stat .k { font-size: 13px; color: var(--gray); }
.stat .v { font-size: 28px; font-weight: 700; color: var(--red); line-height: 1.3; }
.cont { display: flex; gap: 18px; padding: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.cont .cover { width: 220px; flex: none; border-radius: 6px; overflow: hidden; }
.cont .cover .cv-title { font-size: 20px; }
.cont .cover .cv-logo img { height: 20px; }
.cont .cover .cv-sub { font-size: 11px; }
.cont .info { flex: 1; }
.cont .info .bar { margin-bottom: 0; }
.dash-h { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 0 10px; }
.dash-h h2 { font-size: 16px; margin: 0; }
.dash-note { display: block; text-decoration: none; color: var(--ink); }
.dash-note .where { font-size: 12px; color: var(--red); font-weight: 700; }

/* ---------- スマホ ---------- */
@media (max-width: 900px) {
  .course-grid, .dash { grid-template-columns: 1fr; }
  .learn-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .learn { grid-template-columns: 1fr; }
  .l-side { position: fixed; inset: 0 auto 0 0; width: 86vw; max-width: 360px; z-index: 20; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 30px rgba(0,0,0,.2); }
  .learn.side-open .l-side { transform: none; }
  .l-top .menu { display: block; }
  .brand-name { font-size: 16px; }
  .topnav .who { display: none; }
  .hero { padding: 30px 24px; }
  .hero h1 { font-size: 26px; }
  .cont { flex-direction: column; align-items: stretch; }
  .cont .cover { width: 100%; }
  .doc { padding: 20px; }
}
.player video { background: #000; }
.resume-tip { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: rgba(0,0,0,.75); color: #fff; font-size: 13px; padding: 6px 14px; border-radius: 20px; pointer-events: none; }
/* 公開先（Netlify 無料枠）の右下のバッジに「次」が隠れないように */
.l-foot { padding-right: 200px; }
@media (max-width: 900px) { .l-foot { padding-right: 18px; padding-bottom: 52px; } }

/* ---------- イベントカレンダー ---------- */
.cal { padding: 20px 22px; }
.cal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-btn { background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 16px; font-size: 14px; cursor: pointer; color: var(--ink); }
.cal-btn:hover { border-color: var(--red); color: var(--red); }
.cal-btn.sq { padding: 6px 12px; font-size: 18px; line-height: 1.1; }
.cal-title { font-family: var(--serif); font-weight: 700; font-size: 22px; margin-left: 8px; }
.cal-sel { margin-left: auto; display: flex; gap: 8px; }
.cal-sel select { font: inherit; font-size: 14px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; }
.cal-demo { font-size: 12px; color: var(--gray); background: #faf8f6; border: 1px dashed var(--line); border-radius: 8px; padding: 6px 12px; margin-bottom: 10px; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--gray); margin-bottom: 10px; }
.cal-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 5px; vertical-align: -1px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-wd { background: #f6f3f1; text-align: center; font-size: 13px; padding: 6px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--gray); }
.cal-wd:nth-child(6) { color: #3b6fb6; } .cal-wd:nth-child(7) { color: var(--red); }
.cal-day { min-height: 118px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 5px 6px; background: #fff; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day.other { background: #fbfaf9; }
.cal-day.other .cal-num { color: #c3bdb7; }
.cal-num { text-align: right; font-size: 13px; color: var(--ink); }
.cal-day.today .cal-num { color: #fff; }
.cal-day.today .cal-num::before { content: ""; }
.cal-day.today .cal-num { justify-self: end; margin-left: auto; background: var(--red); border-radius: 12px; padding: 0 8px; }
.cal-ev { display: flex; flex-direction: column; align-items: flex-start; text-align: left; width: 100%; background: #f8f6f5; border: 0; border-left: 3px solid var(--c); border-radius: 5px; padding: 3px 6px; cursor: pointer; font-family: inherit; line-height: 1.35; min-width: 0; }
.cal-ev:hover { background: #f1ecea; }
.cal-ev .t { font-size: 11px; color: var(--gray); }
.cal-ev .n { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cal-ev .s { font-size: 11px; color: var(--c); font-weight: 700; }
.cal-ev.closed { opacity: .55; }
.cal-ev.closed .s { color: var(--gray); }
.cal-list { display: none; }
.cal-li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 8px; padding: 9px 12px; margin-top: 8px; cursor: pointer; font-family: inherit; }
.cal-li .d { font-size: 12px; color: var(--gray); grid-column: 1 / -1; }
.cal-li .n { font-weight: 700; font-size: 14px; }
.cal-li .s { font-size: 12px; color: var(--c); font-weight: 700; text-align: right; }
.cal-li.closed { opacity: .55; }
.cal-empty { color: var(--gray); font-size: 14px; padding: 16px 0; text-align: center; }
@media (max-width: 760px) { .cal-grid { display: none; } .cal-list { display: block; } .cal-sel { margin-left: 0; width: 100%; } .cal-sel select { flex: 1; } }

/* イベントの中身（ポップアップ） */
.modal-bg { position: fixed; inset: 0; background: rgba(30, 20, 22, .45); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; padding: 26px 28px; position: relative; border-top: 6px solid var(--red); }
.modal h2 { font-family: var(--serif); font-size: 21px; margin: 6px 0 12px; line-height: 1.5; }
.modal-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 26px; color: var(--gray); cursor: pointer; line-height: 1; }
.ev-cat { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--c); border-radius: 20px; padding: 1px 12px; }
.ev-info { list-style: none; padding: 0; margin: 0 0 12px; font-size: 14px; }
.ev-info li { padding: 6px 0; border-bottom: 1px solid #f1eeeb; display: flex; gap: 14px; }
.ev-info b { flex: none; width: 3.5em; color: var(--gray); font-weight: 500; }
.ev-desc { white-space: pre-wrap; font-size: 14px; background: #faf8f6; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }
.ev-note { font-size: 14px; margin: 4px 0 10px; }
.ev-done { background: #e7f3ec; color: var(--ok); border-radius: 8px; padding: 12px 14px; font-weight: 700; margin-bottom: 10px; }
.ev-closed { background: #f3f1ef; color: var(--gray); border-radius: 8px; padding: 12px 14px; text-align: center; }

/* カレンダーの種類ボタン */
.cal-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; }
.cal-filter.sub { margin-top: -4px; padding-left: 12px; border-left: 3px solid #e5ddf0; }
.cal-chip { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 13.5px; font-weight: 700; padding: 6px 14px; border-radius: 22px; cursor: pointer; background: #fff; color: var(--c, var(--ink)); border: 1.5px solid var(--c, var(--line)); }
.cal-chip::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.cal-chip.all { --c: #4a4542; }
.cal-chip.all::before { background: linear-gradient(135deg, #9e1e34 0 25%, #7a5ea8 25% 50%, #3b6fb6 50% 75%, #d2873a 75%); }
.cal-chip span { font-size: 11.5px; font-weight: 700; background: #f3efec; color: var(--gray); border-radius: 10px; padding: 0 7px; }
.cal-chip:hover { background: #faf7f6; }
.cal-chip.on { background: var(--c); color: #fff; }
.cal-chip.on::before { background: #fff; }
.cal-chip.on span { background: rgba(255,255,255,.25); color: #fff; }
.cal-filter.sub .cal-chip { font-size: 12.5px; padding: 4px 12px; }
.cal-filter.sub .cal-chip::before { display: none; }

/* ページの中の動画・ボタン */
.doc .embed { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #1c1c1e; margin: 10px 0 4px; }
.doc .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.doc .embed-note { font-size: 12px; color: var(--gray); margin: 0 0 12px; }
.doc a.btn { text-decoration: none; }
.doc .goal-box + h3 { margin-top: 22px; }

/* ---------- イベントのカード（コースと同じ横並び） ---------- */
.ec-img, .mt-img { display: block; position: relative; width: 100%; border: 0; padding: 0; background: #f3efec; cursor: pointer; aspect-ratio: 16/10; overflow: hidden; }
.ec-img img, .mt-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.ec-img:hover img, .mt-img:hover img { transform: scale(1.03); }
.ec-img .cover, .mt-img .cover { height: 100%; aspect-ratio: auto; }
.ec-leaf { position: absolute; left: 12px; top: 12px; background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.15); text-align: center; padding: 6px 10px 5px; min-width: 62px; line-height: 1.15; color: var(--ink); }
.ec-leaf .m { display: block; font-size: 12px; color: var(--red); font-weight: 700; }
.ec-leaf .d { display: block; font-size: 26px; font-weight: 700; font-family: var(--serif); }
.ec-leaf .w { display: block; font-size: 10.5px; color: var(--gray); }
.ec-leaf.always .d { font-size: 13px; line-height: 1.4; color: var(--red); }
.ec-tag { display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--red); background: var(--red-l); border-radius: 20px; padding: 1px 10px; }
.ec-card h3 { font-size: 16px; line-height: 1.5; }
.mt-no { position: absolute; left: 12px; top: 10px; font-family: var(--serif); font-weight: 700; font-size: 22px; color: #fff; background: var(--red); border-radius: 8px; padding: 0 10px; }

/* 申し込み（チラシ画像つき） */
.ec-modal { max-width: 600px; }
.ec-flyer { display: block; margin: -6px -8px 14px; border-radius: 10px; overflow: hidden; background: #f3efec; }
.ec-flyer img { width: 100%; display: block; max-height: 70vh; object-fit: contain; }
.ec-check { background: #fdf6e9; border: 1px solid #f1dfb8; border-radius: 10px; padding: 14px 16px; }
.ec-check .t { font-weight: 700; margin-bottom: 4px; }
.ec-check p { font-size: 14px; margin: 0 0 10px; }
.ec-form-t { text-align: center; font-weight: 700; color: var(--red); margin-bottom: 8px; letter-spacing: .05em; }
.req { color: var(--red); margin-left: 2px; }
.ec-modal textarea { min-height: 70px; }

/* 色：えんじ＋白（動画と同じ）。ロゴのオレンジは、上の帯の下の細い線だけに使う */
:root { --gold: #f09000; }
.hero::after, .cover::after { background: #f09000; }

/* イベントのカード：横にスクロール */
.ec-wrap { position: relative; }
.ec-row { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: #e6cdb6 transparent; }
.ec-row > .ec-card { flex: 0 0 300px; scroll-snap-align: start; }
.ec-nav { position: absolute; top: 30%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--red); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.ec-nav.prev { left: -14px; } .ec-nav.next { right: -14px; }
.ec-nav:disabled { opacity: 0; pointer-events: none; }
.ec-hint { font-size: 12.5px; color: var(--gray); margin: 2px 0 0; }
@media (max-width: 760px) { .ec-row > .ec-card { flex-basis: 82%; } .ec-nav { display: none; } }

/* 認定講師だけのリンク（原本など） */
.secure { background: #faf6f3; border: 1px dashed #d9c7c0; border-radius: 10px; padding: 14px 16px; text-align: center; margin: 10px 0; }
.secure-t { font-weight: 700; color: var(--red); margin-bottom: 6px; }
.secure p { margin: 4px 0 0; color: var(--gray); }
.secure .btn { margin-top: 6px; }

/* 教材セットの紹介ページ（jic7.info）を、そのまま下に表示 */
.lp-frame { border-radius: 14px; overflow: hidden; border: 1px solid #eadfd9; background: #fff; box-shadow: 0 6px 20px rgba(80, 20, 30, .06); }
.lp-frame iframe { display: block; width: 100%; height: 85vh; min-height: 640px; border: 0; }
.lp-open { text-align: right; margin-top: 8px; font-size: 13px; }

/* 教材を使う（ホーム）：入会した人はボタンからすぐ開く／まだの人は「教材の詳細」へ */
.tool-gate p { margin: 0 0 10px; }
.tool-gate .tool-sep { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eee4df; }
.tool-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.tool-list { display: grid; gap: 10px; }
.tool { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1px solid #eadfd9;
  border-radius: 12px; padding: 14px 18px; color: inherit; text-decoration: none; font: inherit; cursor: pointer;
  box-shadow: 0 2px 8px rgba(80, 20, 30, .04); transition: border-color .15s, box-shadow .15s; }
.tool:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(158, 30, 52, .12); }
.tool.off { opacity: .55; cursor: default; }
.tool.off:hover { border-color: #eadfd9; box-shadow: none; }
.tool-ico { font-size: 26px; flex: none; }
.tool-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tool-txt small { color: var(--gray); font-size: 12.5px; }
.tool-go { flex: none; color: var(--red); font-weight: 700; font-size: 14px; white-space: nowrap; }
.tool.off .tool-go { color: var(--gray); font-weight: 400; }
.tool-more { margin-top: 12px; font-size: 13.5px; }
.tool-modal { max-width: 860px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--red); font-weight: 700; text-decoration: underline; cursor: pointer; }
.use-btns { display: grid; gap: 10px; }
.mt-card .btn.ghost { background: #fff; }

/* 質問ボックス */
.qbox { background: #faf6f3; border: 1px solid #eee2dc; border-radius: 12px; padding: 16px; }
.qbox-lead { margin: 0 0 10px; font-size: 14px; color: var(--gray); }
.qbox textarea { width: 100%; min-height: 96px; }
.qbox-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.qbox-row label { font-size: 13px; color: var(--gray); display: flex; flex-direction: column; gap: 4px; }
.qbox-row input { width: 140px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 8px; font: inherit; }
.qbox-h { font-size: 15px; margin: 22px 0 10px; }
.qitem { background: #fff; border: 1px solid #eee4df; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.qitem.here { border-color: var(--red); }
.qitem .meta { font-size: 12px; color: var(--gray); margin-bottom: 6px; }
.qitem .q { white-space: pre-wrap; }
.qitem .a { margin-top: 10px; padding: 10px 12px; background: #f7eef0; border-radius: 8px; white-space: pre-wrap; font-size: 14px; }
.qitem .a b { display: block; color: var(--red); font-size: 12.5px; margin-bottom: 4px; }
.qitem .a.wait { background: #f3f1ef; color: var(--gray); }

/* 管理画面（質問ボックス） */
.nav-admin { position: relative; }
.nbadge { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px;
  background: #f09000; color: #fff; font-size: 11px; font-weight: 700; text-align: center; vertical-align: 2px; }
.admin-head h1 { margin: 6px 0 4px; }
.admin-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 16px; }
.aq { padding: 16px 18px; margin-bottom: 14px; border-left: 4px solid var(--red); }
.aq.done { border-left-color: #c9bfb9; }
.aq-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.aq-st { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: #f7e9ec; color: var(--red); }
.aq.done .aq-st { background: #eef3ee; color: #4b7a55; }
.aq-mail, .aq-date { color: var(--gray); font-size: 12.5px; }
.aq-top .aq-date { margin-left: auto; }
.aq-where { font-size: 13px; color: var(--gray); margin: 6px 0 8px; }
.aq-q { white-space: pre-wrap; background: #faf6f3; border-radius: 8px; padding: 10px 12px; }
.aq-a { width: 100%; min-height: 90px; margin-top: 10px; }
.aq-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.admin-chips .chip { font: inherit; font-size: 13.5px; font-weight: 700; padding: 6px 14px; border-radius: 22px; cursor: pointer; background: #fff; color: var(--ink); border: 1.5px solid #d9cfca; }
.admin-chips .chip.on { background: var(--red); border-color: var(--red); color: #fff; }
.admin-chips .chip b { margin-left: 4px; }
.aq.unsent { border-left-color: #f09000; }
.aq.unsent .aq-st { background: #fdf0dc; color: #a35f00; }
.aq.sent { border-left-color: #c9bfb9; }
.aq.sent .aq-st { background: #eef3ee; color: #4b7a55; }
.aq-note { font-size: 12.5px; color: var(--gray); flex: 1; }
.aq-btns { display: flex; gap: 8px; flex: none; }
.aq-foot { gap: 12px; }
.admin-live { margin-left: auto; align-self: center; font-size: 12px; color: var(--gray); }
.drive-note { font-size: 12.5px; color: var(--gray); margin: 8px 2px 0; line-height: 1.7; }
.drive-note a { margin-left: 6px; font-weight: 700; }

/* STEP 5 JICレッスン診断 */
.clinic { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); overflow: hidden; }
.clinic-img { display: flex; align-items: center; background: #f6f1ee; }
.clinic-img img { display: block; width: 100%; height: auto; object-fit: contain; }   /* 画像を切らずに全部見せる */
.clinic-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.clinic-body h3 { margin: 2px 0 0; font-size: 22px; }
.clinic-catch { margin: 0; color: var(--red); font-weight: 700; }
.clinic-points { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--gray); }
.clinic-points li { padding-left: 14px; border-left: 3px solid #f0d9dd; }
.clinic-points b { display: block; color: var(--ink); font-size: 14.5px; }
.clinic-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
@media (max-width: 760px) { .clinic { grid-template-columns: 1fr; } .clinic-img img { height: auto; } }

/* 管理のタブ */
.admin-tabs { display: flex; gap: 4px; border-bottom: 2px solid #eadfd9; margin: 10px 0 6px; }
.admin-tabs a { padding: 10px 16px; font-weight: 700; color: var(--gray); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.admin-tabs a.on { color: var(--red); border-bottom-color: var(--red); }
.clinic-admin { margin-bottom: 14px; }
.ca-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ca-row h3 { margin: 0 0 6px; font-size: 17px; }
.ca-row p { margin: 0 0 4px; font-size: 14px; color: var(--gray); }
.ca-note { font-size: 12.5px !important; }

/* ---------- JIC受講生ページ（1〜4期生） ---------- */
.stu-box { padding: 22px; }
.stu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.stu-tile { display: flex; flex-direction: column; border: 1px solid var(--line, #e6e1dc); border-radius: 12px; padding: 18px 16px 16px; background: #fff; }
.stu-tile.soon { background: #faf7f4; }
.stu-ic { font-size: 26px; line-height: 1; margin-bottom: 10px; }
.stu-tile h3 { font-size: 16px; margin: 0 0 6px; }
.stu-tile p { font-size: 13px; color: var(--gray, #6b6b74); margin: 0 0 14px; line-height: 1.6; }
.stu-foot { margin-top: auto; }
.stu-lock, .stu-soon { display: block; text-align: center; font-size: 13px; color: var(--gray, #6b6b74); background: #f3efeb; border-radius: 8px; padding: 9px 8px; }
.stu-soon { color: #b06a00; background: #fff4e0; }
.stu-login { display: flex; gap: 10px; justify-content: center; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line, #e6e1dc); }
@media (max-width: 860px) { .stu-grid { grid-template-columns: 1fr; } .stu-login { flex-direction: column; } }

/* JIC受講生の質問ボックス（#/questions） */
.sq-head { margin: 6px 0 16px; }
.sq-head h1 { font-family: var(--serif); font-size: 26px; margin: 0 0 6px; }
.sq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.sq-row label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--gray); }
.sq-row select, .sq-row input { font: inherit; font-size: 14px; color: var(--ink); padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
@media (max-width: 700px) { .sq-row { grid-template-columns: 1fr; } }

/* JIC受講生ページ（#/jic） */
.jic-tabs { margin-bottom: 14px; }
.jic-label { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .05em; margin-bottom: 8px; }
.jic-sess { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.jic-sess:last-child { border-bottom: 0; }
.jic-sess .when { flex: 1; font-size: 15px; }
.jic-sess .when b { display: inline-block; min-width: 3.5em; margin-right: 8px; color: var(--red); }
.jic-sess.next { background: var(--red-l); border: 0; border-radius: 10px; padding: 14px 16px; }
.jic-sess.next .when { font-size: 17px; font-weight: 600; }
.jic-past { margin-top: 14px; }
.jic-past summary { cursor: pointer; font-weight: 600; }
.rf-l { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.rf-l textarea { min-height: 90px; }
.qitem .q b { color: var(--red-d); font-size: 13px; }
.jic-recs { display: grid; gap: 8px; }
.jic-rec { display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; font-size: 15px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.jic-rec:hover { border-color: var(--red); }
.jic-rec .play { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 13px; }
.jic-rec b { color: var(--red); margin-right: 6px; }
@media (max-width: 700px) { .jic-sess { flex-direction: column; align-items: stretch; } }
.jic-recbox { margin-bottom: 14px; }
.jic-recbox h3 { font-size: 17px; margin: 6px 0 12px; }
.jic-recbox .embed, .tool-modal .embed { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #1c1c1e; margin: 4px 0 6px; }
.jic-recbox .embed iframe, .tool-modal .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jic-recbox .embed-note { font-size: 12px; color: var(--gray); margin: 0; }

/* ホームの赤い帯：講座へすぐに移動 */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.quick { min-width: 0; }
.quick-t { font-size: 12px; letter-spacing: .12em; opacity: .85; margin-bottom: 10px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(150px, auto)); gap: 10px; }
.quick-btn { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border: 0; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; text-align: left; box-shadow: 0 2px 0 rgba(0,0,0,.08); transition: transform .12s, box-shadow .12s; }
.quick-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.quick-btn .qi { font-size: 22px; line-height: 1; }
.quick-btn .ql { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.quick-btn small { font-size: 11px; font-weight: 500; color: var(--gray); }
.quick-btn.soon { background: rgba(255,255,255,.55); cursor: default; }
.quick-btn.soon:hover { transform: none; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.section.flash { animation: qflash 1.4s ease-out; border-radius: 12px; }
@keyframes qflash { 0% { box-shadow: 0 0 0 4px rgba(240,144,0,.55); } 100% { box-shadow: 0 0 0 4px rgba(240,144,0,0); } }
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 22px; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-btn { padding: 11px 10px; font-size: 13.5px; gap: 8px; }
  .quick-btn .qi { font-size: 19px; }
}
/* スマホ：上の帯のメニューを1行にして、横にスクロール */
@media (max-width: 700px) {
  .topbar-in { flex-wrap: wrap; gap: 8px; padding: 8px 14px; }
  .topnav { width: 100%; display: flex; gap: 4px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .topnav > * { flex: none; writing-mode: horizontal-tb; }
}

/* はじめの課は無料 */
.free-tag { margin-left: 8px; font-size: 11px; font-weight: 700; color: #fff; background: #2e8b57; border-radius: 99px; padding: 1px 8px; vertical-align: 2px; }
.free-box { border: 2px solid #2e8b57; }
.free-t { font-weight: 700; color: #2e8b57; margin-bottom: 10px; }
.free-p { font-size: 13px; color: var(--gray); margin: 12px 0 8px; }
.free-form { display: flex; gap: 6px; }
.free-form input { flex: 1; min-width: 0; font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; }

/* サイト名「JICの学びの入口」が長いので、名前とメニューは折り返さない。中くらいの幅ではメニューを2段目に */
.brand-name, .badge, .topnav a, .topnav button { white-space: nowrap; }
@media (max-width: 1100px) {
  .topbar-in { flex-wrap: wrap; gap: 8px 18px; }
  .topnav { margin-left: 0; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .topnav > * { flex: none; }
}

/* 教材カード：認定講師だけのものに🔑の一言 */
.mt-key { font-size: 12.5px; color: var(--gray); margin-top: 8px; text-align: center; }

/* レコーディング（ドライブのフォルダ）：上で再生、下の一覧から回を選ぶ */
.rec-drive .embed { position: relative; padding-top: 56.25%; background: #111; border-radius: 10px; overflow: hidden; }
.rec-drive .embed iframe, .rec-drive .rec-ph { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rec-ph { display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 14px; padding: 20px; text-align: center; }
.rec-now { font-weight: 700; margin: 10px 0 8px; }
.rec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.rec-item { text-align: left; font: inherit; font-size: 13.5px; padding: 8px 10px; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; }
.rec-item:hover { border-color: var(--red); }
.rec-item.on { border-color: var(--red); background: #fbeff1; color: var(--red); font-weight: 700; }
.rec-empty { padding: 18px; background: #f6f3ef; border-radius: 10px; color: var(--gray); }

/* ログインの種類・購入済み */
.role { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 2px 10px; margin-left: 6px; vertical-align: 1px; }
.role.t { background: #9e1e34; color: #fff; }
.role.g { background: #eee9e2; color: #545460; }
.role.sm { font-size: 11px; padding: 1px 8px; }
.topbar .role.t { background: #fff; color: #9e1e34; }
.owned { margin-top: 6px; font-size: 13px; color: var(--gray); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.owned span { background: #e7f3ec; color: #2e7d4f; border-radius: 99px; padding: 1px 10px; font-weight: 700; font-size: 12px; }
/* 購入した方のパスワード */
.pw-form { display: flex; gap: 8px; margin-top: 8px; }
.pw-form input { flex: 1; min-width: 0; font: inherit; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 8px; }
.pw-note { font-size: 12.5px; color: var(--gray); margin: 8px 0 0; }

.rec-more { margin-top: 14px; }
.rec-more summary { cursor: pointer; font-weight: 700; color: var(--gray); }

/* カレンダーの表示：月・週・3日 */
.cal-mode { display: inline-flex; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; margin-left: 12px; }
.cal-mode button { font: inherit; font-size: 14px; font-weight: 700; padding: 6px 16px; background: #fff; border: 0; cursor: pointer; color: var(--gray); }
.cal-mode button + button { border-left: 1.5px solid var(--line); }
.cal-mode button.on { background: var(--red); color: #fff; }
.cal-mode button:not(.on):hover { color: var(--red); }
.cal-cols { display: grid; gap: 10px; }
.cal-cols.n7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-cols.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cal-col { border: 1px solid var(--line); border-radius: 10px; background: #fff; display: flex; flex-direction: column; min-width: 0; min-height: 260px; }
.cal-col.today { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.cal-colhead { padding: 8px 10px; border-bottom: 1px solid var(--line); background: #f6f3f1; border-radius: 10px 10px 0 0; font-size: 13px; color: var(--gray); }
.cal-colhead b { font-size: 20px; color: var(--ink); margin-right: 6px; font-family: var(--serif); }
.cal-colhead.sat b { color: #3b6fb6; } .cal-colhead.sun b { color: var(--red); }
.cal-col.today .cal-colhead { background: var(--red); color: #fff; } .cal-col.today .cal-colhead b { color: #fff; }
.cal-colbody { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.cal-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; width: 100%; background: #f8f6f5; border: 0; border-left: 4px solid var(--c); border-radius: 7px; padding: 7px 9px; cursor: pointer; font-family: inherit; line-height: 1.4; }
.cal-card:hover { background: #f1ecea; }
.cal-card .t { font-size: 12px; color: var(--gray); }
.cal-card .n { font-size: 13.5px; font-weight: 700; color: var(--ink); word-break: break-word; }
.cal-card .s { font-size: 12px; color: var(--c); font-weight: 700; }
.cal-card.closed { opacity: .55; } .cal-card.closed .s { color: var(--gray); }
.cal-cols.n7 .cal-card .n { font-size: 12.5px; }
.cal-none { color: #b9b2ab; font-size: 12.5px; text-align: center; padding: 14px 0; }
@media (max-width: 760px) { .cal-cols { display: none; } .cal-mode { margin-left: 0; } }

/* まとめ：大事なところに黄色のマーカー（原稿の ==ことば==） */
.doc mark.mk { background: linear-gradient(transparent 45%, #fff07a 45%); color: inherit; padding: 0 2px; font-weight: 700; }

/* カレンダーの種類ボタン：色を濃く。認定講師クラスはいちばん前で、いちばん目立つ */
.cal-chip { border-width: 2px; font-size: 14px; background: color-mix(in srgb, var(--c, #4a4542) 9%, #fff); }
.cal-chip.all { --c: #2f2a27; }
.cal-chip.all::before { background: linear-gradient(135deg, #7d1428 0 25%, #4f2f86 25% 50%, #1f4d8f 50% 75%, #9a5410 75%); }
.cal-chip span { background: color-mix(in srgb, var(--c, #4a4542) 14%, #fff); color: var(--c, var(--ink)); }
.cal-chip:hover { background: color-mix(in srgb, var(--c, #4a4542) 16%, #fff); }
.cal-chip.on { background: var(--c); color: #fff; box-shadow: 0 2px 6px color-mix(in srgb, var(--c) 35%, transparent); }
.cal-chip.main { background: var(--c); color: #fff; font-size: 15.5px; padding: 8px 20px; box-shadow: 0 3px 10px color-mix(in srgb, var(--c) 40%, transparent); }
.cal-chip.main::before { display: none; }
.cal-chip.main span { background: rgba(255,255,255,.25); color: #fff; }
.cal-chip.main:hover { filter: brightness(1.12); background: var(--c); }
.cal-chip.main.on { outline: 3px solid color-mix(in srgb, var(--c) 30%, #fff); outline-offset: 2px; }
.cal-filter.sub .cal-chip { background: #fff; }
.cal-filter.sub .cal-chip.on { background: var(--c); }

/* 「オープンセッションとは？」（jic7.info/open-session/ を別のタブで開く） */
.os-link { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-size: 14px; font-weight: 700; color: var(--red); background: #fbeff1; border: 1.5px solid #f0cdd4; border-radius: 99px; padding: 3px 12px; text-decoration: none; white-space: nowrap; }
.os-link:hover { background: var(--red); color: #fff; border-color: var(--red); }
.os-link.sm { font-size: 12px; padding: 2px 10px; margin-left: 0; }
.ec-tagrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
/* カードの「くわしく見る・申し込む」の下：Open Session の札と同じ色のボタン */
.os-btn { margin-top: 8px; background: var(--red-l); color: var(--red); border: 1.5px solid #ecc9d0; box-shadow: none; }
.os-btn:hover { background: #f3d9de; color: var(--red); }
.ec-modal .os-btn { margin-top: 10px; }

/* STEP 5：実際のカルテを5秒ごとに切りかえる */
.clinic { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.karte-show { flex-direction: column; align-items: stretch; background: #efe7e1; padding: 14px 14px 10px; gap: 8px; }
.ks-stage { position: relative; aspect-ratio: 1400 / 990; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(80, 40, 30, .14); cursor: zoom-in; }
.ks-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .7s ease; }
.ks-stage img.on { opacity: 1; }
.ks-badge { position: absolute; left: 10px; top: 10px; background: #7a1f2e; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; pointer-events: none; }
.ks-zoombtn { position: absolute; right: 10px; top: 10px; font: inherit; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.92); color: var(--red); border: 1.5px solid #ecc9d0; border-radius: 99px; padding: 3px 11px; cursor: pointer; }
.ks-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.06); }
.ks-progress i { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; animation: ks-fill var(--ks-ms, 5000ms) linear forwards; }
.karte-show.paused .ks-progress i { animation-play-state: paused; }
@keyframes ks-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ks-bar { display: flex; align-items: center; gap: 10px; }
.ks-info { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.ks-info b { font-family: var(--serif); color: var(--red); font-size: 15px; white-space: nowrap; }
.ks-info span { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-dots { display: flex; gap: 6px; }
.ks-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #d8c9c0; cursor: pointer; }
.ks-dots button.on { background: var(--red); transform: scale(1.25); }
.ks-arrow { font: inherit; font-size: 20px; line-height: 1; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #e2d5cd; background: #fff; color: var(--red); cursor: pointer; flex: none; }
.ks-arrow:hover { border-color: var(--red); }
.modal.wide { max-width: min(1180px, 96vw); width: 96vw; }
.ks-modal .ks-big img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.ks-modal .ks-bar { margin-top: 12px; }
@media (max-width: 760px) { .karte-show { padding: 10px 10px 8px; } .ks-dots { display: none; } }
/* STEP 5：申し込みは2つ（FBつき／カルテのみ） */
.clinic-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.clinic-plan { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 14px 12px; border-radius: 10px; border: 2px solid #e6d3d7; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.clinic-plan:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(122, 31, 46, .14); }
.clinic-plan b { font-size: 15.5px; color: var(--red); }
.clinic-plan small { font-size: 12.5px; color: var(--gray); }
.clinic-plan em { font-style: normal; font-weight: 700; font-size: 13.5px; margin-top: 6px; color: var(--red); }
.clinic-plan.fb { background: var(--red); border-color: var(--red); }
.clinic-plan.fb b, .clinic-plan.fb em { color: #fff; }
.clinic-plan.fb small { color: rgba(255, 255, 255, .85); }
.clinic-plan .cp-tag { position: absolute; top: -10px; right: 10px; background: #F09000; color: #fff; font-size: 11.5px; font-weight: 700; padding: 1px 9px; border-radius: 99px; }
@media (max-width: 480px) { .clinic-plans { grid-template-columns: 1fr; } }
/* 申し込みの2つ：押せるとわかるように（マウスが乗ると色が変わる・少し浮く・押すと沈む） */
.clinic-plan { cursor: pointer; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
.clinic-plan em { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 7px 12px; border-radius: 8px; background: var(--red-l); color: var(--red); transition: background .18s, color .18s; }
.clinic-plan em i { font-style: normal; transition: transform .18s; }
.clinic-plan.fb em { background: rgba(255, 255, 255, .16); color: #fff; }
.clinic-plan:hover, .clinic-plan:focus-visible { transform: translateY(-2px); }
.clinic-plan:not(.fb):hover, .clinic-plan:not(.fb):focus-visible { background: #fbeff1; border-color: var(--red); box-shadow: 0 6px 16px rgba(122, 31, 46, .16); }
.clinic-plan:not(.fb):hover em, .clinic-plan:not(.fb):focus-visible em { background: var(--red); color: #fff; }
.clinic-plan.fb:hover, .clinic-plan.fb:focus-visible { background: #6e1525; border-color: #6e1525; box-shadow: 0 8px 20px rgba(110, 21, 37, .35); }
.clinic-plan.fb:hover em, .clinic-plan.fb:focus-visible em { background: #fff; color: #6e1525; }
.clinic-plan:hover em i, .clinic-plan:focus-visible em i { transform: translateX(4px); }
.clinic-plan:active { transform: translateY(0); box-shadow: none; }
.clinic-plan:focus-visible { outline: 3px solid #F09000; outline-offset: 2px; }
.clinic-btns .btn.ghost:hover { background: var(--red); color: #fff; border-color: var(--red); }
/* 申し込みの2つは縦に並べ、横長の大きいボタンに（左に名前、右に「申し込む →」） */
.clinic-plans { grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }
.clinic-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 16px; }
.clinic-plan b, .clinic-plan small { grid-column: 1; }
.clinic-plan em { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; white-space: nowrap; padding: 9px 14px; }
@media (max-width: 420px) { .clinic-plan { grid-template-columns: 1fr; } .clinic-plan em { grid-column: 1; grid-row: auto; margin-top: 8px; } }

/* STEP 6：クラスのボタン（期ごと） */
.cls-head { font-weight: 700; font-size: 17px; margin-bottom: 12px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cls-head small { font-weight: 400; font-size: 13px; color: var(--gray); }
.cls-list { display: grid; gap: 10px; }
.cls-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.cls-ki { font-family: var(--serif); font-weight: 700; color: var(--red); font-size: 16px; }
.cls-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.cls-btn { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; border: 2px solid #e2d5cd; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.cls-btn .cb-name { font-weight: 700; font-size: 15.5px; }
.cls-btn .cb-state { font-size: 12.5px; color: var(--gray); font-weight: 700; }
.cls-btn:hover { border-color: var(--red); background: #fbeff1; transform: translateY(-2px); box-shadow: 0 5px 14px rgba(122, 31, 46, .14); }
.cls-btn.ok { background: var(--red); border-color: var(--red); color: #fff; }
.cls-btn.ok .cb-state { color: #fff; }
.cls-btn.ok:hover { background: #6e1525; border-color: #6e1525; }
.cls-btn .cb-mine { position: absolute; top: -10px; right: 8px; background: #F09000; color: #fff; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.cls-btn:focus-visible { outline: 3px solid #F09000; outline-offset: 2px; }
@media (max-width: 560px) { .cls-row { grid-template-columns: 1fr; gap: 6px; } .cls-btns { grid-template-columns: 1fr 1fr; } }
