  :root {
    --snow: #fffef9;
    --ice: #eef6fd;
    --sky: #1aa3e8;
    --sky-mid: #0d8fd4;
    --sky-deep: #0a6fa8;
    --marine: #006db3;
    --horizon: #5bc4f0;
    --apple: #e8312a;
    --apple-pale: #fdecea;
    --text-dark: #1a2533;
    --text-mid: #4a5568;
    --text-light: #718096;
    --border: #d0eaf8;
    --aurora: #2bbc8a;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--snow);
    color: var(--text-dark);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.7;
    transition: font-size 0.2s, background 0.3s;
  }

  body.size-large { font-size: 18px; }


  /* タブナビ */
  .page-tabs { background: var(--marine); }
  .page-tabs-inner {
    max-width: 1100px; margin: 0 auto;
    padding: 0 24px; display: flex; gap: 0; align-items: flex-end;
  }
  .page-tab {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Noto Sans JP', sans-serif;
    color: rgba(255,255,255,0.6); text-decoration: none;
    border-radius: 8px 8px 0 0;
    border: 1px solid transparent; border-bottom: none;
    cursor: pointer; transition: all 0.2s;
    background: transparent; margin-bottom: -1px;
  }
  .page-tab:hover { color: white; background: rgba(255,255,255,0.1); }
  .page-tab.active {
    color: var(--text-dark); background: var(--snow);
    border-color: rgba(255,255,255,0.2); font-weight: 500;
  }
  /* 議案一覧タブ：大きめ */
  .page-tab[data-page="main"] { padding: 12px 28px; font-size: 15px; }
  .page-tab[data-page="main"].active { font-size: 15px; }
  /* どうやって作ってるの？タブ：小さめ */
  .page-tab[data-page="howto"] { padding: 8px 16px; font-size: 12px; }
  .page-tab[data-page="about"] { padding: 8px 16px; font-size: 12px; }

  /* アコーディオン */
  .accordion-btn {
    display: flex; align-items: center; gap: 8px;
    background: none; border: none; cursor: pointer;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px; color: var(--sky-deep);
    padding: 14px 0 0; font-weight: 600;
    transition: color 0.2s;
  }
  .accordion-btn:hover { color: var(--marine); }
  .accordion-arrow { transition: transform 0.25s; display: inline-block; }
  .accordion-btn.open .accordion-arrow { transform: rotate(180deg); }
  .accordion-body {
    overflow: hidden; max-height: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    opacity: 0;
  }
  .accordion-body.open { max-height: 1200px; opacity: 1; }
  .accordion-inner { padding-top: 20px; }

  /* ヘッダー */
  header {
    background: var(--sky);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(13,143,212,0.25);
    transition: background 0.3s, box-shadow 0.3s;
  }

  .header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }

  .logo { display: flex; flex-direction: column; gap: 2px; }
  .logo-jp { font-family: 'Noto Serif JP', serif; font-size: 18px; font-weight: 600; letter-spacing: 0.05em; }
  .logo-sub { font-size: 10px; color: rgba(255,255,255,0.7); letter-spacing: 0.15em; }

  /* 文字モード切り替え */
  .text-mode-switcher { display: flex; gap: 4px; align-items: center; }
  .text-mode-label { color: rgba(255,255,255,0.75); font-size: 12px; margin-right: 4px; white-space: nowrap; }
  .text-mode-btn {
    padding: 8px 14px; border-radius: 14px;
    border: 1.5px solid rgba(255,255,255,0.4);
    background: transparent; color: white;
    font-family: 'Noto Sans JP', sans-serif; font-size: 14px;
    cursor: pointer; white-space: nowrap;
    min-height: 44px; min-width: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.2s;
  }
  .text-mode-btn:hover { background: rgba(255,255,255,0.15); }
  .text-mode-btn.active { background: white; color: var(--sky-deep); border-color: white; font-weight: 500; }

  /* ヒーロー */
  .hero {
    background: linear-gradient(170deg, var(--sky) 0%, var(--sky-mid) 50%, var(--marine) 100%);
    color: white;
    padding: 56px 24px 88px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
  }

  .hero::before {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 72px;
    background: var(--snow);
    clip-path: ellipse(60% 100% at 50% 100%);
    transition: background 0.3s;
  }

  .hero::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
  }

  .hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }

  .session-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
  }

  .hero h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(28px, 5.5vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
  }

  .hero-subtitle {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    color: #ffe066;
  }

  .hero-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 28px;
  }

  .hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
  .stat { display: flex; flex-direction: column; gap: 2px; }
  .stat-num { font-family: 'DM Serif Display', serif; font-size: 30px; line-height: 1; }
  .stat-label { font-size: 11px; color: rgba(255,255,255,0.65); letter-spacing: 0.06em; }

  /* フィルター */
  .filter-bar { max-width: 1100px; margin: 0 auto; padding: 28px 24px 0; }
  .filter-label { font-size: 11px; color: var(--text-light); letter-spacing: 0.12em; margin-bottom: 10px; text-transform: uppercase; }
  .filter-tags { display: flex; gap: 8px; flex-wrap: wrap; }
  /* アコーディオン矢印（PC では非表示） */
  .filter-toggle-arrow { display: none; }

  .tag-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 20px;
    border: 1.5px solid var(--border);
    background: white; font-size: 13px;
    color: var(--text-mid); cursor: pointer;
    transition: all 0.2s;
    font-family: 'Noto Sans JP', sans-serif;
  }
  .tag-btn:hover { border-color: var(--sky); color: var(--sky-deep); }
  .tag-btn.active { background: var(--sky); border-color: var(--sky); color: white; }
  .tag-icon { font-size: 14px; }

  /* セッションアコーディオン */
  #session-tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
  .session-group { display: flex; flex-direction: column; gap: 6px; }
  .session-group-body { display: none; flex-wrap: wrap; gap: 6px; padding-left: 4px; }
  .session-group-body.open { display: flex; }
  .session-arrow { font-size: 10px; margin-left: 4px; display: inline-block; transition: transform 0.2s; }
  .session-group-toggle.open .session-arrow { transform: rotate(180deg); }

  /* メイン */
  .main { max-width: 1100px; margin: 0 auto; padding: 28px 24px 80px; }

  .section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
  .section-title { font-family: 'Noto Serif JP', serif; font-size: 18px; font-weight: 400; letter-spacing: 0.05em; }
  .section-count { font-size: 12px; color: var(--text-light); }

  /* カード */
  .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

  .card {
    background: white; border-radius: 12px;
    border: 1px solid var(--border); padding: 22px;
    cursor: pointer; transition: all 0.25s;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
  }

  .card::before {
    content: ''; position: absolute;
    top: 0; left: 0; width: 3px; height: 100%;
    background: var(--border); transition: background 0.25s;
  }

  .card.highlight::before { background: var(--apple); }
  .card:hover { box-shadow: 0 8px 30px rgba(13,143,212,0.1); transform: translateY(-2px); border-color: var(--horizon); }
  .card:hover::before { background: var(--sky); }
  .card.highlight:hover::before { background: var(--apple); }

  .card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
  .card-tag { font-size: 11px; padding: 3px 10px; border-radius: 10px; font-weight: 500; letter-spacing: 0.04em; }
  .tag-welfare { background: #e0f7f0; color: #0d7a54; }
  .tag-education { background: #e0f0ff; color: #0a5fa8; }
  .tag-urban { background: #fff0e0; color: #a05a00; }
  .tag-environment { background: #e8fce8; color: #1a7a1a; }
  .tag-finance { background: var(--apple-pale); color: #c0200a; }
  .tag-safety { background: #f0e8ff; color: #5a1aaa; }
  .tag-fishery { background: #e0f4ff; color: #0066aa; }
  .tag-other { background: #f0f0f0; color: #555; }

  .card-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1em; font-weight: 600;
    line-height: 1.5; color: var(--text-dark); margin-bottom: 8px;
  }

  .card-summary { font-size: 0.87em; color: var(--text-mid); line-height: 1.75; margin-bottom: 14px; }

  .card-footer { display: flex; flex-direction: column; padding-top: 12px; border-top: 1px solid var(--ice); gap: 10px; margin-top: auto; }
  .card-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .card-status { display: flex; align-items: center; gap: 6px; font-size: 12px; }
  .status-dot { width: 7px; height: 7px; border-radius: 50%; }
  .status-passed { background: var(--aurora); }
  .status-majority { background: #e67e22; }
  .status-text-passed { color: var(--aurora); }
  .status-text-majority { color: #e67e22; }
  .status-rejected { background: #e74c3c; }
  .status-text-rejected { color: #e74c3c; }
  .card-vote { font-size: 11px; color: var(--text-light); background: var(--ice); padding: 3px 10px; border-radius: 8px; }
  .card-vote.controversial { background: #fdf0e8; color: #c0622b; }
  .card-detail-link {
    font-size: 11px; color: var(--sky-deep);
    display: inline-flex; align-items: center; gap: 4px;
    font-weight: 600; letter-spacing: 0.03em;
    background: var(--ice); border: 1.5px solid var(--horizon);
    border-radius: 20px; padding: 4px 12px;
    transition: all 0.2s; pointer-events: none;
  }
  .card:hover .card-detail-link {
    background: var(--sky); color: white; border-color: var(--sky);
  }

  /* モーダル */
  .modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(26,42,66,0.6); z-index: 200;
    backdrop-filter: blur(4px); padding: 24px; overflow-y: auto;
  }
  .modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }

  .modal {
    background: white; border-radius: 16px;
    max-width: 640px; width: 100%; margin: auto;
    overflow: hidden; box-shadow: 0 20px 60px rgba(26,42,66,0.3);
    animation: modalIn 0.25s ease;
  }

  @keyframes modalIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .modal-header {
    background: linear-gradient(135deg, var(--sky) 0%, var(--marine) 100%);
    color: white; padding: 26px 30px;
    transition: background 0.3s;
  }

  .modal-tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
  .modal-tag { font-size: 11px; padding: 3px 10px; border-radius: 10px; background: rgba(255,255,255,0.18); }
  .modal-title { font-family: 'Noto Serif JP', serif; font-size: 1.15em; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
  .modal-number { font-size: 11px; color: rgba(255,255,255,0.65); letter-spacing: 0.06em; }

  .modal-body { padding: 28px 30px; }
  .modal-section { margin-bottom: 24px; }

  .modal-section-label {
    font-size: 11px; color: var(--text-light);
    letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
  }
  .modal-section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

  .modal-summary {
    font-size: 0.97em; line-height: 1.85;
    background: var(--ice); padding: 16px 18px;
    border-radius: 10px; border-left: 3px solid var(--sky);
    transition: background 0.3s, border-color 0.3s;
  }

  .modal-reason { font-size: 0.93em; line-height: 1.8; color: var(--text-mid); }

  .modal-result-box { display: flex; align-items: center; gap: 14px; background: var(--ice); padding: 14px 18px; border-radius: 10px; }
  .result-icon { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
  .result-icon.passed { background: #e8f4f0; }
  .result-icon.majority { background: #fdf0e8; }
  .result-text { flex: 1; }
  .result-main { font-size: 0.97em; font-weight: 500; margin-bottom: 2px; }
  .result-detail { font-size: 12px; color: var(--text-light); }

  .modal-source-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px; font-size: 13px; color: var(--sky-mid);
    text-decoration: none; border-bottom: 1px solid var(--sky-mid); padding-bottom: 1px;
  }
  .modal-source-link:hover { color: var(--marine); border-color: var(--marine); }

  /* 関連記事 */
  .modal-news-link {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; background: #f0f7ff;
    border-radius: 8px; text-decoration: none;
    border: 1px solid var(--border); transition: background 0.2s;
  }
  .modal-news-link:hover { background: #e0efff; }
  .modal-news-icon { font-size: 20px; flex-shrink: 0; }
  .modal-news-text { flex: 1; }
  .modal-news-source { font-size: 11px; color: var(--text-light); margin-bottom: 3px; }
  .modal-news-title { font-size: 13px; color: var(--sky-deep); font-weight: 500; line-height: 1.45; }
  .modal-news-arrow { color: var(--sky-mid); font-size: 16px; }
  .modal-news-note { font-size: 11px; color: var(--text-light); margin-top: 8px; line-height: 1.7; }

  .modal-close {
    display: block; width: 100%; padding: 15px;
    background: var(--ice); border: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px; color: var(--text-mid);
    cursor: pointer; transition: background 0.2s;
  }
  .modal-close:hover { background: var(--border); }

  /* フッター */
  footer {
    background: var(--marine); color: rgba(255,255,255,0.5);
    text-align: center; padding: 32px 24px;
    font-size: 12px; line-height: 2.2;
  }
  footer a { color: white; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
  footer a:hover { color: #ffe066; }
  .footer-warning { color: #ff7070; font-weight: 500; font-size: 13px; }

  /* howtoページ */
  .howto-wrap { min-height: 60vh; }

  .howto-hero {
    background: linear-gradient(135deg, var(--marine) 0%, var(--sky-deep) 100%);
    color: white; padding: 48px 24px 56px;
  }
  .howto-hero-inner { max-width: 1100px; margin: 0 auto; }
  .howto-badge {
    display: inline-block; background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px; padding: 4px 14px;
    font-size: 12px; letter-spacing: 0.1em; margin-bottom: 14px;
  }
  .howto-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 300; line-height: 1.5; margin-bottom: 10px;
  }
  .howto-title strong { font-weight: 600; color: #ffe066; }
  .howto-subtitle { font-size: 14px; color: rgba(255,255,255,0.75); }

  .howto-content { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; }

  .howto-steps { display: flex; flex-direction: column; gap: 0; }

  .howto-step {
    display: flex; gap: 32px; align-items: flex-start;
    background: white; border-radius: 16px;
    border: 1px solid var(--border); padding: 32px;
    box-shadow: 0 4px 20px rgba(13,143,212,0.06);
  }
  .howto-arrow {
    text-align: center; font-size: 28px; color: var(--sky);
    padding: 8px 0; line-height: 1;
  }
  .howto-step-ill { flex-shrink: 0; width: 100px; display: flex; align-items: center; justify-content: center; }

  /* イラスト: パソコン */
  .ill-computer { display: flex; flex-direction: column; align-items: center; gap: 0; }
  .ill-screen {
    width: 72px; height: 50px; background: var(--ice);
    border-radius: 6px; border: 3px solid var(--marine);
    display: flex; align-items: center; justify-content: center;
    padding: 8px;
  }
  .ill-lines { display: flex; flex-direction: column; gap: 4px; width: 100%; }
  .ill-line { height: 4px; background: var(--sky-mid); border-radius: 2px; width: 100%; }
  .ill-line.short { width: 60%; }
  .ill-stand { width: 6px; height: 14px; background: var(--marine); }
  .ill-base { width: 44px; height: 6px; background: var(--marine); border-radius: 3px; }

  /* イラスト: がんばるAIロボット */
  .ill-robot-wrap {
    position: relative; display: inline-flex;
    flex-direction: column; align-items: center; gap: 4px;
  }
  /* 汗マーク💦 */
  .ill-sweat {
    position: absolute; top: -4px; right: -10px;
    font-size: 16px; line-height: 1;
    animation: sweatPop 1.4s ease-in-out infinite;
  }
  @keyframes sweatPop {
    0%,100% { transform: scale(1) rotate(-10deg); opacity: 0.7; }
    50% { transform: scale(1.2) rotate(5deg); opacity: 1; }
  }
  .ill-robot-head {
    position: relative;
    width: 54px; height: 46px; background: var(--sky);
    border-radius: 10px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px;
    border: 2px solid var(--sky-deep);
  }
  /* 鉢巻 */
  .ill-robot-head::before {
    content: '';
    position: absolute; top: 10px; left: -3px; right: -3px;
    height: 7px; background: #e8312a;
    border-radius: 2px; z-index: 1;
  }
  /* 鉢巻の結び目 */
  .ill-robot-head::after {
    content: '';
    position: absolute; top: 5px; right: -8px;
    width: 10px; height: 14px;
    background: #e8312a; border-radius: 2px 4px 4px 2px;
    transform: rotate(15deg);
  }
  .ill-robot-eyes { display: flex; gap: 10px; margin-top: 4px; }
  .ill-eye {
    width: 10px; height: 10px; background: white; border-radius: 50%;
    position: relative;
  }
  /* 目にハイライト */
  .ill-eye::after {
    content: ''; position: absolute; top: 1px; left: 2px;
    width: 3px; height: 3px; background: var(--sky-mid); border-radius: 50%;
  }
  .ill-robot-mouth { width: 22px; height: 5px; background: white; border-radius: 0 0 6px 6px; }

  .ill-robot-body {
    width: 62px; height: 50px; background: var(--marine);
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; gap: 6px;
    border: 2px solid var(--sky-deep);
  }
  .ill-robot-button { width: 11px; height: 11px; background: var(--horizon); border-radius: 50%; }
  .ill-robot-button.small { width: 7px; height: 7px; background: #ffe066; }

  /* 腕と鉛筆 */
  .ill-robot-arm-wrap {
    display: flex; align-items: flex-end; gap: 0;
    position: relative; margin-top: -8px;
  }
  .ill-robot-arm {
    width: 12px; height: 30px; background: var(--marine);
    border-radius: 4px; border: 2px solid var(--sky-deep);
    margin-left: 38px;
  }
  .ill-pencil {
    width: 6px; height: 22px;
    background: linear-gradient(to bottom, #ffe066 70%, #e8312a 70%);
    border-radius: 2px 2px 0 0; margin-left: 2px;
    position: relative;
  }
  .ill-pencil::after {
    content: '';
    position: absolute; bottom: -5px; left: 0; right: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 5px solid #e8a000;
  }

  /* メモ帳 */
  .ill-memo {
    width: 44px; min-height: 32px; background: white;
    border: 2px solid #ccc; border-radius: 3px; padding: 5px 4px;
    display: flex; flex-direction: column; gap: 4px;
    margin-top: 4px; margin-left: 8px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.08);
  }
  .ill-memo-line { height: 3px; background: #d0d0d0; border-radius: 2px; }
  .ill-memo-line.written { background: var(--sky-mid); width: 80%; }
  .ill-memo-line.writing {
    background: var(--sky-mid); width: 40%;
    animation: writing 1s ease-in-out infinite alternate;
  }
  @keyframes writing { from { width: 20%; } to { width: 70%; } }

  /* イラスト: ウェブページ */
  .ill-webpage {
    width: 80px; background: white; border-radius: 8px;
    border: 2px solid var(--marine); overflow: hidden;
  }
  .ill-webpage-bar {
    background: var(--marine); padding: 5px 6px;
    display: flex; gap: 4px; align-items: center;
  }
  .ill-dot { width: 6px; height: 6px; border-radius: 50%; }
  .ill-dot.red { background: #ff6b6b; }
  .ill-dot.yellow { background: #ffe066; }
  .ill-dot.green { background: var(--aurora); }
  .ill-webpage-body { padding: 6px; display: flex; flex-direction: column; gap: 5px; }
  .ill-card-mini { background: var(--ice); border-radius: 4px; padding: 5px; display: flex; flex-direction: column; gap: 3px; }
  .ill-card-tag { height: 5px; width: 50%; background: var(--apple); border-radius: 2px; }
  .ill-card-tag.blue { background: var(--sky); }
  .ill-card-text { height: 4px; background: var(--border); border-radius: 2px; }
  .ill-card-text.short { width: 70%; }

  .howto-step-body { flex: 1; }
  .howto-step-num {
    font-size: 11px; font-weight: 500; color: var(--sky-mid);
    letter-spacing: 0.15em; margin-bottom: 8px;
  }
  .howto-step-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.05em; font-weight: 600;
    line-height: 1.5; margin-bottom: 10px; color: var(--text-dark);
  }
  .howto-step-desc { font-size: 0.9em; color: var(--text-mid); line-height: 1.8; margin-bottom: 12px; }

  .howto-step-note {
    display: flex; gap: 8px; align-items: flex-start;
    background: #f0f7ff; border-radius: 8px; padding: 10px 14px;
    font-size: 12px; color: var(--text-mid); line-height: 1.7;
    border-left: 3px solid var(--sky-mid);
  }
  .howto-note-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

  .howto-step-chips { display: flex; gap: 8px; flex-wrap: wrap; }
  .howto-chip {
    background: var(--ice); border: 1px solid var(--border);
    border-radius: 14px; padding: 4px 12px;
    font-size: 12px; color: var(--text-mid);
  }

  /* CTAボックス */
  .howto-cta {
    margin-top: 40px; background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border-radius: 16px; padding: 36px 32px; text-align: center;
    border: 1px solid #ffe066;
  }
  .howto-cta-icon { font-size: 40px; margin-bottom: 10px; }
  .howto-cta-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3em; font-weight: 600;
    color: var(--text-dark); margin-bottom: 12px;
  }
  .howto-cta-desc { font-size: 0.93em; color: var(--text-mid); line-height: 1.85; max-width: 560px; margin: 0 auto 20px; }
  .howto-learn-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .howto-learn-btn {
    display: inline-flex; align-items: center;
    padding: 10px 22px; background: var(--marine);
    color: white; border-radius: 20px; text-decoration: none;
    font-size: 13px; font-weight: 500; transition: background 0.2s;
  }
  .howto-learn-btn:hover { background: var(--sky-deep); }

  /* ===== 通常モード：技術スタック表示 ===== */
  .tech-pipeline {
    display: flex; align-items: stretch; gap: 0;
    background: #f8fafd; border-radius: 16px;
    padding: 32px 24px; margin-bottom: 40px;
    border: 1px solid #dde8f5;
    flex-wrap: wrap; justify-content: center;
  }
  .tech-stage {
    flex: 1; min-width: 180px; max-width: 240px;
    background: white; border-radius: 12px;
    padding: 24px 20px; text-align: center;
    border: 1px solid #e0eaf5;
    box-shadow: 0 2px 8px rgba(26,163,232,0.06);
    display: flex; flex-direction: column; justify-content: flex-start;
  }
  .tech-stage-icon { font-size: 32px; margin-bottom: 8px; }
  .tech-stage-label {
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
    color: var(--sky); text-transform: uppercase; margin-bottom: 4px;
  }
  .tech-stage-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1em; color: var(--text-dark);
    margin-bottom: 10px; font-weight: 600;
  }
  .tech-stage-desc { font-size: 12px; color: var(--text-mid); line-height: 1.7; }
  .tech-pipeline-arrow {
    font-size: 24px; color: #aac4de; padding: 0 8px;
    display: flex; align-items: center; padding-top: 60px;
    flex-shrink: 0;
  }
  .tech-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 0; }
  .tech-detail-block {
    background: white; border-radius: 14px;
    border: 1px solid #e0eaf5;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .tech-detail-header {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(90deg, #f0f7fc 0%, #f8fbfe 100%);
    border-bottom: 1px solid #e0eaf5;
  }
  .tech-detail-icon { font-size: 20px; }
  .tech-detail-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1em; font-weight: 600; color: var(--text-dark);
  }
  .tech-detail-body { padding: 20px 24px; }
  .tech-detail-body p { font-size: 0.9em; color: var(--text-mid); line-height: 1.85; margin: 0 0 14px; }
  .tech-detail-body code {
    font-family: 'SFMono-Regular', 'Consolas', monospace;
    background: #f0f4f8; color: var(--marine);
    padding: 1px 5px; border-radius: 4px; font-size: 0.88em;
  }
  .tech-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  .tech-tag {
    display: inline-flex; align-items: center;
    padding: 4px 12px; background: #eaf4fb;
    color: var(--marine); border-radius: 20px;
    font-size: 12px; font-weight: 500;
    border: 1px solid #cce5f5;
  }
  .tech-note {
    background: #f8fafd; border-radius: 8px;
    padding: 12px 16px; font-size: 12px; color: var(--text-mid);
    line-height: 1.7; border-left: 3px solid var(--sky);
  }
  .tech-note-label { font-weight: 700; color: var(--sky-deep); margin-right: 6px; }
  .tech-cta {
    background: linear-gradient(135deg, #f0f7fc 0%, #e8f3fa 100%) !important;
    border-color: #cce5f5 !important;
  }

  /* ===== 制作背景セクション ===== */
  .about-section {
    margin-top: 48px; padding-top: 48px;
    border-top: 2px solid var(--ice);
  }
  .about-section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2em; font-weight: 600; color: var(--text-dark);
    margin-bottom: 24px; display: flex; align-items: center; gap: 10px;
  }
  .about-section-title::before { content: ''; display: block; width: 4px; height: 1.2em; background: var(--sky); border-radius: 2px; }
  .about-block {
    background: white; border-radius: 14px;
    border: 1px solid var(--border);
    padding: 28px 32px; margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .about-block-label {
    font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
    color: var(--sky); text-transform: uppercase; margin-bottom: 10px;
  }
  .about-block p {
    font-size: 0.92em; color: var(--text-mid);
    line-height: 1.95; margin: 0;
  }
  .about-credit {
    background: linear-gradient(135deg, #f8fafd 0%, #f0f7fc 100%);
    border: 1px solid #dde8f5; border-radius: 14px;
    padding: 24px 32px;
    display: flex; gap: 18px; align-items: flex-start;
  }
  .about-credit-icon { font-size: 28px; flex-shrink: 0; }
  .about-credit-body { flex: 1; }
  .about-credit-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.95em; font-weight: 600; color: var(--text-dark); margin-bottom: 8px;
  }
  .about-credit-desc {
    font-size: 0.88em; color: var(--text-mid); line-height: 1.85;
  }
  .about-credit-link {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--sky); font-size: 12px; font-weight: 500;
    text-decoration: none; margin-top: 8px;
  }
  .about-credit-link:hover { color: var(--marine); }

  @media (max-width: 800px) {
    .tech-pipeline { flex-direction: column; gap: 16px; }
    .tech-pipeline-arrow { padding-top: 0; transform: rotate(90deg); align-self: center; }
    .tech-stage { max-width: 100%; }
  }

  @media (max-width: 600px) {
    .howto-step { flex-direction: column; gap: 20px; padding: 20px; }
    .howto-step-ill { width: 100%; flex-direction: row; justify-content: flex-start; }
  }

  @media (max-width: 600px) {
    .cards { grid-template-columns: 1fr; }
    .hero-stats { gap: 20px; }
    .hero { padding: 44px 20px 72px; }
    .header-inner { padding: 12px 16px; }
    .modal-body { padding: 20px; }
    .modal-header { padding: 20px; }
    /* ナビゲーション: 1行に収める・縦位置を揃える */
    .page-tabs-inner { padding: 0 4px; flex-wrap: nowrap; align-items: stretch; }
    .page-tab { flex: 1; justify-content: center; text-align: center; gap: 3px; }
    .page-tab[data-page="main"] { font-size: 11px; padding: 10px 4px; }
    .page-tab[data-page="howto"] { font-size: 11px; padding: 10px 4px; }
    .page-tab[data-page="about"] { font-size: 11px; padding: 10px 4px; }

    /* フィルターアコーディオン (Change 6) */
    .filter-toggle-arrow {
      display: inline-block;
      font-size: 10px;
      margin-left: 6px;
      transition: transform 0.25s;
    }
    .filter-label {
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border);
      user-select: none;
    }
    .filter-label.open .filter-toggle-arrow { transform: rotate(180deg); }
    .filter-tags { display: none; padding-top: 12px; }
    .filter-tags.open { display: flex; }

    /* 議案カード: パディング・間隔 */
    .card { padding: 20px 18px; }
    .cards { gap: 16px; }
  }

  /* ===== 製作者プロフィール ===== */
  .profile-card {
    margin-top: 40px;
    background: white; border-radius: 16px;
    border: 1px solid var(--border);
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .profile-header {
    display: flex; align-items: center; gap: 20px; margin-bottom: 20px;
  }
  .profile-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    border: 2px solid var(--horizon);
  }
  .profile-name-block { display: flex; flex-direction: column; gap: 4px; }
  .profile-label { font-size: 10px; color: var(--text-light); letter-spacing: 0.12em; text-transform: uppercase; }
  .profile-name { font-family: 'Noto Serif JP', serif; font-size: 1.3em; font-weight: 600; color: var(--text-dark); }
  .profile-origin { font-size: 12px; color: var(--text-mid); margin-top: 2px; }
  .profile-divider { border: none; border-top: 1px solid var(--ice); margin: 0 0 16px; }
  .profile-title-row {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px; flex-wrap: wrap;
  }
  .profile-title-badge {
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    color: var(--marine); background: var(--ice);
    border: 1px solid var(--border); border-radius: 20px;
    padding: 3px 10px;
  }
  .profile-hobby { font-size: 12px; color: var(--text-mid); }
  .profile-contact-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    color: var(--text-light); text-transform: uppercase; margin-bottom: 10px;
  }
  .profile-sns-note { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
  /* SNSアイコン横並び */
  .profile-sns-row { display: flex; gap: 10px; margin-bottom: 16px; }
  .profile-sns-link {
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none; color: var(--text-mid);
    font-size: 13px; font-weight: 500;
    padding: 8px 14px; border-radius: 20px;
    border: 1.5px solid var(--border); background: white;
    transition: all 0.2s; position: relative;
  }
  .profile-sns-link:hover { border-color: var(--sky); background: #f0f7fc; color: var(--marine); }
  .profile-sns-icon { display: flex; align-items: center; justify-content: center; line-height: 1; }
  .note-badge {
    display: flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: #41C9B4; color: white;
    font-size: 11px; font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif; line-height: 1;
  }
  /* PC: ラベル非表示、ツールチップ表示 */
  .profile-sns-label { display: none; }
  .profile-sns-link::after {
    content: attr(data-tooltip);
    position: absolute; bottom: calc(100% + 6px); left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75); color: white;
    font-size: 11px; padding: 3px 8px; border-radius: 4px;
    white-space: nowrap; opacity: 0; pointer-events: none;
    transition: opacity 0.15s;
  }
  .profile-sns-link:hover::after { opacity: 1; }
  /* お仕事依頼リンク */
  .profile-inquiry-link {
    display: block; text-align: center;
    padding: 10px 16px; border-radius: 10px;
    border: 1.5px solid var(--sky); background: var(--ice);
    color: var(--marine); font-size: 13px; font-weight: 600;
    text-decoration: none; transition: all 0.2s;
  }
  .profile-inquiry-link:hover { background: var(--sky); color: white; }
  /* SP: ラベル表示 */
  @media (max-width: 600px) {
    .profile-sns-label { display: inline; }
    .profile-sns-link::after { display: none; }
  }

  /* ===== フローティングメニュー ===== */
  .float-menu-btn {
    position: fixed; bottom: 24px; right: 24px; z-index: 900;
    display: flex; align-items: center; gap: 6px;
    background: var(--sky); color: white;
    border: none; border-radius: 24px;
    padding: 12px 20px; font-size: 14px; font-weight: 600;
    font-family: 'Noto Sans JP', sans-serif;
    cursor: pointer; letter-spacing: 0.04em;
    box-shadow: 0 4px 16px rgba(26,163,232,0.35);
    min-height: 48px;
    opacity: 0; transform: translateY(10px); pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s;
  }
  .float-menu-btn.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .float-menu-btn.visible:hover { background: var(--sky-deep); transform: translateY(-2px); }

  /* フローティング出現時にヘッダーの文字サイズ切替を非表示 */
  body.float-visible #header-size-switcher { opacity: 0; pointer-events: none; transition: opacity 0.25s; }
  #header-size-switcher { transition: opacity 0.25s; }

  .float-menu-backdrop {
    display: none;
    position: fixed; inset: 0; z-index: 910;
  }
  .float-menu-backdrop.open { display: block; }

  .float-menu-popup {
    position: fixed; bottom: 80px; right: 24px; z-index: 920;
    display: none;
    background: white; border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    padding: 12px; min-width: 180px;
    flex-direction: column; gap: 4px;
  }
  .float-menu-popup.open { display: flex; }

  .float-menu-section { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
  .float-menu-section + .float-menu-section { border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }
  .float-menu-label { font-size: 10px; color: var(--text-light); letter-spacing: 0.1em; text-transform: uppercase; padding: 0 8px 4px; }

  .float-menu-item {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 10px 12px;
    background: none; border: none; border-radius: 10px;
    font-family: 'Noto Sans JP', sans-serif; font-size: 14px;
    color: var(--text-dark); cursor: pointer; text-align: left;
    transition: background 0.15s;
  }
  .float-menu-item:hover { background: var(--ice); }
  .float-menu-item.active { color: var(--sky); font-weight: 600; }

  .float-menu-size-row { display: flex; gap: 6px; padding: 2px 8px 4px; }
  .float-size-btn {
    flex: 1; padding: 8px 0; border-radius: 10px;
    border: 1.5px solid var(--border);
    background: none; color: var(--text-mid);
    font-family: 'Noto Sans JP', sans-serif; font-size: 13px;
    cursor: pointer; transition: all 0.15s;
  }
  .float-size-btn:hover { border-color: var(--sky); color: var(--sky); }
  .float-size-btn.active { background: var(--sky); border-color: var(--sky); color: white; font-weight: 600; }
