@charset "UTF-8";
/* ==========================================================================
   SNS投稿ボード（Post Board）— モックアップ共通スタイル
   見た目確認用。データはすべてダミー。
   ========================================================================== */

:root {
  /* 面 */
  --bg:        #F5F4F0;
  --surface:   #FFFFFF;
  --surface-2: #FAFAF7;
  --surface-3: #F0EFEA;

  /* 文字 */
  --ink:    #15171C;
  --ink-2:  #444A54;
  --muted:  #838A95;

  /* 罫 */
  --line:      #E4E2DA;
  --line-soft: #EDEBE4;

  /* アクセント */
  --brand:   #F5D655;   /* TEGOU イエロー */
  --brand-d: #C9A82A;
  --action:  #17181C;   /* 主ボタン */

  --ok:      #10714E;  --ok-bg:   #E7F3ED;  --ok-line: #BFDFD0;
  --alert:   #A93F0B;  --alert-bg:#FCF0E7;  --alert-line:#F0D3BC;
  --info:    #24538F;  --info-bg: #EAF0F9;  --info-line:#CBDAEE;
  --wait:    #6A5AA8;  --wait-bg: #F0EDFA;  --wait-line:#DAD3F0;

  /* 媒体 */
  --ig:     #D22E6E;
  --x:      #0F1419;
  --note:   #1E9E86;
  --tiktok: #111214;

  /* かたち */
  --r:    14px;
  --r-sm: 9px;
  --r-xs: 6px;
  --sh:      0 1px 2px rgba(20,22,26,.05), 0 10px 26px -16px rgba(20,22,26,.22);
  --sh-lift: 0 2px 4px rgba(20,22,26,.06), 0 20px 40px -20px rgba(20,22,26,.28);

  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
          "Yu Gothic Medium", "Yu Gothic", "Noto Sans JP", sans-serif;
  --mono: "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.45; letter-spacing: .005em; margin: 0; font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--info);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- デモ帯 ---------- */
.demobar {
  background: repeating-linear-gradient(-45deg, #2A2B30 0 12px, #232429 12px 24px);
  color: #F2EFE4;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-align: center;
  padding: 5px 12px;
}
.demobar b { color: var(--brand); font-weight: 700; }

/* ---------- ヘッダー ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1120px; margin: 0 auto;
  padding: 11px 20px;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--action);
  display: grid; place-items: center;
  color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: 0;
}
.brand-name { font-size: 14.5px; font-weight: 700; letter-spacing: .02em; }
.brand-name small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; letter-spacing: .08em; line-height: 1.3; }

.proj-chip {
  margin-left: 4px;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 12px 4px 6px;
  font-size: 12.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proj-chip .avatar { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg,#3A4B6B,#1F2A3D); color:#fff; display:grid; place-items:center; font-size:9px; font-weight:700; flex-shrink:0; }
.topbar-sp { flex: 1; }
.who { font-size: 12px; color: var(--muted); text-align: right; line-height: 1.4; white-space: nowrap; }
.who b { display: block; color: var(--ink-2); font-size: 12.5px; }

/* ---------- ナビ ---------- */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 49px; z-index: 55;
}
.nav-in {
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  display: flex; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
}
.nav-in::-webkit-scrollbar { display: none; }
.nav a {
  position: relative;
  padding: 12px 13px 11px;
  font-size: 13.5px; font-weight: 600;
  color: var(--muted); text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  display: flex; align-items: center; gap: 6px;
}
.nav a:hover { color: var(--ink-2); }
.nav a[aria-current] { color: var(--ink); border-bottom-color: var(--action); }
.nav .n-badge {
  background: var(--alert); color: #fff;
  font-size: 10.5px; font-weight: 700;
  min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 100px; display: grid; place-items: center; line-height: 1;
}

/* ---------- レイアウト ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 26px 20px 80px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 21px; letter-spacing: .01em; }
.page-head .lead { color: var(--ink-2); font-size: 13.5px; margin: 5px 0 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--muted); margin-bottom: 6px; }

.sec { margin-top: 30px; }
.sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.sec-head h2 { font-size: 15.5px; }
.sec-head .note { font-size: 12px; color: var(--muted); }
.sec-head .more { margin-left: auto; font-size: 12.5px; color: var(--info); text-decoration: none; font-weight: 600; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
}
.card-pad { padding: 18px 20px; }
.card-head {
  padding: 14px 20px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.card-head h2, .card-head h3 { font-size: 14.5px; }
.card-head .sub { font-size: 12px; color: var(--muted); }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line-soft); background: var(--surface-2); border-radius: 0 0 var(--r) var(--r); font-size: 12.5px; color: var(--muted); }

.cols { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-side { grid-template-columns: minmax(0,1fr) 320px; align-items: start; }
.cols-side-l { grid-template-columns: 236px minmax(0,1fr); }

/* ---------- 部品: ピル・バッジ ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; line-height: 1;
  padding: 5px 9px; border-radius: 100px;
  border: 1px solid transparent; white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-todo   { background: var(--alert-bg); color: var(--alert); border-color: var(--alert-line); }
.p-wait   { background: var(--wait-bg);  color: var(--wait);  border-color: var(--wait-line); }
.p-work   { background: var(--info-bg);  color: var(--info);  border-color: var(--info-line); }
.p-ok     { background: var(--ok-bg);    color: var(--ok);    border-color: var(--ok-line); }
.p-done   { background: var(--surface-3);color: var(--ink-2); border-color: var(--line); }
.p-plain  { background: var(--surface-2);color: var(--muted); border-color: var(--line); }

.sns {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; line-height: 1;
  padding: 4px 9px 4px 7px; border-radius: 100px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
  white-space: nowrap;
}
.sns i { width: 13px; height: 13px; border-radius: 4px; display: block; flex-shrink: 0; }
.sns-ig i     { background: linear-gradient(45deg,#F9CE34 4%,#EE2A7B 52%,#6228D7 100%); }
.sns-x i      { background: var(--x); border-radius: 3px; }
.sns-note i   { background: var(--note); border-radius: 50%; }
.sns-tiktok i { background: linear-gradient(120deg,#25F4EE 0 45%,#111 45% 55%,#FE2C55 55%); }

.tag {
  display: inline-block; font-size: 11.5px; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-xs); padding: 3px 8px; line-height: 1.5;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  padding: 10px 18px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; text-decoration: none; line-height: 1.4;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { box-shadow: var(--sh); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--action); border-color: var(--action); color: #fff; }
.btn-approve { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-warn { background: var(--surface); border-color: var(--alert-line); color: var(--alert); }
.btn-block { width: 100%; }
.btn-sm { font-size: 12.5px; padding: 7px 14px; }
.btn-xs { font-size: 11.5px; padding: 5px 11px; font-weight: 600; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn-row { display: flex; gap: 9px; flex-wrap: wrap; }

/* ---------- 要対応カード ---------- */
.todo-wrap { display: grid; gap: 12px; }
.todo {
  display: flex; gap: 15px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--alert-line);
  border-left: 4px solid var(--alert);
  border-radius: var(--r);
  padding: 14px 18px 14px 16px;
  box-shadow: var(--sh);
  text-decoration: none;
}
.todo:hover { box-shadow: var(--sh-lift); }
.todo.is-wait { border-color: var(--wait-line); border-left-color: var(--wait); }
.todo-body { flex: 1; min-width: 0; }
.todo-kicker { font-size: 11.5px; font-weight: 700; color: var(--alert); letter-spacing: .06em; }
.todo.is-wait .todo-kicker { color: var(--wait); }
.todo-title { font-size: 15px; font-weight: 700; margin: 3px 0 4px; }
.todo-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.todo-due { text-align: right; flex-shrink: 0; }
.todo-due b { display: block; font-size: 19px; line-height: 1.1; color: var(--alert); }
.todo-due span { font-size: 11px; color: var(--muted); }
.todo .arrow { color: var(--muted); font-size: 18px; flex-shrink: 0; }

/* ---------- 進行バー ---------- */
.progress { display: flex; height: 10px; border-radius: 100px; overflow: hidden; background: var(--surface-3); }
.progress i { display: block; height: 100%; }
.pg-done { background: var(--ok); }
.pg-ok   { background: #6FBF9B; }
.pg-work { background: var(--info); }
.pg-wait { background: var(--wait); }
.pg-todo { background: var(--brand); }
.pg-none { background: var(--surface-3); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 11px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: block; }

.quota { display: flex; align-items: baseline; gap: 8px; }
.quota b { font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.quota span { font-size: 12.5px; color: var(--muted); }

/* ---------- ミニカレンダー ---------- */
.cal-mini { width: 100%; border-collapse: collapse; }
.cal-mini th { font-size: 10.5px; color: var(--muted); font-weight: 600; padding-bottom: 6px; }
.cal-mini td { text-align: center; padding: 2px; }
.cal-mini .d {
  position: relative; width: 100%; aspect-ratio: 1/1;
  display: grid; place-items: center; border-radius: 8px;
  font-size: 12px; color: var(--ink-2);
}
.cal-mini .d.out { color: #C6C7C2; }
.cal-mini .d.today { background: var(--action); color: #fff; font-weight: 700; }
.cal-mini .d .dots { position: absolute; bottom: 3px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.cal-mini .d .dots i { width: 4px; height: 4px; border-radius: 50%; display: block; }
.dot-ig { background: var(--ig); } .dot-x { background: var(--x); }
.dot-note { background: var(--note); } .dot-tt { background: #25C6D6; }

/* ---------- 予定リスト ---------- */
.plan-list { list-style: none; margin: 0; padding: 0; }
.plan-list li { display: flex; gap: 13px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.plan-list li:first-child { border-top: 0; }
.plan-date { width: 52px; flex-shrink: 0; text-align: center; }
.plan-date b { display: block; font-size: 17px; line-height: 1.1; }
.plan-date span { font-size: 10.5px; color: var(--muted); }
.plan-body { flex: 1; min-width: 0; }
.plan-body .t { font-size: 13.5px; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-body .m { font-size: 11.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 2px; }

/* ---------- タイムライン ---------- */
.tl { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; }
.tl::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl li { position: relative; padding: 7px 0; font-size: 13px; }
.tl li::before {
  content: ""; position: absolute; left: -18px; top: 14px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line);
}
.tl li.hi::before { border-color: var(--ok); background: var(--ok); }
.tl time { display: block; font-size: 11px; color: var(--muted); }

/* ---------- 絞り込み ---------- */
.snstabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.snstabs::-webkit-scrollbar { display: none; }
.snstab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.snstab i { width: 13px; height: 13px; border-radius: 4px; display: block; }
.snstab .c { font-size: 11px; color: var(--muted); font-weight: 700; }
.snstab[aria-selected="true"] { background: var(--action); border-color: var(--action); color: #fff; }
.snstab[aria-selected="true"] .c { color: rgba(255,255,255,.6); }
.snstab.off { opacity: .42; pointer-events: none; }

.filters { display: grid; gap: 10px; }
.frow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.frow > .flabel { font-size: 11.5px; font-weight: 700; color: var(--muted); width: 62px; flex-shrink: 0; letter-spacing: .04em; }
.chip {
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  padding: 5px 12px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  cursor: pointer; line-height: 1.5;
}
.chip:hover { border-color: #CFCDC4; }
.chip[aria-pressed="true"] { background: #22242A; border-color: #22242A; color: #fff; }
.chip .x { margin-left: 5px; opacity: .6; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.toolbar .count { font-size: 12.5px; color: var(--muted); }
.toolbar .sp { flex: 1; }
.select {
  font-family: inherit; font-size: 12.5px; padding: 7px 30px 7px 12px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--surface);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 11px) 50%;
  background-size: 4px 4px, 4px 4px; background-repeat: no-repeat;
  color: var(--ink-2); cursor: pointer;
}
.viewtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; background: var(--surface); }
.viewtoggle button { font-family: inherit; font-size: 12px; font-weight: 600; padding: 7px 14px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.viewtoggle button[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); }

.searchbox { position: relative; flex: 1; min-width: 180px; max-width: 320px; }
.searchbox input {
  width: 100%; font-family: inherit; font-size: 13px;
  padding: 8px 14px 8px 34px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.searchbox::before {
  content: ""; position: absolute; left: 13px; top: 50%; width: 11px; height: 11px;
  margin-top: -7px; border: 1.6px solid var(--muted); border-radius: 50%;
}
.searchbox::after {
  content: ""; position: absolute; left: 22px; top: 50%; width: 6px; height: 1.6px;
  background: var(--muted); transform: rotate(45deg); margin-top: 2px;
}

/* ---------- 投稿カード ---------- */
.postgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px,1fr)); gap: 16px; }
.pcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--sh); text-decoration: none; display: flex; flex-direction: column;
  transition: box-shadow .16s ease, transform .16s ease;
}
.pcard:hover { box-shadow: var(--sh-lift); transform: translateY(-2px); }
.pcard-thumb { position: relative; background: var(--surface-3); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.pcard-thumb .stack { position: absolute; right: 9px; top: 9px; background: rgba(0,0,0,.55); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 100px; backdrop-filter: blur(4px); }
.pcard-thumb .flag { position: absolute; left: 0; top: 12px; background: var(--alert); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 9px 3px 8px; border-radius: 0 100px 100px 0; letter-spacing: .04em; }
.pcard-thumb .flag.wait { background: var(--wait); }
.pcard-body { padding: 13px 15px 15px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.pcard-no { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); font-family: var(--mono); }
.pcard-title { font-size: 14.5px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.pcard-aim { font-size: 12px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.pcard-date { font-size: 11.5px; color: var(--muted); margin-left: auto; }

/* 一覧（リスト表示） */
.ptable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ptable th {
  text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted);
  padding: 9px 12px; border-bottom: 1px solid var(--line); letter-spacing: .04em; white-space: nowrap;
}
.ptable td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.ptable tr:hover td { background: var(--surface-2); }
.ptable .t { font-weight: 600; }
.ptable .t small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.ptable .num { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* ---------- ページャー ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 26px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 34px; height: 34px; padding: 0 10px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--ink-2);
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.pager a:hover { border-color: #CFCDC4; }
.pager .cur { background: var(--action); border-color: var(--action); color: #fff; }
.pager .dots { border: 0; background: transparent; color: var(--muted); }
.pager .off { opacity: .35; pointer-events: none; }
.pager-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 9px; }

/* ==========================================================================
   スライド（カルーセルの1枚）— 基本 320×400（4:5）
   ========================================================================== */
.slide {
  width: 320px; height: 400px; position: relative; overflow: hidden;
  background: #fff; color: #14263F; flex-shrink: 0;
  font-feature-settings: "palt";
}
.slide .pg { position: absolute; right: 14px; top: 12px; font-size: 10px; font-weight: 700; letter-spacing: .1em; opacity: .55; }
.slide .logo {
  position: absolute; right: 14px; bottom: 13px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .16em; opacity: .8;
}
.slide .in { position: absolute; inset: 0; padding: 30px 26px; display: flex; flex-direction: column; }

/* 表紙（濃色・写真の上） */
.slide--cover { background: #0E2B52; color: #fff; }
.slide--cover .kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--brand); margin-bottom: 12px; }
.slide--cover h3 { font-size: 27px; line-height: 1.42; font-weight: 800; letter-spacing: .01em; }
.slide--cover .sub { margin-top: auto; font-size: 12.5px; line-height: 1.7; opacity: .85; }
.slide--cover .rule { width: 44px; height: 3px; background: var(--brand); margin: 16px 0 0; }

/* 本編（白地） */
.slide--body { background: #fff; }
.slide--body h3 { font-size: 19px; line-height: 1.55; color: #0E2B52; }
.slide--body .rule { width: 34px; height: 3px; background: var(--brand); margin: 12px 0 14px; }
.slide--body ol, .slide--body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.slide--body li { font-size: 13px; line-height: 1.6; color: #2B3A50; display: flex; gap: 9px; }
.slide--body li b { color: var(--brand-d); font-weight: 800; flex-shrink: 0; font-size: 12.5px; }
.slide--body .lead { font-size: 13px; line-height: 1.85; color: #2B3A50; }

/* CTA */
.slide--cta { background: #fff; }
.slide--cta .in { justify-content: center; align-items: center; text-align: center; }
.slide--cta h3 { font-size: 19px; color: #0E2B52; line-height: 1.6; }
.slide--cta .hr { width: 56px; height: 1px; background: #C9AE55; margin: 16px 0; }
.slide--cta .info { font-size: 11.5px; line-height: 2; color: #4E5C70; }
.slide--cta .mark { width: 40px; height: 40px; border-radius: 11px; background: #0E2B52; color: var(--brand); display: grid; place-items: center; font-size: 15px; font-weight: 800; margin-bottom: 16px; }

/* 写真スライド */
.slide--photo { color: #fff; }
.slide--photo .ph { position: absolute; inset: 0; }
.slide--photo .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,40,.05) 30%, rgba(10,22,40,.82) 100%); }
.slide--photo .in { justify-content: flex-end; }
.slide--photo h3 { font-size: 22px; line-height: 1.45; font-weight: 800; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.slide--photo .sub { font-size: 12px; opacity: .9; margin-top: 8px; }
.slide--photo .band { position: absolute; left: 0; right: 0; bottom: 0; height: 33%; background: rgba(14,43,82,.72); }

/* 縮小表示 */
.scale { position: relative; overflow: hidden; flex-shrink: 0; }
.scale > .slide { transform: scale(var(--s)); transform-origin: 0 0; }

/* ==========================================================================
   端末プレビュー
   ========================================================================== */
.phone {
  width: 344px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: 30px; padding: 12px;
  box-shadow: 0 2px 6px rgba(20,22,26,.06), 0 30px 60px -30px rgba(20,22,26,.45);
}
.phone-screen { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line-soft); }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 7px 14px 4px; font-size: 10.5px; font-weight: 700; color: #333; }
.phone-status .bars { display: flex; gap: 3px; align-items: flex-end; }
.phone-status .bars i { display: block; width: 3px; background: #333; border-radius: 1px; }

/* Instagram */
.ig-head { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-bottom: 1px solid #EFEFEF; }
.ig-ava { width: 30px; height: 30px; border-radius: 50%; padding: 2px; background: linear-gradient(45deg,#F9CE34,#EE2A7B 55%,#6228D7); flex-shrink: 0; }
.ig-ava span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #0E2B52; color: #fff; font-size: 9px; font-weight: 800; border: 2px solid #fff; }
.ig-name { font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.ig-name small { display: block; font-size: 10.5px; color: #8A8A8E; font-weight: 400; }
.ig-more { margin-left: auto; color: #8A8A8E; letter-spacing: 1px; font-size: 14px; }

.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #F2F2F2; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.carousel .scale { width: 320px; height: 400px; }

.ig-dots { display: flex; justify-content: center; gap: 5px; padding: 9px 0 4px; }
.ig-dots i { width: 5px; height: 5px; border-radius: 50%; background: #C7C7CC; display: block; transition: background .2s; }
.ig-dots i.on { background: #0095F6; }

.ig-actions { display: flex; align-items: center; gap: 14px; padding: 4px 12px 2px; color: #262626; }
.ig-actions .sp { flex: 1; }
.ig-ico { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.ig-likes { padding: 2px 12px; font-size: 12px; font-weight: 700; }
.ig-cap { padding: 2px 12px 12px; font-size: 12px; line-height: 1.65; color: #262626; white-space: pre-wrap; }
.ig-cap b { font-weight: 700; }
.ig-cap .more { color: #8A8A8E; cursor: pointer; }
.ig-cap .tags { color: #00376B; }
.ig-fold { display: block; max-height: 3.3em; overflow: hidden; position: relative; }

/* プロフィールグリッド */
.ig-profile { padding: 14px 12px 10px; }
.ig-profile-top { display: flex; gap: 16px; align-items: center; }
.ig-profile-top .ava { width: 62px; height: 62px; border-radius: 50%; background: #0E2B52; color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 800; flex-shrink: 0; }
.ig-stats { display: flex; gap: 20px; flex: 1; }
.ig-stats div { text-align: center; }
.ig-stats b { display: block; font-size: 14px; }
.ig-stats span { font-size: 11px; color: #8A8A8E; }
.ig-bio { font-size: 11.5px; line-height: 1.6; margin-top: 10px; color: #262626; }
.grid9 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 12px; }
.grid9 .cell { position: relative; overflow: hidden; aspect-ratio: 1/1; background: var(--surface-3); }
.grid9 .cell .scale { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.grid9 .cell .mark { position: absolute; right: 4px; top: 4px; color: #fff; font-size: 9px; opacity: .95; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.grid9 .cell.new::after { content: "今回"; position: absolute; left: 0; bottom: 0; background: var(--brand); color: #15171C; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 0 6px 0 0; }

/* X */
.x-post { padding: 13px 14px; background: #fff; }
.x-row { display: flex; gap: 11px; }
.x-ava { width: 38px; height: 38px; border-radius: 50%; background: #0E2B52; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.x-body { flex: 1; min-width: 0; }
.x-name { font-size: 13.5px; font-weight: 700; color: #0F1419; }
.x-name span { font-weight: 400; color: #536471; font-size: 13px; }
.x-text { font-size: 14px; line-height: 1.55; color: #0F1419; margin-top: 2px; white-space: pre-wrap; }
.x-text .mention, .x-text .tag { color: #1D9BF0; }
.x-media { margin-top: 11px; border: 1px solid #EFF3F4; border-radius: 15px; overflow: hidden; }
.x-actions { display: flex; justify-content: space-between; margin-top: 11px; color: #536471; font-size: 12px; max-width: 300px; }
.x-actions span { display: inline-flex; align-items: center; gap: 5px; }
.x-thread { border-left: 2px solid #EFF3F4; margin-left: 18px; padding-left: 20px; }
.x-count { font-size: 11px; color: #536471; text-align: right; margin-top: 6px; }
.x-count.over { color: #F4212E; font-weight: 700; }

/* note */
.note-head { padding: 18px 18px 0; }
.note-eyecatch { aspect-ratio: 16/9; background: #0E2B52; position: relative; overflow: hidden; display: grid; place-items: center; padding: 18px; }
.note-eyecatch h4 { color: #fff; font-size: 17px; line-height: 1.5; text-align: center; font-weight: 800; position: relative; }
.note-title { font-size: 19px; line-height: 1.5; font-weight: 700; padding: 16px 18px 8px; color: #131313; }
.note-byline { display: flex; align-items: center; gap: 8px; padding: 0 18px 14px; font-size: 11.5px; color: #7A7A7A; }
.note-byline .ava { width: 26px; height: 26px; border-radius: 50%; background: #0E2B52; color: #fff; display: grid; place-items: center; font-size: 9px; font-weight: 800; }
.note-body { padding: 0 18px 18px; font-size: 13px; line-height: 1.95; color: #333; }
.note-body h5 { font-size: 15px; margin: 20px 0 8px; color: #131313; }
.note-body p { margin: 0 0 14px; }
.note-toc { background: #F7F7F7; border-radius: 8px; padding: 12px 14px; font-size: 12px; margin: 14px 0; }
.note-toc b { display: block; font-size: 11px; color: #7A7A7A; margin-bottom: 6px; letter-spacing: .08em; }
.note-toc ol { margin: 0; padding-left: 18px; color: #444; }

/* TikTok */
.tt { position: relative; background: #000; aspect-ratio: 9/16; overflow: hidden; }
.tt .ph { position: absolute; inset: 0; }
.tt .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0 18%, rgba(0,0,0,0) 40% 62%, rgba(0,0,0,.72) 100%); }
.tt-caption { position: absolute; left: 14px; right: 66px; bottom: 18px; color: #fff; }
.tt-caption .u { font-size: 13px; font-weight: 700; }
.tt-caption .t { font-size: 12px; line-height: 1.6; margin-top: 5px; }
.tt-telop {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%);
  width: 84%; text-align: center; color: #fff; font-size: 21px; font-weight: 800;
  line-height: 1.5; text-shadow: 0 2px 8px rgba(0,0,0,.65); letter-spacing: .01em;
}
.tt-telop em { font-style: normal; background: var(--brand); color: #111; padding: 0 6px; border-radius: 4px; }
.tt-rail { position: absolute; right: 12px; bottom: 24px; display: grid; gap: 16px; justify-items: center; color: #fff; font-size: 10px; }
.tt-rail i { display: block; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.16); margin-bottom: 3px; }
.tt-time { position: absolute; left: 14px; top: 14px; background: rgba(0,0,0,.5); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 100px; }

/* プレビュー切替 */
.previewbar { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.previewbar button {
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  padding: 6px 14px; border-radius: 100px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.previewbar button[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: #fff; }
.preview-note { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 12px; }

/* ---------- 本文コピー欄 ---------- */
.copybox { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); }
.copybox-head { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-bottom: 1px solid var(--line-soft); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.copybox-head .sp { flex: 1; }
.copybox-head .len { font-size: 11px; color: var(--muted); font-weight: 500; }
.copybox pre {
  margin: 0; padding: 14px; font-family: var(--sans); font-size: 13px; line-height: 1.85;
  white-space: pre-wrap; word-break: break-word; color: var(--ink);
}
.copybox pre.tags { color: #1F4E86; font-size: 12.5px; line-height: 1.9; }

/* ---------- 判断パネル ---------- */
.decide { position: sticky; top: 108px; }
.decide-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
.decide-top { padding: 15px 18px; background: linear-gradient(180deg,#FFFCF0,#fff); border-bottom: 1px solid var(--line-soft); }
.decide-top h3 { font-size: 14.5px; }
.decide-top p { margin: 5px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.7; }
.decide-body { padding: 16px 18px; display: grid; gap: 12px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.check-list li { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.check-list li::before { content: ""; width: 15px; height: 15px; border: 1.5px solid #C3C1B8; border-radius: 4px; flex-shrink: 0; margin-top: 3px; }
.decide-foot { padding: 12px 18px 16px; border-top: 1px solid var(--line-soft); background: var(--surface-2); font-size: 11.5px; color: var(--muted); line-height: 1.7; }

.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
.kv th { text-align: left; font-weight: 600; color: var(--muted); padding: 8px 0; width: 92px; vertical-align: top; font-size: 12.5px; }
.kv td { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.kv tr:last-child td, .kv tr:last-child th { border-bottom: 0; }

/* ---------- 案の比較 ---------- */
.options { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.opt {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--sh); display: flex; flex-direction: column;
  transition: box-shadow .16s, border-color .16s, transform .16s;
}
.opt:hover { box-shadow: var(--sh-lift); transform: translateY(-2px); }
.opt.is-chosen { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg), var(--sh); }
.opt.is-out { opacity: .55; }
.opt-label {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 15px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2);
  font-size: 12.5px; font-weight: 700;
}
.opt-label .ab { width: 22px; height: 22px; border-radius: 7px; background: var(--action); color: #fff; display: grid; place-items: center; font-size: 11.5px; }
.opt.is-chosen .opt-label { background: var(--ok-bg); }
.opt.is-chosen .opt-label .ab { background: var(--ok); }
.opt-thumb { background: var(--surface-3); display: grid; place-items: center; padding: 16px; border-bottom: 1px solid var(--line-soft); }
.opt-body { padding: 15px; display: grid; gap: 11px; flex: 1; }
.opt-body h3 { font-size: 15px; line-height: 1.6; }
.opt-body .aim { font-size: 12.5px; color: var(--ink-2); line-height: 1.75; }
.opt-outline { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.opt-outline li { font-size: 12px; color: var(--ink-2); display: flex; gap: 8px; line-height: 1.6; }
.opt-outline li b { font-family: var(--mono); font-size: 10.5px; color: var(--muted); flex-shrink: 0; padding-top: 2px; }
.opt-foot { padding: 0 15px 15px; }

/* ---------- 注記・ボックス ---------- */
.callout {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm);
  font-size: 12.5px; line-height: 1.75;
  background: var(--info-bg); border: 1px solid var(--info-line); color: #1D416F;
}
.callout.warn { background: var(--alert-bg); border-color: var(--alert-line); color: #8C3607; }
.callout.ok { background: var(--ok-bg); border-color: var(--ok-line); color: #0C5A3F; }
.callout .ico { flex-shrink: 0; font-weight: 800; }
.callout b { font-weight: 700; }

.hint { font-size: 11.5px; color: var(--muted); line-height: 1.7; }

/* モック用の注釈（実装では出ない） */
.mocknote {
  position: relative; margin: 14px 0;
  border: 1px dashed #C9C6B8; border-radius: var(--r-sm);
  background: repeating-linear-gradient(-45deg, #FBFAF4 0 8px, #F6F4EA 8px 16px);
  padding: 11px 14px 11px 42px; font-size: 12px; color: #6E6A57; line-height: 1.7;
}
.mocknote::before {
  content: "解説"; position: absolute; left: 10px; top: 11px;
  background: var(--brand); color: #3A3208; font-size: 9.5px; font-weight: 800;
  padding: 2px 5px; border-radius: 4px; letter-spacing: .04em;
}
.mocknote b { color: #4B4737; }

/* ---------- 統計 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 1px; background: var(--line-soft); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--surface); padding: 15px 17px; }
.stat .l { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.stat .v small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.stat .d { font-size: 11.5px; font-weight: 700; }
.stat .d.up { color: var(--ok); } .stat .d.dn { color: var(--alert); } .stat .d.fl { color: var(--muted); }

.bars { display: grid; gap: 11px; }
.barrow { display: grid; grid-template-columns: 1fr 46px; gap: 12px; align-items: center; font-size: 12.5px; }
.barrow .bl { display: grid; gap: 5px; min-width: 0; }
.barrow .bt { display: flex; gap: 8px; align-items: baseline; }
.barrow .bt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barrow .track { height: 8px; background: var(--surface-3); border-radius: 100px; overflow: hidden; }
.barrow .track i { display: block; height: 100%; background: var(--action); border-radius: 100px; }
.barrow .track i.b2 { background: #7C8BA5; }
.barrow .track i.b3 { background: var(--brand); }
.barrow .val { text-align: right; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }

.spark { display: flex; align-items: flex-end; gap: 4px; height: 64px; }
.spark i { flex: 1; background: linear-gradient(180deg,#3C5A86,#8FA6C6); border-radius: 3px 3px 0 0; display: block; min-height: 3px; }
.spark i.hi { background: linear-gradient(180deg,#0E2B52,#3C5A86); }
.spark-x { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 6px; }

.datasrc { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.datasrc i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: block; }
.datasrc.manual i { background: var(--brand-d); }

/* ---------- カレンダー（大） ---------- */
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--surface); }
.cal th { font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cal td { border: 1px solid var(--line-soft); vertical-align: top; height: 104px; padding: 6px; }
.cal td.out { background: var(--surface-2); }
.cal .dnum { font-size: 11.5px; color: var(--ink-2); font-weight: 700; }
.cal td.out .dnum { color: #C6C7C2; }
.cal td.today .dnum { background: var(--action); color: #fff; border-radius: 100px; padding: 1px 7px; }
.cal .sat .dnum { color: #3A6EA5; } .cal .sun .dnum { color: #B4453C; }
.ev {
  display: block; margin-top: 4px; padding: 3px 6px; border-radius: 5px;
  font-size: 10.5px; line-height: 1.45; font-weight: 600; text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-left: 3px solid;
}
.ev-ig   { background: #FCEDF3; color: #8E1F49; border-color: var(--ig); }
.ev-x    { background: #EDEFF1; color: #26313A; border-color: var(--x); }
.ev-note { background: #E9F6F3; color: #10604F; border-color: var(--note); }
.ev-tt   { background: #E9F8FA; color: #0F5560; border-color: #25C6D6; }
.ev.dashed { border-left-style: dashed; opacity: .8; }

/* ---------- ルール ---------- */
.rulesec { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 190px 1fr; gap: 26px; }
.rulesec:first-of-type { border-top: 0; }
.rulesec h3 { font-size: 14.5px; }
.rulesec .no { font-size: 11px; font-family: var(--mono); color: var(--muted); letter-spacing: .1em; }
.rulesec .body { font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.rulesec .body p { margin: 0 0 12px; }
.rulesec .body ul { margin: 0 0 12px; padding-left: 20px; }
.rulesec .body li { margin-bottom: 5px; }
.rulesec .body strong { color: var(--ink); }

.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 12px; }
.dodont > div { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; background: var(--surface-2); }
.dodont h4 { font-size: 12.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.dodont .do h4 { color: var(--ok); } .dodont .dont h4 { color: var(--alert); }
.dodont ul { margin: 0; padding-left: 17px; font-size: 12.5px; line-height: 1.8; }

.flow { display: flex; gap: 0; align-items: stretch; flex-wrap: wrap; }
.flow-step { flex: 1; min-width: 118px; position: relative; padding: 13px 15px 13px 22px; background: var(--surface-2); border: 1px solid var(--line); border-right: 0; }
.flow-step:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); padding-left: 15px; }
.flow-step:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.flow-step::after {
  content: ""; position: absolute; right: -10px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 18px; height: 18px; background: var(--surface-2); border-top: 1px solid var(--line); border-right: 1px solid var(--line); z-index: 2;
}
.flow-step:last-child::after { display: none; }
.flow-step.you { background: #FFFBEC; }
.flow-step.you::after { background: #FFFBEC; }
.flow-step .n { font-size: 10px; font-family: var(--mono); color: var(--muted); }
.flow-step .t { font-size: 12.5px; font-weight: 700; line-height: 1.5; margin-top: 2px; }
.flow-step .w { font-size: 10.5px; color: var(--muted); margin-top: 3px; }

/* ---------- 共有URL ---------- */
.urlbox { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 8px 8px 13px; }
.urlbox code { flex: 1; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.optrow { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-top: 12px; }
.optrow label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.optrow input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--action); }
.qr { width: 92px; height: 92px; border: 1px solid var(--line); border-radius: 8px; background:
  repeating-conic-gradient(#15171C 0 25%, #fff 0 50%) 0 0/12px 12px; opacity: .9; }

/* ---------- コメント ---------- */
.cmt { display: flex; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.cmt:first-child { border-top: 0; }
.cmt .ava { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); color: var(--ink-2); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.cmt .ava.tegou { background: var(--action); color: var(--brand); }
.cmt .b { flex: 1; min-width: 0; }
.cmt .who2 { font-size: 12.5px; font-weight: 700; }
.cmt .who2 time { font-weight: 400; color: var(--muted); font-size: 11px; margin-left: 7px; }
.cmt .txt { font-size: 13px; line-height: 1.75; color: var(--ink-2); margin-top: 2px; }
.cmt .target { display: inline-block; font-size: 11px; background: var(--surface-3); border-radius: 4px; padding: 1px 7px; color: var(--ink-2); margin-bottom: 3px; }

/* ---------- 管理画面 ---------- */
.admin { background: #1B1C21; color: #E9E7DF; }
.admin .topbar { background: rgba(24,25,29,.92); border-bottom-color: #2E2F36; }
.admin .brand-name { color: #F2EFE4; }
.admin .brand-name small { color: #83858F; }
.admin .nav { background: #1F2026; border-bottom-color: #2E2F36; }
.admin .nav a { color: #83858F; }
.admin .nav a[aria-current] { color: #F2EFE4; border-bottom-color: var(--brand); }
.admin .card { background: #24252B; border-color: #33343B; box-shadow: none; }
.admin .card-head { border-bottom-color: #33343B; }
.admin .card-foot { background: #1F2026; border-top-color: #33343B; color: #83858F; }
.admin .page-head h1, .admin h2, .admin h3 { color: #F2EFE4; }
.admin .page-head .lead, .admin .sec-head .note { color: #9A9CA6; }
.admin .ptable th { color: #83858F; border-bottom-color: #33343B; }
.admin .ptable td { border-bottom-color: #2C2D34; color: #D6D4CC; }
.admin .ptable tr:hover td { background: #292A31; }
.admin .btn { background: #2E2F36; border-color: #3B3C44; color: #E9E7DF; }
.admin .btn-primary { background: var(--brand); border-color: var(--brand); color: #24252B; }
.admin .p-plain { background: #2C2D34; border-color: #3B3C44; color: #9A9CA6; }
.admin .p-done { background: #2C2D34; border-color: #3B3C44; color: #C7C5BD; }
.admin .kv th { color: #83858F; } .admin .kv td { border-bottom-color: #2C2D34; }
.admin .urlbox { background: #1F2026; border-color: #33343B; }
.admin .urlbox code { color: #C7C5BD; }
.admin .mocknote { background: #23241F; border-color: #45463C; color: #A9A695; }
.admin .demobar { background: #101115; }

/* ---------- フッター ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 60px; background: var(--surface); }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 26px 20px 40px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.foot-in .sp { flex: 1; }
.foot a { color: var(--muted); }

/* ---------- モック目次 ---------- */
.cover { max-width: 980px; margin: 0 auto; padding: 54px 20px 90px; }
.cover h1 { font-size: 31px; letter-spacing: .01em; line-height: 1.4; }
.cover .sub { font-size: 15px; color: var(--ink-2); margin-top: 12px; line-height: 1.9; }
.covergrid { display: grid; grid-template-columns: repeat(auto-fill,minmax(258px,1fr)); gap: 16px; margin-top: 12px; }
.cov {
  display: block; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px;
  box-shadow: var(--sh); transition: box-shadow .16s, transform .16s;
}
.cov:hover { box-shadow: var(--sh-lift); transform: translateY(-2px); }
.cov .n { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.cov h3 { font-size: 16px; margin: 5px 0 7px; }
.cov p { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.75; }
.cov .g { display: inline-block; margin-top: 10px; font-size: 11.5px; font-weight: 700; color: var(--info); }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 960px) {
  .cols-2, .cols-3, .cols-side, .cols-side-l { grid-template-columns: 1fr; }
  .options { grid-template-columns: 1fr; }
  .decide { position: static; }
  .rulesec { grid-template-columns: 1fr; gap: 10px; }
  .dodont { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .page { padding: 20px 14px 70px; }
  .topbar-in { padding: 9px 14px; gap: 9px; }
  .nav-in { padding: 0 14px; }
  .who { display: none; }
  .proj-chip { font-size: 11.5px; max-width: 46vw; }
  .page-head h1 { font-size: 18.5px; }
  .card-pad { padding: 15px 16px; }
  .card-head { padding: 12px 16px; }
  .postgrid { grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 12px; }
  .pcard-title { font-size: 13px; }
  .phone { width: 100%; max-width: 344px; }
  .flow { display: grid; grid-template-columns: 1fr; }
  .flow-step { border-right: 1px solid var(--line); border-bottom: 0; border-radius: 0; padding-left: 15px; }
  .flow-step:first-child { border-radius: var(--r-sm) var(--r-sm) 0 0; }
  .flow-step:last-child { border-radius: 0 0 var(--r-sm) var(--r-sm); }
  .flow-step::after { top: auto; bottom: -10px; right: 50%; transform: translateX(50%) rotate(135deg); }
  .cal td { height: 74px; }
  .todo { padding: 12px 14px; gap: 11px; }
  .todo-title { font-size: 14px; }
  .ptable-wrap { overflow-x: auto; }
  .ptable { min-width: 640px; }
  .cover h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 印刷 ---------- */
@media print {
  .demobar, .nav, .topbar, .foot, .mocknote, .decide-foot, .previewbar, .btn { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .page { max-width: none; padding: 0; }
  .card { box-shadow: none; border-color: #CCC; break-inside: avoid; }
  .phone { box-shadow: none; border-color: #CCC; }
  a { text-decoration: none; }
}

/* ---------- モック用トースト ---------- */
#mock-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 10px);
  background: #17181C; color: #F2EFE4; font-size: 12.5px; font-weight: 600;
  padding: 11px 20px; border-radius: 100px; z-index: 200;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
  max-width: calc(100vw - 40px); text-align: center;
}

/* ==========================================================================
   サムネイル（一覧カード用・レスポンシブ）
   スライドの実寸再現は詳細ページの端末プレビューが担い、
   ここは「何の投稿か」が分かればよいので簡略版で描く。
   ========================================================================== */
.thumb {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  background: #0E2B52; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px 15px; font-feature-settings: "palt";
}
.thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .sc { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,40,.02) 32%, rgba(10,22,40,.8) 100%); }
.thumb .tx { position: relative; }
.thumb .kk { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; color: var(--brand); margin-bottom: 5px; }
.thumb h4 { font-size: 15px; line-height: 1.45; font-weight: 800; letter-spacing: .01em; }
.thumb .sb { font-size: 10.5px; opacity: .85; margin-top: 5px; line-height: 1.5; }
.thumb .rl { width: 30px; height: 3px; background: var(--brand); margin-top: 9px; }

/* 白地（本編・CTA風） */
.thumb.th-white { background: #fff; color: #0E2B52; justify-content: center; border: 0; }
.thumb.th-white h4 { font-size: 14.5px; }
.thumb.th-white .sb { color: #55637A; opacity: 1; }

/* X 風 */
.thumb.th-x { background: #14181C; justify-content: center; padding: 16px; }
.thumb.th-x h4 { font-size: 13px; font-weight: 600; line-height: 1.6; letter-spacing: 0; }
.thumb.th-x .hd { display: flex; gap: 7px; align-items: center; margin-bottom: 9px; }
.thumb.th-x .hd i { width: 20px; height: 20px; border-radius: 50%; background: #0E2B52; display: block; flex-shrink: 0; }
.thumb.th-x .hd span { font-size: 10.5px; color: #8B98A5; }

/* note 風 */
.thumb.th-note { background: #fff; color: #131313; justify-content: flex-start; padding: 0; }
.thumb.th-note .eye { height: 56%; background: #0E2B52; position: relative; display: grid; place-items: center; padding: 12px; overflow: hidden; }
.thumb.th-note .eye img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.thumb.th-note .eye b { position: relative; color: #fff; font-size: 12px; line-height: 1.5; text-align: center; }
.thumb.th-note .bd { padding: 11px 13px; }
.thumb.th-note h4 { font-size: 12.5px; line-height: 1.55; color: #131313; }
.thumb.th-note .sb { color: #7A7A7A; opacity: 1; font-size: 10px; }

/* TikTok 風（9:16 を 4:5 の中に） */
.thumb.th-tt { background: #000; justify-content: center; align-items: center; text-align: center; }
.thumb.th-tt h4 { font-size: 15px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.thumb.th-tt em { font-style: normal; background: var(--brand); color: #111; padding: 0 5px; border-radius: 3px; }
.thumb.th-tt .sc { background: linear-gradient(180deg, rgba(0,0,0,.5) 0 20%, rgba(0,0,0,.1) 45% 60%, rgba(0,0,0,.7) 100%); }

/* サムネ上のフラグ・枚数バッジを最前面に */
.pcard-thumb .flag, .pcard-thumb .stack { z-index: 3; }
.thumb .rl { display: block; }
.thumb.th-white .tx { text-align: center; }

/* カルーセルの枚数カウンタ（Instagram の 1/5 表示） */
.ig-media-wrap { position: relative; }
.ig-media-wrap .ig-count {
  position: absolute; right: 10px; top: 10px; z-index: 3;
  background: rgba(0,0,0,.6); color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 100px; backdrop-filter: blur(3px);
}
.ig-swipehint {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  background: rgba(255,255,255,.92); color: #333; font-size: 10.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 100px; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

/* 画像構成表 */
.slidelist { display: grid; gap: 10px; }
.slideitem { display: flex; gap: 13px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.slideitem .no { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.slideitem .b { flex: 1; min-width: 0; }
.slideitem .role { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.slideitem .cp { font-size: 13.5px; font-weight: 700; line-height: 1.55; margin-top: 1px; }
.slideitem .tx2 { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin-top: 3px; }
.slideitem .cbtn { flex-shrink: 0; }
.slideitem.has-cmt { border-color: var(--alert-line); background: #FFFCF9; }

/* 版の履歴 */
.vers { display: flex; gap: 8px; flex-wrap: wrap; }
.ver { border: 1px solid var(--line); border-radius: 100px; padding: 6px 13px; font-size: 12px; background: var(--surface); color: var(--ink-2); }
.ver.now { background: var(--action); border-color: var(--action); color: #fff; font-weight: 700; }
.diff-add { background: #DCF3E6; border-radius: 3px; padding: 0 2px; }
.diff-del { background: #FBE3DA; border-radius: 3px; padding: 0 2px; text-decoration: line-through; color: #97583C; }

/* TEGOU だけに見えるブロック */
.staffonly { border: 1px dashed #9AA0AC; border-radius: var(--r); background: #F3F5F8; }
.staffonly .card-head { border-bottom-color: #DCE0E7; }
.staffonly .badge {
  background: #33415C; color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 100px; letter-spacing: .04em;
}

/* フローの各行を縦積みに（インラインだと文がつながって読めない） */
.flow-step .n, .flow-step .t, .flow-step .w { display: block; }
/* 案カードの見出し行 */
.opt-label .nm { flex: 1; min-width: 0; }

.btn-xs, .btn-sm:not(.btn-block) { white-space: nowrap; }

/* ---------- 横はみ出しの防止 ----------
   flex/grid の子は既定で min-width:auto のため、長いURLや nowrap 要素が
   コンテナ幅を押し広げてページ全体が横スクロールする。明示的に 0 を入れる。 */
.urlbox code { min-width: 0; }
.copybox pre { overflow-wrap: anywhere; }
.todo-body, .plan-body, .pcard-body, .cmt .b, .x-body, .opt-body { min-width: 0; }

@media (max-width: 960px) {
  .cols-2, .cols-3, .cols-side, .cols-side-l { grid-template-columns: minmax(0, 1fr); }
  .options { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   本番用の追加（モックには無い状態のスタイル）
   ========================================================================== */

/* 画像スライド（実運用では完成デザインの画像が1枚入る） */
.slide--img { padding: 0; background: #EFEFEF; }
.slide--img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide--img .pg { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); opacity: .9; }
.slide--body .role-tag { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted); display: block; margin-bottom: 6px; }

/* フラッシュメッセージ */
.flash {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px; border-radius: var(--r); margin-bottom: 18px;
  font-size: 13.5px; line-height: 1.75; font-weight: 600;
  background: var(--ok-bg); border: 1px solid var(--ok-line); color: #0C5A3F;
}
.flash.warn { background: var(--alert-bg); border-color: var(--alert-line); color: #8C3607; }
.flash .ico { font-weight: 800; }

/* PIN 入力・お名前の確認 */
.gate { max-width: 420px; margin: 60px auto; }
.gate .card { padding: 30px 28px; }
.gate h1 { font-size: 18px; margin-bottom: 8px; }
.gate p { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; margin: 0 0 18px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=password], input[type=search], input[type=email], select, textarea {
  width: 100%; font-family: inherit; font-size: 16px;
  padding: 11px 13px; border: 1px solid #C9CCD2; border-radius: var(--r-sm);
  background: #fff; color: var(--ink);
}
textarea { font-size: 14px; line-height: 1.8; resize: vertical; }
select { font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--info); outline-offset: 1px; border-color: var(--info); }
.pinbox input { font-size: 24px; letter-spacing: .5em; text-align: center; font-family: var(--mono); }

/* お名前の選択（操作の直前に出す） */
.whobox {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: #FFFBEC; border: 1px solid #EBD98F; border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 12.5px; color: #6B5A15; margin-bottom: 14px;
}
.whobox select { width: auto; min-width: 130px; }
.whobox b { font-weight: 700; }

/* 空の状態 */
.empty {
  text-align: center; padding: 46px 20px; color: var(--muted); font-size: 13.5px;
  border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface-2);
}

/* 決定済み・回答済みの表示 */
.answered {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--ok-bg); border: 1px solid var(--ok-line); color: #0C5A3F;
  border-radius: var(--r-sm); padding: 14px 16px; font-size: 13px; line-height: 1.75;
}
.answered.revise { background: var(--alert-bg); border-color: var(--alert-line); color: #8C3607; }

/* 一覧のリンクカードをボタンにしない（フォーム内でも使うため） */
a.pcard, a.todo { color: inherit; }
