
  /* ========== ページヘッダー ========== */
  .result-hero {
    background: linear-gradient(135deg, #0d2555 0%, #1a3a7c 100%);
    padding: 28px 20px 60px;
    position: relative;
  }

  .result-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 32px;
    background: var(--c-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
  }

  .result-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
  }

  .result-hero-bread {
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .result-hero-bread a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
  }

  .result-hero-bread a:hover {
    color: #fff;
  }

  .result-hero-title {
    font-size: clamp(18px, 3.5vw, 26px);
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .result-hero-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
  }

  /* ========== ラップ ========== */
  .result-wrap {
    max-width: var(--max-width);
    margin: -28px auto 0;
    padding: 0 20px 80px;
    position: relative;
    z-index: 10;
  }

  /* ========== サマリーバー ========== */
  .summary-bar {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
  }

  .summary-bar-item {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 13px;
    color: var(--c-muted);
  }

  .summary-bar-item strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-accent);
  }

  /* ========== 送信完了バナー ========== */
  .submitted-banner {
    background: var(--c-success-bg);
    border: 1px solid #5dcaa5;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-success);
  }

  /* ========== セクションタイトル ========== */
  .sec-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--c-accent);
    margin-bottom: 20px;
    margin-top: 36px;
  }

  .sec-title-weekly {
    border-color: var(--c-warn);
  }

  /* ========== 質問ブロック ========== */
  .q-block {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
  }

  .q-block-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--c-accent);
    letter-spacing: .06em;
    margin-bottom: 5px;
  }

  .q-block-num-weekly {
    color: var(--c-warn);
  }

  .q-block-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  /* ========== Yes/No 結果バー ========== */
  .yn-result-wrap {
    margin-bottom: 16px;
  }

  .yn-result-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 48px;
    margin-bottom: 10px;
  }

  .yn-bar-yes {
    background: var(--c-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    transition: flex 0.6s ease;
    min-width: 40px;
  }

  .yn-bar-no {
    background: var(--c-accent2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    transition: flex 0.6s ease;
    min-width: 40px;
  }

  .yn-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--c-muted);
  }

  .yn-labels .yn-yes-lbl {
    color: var(--c-success);
    font-weight: 600;
    font-size: 18px;
  }

  .yn-labels .yn-no-lbl {
    color: var(--c-accent2);
    font-weight: 600;
    font-size: 18px;
  }

  .yn-today-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--c-muted);
    background: var(--c-bg);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-top: 8px;
  }

  /* ========== 棒グラフ（CSS横棒） ========== */
  .bar-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .bar-row {}

  .bar-row-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 5px;
  }

  .bar-row-label {
    font-weight: 500;
  }

  .bar-row-pct {
    color: var(--c-muted);
  }

  .bar-track {
    background: var(--c-border);
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
  }

  .bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--c-accent);
    transition: width .8s cubic-bezier(.4, 0, .2, 1);
  }

  .bar-fill-weekly {
    background: var(--c-warn);
  }

  /* ========== タブナビ（毎週切替） ========== */
  .tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 1.5px solid var(--c-border);
    margin-bottom: 20px;
  }

  .tab-btn {
    padding: 9px 20px;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: var(--c-muted);
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    transition: color .12s;
  }

  .tab-btn.active {
    color: var(--c-warn);
    border-bottom-color: var(--c-warn);
  }

  .tab-btn:hover:not(.active) {
    color: var(--c-text);
  }

  /* ========== Chart.js ラップ ========== */
  .chart-wrap {
    position: relative;
    width: 100%;
    height: 240px;
    margin-top: 20px;
  }

  .chart-wrap-sm {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: 16px;
  }

  /* ========== 属性クロス集計 ========== */
  .cross-section {
    margin-top: 20px;
  }

  .cross-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }

  .cross-tab-btn {
    padding: 6px 14px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    color: var(--c-muted);
    cursor: pointer;
    transition: all .12s;
  }

  .cross-tab-btn.active {
    background: var(--c-accent-light);
    border-color: var(--c-accent);
    color: var(--c-accent);
  }

  .cross-pane {
    display: none;
  }

  .cross-pane.active {
    display: block;
  }

  .cross-row {
    display: grid;
    grid-template-columns: 90px 1fr 90px;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
  }

  .cross-label {
    color: var(--c-muted);
    font-weight: 500;
    white-space: nowrap;
  }

  .cross-track {
    display: flex;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    gap: 1px;
  }

  .cross-yes {
    background: var(--c-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    font-weight: 700;
    min-width: 20px;
  }

  .cross-no {
    background: var(--c-accent2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    font-weight: 700;
    min-width: 20px;
  }

  .cross-nums {
    font-size: 11px;
    color: var(--c-muted);
    text-align: right;
    white-space: nowrap;
  }

  /* ========== SNSシェア ========== */
  .share-row {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s;
  }

  .share-btn:hover {
    opacity: .85;
    text-decoration: none;
  }

  .share-x {
    background: #000;
    color: #fff;
  }

  .share-line {
    background: #06C755;
    color: #fff;
  }

  .share-copy {
    background: var(--c-bg);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    cursor: pointer;
    font-family: var(--font);
  }

  /* ========== 空データ ========== */
  .no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--c-muted);
    font-size: 14px;
  }

  /* ========== レスポンシブ ========== */
  @media (max-width: 560px) {
    .cross-row {
      grid-template-columns: 70px 1fr 70px;
      font-size: 12px;
    }

    .yn-result-bar {
      height: 40px;
    }
  }

    @media (max-width: 500px) {
  .yn-labels .yn-yes-lbl {
    font-size: 14px;
  }
  .yn-labels .yn-no-lbl {
    font-size: 14px;
  }
    }
