/* =========================================================
 * 登別グランドホテル｜目標設定サポートマニュアル
 * テイスト: やさしい (friendly)
 * 配布型 / 1920×1080 / 16:9 / 全32枚
 * ========================================================= */

:root {
  /* ── 基本カラー (friendly) ── */
  --c-base:           #FAFAF8;
  --c-main:           #2D3A2E;
  --c-sub:            #5C6B5E;
  --c-accent:         #4D8C6F;
  --c-accent-soft:    #E8F1EB;
  --c-border:         #D4E6DA;
  --c-surface:        #F0F7F2;
  --c-dark-bg:        #2D3A2E;
  --c-card:           #FFFFFF;
  --c-text:           #2D3A2E;
  --c-text-muted:     #7A8779;

  /* ── カテゴリカラー (柔らかめトーン) ── */
  --c-good:           #88B8A1;
  --c-good-bg:        #EEF5F0;
  --c-bad:            #C77B7B;
  --c-bad-bg:         #F8EDED;
  --c-improve:        #5B7A99;
  --c-improve-bg:     #ECF1F6;

  /* ── タイポ ── */
  --font-head:        'Noto Sans JP', sans-serif;
  --font-body:        'Noto Sans JP', sans-serif;

  /* ── デコ ── */
  --card-radius:      16px;
  --shadow-soft:      0 4px 14px rgba(45,58,46,.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--c-main);
  background: var(--c-base);
  line-height: 1.6;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font-family: inherit; cursor: pointer; }

/* =========================================================
 * Topbar
 * ========================================================= */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--c-border);
  z-index: 60;
  backdrop-filter: blur(8px);
}
.menu-btn {
  background: none; border: none;
  font-size: 22px; line-height: 1;
  color: var(--c-main);
  padding: 4px 10px;
  border-radius: 8px;
}
.menu-btn:hover { background: var(--c-accent-soft); }
.deck-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-main);
  letter-spacing: 0.05em;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.memo-list-btn {
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border: 1px solid var(--c-border);
  padding: 6px 12px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  transition: all .15s;
}
.memo-list-btn:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.memo-list-btn span {
  background: var(--c-accent); color: #fff;
  border-radius: 10px;
  min-width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; padding: 0 5px;
}
.memo-list-btn:hover span { background: #fff; color: var(--c-accent); }

/* =========================================================
 * Sidebar (overlay, default hidden)
 * ========================================================= */
.sidebar {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: 280px;
  background: #fff;
  border-right: 1px solid var(--c-border);
  transform: translateX(-100%);
  transition: transform .25s ease;
  z-index: 80;
  display: flex; flex-direction: column;
  padding: 16px 0;
}
.sidebar.open { transform: translateX(0); }
.sidebar-close {
  position: absolute; top: 8px; right: 8px;
  background: none; border: none;
  font-size: 22px; line-height: 1;
  color: var(--c-text-muted);
  padding: 4px 10px;
}
.sidebar h3 {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
  padding: 8px 20px 12px;
  border-bottom: 1px solid var(--c-border);
  font-weight: 700;
}
#agenda-list {
  list-style: none;
  overflow-y: auto;
  padding: 8px 0;
}
#agenda-list li {
  padding: 8px 20px;
  font-size: 13px;
  color: var(--c-main);
  cursor: pointer;
  border-left: 3px solid transparent;
  display: flex; gap: 8px;
  line-height: 1.4;
}
#agenda-list li:hover { background: var(--c-accent-soft); }
#agenda-list li.current {
  background: var(--c-accent-soft);
  border-left-color: var(--c-accent);
  color: var(--c-accent);
  font-weight: 700;
}
#agenda-list li.section-header {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
  font-weight: 700;
  pointer-events: none;
  padding-top: 14px;
  padding-bottom: 4px;
  border-left: none;
}
#agenda-list li .num {
  font-variant-numeric: tabular-nums;
  color: var(--c-text-muted);
  min-width: 24px;
  font-size: 11px;
}
#agenda-list li.current .num { color: var(--c-accent); }

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45,58,46,.3);
  z-index: 70;
  display: none;
}
.backdrop.show { display: block; }

/* =========================================================
 * Slide stage / 16:9
 * ========================================================= */
.slide-stage {
  position: fixed;
  top: 48px; left: 0; right: 0; bottom: 0;
  background: var(--c-base);
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  container-type: size;
  background: var(--c-base);
}
.slide.active { display: flex; }
.slide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4cqw 5cqw;
  position: relative;
}

/* =========================================================
 * Typography (cqw based)
 * ========================================================= */
.slide-h1 { font-size: 5.6cqw; font-weight: 700; line-height: 1.3; letter-spacing: 0.01em; }
.slide-h2 { font-size: 3.6cqw; font-weight: 700; line-height: 1.35; letter-spacing: 0.02em; }
.slide-h3 { font-size: 2.4cqw; font-weight: 700; line-height: 1.4; }
.slide-body { font-size: 1.7cqw; font-weight: 400; line-height: 1.7; }
.slide-small { font-size: 1.3cqw; font-weight: 400; line-height: 1.6; color: var(--c-sub); }
.slide-tag { font-size: 1.4cqw; font-weight: 500; line-height: 1.4; }

/* =========================================================
 * 共通: ヘッダー / アクセント / フッターnote
 * ========================================================= */
.accent-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0.55cqw;
}
.slide-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.2cqw;
}
.dept-badge {
  display: inline-block;
  padding: 0.55cqw 1.2cqw;
  border-radius: 100px;
  font-size: 1.4cqw;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.dept-badge.good    { background: var(--c-good-bg);    color: var(--c-good);    border: 1px solid var(--c-good); }
.dept-badge.bad     { background: var(--c-bad-bg);     color: var(--c-bad);     border: 1px solid var(--c-bad); }
.dept-badge.improve { background: var(--c-improve-bg); color: var(--c-improve); border: 1px solid var(--c-improve); }
.dept-badge.section { background: var(--c-accent-soft); color: var(--c-accent); border: 1px solid var(--c-accent); }
.page-mark {
  font-size: 1.1cqw;
  font-weight: 500;
  color: var(--c-sub);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.lead {
  margin-bottom: 1.8cqw;
}
.lead .slide-h2 { color: var(--c-main); }
.lead .lead-sub {
  font-size: 1.55cqw;
  color: var(--c-sub);
  margin-top: 0.7cqw;
  line-height: 1.6;
}
.footer-note {
  margin-top: 2cqw;
  padding: 1.1cqw 1.5cqw;
  background: var(--c-surface);
  border-left: 4px solid var(--c-accent);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  font-size: 1.4cqw;
  color: var(--c-main);
  line-height: 1.6;
}
.footer-note .label { font-weight: 700; margin-right: 0.6cqw; color: var(--c-accent); }

/* カテゴリ別 footer-note */
.cat-good .footer-note { border-left-color: var(--c-good); }
.cat-good .footer-note .label { color: var(--c-good); }
.cat-bad .footer-note { border-left-color: var(--c-bad); }
.cat-bad .footer-note .label { color: var(--c-bad); }
.cat-improve .footer-note { border-left-color: var(--c-improve); }
.cat-improve .footer-note .label { color: var(--c-improve); }

/* カテゴリ別 accent-bar */
.cat-good    .accent-bar { background: var(--c-good); }
.cat-bad     .accent-bar { background: var(--c-bad); }
.cat-improve .accent-bar { background: var(--c-improve); }
.cat-section .accent-bar { background: var(--c-accent); }

/* =========================================================
 * SLIDE 01: 表紙 (F1 Dark)
 * ========================================================= */
.slide-cover {
  background: var(--c-dark-bg);
  color: #FFFFFF;
}
.slide-cover .slide-content { padding: 5.5cqw 6.5cqw; justify-content: space-between; }
.slide-cover .cover-top {
  font-size: 1.3cqw;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
}
.slide-cover .cover-main { display: flex; flex-direction: column; gap: 1.6cqw; }
.slide-cover .cover-eyebrow {
  font-size: 1.5cqw;
  letter-spacing: 0.3em;
  color: var(--c-good);
  font-weight: 500;
}
.slide-cover .cover-title {
  font-size: 5.8cqw;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.slide-cover .cover-sub {
  font-size: 2cqw;
  color: rgba(255,255,255,0.85);
  margin-top: 0.5cqw;
}
.slide-cover .cover-message {
  font-size: 2.2cqw;
  color: var(--c-good);
  margin-top: 1.6cqw;
  border-left: 4px solid var(--c-good);
  padding-left: 1.4cqw;
  line-height: 1.5;
}
.slide-cover .cover-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: rgba(255,255,255,0.7);
  font-size: 1.3cqw;
  letter-spacing: 0.15em;
}

/* =========================================================
 * F6: ステップ (使い方・面談コツ)
 * ========================================================= */
.steps-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6cqw;
  margin-top: 0.4cqw;
}
.step-card {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--card-radius);
  padding: 1.6cqw 1.8cqw;
  display: flex;
  flex-direction: column;
  gap: 0.8cqw;
  height: 100%;
  position: relative;
}
.step-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--c-accent);
  border-radius: var(--card-radius) var(--card-radius) 0 0;
}
.step-card .step-num {
  font-size: 1.2cqw;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--c-accent);
}
.step-card .step-title {
  font-size: 1.85cqw;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-main);
}
.step-card .step-detail {
  font-size: 1.4cqw;
  color: var(--c-sub);
  line-height: 1.7;
}
.step-card ul { list-style: none; padding: 0; margin-top: 0.4cqw; }
.step-card ul li {
  font-size: 1.35cqw;
  color: var(--c-main);
  line-height: 1.6;
  padding: 0.3cqw 0 0.3cqw 1.2cqw;
  position: relative;
}
.step-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--c-accent);
  font-weight: 700;
}

/* =========================================================
 * F1: ステートメント
 * ========================================================= */
.statement {
  display: flex;
  flex-direction: column;
  gap: 1.4cqw;
  align-items: flex-start;
}
.statement .big {
  font-size: 5cqw;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-main);
}
.statement .sub {
  font-size: 2.2cqw;
  font-weight: 600;
  color: var(--c-accent);
  line-height: 1.5;
}
.statement .note {
  font-size: 1.5cqw;
  color: var(--c-sub);
  line-height: 1.7;
  margin-top: 0.8cqw;
}

/* =========================================================
 * F2: 3カラム図解
 * ========================================================= */
.reason-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6cqw;
  margin-top: 0.4cqw;
}
.reason-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--card-radius);
  padding: 1.8cqw;
  display: flex;
  flex-direction: column;
  gap: 1cqw;
  height: 100%;
  position: relative;
}
.reason-card .num-circle {
  width: 2.8cqw; height: 2.8cqw;
  border-radius: 50%;
  background: var(--c-accent);
  color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5cqw;
  font-weight: 700;
}
.reason-card .reason-title {
  font-size: 1.85cqw;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-main);
}
.reason-card .reason-detail {
  font-size: 1.35cqw;
  color: var(--c-sub);
  line-height: 1.7;
}

/* =========================================================
 * F3: 対比 (面談磨く場 / 改善例)
 * ========================================================= */
.compare-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6cqw;
  margin-top: 0.4cqw;
}
.compare-block {
  border-radius: var(--card-radius);
  padding: 1.8cqw 2cqw;
  display: flex;
  flex-direction: column;
  gap: 0.8cqw;
}
.compare-block.x {
  background: #F4F4F2;
  border: 1px solid #D9D9D5;
  color: var(--c-sub);
}
.compare-block.o {
  background: var(--c-accent-soft);
  border: 1px solid var(--c-accent);
  color: var(--c-main);
}
.compare-block .mark {
  font-size: 2.6cqw;
  font-weight: 700;
  line-height: 1;
}
.compare-block.x .mark { color: #B8B8B0; }
.compare-block.o .mark { color: var(--c-accent); }
.compare-block .compare-title {
  font-size: 1.85cqw;
  font-weight: 700;
  line-height: 1.4;
}
.compare-block .compare-detail {
  font-size: 1.35cqw;
  line-height: 1.7;
}
.checkpoint-box {
  margin-top: 1.6cqw;
  padding: 1.2cqw 1.6cqw;
  background: var(--c-surface);
  border-left: 4px solid var(--c-accent);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  font-size: 1.4cqw;
  color: var(--c-main);
  line-height: 1.7;
}
.checkpoint-box .label { font-weight: 700; margin-right: 0.6cqw; color: var(--c-accent); }

/* 改善例用Before/After list */
.compare-list {
  display: flex;
  flex-direction: column;
  gap: 1.2cqw;
  margin-top: 1.2cqw;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr auto 1.5fr;
  align-items: stretch;
  gap: 1.2cqw;
}
.compare-cell {
  border-radius: var(--card-radius);
  padding: 1.2cqw 1.4cqw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4cqw;
}
.compare-cell.before {
  background: #F4F4F2;
  border: 1px solid #D9D9D5;
  color: var(--c-sub);
}
.compare-cell.after {
  background: var(--c-improve-bg);
  border: 1px solid var(--c-improve);
  color: var(--c-main);
}
.compare-cell .label {
  font-size: 1.05cqw;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.compare-cell.before .label { color: var(--c-sub); }
.compare-cell.after .label { color: var(--c-improve); }
.compare-cell .text {
  font-size: 1.55cqw;
  font-weight: 600;
  line-height: 1.5;
}
.compare-arrow {
  align-self: center;
  font-size: 2.2cqw;
  color: var(--c-improve);
  font-weight: 700;
}

/* =========================================================
 * F4: データカード (良い例 / SMART / 5切り口 / FAQ)
 * ========================================================= */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4cqw;
  margin-top: 0.4cqw;
}
.goal-card {
  background: var(--c-good-bg);
  border: 1px solid var(--c-good);
  border-radius: var(--card-radius);
  padding: 1.5cqw 1.6cqw 1.4cqw;
  display: flex;
  flex-direction: column;
  gap: 0.6cqw;
  height: 100%;
}
.goal-card .goal-num {
  font-size: 1.2cqw;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-good);
}
.goal-card .goal-title {
  font-size: 1.7cqw;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-main);
}
.goal-card .goal-detail {
  font-size: 1.3cqw;
  color: var(--c-sub);
  line-height: 1.6;
  margin-top: auto;
}

/* テーブル形式 (SMART / 5切り口) */
.kv-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 0.6cqw;
  border: 1px solid var(--c-border);
  border-radius: var(--card-radius);
  overflow: hidden;
}
.kv-table tr { border-bottom: 1px solid var(--c-border); }
.kv-table tr:last-child { border-bottom: none; }
.kv-table th, .kv-table td {
  padding: 1.2cqw 1.6cqw;
  text-align: left;
  vertical-align: middle;
  font-size: 1.5cqw;
  border-bottom: 1px solid var(--c-border);
}
.kv-table tr:last-child th, .kv-table tr:last-child td { border-bottom: none; }
.kv-table th {
  width: 22%;
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.45cqw;
}
.kv-table .kv-key {
  font-weight: 700;
  color: var(--c-main);
  font-size: 1.55cqw;
  width: 32%;
}
.kv-table .kv-value {
  color: var(--c-sub);
  line-height: 1.6;
}
.kv-table .kv-key small {
  display: block;
  font-size: 0.95cqw;
  color: var(--c-text-muted);
  font-weight: 500;
  margin-top: 0.2cqw;
  letter-spacing: 0.1em;
}

/* 5切り口の小カード */
.metric-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1cqw;
  margin-top: 0.4cqw;
}
.metric-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--card-radius);
  border-top: 4px solid var(--c-accent);
  padding: 1.4cqw 1.2cqw;
  display: flex;
  flex-direction: column;
  gap: 0.5cqw;
  height: 100%;
}
.metric-card .metric-name {
  font-size: 1.55cqw;
  font-weight: 700;
  color: var(--c-main);
  line-height: 1.3;
}
.metric-card .metric-name small {
  display: block;
  font-size: 1cqw;
  color: var(--c-text-muted);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-top: 0.2cqw;
}
.metric-card .metric-example {
  font-size: 1.15cqw;
  color: var(--c-sub);
  line-height: 1.5;
  margin-top: auto;
  padding-top: 0.8cqw;
  border-top: 1px solid var(--c-border);
}

/* FAQ Q&A */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1cqw;
  margin-top: 0.4cqw;
}
.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  padding: 1cqw 1.4cqw;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4cqw 1cqw;
  align-items: baseline;
}
.faq-item .q-mark, .faq-item .a-mark {
  font-size: 1.3cqw;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.faq-item .q-mark { color: var(--c-accent); }
.faq-item .a-mark { color: var(--c-sub); }
.faq-item .q-text {
  font-size: 1.45cqw;
  font-weight: 700;
  color: var(--c-main);
  line-height: 1.4;
}
.faq-item .a-text {
  font-size: 1.3cqw;
  color: var(--c-sub);
  line-height: 1.7;
}

/* =========================================================
 * NG リスト (だめ例)
 * ========================================================= */
.ng-list {
  display: flex;
  flex-direction: column;
  gap: 1.2cqw;
  margin-top: 1.2cqw;
}
.ng-row {
  display: grid;
  grid-template-columns: auto 1fr auto 1.6fr;
  align-items: center;
  gap: 1.2cqw;
  padding: 1.4cqw 1.6cqw;
  background: var(--c-bad-bg);
  border: 1px solid var(--c-bad);
  border-radius: var(--card-radius);
}
.ng-row .ng-mark {
  font-size: 2cqw;
  color: var(--c-bad);
  font-weight: 700;
  line-height: 1;
}
.ng-row .ng-text {
  font-size: 1.7cqw;
  font-weight: 700;
  color: var(--c-main);
}
.ng-row .ng-arrow {
  font-size: 1.5cqw;
  color: var(--c-bad);
  font-weight: 700;
}
.ng-row .ng-reason {
  font-size: 1.45cqw;
  color: var(--c-sub);
  line-height: 1.5;
}

/* =========================================================
 * Bridge (セクション切替・部署バッジ)
 * ========================================================= */
.slide-bridge {
  background: var(--c-dark-bg);
  color: #FFFFFF;
}
.slide-bridge.dept {
  background: var(--c-accent);
}
.slide-bridge .slide-content {
  padding: 5cqw 6cqw;
  justify-content: center;
  gap: 1.6cqw;
}
.slide-bridge .bridge-eyebrow {
  font-size: 1.6cqw;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.slide-bridge .bridge-title {
  font-size: 5.8cqw;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.slide-bridge .bridge-sub {
  font-size: 2cqw;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  max-width: 70%;
}
.slide-bridge .bridge-meta {
  margin-top: 1.4cqw;
  display: flex;
  gap: 2cqw;
  flex-wrap: wrap;
}
.slide-bridge .bridge-meta-item {
  font-size: 1.4cqw;
  color: rgba(255,255,255,0.85);
  border-left: 3px solid rgba(255,255,255,0.5);
  padding-left: 1cqw;
  line-height: 1.5;
}

/* =========================================================
 * ワーク欄 (Slide 32 メモ)
 * ========================================================= */
.worksheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6cqw;
  margin-top: 0.4cqw;
}
.ws-block {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--card-radius);
  padding: 1.4cqw 1.6cqw;
  display: flex;
  flex-direction: column;
  gap: 0.8cqw;
}
.ws-block .ws-title {
  font-size: 1.55cqw;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.05em;
}
.ws-block .ws-desc {
  font-size: 1.2cqw;
  color: var(--c-sub);
  line-height: 1.6;
}
.ws-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 0.4cqw;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  overflow: hidden;
}
.ws-table th, .ws-table td {
  padding: 0.9cqw 1cqw;
  font-size: 1.2cqw;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
}
.ws-table th {
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-weight: 700;
  font-size: 1.1cqw;
  letter-spacing: 0.05em;
}
.ws-table tr:last-child th, .ws-table tr:last-child td { border-bottom: none; }
.ws-table .ws-blank {
  height: 2.4cqw;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 1.1cqw, var(--c-border) 1.1cqw, var(--c-border) calc(1.1cqw + 1px));
}
.ws-checks {
  display: flex;
  flex-direction: column;
  gap: 0.5cqw;
}
.ws-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7cqw;
  align-items: baseline;
  font-size: 1.25cqw;
  color: var(--c-main);
  line-height: 1.5;
}
.ws-check .box {
  width: 1.3cqw; height: 1.3cqw;
  border: 1.5px solid var(--c-accent);
  border-radius: 4px;
  background: #fff;
}
.ws-finalmsg {
  margin-top: 1.6cqw;
  padding: 1.2cqw 1.6cqw;
  background: var(--c-accent);
  color: #FFFFFF;
  border-radius: var(--card-radius);
  font-size: 1.55cqw;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
}

/* =========================================================
 * Navigation
 * ========================================================= */
.nav-bar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 6px 14px;
  z-index: 50;
  font-size: 12px;
  box-shadow: var(--shadow-soft);
}
.nav-bar button {
  background: none;
  border: none;
  color: var(--c-main);
  font-size: 22px;
  padding: 2px 8px;
  line-height: 1;
}
.nav-bar button:hover { color: var(--c-accent); }
.nav-bar .counter {
  color: var(--c-sub);
  letter-spacing: 0.1em;
  min-width: 50px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.nav-bar .label-current {
  color: var(--c-main);
  font-weight: 600;
  margin-left: 8px;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
 * Memo feature
 * ========================================================= */
.memo-btn {
  position: fixed;
  top: 60px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  font-size: 18px;
  box-shadow: var(--shadow-soft);
  z-index: 54;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s;
}
.memo-btn:hover { background: var(--c-accent-soft); transform: scale(1.05); }
.memo-dot {
  position: absolute; top: 6px; right: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c-accent);
  display: none;
  border: 2px solid #fff;
}
.memo-btn.has-note .memo-dot { display: block; }

/* Modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(45,58,46,.5);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  width: 520px;
  max-width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  display: flex; flex-direction: column;
  gap: 14px;
}
.modal-card-lg { width: 680px; max-height: 80vh; }
.modal-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
}
.modal-head strong { font-size: 15px; color: var(--c-main); }
.modal-sub {
  font-size: 12px; color: var(--c-text-muted);
  margin-top: 4px;
}
.modal-close {
  background: none; border: none;
  font-size: 22px; line-height: 1;
  color: var(--c-text-muted);
  padding: 0 8px;
}
.modal-close:hover { color: var(--c-accent); }
#memo-textarea {
  width: 100%;
  min-height: 150px;
  padding: 11px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  color: var(--c-text);
  background: var(--c-surface);
}
#memo-textarea:focus { outline: none; border-color: var(--c-accent); }
.modal-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--c-accent); color: #fff; border: none;
  padding: 9px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  transition: background .15s;
}
.btn-primary:hover { background: #3D7158; }
.btn-ghost {
  background: none; color: var(--c-text-muted);
  border: 1px solid var(--c-border);
  padding: 9px 14px; border-radius: 8px;
  font-size: 13px;
  transition: all .15s;
}
.btn-ghost:hover {
  background: var(--c-accent-soft);
  color: var(--c-accent);
  border-color: var(--c-accent);
}
.memo-list {
  flex: 1;
  overflow-y: auto;
  display: flex; flex-direction: column;
  gap: 10px;
  max-height: 50vh;
  padding-right: 4px;
}
.memo-list-empty {
  text-align: center; color: var(--c-text-muted);
  padding: 28px;
  font-size: 13px;
}
.memo-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 11px 14px;
}
.memo-item-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.memo-item-title {
  font-size: 12px; font-weight: 700;
  color: var(--c-accent); cursor: pointer;
}
.memo-item-title:hover { text-decoration: underline; }
.memo-item-text {
  font-size: 13px; color: var(--c-text);
  line-height: 1.7;
  white-space: pre-wrap;
}
.memo-item-del {
  background: none; border: none;
  color: var(--c-text-muted);
  font-size: 13px; padding: 2px 6px;
}
.memo-item-del:hover { color: var(--c-accent); }
