/* ミュゼダイナミックシャワールーム(SHOWER ROOM)モック
   トンマナ: fba.tokyo の淡い水色の大理石・細い金の線・明朝の見出し
   角の丸み: カード・サムネイル 14px / ボタン・チップ 999px / 入力欄 10px
   重なり順: 背景 -1 / ヘッダー・下のタブ 30 / モックの帯 31 / ダイアログ 50 / 通知 60
   移動はアプリの形: 画面下のタブ(768px 以上は下に浮かぶ札・767px 以下は幅いっぱい)+ 詳しい画面の左上に「戻る」 */
@font-face { font-family: "Shippori Mincho SR"; src: url(fonts/shippori-500.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Shippori Mincho SR"; src: url(fonts/shippori-600.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Cormorant SR"; src: url(fonts/cormorant.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #EEF4F4;
  --marble: url(../img/marble-light.webp);
  --wash: linear-gradient(180deg, rgba(240,246,246,.44), rgba(240,246,246,.68));
  --paper: rgba(255,255,255,.93);
  --paper-solid: #FFFFFF;
  --paper-2: rgba(255,255,255,.80);
  --ink: #1D3233;
  --ink-2: #3E575A;
  --muted: #4F686B;
  --line: rgba(34,56,56,.12);
  --line-2: rgba(34,56,56,.22);
  --accent: #3D7A86;
  --accent-hover: #336A75;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(61,122,134,.10);
  --gold: #B8975A;
  --gold-ink: #85692F;
  --ok: #2F7A5F;
  --wait: #8A6A2A;
  --player: #0B1415;
  --shadow: 0 1px 2px rgba(30,64,68,.08), 0 3px 8px -2px rgba(30,64,68,.07), 0 16px 32px -14px rgba(30,64,68,.30);
  --shadow-lg: 0 2px 4px rgba(30,64,68,.08), 0 10px 20px -8px rgba(30,64,68,.14), 0 30px 56px -22px rgba(30,64,68,.40);
  --r-card: 14px;
  --r-input: 10px;
  --serif: "Shippori Mincho SR", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --latin: "Cormorant SR", "Cormorant Garamond", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --hd-h: 64px;
  --tab-space: 112px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1819;
    --marble: url(../img/marble-dark.webp);
    --wash: linear-gradient(180deg, rgba(10,20,21,.38), rgba(10,20,21,.62));
    --paper: rgba(23,40,42,.94);
    --paper-solid: #182C2E;
    --paper-2: rgba(23,40,42,.82);
    --ink: #E3EEEE;
    --ink-2: #BACCCD;
    --muted: #93ABAD;
    --line: rgba(227,238,238,.12);
    --line-2: rgba(227,238,238,.22);
    --accent: #8EC5CF;
    --accent-hover: #A6D3DB;
    --accent-ink: #0B1617;
    --accent-soft: rgba(142,197,207,.13);
    --gold: #CDB27A;
    --gold-ink: #D8C08C;
    --ok: #8FD0B3;
    --wait: #E0C27E;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 3px 10px -2px rgba(0,0,0,.3), 0 18px 40px -16px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.4), 0 12px 24px -8px rgba(0,0,0,.4), 0 32px 70px -24px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.05);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 16px); scroll-padding-bottom: var(--tab-space); }
body { margin: 0; min-height: 100dvh; font-family: var(--sans); font-size: 15px; line-height: 1.8; color: var(--ink); background: var(--bg); letter-spacing: .02em; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--wash), var(--marble) center / cover no-repeat, var(--bg); pointer-events: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: .06em; line-height: 1.5; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.nb { display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 70; background: var(--paper-solid); padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
.ph-light { line-height: 1; }
.num { font-variant-numeric: lining-nums tabular-nums; }
.date-block .md, .sess-date .md, .timeline .md, .plan .price, .stat .v, .chaps .t, .memos .t { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }

/* モックの帯 */
.mockbar { position: relative; z-index: 31; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; padding: 4px 24px; background: #1F3536; color: #DCE8E8; font-size: 12px; }
.mockbar-note { opacity: .9; }
.mockbar-ctrl { display: flex; align-items: center; gap: 10px; }
.mockbar-label { opacity: .75; }
.seg { display: inline-flex; padding: 2px; border-radius: 999px; background: rgba(255,255,255,.1); }
.seg button { padding: 2px 12px; border-radius: 999px; color: #DCE8E8; font-size: 12px; transition: background .2s var(--ease); }
.seg button[aria-checked="true"] { background: #DCE8E8; color: #1F3536; }
.mockbar-reset { font-size: 12px; color: #DCE8E8; text-decoration: underline; text-underline-offset: 3px; opacity: .8; }
@media (prefers-color-scheme: dark) { .mockbar { background: #1A2B2D; } }

/* ヘッダー */
.hd { position: sticky; top: 0; z-index: 30; height: var(--hd-h); background: var(--paper); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.hd-in { max-width: 1320px; height: 100%; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 14px; }
.hd-back { display: inline-flex; align-items: center; gap: 2px; height: 40px; margin-left: -10px; padding: 0 14px 0 6px; border-radius: 999px; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.hd-back i { font-size: 21px; }
.hd-back:hover { background: var(--accent-soft); color: var(--ink); }
.hd-back:active { transform: scale(.97); }
.has-back .logo { padding-left: 14px; border-left: 1px solid var(--line-2); }
.logo { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; flex-shrink: 0; }
.logo-en { font-family: var(--latin); font-size: 25px; font-weight: 500; letter-spacing: .2em; color: var(--ink); }
.logo-ja { margin-top: 3px; font-family: var(--serif); font-size: 10px; letter-spacing: .14em; color: var(--muted); white-space: nowrap; }
.hd-tools { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.search { position: relative; display: flex; align-items: center; }
.search i { position: absolute; left: 13px; font-size: 17px; color: var(--muted); pointer-events: none; }
.search input { width: 240px; height: 38px; padding: 0 14px 0 38px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper-2); font-size: 13px; transition: border-color .2s, width .3s var(--ease), background .2s; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); background: var(--paper-solid); width: 280px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; font-size: 20px; color: var(--ink-2); transition: background .2s; }
.icon-btn:hover { background: var(--accent-soft); color: var(--ink); }
.search-open { display: none; }
.me { display: flex; align-items: center; gap: 10px; padding: 3px 12px 3px 3px; border-radius: 999px; transition: background .2s; }
.me:hover, .me[aria-current="page"] { background: var(--accent-soft); }
.me-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--line-2); font-family: var(--serif); font-size: 14px; color: var(--ink); }
.me-name { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.is-guest .me-name { color: var(--accent); }

/* 本文 */
main { display: block; min-height: 60vh; outline: none; overflow-x: clip; }
main:focus, main:focus-visible { outline: none; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.page { --page-pt: 36px; padding: var(--page-pt) 0 calc(var(--tab-space) + var(--mini-space, 0px) + 32px); animation: pageIn .45s var(--ease) both; }
.page.push { animation-name: pagePush; }
.page.pop { animation-name: pagePop; }
.page.still { animation: none; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes pagePush { from { opacity: 0; transform: translateX(32px); } }
@keyframes pagePop { from { opacity: 0; transform: translateX(-32px); } }
.sec { margin-top: 64px; }
.sec:first-child { margin-top: 0; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-h h2 { font-size: 22px; }
.sec-h .sub { margin-top: 2px; font-size: 13px; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); white-space: nowrap; }
.more i { transition: transform .25s var(--ease); }
.more:hover i { transform: translateX(3px); }
.row-nav { display: flex; gap: 6px; }
.row-nav button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 16px; background: var(--paper-2); transition: background .2s, opacity .2s; }
.row-nav button:hover { background: var(--paper-solid); }
.row-nav button:disabled { opacity: .35; cursor: default; }
.page-h { margin-bottom: 28px; }
.page-h h1 { font-size: 30px; }
.page-h p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 26px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .08em; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn i { font-size: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -10px rgba(61,122,134,.7); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border: 1px solid var(--line-2); background: var(--paper-2); color: var(--ink); }
.btn-ghost:hover { background: var(--paper-solid); border-color: var(--accent); }
.btn-ghost[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: default; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* 金の細線の枠(fba.tokyo の飾り枠に合わせた角の線) */
.frame { position: relative; }
.frame::before, .frame::after { content: ""; position: absolute; width: 56px; height: 56px; border: 0 solid var(--gold); pointer-events: none; opacity: .85; }
.frame::before { top: -12px; left: -12px; border-width: 1px 0 0 1px; }
.frame::after { right: -12px; bottom: -12px; border-width: 0 1px 1px 0; }
.rule { display: block; width: 40px; height: 1px; background: var(--gold); margin: 14px 0; }

/* パネル */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (prefers-reduced-transparency: reduce) { .panel, .hd { background: var(--paper-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ホームの見出し */
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 0; }
.hero-media { position: relative; border-radius: var(--r-card); }
.hero-media .img { aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero-media:hover img { transform: scale(1.025); }
.play-fab { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 999px; background: rgba(255,255,255,.88); color: #223838; font-size: 30px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.35); transition: transform .3s var(--ease), background .2s; }
.play-fab i { margin-left: 4px; }
.hero-media:hover .play-fab { transform: scale(1.06); background: #fff; }
.hero-text { position: relative; margin-left: -56px; padding: 40px 40px 40px 44px; }
.hero-kicker { font-size: 13px; color: var(--muted); }
.hero-kicker b { font-weight: 400; color: var(--gold-ink); }
.hero-text h1 { margin-top: 10px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.45; }
.hero-desc { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* 動画のカード */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 34px 24px; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; margin: -4px -2px 0; }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
.vcard { display: block; min-width: 0; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.vcard:hover .thumb img { transform: scale(1.045); }
.thumb .dur { position: absolute; right: 10px; bottom: 10px; padding: 1px 8px; border-radius: 999px; background: rgba(15,28,29,.72); color: #fff; font-size: 11.5px; letter-spacing: .04em; }
.thumb .hover-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 999px; background: rgba(255,255,255,.9); color: #223838; font-size: 22px; opacity: 0; transform: scale(.9); transition: opacity .25s, transform .35s var(--ease); }
.thumb .hover-play i { margin-left: 3px; }
.vcard:hover .hover-play, .vcard:focus-within .hover-play { opacity: 1; transform: none; }
.thumb .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.35); }
.thumb .bar i { display: block; height: 100%; background: var(--gold); }
.thumb .done { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 6px; border-radius: 999px; background: rgba(255,255,255,.9); color: #2F5E52; font-size: 11.5px; }
.thumb .lock { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20,36,38,.28); color: #fff; font-size: 26px; }
.is-guest .vcard .thumb img { filter: saturate(.85); }
.vcard-body { padding: 14px 2px 0; }
.vcard-cat { font-size: 11.5px; color: var(--gold-ink); letter-spacing: .08em; }
.vcard h3 { margin-top: 2px; font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard-meta { margin-top: 4px; font-size: 12px; color: var(--muted); }

/* 勉強会の帯(ホーム) */
.session-band { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; align-items: center; gap: 36px; padding: 30px 34px; }
.date-block { text-align: center; padding-right: 30px; border-right: 1px solid var(--line-2); }
.date-block .md { font-family: var(--latin); font-size: 58px; font-weight: 500; line-height: 1; letter-spacing: .02em; }
.date-block .md span { color: var(--gold); margin: 0 2px; }
.date-block .dw { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.date-block .tm { font-size: 13px; color: var(--muted); }
.session-band h3 { font-size: 21px; }
.session-band .s-desc { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.session-band .s-inst { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.session-band .cta { margin-top: 18px; }
.session-band .s-img { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 10; }
.session-band .s-img img { width: 100%; height: 100%; object-fit: cover; }
.tag-ok { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }

/* カテゴリ(大 1 + 小 4) */
.cats { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: repeat(2, 190px); gap: 18px; }
.cat { position: relative; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); isolation: isolate; }
.cat:first-child { grid-row: span 2; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,30,32,0) 35%, rgba(14,30,32,.72)); }
.cat:hover img { transform: scale(1.05); }
.cat-txt { position: absolute; left: 22px; right: 22px; bottom: 18px; color: #fff; }
.cat-txt h3 { font-size: 19px; }
.cat:first-child .cat-txt h3 { font-size: 24px; }
.cat-txt p { font-size: 12.5px; opacity: .92; }

/* コラム(ホーム) */
.col-home { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.col-feat .thumb { aspect-ratio: 16 / 9; }
.col-feat h3 { margin-top: 16px; font-size: 22px; }
.col-feat p.ex { margin-top: 8px; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.col-meta { margin-top: 6px; font-size: 12px; color: var(--muted); }
.col-list { display: grid; gap: 4px; }
.col-item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center; padding: 12px; border-radius: var(--r-card); transition: background .2s; }
.col-item:hover { background: var(--paper-2); }
.col-item .thumb { box-shadow: none; }
.col-item h3 { font-size: 15.5px; line-height: 1.55; }

/* 質問 BOX の案内(ホーム) */
.ask-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0; overflow: hidden; }
.ask-band .l { padding: 34px 36px; }
.ask-band .l h2 { font-size: 22px; }
.ask-band .l p { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.ask-band .r { padding: 28px 32px; background: var(--paper-2); border-left: 1px solid var(--line); }
.qa-mini .q { font-family: var(--serif); font-size: 15.5px; font-weight: 600; }
.qa-mini .a { margin-top: 10px; padding-left: 14px; border-left: 1px solid var(--gold); font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qa-mini .who { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* 入会前 */
.gate-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.gate-hero h1 { margin-top: 10px; font-size: clamp(30px, 3.3vw, 44px); line-height: 1.4; }
.gate-hero .hero-desc { font-size: 15px; }
.gate-hero .img { aspect-ratio: 3 / 2; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-lg); }
.gate-hero .img img { width: 100%; height: 100%; object-fit: cover; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.feature { padding: 26px 26px 28px; border-left: 1px solid var(--line); }
.feature:first-child { border-left: 0; }
.feature i { font-size: 30px; color: var(--accent); }
.feature h3 { margin-top: 12px; font-size: 17px; }
.feature p { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.plans { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; }
.plan.rec { border-color: var(--gold); box-shadow: var(--shadow-lg); padding-top: 38px; }
.plan .rec-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 2px 14px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 12px; letter-spacing: .1em; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .plan .rec-tag { color: #1A1A12; } }
.plan h3 { font-size: 18px; }
.plan .price { margin-top: 12px; font-family: var(--latin); font-size: 44px; font-weight: 500; line-height: 1; }
.plan .price small { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-left: 4px; }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.plan li { display: flex; gap: 8px; align-items: baseline; }
.plan li i { color: var(--accent); font-size: 15px; transform: translateY(2px); }
.plan .btn { margin-top: auto; width: 100%; }
.note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.gate-box { max-width: 720px; margin: 24px auto 0; padding: 36px 40px; text-align: center; }
.gate-box i.big { font-size: 34px; color: var(--accent); }
.gate-box h2 { margin-top: 8px; font-size: 22px; }
.gate-box p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.gate-box .cta { justify-content: center; }

/* 一覧の絞り込み */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper-2); font-size: 13px; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.select { height: 36px; padding: 0 34px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%235B7376' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 13px center; font-size: 13px; -webkit-appearance: none; appearance: none; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty i { font-size: 36px; color: var(--accent); }
.empty h3 { margin-top: 10px; font-size: 18px; color: var(--ink); }
.empty p { margin-top: 6px; font-size: 14px; }

/* 再生画面 */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--player); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-lg); color: #fff; user-select: none; -webkit-user-select: none; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--player); }
.player:fullscreen { border-radius: 0; }
.p-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(180deg, transparent, rgba(5,12,13,.78)); opacity: 0; transition: opacity .3s; pointer-events: none; }
.p-big { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 999px; background: rgba(255,255,255,.9); color: #223838; font-size: 34px; box-shadow: 0 12px 34px -8px rgba(0,0,0,.45); transition: transform .3s var(--ease), opacity .25s; }
.p-big i { margin-left: 5px; }
.p-big:hover { transform: scale(1.06); }
.player.playing .p-big { opacity: 0; pointer-events: none; transform: scale(.85); }
.p-ctrl { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px 10px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.player.show-ui .p-ctrl, .player:not(.playing) .p-ctrl, .player:focus-within .p-ctrl { opacity: 1; transform: none; }
.player.show-ui .p-shade, .player:not(.playing) .p-shade, .player:focus-within .p-shade { opacity: 1; }
.player.playing:not(.show-ui) { cursor: none; }
.p-seek { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.p-track { position: relative; width: 100%; height: 4px; transition: height .15s; }
.p-seek:hover .p-track, .p-seek.drag .p-track { height: 6px; }
.p-seg { position: absolute; top: 0; bottom: 0; background: rgba(255,255,255,.28); border-radius: 2px; overflow: hidden; }
.p-seg .buf { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.28); }
.p-seg .fill { position: absolute; inset: 0 auto 0 0; background: #D9BE84; }
.p-knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); transform: scale(0); transition: transform .15s; }
.p-seek:hover .p-knob, .p-seek.drag .p-knob { transform: scale(1); }
.p-tip { position: absolute; bottom: 26px; padding: 4px 10px; border-radius: 8px; background: rgba(10,20,21,.9); font-size: 12px; white-space: nowrap; transform: translateX(-50%); opacity: 0; transition: opacity .15s; pointer-events: none; }
.p-tip b { font-weight: 400; color: #D9BE84; margin-right: 6px; }
.p-seek:hover .p-tip, .p-seek.drag .p-tip { opacity: 1; }
.p-row { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.p-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: #fff; font-size: 22px; transition: background .2s; }
.p-btn:hover { background: rgba(255,255,255,.14); }
.p-btn .sm { position: absolute; font-size: 8.5px; font-weight: 700; top: 15px; }
.p-time { margin-left: 8px; font-size: 13px; color: rgba(255,255,255,.9); white-space: nowrap; }
.p-chap { margin-left: 12px; font-size: 13px; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.p-sp { margin-left: auto; }
.p-txtbtn { height: 32px; padding: 0 10px; border-radius: 999px; color: #fff; font-size: 12.5px; white-space: nowrap; transition: background .2s; }
.p-txtbtn:hover { background: rgba(255,255,255,.14); }
.p-vol { display: flex; align-items: center; }
.p-vol input { width: 0; opacity: 0; transition: width .25s var(--ease), opacity .2s; accent-color: #D9BE84; }
.p-vol:hover input, .p-vol:focus-within input { width: 76px; opacity: 1; }
.p-menu { position: absolute; right: 16px; bottom: 64px; min-width: 180px; padding: 6px; border-radius: 12px; background: rgba(12,22,23,.94); box-shadow: 0 12px 30px rgba(0,0,0,.4); opacity: 0; transform: translateY(6px) scale(.98); transform-origin: bottom right; pointer-events: none; transition: opacity .18s, transform .22s var(--ease); }
.p-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.p-menu h4 { padding: 6px 10px 4px; font-family: var(--sans); font-size: 11.5px; font-weight: 400; color: rgba(255,255,255,.6); letter-spacing: .04em; }
.p-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 7px 10px; border-radius: 8px; font-size: 13px; color: #fff; text-align: left; }
.p-menu button:hover { background: rgba(255,255,255,.1); }
.p-menu button[aria-checked="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 999px; background: #D9BE84; }
.p-resume { position: absolute; left: 16px; top: 16px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 999px; background: rgba(10,20,21,.82); font-size: 13px; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.p-resume.show { opacity: 1; transform: none; pointer-events: auto; }
.p-resume button { padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: 12.5px; }
.p-end { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8,16,17,.78); opacity: 0; pointer-events: none; transition: opacity .35s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.p-end.show { opacity: 1; pointer-events: auto; }
.p-end-in { text-align: center; padding: 20px; max-width: 520px; }
.p-end .done-mark { display: inline-flex; align-items: center; gap: 6px; color: #D9BE84; font-size: 14px; }
.p-end h3 { margin-top: 6px; font-size: 20px; color: #fff; }
.p-next { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 18px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.08); text-align: left; transition: background .2s; }
.p-next:hover { background: rgba(255,255,255,.14); }
.p-next img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.p-next small { font-size: 11.5px; color: rgba(255,255,255,.65); }
.p-next p { font-family: var(--serif); font-size: 15px; line-height: 1.5; color: #fff; }
.p-end .again { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 3px; }
.p-flash { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 999px; background: rgba(10,20,21,.6); font-size: 13px; opacity: 0; pointer-events: none; }
.p-flash.go { animation: flash .6s var(--ease); }
@keyframes flash { 0% { opacity: 0; transform: scale(.8); } 30% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(1.1); } }
.p-locked { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; isolation: isolate; }
.p-locked::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8,16,17,.45); }
.p-locked img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: blur(3px) saturate(.8); transform: scale(1.04); }
.p-locked .box { padding: 26px 30px; border-radius: 14px; background: rgba(10,20,21,.72); }
.p-locked i { font-size: 30px; color: #D9BE84; }
.p-locked h3 { margin-top: 6px; font-size: 19px; color: #fff; }
.p-locked p { margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.8); }
.p-locked .cta { justify-content: center; margin-top: 16px; }
.p-note { margin-top: 10px; font-size: 12px; color: var(--muted); }

.w-info { margin-top: 22px; }
.w-cat { font-size: 12.5px; color: var(--gold-ink); letter-spacing: .08em; }
.w-info h1 { margin-top: 4px; font-size: 27px; }
.w-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.w-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.w-desc { margin-top: 18px; font-size: 14.5px; color: var(--ink-2); max-width: 44em; }
.inst-line { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.av { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--line-2); font-family: var(--serif); font-size: 15px; }
.inst-line .n { font-family: var(--serif); font-weight: 600; font-size: 15px; }
.inst-line .r { font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.tabs button { position: relative; padding: 10px 14px; font-size: 14px; color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 1px; background: var(--gold); }
.tabs .cnt { margin-left: 4px; font-size: 12px; color: var(--muted); }
.side-box { padding: 6px 18px 18px; }
.chaps { list-style: none; margin: 0; padding: 0; }
.chaps button { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; width: 100%; padding: 10px 10px; border-radius: 10px; text-align: left; font-size: 14px; transition: background .2s; }
.chaps button:hover { background: var(--accent-soft); }
.chaps .t { font-family: var(--latin); font-size: 16px; color: var(--gold-ink); }
.chaps li.cur button { background: var(--accent-soft); }
.chaps li.cur .ttl { font-weight: 600; }
.chaps .now { font-size: 11px; color: var(--accent); }
.memo-form { display: grid; gap: 8px; margin: 8px 0 12px; }
.memo-form .row2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.memo-form .at { font-size: 12.5px; color: var(--muted); }
.memos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.memos li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 8px 10px; border-radius: 10px; background: var(--paper-2); font-size: 13.5px; }
.memos .t { font-family: var(--latin); font-size: 16px; color: var(--accent); }
.memos .del { font-size: 15px; color: var(--muted); }
.next-list { display: grid; gap: 6px; margin-top: 26px; }
.next-list h2 { font-size: 17px; margin-bottom: 6px; }
.nitem { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px; border-radius: 12px; transition: background .2s; }
.nitem:hover { background: var(--paper-2); }
.nitem .thumb { box-shadow: none; border-radius: 10px; }
.nitem h3 { font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nitem .vcard-meta { font-size: 11.5px; }

/* フォーム */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 16px; }
.field label, .field .lbl { font-size: 13px; font-weight: 600; color: var(--ink); }
.field .help { font-size: 12px; color: var(--muted); }
.input, .textarea { width: 100%; padding: 10px 14px; border-radius: var(--r-input); border: 1px solid var(--line-2); background: var(--paper-solid); font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .85; }
.field .err { font-size: 12px; color: #B04A3A; }
@media (prefers-color-scheme: dark) { .field .err { color: #F0A190; } }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.check input { margin-top: 5px; accent-color: var(--accent); }

/* 質問 BOX */
.qa-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 36px; align-items: start; }
.qa-form { padding: 28px 28px 26px; position: sticky; top: calc(var(--hd-h) + 20px); }
.qa-form h2 { font-size: 19px; margin-bottom: 4px; }
.qa-form .lead { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.qa-form .btn { width: 100%; margin-top: 20px; }
.qlist { display: grid; gap: 16px; }
.qitem { padding: 22px 26px; }
.q-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.qitem h3 { font-size: 17px; line-height: 1.55; }
.status { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 1px 10px; border-radius: 999px; font-size: 12px; border: 1px solid currentColor; }
.status.ok { color: var(--ok); }
.status.wait { color: var(--wait); }
.q-body { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.q-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.q-ref { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); }
.answer { margin-top: 16px; padding: 14px 0 0 18px; border-left: 1px solid var(--gold); }
.answer .who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.answer .who .av { width: 32px; height: 32px; font-size: 13px; }
.answer .who b { font-family: var(--serif); font-weight: 600; }
.answer .who span { color: var(--muted); font-size: 12px; }
.answer p { margin-top: 8px; font-size: 14px; color: var(--ink); }
.answer.pending p { color: var(--muted); }
.new-in { animation: newIn .6s var(--ease) both; }
@keyframes newIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* コラム */
.col-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.col-index .col-card:first-child { grid-column: span 2; grid-row: span 2; }
.col-card .thumb { aspect-ratio: 16 / 10; }
.col-card:first-child .thumb { aspect-ratio: 16 / 10.4; }
.col-card h3 { margin-top: 14px; font-size: 17px; line-height: 1.55; }
.col-card:first-child h3 { font-size: 24px; }
.col-card .ex { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.col-card:hover .thumb img { transform: scale(1.04); }
.article { max-width: 760px; margin: 0 auto; padding: 44px 56px 48px; }
.article .w-cat { text-align: center; }
.article h1 { margin-top: 8px; font-size: 30px; text-align: center; line-height: 1.5; }
.article .a-meta { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); }
.article .rule { margin: 22px auto; }
.article .cover { margin: 28px -20px 32px; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 9; }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.article .body p { font-size: 16px; line-height: 2.05; letter-spacing: .04em; }
.article .body p + p { margin-top: 1.3em; }
.article .fade { position: relative; max-height: 180px; overflow: hidden; }
.article .fade::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(180deg, transparent, var(--paper-solid)); }
.a-video { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.a-video h2 { font-size: 15px; margin-bottom: 12px; }
.a-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.back:hover { color: var(--ink); }

/* 勉強会 */
.sess-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 34px; }
.sess-main .img { aspect-ratio: 3 / 2; border-radius: var(--r-card); overflow: hidden; }
.sess-main .img img { width: 100%; height: 100%; object-fit: cover; }
.sess-date { display: flex; align-items: baseline; gap: 14px; }
.sess-date .md { font-family: var(--latin); font-size: 64px; font-weight: 500; line-height: 1; }
.sess-date .md span { color: var(--gold); margin: 0 2px; }
.sess-date .dw { font-size: 14px; color: var(--ink-2); }
.sess-main h2 { margin-top: 14px; font-size: 26px; }
.sess-main .s-desc { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
.sess-facts { margin: 18px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 13.5px; }
.sess-facts dt { color: var(--muted); }
.sess-facts dd { margin: 0; }
.join-info { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-input); background: var(--accent-soft); font-size: 13.5px; color: var(--ink-2); }
.join-info b { color: var(--ink); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 6px; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .md { font-family: var(--latin); font-size: 34px; font-weight: 500; line-height: 1; }
.timeline .md small { display: block; margin-top: 6px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.timeline h3 { font-size: 17px; }
.timeline .sub { font-size: 12.5px; color: var(--muted); }
.soon { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* マイページ */
.me-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 28px 32px; }
.me-head .av { width: 68px; height: 68px; font-size: 26px; }
.me-head h1 { font-size: 24px; }
.me-head .plan-line { margin-top: 2px; font-size: 13px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 20px; }
.stat { padding: 22px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .k { font-size: 12.5px; color: var(--muted); }
.stat .v { margin-top: 2px; font-family: var(--latin); font-size: 40px; font-weight: 500; line-height: 1.1; }
.stat .v small { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-left: 4px; }
.hist { display: grid; gap: 4px; }
.hist a { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 8px; border-radius: 12px; transition: background .2s; }
.hist a:hover { background: var(--paper-2); }
.hist .thumb { border-radius: 10px; box-shadow: none; }
.hist h3 { font-size: 14.5px; }
.hist .st { font-size: 12px; color: var(--muted); white-space: nowrap; }
.hist .st.ok { color: var(--ok); }
.billing { padding: 26px 30px; }
.billing dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 20px; margin: 0; font-size: 14px; }
.billing dt { color: var(--muted); }
.billing dd { margin: 0; }
.billing .cta { margin-top: 22px; }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.allmemos li a { color: var(--accent); font-size: 12px; }

/* 通知・ダイアログ */
.toasts { position: fixed; left: 50%; bottom: calc(var(--tab-space) + var(--mini-space, 0px) + 4px); z-index: 60; display: grid; gap: 8px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13.5px; box-shadow: var(--shadow-lg); animation: toastIn .4s var(--ease) both; pointer-events: auto; }
.toast i { font-size: 18px; color: var(--gold); }
.toast a { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
.toast.out { animation: toastOut .3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
.modal-bg { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(12,24,25,.42); animation: fadeIn .25s ease both; }
.modal { width: min(480px, 100%); padding: 30px 30px 26px; background: var(--paper-solid); border-radius: 18px; box-shadow: var(--shadow-lg); animation: modalIn .35s var(--ease) both; }
.modal h2 { font-size: 20px; }
.modal p { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.modal .cta { margin-top: 22px; justify-content: flex-end; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* 下のタブ(768px 以上は下に浮かぶ札。選んでいるタブの下地は JS で動かす) */
.tabbar { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30; display: grid; grid-template-columns: repeat(5, 84px); padding: 6px; transform: translateX(-50%); border-radius: 999px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.tabbar a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 56px; border-radius: 999px; color: var(--muted); font-size: 11px; line-height: 1.4; letter-spacing: .06em; -webkit-tap-highlight-color: transparent; transition: color .25s; }
.tabbar a:hover { color: var(--ink); }
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar a[aria-current="page"] .tl { color: var(--ink); font-weight: 600; }
.tabbar .ti { position: relative; display: grid; place-items: center; font-size: 24px; transition: transform .2s var(--ease); }
.tabbar a:active .ti { transform: scale(.9); }
.tab-ind { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 999px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(184,151,90,.28); opacity: 0; transition: transform .45s var(--ease), width .3s var(--ease), opacity .2s; pointer-events: none; }
.tabbar.has-cur .tab-ind { opacity: 1; }
.badge { position: absolute; top: 0; right: -4px; width: 9px; height: 9px; border-radius: 999px; background: var(--gold); box-shadow: 0 0 0 2px var(--paper-solid); animation: badgeIn .4s var(--ease) both; }
@keyframes badgeIn { from { transform: scale(0); } }
@media (prefers-reduced-transparency: reduce) { .tabbar { background: var(--paper-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.site-note { margin-top: 56px; text-align: center; font-size: 12px; color: var(--muted); }

/* 画面幅ごと */
@media (max-width: 1180px) {
  .me-name { display: none; }
  .me { padding: 3px; }
  .search input { width: 200px; }
  .search input:focus { width: 220px; }
  .row { grid-auto-columns: calc((100% - 48px) / 3); }
  .watch { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .session-band { grid-template-columns: 190px minmax(0, 1fr); }
  .session-band .s-img { display: none; }
}
@media (max-width: 1023px) {
  .hd-in { gap: 18px; padding: 0 20px; }
  .search { display: none; }
  .search.open { display: flex; position: absolute; left: 12px; right: 12px; top: 14px; z-index: 2; }
  .search.open input { width: 100%; background: var(--paper-solid); }
  .search-open { display: inline-grid; }
  .wrap { padding: 0 20px; }
  .hero { grid-template-columns: 1fr; }
  .hero-text { margin: -36px 16px 0; padding: 28px 26px; }
  .watch { grid-template-columns: minmax(0, 1fr); }
  .watch > *, .w-main > * { min-width: 0; }
  .qa-layout { grid-template-columns: 1fr; }
  .qa-form { position: static; }
  .gate-hero { grid-template-columns: 1fr; gap: 28px; }
  .gate-hero .img { order: -1; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; gap: 26px; }
  .sess-main { grid-template-columns: 1fr; gap: 26px; }
  .two { grid-template-columns: 1fr; }
  .col-home { grid-template-columns: 1fr; }
  .ask-band { grid-template-columns: 1fr; }
  .ask-band .r { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 767px) {
  :root { --tab-space: calc(66px + env(safe-area-inset-bottom)); --hd-h: 58px; }
  body { font-size: 14.5px; }
  .tabbar { left: 0; right: 0; bottom: 0; transform: none; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 4px env(safe-area-inset-bottom); border-radius: 0; border: 0; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(34,72,76,.35); transition: transform .3s var(--ease); }
  .tabbar a { height: 66px; border-radius: 0; gap: 3px; font-size: 10.5px; letter-spacing: .04em; }
  .tabbar .ti { width: 58px; height: 32px; font-size: 24px; }
  .badge { top: 3px; right: 13px; }
  body.kb .tabbar { transform: translateY(110%); }
  .has-back .logo { padding-left: 10px; }
  .has-back .logo-ja { display: none; }
  .mockbar { padding: 6px 14px; flex-wrap: wrap; gap: 4px 12px; }
  .mockbar-note { width: 100%; }
  .hd-in { padding: 0 14px; }
  .logo-en { font-size: 21px; }
  .wrap { padding: 0 16px; }
  .page { --page-pt: 22px; }
  .sec { margin-top: 48px; }
  .page-h h1 { font-size: 25px; }
  .row { grid-auto-columns: 74%; gap: 16px; }
  .row-nav { display: none; }
  .vgrid { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .vcard h3 { font-size: 14px; }
  .vcard-body { padding-top: 10px; }
  .thumb .hover-play { display: none; }
  .hero-text { margin: -28px 10px 0; padding: 24px 20px; }
  .hero-text::before, .hero-text::after { display: none; }
  .play-fab { width: 60px; height: 60px; margin: -30px 0 0 -30px; font-size: 24px; }
  .session-band { grid-template-columns: 1fr; gap: 16px; padding: 24px 22px; }
  .date-block { display: flex; align-items: baseline; gap: 12px; text-align: left; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .date-block .md { font-size: 44px; }
  .cats { grid-template-columns: 1fr 1fr; grid-template-rows: 220px repeat(2, 150px); gap: 12px; }
  .cat:first-child { grid-row: auto; grid-column: span 2; }
  .cat-txt { left: 16px; right: 16px; bottom: 12px; }
  .cat-txt h3 { font-size: 16px; }
  .col-item { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 8px 0; }
  .ask-band .l, .ask-band .r { padding: 24px 22px; }
  .features { grid-template-columns: 1fr; }
  .feature { border-left: 0 !important; border-top: 1px solid var(--line); padding: 20px 22px; }
  .feature:first-child { border-top: 0; }
  .toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .toolbar .select { align-self: flex-start; }
  .p-vol, .p-chap { display: none; }
  .p-btn { width: 36px; height: 36px; font-size: 20px; }
  .p-ctrl { padding: 0 8px 4px; }
  .w-info h1 { font-size: 22px; }
  .nitem { grid-template-columns: 132px minmax(0, 1fr); }
  .col-index { grid-template-columns: 1fr; gap: 30px; }
  .col-index .col-card:first-child { grid-column: auto; grid-row: auto; }
  .col-card:first-child h3 { font-size: 21px; }
  .article { padding: 28px 20px 32px; border-radius: 0; margin: -22px -16px 0; border-left: 0; border-right: 0; }
  .article h1 { font-size: 23px; }
  .article .cover { margin: 22px -20px 24px; border-radius: 0; }
  .article .body p { font-size: 15.5px; }
  .a-foot { flex-direction: column; align-items: stretch; }
  .sess-main { padding: 22px; }
  .sess-date .md { font-size: 48px; }
  .sess-main h2 { font-size: 22px; }
  .timeline li { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .timeline li .soon { grid-column: 2; }
  .timeline .md { font-size: 28px; }
  .me-head { grid-template-columns: auto minmax(0, 1fr); padding: 22px; }
  .me-head .btn { grid-column: span 2; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 16px 14px; }
  .stat .v { font-size: 30px; }
  .hist a { grid-template-columns: 96px minmax(0, 1fr); }
  .hist .st { grid-column: 2; }
  .billing dl { grid-template-columns: 110px 1fr; }
  .qitem { padding: 20px; }
  .qa-form { padding: 22px 20px; }
  .gate-box { padding: 28px 22px; }
  .p-next { grid-template-columns: 110px minmax(0, 1fr); }
}
/* ===== YouTube 型の画面設計(2026-12-01) =====
   見出しは 左にロゴ・まん中に検索・右にマイページ。ホームは上に絞り込みのチップ、下に動画の一覧と棚。
   プレーヤーは 1 つだけで、ほかの画面に移ると .mini(小さな画面)へ移る。 */
.hd-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr); gap: 20px; }
.hd-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hd .search { width: 100%; }
.hd .search input, .hd .search input:focus { width: 100%; height: 40px; }
.hd-tools { justify-self: end; margin-left: 0; }

/* 絞り込みのチップ(見出しの下に貼りつく) */
.chipbar { position: sticky; top: var(--hd-h); z-index: 6; margin: 32px calc(50% - 50vw) 22px; padding: 10px calc(50vw - 50%); background: var(--paper); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.wrap > .chipbar:first-child { margin-top: calc(-1 * var(--page-pt)); }
.feed-count { margin: -6px 0 14px; font-size: 12.5px; color: var(--muted); }

/* 動画のカード */
.vcard > .thumb { display: block; }
.vcard-body { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 12px 2px 0; }
.vcard.no-ch .vcard-body { grid-template-columns: minmax(0, 1fr); }
.vc-av { width: 36px; height: 36px; font-size: 14px; transition: border-color .2s; }
.vc-av:hover { border-color: var(--gold); }
.vc-txt h3 { margin-top: 0; font-size: 15.5px; line-height: 1.5; }
.vc-txt h3 a:hover { color: var(--accent); }
.vcard-meta { margin-top: 2px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.vc-txt .vcard-meta + .vcard-meta { margin-top: 0; }
.vcard-meta a:hover { color: var(--ink); }

/* 再生画面 */
.w-info { margin-top: 16px; }
.w-info h1 { margin-top: 0; font-size: 23px; line-height: 1.5; }
.w-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 12px; }
.w-ch { display: flex; align-items: center; gap: 12px; min-width: 0; }
.w-ch .av { width: 42px; height: 42px; font-size: 16px; }
.w-ch-t { min-width: 0; }
.w-ch .n { display: block; font-family: var(--serif); font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.w-ch .n:hover { color: var(--accent); }
.w-ch .r { font-size: 12px; line-height: 1.4; color: var(--muted); }
.w-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper-2); font-size: 13px; color: var(--ink); white-space: nowrap; transition: background .2s, border-color .2s, transform .15s var(--ease); }
.pill i { font-size: 18px; }
.pill:hover { background: var(--paper-solid); }
.pill:active { transform: scale(.97); }
.pill[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.desc-box { margin-top: 14px; padding: 14px 18px 16px; border-radius: var(--r-card); background: var(--paper-2); border: 1px solid var(--line); }
.desc-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--ink-2); }
.desc-meta b { font-weight: 600; color: var(--ink); }
.desc-box .w-desc { margin-top: 6px; font-size: 14.5px; color: var(--ink); max-width: none; }
.desc-box .p-note { margin-top: 10px; }
.vq { margin-top: 30px; }
.vq h2 { margin-bottom: 14px; font-size: 18px; }
.vq h2 .cnt { margin-left: 8px; font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted); }
.vq-ask { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 4px; padding: 7px 18px 7px 7px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper-2); color: var(--muted); font-size: 14px; text-align: left; transition: border-color .2s, background .2s; }
.vq-ask:hover { border-color: var(--accent); background: var(--paper-solid); }
.vq-ask span:nth-child(2) { flex: 1; }
.vq-ask i { font-size: 18px; color: var(--accent); }
.vq-ask .av { width: 34px; height: 34px; font-size: 13px; color: var(--ink); }
.vq-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.vq-item > .av { width: 40px; height: 40px; font-size: 18px; color: var(--muted); }
.vq-who { font-size: 12px; color: var(--muted); }
.vq-who .link { font-size: 12px; }
.vq-item h3 { margin-top: 2px; font-size: 15px; }
.vq-body { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.vq-item .answer { margin-top: 12px; }
.vq-wait { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--wait); }
.next-list { margin-top: 0; }
.up-chips { margin: 24px 0 8px; }
.up-chips .chip { height: 32px; padding: 0 14px; font-size: 12.5px; }
.up-list { display: grid; gap: 4px; }

/* ホームの勉強会 */
.live { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); overflow: hidden; }
.live-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.live-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.live:hover .live-media img { transform: scale(1.03); }
.live-tag { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: rgba(15,28,29,.78); color: #fff; font-size: 12.5px; }
.live-tag i { color: #D9BE84; font-size: 15px; }
.live-body { display: flex; flex-direction: column; justify-content: center; padding: 26px 32px; }
.live-body h3 { margin-top: 4px; font-size: 21px; }
.live-body .s-desc { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.live-body .s-inst { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; }
.live-body .cta { margin-top: 18px; }
.av.sm { width: 28px; height: 28px; font-size: 12px; }

/* コラムの棚 */
.col-tile .thumb { aspect-ratio: 16 / 10; }
.col-tile h3 { margin-top: 12px; font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 入会前の見出し */
.gate-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; align-items: stretch; overflow: hidden; }
.gate-txt { align-self: center; padding: 40px 44px; }
.gate-hero h1 { font-size: clamp(26px, 2.6vw, 36px); }
.gate-img { position: relative; min-height: 320px; }
.gate-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gate-feats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.gate-feats li { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--accent-soft); font-size: 13px; color: var(--ink); }
.gate-feats i { font-size: 16px; color: var(--accent); }

/* 講師のチャンネル */
.inst-link { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.inst-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.chs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.chcard { display: block; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.chcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ch-cover { aspect-ratio: 16 / 6; overflow: hidden; }
.ch-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.chcard:hover .ch-cover img { transform: scale(1.04); }
.ch-body { position: relative; padding: 38px 20px 18px; }
.ch-av { position: absolute; top: -30px; left: 20px; width: 60px; height: 60px; font-size: 22px; background: var(--paper-solid); border: 1px solid var(--gold); box-shadow: 0 0 0 3px var(--paper-solid); }
.ch-en { font-family: var(--latin); font-size: 14px; line-height: 1.3; letter-spacing: .12em; color: var(--gold-ink); }
.chcard h3 { font-size: 18px; }
.chcard .r { font-size: 12px; color: var(--muted); }
.ch-head { margin-bottom: 6px; }
.ch-banner { aspect-ratio: 1320 / 300; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); }
.ch-banner img { width: 100%; height: 100%; object-fit: cover; }
.ch-id { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 24px; padding: 0 28px; }
.ch-av-lg { width: 120px; height: 120px; margin-top: -54px; font-size: 44px; background: var(--paper-solid); border: 1px solid var(--gold); box-shadow: 0 0 0 5px var(--paper-solid), var(--shadow); }
.ch-name { padding-top: 14px; }
.ch-name .ch-en { font-size: 17px; }
.ch-name h1 { font-size: 30px; line-height: 1.35; }
.ch-role { font-size: 13px; color: var(--muted); }
.ch-side { display: grid; gap: 12px; justify-items: end; padding-top: 18px; }
.ch-side .cta { margin-top: 0; }
.ch-stats { display: flex; gap: 26px; margin: 0; }
.ch-stats dt { font-size: 11.5px; color: var(--muted); }
.ch-stats dd { margin: 0; font-family: var(--latin); font-size: 30px; font-weight: 500; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.ch-stats small { margin-left: 3px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.ch-tabs { margin: 26px 0 22px; }
.ch-count { margin-bottom: 16px; font-size: 12.5px; color: var(--muted); }
.ch-cols .col-item { grid-template-columns: 200px minmax(0, 1fr); }
.col-item .ex { margin-top: 4px; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-about { padding: 28px 32px; }
.ch-about h2 { font-size: 19px; }
.ch-about p { font-size: 14.5px; line-height: 2; color: var(--ink-2); }
.ch-about p + p { margin-top: .9em; }
.ch-about .note { margin-top: 16px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.ch-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.ch-facts dt { color: var(--muted); }
.ch-facts dd { margin: 0; }

/* プレーヤーの置き場と小さな画面 */
.player-slot { position: relative; aspect-ratio: 16 / 9; }
.player-slot .player { width: 100%; height: 100%; aspect-ratio: auto; }
.mini { position: fixed; right: 24px; bottom: calc(var(--tab-space) + 8px); z-index: 32; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "v v v" "bar bar bar" "info play close"; width: 360px; border-radius: var(--r-card); overflow: hidden; background: var(--paper-solid); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.mini.in { animation: miniIn .45s var(--ease) both; }
@keyframes miniIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.mini-v { grid-area: v; position: relative; aspect-ratio: 16 / 9; background: var(--player); cursor: pointer; }
.mini .player { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; margin: 0; border-radius: 0; box-shadow: none; pointer-events: none; }
.mini .player > :not(video) { display: none !important; }
.mini-bar { grid-area: bar; height: 2px; background: var(--line); }
.mini-bar i { display: block; width: 0; height: 100%; background: var(--gold); }
.mini-info { grid-area: info; display: grid; align-content: center; min-width: 0; padding: 10px 6px 12px 14px; text-align: left; }
.mini-t { font-family: var(--serif); font-weight: 600; font-size: 14px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-s { font-size: 12px; line-height: 1.5; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-btn { align-self: center; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; font-size: 22px; color: var(--ink); transition: background .2s, transform .15s var(--ease); }
.mini-btn:hover { background: var(--accent-soft); }
.mini-btn:active { transform: scale(.92); }
.mini [data-act="mini-play"] { grid-area: play; }
.mini [data-act="mini-close"] { grid-area: close; margin-right: 6px; }
@media (min-width: 1280px) { .mini { bottom: calc(18px + env(safe-area-inset-bottom)); } }

@media (max-width: 1023px) {
  .hd-in { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .chs { gap: 14px; }
  .ch-id { grid-template-columns: auto minmax(0, 1fr); }
  .ch-side { grid-column: 1 / -1; justify-items: start; padding-top: 0; }
}
@media (max-width: 767px) {
  .me { display: none; }
  .vgrid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .vcard-body { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding-top: 10px; }
  .vc-av { width: 28px; height: 28px; font-size: 12px; }
  .vc-txt h3 { font-size: 14px; }
  .watch { row-gap: 0; }
  .w-main { display: contents; }
  .watch aside { margin-top: 26px; }
  .player-slot, .player.locked { margin: -22px -16px 0; }
  .player-slot .player, .player.locked { border-radius: 0; }
  .player-slot { position: sticky; top: var(--hd-h); z-index: 8; }
  .w-info h1 { font-size: 19px; }
  .w-bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .w-actions { flex-wrap: nowrap; margin: 0 -16px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
  .w-actions::-webkit-scrollbar { display: none; }
  .live { grid-template-columns: 1fr; }
  .live-body { padding: 20px 22px 22px; }
  .gate-hero { grid-template-columns: 1fr; }
  .gate-img { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .gate-txt { padding: 24px 22px 26px; }
  .chs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; margin: -4px -2px 0; }
  .chs::-webkit-scrollbar { display: none; }
  .chs > * { scroll-snap-align: start; }
  .ch-banner { aspect-ratio: 16 / 7; margin: -22px -16px 0; border-radius: 0; box-shadow: none; }
  .ch-id { gap: 14px; padding: 0; }
  .ch-av-lg { width: 84px; height: 84px; margin-top: -30px; font-size: 32px; box-shadow: 0 0 0 4px var(--paper-solid); }
  .ch-name { padding-top: 8px; }
  .ch-name h1 { font-size: 23px; }
  .ch-name .ch-en { font-size: 15px; }
  .ch-side { justify-items: stretch; }
  .ch-stats { justify-content: space-around; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .ch-side .cta > * { flex: 1; justify-content: center; }
  .ch-cols .col-item { grid-template-columns: 112px minmax(0, 1fr); }
  .ch-about { padding: 22px 20px; }
  .mini { left: 8px; right: 8px; width: auto; grid-template-columns: 112px minmax(0, 1fr) auto auto; grid-template-areas: "v info play close"; }
  .mini-v { aspect-ratio: auto; height: 63px; }
  .mini-bar { grid-area: auto; position: absolute; left: 0; right: 0; bottom: 0; }
  .mini-info { padding: 8px 4px 8px 12px; }
  .mini-t { font-size: 13px; }
  body.has-mini { --mini-space: 79px; }
  body.kb .mini { display: none; }
}
@media (max-width: 560px) {
  .vgrid { grid-template-columns: 1fr; gap: 26px; }
  .vcard-body { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .vc-av { width: 36px; height: 36px; font-size: 14px; }
  .vc-txt h3 { font-size: 15px; }
}
/* ===== 左のメニュー(YouTube 型のガイド・2026-12-02) =====
   1280px 以上は広いメニュー(236px)、768〜1279px と ≡ で畳んだときは細いメニュー(76px)、
   再生画面と 767px 以下はメニューを出さない(再生画面は ≡ で重ねて開く・767px 以下は下のタブ) */
.shell { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
main { grid-column: 2; container-type: inline-size; min-width: 0; }
.side { grid-column: 1; grid-row: 1; }
.chipbar { margin-left: calc(50% - 50cqw); margin-right: calc(50% - 50cqw); padding-left: calc(50cqw - 50%); padding-right: calc(50cqw - 50%); }
.side { position: sticky; top: var(--hd-h); height: calc(100dvh - var(--hd-h)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
body[data-side="none"] .side { display: none; }
body[data-side="full"] .side { width: 236px; padding: 10px 12px 28px; }
body[data-side="mini"] .side { width: 76px; padding: 6px 4px; }
.side-sec { padding: 8px 0; border-bottom: 1px solid var(--line); }
.side-a { position: relative; display: flex; align-items: center; gap: 18px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--ink); transition: background .2s; -webkit-tap-highlight-color: transparent; }
.side-a > i { flex-shrink: 0; font-size: 22px; color: var(--ink-2); }
.side-a:hover { background: var(--accent-soft); }
.side-a:active { transform: scale(.98); }
.side-a[aria-current="page"] { background: var(--accent-soft); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(184,151,90,.28); }
.side-a[aria-current="page"] > i { color: var(--accent); }
.side-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-av { width: 24px; height: 24px; font-size: 11px; }
.side-a .badge { position: static; flex-shrink: 0; box-shadow: none; }
.side-h { padding: 8px 12px 4px; font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .06em; color: var(--ink); }
.side-note { padding: 2px 12px 6px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.side-foot { padding: 16px 12px 0; font-size: 11.5px; line-height: 1.8; color: var(--muted); }
.side-m { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0 12px; border-radius: 10px; font-size: 10px; line-height: 1.3; letter-spacing: .02em; color: var(--ink-2); transition: background .2s; -webkit-tap-highlight-color: transparent; }
.side-m i { font-size: 24px; }
.side-m:hover { background: var(--accent-soft); }
.side-m[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--accent-soft); }
.side-m[aria-current="page"] i { color: var(--accent); }
.side-m .badge { top: 10px; right: 18px; }
.hd-menu { display: none; flex-shrink: 0; margin-right: 4px; }
.drawer { position: fixed; inset: 0; z-index: 45; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(12,24,25,.42); animation: fadeIn .25s ease both; }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: 252px; overflow-y: auto; padding: 0 12px 28px; background: var(--paper-solid); box-shadow: var(--shadow-lg); animation: drawerIn .35s var(--ease) both; overscroll-behavior: contain; }
@keyframes drawerIn { from { transform: translateX(-100%); } }
.drawer-hd { display: flex; align-items: center; gap: 10px; height: var(--hd-h); margin: 0 -12px; padding: 0 16px; }
.drawer-hd .logo-ja { display: block; }
@media (min-width: 768px) {
  :root { --tab-space: 24px; }
  .hd-in { max-width: none; padding: 0 24px 0 16px; }
  .hd-menu { display: inline-grid; }
  .hd-back { display: none !important; }
  .has-back .logo { padding-left: 0; border-left: 0; }
  .tabbar { display: none; }
  .mini { bottom: calc(18px + env(safe-area-inset-bottom)); }
}
@media (max-width: 767px) {
  .drawer { display: none; }
}
/* ===== 背景から浮かせる(2026-12-02 ユーザー「全体的にオブジェクトが背景に沈んでる」) =====
   大理石は少し静かにし、カード・メニュー・一覧は白い面と影で前に出す */
article.vcard, a.col-tile, .col-index .col-card { background: var(--paper-solid); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
article.vcard:hover, a.col-tile:hover, .col-index .col-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
article.vcard > .thumb, a.col-tile > .thumb, .col-index .col-card > .thumb { border-radius: 0; box-shadow: none; }
article.vcard .vcard-body { padding: 12px 14px 14px; }
a.col-tile h3 { margin: 12px 14px 0; }
a.col-tile .col-meta { margin: 4px 14px 14px; }
.col-index .col-card h3, .col-index .col-card .ex, .col-index .col-card .col-meta { margin-left: 18px; margin-right: 18px; }
.col-index .col-card .col-meta { margin-bottom: 18px; }
.row { padding: 6px 10px 26px; margin: -6px -10px -16px; scroll-padding: 0 10px; }
.vgrid { gap: 30px 22px; }
body[data-side="full"] .side, body[data-side="mini"] .side { background: var(--paper); border-right: 1px solid var(--line); box-shadow: 1px 0 0 rgba(255,255,255,.4), 8px 0 24px -18px rgba(30,64,68,.25); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
.chip { background: var(--paper-solid); box-shadow: 0 1px 2px rgba(30,64,68,.08); }
.chip[aria-pressed="true"] { box-shadow: none; }
.pill, .vq-ask, .row-nav button { background: var(--paper-solid); box-shadow: 0 1px 2px rgba(30,64,68,.08); }
.nitem { background: var(--paper-2); border: 1px solid var(--line); }
.nitem:hover { background: var(--paper-solid); box-shadow: var(--shadow); }
.up-list { gap: 8px; }
.desc-box { background: var(--paper); box-shadow: var(--shadow); }
.vq { padding: 22px 24px 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.vq-item:last-child { border-bottom: 0; }
.timeline { padding: 0 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.timeline li:first-child { border-top: 0; }
.timeline li:last-child { border-bottom: 0; }
.col-list { gap: 12px; }
.col-list .col-item { padding: 12px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.col-list .col-item:hover { background: var(--paper-solid); }
.memos li { background: var(--paper); border: 1px solid var(--line); }
.sub, .sec-h .sub, .page-h p { color: var(--muted); }
@media (max-width: 767px) {
  article.vcard .vcard-body { padding: 10px 10px 12px; }
  .vq { padding: 18px 16px 4px; }
  .timeline { padding: 0 16px; }
}
@media (max-width: 560px) {
  article.vcard .vcard-body { padding: 12px 14px 14px; }
}
@media (prefers-color-scheme: dark) {
  body[data-side="full"] .side, body[data-side="mini"] .side { box-shadow: 8px 0 24px -18px rgba(0,0,0,.7); }
  .chip, .pill, .vq-ask, .row-nav button { box-shadow: 0 1px 2px rgba(0,0,0,.35); }
}
.pub-tag { display: flex; align-items: center; gap: 6px; margin: -4px 0 10px; padding: 6px 12px; border-radius: var(--r-input); background: var(--accent-soft); font-size: 12.5px; color: var(--ink-2); }
.pub-tag i { font-size: 16px; color: var(--accent); }
.q-pub { display: inline-flex; align-items: center; gap: 4px; }
.q-pub i { font-size: 14px; }
/* ===== 点検での直し(2026-12-02) ===== */
:root { --link: #2C6570; }
@media (prefers-color-scheme: dark) { :root { --link: #9FD3DC; } }
.more, .link, .q-ref, .allmemos li a, .memos .t, .chaps .now, .side-foot a { color: var(--link); }
.inst-link:hover, .vc-txt h3 a:hover, .w-ch .n:hover { color: var(--link); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.p-end .p-end-t { margin-top: 6px; font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.5; letter-spacing: .06em; color: #fff; }
.p-locked .p-locked-t { margin-top: 6px; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.5; letter-spacing: .06em; color: #fff; }
.p-flash[data-side="l"] { left: 22%; }
.p-flash[data-side="r"] { left: 78%; }
.sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; padding: 6px; border-radius: var(--r-card); background: var(--paper-solid); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.sug-i { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--ink); }
.sug-i i { font-size: 19px; color: var(--muted); }
.sug-i:hover, .sug-i[aria-selected="true"] { background: var(--accent-soft); }
.sug-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-s { font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 767px) {
  .p-txtbtn { height: 36px; }
  .sug-s { display: none; }
}
/* ===== Musee ID のログイン(モック・2026-12-02)= 本物の id.musee-dynamic のログインの見た目に合わせる ===== */
.mockbar-admin { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #DCE8E8; text-decoration: underline; text-underline-offset: 3px; }
.me-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.me-acts .btn i { font-size: 16px; }
.me-head .plan-line + .plan-line { margin-top: 0; }
body.auth-page .hd, body.auth-page .side, body.auth-page .tabbar, body.auth-page .mini { display: none !important; }
body.auth-page { --tab-space: 0px; }
body.auth-page::before { background: radial-gradient(55% 45% at 0% 0%, rgba(236,206,192,.45), transparent 62%), radial-gradient(50% 50% at 100% 100%, rgba(176,202,184,.45), transparent 62%), #F8F6F1; }
.mid { max-width: 420px; margin: 0 auto; padding: 28px 0 40px; }
.mid-brand { text-align: center; margin-bottom: 26px; }
.mid-logo { font-family: var(--latin); font-size: 30px; font-weight: 500; letter-spacing: .03em; color: #3C3A33; }
.mid-logo span { margin-left: 12px; font-size: 12.5px; letter-spacing: .22em; color: #6E6A5F; }
.mid-sub { margin-top: 2px; font-size: 13px; letter-spacing: .06em; color: #6E6A5F; }
.mid-card { padding: 24px 22px 22px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(60,50,30,.06), 0 16px 40px -18px rgba(60,50,30,.25); color: #2B2A25; }
.mid-card h1 { font-size: 19px; letter-spacing: .08em; color: #2B2A25; }
.mid-lead { margin-top: 2px; font-size: 12.5px; color: #6E6A5F; }
.mid-line { display: block; width: 100%; height: 48px; margin-top: 18px; border-radius: 999px; background: #06C755; color: #fff; font-size: 15.5px; font-weight: 600; letter-spacing: .04em; transition: filter .2s, transform .15s var(--ease); }
.mid-line:hover { filter: brightness(.95); }
.mid-line:active, .mid-btn:active { transform: scale(.98); }
.mid-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; font-size: 12px; color: #8A867B; }
.mid-or::before, .mid-or::after { content: ""; flex: 1; height: 1px; background: #ECE7DE; }
.mid-card label:not(.check) { display: block; margin-bottom: 6px; font-size: 12.5px; color: #55524A; }
.mid-input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid #E5E0D6; background: #fff; font-size: 15px; color: #2B2A25; transition: border-color .2s, box-shadow .2s; }
.mid-input::placeholder { color: #A8A396; }
.mid-input:focus { outline: none; border-color: #476A58; box-shadow: 0 0 0 3px rgba(71,106,88,.15); }
.mid-code { padding-left: .5em; text-align: center; font-size: 24px; letter-spacing: .5em; }
.mid-btn { display: block; width: 100%; height: 48px; margin-top: 12px; border-radius: 999px; background: #476A58; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .04em; transition: background .2s, transform .15s var(--ease); }
.mid-btn:hover { background: #3D5C4C; }
.mid-card .err { margin-top: 6px; font-size: 12px; color: #B04A3A; }
.mid-check { margin-top: 14px; font-size: 13px; color: #55524A; }
.mid-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 14px; }
.mid-links button { font-size: 13px; color: #476A58; text-decoration: underline; text-underline-offset: 3px; }
.mid-mock { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: #FBF5E6; font-size: 12.5px; color: #6A5626; }
.mid-mock i { flex-shrink: 0; margin-top: 3px; font-size: 16px; }
.mid-mock b { font-size: 15px; letter-spacing: .12em; }
.mid-wait { width: 40px; height: 40px; margin: 22px auto 4px; border-radius: 999px; border: 3px solid #E2F6EA; border-top-color: #06C755; animation: midSpin .9s linear infinite; }
@keyframes midSpin { to { transform: rotate(360deg); } }
.mid-foot { margin-top: 18px; text-align: center; font-size: 12px; color: #6E6A5F; }
.mid-hint { margin-top: 22px; padding: 12px 14px; border-radius: 12px; border: 1px dashed #D9D2C4; background: rgba(255,255,255,.65); font-size: 12.5px; color: #55524A; }
.mid-hint b { display: block; margin-bottom: 2px; }
@media (max-width: 767px) { .mid { padding-top: 12px; } .mid-card { padding: 22px 18px 20px; } }
/* ===== 参加する勉強会のリスト(2026-12-02) ===== */
.my-ses { margin-bottom: 40px; }
.my-ses h2 .cnt { margin-left: 8px; font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted); }
.msess-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.msess { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 20px; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.msess-d { padding-right: 16px; border-right: 1px solid var(--line-2); text-align: center; }
.msess-d .md { font-family: var(--latin); font-size: 32px; font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.msess-d .dw { margin-top: 4px; font-size: 12px; color: var(--muted); }
.msess-b h3 { font-size: 16.5px; }
.msess-b .sub { font-size: 12.5px; color: var(--muted); }
.msess-join { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.msess-join i { color: var(--link); }
.msess-b .btn { margin-top: 8px; }
.msess-a { display: flex; flex-direction: column; gap: 8px; }
.msess-empty { display: flex; align-items: center; gap: 12px; padding: 18px 20px; font-size: 13.5px; color: var(--ink-2); }
.msess-empty i { flex-shrink: 0; font-size: 24px; color: var(--link); }
.timeline li > .tag-ok { height: 32px; }
@media (max-width: 767px) {
  .msess { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 14px 16px; }
  .msess-d { padding-right: 10px; }
  .msess-d .md { font-size: 26px; }
  .msess-a { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .timeline li > .btn, .timeline li > .tag-ok { grid-column: 2; justify-self: start; }
  /* スクロールで見出しと下のタブを隠す(下へ: 隠す・上へ: 出す) */
  .hd { transition: transform .3s var(--ease); }
  .chipbar, .player-slot { transition: top .3s var(--ease); }
  .mini { transition: bottom .3s var(--ease); }
  body.chrome-hidden .hd { transform: translateY(-100%); }
  body.chrome-hidden .tabbar { transform: translateY(110%); }
  body.chrome-hidden .chipbar, body.chrome-hidden .player-slot { top: 0; }
  body.chrome-hidden .mini { bottom: calc(8px + env(safe-area-inset-bottom)); }
  body.chrome-hidden .toasts { bottom: calc(16px + var(--mini-space, 0px)); }
}
/* ===== 勉強会の当日の表示・モックの時計・勉強会の画像(2026-12-02) ===== */
.msess { grid-template-columns: 96px 168px minmax(0, 1fr) auto; }
.msess-th { width: 168px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.seg button, .mockbar-admin, .mockbar-reset { white-space: nowrap; }
.msess.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.ph-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; margin-top: 6px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--link); font-size: 12px; font-weight: 600; }
.ph-badge.ph-open { background: var(--accent); color: var(--accent-ink); }
.ph-badge.ph-live { background: #B04A3A; color: #fff; }
.ph-badge.ph-ended { background: var(--line); color: var(--muted); }
.ph-badge .dot, .live-tag .dot { width: 7px; height: 7px; border-radius: 999px; background: #fff; animation: livePulse 1.4s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .3; } }
.dayof { display: grid; justify-items: start; gap: 6px; margin-top: 4px; }
.dayof p { font-size: 13px; color: var(--ink-2); }
.dayof .ph-badge { margin-top: 2px; }
.dayof-url { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); word-break: break-all; }
.sess-main .dayof { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-input); background: var(--accent-soft); }
.mock-clock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r-input); border: 1px dashed var(--line-2); background: var(--paper-2); }
.mc-l { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-chips .chip { height: 30px; padding: 0 12px; font-size: 12.5px; }
.live-tag.is-live { background: #B04A3A; }
.live-tag.is-today { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 767px) {
  .msess { grid-template-columns: 70px minmax(0, 1fr); }
  .msess-th { display: none; }
  .mockbar-label { display: none; }
  .me-head .me-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .mockbar-ctrl { flex-wrap: wrap; gap: 6px 12px; }
  .seg button { padding: 2px 10px; }
}
/* ===== 参加する勉強会のカレンダー(2026-12-02) ===== */
.ses-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 14px; }
.view-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper-solid); border: 1px solid var(--line-2); }
.view-seg button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2); transition: background .2s, color .2s; }
.view-seg button i { font-size: 16px; }
.view-seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.cal { padding: 18px 20px 16px; }
.cal-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cal-h h3 { min-width: 8.5em; font-size: 19px; text-align: center; font-variant-numeric: lining-nums tabular-nums; }
.cal-nav { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper-solid); font-size: 16px; color: var(--ink-2); }
.cal-nav:hover { border-color: var(--accent); }
.cal-now { margin-left: auto; }
.cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cal-w { padding: 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); font-size: 12px; color: var(--muted); text-align: center; }
.cal-w:first-child { color: #B04A3A; }
.cal-w:nth-child(7) { color: var(--link); }
.cal-c { display: flex; flex-direction: column; gap: 4px; min-height: 100px; padding: 5px 6px 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-solid); min-width: 0; }
.cal-c.is-empty { background: var(--paper-2); }
.cal-c.is-sel { background: var(--accent-soft); }
.cal-d { align-self: flex-start; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; font-size: 13px; color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; }
.cal-c.is-sun .cal-d { color: #B04A3A; }
.cal-c.is-sat .cal-d { color: var(--link); }
.cal-c.is-today .cal-d { background: var(--ink); color: var(--bg); font-weight: 600; }
.cal-ev { display: grid; width: 100%; min-width: 0; padding: 4px 7px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper-solid); text-align: left; font-size: 11.5px; line-height: 1.35; color: var(--ink); transition: transform .15s var(--ease), box-shadow .2s; }
.cal-ev:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.cal-ev .t { font-size: 11px; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.cal-ev .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cal-ev.is-mine { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cal-ev.is-mine .t { color: inherit; opacity: .85; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.cal-legend .lg { display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 4px; vertical-align: -1px; }
.lg.mine { background: var(--accent); }
.lg.other { background: var(--paper-solid); border: 1px solid var(--line-2); }
.cal-list { display: none; }
@media (max-width: 767px) {
  .cal { padding: 14px 10px 12px; }
  .cal-h { gap: 6px; }
  .cal-h h3 { min-width: 0; flex: 1; font-size: 17px; }
  .cal-now { margin-left: 0; }
  .cal-c { align-items: center; gap: 3px; min-height: 54px; padding: 4px 2px; }
  .cal-d { align-self: center; width: 30px; height: 30px; }
  .cal-ev { width: 7px; height: 7px; padding: 0; border-radius: 999px; pointer-events: none; }
  .cal-ev .t, .cal-ev .n { display: none; }
  .cal-ev:not(.is-mine) { background: var(--line-2); border-color: var(--line-2); }
  .cal-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
  .cal-li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper-2); text-align: left; }
  .cal-li.is-mine { border-color: var(--accent); background: var(--accent-soft); }
  .cal-li .d { font-family: var(--latin); font-size: 20px; line-height: 1.1; text-align: center; font-variant-numeric: lining-nums tabular-nums; }
  .cal-li .d small { display: block; font-family: var(--sans); font-size: 11px; color: var(--muted); }
  .cal-li .n { font-size: 14px; font-weight: 600; min-width: 0; }
  .cal-li .n small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
  .cal-li > i { font-size: 16px; color: var(--muted); }
  .cal-none { padding: 10px 4px; font-size: 13px; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
