/* Run 2A layout. Palette and typography values belong to tokens.css. */
.member-top, .member-tabs, .member-content, .member-limited { box-sizing: border-box; }
.member-top *, .member-tabs *, .member-content *, .member-limited * { box-sizing: border-box; min-width: 0; }
.member-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 18px clamp(16px, 3vw, 44px); border-bottom: 1px solid var(--line); background: var(--paper); }
.member-top a, .member-tabs a { color: var(--ink-2); text-decoration: none; }
.member-top .member-brand { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ink); font-weight: var(--weight-heading); }
.member-top nav { display: flex; flex-wrap: wrap; gap: 4px; }
.member-top nav a { padding: 10px 14px; font-size: 14px; border-radius: var(--radius-pill); }
.member-top nav a:hover, .member-top nav a[aria-current], .member-tabs a[aria-current] { color: var(--cobalt); background: var(--wash); }
.member-tabs { display: none; }
.member-content { max-width: 100%; margin: 0 auto; padding: 0; overflow-wrap: anywhere; }
.member-content h1 { font-size: clamp(28px, 4vw, 48px); line-height: var(--heading-line-height); margin: 28px 0 20px; }
.member-content h2 { font-size: 21px; line-height: var(--heading-line-height); }
.member-content h3 { font-size: 16px; line-height: var(--heading-line-height); }
.member-content a, .member-limited a { color: var(--color-accent); }
.member-content button, .member-content input, .member-content select, .member-content textarea { font: inherit; color: var(--ink); max-width: 100%; }
.member-content input, .member-content select, .member-content textarea { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--sheet); }
.member-content button { border: 1px solid var(--line-2); border-radius: var(--radius-pill); padding: 10px 16px; background: var(--sheet); cursor: pointer; min-height: 44px; }
.member-content label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.member-content :focus-visible, .member-top :focus-visible, .member-tabs :focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.member-content .member-button, .member-limited .member-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border-radius: var(--radius-pill); background: var(--cobalt); color: var(--on-cobalt); border: 1px solid var(--cobalt); text-decoration: none; }
.member-back { margin: 14px 0 0; }
.member-lead { color: var(--ink-2); max-width: 60ch; }
.member-meta { font-size: 13px; color: var(--ink-3); }
.member-badge { display: inline-block; border: 1px solid var(--line-2); border-radius: var(--radius-pill); padding: 2px 10px; font-size: 13px; color: var(--ink-2); }
.member-next { color: var(--color-point); }
.learn-tabs { display: inline-flex; flex-wrap: nowrap; padding: 4px; gap: 2px; border-radius: var(--radius-pill); background: var(--wash); }
.learn-tabs a, .studio .learn-tabs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; font-size: 14px; padding: 10px 16px; border-radius: var(--radius-pill); color: var(--ink-2); }
.learn-tabs a[aria-current], .studio .learn-tabs a[aria-current] { background: var(--sheet); color: var(--ink); box-shadow: var(--shadow-card); }
.member-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.member-card { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); background: var(--sheet); overflow: hidden; }
.member-card a { color: inherit; text-decoration: none; }
.member-card img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.member-card-body { padding: 18px; }
.member-card h2 { font-size: 18px; }
.member-course-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 24px 0 36px; }
.member-course-head img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.member-lessons, .member-archive, .member-toc, .member-related, .member-admin-list { list-style: none; margin: 0; padding: 0; }
.member-lessons { border-top: 1px solid var(--ink); }
.member-lesson { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.member-lesson-number { font: 300 34px var(--font-display); color: var(--cobalt); }
.member-lesson h3 { color: var(--ink); margin: 0 0 6px; }
.member-progress { font-size: 13px; color: var(--ink-3); }
.member-progress.done { color: var(--cobalt); font-weight: var(--weight-heading); }
.member-progress.partway { color: var(--ink-2); text-decoration: underline; }
.member-locked { color: var(--ink-3); }
.member-materials { list-style: none; margin: 0 0 40px; padding: 0; border-top: 1px solid var(--ink); }
.member-materials a { display: block; min-height: 44px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--cobalt); }
.member-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin: 28px 0; }
.member-filters label { flex: 1 1 180px; }
.member-archive > li { border-bottom: 1px solid var(--line); }
.member-archive a { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; padding: 24px 0; text-decoration: none; color: inherit; }
.member-archive time { font: 400 14px var(--font-mono); color: var(--ink-3); }
.member-archive h2 { margin-top: 0; }
.member-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.member-watch { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; margin-top: 24px; align-items: start; }
.member-player, .member-panel, .member-limited { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--sheet); box-shadow: var(--shadow-card); }
.member-panel { margin-bottom: 24px; }
.member-player h1 { font-size: clamp(24px, 3vw, 36px); }
.member-player audio, .member-player video, .member-embed { width: 100%; max-width: 100%; }
.member-embed { aspect-ratio: 16/9; border: 0; }
.member-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.member-reading { white-space: pre-wrap; font-size: var(--reading-size); line-height: var(--reading-line-height); }
.member-toc li, .member-related li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.member-toc button { width: 100%; text-align: left; border: 0; border-radius: 0; }
.member-limited { max-width: 960px; margin: 24px auto; overflow-wrap: anywhere; }
.member-limited h1 { font-size: clamp(22px, 6vw, 32px); line-height: var(--heading-line-height); word-break: keep-all; }
@media (max-width: 1000px) { .member-limited { margin: 24px 16px; } }
.member-admin-nav, .member-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.member-admin-nav { padding-bottom: 24px; }
.member-admin-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 760px; }
.member-admin-form textarea { width: 100%; resize: vertical; }
.member-admin-form input[type=checkbox] { justify-self: start; min-width: 44px; min-height: 44px; }
.member-admin-list li { padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 1100px) { .member-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .member-top nav, .member-desktop-only { display: none; }
  .member-top { font-size: 14px; }
  .member-tabs { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-around; position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--nav-layer); background: var(--sheet); border-top: 1px solid var(--line); padding: 6px 2px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .member-tabs a { font-size: 13px; min-height: 48px; min-width: 44px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px 6px; white-space: nowrap; font-feature-settings: "palt"; }
  .member-course-head, .member-watch { grid-template-columns: minmax(0, 1fr); }
  .member-course-head { gap: 24px; }
}
@media (max-width: 600px) {
  .member-cards { grid-template-columns: minmax(0, 1fr); }
  .member-archive a { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .member-lesson { grid-template-columns: 32px minmax(0, 1fr) 52px; gap: 10px; }
  .member-lesson-number { font-size: 26px; }
  .learn-tabs a, .studio .learn-tabs a { padding: 10px 12px; font-size: 13px; }
  /* 2 段目は 1 行に収める（スマホではアイコンを外す・2026-10-02 受理） */
  .learn-tabs { flex-wrap: nowrap; }
  .learn-tabs .icon-label svg { display: none; }
}

.member-new { color: var(--color-point); border-color: var(--color-point); }
.member-years { display: flex; align-items: end; gap: 16px; overflow-x: auto; max-width: 100%; padding: 16px 0; }
.member-years a { display: grid; justify-items: center; flex: 0 0 80px; color: var(--ink-3); text-decoration: none; font-size: 13px; }
.member-years svg { display: block; fill: var(--line-2); }
.member-years a[aria-current] { color: var(--cobalt); }
.member-years a[aria-current] svg { fill: var(--cobalt); }
.member-filter-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.member-filter-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius-pill); padding: 8px 14px; font-size: 13px; text-decoration: none; }
.member-filter-links a[aria-current] { background: var(--cobalt); color: var(--on-cobalt); border-color: var(--cobalt); }

/* Run 2B: the monthly issue is the only sky-colored member section. */
.member-issue { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; padding: clamp(22px, 4vw, 52px); margin-top: 10px; background: var(--sky); color: var(--sky-ink); border-radius: var(--radius-lg); }
.member-issue h1 { font-size: clamp(24px, 3vw, 38px); }
.member-issue-month { font: 300 clamp(72px, 10vw, 140px)/1 var(--font-display); }
.member-issue-label, .member-issue figcaption { color: var(--sky-dim); font-size: 13px; }
.member-issue figure { margin: 0; align-self: center; text-align: center; }
.member-issue svg { display: block; width: 100%; height: auto; font-family: var(--font-symbol); }
.member-issue .member-button { background: var(--sky-ink); color: var(--sky); border-color: var(--sky-ink); }
.member-sky-events { padding: 0; list-style: none; font-size: 14px; }
.member-sky-events li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--sky-line); }
.member-sky-events time { font-family: var(--font-mono); }
.member-liveband { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: center; padding: 28px; margin-top: 22px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.member-liveband .member-button { justify-self: start; }
.member-countdown { font: 400 20px/1.7 var(--font-display); color: var(--color-point); }
.member-live-day { font: 300 80px/1 var(--font-display); color: var(--color-point); margin: 20px 0; }
.member-section { margin-top: 44px; }
.member-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.member-added-card { display: block; height: 100%; }
.member-resume-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.member-resume { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; text-decoration: none; }
.member-resume h3 { color: var(--ink); margin: 0; }
.member-resume p { font-size: 13px; color: var(--ink-2); }
.member-resume-play { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); font-size: 24px; }
.member-resume progress { width: 100%; height: 8px; accent-color: var(--cobalt); }
.member-content .member-news-preview { display: block; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; color: var(--ink); text-decoration: none; }
.member-news-preview p { color: var(--ink-2); }
.member-news-preview time { color: var(--ink-3); font-size: 13px; }
.member-news-list { display: grid; gap: 18px; padding: 0; list-style: none; }
.member-live-grid, .member-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.member-community-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.member-question-form { display: grid; gap: 12px; }
.member-question-form textarea { width: 100%; resize: vertical; }
.member-questions { padding-left: 20px; }
.member-questions li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.member-account { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
.member-account dt { color: var(--ink-3); font-size: 14px; }
.member-account dd { margin: 0; }
.member-line-qr { display: block; max-width: 100%; height: auto; margin-top: 20px; }
.member-fy { padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.member-fy li { border-bottom: 1px solid var(--line); }
.member-content .member-fy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; min-height: 44px; padding: 16px 0; color: var(--ink); text-decoration: none; }
.member-fy-identity { display: grid; gap: 4px; }
.member-fy-orb { font: 400 20px var(--font-display); }
.member-fy-arrow { color: var(--ink-3); }
.member-fy-row:hover, .member-fy-row:focus-visible, .member-content .member-news-preview:hover, .member-content .member-news-preview:focus-visible { background: var(--wash); }
@media (max-width: 900px) {
  .member-issue, .member-live-grid, .member-account-grid, .member-community-grid { grid-template-columns: minmax(0, 1fr); }
  .member-issue figure { width: 100%; max-width: 420px; justify-self: center; }
  .member-resume-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .member-liveband { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .member-account { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .member-account dd { margin-bottom: 12px; }
  .member-content .member-limited { margin: 24px 0; }
}

.member-content .member-button-quiet { background: transparent; color: var(--cobalt); }
.member-support h3 { margin-top: 18px; }
/* Mypage: one column, reports first after the profile; cancellation stays below the first view. */
.member-me { max-width: 920px; }
.member-profile .member-meta { margin-top: 20px; }
.paid-reports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; margin: 16px 0; }
.paid-report-card { display: grid; align-content: start; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.paid-report-card h3, .paid-report-card h4 { margin: 0; font-size: 17px; line-height: var(--heading-line-height); }
.paid-report-card p { margin: 0; }
.paid-report-owned .member-button { justify-self: start; margin-top: 6px; }
.paid-report-thumb { display: block; margin: -18px -18px 6px; }
.paid-report-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 1px solid var(--line); }
.paid-reports-sub { margin-top: 32px; font-size: 18px; }
@media (max-width: 600px) { .paid-report-thumb img { aspect-ratio: 16 / 9; } }
/* 未購入のレポート＝公式サイト（itomasaya.com）の鑑定レポートの並び方にそろえる：PC は本文の幅に合わせて 4 列前後・スマホは 2 列・レターの見出しの画像（16:10） */
.paid-reports-lineup { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 20px 16px; margin: 16px 0; }
.paid-report-lp { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: inherit; text-decoration: none; }
.paid-report-lp img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.paid-report-lp h4 { margin: 4px 0 0; font-size: 15px; line-height: 1.5; word-break: auto-phrase; }
.paid-report-lp p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.paid-report-lp .paid-report-more { font-size: 13px; color: var(--cobalt); }
.paid-report-lp:hover img { box-shadow: var(--shadow-card); }
.paid-report-lp:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; border-radius: var(--radius-sm); }
@media (max-width: 600px) { .paid-reports-lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }
/* ログインの画面：真ん中に、大きめの入力欄とボタン（2026-10-01） */
main:has(> .auth-card) { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; box-sizing: border-box; background: var(--paper); }
.auth-card { box-sizing: border-box; width: min(480px, 100%); padding: clamp(28px, 6vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--sheet); box-shadow: var(--shadow-card); text-align: center; color: var(--ink); }
.auth-card * { box-sizing: border-box; }
.auth-brand { margin: 0 0 8px; font-size: 13px; letter-spacing: .12em; color: var(--cobalt); font-weight: var(--weight-heading); }
.auth-card h1 { margin: 0 0 16px; font-size: clamp(22px, 5.5vw, 28px); line-height: var(--heading-line-height); word-break: auto-phrase; }
.auth-lead { margin: 0 0 24px; font-size: 15px; line-height: 1.8; text-align: left; word-break: auto-phrase; }
.auth-card form { display: grid; gap: 10px; text-align: left; }
.auth-card label { font-size: 14px; color: var(--ink-2); }
.auth-card input[type=email] { width: 100%; min-height: 56px; padding: 12px 16px; font: inherit; font-size: 18px; color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper); }
.auth-card input[type=email]:focus-visible, .auth-card button:focus-visible, .auth-card a:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.auth-card button, .auth-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 6px; padding: 12px 20px; font: inherit; font-size: 17px; font-weight: var(--weight-heading); color: var(--on-cobalt); background: var(--cobalt); border: 1px solid var(--cobalt); border-radius: var(--radius-pill); cursor: pointer; text-decoration: none; }
.auth-note { margin: 16px 0 0; font-size: 13px; line-height: 1.7; color: var(--ink-3); text-align: left; word-break: auto-phrase; }
.auth-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; margin-top: 16px; color: var(--cobalt); font-weight: var(--weight-heading); }

/* Phase 2I: compact previews and comfortable, consistently sized controls. */
.member-content input[type=checkbox], .member-content input[type=radio] { accent-color: var(--cobalt); }
.member-section-head > a, .member-back a, .member-related a, .paid-report-more, .member-theme-filter summary,
.member-content p > a:only-child, .member-community-grid aside a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; }
.member-theme-filter summary { cursor: pointer; display: list-item; }
.member-added-list { margin-top: 16px; }
.member-added-list .member-added-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.member-added-list .member-added-card > * { margin: 0; }
.member-added-list .member-added-card > p:empty { display: none; }
.member-added-list .member-added-card:hover, .member-added-list .member-added-card:focus-visible { background: var(--wash); }
.paid-reports-empty { text-wrap: pretty; }
@media (max-width: 600px) {
  main:has(> .auth-card) { align-items: start; padding-top: 48px; }
}
@media (min-width: 900px) {
  .member-content input:not([type=checkbox]):not([type=radio]), .member-content select, .member-content textarea,
  .member-filters label { max-width: 560px; }
}

/* Phase 3A: shared navigation controls for member pages and Studio. */
.icon-label { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); min-height: 44px; box-sizing: border-box; border-radius: var(--radius-pill); }
.icon-label svg { flex-shrink: 0; }
.nav-breadcrumb { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; margin-block: var(--space-2); color: var(--ink-2); }
.nav-breadcrumb a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--radius-pill); color: var(--cobalt); text-decoration: none; }
.nav-breadcrumb > [aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }

/* Phase 3B: live hero and mixed yearly recordings, using Cobalt tokens. */
.member-live-grid { align-items: stretch; }
.member-live-grid > .member-panel { margin-bottom: 0; }
.member-live-hero { background: var(--sky); color: var(--sky-ink); border-color: var(--sky); }
.member-live-hero .member-live-day { font-size: clamp(96px, 12vw, 160px); color: var(--sky-ink); }
.member-live-hero .member-countdown { color: var(--sky-ink); }
.member-live-hero .member-button { background: var(--sky-ink); color: var(--sky); border-color: var(--sky-ink); }
.live-year-count { color: var(--cobalt); font-family: var(--font-display); font-weight: 400; }
.live-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-items: start; border-bottom: 1px solid var(--line); padding-bottom: var(--space-4); }
.live-toolbar .member-filters { margin: 0; }
.live-month-filter { min-width: 0; max-width: 100%; overflow-x: auto; }
.live-month-filter .member-filter-links { flex-wrap: nowrap; width: max-content; padding-bottom: var(--space-2); }
.live-month-filter .member-filter-links a { flex: none; white-space: nowrap; }
.live-year-list a { grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.live-when { display: flex; flex-direction: column; gap: var(--space-2); font: 400 var(--text-xs) var(--font-mono); color: var(--ink-3); }
.live-year-list time { font: 300 28px/1 var(--font-display); color: var(--ink); }
.live-year-list h3 { margin-top: 0; }
.live-year-list p { font-size: var(--text-sm); color: var(--ink-2); }
.live-year-list mark { background: var(--wash); color: var(--ink); border-radius: var(--radius-sm); }
.live-kind { border-color: var(--cobalt); color: var(--cobalt); }
.live-play { display: none; }
.live-more { display: flex; justify-content: center; margin-top: var(--space-5); }
.member-content [hidden] { display: none; }
@media (min-width: 901px) {
  .live-toolbar { grid-template-columns: minmax(0, 1fr); }
  .live-year-list a { grid-template-columns: 92px minmax(0, 1fr) 44px; gap: var(--space-5); }
  .live-year-list time { font-size: 36px; }
  .live-play { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius-pill); }
}

/* 画面には出さず、読み上げには残す見出し（ホームは青い面から始める＝見本 v3） */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Phase 4A: shared v3 frame and navigation; page arrangements stay in their phases. */
.member-desktop-only:has(> .member-top) { display: contents; }
.member-top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: var(--nav-layer);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  height: 68px; gap: 16px; padding: 0 var(--gut); flex-wrap: nowrap;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.member-top.scrolled { border-bottom-color: var(--line); }
.member-top .member-brand { justify-self: start; gap: .45em; }
/* 確定見本 v3 の .brand＝「ABA」は太く字間を広く・「Members」は数字と同じ書体・朱の点（2026-10-03 いとうさん指摘で見本どおりに） */
.member-top .member-brand b { font-weight: 900; font-size: 15px; letter-spacing: .28em; }
.member-top .member-brand i { font-style: normal; font-family: var(--font-display); font-size: 24px; font-weight: 400; letter-spacing: -.01em; }
.member-top .member-brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 3px var(--ember-wash); }
.member-top nav { flex-wrap: nowrap; gap: 2px; }
.member-top nav a { position: relative; display: flex; align-items: center; min-height: 44px; padding: 10px 16px; font-size: 14px; font-weight: 500; }
.member-top nav a:hover { background: var(--wash); color: var(--ink); }
.member-top nav a[aria-current] { background: transparent; color: var(--ink); }
.member-top nav a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--cobalt); }
/* 右上＝明るさの切り替え（月の印）とマイページの丸（頭文字）＝確定見本 v3 の .tools-r（2026-10-03 いとうさん指摘で戻す）。運営の文字リンクも同じ列に置く */
.member-tools { display: flex; align-items: center; gap: 6px; justify-self: end; }
.member-tools .member-admin-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 13px; white-space: nowrap; }
.member-icon-btn { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.member-icon-btn:hover { background: var(--wash); color: var(--ink); }
.member-top .member-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px; line-height: 1; }
.member-top .member-avatar:hover { background: var(--cobalt); color: var(--on-cobalt); }
.member-top .member-avatar[aria-current] { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--cobalt); }
.member-top .member-icon-btn:focus-visible, .member-top .member-avatar:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
@media (max-width: 900px) {
  .member-top { grid-template-columns: minmax(0, 1fr) auto; height: 60px; }
}
.learn-tabs { margin-top: 20px; max-width: 100%; overflow-x: auto; white-space: nowrap; }
.learn-tabs a, .studio .learn-tabs a { flex: 0 0 auto; min-height: 44px; padding: 0 20px; font-size: 13.5px; font-weight: 500; }
.learn-tabs a[aria-current], .studio .learn-tabs a[aria-current] { box-shadow: var(--shadow-subnav); }
.nav-breadcrumb { align-items: center; gap: 0 8px; padding-top: 6px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.nav-breadcrumb a, .studio .nav-breadcrumb a { color: var(--ink-3); min-height: 44px; }
.nav-breadcrumb a:hover { color: var(--ink); }
.nav-breadcrumb > * { line-height: 1.4; }
.member-section { margin-top: clamp(48px, 6vw, 96px); }
.member-section-head { align-items: end; gap: 10px 24px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); margin-bottom: 6px; }
.member-section-head h2 { margin: 0; font-size: clamp(21px, 2.1vw, 27px); }
.member-section-head > a, .member-back a, .paid-report-more { color: var(--ink); font-size: 13.5px; font-weight: 500; text-decoration: none; gap: 8px; }
.member-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 11px; font-size: 13px; font-weight: 500; }
.member-content button, .member-content .member-button, .member-limited .member-button,
.auth-card button, .auth-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; min-width: 44px; padding: 10px 22px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.member-content button:hover, .member-content .member-button:hover, .member-limited .member-button:hover,
.auth-card button:hover, .auth-button:hover { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-cobalt); }
.member-content button:active, .member-button:active, .auth-button:active { transform: scale(.97); }
.member-content .member-button-quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.member-content .member-button-quiet:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.member-content button:disabled, .auth-card button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
/* Row controls keep their row appearance and clickable area. */
.member-content .member-toc button { justify-content: flex-start; border: 0; border-radius: 0; background: transparent; color: var(--ink); text-align: left; }
.member-toc button:hover, .member-lesson:hover, .member-archive a:hover { background: var(--wash); }
.member-content input, .member-content select, .member-content textarea, .auth-card input {
  font-size: 16px; min-height: 44px; min-width: 0; box-sizing: border-box;
}
.member-content input:focus, .member-content select:focus, .member-content textarea:focus { border-color: var(--cobalt); }
.member-content label { min-width: 0; }
.member-admin-nav a, .member-actions a, .member-years a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.member-years a { display: grid; }
.member-content summary { min-height: 44px; cursor: pointer; }
.member-content img { filter: brightness(var(--img-dim)); }
@media (max-width: 900px) {
  .member-top { grid-template-columns: minmax(0, 1fr) auto; height: 60px; }
  .member-top nav { display: none; }
  .member-top:has(> a:not(.member-brand)) { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  .member-tabs { grid-template-columns: repeat(5, auto); justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .member-tabs a { min-height: 52px; padding: 6px 4px; gap: 2px; letter-spacing: 0; flex-direction: column; font-size: 13px; color: var(--ink-3); }
  .member-tabs a[aria-current] { background: transparent; color: var(--cobalt); font-weight: 700; }
}
@media (max-width: 600px) { .learn-tabs a, .studio .learn-tabs a { padding-inline: 12px; font-size: 13px; } }

/* Ordinary links also retain a touch target; explicit card/row display rules win. */
:where(main a) { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }

/* Phase 4B: all native calendar/clock fields, including dynamically opened forms. */
@supports (-webkit-touch-callout: none) {
  .date-hint-field { display: inline-grid; position: relative; min-width: 0; max-width: 100%; vertical-align: middle; }
  .date-hint-field > input { width: 100%; min-width: 0; box-sizing: border-box; }
  .date-hint-field::after { content: attr(data-hint); position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 16px; font-weight: 400; color: var(--ink-3); pointer-events: none; }
  .date-hint-field.has-value::after { display: none; }
}

/* Prebeta: phrase-aware headings/buttons, with safe unsupported-browser fallback. */
.member-content :is(h1, h2, h3, h4, button, .member-button),
.paid-reports :is(h2, h3, h4) {
  word-break: normal; word-break: auto-phrase; text-wrap: balance; overflow-wrap: normal;
}
.heading-phrase { display: inline-block; max-width: 100%; word-break: keep-all; overflow-wrap: break-word; }
