/* 区分の切替チップと表のツール（図・表の保存、表側・表頭の入れ替え）。模範: 高鷲 町民意識調査（2026-11-02） */
.ax-hide { display: none !important; }
.ax-switch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 calc(var(--space-unit-px) * 3);
  padding: 8px 10px; border-radius: var(--radius-md, 8px); background: #F3F4F6; border: var(--border-width) solid var(--color-functional-border); }
.ax-switch .ax-lbl { font-size: var(--text-small-size); font-weight: 700; color: var(--color-text-primary); margin-right: 4px; }
/* 区分の切替ボタン: 大きく・青で「押せるボタン」と分かるように（横関 2026-11-04） */
.ax-btn { font: inherit; font-size: var(--text-small-size); font-weight: 600; line-height: 1; padding: 10px 18px; border-radius: 8px; cursor: pointer;
  border: 1.5px solid #1D4ED8; color: #1D4ED8; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.ax-btn:hover { background: #DBEAFE; }
.ax-btn.on { border-color: #1D4ED8; background: #1D4ED8; color: #fff; box-shadow: none; }
.gap .gap-tools { display: flex; gap: 8px; align-items: center; justify-content: flex-start; flex-wrap: wrap; margin: 0 0 8px; }
.ibtn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border-radius: var(--radius-sm, 6px); cursor: pointer;
  border: var(--border-width) solid var(--color-functional-border); background: var(--color-base-white); color: var(--color-text-secondary); font: inherit; line-height: 1; text-decoration: none; }
.ibtn:hover { background: var(--color-base-warm-gray); color: var(--color-text-primary); text-decoration: none; }
.ibtn.on { border-color: var(--color-brand-charcoal, #1F2937); background: var(--color-brand-charcoal, #1F2937); color: var(--color-base-white); }
svg.ibtn-ico { display: inline-block; width: 15px; height: 15px; min-width: 0; }
/* 入れ替えた表は行見出しを固定しない（元の表の sticky が隣の列に重なるため） */
.gap .tablewrap.t th, .gap .tablewrap.t thead th { position: static !important; }
.gap table.gapm-t th.t-axis { background: var(--color-base-warm-gray); font-weight: 600; text-align: center; }
.gap table.gapm-t th.t-cat { background: var(--color-base-white); font-weight: 400; text-align: center; min-width: 5.5em; white-space: nowrap; }
.gap table.gapm-t th.t-row { text-align: left; font-weight: 400; min-width: 9em; white-space: normal; }
.gap table.gapm-t .t-all { font-weight: 700; background: var(--color-base-cream); }
.gap table.gapm-t td.hi1 { background: var(--color-chart-heat-diff-hi1); } .gap table.gapm-t td.hi2 { background: var(--color-chart-heat-diff-hi2); }
.gap table.gapm-t td.lo1 { background: var(--color-chart-heat-diff-lo1); } .gap table.gapm-t td.lo2 { background: var(--color-chart-heat-diff-lo2); }
/* 指標の見出し（認知度・興味度）: 色付きのタグで大きく、表の左上にも指標名 */
.card.v2 h5.subhead.metric-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; font-size: var(--text-base-size, 15px); }
.metric-tag { display: inline-block; padding: 6px 14px; border-radius: 6px; font-size: 1.1em; font-weight: 700; color: #fff; background: #374151; letter-spacing: 0.04em; }
.metric-tag.awareness { background: #0F766E; }
.metric-tag.interest { background: #C2410C; }
.metric-def { font-weight: 500; color: var(--color-text-secondary); }
.gap th.corner { font-weight: 700; color: var(--color-text-primary); text-align: left; vertical-align: top; padding: 8px 6px; white-space: nowrap; }
/* 四象限の区分別: 選んだ区分の図をカード幅いっぱいに */
.card.v2 .seg-switch { margin-top: 4px; }
.card.v2 .fig.quad-seg { max-width: none; width: 100%; }
.card.v2 .segboard .actions { margin: 4px 0 calc(var(--space-unit-px) * 3); }
/* 保存ボタン（赤・アイコン付き）: 横関 2026-11-03「ダウンロードアイコンを付けて赤いボタンに。見やすく分かりやすく」 */
/* 全ページのダウンロードは同じ見た目（赤・アイコン＋ラベル）。download 属性のある .btn は自動でこの見た目になる */
.btn.dl, a.btn[download] { display: inline-flex; align-items: center; gap: 6px; border-color: #B91C1C; background: #B91C1C; color: #fff; }
.btn.dl:hover, a.btn[download]:hover { background: #991B1B; border-color: #991B1B; color: #fff; text-decoration: none; }
.btn.dl .ibtn-ico, .btn.gap-flip .ibtn-ico { width: 16px; height: 16px; min-width: 0; display: inline-block; }
a.btn[download]:not(.dl)::before { content: ""; width: 16px; height: 16px; flex: 0 0 16px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m7 10l5 5l5-5'/%3E%3C/g%3E%3C/svg%3E"); }
.btn.gap-flip { display: inline-flex; align-items: center; gap: 6px; }
.btn.gap-flip.on { background: var(--color-brand-charcoal, #1F2937); color: #fff; }
body.shot-mode .gap-tools, body.shot-mode .ax-switch { display: none !important; }
/* 同じページで 2 回目以降の同じ集計条件（凡例・読み方・注記）は画面では隠し、画像保存・印刷では出す */
.dup { display: none !important; }
body.shot-mode .dup { display: revert !important; }
@media print { .dup { display: revert !important; } }
@media (max-width: 1023px) { .ax-btn { padding: 12px 18px; } .ibtn { width: 36px; height: 36px; } }
@media print { .ax-switch, .gap-tools, .ibtn { display: none !important; } .ax-hide.ax-hide { display: revert !important; } }
.card.v2 .lead.ax-lead { font-size: var(--text-body-size); border-left: 3px solid var(--color-brand-charcoal, #1F2937); padding-left: 12px; margin: 0 0 calc(var(--space-unit-px) * 2); }
.card.v2 .lead.ax-lead .auto { font-size: var(--text-caption-size); color: var(--color-text-tertiary); margin-left: 6px; }
.figset { display: block; }
.card.v2 details.figdetails { margin: 0 0 calc(var(--space-unit-px) * 2); }
.card.v2 details.figdetails > summary { cursor: pointer; font-size: var(--text-small-size); color: var(--color-text-secondary); }
