/* 新みんなの投資ラボ 共通スタイル（モックアップと同じ配色・書体） */
:root {
  --bg: #0A0A0B;
  --surface: #121214;
  --surface-2: #18181B;
  --nav: #0F0F11;
  --border: #2A2A2F;
  --border-soft: #1E1E22;
  --text: #F2F2F3;
  --muted: #A1A1A8;
  --faint: #6E6E76;
  --coral: #E5635E;
  --button: #C9483F;
  --gold: #E3A33B;
  --teal: #3DBBA8;
  --sans: 'Noto Sans JP', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.6; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--coral); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.site-header { border-bottom: 1px solid var(--border); }
.site-header__inner { max-width: 1360px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 36px; height: 36px; border-radius: 8px; background: var(--coral); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 900; }
.brand__name { font-weight: 700; }
.brand__partner { display: inline-flex; }
.site-nav { display: flex; gap: 22px; font-size: 14px; align-items: center; }
.site-nav a { color: var(--muted); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--coral); padding-bottom: 2px; }
.site-nav__user { font-size: 13px; color: var(--muted); }

.container { max-width: 1000px; margin: 0 auto; padding: 32px 24px 96px; display: flex; flex-direction: column; gap: 24px; }
.label { font-family: var(--mono); font-size: 12px; color: var(--coral); letter-spacing: 0.12em; }
h1 { margin: 0; font-size: 28px; font-weight: 900; line-height: 1.3; }
h2 { margin: 0; font-size: 18px; font-weight: 900; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.card { padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.badge { font-family: var(--mono); font-size: 11px; border: 1px solid currentColor; border-radius: 4px; padding: 1px 6px; align-self: flex-start; }
.release-tag { margin-right: 6px; vertical-align: 1px; }
.badge--teal { color: var(--teal); } .badge--gold { color: var(--gold); } .badge--coral { color: var(--coral); } .badge--muted { color: var(--muted); }

/* 送信中：押したボタンの文字を隠して、くるくるを出す（form-once.js。2026-11-04） */
.is-sending { position: relative; color: transparent !important; pointer-events: none; }
.is-sending > * { visibility: hidden; }
.is-sending::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid var(--text); border-right-color: transparent; animation: ml-spin .7s linear infinite; visibility: visible; }
.btn--primary.is-sending::after { border-color: #fff; border-right-color: transparent; }
@keyframes ml-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .is-sending::after { animation-duration: 2s; } }
.btn { min-height: 44px; padding: 0 18px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--text); }
.btn--primary { background: var(--button); border-color: var(--button); color: #fff; }
.btn--primary:hover { color: #fff; filter: brightness(1.08); }
.btn--small { min-height: 36px; padding: 0 12px; font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.input { min-height: 48px; padding: 10px 14px; border-radius: 8px; border: 1px solid #3A3A42; background: #1C1C21; color: var(--text); font-family: inherit; font-size: 16px; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.input::placeholder { color: #6E6E78; }
.input:hover { border-color: #4A4A54; }
/* 入力中：枠を橙にして、背景を少し明るく */
.input:focus, .input:focus-visible { outline: none; border-color: var(--gold); background: #222228; box-shadow: 0 0 0 3px rgba(227, 163, 59, .25); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border-soft); font-size: 13px; vertical-align: top; }
th { color: var(--muted); font-weight: 500; }

.flash { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--teal); color: var(--teal); background: #0C1A18; }
.flash--error { border-color: var(--coral); color: var(--coral); background: #1A0F0E; }

.card-exp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.card-exp .input { width: auto; min-width: 96px; }
.card-bar { border-bottom: 1px solid var(--border); background: #1A1210; }
.card-bar--alert { background: #2A1211; border-bottom-color: var(--coral); }
.card-bar__inner { max-width: 1360px; margin: 0 auto; padding: 10px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.card-bar__text { flex: 1 1 260px; min-width: 0; font-size: 14px; font-weight: 700; }
.card-bar--alert .card-bar__text { color: var(--coral); }
.card-bar__later { margin: 0; }
@media (max-width: 600px) { .card-bar__inner { padding: 10px 16px; } }
.env-bar { background: #1F1A08; border-bottom: 1px solid #5A4A12; color: #F2E6C4; font-size: 12px; padding: 6px 24px; font-family: var(--mono); }

@media (max-width: 640px) {
  .container { padding: 24px 16px 72px; }
  .site-header__inner { padding: 12px 16px; }
  h1 { font-size: 24px; }
}

/* フォーム（認証画面） */
.form-card { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.form-card h1 { font-size: 24px; }
.field__hint { font-weight: 400; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 40px; font-size: 14px; }
.check input { margin-top: 4px; }
.btn--block { width: 100%; min-height: 52px; font-size: 16px; font-weight: 900; border-radius: 10px; }
.form-foot { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.form-foot--line { padding-top: 12px; border-top: 1px solid var(--border); }
.link { color: var(--coral); text-decoration: underline; }
.link--muted { color: var(--muted); text-decoration: underline; }
.input--code { border-color: #5A4A12; font-family: var(--mono); }
.dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }

/* サロン（B1・B2） */
.lab { max-width: 1360px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.lab-nav { flex: 1 1 280px; max-width: 320px; min-width: 0; }
.lab-nav__mobile { display: none; }
.lab-nav__mobile > summary { cursor: pointer; padding: 12px 14px; border: 1px solid var(--button); border-radius: 8px; font-weight: 700; list-style: none; background: var(--button); color: #fff; display: flex; align-items: center; gap: 4px; }
/* スマホのルーム一覧：赤いボタンにして、押せる場所だと分かるように（2026-11-05 熊谷さん指定） */
.lab-nav__mobile > summary::-webkit-details-marker { display: none; }
.lab-nav__mobile > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.lab-nav__mobile[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.lab-nav__mobile > summary:hover { filter: brightness(1.08); }
.lab-nav__mobile > summary .muted { color: rgba(255, 255, 255, .85); }
.lab-nav__mobile > summary .unread-dot { box-shadow: 0 0 0 2px #fff; }
.lab-nav__mobile[open] > summary { margin-bottom: 8px; }
.lab-room { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border-radius: 8px; font-size: 14px; color: var(--text); }
.lab-room:hover { background: var(--surface); color: var(--text); }
.lab-room.is-current { background: var(--surface-2); font-weight: 700; box-shadow: inset 3px 0 0 var(--coral); }
.lab-room.is-locked { color: var(--faint); }
.lab-room--latest { font-weight: 700; border: 1px solid var(--border); margin-bottom: 6px; }
.lab-group { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.lab-group__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; padding: 4px 12px; }
.lab-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.lab-head { display: flex; flex-direction: column; gap: 4px; padding-bottom: 8px; }
.lab-head h1 { font-size: 26px; }
.lab-head p { margin: 0; font-size: 14px; }
.lab-empty { color: var(--muted); padding: 32px 16px; text-align: center; border: 1px dashed var(--border); border-radius: 12px; margin: 0; }
.notice-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border-radius: 10px; background: #1F1A08; border: 1px solid #5A4A12; font-size: 14px; color: #F2E6C4; }
.topic-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.topic-list li + li { border-top: 1px solid var(--border-soft); }
.topic-cards { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.topic-card { display: grid; gap: 6px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); }
a.topic-card:hover { border-color: var(--muted); }
.topic-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.topic-card__title { font-weight: 700; font-size: 16px; }
.topic-card__text { color: var(--muted); line-height: 1.75; font-size: 14px; }
.topic-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }
.topic-card__more { font-size: 13px; color: var(--coral); }
.topic-fold > summary { list-style: none; cursor: pointer; }
.topic-fold > summary::-webkit-details-marker { display: none; }
.topic-fold[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.topic-fold[open] > summary .topic-card__text, .topic-fold[open] > summary .topic-card__foot { display: none; }
.topic-fold__body { padding: 4px 18px 14px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 12px 12px; background: var(--surface); }
.topic-latest { margin: 0 0 16px; padding: 16px 18px; border: 2px solid var(--coral); border-radius: 14px; background: var(--surface); }
.topic-latest__head { display: grid; gap: 6px; margin-bottom: 8px; color: var(--text); }
.next-live { margin: 0 0 16px; padding: 12px; border: 2px solid var(--gold); border-radius: 14px; background: #1F1A08; }
.next-live__label { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px 4px; font-weight: 700; color: var(--gold); }
.topic-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; color: var(--text); }
.topic-row:hover { background: var(--surface-2); color: var(--text); }
.topic-row__date { font-family: var(--mono); font-size: 12px; color: var(--muted); flex: 0 0 52px; }
.topic-row__main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.topic-row__title { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.topic-row__meta { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-row__stats { display: flex; gap: 14px; font-family: var(--mono); font-size: 12px; color: #8A8A92; }
.topic-row__stats span { display: inline-flex; align-items: center; gap: 4px; }
.lock-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 16px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); text-align: center; }
.lock-card p { margin: 0; color: var(--text); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.topic { display: flex; flex-direction: column; gap: 20px; }
.topic__head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.topic__head h1 { font-size: 26px; }
.topic__date { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.tts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; }
.tts[hidden] { display: none; }
.tts__rate { width: auto; height: auto; min-height: 0; padding: 6px 10px; font-size: 13px; line-height: 1.4; }
.topic__body { font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.topic__body h2 { font-size: 20px; margin: 28px 0 8px; }
.topic__body h3 { font-size: 18px; font-weight: 700; margin: 24px 0 6px; }
.topic__body p { margin: 0 0 16px; }
.topic__body ul { margin: 0 0 16px; padding-left: 22px; }
.topic__body a { color: var(--coral); text-decoration: underline; }
.topic__body .up { color: var(--coral); } .topic__body .down { color: #5BC8F0; }
.topic__body figure { margin: 0 0 16px; }
.topic__body img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); }
.topic__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }

@media (max-width: 760px) {
  .lab { padding: 16px; }
  .lab-nav { max-width: none; flex-basis: 100%; }
  .lab-nav__desktop { display: none; }
  .lab-nav__mobile { display: block; }
  .topic-row__meta { white-space: normal; }
}

/* 管理画面（共通） */
.admin-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.admin-form .field { color: var(--muted); }
.toggle-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.yes { color: var(--teal); } .no { color: var(--faint); }

/* 管理画面：トピック一覧のタブ */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; }
.tab.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* エディタ（B3） */
.editor { display: flex; flex-direction: column; gap: 16px; }
.editor__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.editor__head h1 { font-size: 24px; }
.editor__template { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.editor__form { display: flex; flex-direction: column; gap: 14px; }
.editor__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.editor__panes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.editor__pane { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.editor__pane-label { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.editor__textarea { min-height: 520px; resize: vertical; font-size: 15px; line-height: 1.8; font-family: var(--sans); }
.editor__textarea.is-drop { border-color: var(--gold); background: #15120A; }
.editor__preview { min-height: 520px; max-height: 80vh; overflow: auto; padding: 14px 18px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.editor__publish { border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); margin: 0; }
.editor__publish legend { padding: 0 6px; }
.editor__publish input[type="datetime-local"]:disabled { opacity: 0.4; }
.editor__tpl-save { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 900px) {
  .editor__panes { grid-template-columns: 1fr; }
  .editor__textarea, .editor__preview { min-height: 320px; }
}

/* 返信・いいね（B2） */
.like-form { display: inline; margin: 0; }
.like { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-family: var(--mono); font-size: 13px; cursor: pointer; }
.like:hover { color: var(--coral); border-color: var(--coral); }
.like.is-on { color: var(--coral); border-color: var(--coral); background: #1A0F0E; }
.like.is-on svg { fill: currentColor; }
.like.is-static { cursor: default; border-color: transparent; padding-left: 0; }
.like.is-static:hover { color: var(--muted); }
.replies { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.replies h2 { font-size: 18px; }
.reply-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.reply { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 16px; }
.reply:target { border-color: var(--gold); }
.reply__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.reply__body { font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.reply__body p { margin: 0 0 8px; }
.reply__body a { color: var(--coral); text-decoration: underline; }
.reply__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.reply__edit { flex: 1 1 100%; }
.reply__edit summary { cursor: pointer; display: inline-block; }
.reply-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.reply-form textarea { font-family: var(--sans); font-size: 15px; line-height: 1.7; resize: vertical; }
.author-link { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--border); }

/* ハンドル名の色（ランク）と運営マーク。2026-10-16 決定 */
.name { font-weight: 700; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
a.name:hover { text-decoration: underline; }
.name--r1, a.name--r1:hover { color: #F2F2F3; }
.name--r2, a.name--r2:hover { color: #9FD8F5; }
.name--r3, a.name--r3:hover { color: #A8E6B0; }
.name--r4, a.name--r4:hover { color: #F7C08A; }
.name--r5, a.name--r5:hover { color: #F4A3A3; }
.name--staff, a.name--staff:hover { color: #F5D35B; }
.name--gone { color: var(--faint); font-weight: 400; }
.staff-icon { flex: 0 0 auto; vertical-align: -3px; }

/* ---------- 2-4：未読・検索・お知らせ ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lab-room__name { flex: 1; min-width: 0; }
.unread-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #F59E0B; margin-left: 6px; vertical-align: middle; }
.badge--new { color: var(--coral); margin-right: 6px; }
.lab-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.lab-search { display: flex; gap: 8px; flex: 1; min-width: 220px; max-width: 480px; }
.lab-search .input { flex: 1; min-width: 0; }
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--muted); }
.bell:hover { color: var(--text); }
.bell__count { position: absolute; top: -2px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: #fff; font: 700 11px/18px var(--mono); text-align: center; }
.notif-list { list-style: none; margin: 16px 0; padding: 0; border-top: 1px solid var(--border); }
.notif { border-bottom: 1px solid var(--border); }
.notif__btn { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: baseline; width: 100%; padding: 12px 8px; background: none; border: 0; color: var(--muted); text-align: left; font: inherit; cursor: pointer; }
.notif__btn:hover { background: var(--surface); }
.notif.is-unread .notif__btn { color: var(--text); font-weight: 700; }
.notif.is-unread .notif__type::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); margin-right: 6px; }
.notif__type { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
@media (max-width: 600px) { .notif__btn { grid-template-columns: 1fr; } }

/* ---------- フェーズ3：動画（管理画面） ---------- */
.video-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 160px; padding: 24px; border: 2px dashed #3A3A42; border-radius: 12px; background: #16161A; text-align: center; color: var(--muted); }
.video-drop p { margin: 0; }
.video-drop.is-over { border-color: var(--gold); background: #1F1E1A; color: var(--text); }
.video-drop.is-busy { opacity: .6; pointer-events: none; }
.video-progress { display: flex; align-items: center; gap: 12px; }
.video-progress progress { flex: 1; height: 10px; accent-color: var(--gold); }
.video-admin-thumb { max-width: 320px; border-radius: 8px; border: 1px solid var(--border); }

/* ---------- フェーズ3：動画（一覧・再生） ---------- */
/* PC 4列・タブレット 3列（1ページ24本で割り切れる）・スマホは横長の行 */
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.video-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); color: var(--text); }
.video-card:hover { border-color: #4A4A54; color: var(--text); }
.video-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card__noimg { position: absolute; inset: 0; background: linear-gradient(135deg, #1C1C21, #0E0E10); }
.video-card.is-locked .video-card__thumb img { filter: brightness(.45) grayscale(.4); }
.video-card__dur { position: absolute; right: 8px; bottom: 8px; padding: 1px 6px; border-radius: 4px; background: rgba(0, 0, 0, .75); font: 500 12px/18px var(--mono); }
.video-card__lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text); }
.video-card__lock svg { width: 28px; height: 28px; }
.video-card__bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--coral); }
.video-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.video-card__badges { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.video-card__badges:empty { display: none; }
.video-card__badges .badge { margin: 0; }
.video-card__title { font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.video-card__meta { font-size: 12px; color: var(--muted); }
.player { margin: 12px 0 24px; }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }
.player__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.player__speed { display: flex; flex-wrap: wrap; gap: 4px; }
.speed { min-height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--muted); font: 500 12px var(--mono); cursor: pointer; }
.speed.is-on { border-color: var(--gold); color: var(--text); }
.player--locked { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }
.player--locked img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.35) blur(2px); }
.player--locked .lock-card { position: relative; background: rgba(18, 18, 20, .85); }
.link-btn { padding: 0; border: 0; background: none; color: var(--gold); font: inherit; cursor: pointer; text-decoration: underline; }
.video-info h1 { margin: 4px 0 8px; }
.video-info .topic__body { margin-top: 16px; }
@media (max-width: 1080px) { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; gap: 0; }
  .video-grid > li + li { border-top: 1px solid var(--border); }
  .video-card { flex-direction: row; align-items: flex-start; gap: 12px; padding: 10px 0; border: 0; border-radius: 0; background: none; }
  .video-card__thumb { flex: 0 0 44%; border-radius: 8px; overflow: hidden; }
  .video-card__dur { right: 4px; bottom: 4px; font-size: 11px; line-height: 16px; padding: 0 4px; }
  .video-card__lock svg { width: 22px; height: 22px; }
  .video-card__body { flex: 1; min-width: 0; gap: 4px; padding: 0; }
  .video-card__title { font-size: 14px; line-height: 1.45; -webkit-line-clamp: 3; }
  .video-card__meta { font-size: 11px; }
  .video-card__badges .badge { font-size: 10px; padding: 0 5px; }
}
.pager-num { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 28px 0 8px; }
.pager-num a, .pager-num span { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); color: var(--text); font: 500 14px var(--mono); }
.pager-num a:hover { border-color: #4A4A54; }
.pager-num .is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.pager-num .gap { border: 0; min-width: 20px; padding: 0; color: var(--muted); }
.thumb-edit { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; padding: 8px; margin: -8px; border: 2px dashed transparent; border-radius: 12px; }
.thumb-edit.is-over { border-color: var(--gold); background: #1F1E1A; }
.thumb-edit__side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; max-width: 360px; }
.video-admin-thumb--none { display: flex; align-items: center; justify-content: center; width: 320px; aspect-ratio: 16 / 9; background: #16161A; color: var(--muted); font-size: 13px; }

/* ---------- フェーズ4-1：ライブ告知 ---------- */
.badge--live { color: #fff; background: #D9473F; border-color: #D9473F; }
.live-card { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 8px; padding: 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.live-card--live { border-color: #D9473F; box-shadow: 0 0 0 1px #D9473F inset; }
.live-card--soon { border-color: var(--gold); }
.live-card__head { display: flex; align-items: center; gap: 10px; }
.live-card__head .badge { margin: 0; align-self: center; }
.live-card__kind { font-weight: 700; }
.live-card__time { margin: 0; font: 700 18px/1.5 var(--mono); }
.live-card__until { margin-left: 12px; font: 700 14px var(--sans, inherit); color: var(--gold); }
.live-card__minutes { border-top: 1px solid var(--border); padding-top: 12px; }
.live-card__minutes h2 { margin: 0 0 8px; font-size: 16px; }

/* ---------- フェーズ4-3：投資カレンダー ---------- */
.cal-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-nav__month { font-size: 20px; min-width: 120px; text-align: center; }
.cal-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.cal-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; cursor: pointer; }
.cal-chip input { accent-color: var(--gold); }
.cal-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cal-grid__dow { padding: 6px; text-align: center; font-size: 12px; color: var(--muted); background: var(--surface); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cal-grid__dow.is-sun, .cal-cell.is-sun .cal-cell__day { color: #F4A3A3; }
.cal-grid__dow.is-sat, .cal-cell.is-sat .cal-cell__day { color: #9FD8F5; }
.cal-cell { min-height: 104px; padding: 4px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); min-width: 0; }
.cal-cell.is-empty { background: #0E0E10; }
.cal-cell.is-today { background: #1A1914; }
.cal-cell.is-today .cal-cell__day { background: var(--gold); color: #000; border-radius: 999px; padding: 0 6px; align-self: flex-start; }
.cal-cell__day { font: 500 12px/20px var(--mono); }
.cal-ev { display: flex; gap: 4px; padding: 1px 4px; border-left: 3px solid var(--c); border-radius: 3px; background: #18181C; color: var(--text); font-size: 11px; line-height: 1.5; overflow: hidden; white-space: nowrap; }
.cal-ev:hover { color: var(--text); background: #222228; }
.cal-ev__time { color: var(--muted); font-family: var(--mono); }
.cal-ev__title { overflow: hidden; text-overflow: ellipsis; }
.cal-list-h { margin: 28px 0 10px; font-size: 18px; }
.cal-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.cal-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 6px 16px; align-items: baseline; padding: 12px 16px; }
.cal-item + .cal-item { border-top: 1px solid var(--border-soft); }
.cal-item:target { background: #1F1E1A; }
.cal-item.is-past { opacity: .55; }
.cal-item__date { font: 500 13px var(--mono); }
.cal-item__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-item__title { font-weight: 700; overflow-wrap: anywhere; }
.cal-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cal-tag { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 4px; border: 1px solid var(--c); color: var(--c); font-size: 11px; font-weight: 500; vertical-align: 1px; }
.cal-stars { color: var(--gold); font-size: 11px; letter-spacing: 1px; }
.cal-feed { margin-top: 32px; }
@media (max-width: 760px) {
  .cal-cell { min-height: 64px; }
  .cal-ev { padding: 0; border-left-width: 0; height: 6px; background: var(--c); }
  .cal-ev__time, .cal-ev__title { display: none; }
  .cal-item { grid-template-columns: 1fr; }
  .cal-item__side { flex-direction: row; align-items: center; gap: 12px; }
}
.code-sample { margin: 0; padding: 12px 14px; border-radius: 8px; background: #0E0E10; border: 1px solid var(--border); font: 12px/1.7 var(--mono); color: var(--muted); white-space: pre-wrap; }
/* マイ予定 */
.cal-mine { margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.cal-mine > summary { list-style: none; align-self: flex-start; }
.cal-mine > summary::-webkit-details-marker { display: none; }
.cal-mine[open] { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.cal-mine__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.cal-mine__title, .cal-mine__note { grid-column: 1 / -1; }
.cal-mine__submit { grid-column: 1 / -1; }
.cal-mine__form .field { margin: 0; }
/* 動画一覧：年・シリーズのタブ、ページ送り */
.tabs--small .tab { min-height: 30px; padding: 0 12px; font-size: 12px; }
.video-years { margin: 0 0 12px; }
.video-series { margin: -4px 0 12px; padding-left: 12px; border-left: 2px solid #A8E6B0; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 8px; }
.input--num { width: 96px; min-height: 36px; padding: 4px 8px; font-size: 14px; }

/* ---------- 5-2：シール帳 ---------- */
.badge-book { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 16px 12px; }
.badge-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.badge-item__icon { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.badge-item__icon img { width: 100%; height: 100%; object-fit: contain; }
.badge-item__placeholder { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px dashed #3A3A42; color: var(--muted); font-size: 12px; font-weight: 700; }
.badge-item.is-on .badge-item__placeholder { border: 2px solid var(--gold); color: var(--gold); background: #1F1A08; }
.badge-item:not(.is-on) .badge-item__icon { filter: grayscale(1) brightness(.45); opacity: .7; }
.badge-item__name { font-size: 12px; font-weight: 700; line-height: 1.4; }
.badge-item:not(.is-on) .badge-item__name { color: var(--muted); }
.badge-item__cond { font-size: 11px; color: var(--faint); line-height: 1.4; }
.badge-admin-icon { width: 48px; height: 48px; object-fit: contain; }
.badge-admin-text { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge-admin-text .input { min-height: 34px; padding: 4px 8px; font-size: 13px; width: 160px; }
.badge-admin-text .input + .input { width: 220px; }
.badge-admin-upload { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }

/* 特典（マイページ） */
.perk-next, .perk-got { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.perk-next li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.perk-got li { border-top: 1px solid var(--border); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }

/* 商品管理 */
.product-admin-thumb { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.product-form { display: flex; flex-direction: column; gap: 14px; }
.product-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.product-form__box { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; margin: 0; min-width: 0; }
.product-form__box legend { padding: 0 6px; font-size: 13px; color: var(--muted); }
.product-img-row { display: flex; flex-wrap: wrap; gap: 20px; }
.product-img-box { display: flex; flex-direction: column; gap: 8px; width: 320px; max-width: 100%; }
.product-img-box__form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.product-admin-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.product-admin-img--none { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.product-file-up { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 12px; }
tr.is-old td { color: var(--muted); }

/* ショップ */
.text-gold { color: var(--gold); } .text-coral { color: var(--coral); }
.shop { display: flex; flex-direction: column; gap: 40px; max-width: 1200px; }
.shop-head { display: flex; flex-direction: column; gap: 8px; }
.shop-head h1 { margin: 0; font-size: 36px; font-weight: 900; }
.shop h2 { margin: 0; font-size: 20px; font-weight: 900; }
.shop-code { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; }
.cat--op225 { color: var(--coral); border-color: var(--coral) !important; }
.cat--kabuop { color: var(--gold); border-color: var(--gold) !important; }
.cat--nt { color: var(--teal); border-color: var(--teal) !important; }
.cat--other { color: var(--muted); }
.shop-tag { font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.shop-tag--gold { color: var(--gold); border-color: var(--gold); font-weight: 700; }
.shop-tag--coral { color: var(--coral); border-color: var(--coral); font-weight: 700; }
.shop-sale { display: flex; flex-direction: column; gap: 16px; }
.shop-sale h2 { display: flex; align-items: center; gap: 10px; }
.shop-sale__tag { font-family: var(--mono); font-size: 11px; font-weight: 700; color: #0A0A0B; background: var(--coral); border-radius: 4px; padding: 2px 8px; letter-spacing: 0.1em; }
.shop-sale__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.shop-sale__card { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; padding: 16px; background: #1A0F0E; border: 1px solid #4A2422; border-radius: 12px; }
.shop-sale__card:hover { border-color: var(--coral); color: var(--text); }
.shop-sale__img { position: relative; display: block; flex: 0 0 220px; width: 220px; max-width: 100%; border-radius: 8px; overflow: hidden; }
.shop-sale__thumb { display: flex; width: 100%; min-width: 0; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; object-fit: cover; }
.shop-sale__body { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.shop-sale__title { font-weight: 700; font-size: 16px; line-height: 1.45; }
.shop-list { display: flex; flex-direction: column; gap: 20px; }
.shop-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.shop-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); border: 1px solid var(--border); }
.shop-tab.is-on { background: var(--text); color: #0A0A0B; border-color: var(--text); }
.shop-tab__n { font-family: var(--mono); font-size: 11px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.shop-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.shop-card:hover { border-color: #4A4A52; color: var(--text); }
.shop-card__img { position: relative; display: block; overflow: hidden; }
.shop-detail__img { position: relative; display: block; overflow: hidden; border-radius: 12px; }
/* セールの斜めリボン（右上） */
.shop-ribbon { position: absolute; top: 0; right: 0; width: 120px; height: 120px; overflow: hidden; pointer-events: none; z-index: 1; }
.shop-ribbon span { position: absolute; top: 24px; right: -42px; width: 170px; padding: 6px 0; transform: rotate(45deg); background: var(--coral); color: #fff; font-weight: 900; font-size: 15px; letter-spacing: 0.04em; text-align: center; box-shadow: 0 3px 10px rgba(0,0,0,.45); }
.shop-sale__img .shop-ribbon { width: 96px; height: 96px; }
.shop-sale__img .shop-ribbon span { top: 18px; right: -48px; width: 160px; font-size: 13px; padding: 4px 0; }
.shop-detail__img .shop-ribbon { width: 160px; height: 160px; }
.shop-detail__img .shop-ribbon span { top: 34px; right: -50px; width: 230px; font-size: 20px; padding: 8px 0; }
.shop-card__thumb { display: flex; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--border); }
.shop-card__sale { position: absolute; top: 10px; right: 10px; }
.shop-thumb--none { display: flex; background: var(--surface-2); flex-direction: column; justify-content: space-between; padding: 14px; }
.shop-thumb__title { font-weight: 900; font-size: 16px; line-height: 1.35; }
.shop-card__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.shop-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.shop-card__title { font-weight: 700; font-size: 15px; line-height: 1.5; }
.shop-card__lead { font-size: 13px; color: var(--muted); line-height: 1.6; }
.shop-card__foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--border-soft); }
.shop-card__owned { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.shop-limit { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--coral); border: 1px solid var(--coral); border-radius: 4px; padding: 2px 8px; white-space: nowrap; }
.shop-limit__left { font-weight: 400; color: var(--text); }
.shop-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.shop-price__orig { color: var(--faint); font-size: 13px; }
.shop-price__now { font-weight: 900; font-size: 22px; }
.shop-price__now.is-sale { color: var(--coral); }
.shop-price__now.is-member { color: var(--gold); }
.shop-price__now--big { font-size: 38px; }
.shop-price__tax { font-size: 11px; color: var(--muted); }
.shop-crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.shop-crumbs a { color: var(--muted); }
.shop-detail { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.shop-detail__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.shop-detail__thumb { display: flex; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.shop-section { display: flex; flex-direction: column; gap: 12px; }
.shop-updates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.shop-updates li { display: flex; gap: 16px; flex-wrap: wrap; }
.shop-updates__v { font-family: var(--mono); color: var(--teal); }
.shop-buy { flex: 1 1 340px; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 16px; }
.shop-buy__title { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.4; }
.shop-buy__price { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.shop-buy__block { display: flex; flex-direction: column; gap: 10px; }
.shop-buy__owned { display: flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 700; }
.shop-buy__closed { font-size: 22px; color: var(--muted); }
.shop-buy__meta { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13px; }
.shop-buy__meta dt { color: var(--muted); } .shop-buy__meta dd { margin: 0; }
.shop-btn--gold { background: var(--gold); border-color: var(--gold); color: #0A0A0B; display: flex; gap: 10px; align-items: center; justify-content: center; }
.shop-btn--light { background: var(--text); border-color: var(--text); color: #0A0A0B; display: flex; gap: 10px; align-items: center; justify-content: center; }
.shop-btn--gold:hover, .shop-btn--light:hover { color: #0A0A0B; filter: brightness(1.08); }
.shop-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.shop-related__card { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
@media (max-width: 720px) { .shop-sale__img { flex-basis: 100%; width: 100%; } .shop-buy { position: static; padding: 20px; } .shop-head h1 { font-size: 28px; } .shop-price__now--big { font-size: 32px; } }

/* 注文確認・マイライブラリ */
.checkout { display: flex; flex-direction: column; gap: 20px; }
.checkout__item { display: flex; gap: 16px; align-items: center; }
.checkout__thumb { width: 160px; flex: 0 0 160px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.checkout__sum { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; padding: 16px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.checkout__sum dd { margin: 0; text-align: right; }
.checkout__total { font-weight: 900; font-size: 18px; }
.checkout__coupon { display: flex; gap: 8px; align-items: flex-end; }
.lib-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lib-item { display: flex; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.lib-item__thumb-link { display: block; flex: 0 0 200px; max-width: 100%; }
.lib-hist table { min-width: 600px; }
.lib-item__thumb { display: flex; width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.lib-item__thumb--none { align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.lib-item__body { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lib-item__head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lib-item__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.lib-dl { display: inline-flex; align-items: center; gap: 8px; }
.lib-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); display: inline-block; }
@media (max-width: 600px) { .lib-item__thumb-link { flex-basis: 100%; } .lib-item__thumb { width: 100%; } .checkout__thumb { width: 96px; flex-basis: 96px; } }
.order-refund { display: flex; gap: 6px; flex-wrap: wrap; } .order-refund .input { min-width: 140px; min-height: 36px; font-size: 13px; }

/* 週1投票 */
.poll-card { border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); margin: 8px 0 16px; }
.poll-card.is-open { border-color: #4A2422; }
.poll-card__head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.poll-card__result { margin: 0; font-size: 20px; font-weight: 900; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.poll-card__mine { font-size: 14px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 12px; }
.poll-card__mine.is-hit { color: #0A0A0B; background: var(--gold); border-color: var(--gold); }
.poll-card__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .poll-card__options { grid-template-columns: 1fr; } }
.poll-card__options > p { grid-column: 1 / -1; }
.poll-opt { min-height: 52px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.poll-opt:hover { border-color: var(--coral); }
.poll-opt.is-mine { border-color: var(--gold); background: #1F1A08; }
.poll-opt__check { font-size: 11px; color: var(--gold); font-weight: 700; margin-left: 6px; }
.poll-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.poll-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(80px, 2fr) 96px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; }
.poll-row.is-win { border-color: var(--teal); background: #0C1A18; }
.poll-row__bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.poll-row__bar span { display: block; height: 100%; background: var(--muted); }
.poll-row.is-win .poll-row__bar span { background: var(--teal); }
.poll-row__n { font-size: 13px; color: var(--muted); white-space: nowrap; text-align: right; }
@media (max-width: 600px) { .poll-row { grid-template-columns: 1fr auto; } .poll-row__bar { grid-column: 1 / -1; order: 3; } }

/* マイページのタブ */
.my-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.my-tab { padding: 12px 16px; font-size: 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.my-tab.is-on { color: var(--text); border-bottom-color: var(--coral); }
.my-tab:hover { color: var(--text); }
.my-head { display: flex; flex-direction: column; gap: 4px; }

/* プロフィール・称号 */
.user-title { display: block; font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; line-height: 1.3; }
.profile-id { display: flex; gap: 16px; align-items: center; }
.profile-id__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.profile-id__name { font-size: 20px; font-weight: 900; }
.check-row { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-nav a, .site-nav__user { white-space: nowrap; }
@media (max-width: 600px) {
  .site-header__inner { padding: 10px 16px; gap: 8px; }
  .site-nav { gap: 14px; width: 100%; justify-content: space-between; }
  .site-nav__user { display: none; }
}
@media (max-width: 420px) { .my-tab { padding: 12px 10px; font-size: 13px; } }

/* アバター */
.av { position: relative; display: inline-block; flex: 0 0 auto; border-radius: 12px; background: var(--surface-2); overflow: visible; vertical-align: middle; }
.av--xs { width: 24px; height: 24px; border-radius: 6px; }
.av--sm { width: 36px; height: 36px; border-radius: 8px; }
.av--md { width: 64px; height: 64px; }
.av--lg { width: 120px; height: 120px; border-radius: 18px; }
.av__frame, .av__body { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.av__body { z-index: 1; }
.av__frame { z-index: 0; }
.av__initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--text); opacity: 0.85; }
.av--xs .av__initial { font-size: 12px; } .av--sm .av__initial { font-size: 16px; } .av--md .av__initial { font-size: 28px; } .av--lg .av__initial { font-size: 52px; }
.av__mark { position: absolute; z-index: 2; right: -6%; top: -6%; line-height: 1; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,0.6); color: var(--gold); font-weight: 900; }
.av--xs .av__mark { font-size: 9px; } .av--sm .av__mark { font-size: 12px; } .av--md .av__mark { font-size: 18px; } .av--lg .av__mark { font-size: 30px; }
.av__mark--img { width: 40%; height: 40%; object-fit: contain; }
.av--xs .av__mark--img, .av--xs .av__mark { display: none; }
.av-admin-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.av-admin-grid li.is-off { opacity: 0.5; }
.av-admin-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 1px solid var(--border); border-radius: 10px; text-align: center; }
.av-admin-item:hover { border-color: var(--coral); color: var(--text); }
.av-admin-item__name { font-weight: 700; font-size: 13px; }
.av-form { display: flex; flex-direction: column; gap: 14px; }
.av-fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.av-fieldset legend { padding: 0 6px; font-size: 13px; font-weight: 700; }
.av-pick-groups details summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 6px 0; }
.av-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.av-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; padding: 8px 4px; border: 1px solid var(--border); border-radius: 10px; position: relative; }
.av-pick input { position: absolute; opacity: 0; pointer-events: none; }
.av-pick:has(input:checked) { border-color: var(--gold); background: #1F1A08; }
.av-pick:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
/* 持っていないもの：絵は薄くしない（値段のボタン／赤い値段で見分ける） */
.av-pick.is-locked { cursor: default; }
.av-pick__none { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); border: 1px dashed var(--border); border-radius: 12px; text-align: center; }
.av-pick__name { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.3; }
.author { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.author__text { display: inline-flex; flex-direction: column; line-height: 1.3; }
.author .user-title { font-size: 10px; }
.reply__head { align-items: center; }
.av__mark--long { right: 50%; transform: translateX(50%); top: auto; bottom: -8%; font-size: 70% !important; background: rgba(10,10,11,0.75); border-radius: 999px; padding: 1px 4px; }
.av--sm .av__mark--long, .av--xs .av__mark--long { display: none; }
.av--md .av__mark--long { font-size: 10px !important; } .av--lg .av__mark--long { font-size: 15px !important; }
.title-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .title-row .input { min-height: 36px; font-size: 13px; padding: 4px 8px; width: auto; }
.title-row .btn { white-space: nowrap; } td .btn { white-space: nowrap; }

/* 管理画面：会員 */
.member-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.member-filter .input { min-height: 40px; font-size: 14px; }
.member-filter__num { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.member-filter__num .input { width: 90px; }
.member-dist { width: 100%; }
.member-dist th { font-weight: 400; white-space: nowrap; font-size: 13px; color: var(--muted); }
.member-dist__bar { display: block; height: 12px; min-width: 2px; border-radius: 3px; background: var(--teal, #2bb3a3); }
.member-tag { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 13px; margin: 0; }
.member-tag button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0 6px; line-height: 1; }
.member-tag button:hover { color: var(--coral); }
.member-note { border-top: 1px solid var(--border-soft); padding-top: 8px; }
.member-note__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.member-note__body { white-space: pre-wrap; word-break: break-word; margin-top: 4px; }

/* 規約・ポリシー／フッター */
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.legal-nav a { color: var(--muted); }
.legal-nav a[aria-current='page'] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.legal__body { font-size: 15px; line-height: 1.9; }
.legal__body h2 { font-size: 18px; }
.site-footer { border-top: 1px solid var(--border-soft); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }

/* FAQ */
.faq-group { display: flex; flex-direction: column; gap: 8px; }
.faq-group h2 { font-size: 18px; margin: 8px 0 4px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; background: var(--surface, transparent); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; font-weight: 700; line-height: 1.6; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; margin-left: auto; color: var(--muted); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item__q { color: var(--coral); font-family: var(--mono, monospace); }
.faq-item__a { padding: 0 16px 8px 40px; font-size: 15px; }
/* 管理画面：FAQ */
.faq-edit { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.faq-edit__head { display: flex; flex-direction: column; gap: 4px; }
.faq-edit__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.faq-edit__row .input { min-height: 40px; font-size: 14px; }
.faq-edit__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.faq-edit__src summary { cursor: pointer; color: var(--muted); }
.faq-src { border-top: 1px solid var(--border-soft); padding: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.faq-src__q, .faq-src__a { white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.faq-src__a { color: var(--muted); }
.faq-item summary .badge { white-space: nowrap; flex-shrink: 0; }
.faq-link { color: var(--coral); text-decoration: underline; word-break: break-all; }

/* 横断検索の結果 */
.sr-section { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.sr-section__h { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 12px 0 0; }
.sr-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.sr-list li + li { border-top: 1px solid var(--border-soft); }
.sr-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; color: var(--text); }
a.sr-item:hover { background: var(--surface-2); color: var(--text); }
.sr-item--nolink { opacity: 0.85; }
.sr-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sr-item__date { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sr-item__title { font-weight: 700; }
.sr-item__theme { font-size: 13px; color: var(--muted); }
.sr-item__snippet { font-size: 13px; color: var(--muted); line-height: 1.7; }
.sr-item__section { display: inline-block; font-size: 11px; color: var(--coral); border: 1px solid var(--coral); border-radius: 4px; padding: 0 6px; margin-right: 6px; vertical-align: 1px; }
.sr-item__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 0; padding: 0 18px 14px; }
.sr-tag { font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; }
.sr-tag:hover { color: var(--text); border-color: var(--text); }
.sr-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.sr-filters .input { min-height: 38px; font-size: 13px; }
.sr-filters input[name='tag'] { width: 200px; }

/* 勉強会の出席（合言葉） */
.live-card__checkin { display: grid; gap: 6px; margin: 0; padding-top: 10px; border-top: 1px dashed var(--border); }
.live-card__checkin-row { display: flex; gap: 8px; align-items: center; }
.live-card__checkin-row .input { max-width: 10em; }
.live-card__checkin--done { color: var(--teal); font-weight: 600; font-size: 14px; }

/* AI に聞く */
.ai-entry { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--teal); border-radius: 12px; color: var(--text); background: var(--surface); }
.ai-entry:hover { text-decoration: none; border-color: var(--text); }
.ai-entry__title { color: var(--teal); font-weight: 700; }
.ai-entry__title::before { content: '✦ '; }
.ai-ask { margin: 12px 0; }
.ai-note { margin: 8px 0 16px; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--surface); color: var(--muted); font-size: 13px; line-height: 1.7; }
.ai-conv { display: grid; gap: 16px; margin: 16px 0 0; }
.ai-q { display: grid; gap: 4px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; }
.ai-q__label, .ai-a__label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .05em; }
.ai-q__text { margin: 0; white-space: pre-wrap; font-weight: 600; }
.ai-a { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--teal); border-radius: 12px; background: var(--surface); }
.ai-a__label { color: var(--teal); }
.ai-staff { display: grid; gap: 8px; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--gold); border-radius: 12px; background: #1F1A08; }
.ai-staff--wait { padding: 10px 16px; }
.ai-staff__label { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .05em; }
.ai-next { margin-top: 16px; }
.ai-more { margin-top: 12px; }
.ai-more > summary { cursor: pointer; padding: 8px 0; color: var(--muted); }
.ai-more > .form-card { margin-top: 8px; }
.ai-askstaff { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.ai-cite { font-size: 12px; font-weight: 700; vertical-align: super; text-decoration: none; }
.ai-src { margin: 0; padding: 10px 0 0; list-style: none; border-top: 1px dashed var(--border); display: grid; gap: 6px; font-size: 13px; }
.ai-src li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.ai-src li:target { background: rgba(61, 187, 168, .12); border-radius: 6px; }
.ai-src__n { font-weight: 700; color: var(--teal); }
.ai-src__date { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ガンマ（GNM）の購入 */
.gnm-balance { margin: 4px 0 0; font-size: 14px; }
.gnm-balance strong { font-family: var(--mono); font-size: 18px; color: var(--gold); }
.av-pick__buy { margin-top: 4px; padding: 4px 10px; min-height: 28px; border: 0; border-radius: 999px; background: var(--gold); color: #0A0A0B; font-size: 12px; font-weight: 800; font-family: inherit; cursor: pointer; box-shadow: 0 1px 0 rgba(0,0,0,.4); }
.av-pick__buy:hover { filter: brightness(1.08); }
.av-pick__buy:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.av-pick__price-short { margin-top: 4px; padding: 4px 0; font-size: 12px; font-weight: 800; color: var(--coral); }
.word-shop { margin-top: 8px; }
.word-shop summary { cursor: pointer; font-size: 14px; }
.word-shop__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.word-shop__list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* マイページ：最上段の自分の枠（アバター・称号・名前＋会員情報） */
.my-id { display: grid; gap: 16px; }
.my-id__info { margin: 0; }
@media (min-width: 760px) {
  .my-id { grid-template-columns: minmax(260px, 1fr) minmax(0, 1.2fr); align-items: center; }
  .my-id > p { grid-column: 1 / -1; }
  .my-id__info { padding-left: 20px; border-left: 1px solid var(--border); }
}
/* マイページ：デルタとガンマを横並び（PC） */
.my-cur { display: grid; gap: 16px; }
@media (min-width: 760px) { .my-cur { grid-template-columns: 1fr 1fr; align-items: stretch; } }
/* デルタ（Δ）・ガンマ（γ）のアイコン */
.cur-h { display: flex; align-items: center; gap: 10px; }
.cur-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-family: 'Times New Roman', Georgia, serif; font-size: 18px; font-weight: 700; line-height: 1; flex: none; }
.cur-icon--dlt { color: #0b1a18; background: linear-gradient(135deg, #5fd3c1, var(--teal)); }
.cur-icon--gnm { color: #1a1206; background: linear-gradient(135deg, #f2c06a, var(--gold)); font-style: italic; }
.cur-icon--sm { width: 20px; height: 20px; font-size: 12px; vertical-align: -4px; }
.my-bio { margin: 0; white-space: pre-wrap; line-height: 1.8; }

/* ライト会員 → 無料会員への案内 */
.upgrade-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-color: var(--teal, #0aa); }
.lite-notices { display: grid; gap: 8px; }

/* 相棒（2026-10-24〜：アバター → 相棒。名前は「シール＋ハンドル名」、その横に相棒） */
.rank-seal { flex: 0 0 auto; }
.partner { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.partner__name { font-size: 13px; font-weight: 700; color: var(--muted); }
.partner--lg { flex-direction: column; gap: 6px; }
.profile-id--partner { justify-content: space-between; flex-wrap: wrap; }

/* 管理画面：相棒の素材を一覧からまとめて削除 */
.av-admin-grid li { position: relative; }
.av-admin-check { position: absolute; top: 6px; left: 6px; z-index: 1; padding: 4px; cursor: pointer; }
.av-admin-check input { width: 18px; height: 18px; cursor: pointer; }
.av-admin-check input:disabled { cursor: not-allowed; opacity: 0.3; }
.av-admin-grid li:has(.av-admin-check input:checked) .av-admin-item { border-color: var(--coral); }
.av-admin-del__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }

/* 動画のダウンロード（本会員・公開から3か月） */
.video-dl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 0; }
.video-progress[hidden] { display: none; }

/* マイページ：獲得履歴のページ送り */
.paged-nav { display: flex; gap: 6px; margin-top: 8px; }
.paged-nav[hidden] { display: none; }
.paged-nav__btn { min-width: 30px; height: 28px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.paged-nav__btn.is-on { border-color: var(--gold); color: var(--text); font-weight: 700; }

/* プロフィールの頭：左に名前と自己紹介（1行20字ほど）、右に相棒。スマホでも横並び */
.pf-head { display: grid; grid-template-columns: minmax(0, max-content) auto; justify-content: start; align-items: start; gap: 12px 28px; }
.pf-head__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf-head__name { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.3; overflow-wrap: anywhere; }
.pf-bio { margin: 6px 0 0; max-width: 20em; font-size: 14px; line-height: 1.7; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.pf-partner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pf-partner__name { font-size: 16px; font-weight: 800; color: var(--text); text-align: center; max-width: 8em; overflow-wrap: anywhere; }
.pf-partner__name:empty { display: none; }
@media (max-width: 560px) {
  .pf-head { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; }
  .pf-head__name { font-size: 18px; }
  .pf-partner .av--lg { width: 88px; height: 88px; border-radius: 14px; }
  .pf-partner { padding-right: 10px; }
  .pf-partner__name { font-size: 14px; }
}

/* マイページ「称号」タブ：語句を買う（相棒と同じく商品を並べる） */
.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.word-card { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; min-height: 92px; padding: 14px 8px 10px; border: 1px solid var(--border); border-radius: 10px; text-align: center; }
.word-card__text { font-size: 16px; font-weight: 800; color: var(--gold); line-height: 1.3; overflow-wrap: anywhere; }

/* ---------- バックテスト（2026-10-27） ---------- */
.bt-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 8px 0 14px; }
.bt-dl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bt-dl .input { width: auto; min-height: 34px; padding: 0 8px; font-size: 12px; }
.bt-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg a { padding: 5px 12px; font: 600 12px var(--mono); color: var(--muted); }
.seg a.is-on { background: var(--text); color: var(--bg); }
.bt-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bt-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 16px 18px; color: var(--text); }
.bt-card:hover { border-color: #4A4A54; color: var(--text); }
.bt-card__name { font-weight: 700; font-size: 15px; }
.bt-card__sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 11px var(--mono); color: var(--faint); margin-top: 2px; }
.bt-card__pnl { font: 700 26px/1.2 var(--mono); margin: 12px 0 2px; }
.bt-card__pnl small { font-size: 12px; color: var(--faint); font-weight: 400; }
.bt-card svg, .bt-chart svg { display: block; width: 100%; margin: 8px 0 10px; }
.bt-empty { border-bottom: 1px dashed var(--border); }
.bt-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 11px; color: var(--muted); margin-top: auto; }
.bt-kpis b { display: block; font: 600 14px var(--mono); color: var(--text); }
.bt-card .pos, .bt-stats .pos, .bt-t .pos { color: var(--teal); }
.bt-card .neg, .bt-stats .neg, .bt-t .neg, .bt-kpis b.neg { color: var(--coral); }
.bt-tag { display: inline-block; font: 600 10px/16px var(--mono); border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.bt-tag--open { color: var(--gold); }
.bt-tag--long { color: var(--teal); }
.bt-tag--short { color: var(--coral); }
.bt-h1 { margin-bottom: 4px; }
.bt-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 4px 0 16px; }
.bt-stats div { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 11px; color: var(--muted); }
.bt-stats b { display: block; font: 700 18px var(--mono); color: var(--text); margin-top: 2px; }
.bt-charts { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.bt-chart { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface); min-width: 0; }
.bt-axis { display: flex; justify-content: space-around; font: 10px var(--mono); color: var(--faint); overflow: hidden; }
.bt-axis span { flex: 1; text-align: center; white-space: nowrap; }
.bt-sec { font: 12px var(--mono); color: var(--faint); letter-spacing: .1em; margin: 28px 0 6px; }
table.bt-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.bt-t th { font-size: 11px; color: var(--faint); font-weight: 500; text-align: left; padding: 8px; border-bottom: 1px solid var(--border); }
.bt-t td { padding: 10px 8px; border-bottom: 1px solid var(--border-soft); font-family: var(--mono); vertical-align: top; }
.bt-t .num { text-align: right; white-space: nowrap; }
.bt-t .leg { color: var(--muted); font-size: 12px; }
.bt-t td .leg { display: block; }
.bt-t td.c-pnl .bt-tag { margin-right: 6px; }
.bt-t tr.is-skip td { color: var(--faint); }
.bt-t tr.is-skip .c-legs { font-family: var(--sans); font-size: 12px; }
@media (max-width: 1080px) { .bt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bt-stats { grid-template-columns: repeat(3, 1fr); } .bt-charts { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .bt-grid { grid-template-columns: 1fr; gap: 10px; }
  .bt-card { padding: 14px; }
  .bt-card__pnl { font-size: 22px; margin-top: 6px; }
  .bt-stats { grid-template-columns: repeat(2, 1fr); }
  .bt-t thead { display: none; }
  .bt-t tr { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
  .bt-t td { border: 0; padding: 2px 0; }
  .bt-t td.c-legs { grid-column: 1 / -1; }
  .bt-t td.c-pnl { grid-row: 1; grid-column: 2; font-weight: 700; }
}
/* バックテスト：限月（月）ごとの収支の表（2026-10-27）。PC は二段組、罫線は赤 */
.bt-mwrap { max-width: none; }
.bt-mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
table.bt-m { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; border: 1px solid var(--coral); border-radius: 10px; overflow: hidden; background: var(--surface); }
.bt-m th, .bt-m td { padding: 10px 14px; border-bottom: 1px solid rgba(229, 99, 94, .35); border-right: 1px solid rgba(229, 99, 94, .35); }
.bt-m tr > :last-child { border-right: 0; }
.bt-m tbody tr:last-child > * { border-bottom: 0; }
.bt-m thead th { font-size: 11px; font-weight: 600; color: var(--coral); text-align: left; background: rgba(229, 99, 94, .10); border-bottom: 1px solid var(--coral); letter-spacing: .04em; }
.bt-m tbody th { font-weight: 700; text-align: left; white-space: nowrap; width: 5.5em; background: rgba(229, 99, 94, .04); }
.bt-m td { font-family: var(--mono); }
.bt-m .num { text-align: right; white-space: nowrap; }
.bt-m .pos { color: var(--teal); }
.bt-m .neg { color: var(--coral); }
.bt-m__pnl { font-weight: 700; font-size: 15px; }
.bt-m__cum { font-size: 13px; }
.bt-m__wl { color: var(--muted); font-size: 12px; }
.bt-m__wl .bt-tag { margin-left: 6px; }
.bt-m__skip { margin-left: 6px; color: var(--faint); font-size: 11px; }
.bt-m tr.is-empty td, .bt-m tr.is-empty th { color: var(--faint); }
.bt-mtotal { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 18px; margin-top: 14px; padding: 12px 18px; border: 1px solid var(--coral); border-radius: 10px; background: rgba(229, 99, 94, .06); font-weight: 700; }
.bt-mtotal b { font: 700 22px var(--mono); }
.bt-mtotal b small { font-size: 12px; color: var(--faint); font-weight: 400; }
.bt-mtotal .pos { color: var(--teal); }
.bt-mtotal .neg { color: var(--coral); }
@media (max-width: 900px) { .bt-mgrid { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 640px) { .bt-m th, .bt-m td { padding: 8px 8px; } .bt-m__pnl { font-size: 14px; } .bt-mtotal { justify-content: space-between; gap: 8px; } }
/* バックテスト詳細の上部を詰める（2026-10-27） */
.bt-head { display: flex; flex-direction: column; gap: 6px; }
.bt-head__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.bt-head__title h1 { font-size: 26px; }
.bt-head .bt-filters { margin: 6px 0 0; }
.bt-body { display: flex; flex-direction: column; gap: 14px; margin-top: -8px; }
.bt-body .bt-stats { margin: 0; }
.bt-body .bt-stats div { padding: 8px 12px; }
.bt-body .bt-stats b { font-size: 17px; }
@media (max-width: 640px) { .bt-head__title h1 { font-size: 22px; } }
/* サロン会員の手続き（2026-10-27） */
.join-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card-pay { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.card-pay__status:empty { display: none; }
.stack { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
/* サロン：マーケットデータ（kabulabo.pro をはめ込み。高さは中身に合わせて変わる） */
.market-frame { display: block; width: 100%; height: calc(100vh - 120px); min-height: 600px; border: 0; border-radius: 12px; background: var(--bg); }

/* 戦術シート（2026-10-28） */
.tc-dates{display:grid;gap:12px;margin:4px 0 20px}
.tc-days{display:flex;flex-wrap:wrap;gap:8px}
.tc-day{display:inline-flex;align-items:baseline;gap:4px;padding:6px 12px;border:1px solid var(--border);border-radius:999px;font-family:var(--mono);font-size:14px;color:var(--text);text-decoration:none}
.tc-day small{font-size:11px;color:var(--muted)}
.tc-day:hover{border-color:var(--coral)}
.tc-day.is-on{background:var(--coral);border-color:var(--coral);color:#fff}
.tc-day.is-on small{color:#fff}
.tc-day.is-locked{opacity:.35;cursor:not-allowed}
.tc-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.tc-head>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px}
.tc-title{font-size:18px}
.pdf-view{display:grid;gap:12px}
.pdf-view__page{width:100%;background:#fff;border-radius:6px;overflow:hidden;border:1px solid var(--border)}
.pdf-view__page canvas{display:block;width:100%;height:100%}
.pdf-view__msg{padding:40px 0;text-align:center}

/* バックテスト：全戦術の合算（2026-10-28） */
.bt-card--all { border-color: var(--coral); }

/* 管理：非表示・削除（2026-10-28） */
.mod-card { margin-top: 8px; display: grid; gap: 10px; }
.mod-card h2 { margin: 0; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.mod-actions--col { flex-direction: column; align-items: flex-start; gap: 6px; }
.mod-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn--danger { border-color: var(--coral); color: var(--coral); }
.btn--danger:hover { background: var(--coral); color: #fff; }

/* ポッドキャスト（2026-10-28） */
.pod-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.pod-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; }
.pod-item:hover { border-color: var(--coral); }
.pod-item__date { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.pod-item__title { font-weight: 600; line-height: 1.5; }
.pod-item__meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); white-space: nowrap; }
.pod-item__go { color: var(--coral); font-weight: 600; }
@media (max-width: 640px) {
  .pod-item { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .pod-item__date { grid-column: 1 / -1; }
}

/* サイドメニューのルームの絵文字（2026-10-28） */
.lab-room__icon { display: inline-block; width: 1.5em; margin-right: 4px; text-align: center; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* チャートライブラリ（2026-10-28） */
.ch-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ch-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; overflow: hidden; }
.ch-card:hover { border-color: var(--coral); }
.ch-card__img { display: block; aspect-ratio: 932 / 550; background: var(--surface-2); }
.ch-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ch-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.ch-card__title { font-weight: 700; line-height: 1.5; }
.ch-card__meta { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; font: 13px var(--mono); color: var(--muted); }
.ch-card__go { color: var(--coral); font-family: var(--sans); font-weight: 600; }
@media (max-width: 1100px) { .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ch-grid { grid-template-columns: 1fr; } }

/* トップ（ティザーページ）（2026-10-28） */
.top { display: block; }
.top-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; border-radius: 10px; }
.btn--ghost { background: rgba(255,255,255,.04); }
.btn.is-disabled { opacity: .55; cursor: default; }
.top-hero { position: relative; min-height: min(62vh, 540px); display: flex; align-items: center; background: #0A0A0B url('/assets/top/hero.jpg') center right / cover no-repeat; border-bottom: 1px solid var(--border-soft); }
.top-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.6) 55%, rgba(10,10,11,.15) 100%); }
.top-hero__inner { position: relative; max-width: 1120px; width: 100%; margin: 0 auto; padding: 48px 24px; }
.top-hero__kicker { margin: 0 0 12px; font: 600 14px var(--mono); letter-spacing: .2em; color: var(--coral); }
.top-hero__title { margin: 0; font-size: clamp(40px, 7vw, 84px); font-weight: 900; line-height: 1.1; letter-spacing: .02em; }
.top-hero__lead { margin: 14px 0 0; font-size: clamp(16px, 2vw, 20px); line-height: 1.8; color: #D6D6DA; font-weight: 500; }
.top-hero__badge { display: inline-block; margin: 14px 0 0; padding: 6px 14px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-weight: 700; font-size: 14px; }
.top-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.top-sec { padding-top: 44px; }
.top-h2 { margin: 4px 0 16px; font-size: clamp(24px, 3vw, 32px); font-weight: 900; }
.top-sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.top-sec__head .top-h2 { margin-bottom: 8px; }
.top-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.top-feat__col { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 16px 18px; }
.top-feat__head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; font-weight: 900; font-size: 18px; }
.top-feat__head small { font: 600 12px var(--mono); letter-spacing: .15em; color: var(--coral); }
.top-feat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.top-feat li { display: flex; gap: 12px; align-items: flex-start; }
.top-feat li strong { display: block; font-size: 15px; }
.top-feat li small { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; }
.top-feat__icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); font-size: 18px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.top-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.top-plan { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 18px 18px; }
.top-plan--main { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral) inset; }
.top-plan__name { margin: 0; font-weight: 900; font-size: 18px; }
.top-plan__price { margin: 4px 0 12px; font: 700 34px var(--mono); }
.top-plan__price small { margin-left: 6px; font: 500 14px var(--sans); color: var(--muted); }
.top-plan__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: 14px; flex: 1; }
.top-plan__list li { display: flex; gap: 10px; line-height: 1.6; }
.top-plan__list li span { flex: none; width: 1em; font-weight: 900; }
.top-plan__list .is-ok span { color: var(--teal); }
.top-plan__list .is-no { color: var(--faint); }
.top-plan__btn { width: 100%; }
.top-shop { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.top-shop__item { display: flex; flex-direction: column; gap: 8px; height: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 12px; color: var(--text); text-decoration: none; }
.top-shop__item:hover { border-color: var(--coral); }
.top-shop__img { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.top-shop__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.top-shop__title { font-weight: 700; line-height: 1.5; }
.top-shop__price { margin-top: auto; font: 700 16px var(--mono); }
.top-shop__price small { display: block; font: 500 12px var(--sans); color: var(--gold); }
.top-about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 18px 20px; }
.top-about__name { margin: 0; font-size: 22px; font-weight: 900; }
.top-about__facts { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 6px; line-height: 1.7; }
.top-about__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.top-about__links a { display: block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.top-about__links a:hover { border-color: var(--coral); }
.top-end { margin-top: 52px; padding: 40px 0 56px; border-top: 1px solid var(--border-soft); background: radial-gradient(ellipse at 50% 0%, rgba(229,99,94,.18), transparent 60%); text-align: center; }
.top-end__title { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 900; }
.top-end .top-hero__cta { justify-content: center; }
@media (max-width: 900px) {
  .top-feat, .top-plans, .top-shop { grid-template-columns: 1fr; }
  .top-about { grid-template-columns: 1fr; }
  .top-hero { background-position: 70% center; min-height: 0; }
  .top-hero::before { background: linear-gradient(180deg, rgba(10,10,11,.7) 0%, rgba(10,10,11,.85) 100%); }
  .top-hero__inner { padding: 56px 20px; }
  .top-hero__cta .btn { flex: 1 1 100%; }
}

/* ショップへのボタン（サロンの赤とは別の、薄い黄色）（2026-10-28） */
.btn--shop { background: rgba(227, 163, 59, .14); border-color: rgba(227, 163, 59, .55); color: #F3C77A; }
.btn--shop:hover { background: rgba(227, 163, 59, .24); color: #F8D898; }
.top-sec .top-h2 + .muted, .top-sec__head + .muted { margin: 0; }

/* つぶやき（2026-10-29） */
.mm-form { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 16px; }
.mm-form__body { min-height: 76px; resize: vertical; font-size: 15px; line-height: 1.6; }
.mm-form__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mm-form__row .btn { margin-left: auto; }
.mm-moods { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-mood input { position: absolute; opacity: 0; pointer-events: none; }
.mm-mood span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--muted); cursor: pointer; }
.mm-mood input:checked + span { border-color: var(--gold); color: var(--text); background: rgba(227,163,59,.14); }
.mm-mood input:focus-visible + span { outline: 2px solid var(--gold); }
.mm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mm-item { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.mm-item__main { flex: 1; min-width: 0; }
.mm-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
.mm-item__mood { font-size: 13px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); }
.mm-item__left { margin-left: auto; font: 12px var(--mono); color: var(--faint); }
.mm-item__body { margin: 6px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; font-size: 15px; }
.mm-reacts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mm-reacts form { margin: 0; }
.mm-react { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.mm-react:hover { border-color: #4A4A54; color: var(--text); }
.mm-react.is-on { border-color: var(--gold); background: rgba(227,163,59,.16); color: var(--text); }
.mm-react__n { font-family: var(--mono); font-weight: 700; }
.mm-react__n:empty { display: none; }
@media (max-width: 640px) {
  .mm-react { min-height: 28px; padding: 0 8px; font-size: 11px; }
}
.mm-del { margin-left: auto !important; }
.mm-del button { background: none; border: 0; cursor: pointer; padding: 4px; }

/* 絵文字ボタン（2026-10-29） */
.emo { position: relative; display: inline-block; }
.emo__btn { list-style: none; cursor: pointer; }
.emo__btn::-webkit-details-marker { display: none; }
.emo__panel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(340px, 86vw); max-height: 300px; overflow: auto; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); box-shadow: 0 10px 30px rgba(0,0,0,.5); display: grid; gap: 8px; }
.emo__label { display: block; margin-bottom: 4px; font-size: 11px; color: var(--muted); }
.emo__grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emo__item { height: 36px; border: 0; border-radius: 8px; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.emo__item:hover, .emo__item:focus-visible { background: rgba(255,255,255,.08); }
.reply-form .emo { align-self: flex-start; }
.top-hero__note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
/* 申し込みの規約の枠（2026-10-29） */
.terms-box { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.8; }
.terms-box h3 { margin: 0 0 8px; font-size: 15px; }
.terms-box h2 { font-size: 14px; margin: 14px 0 4px; }
/* オープニングメンバー価格・セール価格（12/10 までのカード登録）の条件（2026-10-29） */
.price-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: #F2C94C; color: #1a1a1a; font-weight: 700; vertical-align: middle; }
.offer-note { margin: 4px 0 16px; padding: 12px 14px; border: 2px solid #F2C94C; border-radius: 8px; background: rgba(242, 201, 76, 0.08); font-size: 14px; line-height: 1.7; }
.offer-note strong { display: block; color: #F2C94C; margin-bottom: 4px; }
.offer-note ul { margin: 0; padding-left: 1.2em; }
/* 管理画面：トップはテーマごとに2列、各ページの上に「← 管理画面」（2026-10-29） */
.admin-group { font-size: 15px; color: var(--muted); margin: 28px 0 10px; letter-spacing: .04em; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-grid .card { margin: 0; padding: 16px 18px; }
.admin-grid .card h3 { margin: 0 0 4px; font-size: 16px; }
.admin-grid .card p { margin: 0 0 10px; }
@media (max-width: 720px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-back { padding: 14px 24px 0; font-size: 13px; }
.admin-back + main { padding-top: 12px; }
.admin-back a { color: var(--muted); }
.admin-back a:hover { color: var(--text); }
/* 無料会員の登録の段階（2026-10-29） */
.signup-steps { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; font-size: 13px; }
.signup-steps li { flex: 1; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); text-align: center; white-space: nowrap; }
.signup-steps li.is-current { border-color: var(--coral); color: var(--text); font-weight: 700; }
.signup-steps li.is-done { color: var(--muted); }
/* スマホではマイページのタブを3つずつ2段に（2026-10-29。「設定」が横スクロールしないと見えなかったため） */
@media (max-width: 640px) {
  .my-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; overflow: visible; }
  .my-tab { justify-content: center; padding: 10px 4px; font-size: 13px; min-height: 42px; }
}
/* オープン後の会員プランは2枚（お試し・サロン会員）。2026-10-29 */
.top-plans--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-left: auto; margin-right: auto; width: 100%; }
@media (max-width: 760px) { .top-plans--2 { grid-template-columns: 1fr; } }
/* ハンドブック（2026-10-29） */
.hb-sec { display: flex; flex-direction: column; gap: 12px; }
.hb-sec__head { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; font-size: 20px; }
.hb-sec__no { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; padding: 0 8px; border-radius: 8px; background: var(--coral); color: #fff; font-family: var(--mono, monospace); font-size: 15px; font-weight: 700; }
.hb-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .hb-grid { grid-template-columns: 1fr; } }
.hb-card { background: var(--surface, #141416); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.hb-card__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hb-card__name { font-size: 18px; font-weight: 700; color: var(--text); }
.hb-card__type { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--coral); color: var(--coral); }
.hb-card__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hb-btn { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 10px; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; border: 1px solid var(--border); color: var(--text); }
.hb-btn--pdf { background: var(--coral); border-color: var(--coral); color: #fff; }
.hb-btn--video { background: transparent; border-color: var(--text); color: var(--text); }
.hb-btn--pdf:hover, .hb-btn--video:hover { filter: brightness(1.1); }
.hb-btn.is-soon { border-style: dashed; color: var(--text); opacity: .75; }
.hb-btn.is-locked { color: var(--text); opacity: .6; }
.hb-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hb-topics a { display: flex; gap: 14px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.hb-topics__date { font-family: var(--mono, monospace); font-weight: 400; }
/* オプションツール（2026-10-29） */
.tl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) { .tl-grid { grid-template-columns: 1fr; } }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.tl-card__head { display: flex; align-items: center; gap: 12px; }
.tl-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 22px; flex: none; }
.tl-card__name { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.4; }
.tl-card__desc { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text); flex: 1; }

/* ポッドキャスト：はじめての方への案内（Substack の購読） */
.pod-guide { position: relative; margin-bottom: 14px; padding-right: 40px; flex-wrap: nowrap; }
.pod-guide__text { margin: 0; flex: 1 1 auto; line-height: 1.7; }
.pod-guide__btn { flex: 0 0 auto; white-space: nowrap; }
.pod-guide__close { position: absolute; top: 6px; right: 6px; margin: 0; }
.pod-guide__close button { background: none; border: 0; color: #F2E6C4; font-size: 18px; line-height: 1; padding: 6px 8px; cursor: pointer; opacity: .8; }
.pod-guide__close button:hover { opacity: 1; }
.pod-guide-mini { margin: 0 0 10px; font-size: 13px; }
@media (max-width: 640px) {
  .pod-guide { flex-direction: column; align-items: stretch; }
  .pod-guide__btn { text-align: center; }
}

/* トップ：グランドオープンの日付（2026-10-30） */
.top-hero__open { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 22px 0 0; padding: 12px 22px; border: 2px solid var(--gold); border-radius: 14px; background: rgba(20,16,4,.75); color: var(--gold); }
.top-hero__open-date { font-size: clamp(30px, 5vw, 48px); font-weight: 900; line-height: 1.1; letter-spacing: .02em; }
.top-hero__open-text { font-size: clamp(20px, 3vw, 30px); font-weight: 900; }
.top-plan__tag { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.top-plan__tag.is-sale { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--coral); color: #fff; }

/* βテストに参加するには（/beta） */
.beta { max-width: 760px; }
.beta-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: beta; }
.beta-step { position: relative; padding: 18px 18px 18px 64px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.beta-step::before { counter-increment: beta; content: counter(beta); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 900; display: grid; place-items: center; }
.beta-step h2 { margin: 0 0 6px; font-size: 18px; }
.beta-step p { margin: 0 0 8px; line-height: 1.8; }
.beta-step .btn { margin-top: 6px; }
.beta-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.beta-price > div { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.beta-price > div.is-main { border-color: var(--coral); }
.beta-price strong { display: block; font-size: 15px; }
.beta-price .beta-price__yen { font: 700 26px var(--mono); }
.beta-price small { color: var(--muted); }
@media (max-width: 640px) { .beta-price { grid-template-columns: 1fr; } .beta-step { padding-left: 58px; } .beta-step::before { left: 14px; } }

/* 管理画面：マーケティング（2026-10-30） */
.mk-filter { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin: 12px 0 0; }
.mk-filter .input { width: auto; }
.mk-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-right: 8px; }
.mk-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.mk-tile { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.mk-tile span { font-size: 13px; color: var(--muted); }
.mk-tile strong { font: 700 28px var(--mono); }
.mk-tile small { font-size: 12px; color: var(--muted); }
.mk-card { margin-bottom: 16px; }
.mk-card h2 { margin: 0 0 12px; font-size: 18px; }
.mk-chart { display: flex; align-items: flex-end; gap: 2px; height: 160px; border-bottom: 1px solid var(--border); }
.mk-col { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 2px; cursor: default; }
.mk-col:hover .mk-col__bar { opacity: .75; }
.mk-col__bar { display: block; width: 100%; background: var(--coral); border-radius: 4px 4px 0 0; min-height: 0; }
.mk-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.mk-table td, .mk-table th { white-space: nowrap; }
.mk-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mk-barcell { width: 30%; min-width: 120px; }
.mk-hbar { display: block; height: 10px; background: var(--coral); border-radius: 0 4px 4px 0; }
.mk-link { margin-top: 10px; font-family: var(--mono); }
@media (max-width: 900px) { .mk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* SQ値（2026-11-01） */
.sq-live { margin: 8px 0 18px; padding: 18px 20px; border: 2px solid var(--border); border-radius: 14px; background: var(--surface); }
.sq-live--temp { border-color: var(--gold); }
.sq-live--final { border-color: var(--coral); }
.sq-live__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; }
.sq-live__badge { padding: 3px 12px; border-radius: 999px; font-size: 14px; background: var(--surface-2); }
.sq-live--temp .sq-live__badge { background: var(--gold); color: #0A0A0B; }
.sq-live--final .sq-live__badge { background: var(--coral); color: #fff; }
.sq-live__value { margin: 10px 0 4px; font: 700 clamp(40px, 8vw, 72px) var(--mono); line-height: 1.1; letter-spacing: -.02em; }
.sq-live__meta { margin: 0; color: var(--muted); font-size: 14px; }
.sq-sec { margin-top: 22px; }
.sq-sec h2 { font-size: 18px; margin: 0 0 10px; }
.sq-table .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.sq-table td, .sq-table th { white-space: nowrap; }
/* SQ値：公式サイトと同じマス目（2026-11-01） */
.sq-year { margin: 18px 0 8px; font-size: 16px; }
.sq-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.sq-grid--w { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sq-cell { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); min-width: 0; }
.sq-cell.is-major { border-color: var(--coral); }
.sq-cell.is-plan { border-style: dashed; color: var(--muted); }
.sq-cell__m { font-weight: 700; font-size: 14px; }
.sq-cell__d { font-size: 12px; color: var(--muted); }
.sq-cell__v { font: 700 17px var(--mono); margin-top: 4px; white-space: nowrap; }
.sq-cell__x { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sq-cell__x.is-up { color: #E5635E; }
.sq-cell__x.is-down { color: #6FA8F5; }
.sq-wrow { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: start; margin-bottom: 8px; }
.sq-wrow__m { padding-top: 10px; font-size: 14px; color: var(--muted); font-weight: 700; }
.sq-legend { margin-top: 10px; }
@media (max-width: 900px) { .sq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sq-grid--w { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .sq-cell { padding: 8px; } .sq-cell__v { font-size: 15px; } }

/* YOOR 会員向けの移行ガイド（/yoor。2026-11-01） */
.yg { max-width: 820px; }
.yg-hero h1 { font-size: clamp(24px, 4vw, 34px); line-height: 1.4; margin: 6px 0 12px; }
.yg-open { display: inline-flex; align-items: baseline; gap: 10px; margin: 0 0 12px; padding: 8px 18px; border: 2px solid var(--gold); border-radius: 12px; color: var(--gold); font-size: 20px; font-weight: 900; }
.yg-open strong { font-size: clamp(28px, 5vw, 40px); }
.yg-cta { margin: 20px 0; }
.yg-cta .btn { width: 100%; max-width: 420px; justify-content: center; }
.yg-sec { margin-top: 40px; }
.yg-sec h2 { font-size: 22px; margin: 0 0 14px; }
.yg-price { padding: 20px; border: 2px solid var(--coral); border-radius: 14px; background: var(--surface); }
.yg-price__name { display: block; font-weight: 700; color: var(--gold); }
.yg-price__yen { font: 700 clamp(40px, 8vw, 56px) var(--mono); }
.yg-price__unit { margin-left: 6px; color: var(--muted); }
.yg-price__was { margin-left: 12px; color: var(--muted); text-decoration: line-through; white-space: nowrap; }
.yg-price__tag { display: table; margin: 10px 0 0; padding: 4px 14px; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 700; }
.yg-plans { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; align-items: stretch; }
.yg-price--sub { border: 1px solid var(--border); }
.yg-price--sub .yg-price__name { color: var(--text); }
.yg-price--sub .yg-price__yen { font-size: clamp(30px, 6vw, 40px); }
.yg-price--sub .yg-price__unit { display: block; margin-left: 0; }
.yg-price__sub { display: block; margin-top: 8px; color: var(--muted); }
@media (max-width: 700px) { .yg-plans { grid-template-columns: 1fr; } }
.yg-list { margin: 14px 0; padding-left: 1.2em; line-height: 1.9; }
.yg-note { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--gold); border-radius: 12px; background: #1F1A08; color: #F2E6C4; line-height: 1.8; }
.yg-note ul { margin: 6px 0 0; padding-left: 1.2em; }
.yg-note p { margin: 6px 0 0; }
.yg-note--warn { border-color: var(--coral); background: #200C0B; color: #F5D5D2; }
.yg-time { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.yg-time li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.yg-time li.is-main { border-color: var(--coral); }
.yg-time__d { font-weight: 900; }
.yg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: yg; }
.yg-step { display: grid; grid-template-columns: 1fr 260px; gap: 18px; align-items: start; padding: 18px 18px 18px 64px; position: relative; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.yg-step::before { counter-increment: yg; content: counter(yg); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 900; display: grid; place-items: center; }
.yg-step h3 { margin: 0 0 6px; font-size: 18px; }
.yg-step p { margin: 0; line-height: 1.8; }
.yg-step img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); }
.yg-feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.yg-feat li { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.yg-feat__icon { font-size: 22px; }
.yg-feat strong { display: block; }
.yg-feat small { color: var(--muted); }
.yg-end { text-align: center; }
.yg-end .yg-cta { display: flex; justify-content: center; }
@media (max-width: 700px) { .yg-step { grid-template-columns: 1fr; padding-left: 58px; } .yg-step::before { left: 14px; } .yg-feat { grid-template-columns: 1fr; } .yg-time li { grid-template-columns: 90px 1fr; } }

/* サブスクペイのカード入力（CPToken.js がこのページの中に作る）をスマホで押しやすく（2026-11-02） */
#CARD_INPUT_FORM { font-size: 15px; line-height: 1.7; }
#CARD_INPUT_FORM input[type="text"], #CARD_INPUT_FORM input[type="tel"], #CARD_INPUT_FORM input[type="number"], #CARD_INPUT_FORM input:not([type]), #CARD_INPUT_FORM select {
  box-sizing: border-box; max-width: 100%; min-height: 46px; padding: 8px 12px; font-size: 16px; border-radius: 8px; border: 1px solid #9a9aa2; background: #fff; color: #111; margin: 4px 0;
}
#CARD_INPUT_FORM select option { background: #fff; color: #111; }
#CARD_INPUT_FORM input[type="button"], #CARD_INPUT_FORM button { min-height: 44px; padding: 8px 18px; font-size: 15px; border-radius: 8px; }
/* カード番号・名義は PC でも広く（2026-11-02）。セキュリティコードは短くてよい */
#CARD_INPUT_FORM input[type="text"], #CARD_INPUT_FORM input[type="tel"], #CARD_INPUT_FORM input[type="number"], #CARD_INPUT_FORM input:not([type]) { width: 100% !important; max-width: 420px !important; }
#CARD_INPUT_FORM input[maxlength="3"], #CARD_INPUT_FORM input[maxlength="4"] { width: 140px !important; }
#CARD_INPUT_FORM select { min-width: 96px; }
#CARD_INPUT_FORM .card-confirm { display: block; width: 100%; min-height: 50px; margin: 14px 0 4px; padding: 10px 18px; border: 0; border-radius: 10px; background: var(--coral); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .1em; cursor: pointer; }
.ch-card.is-locked { cursor: default; }
.ch-card.is-locked .ch-card__img img { filter: brightness(.55) grayscale(.3); }
.bt-card.is-locked { cursor: default; opacity: .75; }
.mk-peek { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.mk-peek__item { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--muted); font-weight: 700; }
.pod-item.is-locked { cursor: default; opacity: .7; }

/* ===== サイト装飾（2026-11-05）。<body class="deco deco--<テーマ>"> のときだけ出す。素材は /assets/deco/<テーマ>/ ===== */
.brand__deco, .deco-banner { display: none; }
/* クリスマス */
.deco--xmas .brand__mark { background: #8E1517 url(/assets/deco/xmas/logo.webp) center / cover no-repeat; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
/* 相棒を出している人も、相棒の後ろに季節の飾りを敷く（2026-11-06）。フレームの色（style の background）より優先するため !important */
.deco--xmas .brand__partner .av { background-color: #8E1517; background-image: url(/assets/deco/xmas/logo.webp) !important; background-position: center !important; background-size: cover !important; background-repeat: no-repeat !important; }
.deco--xmas .brand__deco { display: inline-block; width: 40px; height: 40px; margin-left: -4px; background: url(/assets/deco/xmas/ornament.webp) center / contain no-repeat; mix-blend-mode: screen; }
/* ガーランドはロゴとメニューのあいだの空いた場所の真ん中（＝画面の中央より 128px 左）。空きが狭い幅では出さない */
.deco--xmas .site-header { background: var(--bg) url(/assets/deco/xmas/header.webp) calc(50% - 128px) center / auto 60px no-repeat; background-blend-mode: screen; }
/* ロゴとメニューのあいだが狭い幅（タブレット・スマホ）では、ヘッダーの下のふちに沿ってガーランドを下げる（2026-11-05） */
@media (max-width: 1179px) { .deco--xmas .site-header { background-position: center bottom; background-size: auto 44px; padding-bottom: 26px; } }
@media (max-width: 600px) { .deco--xmas .brand__deco { width: 32px; height: 32px; } }
.deco--xmas .deco-banner { display: block; width: 100%; aspect-ratio: 2.8 / 1; margin-bottom: 8px; border-radius: 8px; border: 1px solid var(--border); background: url(/assets/deco/xmas/banner.webp) center / cover no-repeat; }
.deco--xmas .lab-nav__desktop, .deco--xmas .lab-nav__mobile[open] { position: relative; }
.deco--xmas .lab-nav__desktop::after, .deco--xmas .lab-nav__mobile[open]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 560 / 747; background: url(/assets/deco/xmas/sidebar.webp) center bottom / 100% auto no-repeat; mix-blend-mode: screen; pointer-events: none; z-index: -1; }
.deco-assets { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.deco-asset { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.deco-asset img { display: block; height: 96px; width: auto; max-width: 100%; border-radius: 6px; border: 1px solid var(--border); background: #000; }

/* 設定：ログイン中の端末（2026-11-06） */
.device-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.device-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--border, #2a2a30); border-radius: 8px; }

/* 設定：ホーム画面に追加（2026-11-06） */
.app-steps { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 4px; }
.app-steps__icon { display: inline-block; padding: 0 6px; border: 1px solid var(--border, #2a2a30); border-radius: 6px; font-size: 13px; }

/* 設定：スマホへの通知（2026-11-06） */
.push-kinds { display: flex; flex-direction: column; gap: 6px; }
/* 会員ダッシュボード（2026-11-07） */
.db-goal { height: 14px; border-radius: 7px; background: var(--border); overflow: hidden; }
.db-goal__bar { display: block; height: 100%; background: var(--coral); border-radius: 7px; }
.db-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.db-two > .mk-card { margin-bottom: 16px; }
@media (max-width: 900px) { .db-two { grid-template-columns: 1fr; gap: 0; } }
.db-yoor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.db-yoor > div { display: flex; flex-direction: column; gap: 2px; }
.db-yoor strong { font: 700 26px var(--mono); }
.mk-col.db-stack { flex-direction: column; justify-content: flex-end; align-items: stretch; }
.db-stack .mk-col__bar { border-radius: 0; }
.db-stack .mk-col__bar:last-child { border-radius: 4px 4px 0 0; }
.db-bar--yoor { background: var(--teal, #2a9d8f); }
.db-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--coral); vertical-align: -1px; margin-right: 4px; }
.db-key--yoor { background: var(--teal, #2a9d8f); margin-left: 6px; }
/* アンケート（2026-11-07） */
.sv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sv-q { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px 14px; margin: 0 0 14px; }
.sv-q legend { font-weight: 700; padding: 0 6px; }
.sv-req { font-size: 11px; color: var(--coral); border: 1px solid var(--coral); border-radius: 4px; padding: 0 4px; margin-left: 6px; vertical-align: 1px; }
.sv-opt { display: flex; gap: 8px; align-items: center; padding: 6px 0; cursor: pointer; }
.sv-opt input { width: 18px; height: 18px; flex: none; }
.sv-other { margin-top: 6px; }
.sv-cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-color: var(--coral); }
.sv-texts { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
/* はじめの一歩（2026-11-07） */
.ob-head { display: flex; justify-content: space-between; align-items: baseline; }
.ob-bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; margin: 10px 0 4px; }
.ob-bar > span { display: block; height: 100%; background: var(--coral); border-radius: 4px; }
.ob-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.ob-list a { display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.ob-list a:hover { background: var(--bg-soft, rgba(127,127,127,.08)); }
.ob-list strong { display: block; font-size: 15px; }
.ob-list small { display: block; }
.ob-list .is-done strong { text-decoration: line-through; opacity: .55; }
.ob-list .is-next a { outline: 1.5px solid var(--coral); }
.ob-check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.is-done .ob-check { background: var(--coral); border-color: var(--coral); color: #fff; }
.ob-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.ob-strip { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 12px; border: 1px solid var(--coral); border-radius: 10px; color: inherit; text-decoration: none; }

/* 文字の大きさ（2026-11-07）。文字の大きさが px で決まっているので、画面全体を拡大する（ブラウザの拡大と同じ考え方） */
html.fs-l body { zoom: 1.12; }
html.fs-xl body { zoom: 1.25; }
.font-size-pick { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }

/* 投稿の埋め込み（YouTube・Google ドライブ・Spotify。2026-11-08） */
.embed { position: relative; width: 100%; max-width: 640px; margin: 12px 0 4px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed--video { aspect-ratio: 16 / 9; }
.embed--spotify { height: 152px; }
.embed--spotify-tall { height: 352px; }
.embed--substack { height: 590px; }  /* 表紙・題名・説明・著者・いいね数・「Substackで読む」まで入る高さ */
.embed__cover { position: absolute; inset: 0; z-index: 1; }
.embed__yt { position: absolute; inset: 0; display: block; }
.embed__yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.embed__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgba(230, 33, 23, .92); }
.embed__play::after { content: ''; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.embed__yt:hover .embed__play { background: #e62117; }
.embed__link { display: inline-block; max-width: 100%; margin-bottom: 8px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; }


/* 管理画面：ポッドキャストの編集（2026-11-09） */
.pod-edit > summary { list-style: none; cursor: pointer; }
.pod-edit > summary::-webkit-details-marker { display: none; }

.pod-edit__form { margin-top: 10px; width: 360px; max-width: 70vw; display: flex; flex-direction: column; gap: 10px; white-space: normal; }

/* 投資カレンダー：日ごとの表示・SQまで（2026-11-09） */
a.cal-cell__day { color: inherit; text-decoration: none; display: inline-block; min-width: 1.6em; border-radius: 6px; }
a.cal-cell__day:hover { background: var(--surface-2); text-decoration: underline; }
.cal-mark { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; font-size: 10px; line-height: 16px; color: var(--muted); border: 1px solid var(--border); vertical-align: 2px; }
.cal-mark--sq { color: #F4A3A3; border-color: #F4A3A3; font-weight: 700; }
.cal-sq { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--border); border-left: 4px solid #F4A3A3; border-radius: 10px; background: var(--surface); }
.cal-sq p { margin: 0; }
.cal-sq__main { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.cal-sq__label { font-weight: 700; }
.cal-sq__days { font-size: 20px; color: #F4A3A3; }
.cal-sq__val { font-size: 18px; font-weight: 700; }
.cal-sq__sub { margin-top: 4px !important; }
.cal-sq__warn { color: #F4A3A3; }
.cal-closed { margin: 16px 0 0; padding: 10px 16px; border-radius: 10px; background: var(--surface-2); font-weight: 700; text-align: center; letter-spacing: .1em; }

/* 週次SQ・過去のSQ値（2026-11-09） */
.cal-mark--wsq { color: #9FD8F5; border-color: #3a5a6b; }
.cal-mark__val { margin-left: 4px; font-weight: 400; font-family: var(--mono); }
.cal-sq__row + .cal-sq__row, .cal-sq__today + .cal-sq__row { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.cal-sq__days--w { font-size: 16px; color: #9FD8F5; }

/* 投資カレンダー：週の表示（2026-11-09） */
.cal-week { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.cal-week__day { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; background: var(--surface); }
.cal-week__day.is-today { border-color: var(--gold); }
.cal-week__h { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cal-week__h a { color: inherit; text-decoration: none; }
.cal-week__h a:hover { text-decoration: underline; }
.cal-week__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cal-week__list li { display: grid; grid-template-columns: 3.4em auto 1fr auto; gap: 8px; align-items: baseline; font-size: 14px; }
.cal-week__time { font-family: var(--mono); font-size: 12px; }
.cal-week__title { min-width: 0; overflow-wrap: anywhere; }
.cal-week__none { margin: 0; }
@media (max-width: 560px) { .cal-week__list li { grid-template-columns: 3.4em 1fr; } .cal-week__list li .cal-tag { grid-column: 2; justify-self: start; } .cal-week__list li .cal-week__title { grid-column: 1 / -1; } .cal-week__list li .cal-stars { display: none; } }

/* 投資カレンダー：予定のリンク・何日かにわたる予定（2026-11-10） */
.cal-links { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; }
.cal-link { display: inline-block; padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--text); text-decoration: none; background: var(--surface-2); }
.cal-link:hover { border-color: var(--gold); color: var(--gold); }
.cal-until { color: #F59E7A; }
.cal-week__title .cal-links { margin-top: 4px; }
