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

    body {
      font-family: 'Rajdhani', sans-serif;
      background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
      color: #f1f5f9;
      min-height: 100vh;
      padding: 1rem;
    }

    .container {
      max-width: 1400px;
      margin: 0 auto;
    }

    /* ヘッダー */
    .header {
      position: relative;
      background: linear-gradient(to right, #2563eb, #9333ea);
      padding: 1.5rem;
      border-radius: 0.5rem;
      margin-bottom: 2rem;
      box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), inset 0 0 20px rgba(59, 130, 246, 0.1);
      border: 1px solid rgba(59, 130, 246, 0.3);
    }

    .header h1 {
      font-family: 'Orbitron', sans-serif;
      font-size: 2.5rem;
      font-weight: 900;
      text-align: center;
      text-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
      letter-spacing: 0.1em;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
    }

    .header p {
      text-align: center;
      color: #bfdbfe;
      margin-top: 0.5rem;
      font-size: 1.125rem;
    }

    /* バージョンバッジ */
    .version-badge {
      display: inline-block;
      background: rgba(34, 197, 94, 0.2);
      color: #86efac;
      padding: 0.25rem 0.75rem;
      border-radius: 1rem;
      font-size: 0.875rem;
      margin-left: 0.5rem;
      border: 1px solid #86efac;
    }

    /* 警告表示 */
    .warning {
      background: rgba(239, 68, 68, 0.2);
      border: 1px solid #ef4444;
      padding: 1rem;
      border-radius: 0.5rem;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: #fca5a5;
      font-weight: 600;
    }

    /* グリッドレイアウト */
    .grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr); /* 1fr だと中身の最小幅までカラムが広がり、スマホで全体の幅が崩れる */
      gap: 1.5rem;
      max-width: 480px;
      margin: 0 auto;
    }

    @media (min-width: 1024px) {
      .grid {
        grid-template-columns: repeat(3, minmax(0, 480px));
        max-width: 1500px;
        margin: 0 auto;
        justify-content: center;
      }
    }

    /* グリッド直下のカードは、中身が幅広でも親幅を超えない（広い表は内部で横スクロール） */
    .grid > * { min-width: 0; }

    /* カード */
    .card {
      background: rgba(30, 41, 59, 0.5);
      backdrop-filter: blur(10px);
      padding: 0.5rem 1rem;
      border-radius: 0.5rem;
      box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), inset 0 0 20px rgba(59, 130, 246, 0.1);
      border: 1px solid rgba(59, 130, 246, 0.3);
      transition: all 0.3s ease;
    }

    .card:hover {
      transform: translateY(-2px);
      box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    }

    .card h2 {
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 0;
      color: #60a5fa;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    /* フォーム要素 */
    .form-group {
      margin-bottom: 0.25rem;
    }

    .form-label {
      display: block;
      font-size: 0.8rem;
      font-weight: 600;
      color: #cbd5e1;
      margin-bottom: 0.125rem;
    }

    .form-input, .form-select {
      width: 100%;
      padding: 0.3rem 0.75rem;
      border-radius: 0.375rem;
      border: 1px solid rgba(59, 130, 246, 0.3);
      background: rgba(15, 23, 42, 0.6);
      backdrop-filter: blur(10px);
      color: white;
      font-family: 'Rajdhani', sans-serif;
      font-size: 1rem;
    }

    .form-input:focus, .form-select:focus {
      outline: none;
      border-color: #60a5fa;
      box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
    }

    /* ボタン */
    .btn {
      padding: 0.5rem 1rem;
      border-radius: 0.375rem;
      border: none;
      font-weight: 600;
      font-family: 'Rajdhani', sans-serif;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 1rem;
    }

    .btn-primary {
      background: #1e40af;
      color: white;
    }

    .btn-primary:hover {
      background: #2563eb;
      box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
    }

    .btn-primary.active {
      background: #2563eb;
      box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
    }

    .btn-secondary {
      background: #334155;
      color: #d1d5db;
    }

    .btn-secondary:hover {
      background: #475569;
    }

    /* トグルスイッチ */
    .toggle-container {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
      padding: 0.4rem 0.75rem;
      background: rgba(15, 23, 42, 0.6);
      border-radius: 0.375rem;
      border: 1px solid rgba(59, 130, 246, 0.3);
    }

    .toggle-switch {
      position: relative;
      width: 50px;
      height: 26px;
      background: #475569;
      border-radius: 13px;
      cursor: pointer;
      transition: background 0.3s;
    }

    .toggle-switch.active {
      background: #2563eb;
    }

    .toggle-slider {
      position: absolute;
      top: 2px;
      left: 2px;
      width: 22px;
      height: 22px;
      background: white;
      border-radius: 50%;
      transition: transform 0.3s;
    }

    .toggle-switch.active .toggle-slider {
      transform: translateX(24px);
    }

    .toggle-label {
      font-weight: 600;
      font-size: 1rem;
      color: #e2e8f0;
    }

    /* プリセットボタングリッド */
    .preset-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.5rem;
    }

    .preset-btn {
      background: #334155;
      color: white;
      padding: 0.75rem 1rem;
      border-radius: 0.375rem;
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
      font-family: 'Rajdhani', sans-serif;
      font-weight: 600;
    }

    .preset-btn:hover {
      background: #2563eb;
      box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
    }

    .preset-label {
      font-size: 0.75rem;
      color: #9ca3af;
      display: block;
      margin-bottom: 0.25rem;
    }

    .preset-heroes {
      font-size: 0.875rem;
    }

    /* 相性ボタン */
    .compatibility-buttons {
      display: flex;
      gap: 0.5rem;
    }

    .compatibility-buttons .btn {
      flex: 1;
    }

    /* 英雄カード */
    .hero-card {
      background: rgba(15, 23, 42, 0.6);
      padding: 0.5rem 1rem;
      border-radius: 0.5rem;
      border: 1px solid rgba(59, 130, 246, 0.2);
      margin-bottom: 0.5rem;
    }

    .hero-title {
      font-size: 1rem;
      font-weight: 700;
      color: #93c5fd;
      margin-bottom: 0.375rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    /* 兵種バッジ */
    .hero-type-badge {
      font-size: 0.75rem;
      padding: 0.125rem 0.5rem;
      border-radius: 0.25rem;
      font-weight: 600;
    }

    .type-land { 
      background: rgba(168, 85, 247, 0.2); 
      color: #c084fc; 
      border: 1px solid #c084fc; 
    }

    .type-sea { 
      background: rgba(59, 130, 246, 0.2); 
      color: #60a5fa; 
      border: 1px solid #60a5fa; 
    }

    .type-air { 
      background: rgba(34, 197, 94, 0.2); 
      color: #86efac; 
      border: 1px solid #86efac; 
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 120px;
      gap: 0.5rem;
      align-items: end;
    }

    /* タイタン装備 */
    .titan-section {
      background: rgba(15, 23, 42, 0.6);
      padding: 0.5rem 0.625rem;
      border-radius: 0.5rem;
      border: 1px solid rgba(59, 130, 246, 0.2);
      margin-bottom: 0.5rem;
    }

    .titan-hero-name {
      font-size: 1rem;
      font-weight: 700;
      color: #fde047;
      margin-bottom: 0;
    }

    .titan-slot {
      background: rgba(30, 41, 59, 0.5);
      padding: 0.4rem 0.75rem;
      border-radius: 0.375rem;
      margin-bottom: 0.4rem;
    }

    .titan-slot-header {
      display: flex;
      align-items: center;
      gap: 0.375rem;
      font-size: 0.8rem;
      font-weight: 600;
      color: #cbd5e1;
      margin-bottom: 0.25rem;
    }

    .titan-slot-icon {
      width: 20px;
      height: 20px;
      stroke: currentColor;
      fill: none;
    }

    .titan-slot-grid {
      display: grid;
      grid-template-columns: 1fr 120px;
      gap: 0.375rem;
      align-items: center;
    }

    /* 覚醒（タイタン装備と同じ配色に統一） */
    .awakening-section {
      background: rgba(15, 23, 42, 0.6);
      padding: 0.5rem 0.625rem;
      border-radius: 0.5rem;
      border: 1px solid rgba(59, 130, 246, 0.2);
      margin-bottom: 0.5rem;
    }

    .awakening-hero-name {
      font-size: 1rem;
      font-weight: 700;
      color: #fde047;
      margin-bottom: 0;
    }

    .awakening-skill-row {
      background: rgba(30, 41, 59, 0.5);
      padding: 0.4rem 0.75rem;
      border-radius: 0.375rem;
      margin-bottom: 0.4rem;
    }

    .awakening-skill-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.8rem;
      font-weight: 600;
      color: #cbd5e1;
      margin-bottom: 0.375rem;
    }

    .awakening-skill-value {
      color: #fde047;
      font-weight: 700;
    }




    .awakening-not-supported {
      font-size: 0.8rem;
      color: #64748b;
      font-style: italic;
      padding: 0.5rem 0.25rem;
    }

    /* 結果ボックス */
    .result-box {
      background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
      border-left: 3px solid #3b82f6;
      padding: 0.3rem 0.75rem;
      border-radius: 0.375rem;
      margin-bottom: 0.25rem;
    }

    .result-label {
      color: #9ca3af;
      font-size: 0.875rem;
      margin-bottom: 0.25rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .result-value {
      font-size: 1.25rem;
      font-weight: 700;
    }

    .result-increase {
      font-size: 0.75rem;
      color: #34d399;
      margin-left: 0.5rem;
    }

    .value-green { color: #86efac; }
    .value-red { color: #fca5a5; }
    .value-yellow { color: #fde047; }
    .value-orange { color: #fdba74; }
    .value-blue { color: #93c5fd; }
    .value-purple { color: #c084fc; }

    .result-highlight {
      background: linear-gradient(to right, rgba(127, 29, 29, 0.3), rgba(153, 27, 27, 0.3));
    }

    .result-highlight-green {
      background: linear-gradient(to right, rgba(20, 83, 45, 0.3), rgba(21, 128, 61, 0.3));
    }

    /* 結果表示の2列グリッド */
    .result-grid-2 {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.5rem;
    }

    .result-grid-2 .result-box {
      margin-bottom: 0;
    }

    /* タブ折りたたみ */
    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      user-select: none;
      padding: 0.2rem 0;
      margin-bottom: 0.25rem;
    }

    .card-header h2 {
      margin-bottom: 0;
    }

    .collapse-icon {
      font-size: 1.25rem;
      transition: transform 0.3s ease;
    }

    .collapse-icon.collapsed {
      transform: rotate(-90deg);
    }

    .card-content {
      overflow: hidden;
      transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .card-content.hidden {
      max-height: 0;
      opacity: 0;
      pointer-events: none;
    }

    /* アイコン */
    .icon {
      display: inline-block;
      width: 24px;
      height: 24px;
      vertical-align: middle;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
    }

    .icon-large {
      width: 40px;
      height: 40px;
    }

    /* スペーシング */
    .space-y-1 > * + * { margin-top: 0.125rem; }
    .space-y-2 > * + * { margin-top: 0.25rem; }
    .space-y-3 > * + * { margin-top: 0.25rem; }
    .space-y-4 > * + * { margin-top: 0.3rem; }
    .space-y-6 > * + * { margin-top: 0.6rem; }

    /* レスポンシブ調整 */
    @media (max-width: 640px) {
      .header h1 {
        font-size: 1.5rem;
      }
      
      .preset-grid {
        grid-template-columns: 1fr;
      }
    }

    /* ===== 覚醒スキルランク スライダー：0〜現在ランクの区間を着色（旧index.html内<style>から移行） ===== */
    .awakening-slider {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 22px;
      background: transparent;
      cursor: pointer;
      --fill: 0%;
    }
    .awakening-slider::-webkit-slider-runnable-track {
      height: 8px;
      border-radius: 999px;
      background: linear-gradient(to right, #facc15 0%, #f59e0b var(--fill), rgba(148,163,184,0.25) var(--fill), rgba(148,163,184,0.25) 100%);
    }
    .awakening-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 18px;
      height: 18px;
      margin-top: -5px;
      border-radius: 50%;
      background: #fff;
      border: 2px solid #f59e0b;
      box-shadow: 0 0 4px rgba(245,158,11,0.6);
    }
    .awakening-slider::-moz-range-track {
      height: 8px;
      border-radius: 999px;
      background: rgba(148,163,184,0.25);
    }
    .awakening-slider::-moz-range-progress {
      height: 8px;
      border-radius: 999px;
      background: linear-gradient(to right, #facc15, #f59e0b);
    }
    .awakening-slider::-moz-range-thumb {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: #fff;
      border: 2px solid #f59e0b;
      box-shadow: 0 0 4px rgba(245,158,11,0.6);
    }

    /* 覚醒非対応の英雄：名前と注記を横並び */
    .awakening-section-inline {
      display: flex;
      align-items: baseline;
      gap: 0.75rem;
      flex-wrap: wrap;
    }
    .awakening-section-inline .awakening-hero-name,
    .awakening-section-inline .awakening-not-supported { margin: 0; }
    .awakening-section-inline .awakening-not-supported { font-size: 0.75rem; }

    /* ===== 出力コーナー：増分表示 ===== */
    .increase-stack {
      display: inline-flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 0.1rem;
    }
    .result-increase-awakening { color: #f472b6; }
    .increase-row { display: block; font-size: 0.75rem; margin-top: 0.25rem; }
    .increase-row-awakening { font-size: 0.75rem; margin-top: 0.1rem; }
    .compat-increase { color: #fbbf24; }

    /* ===== 出力コーナー：結果ボックスのバリエーション ===== */
    .result-gold-20 { background: linear-gradient(to right, rgba(202, 138, 4, 0.2), rgba(234, 179, 8, 0.2)); }
    .result-gold-30 { background: linear-gradient(to right, rgba(202, 138, 4, 0.3), rgba(234, 179, 8, 0.3)); }
    .result-gold-40 { background: linear-gradient(to right, rgba(202, 138, 4, 0.4), rgba(234, 179, 8, 0.4)); margin-top: 0.5rem; }
    .result-box-muted { margin-top: 0.5rem; opacity: 0.8; }
    .result-box-trait { flex: 1 1 calc(50% - 0.25rem); min-width: 150px; opacity: 0.7; }
    .result-label-xs { font-size: 0.7rem; }
    .result-label-sub { font-size: 0.75rem; margin-top: 0.25rem; }
    .result-value-xs { font-size: 0.875rem; }
    .result-value-sm { font-size: 1rem; }
    .result-value-lg { font-size: 1.5rem; }
    .result-value-xl { font-size: 2rem; font-weight: 900; }
    .trait-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }

    /* クリックで説明を表示できる出力項目 */
    .result-clickable {
      cursor: pointer;
      transition: filter 0.2s ease, border-color 0.2s ease;
    }
    .result-clickable:hover { filter: brightness(1.2); border-left-color: #93c5fd; }
    .result-clickable:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }

    /* ===== 説明ポップアップ ===== */
    .stat-popup-overlay {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      background: rgba(2, 6, 23, 0.65);
      backdrop-filter: blur(3px);
    }
    .stat-popup {
      width: min(92vw, 420px);
      max-height: 85vh;              /* dvh非対応ブラウザ用 */
      max-height: 85dvh;             /* スマホのアドレスバー分を除いた実画面高さ基準 */
      display: flex;
      flex-direction: column;
      background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
      border: 1px solid rgba(59, 130, 246, 0.5);
      border-radius: 0.75rem;
      box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
      padding: 1.25rem 1.25rem 1rem;
    }
    .stat-popup-name { font-size: 1rem; font-weight: 700; color: #93c5fd; flex-shrink: 0; overflow-wrap: anywhere; }
    .stat-popup-value { font-size: 1.75rem; font-weight: 700; color: #fde047; margin: 0.15rem 0 0.75rem; flex-shrink: 0; overflow-wrap: anywhere; }
    .stat-popup-desc { font-size: 0.95rem; line-height: 1.6; color: #e2e8f0; white-space: pre-line;
      flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; /* 長文は説明欄だけスクロール */
      overflow-wrap: anywhere; padding-right: 0.25rem; }
    .stat-popup-desc.pending { color: #64748b; font-style: italic; }
    .stat-popup-close { display: block; margin: 1rem 0 0 auto; flex-shrink: 0; }

    /* ===== 編成メンバー表示・折りたたみサブパネル ===== */
    .party-strip {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
      padding: 0.4rem 0.5rem;
      background: rgba(15, 23, 42, 0.5);
      border-radius: 0.375rem;
      border: 1px solid rgba(99, 102, 241, 0.3);
    }
    .party-member { flex: 1; text-align: center; }
    .party-member-name { font-size: 0.95rem; font-weight: 700; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .party-member-lv { font-size: 0.75rem; color: #94a3b8; margin-top: 0.1rem; }

    .subpanel { margin-top: 0.5rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 0.5rem; overflow: hidden; }
    .subpanel-header {
      padding: 0.5rem 0.75rem;
      cursor: pointer;
      background: rgba(255,255,255,0.05);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .subpanel-title { font-size: 0.8rem; font-weight: 600; color: #94a3b8; }
    .collapse-icon-sm { font-size: 0.875rem; }
    .subpanel-body { padding: 0; max-height: 0; opacity: 0; overflow: hidden; transition: all 0.3s ease; }
    .subpanel-body.open { padding: 0.75rem; max-height: 3000px; opacity: 1; }

    /* ===== システム開発ログ ===== */
    .devlog-row {
      display: flex;
      flex-wrap: wrap;            /* 本文が収まらないとき（メタ情報が約3割を超えるとき）は下の行へ */
      align-items: flex-start;
      gap: 0.25rem 0.75rem;
      padding: 0.5rem 0.75rem;
      border-radius: 0.375rem;
      font-size: 0.875rem;
    }
    /* 日付＋バージョン＋カテゴリ（折り返さず1かたまりで表示） */
    .devlog-meta {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.25rem 0.75rem;
      flex: 0 0 auto;
    }
    .devlog-row:nth-child(odd) { background: rgba(255,255,255,0.03); }
    .devlog-date { color: #64748b; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .devlog-version { color: #fbbf24; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
    .devlog-badge {
      white-space: nowrap;
      padding: 0.1rem 0.5rem;
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 600;
      background: var(--cat-bg);
      color: var(--cat-fg);
      border: 1px solid var(--cat-fg);
    }
    /* カテゴリー配色（背景は同系色の薄色、文字・枠線は明るい色） */
    .devlog-cat-feature { --cat-fg: #7dd3fc; --cat-bg: rgba(14, 165, 233, 0.15); }  /* 機能：空色 */
    .devlog-cat-hero    { --cat-fg: #86efac; --cat-bg: rgba(34, 197, 94, 0.15); }   /* 英雄：緑 */
    .devlog-cat-balance { --cat-fg: #fca5a5; --cat-bg: rgba(239, 68, 68, 0.15); }   /* バランス：赤 */
    .devlog-cat-ui      { --cat-fg: #d8b4fe; --cat-bg: rgba(168, 85, 247, 0.15); }  /* UI：紫 */
    .devlog-cat-fix     { --cat-fg: #fdba74; --cat-bg: rgba(249, 115, 22, 0.15); }  /* 修正：橙 */
    .devlog-cat-dev     { --cat-fg: #5eead4; --cat-bg: rgba(20, 184, 166, 0.15); }  /* 開発：ティール */
    .devlog-cat-other   { --cat-fg: #cbd5e1; --cat-bg: rgba(148, 163, 184, 0.15); } /* その他：グレー */
    .devlog-note { margin-top: 0.75rem; font-size: 0.7rem; color: #64748b; }

    /* ===== フッター（クレジット・注意書き） ===== */
    .site-footer {
      margin-top: 2rem;
      padding: 1rem 1.25rem;
      border-top: 1px solid rgba(59, 130, 246, 0.3);
      font-size: 0.8rem;
      line-height: 1.7;
      color: #94a3b8;
      text-align: center;
    }
    .site-footer p { white-space: pre-line; }
    .site-footer p + p { margin-top: 0.4rem; }
    .site-footer a { color: #93c5fd; text-decoration: underline; }
    .footer-notice {
      display: inline-block;
      padding: 0.5rem 0.75rem;
      border: 1px solid rgba(251, 191, 36, 0.35);
      border-radius: 0.375rem;
      background: rgba(251, 191, 36, 0.06);
      color: #fcd34d;
    }
    .footer-copyright { color: #64748b; font-size: 0.75rem; }

    /* ===== 増分表示トグル（タイタン／覚醒トグル行の右側） ===== */
    .increase-toggle {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      cursor: pointer;
      user-select: none;
    }
    .increase-toggle-label { font-size: 0.8rem; font-weight: 600; color: #94a3b8; white-space: nowrap; }
    .toggle-switch-sm { width: 38px; height: 20px; border-radius: 10px; flex-shrink: 0; }
    .toggle-switch-sm .toggle-slider { width: 16px; height: 16px; }
    .toggle-switch-sm.active .toggle-slider { transform: translateX(18px); }

    /* 開発ログ：本文の改行を反映／ページ送り */
    /* 本文の基準幅を行の7割にしておく：メタ情報が約3割を超えると、本文は自動で下段に回る。
       横に並ぶ場合は残り幅いっぱいまで広がる（flex-grow）。 */
    .devlog-text { white-space: pre-line; flex: 1 1 70%; min-width: 0; overflow-wrap: anywhere; }
    .devlog-pager {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      margin-top: 0.75rem;
    }
    .devlog-pager .btn { padding: 0.3rem 0.9rem; font-size: 0.875rem; }
    .devlog-pager .btn:disabled { opacity: 0.4; cursor: default; }
    .devlog-pager-info { font-size: 0.875rem; color: #94a3b8; font-variant-numeric: tabular-nums; }

    /* 効果トグルがOFFのとき（タイタン／覚醒）：内容を薄くして操作不可にする */
    .section-disabled { opacity: 0.5; pointer-events: none; }

    /* ===== サイトメニュー（ヘッダー右上） ===== */
    .site-menu { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 50; }
    .site-menu-btn {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.35rem 0.7rem;
      border-radius: 0.375rem;
      border: 1px solid rgba(255, 255, 255, 0.35);
      background: rgba(15, 23, 42, 0.45);
      backdrop-filter: blur(6px);
      color: #f1f5f9;
      font-family: 'Rajdhani', sans-serif;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s ease;
    }
    .site-menu-btn:hover { background: rgba(15, 23, 42, 0.7); }
    .site-menu-icon { font-size: 1.1rem; line-height: 1; }
    .site-menu-panel {
      position: absolute;
      top: calc(100% + 0.4rem);
      right: 0;
      width: max-content;
      min-width: 13rem;
      max-width: min(86vw, 20rem);
      padding: 0.4rem;
      background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
      border: 1px solid rgba(59, 130, 246, 0.5);
      border-radius: 0.5rem;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(59, 130, 246, 0.3);
    }
    .site-menu-title { padding: 0.25rem 0.6rem 0.4rem; font-size: 0.75rem; font-weight: 600; color: #94a3b8; }
    .site-menu-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 0.55rem 0.6rem;
      border-radius: 0.375rem;
      color: #e2e8f0;
      font-size: 0.95rem;
      font-weight: 600;
      text-decoration: none;
    }
    a.site-menu-item:hover { background: rgba(37, 99, 235, 0.35); }
    .site-menu-item.current { color: #fde047; background: rgba(250, 204, 21, 0.08); }
    .site-menu-item.disabled { color: #64748b; cursor: default; }
    .site-menu-tag { font-size: 0.7rem; font-weight: 600; color: #94a3b8; white-space: nowrap; }
    .site-menu-item.current .site-menu-tag { color: #fde047; }

    @media (max-width: 640px) {
      /* スマホ：ボタンはアイコンのみ、タイトルと重ならないようヘッダー上部に余白を確保 */
      .header { padding-top: 2.9rem; }
      .site-menu-btn-label { display: none; }
      .site-menu-btn { padding: 0.35rem 0.6rem; }
    }
