/* ==========================================================================
   太郎アゲアゲ SNSコンサル 会員サイト ── 共通スタイル
   方針: クリーン / 信頼感 / 高ユーザビリティ（全業種に馴染む・装飾を抑える）
   ・白背景 × 単色ブルー（グラデーション/過剰装飾を排し、余白とタイポで構成）
   ・フォントはOS標準でCDNゼロ・自己完結
   ────────────────────────────────────────────────────────────────────────
   ■ アクセントカラーの変え方（ブルー⇔グリーン等）
     下の :root の --accent / --accent-strong / --accent-soft / --accent-ink の
     4つを書き換えるだけで、サイト全体の色が一括で切り替わります。
     例）グリーン：
       --accent:#0f9d6a; --accent-strong:#0b7d54; --accent-soft:#e8f6f0; --accent-ink:#0a6a48;
   ========================================================================== */

:root {
  /* 下地（白基調） */
  --bg:          #ffffff;
  --bg-alt:      #f6f8fb;   /* 交互セクション・フッターの薄い面 */
  --surface:     #ffffff;   /* カード面 */
  --line:        #e7ebf0;   /* 罫線（淡） */
  --line-strong: #d6dde6;   /* 罫線（濃） */

  /* 文字（高コントラストで可読性優先） */
  --ink:      #1a2330;      /* 主要テキスト */
  --ink-soft: #4a5666;      /* 副テキスト */
  --muted:    #707d8c;      /* 補助テキスト */

  /* アクセント（単色ブルー・抑制して使用） */
  --accent:        #1d5fe0;
  --accent-strong: #1648b4;
  --accent-soft:   #eef3fd;
  --accent-ink:    #103f93;

  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1140px;
  --ease:      cubic-bezier(.22, .61, .36, 1);

  /* 影は控えめ（クリーンさ優先） */
  --shadow-sm: 0 4px 14px -8px rgba(26, 44, 74, .16);
  --shadow-md: 0 12px 30px -16px rgba(26, 44, 74, .20);

  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Shippori Mincho", serif;
  --font-sans:  "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
  --font-mono:  ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ---- リセット ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

/* ---- レイアウト共通 ------------------------------------------------------ */
.wrap { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
section { position: relative; }

/* セクション見出しのラベル（番号 + テキスト） */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: .7em;
  font-weight: 600;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 700; line-height: 1.4; letter-spacing: .01em; color: var(--ink); }

/* ---- ボタン -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.6em;
  border-radius: 10px;
  font-size: .92rem; font-weight: 700; letter-spacing: .02em;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn .arrow { transition: transform .25s var(--ease); display: inline-flex; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { color: #fff; background: var(--accent); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: var(--shadow-sm); }

.btn-ghost { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 13px 0;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--line);
}
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent);
}
.brand-mark span { font-family: var(--font-serif); font-weight: 700; font-size: 1.14rem; color: #fff; }
.brand-name { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name .org { font-size: .68rem; letter-spacing: .04em; color: var(--muted); }
.brand-name .prog { font-size: 1rem; font-weight: 700; letter-spacing: .01em; color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: .88rem; letter-spacing: .01em; color: var(--ink-soft); transition: color .2s; position: relative; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
.site-nav a.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -7px; height: 2px; width: 0; border-radius: 2px;
  background: var(--accent); transition: width .25s var(--ease);
}
.site-nav a.nav-link:hover::after { width: 100%; }

.member-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em;
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--line-strong); color: var(--accent-ink);
  background: var(--accent-soft); font-weight: 600;
}
.member-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.logout-link { font-size: .8rem; letter-spacing: .01em; color: var(--muted); font-weight: 500; }
.logout-link:hover { color: var(--accent); }

.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 6px; }

/* ==========================================================================
   ヒーロー
   ========================================================================== */
.hero { padding: clamp(52px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 68px);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  line-height: 1.32; letter-spacing: .01em; margin-bottom: 22px; font-weight: 700;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .line { display: block; }
.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.08rem); color: var(--ink-soft);
  max-width: 30em; margin-bottom: 32px; line-height: 1.95;
}
.hero-lead strong { color: var(--ink); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta {
  display: flex; gap: 36px; margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta .stat .n { font-size: 1.5rem; font-weight: 700; color: var(--ink); display: block; line-height: 1.1; }
.hero-meta .stat .l { font-size: .7rem; letter-spacing: .06em; color: var(--muted); font-family: var(--font-mono); margin-top: 4px; }

/* ヒーロー右：実データの最新コンテンツを“使える”プレビューで見せる */
.hero-feature {
  display: block; width: 100%; text-align: left; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.hero-feature:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 40px -20px rgba(26,44,74,.28); }
.hero-feature .hf-label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; color: var(--muted);
}
.hero-feature .hf-label .pin { color: var(--accent); font-weight: 600; }
.hero-feature .hf-thumb {
  position: relative; aspect-ratio: 16/9; background: var(--accent-soft);
  display: grid; place-items: center;
}
.hero-feature .hf-thumb .play {
  width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm);
  display: grid; place-items: center; color: var(--accent);
}
.hero-feature .hf-thumb .cat {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em; font-weight: 600;
  padding: 5px 10px; border-radius: 7px; background: #fff; border: 1px solid var(--line); color: var(--accent-ink);
}
.hero-feature .hf-body { padding: 16px 18px 18px; }
.hero-feature .hf-date { font-family: var(--font-mono); font-size: .68rem; color: var(--accent); font-weight: 600; }
.hero-feature .hf-title { font-size: 1.04rem; font-weight: 700; line-height: 1.5; margin: 7px 0 10px; color: var(--ink); }
.hero-feature .hf-go { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--accent); }
.hero-feature:hover .hf-go .arrow { transform: translateX(3px); }
.hero-feature .hf-go .arrow { transition: transform .25s var(--ease); display: inline-flex; }

/* ==========================================================================
   セクション共通
   ========================================================================== */
.section { padding: clamp(54px, 7vw, 92px) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 620px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 14px; line-height: 1.45; }
.section-head p { color: var(--ink-soft); font-size: 1rem; line-height: 1.9; }

/* ---- メッセージ（会員向け）── 唯一、明朝で“人の声”の温度を出す ---------- */
.message-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
}
.message-block .m-body { font-family: var(--font-serif); font-size: clamp(1.04rem, 1.8vw, 1.24rem); line-height: 2.05; letter-spacing: .02em; color: var(--ink); }
.message-block .m-body .hl { color: var(--accent); font-weight: 600; }
.message-block .m-sign { margin-top: 24px; display: flex; align-items: center; gap: 14px; }
.message-block .m-sign .av {
  width: 50px; height: 50px; border-radius: 50%; flex: none;
  background: var(--accent-soft); border: 1px solid var(--line-strong); display: grid; place-items: center;
  font-family: var(--font-serif); color: var(--accent); font-weight: 700;
}
.message-block .m-sign .who b { font-size: .98rem; font-weight: 700; color: var(--ink); }
.message-block .m-sign .who span { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }

/* ==========================================================================
   コンテンツ種別カード
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.cat-card .ico {
  width: 44px; height: 44px; border-radius: 11px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.cat-card .ico svg { width: 22px; height: 22px; }
.cat-card .num { position: absolute; top: 18px; right: 18px; font-family: var(--font-mono); font-size: .7rem; color: var(--line-strong); font-weight: 600; }
.cat-card h3 { font-size: 1.02rem; margin-bottom: 7px; font-weight: 700; }
.cat-card p { font-size: .84rem; color: var(--muted); line-height: 1.75; }

/* ==========================================================================
   コンテンツカード（最新／一覧で共通）
   ========================================================================== */
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.content-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
  text-align: left; color: inherit;
}
.content-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }

.cc-thumb {
  position: relative; aspect-ratio: 16/9; background: var(--accent-soft);
  display: grid; place-items: center;
}
.cc-thumb .play {
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  color: var(--accent); transition: transform .2s var(--ease), background .2s, color .2s;
}
.content-card:hover .cc-thumb .play { background: var(--accent); color: #fff; }
.cc-thumb .badge {
  position: absolute; top: 11px; left: 11px;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .04em;
  padding: 5px 9px; border-radius: 7px;
  background: #fff; border: 1px solid var(--line); color: var(--accent-ink); font-weight: 600;
}
.cc-thumb .pdf-flag {
  position: absolute; bottom: 11px; right: 11px;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .04em; font-weight: 700;
  padding: 4px 8px; border-radius: 6px;
  background: var(--accent); color: #fff;
}
.cc-body { padding: 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.cc-date { font-family: var(--font-mono); font-size: .68rem; color: var(--accent); font-weight: 600; }
.cc-body h3 { font-size: 1.02rem; line-height: 1.55; font-weight: 700; }
.cc-body p { font-size: .85rem; color: var(--muted); line-height: 1.75; flex: 1; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.cc-tags span { font-size: .68rem; color: var(--ink-soft); padding: 3px 9px; border-radius: 6px; background: var(--bg-alt); border: 1px solid var(--line); }
.cc-foot { margin-top: 4px; display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: .82rem; font-weight: 700; }
.cc-foot .arrow { transition: transform .2s var(--ease); display: inline-flex; }
.content-card:hover .cc-foot .arrow { transform: translateX(3px); }

/* ==========================================================================
   一覧ページ：月セクション
   ========================================================================== */
.month-block { padding-top: clamp(32px, 4vw, 48px); }
.month-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.month-head .my { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 700; letter-spacing: .01em; color: var(--ink); }
.month-head .ym { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; color: var(--accent); font-weight: 600; }
.month-head .count { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); margin-left: auto; }
.month-head .rule { flex-basis: 100%; height: 1px; background: var(--line); margin-top: 4px; }

.list-filter { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 6px; }
.chip {
  font-size: .8rem; letter-spacing: .01em; font-weight: 600;
  padding: 8px 15px; border-radius: 8px;
  border: 1px solid var(--line-strong); color: var(--ink-soft);
  background: var(--surface); transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ==========================================================================
   モーダル（コンテンツ詳細）
   ========================================================================== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16, 28, 48, .5); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 12px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  width: min(800px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius);
  transform: translateY(14px); transition: transform .3s var(--ease);
  box-shadow: 0 30px 70px -30px rgba(16,28,48,.5);
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-video { aspect-ratio: 16/9; background: #0b1320; position: relative; }
.modal-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-video .placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; place-items: center; gap: 12px; text-align: center;
  background: var(--accent); color: #fff;
}
.modal-video .placeholder .pi { width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); display: grid; place-items: center; color: #fff; }
.modal-video .placeholder small { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: rgba(255,255,255,.78); }
.modal-body { padding: 24px clamp(20px, 4vw, 34px) 30px; }
.modal-body .m-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; flex-wrap: wrap; }
.modal-body .m-meta .badge { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; padding: 5px 10px; border-radius: 7px; background: var(--accent-soft); border: 1px solid var(--line); color: var(--accent-ink); font-weight: 600; }
.modal-body .m-meta .date { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.modal-body h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.5; margin-bottom: 14px; font-weight: 700; }
.modal-body .desc { color: var(--ink-soft); font-size: .96rem; margin-bottom: 22px; line-height: 1.9; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.modal-close {
  position: absolute; top: 13px; right: 13px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.95); border: 1px solid var(--line); color: var(--ink);
  display: grid; place-items: center; transition: all .2s;
}
.modal-close:hover { background: var(--accent); color: #fff; border-color: transparent; }

/* ==========================================================================
   ログインゲート（見た目だけのモック）
   ========================================================================== */
.gate {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 24px;
  background: var(--bg-alt);
  transition: opacity .4s var(--ease), visibility .4s;
}
.gate.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-inner {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 40px);
  box-shadow: var(--shadow-md);
}
.gate-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.gate-brand .brand-mark { width: 44px; height: 44px; }
.gate-brand .gb-text .org { font-size: .66rem; letter-spacing: .04em; color: var(--muted); }
.gate-brand .gb-text .prog { font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.gate h1 { font-size: 1.4rem; margin-bottom: 8px; font-weight: 700; }
.gate .gate-lead { font-size: .88rem; color: var(--muted); margin-bottom: 24px; line-height: 1.8; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: .8rem; letter-spacing: .02em; color: var(--ink-soft); margin-bottom: 7px; font-weight: 600; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line-strong);
  color: var(--ink); font-family: var(--font-sans); font-size: 1rem; letter-spacing: .01em;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,95,224,.12); }
.field input::placeholder { color: #aab3bf; }
.gate .btn-primary { width: 100%; justify-content: center; margin-top: 6px; padding: .95em; }
.gate-note {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .74rem; color: var(--muted); line-height: 1.75; text-align: center;
}
.gate-note .mock-tag {
  display: inline-block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em;
  color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 3px 9px; margin-bottom: 8px; font-weight: 600;
}
.gate-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: .8rem; color: var(--muted); }
.gate-row a { color: var(--accent); }
.gate-row label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.gate-row input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }

/* ==========================================================================
   プロフィール（太郎アゲアゲ）
   ========================================================================== */
.profile-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.profile-photo {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--line); overflow: hidden;
  display: grid; place-items: center;
}
.profile-photo .ph-mark { font-family: var(--font-serif); font-size: 4rem; color: var(--accent); opacity: .5; }
.profile-photo .ph-note { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .04em; color: var(--accent-ink); opacity: .65; }
.profile-info .eyebrow { margin-bottom: 16px; }
.profile-info h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 5px; font-weight: 700; }
.profile-info .handle { font-family: var(--font-mono); font-size: .9rem; color: var(--accent); margin-bottom: 20px; display: inline-block; font-weight: 600; }
.profile-info p { color: var(--ink-soft); margin-bottom: 22px; max-width: 34em; line-height: 1.95; }
.profile-info p strong { color: var(--ink); }
.profile-stats { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.profile-stats .ps .n { font-size: 1.45rem; font-weight: 700; color: var(--ink); display: block; line-height: 1.1; }
.profile-stats .ps .l { font-size: .7rem; color: var(--muted); font-family: var(--font-mono); margin-top: 3px; }

/* ==========================================================================
   CTA 帯（シンプルな単色パネル）
   ========================================================================== */
.cta-band { padding: clamp(50px, 6vw, 80px) 0; }
.cta-band .panel {
  border-radius: var(--radius); padding: clamp(38px, 5vw, 60px) clamp(26px, 5vw, 54px);
  background: var(--accent); text-align: center;
}
.cta-band h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 14px; color: #fff; font-weight: 700; }
.cta-band h2 .accent-text { color: #cfe0ff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 32em; margin: 0 auto 28px; line-height: 1.9; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .btn-primary { background: #fff; color: var(--accent-strong); }
.cta-band .btn-primary:hover { background: #f0f4ff; color: var(--accent-strong); }

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: clamp(44px, 6vw, 64px) 0 32px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: .84rem; color: var(--muted); max-width: 28em; line-height: 1.85; }
.footer-col h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: var(--ink); text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.footer-col a, .footer-col span { display: block; font-size: .85rem; color: var(--ink-soft); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-bottom small { font-size: .74rem; color: var(--muted); }
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .legal-links a { font-size: .76rem; color: var(--ink-soft); }
.footer-bottom .legal-links a:hover { color: var(--accent); }

/* ==========================================================================
   法務ページ（文書レイアウト）
   ========================================================================== */
.doc-hero { padding: clamp(48px, 7vw, 80px) 0 clamp(26px, 4vw, 40px); }
.doc-hero .eyebrow { margin-bottom: 15px; }
.doc-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: .01em; font-weight: 700; }
.doc-hero .updated { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); margin-top: 12px; }
.doc-body { padding-bottom: clamp(50px, 7vw, 80px); max-width: 800px; }
.doc-note {
  font-size: .84rem; color: var(--ink-soft); background: var(--accent-soft);
  border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
  padding: 15px 17px; margin-bottom: 36px; line-height: 1.85;
}
.doc-note b { color: var(--accent-ink); }
.doc-section { margin-bottom: 32px; }
.doc-section h2 { font-size: 1.2rem; margin-bottom: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 700; }
.doc-section h3 { font-size: 1rem; margin: 16px 0 7px; color: var(--accent); font-weight: 700; }
.doc-section p, .doc-section li { color: var(--ink-soft); font-size: .92rem; line-height: 1.95; }
.doc-section ul, .doc-section ol { padding-left: 1.3em; margin: 8px 0; }
.doc-section li { margin-bottom: 6px; }
.todo { color: #c2410c; font-family: var(--font-mono); font-size: .82rem; font-weight: 700; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 15px; border: 1px solid var(--line); font-size: .88rem; vertical-align: top; }
.spec-table th { width: 33%; background: var(--bg-alt); color: var(--ink); font-weight: 700; }
.spec-table td { color: var(--ink-soft); }

/* ==========================================================================
   会員エリア導入バー（ログイン直後のウェルカム）
   ========================================================================== */
.welcome-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; margin: 18px 0 0;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
}
.welcome-bar .wb-ico { color: var(--accent); display: inline-flex; }
.welcome-bar p { font-size: .88rem; color: var(--ink-soft); }
.welcome-bar p b { color: var(--accent-ink); font-weight: 700; }

/* ==========================================================================
   スクロール演出（控えめなフェードアップのみ）
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.reveal.d4 { transition-delay: .24s; }

@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero .anim { opacity: 0; animation: riseIn .7s var(--ease) forwards; }
.hero .anim.a1 { animation-delay: .05s; }
.hero .anim.a2 { animation-delay: .14s; }
.hero .anim.a3 { animation-delay: .23s; }
.hero .anim.a4 { animation-delay: .32s; }
.hero .anim.a5 { animation-delay: .41s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero .anim { opacity: 1; }
}

/* ==========================================================================
   レスポンシブ（モバイルファースト調整）
   ========================================================================== */
@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-feature { max-width: 440px; margin-top: 8px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-photo { max-width: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .wrap { width: min(var(--maxw), 100% - 32px); }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: 20px 24px 24px;
  }
  .nav-toggle { display: grid; place-items: center; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .content-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band .hero-cta, .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

@media (max-width: 420px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* 資料のみの回：モーダル内でPDFをそのまま閲覧できるように高さを確保 */
.modal-video.is-pdf { aspect-ratio: auto; height: 82vh; background: #5b606b; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.modal-video.is-pdf iframe { width: 100%; height: 100%; border: 0; display: block; }
/* PDF全ページ画像を縦スクロール表示（幅にフィット・見切れなし） */
.modal-video.is-pdf .pdf-pages { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px; box-sizing: border-box; width: 100%; }
.modal-video.is-pdf .pdf-pages img { width: 100%; max-width: 100%; height: auto; display: block; border-radius: 3px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); }

/* PDF閲覧モード：モーダルを画面いっぱいに近づけてPDFを大きく表示（画面幅−余白で正確に収める） */
.modal.pdf-mode { width: min(1400px, calc(100vw - 24px)); max-height: 96vh; }
.modal.pdf-mode .modal-video.is-pdf { height: 84vh; }
.modal.pdf-mode .modal-body { padding: 14px clamp(16px, 3vw, 28px) 20px; }

/* スマホ横向き（低い縦幅）：ビューアを最優先でほぼ全画面に */
@media (orientation: landscape) and (max-height: 600px) {
  .modal-backdrop { padding: 6px; }
  .modal.pdf-mode { width: min(1400px, calc(100vw - 12px)); max-height: 98vh; }
  .modal.pdf-mode .modal-video.is-pdf { height: 90vh; }
  .modal.pdf-mode .modal-body { display: none; } /* 横画面は資料表示を最優先 */
}
