:root {
        --bg: #f6f3ec;
        --surface: #fffdf8;
        --surface2: #efe9db;
        --ink: #232733;
        --ink-soft: #4c5265;
        --line: #d9d2c0;
        --accent: #2e5e8c;
        --accent-ink: #ffffff;
        --gold: #a8741a;
        
        --chip: #e8e2d2;
        --danger: #a03a2a;
        --beta-bg: #dde5ec;
        --beta-ink: #3f5a75;
        --hit: rgba(168, 116, 26, 0.32);
        --shadow: 0 1px 3px rgba(35, 39, 51, 0.12);
      }
      @media (prefers-color-scheme: dark) {
        :root {
          --bg: #16181f;
          --surface: #1f222c;
          --surface2: #262a36;
          --ink: #eceaf2;
          --ink-soft: #b9bccb;
          --line: #3a3f52;
          --accent: #7db3e8;
          --accent-ink: #101623;
          --gold: #e0aa4e;
          
          --chip: #2c3142;
          --danger: #e08a76;
          --beta-bg: #2f3f4f;
          --beta-ink: #bcd2e4;
          --hit: rgba(224, 170, 78, 0.38);
          --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        }
      }
      * { box-sizing: border-box; }
      html { -webkit-text-size-adjust: 100%; }
      body {
        margin: 0;
        background: var(--bg);
        color: var(--ink);
        font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
        line-height: 1.65;
        font-size: 16px;
      }
      a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
      .wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px 40px; }
      /* 色チップ：色名の前に付ける小さい色見本。薄い色でも見えるよう枠線を付ける。 */
      .color-chip { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--ink-soft); vertical-align: -1px; margin-right: 5px; flex: none; }
      /* 逆引きの色ボタン：チップ＋色名のタップできるボタン。選択中は枠を強調する。 */
      .color-btn { display: inline-flex; align-items: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; font-family: inherit; cursor: pointer; margin: 0 6px 8px 0; min-height: 40px; }
      .color-btn .color-chip { margin-right: 0; }
      .color-btn[aria-pressed="true"] { border: 2px solid var(--accent); padding: 6px 13px; font-weight: 700; }
      .cross-sp-btn { margin: 0 6px 8px 0; }
      .cross-sp-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
      h4.subhead { font-size: 16.5px; margin: 24px 0 8px; padding-bottom: 3px; border-bottom: 1px solid var(--line); }
      .cross-step-title { font-weight: 700; margin: 16px 0 4px; }
      .step-line { margin: 4px 0 4px 1em; }
      .muted { color: var(--ink-soft); }
      .small { font-size: 13px; }
      .legend {
        font-size: 13px; color: var(--ink-soft);
        border: 1px solid var(--line); background: var(--surface);
        border-radius: 8px; padding: 8px 12px; margin: 14px 0 18px;
      }
      .back-row { margin: 14px 0 4px; font-size: 14px; }
      h2.page-title { font-size: 26px; margin: 6px 0 4px; letter-spacing: 0.02em; }
      h2.page-title .en { font-size: 12px; color: var(--gold); letter-spacing: 0.22em; margin-left: 0; font-weight: 700; }
      .page-lead { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 14px; }
      /* ページごとの最終更新（1.52.2、フォーム受付#298）：見出し直下の小さい1行。
         route() の共通後処理で中央注入する（.page-updated）。 */
      .page-updated { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 12px; }
      .page-lead + .page-updated, .lead-list + .page-updated { margin-top: -8px; }
      .lead-list { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 14px; padding-left: 1.3em; }
      .lead-list li { margin: 2px 0; }
      h3.subhead { font-size: 19px; margin: 28px 0 10px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
      h3.subhead .cnt { font-size: 13px; color: var(--ink-soft); font-weight: 400; }
      /* header nav */
      .topnav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
      .topnav .inner { max-width: 1060px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
      .topnav .brand { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 16px; white-space: nowrap; }
      .topnav .brand .star { color: var(--gold); }
      .lite-badge { display: inline-block; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
      @media (prefers-color-scheme: dark) { .lite-badge { color: #241a05; } }
      .topnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0; padding: 0; font-size: 13.5px; }
      .topnav ul a { color: var(--ink-soft); text-decoration: none; }
      .topnav ul a:hover { color: var(--accent); text-decoration: underline; }
      /* メニューのグループ見出し：ナビ項目は全幅で DOM 順（見出し帯の直後に
         そのグループの所属リンク）に並べる。広い画面では見出し帯を出さず、
         スマホでは見出し帯でグループごとに区切る。HTML 側の data-dord と
         --dord はリリース版変換のアンカーとして残し、CSS の並び替えには使わない。 */
      .topnav .nav-group-head { display: none; }
      /* グループ見出しボタン（1.71.0）：土台はラベルと見分けがつかない見た目にし、
         開閉の効き目（矢印・隠し）は各幅の指定側で付ける（スマホ幅は1.71.0、
         パソコン幅のサイドバーは1.72.5で追加）。 */
      .topnav .nav-group-toggle { display: block; width: 100%; margin: 0; padding: 0; background: none; border: none; font: inherit; color: inherit; letter-spacing: inherit; text-align: left; cursor: default; }
      .topnav .nav-group-arrow { display: none; }
      @media (prefers-reduced-motion: reduce) { .topnav .nav-group-arrow { transition: none; } }
      /* パソコン幅のヘッダー絞り込み（1.47.14）：直接並べるのは6件だけにし、
         残りは .nav-pc-hide で隠す（行き先はトップのハブのカードから辿れる）。
         スマホ幅（max-width: 640px）のメニュー内一覧は全件のまま。 */
      @media (min-width: 641px) {
        .topnav ul li.nav-pc-hide { display: none; }
      }
      /* ハンバーガーボタン：スマホ幅だけ出す（広い画面では従来のナビ表示のまま） */
      .nav-toggle { display: none; }
      /* 常設の検索窓（1.22.1、#64）：デスクトップではブランド行の右端に小さく置く。
         窓はジャンプ専用で、入力は検索ページ側のキーワード欄が引き受ける。 */
      .nav-search { display: flex; align-items: center; gap: 6px; margin-left: auto; }
      .nav-search input { font-family: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; width: 150px; }
      .nav-search button { background: var(--surface2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; font-size: 13.5px; font-weight: 700; font-family: inherit; cursor: pointer; white-space: nowrap; }
      @media (max-width: 640px) {
        .nav-toggle { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; background: var(--surface2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; }
        /* 検索窓は2行目に幅いっぱい（ブランド＋☰の行を圧迫しない） */
        .nav-search { flex-basis: 100%; margin-left: 0; }
        .nav-search input { flex: 1; width: auto; }
        .topnav ul { display: none; width: 100%; flex-direction: column; flex-wrap: nowrap; gap: 0; }
        /* 開いた一覧は、モバイルのヘッダー全体（サイト名＋ボタンの行と、2行目に回る検索窓の行で
           合計 ≒ 110px）を除いた画面の高さに収め、はみ出す分は一覧の中で縦スクロールできるように
           する（一番下のリンクまで届く）。検索窓の分を差し引いていないと、一覧の下端が画面外に
           はみ出し、最後の項目までスクロールしても届かない（#90）。
           safe-area-inset-bottom も差し引き、末尾に余白を付けて最後の項目が画面端に張り付かない
           ようにする。慣性スクロール有効。スクロールが本文側へ伝わらないよう overscroll-behavior
           も付ける。 */
        .topnav.nav-open ul { display: flex; box-sizing: border-box; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px - env(safe-area-inset-bottom, 0px)); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
        .topnav ul li { border-top: 1px solid var(--line); }
        .topnav ul li[data-dord] { order: 0; }
        .topnav ul a { display: block; padding: 10px 4px; font-size: 15px; }
        .topnav .nav-group-head { display: block; background: var(--surface2); border-top: 1px solid var(--line); }
        .topnav .nav-group-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 4px 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); cursor: pointer; }
        .topnav .nav-group-head:first-child .nav-group-toggle { padding-top: 8px; }
        .topnav .nav-group-arrow { display: inline-block; font-size: 11px; transition: transform 0.2s ease; }
        .topnav .nav-group-toggle[aria-expanded="false"] .nav-group-arrow { transform: rotate(-90deg); }
        /* グループを閉じた項目の隠しはスマホ幅だけ（PC幅ではクラスが残っても隠れない） */
        .topnav ul li.nav-group-hidden { display: none; }
      }
      /* 1.66.0：パソコン表示は上部ナビを左サイドバー帯にする。スマホ表示は従来どおり。 */
      @media (min-width: 641px) {
        body { padding-left: 208px; }
        .topnav { position: fixed; top: 0; left: 0; bottom: 0; width: 208px; border-bottom: none; border-right: 1px solid var(--line); overflow-y: auto; }
        .topnav .inner { max-width: none; margin: 0; padding: 14px 12px 20px; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 12px; }
        .nav-search { margin-left: 0; width: 100%; flex-wrap: nowrap; }
        .nav-search input { flex: 1; width: auto; min-width: 0; }
        .topnav ul { flex-direction: column; flex-wrap: nowrap; gap: 0; width: 100%; font-size: 14px; }
        .topnav ul li { order: 0; }
        .topnav ul li.nav-pc-hide { display: block; }
        /* グループを閉じた項目の隠し（1.72.5）：サイドバーでも見出しの開閉を効かせる。
           nav-pc-hide の display:block に勝てるよう、複合セレクタも併記する。 */
        .topnav ul li.nav-group-hidden, .topnav ul li.nav-pc-hide.nav-group-hidden { display: none; }
        .topnav .nav-group-head { display: block; padding: 7px 8px 5px; margin-top: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); background: var(--surface2); border-radius: 6px; }
        .topnav .nav-group-head:first-child { margin-top: 0; }
        /* PC幅でも見出しボタンは開閉ボタンとして出す（1.72.5）：矢印とポインターを付け、
           押せることが分かる見た目にする。初期状態は全開で従来どおり。 */
        .topnav .nav-group-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; }
        .topnav .nav-group-arrow { display: inline-block; font-size: 11px; transition: transform 0.2s ease; }
        .topnav .nav-group-toggle[aria-expanded="false"] .nav-group-arrow { transform: rotate(-90deg); }
        .topnav ul a { display: block; padding: 7px 8px; border-radius: 6px; }
      }
      /* hero */
      .hero { padding: 26px 0 6px; }
      .hero h1 { font-size: 34px; margin: 0 0 6px; letter-spacing: 0.03em; }
      .hero h1 .star { color: var(--gold); }
      .hero .sub { color: var(--ink-soft); margin: 0 0 14px; font-size: 15px; }
      .hero img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; display: block; box-shadow: var(--shadow); }
      .version-pill { display: inline-block; border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
      /* ベータ表示（1.35.0）：試行中の機能に付ける共通バッジ（1種類だけ）。
         仮データの緑・警告色と紛れない、落ち着いたブルーグレー。注記は .beta-note で
         ページ下部に置く（1.41.3で集約）。表示だけの追加で、機能の挙動には触らない。 */
      .beta-badge { display: inline-block; font-size: 11.5px; font-weight: 700; background: var(--beta-bg); color: var(--beta-ink); border-radius: 999px; padding: 1px 9px; margin-left: 8px; vertical-align: 3px; white-space: nowrap; }
      .beta-note { margin: 0 0 8px; }
      /* 開放の印（1.43.0）：親密度タスク／交流の小さなバッジ。 */
      .unlock-badge { display: inline-block; font-size: 11px; font-weight: 700; border: 1px solid var(--line); background: var(--chip); color: var(--ink); border-radius: 999px; padding: 0 7px; margin-left: 5px; vertical-align: 1px; white-space: nowrap; }
      /* 星系バッジ（1.67.4）：交配ページの種名の横に出す小さなチップ。 */
      .star-badge { display: inline-block; font-size: 11px; font-weight: 700; border: 1px solid var(--line); background: var(--chip); color: var(--ink-soft); border-radius: 999px; padding: 0 7px; margin-left: 5px; vertical-align: 1px; white-space: nowrap; }
      /* link cards */
      .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
      .link-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
      .link-card .lname { font-weight: 700; font-size: 16.5px; color: var(--ink); }
      .link-card .larrow { color: var(--gold); }
      .link-card .ldesc { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 3px; }
      .link-card .lcount { display: inline-block; margin-top: 6px; font-size: 12px; background: var(--chip); border-radius: 999px; padding: 0 8px; color: var(--ink-soft); }
      /* 件数バッジを見出し横に出すときの位置（1.41.17、#193） */
      .link-card .lcount-head { margin-top: 0; margin-left: 8px; vertical-align: 3px; }
      /* 1.43.1（#R21）：件数バッジがタイトルの下に折り返さないよう、見出し行は
         折り返しなしのフレックス行にし、全カードでバッジの位置をそろえる。 */
      .link-card .lhead { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
      .link-card .lhead .lname { white-space: nowrap; }
      .link-card .lhead .lcount-head { margin: 0; flex: 0 1 auto; min-width: 0; }
      /* 1.42.3（フォーム受付#197）：サブリンク付きカード（作物・花）でも件数バッジが
         見出しの横に並ぶよう、名前リンクはブロック表示にせず行内に置く。 */
      .link-card a.lname { text-decoration: none; display: inline-block; }
      .link-card .lsubs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
      .link-card .lsubs a { font-size: 13px; background: var(--chip); border-radius: 999px; padding: 2px 11px; text-decoration: none; color: var(--ink); }
      /* buttons */
      .btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: none; border-radius: 8px; padding: 9px 18px; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; font-family: inherit; }
      .btn.ghost { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }
      .btn.small { padding: 5px 12px; font-size: 13.5px; }
      /* today（1.21.1）：全行で「チェックボックス＋項目名＋メモ＋右端のリンク」の配置をそろえる。
         行はグリッドで、右端のリンク欄は幅固定（リンクの無い行は空欄を置いて幅をそろえる）。
         項目名は1行に収め（折り返して高さを変えない）、メモは項目名の下に小さく置く。
         項目名・メモとも折り返さないため、行の高さは min-height の共通値で全行そろう。 */
      .todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
      .todo-list li { display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem; gap: 8px; min-height: 64px; }
      .todo-btn { min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; font-family: inherit; font-size: 15.5px; color: var(--ink); }
      .todo-btn .box { flex: none; width: 24px; height: 24px; border: 2px solid var(--line); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: transparent; font-weight: 700; }
      .todo-btn[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
      .todo-btn[aria-pressed="true"] .label { color: var(--ink-soft); text-decoration: line-through; }
      .todo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
      .todo-btn .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
      .todo-btn .hint { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .todo-go { display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.35; font-size: 13px; text-decoration: none; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; background: var(--surface); }
      .todo-spacer { display: block; }
      .todo-del { display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-family: inherit; color: var(--danger); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--surface); cursor: pointer; }
      /* 日課を選ぶカード一覧（1.26.0）：タップで表示／非表示を切り替えるボタン型カード。
         チェックリストの行（.todo-btn）と同じ箱印でオン状態を示し、オフは地色を落として区別する。 */
      .daily-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 10px 0 6px; }
      .daily-pick { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; font-family: inherit; font-size: 14.5px; line-height: 1.4; color: var(--ink); box-shadow: var(--shadow); min-width: 0; }
      .daily-pick .box { flex: none; width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: transparent; font-weight: 700; font-size: 13px; }
      .daily-pick[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
      .daily-pick[aria-pressed="false"] { background: var(--surface2); box-shadow: none; color: var(--ink-soft); }
      .daily-pick .pick-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
      .daily-pick .pick-state { flex: none; font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
      @media (max-width: 640px) { .daily-pick-grid { grid-template-columns: 1fr 1fr; } .daily-pick { font-size: 13px; gap: 7px; padding: 8px 9px; } .daily-pick .pick-state { display: none; } }
      /* 日課のグループ見出し（1.27.0）：チェックリストと「日課を選ぶ」の両方で使う。
         グループごとに小見出しを出し、その下にそのグループの項目だけを並べる。 */
      .today-group-head { font-size: 15px; font-weight: 700; margin: 18px 0 8px; padding-bottom: 3px; border-bottom: 1px solid var(--line); }
      .today-group-head:first-of-type { margin-top: 6px; }
      .daily-pick-group .daily-pick-grid { margin: 6px 0 2px; }
      /* 「親密度と連動する」設定（1.28.0）：Today上部のオン・オフ切り替えボタン。
         日課を選ぶカードと同じ箱印でオン状態を示し、オフは地色を落として区別する。 */
      .today-link-row { margin: 12px 0 2px; }
      .today-link-toggle { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; font-family: inherit; font-size: 14.5px; line-height: 1.4; color: var(--ink); box-shadow: var(--shadow); max-width: 100%; }
      .today-link-toggle .box { flex: none; width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: transparent; font-weight: 700; font-size: 13px; }
      .today-link-toggle[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
      .today-link-toggle[aria-pressed="false"] { background: var(--surface2); box-shadow: none; color: var(--ink-soft); }
      .today-link-toggle .link-state { flex: none; font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
      .progress { font-size: 15px; margin: 10px 0; }
      .progress strong { font-size: 19px; }
      /* 過去の記録（1.22.12、#59）：日付ごとの行。行を押すと内訳が開く。 */
      .hist-head-btn { background: none; border: none; font: inherit; color: inherit; cursor: pointer; padding: 0; }
      .hist-row { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin: 0 0 8px; overflow: hidden; }
      .hist-row-btn { display: flex; width: 100%; align-items: center; gap: 12px; background: none; border: none; font: inherit; color: var(--ink); cursor: pointer; padding: 10px 14px; text-align: left; }
      .hist-date { font-weight: 700; }
      .hist-count { margin-left: auto; color: var(--ink-soft); font-size: 14px; white-space: nowrap; }
      .hist-count strong { color: var(--ink); font-size: 16px; }
      .hist-items { list-style: none; margin: 0; padding: 4px 14px 10px; border-top: 1px solid var(--line); }
      .hist-items li { padding: 3px 0; font-size: 14.5px; }
      .hist-items li.undone { color: var(--ink-soft); }
      /* residents */
      .resident-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: 12px; }
      .resident-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
      .resident-card .rname { font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; }
      .resident-card .initial { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--chip); align-items: center; justify-content: center; font-weight: 700; margin-right: 8px; vertical-align: -8px; }
      .badge-living { display: inline-block; font-size: 11.5px; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 1px 9px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
      /* 親密度の行（1.21.13）：ラベル＋ドット8個＋数値＋「＋1」＋居住表示の合計が
         カード幅を超え、ラベルが1文字幅に潰れて縦に折れ、末尾の要素が枠外へ
         はみ出していた。行自体は折り返し可にし、各要素は折り返さずひとかたまりで
         次の行へ移るようにする。ドットと数値欄も詰めて1行に収まる幅を確保する。 */
      .aff-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; font-size: 13.5px; min-width: 0; }
      .aff-label { white-space: nowrap; flex: none; }
      .aff-dots { font-size: 14.5px; letter-spacing: 2px; white-space: nowrap; flex: none; }
      .aff-dots .on { color: var(--accent); }
      /* 1.67.3（フォーム#501）：未到達の○は罫線色だと薄すぎて数えにくく、Lv0では
         空欄に見えるため、本文の補助色まで濃くして8個を数えられるようにする。 */
      .aff-dots .off { color: var(--ink-soft); opacity: .55; }
      .aff-plus { white-space: nowrap; flex: none; padding-left: 10px; padding-right: 10px; }
      .aff-plus:disabled { opacity: .45; }
      .aff-fix input[type="number"] { width: 4.2em; padding: 3px 6px; font-size: 13.5px; }
      .aff-val { font-weight: 700; min-width: 1.4em; text-align: center; flex: none; }
      .aff-row [data-living-status] { white-space: nowrap; flex: none; }
      .aff-row [data-affinity2-slot] { min-width: 0; }
      .aff-row [data-affinity2-slot]:empty { display: none; }
      .aff-row [data-affinity2-slot]:not(:empty) { flex: 1 1 100%; }
      .aff2-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
      .pref-sec { margin: 14px 0; }
      .pref-sec h4 { margin: 0 0 6px; font-size: 15px; }
      /* データ待ちの空枠（1.31.3）：枠であることは分かるが、本文より目立たせない共通の絞った表示。 */
      .pending-frame { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; color: var(--ink-soft); font-size: 13px; margin: 8px 0 14px; }
      .pref-sec.pending-sec { margin: 10px 0; }
      .pref-sec.pending-sec h4 { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 2px; }
      .pref-sec.pending-sec p { font-size: 13px; margin: 0; }
      .pref-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
      .pref-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: 14px; }
      .pref-list li.nolink { background: var(--surface2); border-style: dashed; color: var(--ink-soft); }
      .pref-list li a { text-decoration: underline; text-underline-offset: 2px; }
      .pref-list li a:hover { text-decoration: underline; }
      /* 好みのグリッド（1.69.0、計画§2502）：ご近所さん詳細の好み（お気に入り・好き・嫌い）は表状のグリッドで並べ、横にスキャンできる形にする。 */
      .pref-list.pref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
      .pref-list.pref-grid li { border-radius: 8px; padding: 5px 10px; display: flex; align-items: center; }
      .pref-reason { font-size: 13px; color: var(--ink-soft); }
      .dislike-note { font-size: 12.5px; color: var(--danger); margin-top: 4px; }
      /* tables */
      .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
      /* 1.21.16：グループ分けされた一覧表では、見出し行は最初のグループの表だけに
         表示し、2つ目以降の表（.head-repeat）の見出し行は表示しない（繰り返し防止）。
         thead 自体は DOM に残すため、列幅の決定（applyColumnWidths）と
         並び替えの付与（makeTablesSortable）は従来どおり thead を参照できる。 */
      table.db.head-repeat thead { display: none; }
      table.db { border-collapse: collapse; width: auto; min-width: 100%; background: var(--surface); font-size: 14px; }
      table.db.few { width: auto; }
      table.db th, table.db td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; vertical-align: top; }
      table.db th { background: var(--surface2); font-size: 13px; white-space: nowrap; }
      table.db th.sortable { padding: 0; }
      table.db th .sort-btn { display: flex; align-items: center; gap: 5px; width: 100%; padding: 6px 9px; background: none; border: none; font: inherit; font-weight: 700; color: inherit; text-align: left; white-space: nowrap; cursor: pointer; }
      table.db th .sort-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
      table.db th .sort-ind { font-size: 11px; color: var(--gold); margin-left: auto; }
      table.db td a { text-decoration: underline; text-underline-offset: 2px; }
      table.db td a:hover { text-decoration: underline; }
      /* 交換コード（1.58.0）：コード文字列と期限切れ行の表示。 */
      .code-text { font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
      .code-copy-btn { margin-left: 8px; padding: 2px 10px; font: inherit; font-size: 12.5px; font-weight: 700; background: var(--surface2); border: 1px solid var(--line); border-radius: 999px; color: inherit; cursor: pointer; white-space: nowrap; vertical-align: middle; }
      .code-copy-btn:disabled { opacity: 0.75; cursor: default; }
      table.db tr.is-expired td { color: var(--ink-soft); }
      .expired-tag { display: inline-block; background: var(--surface2); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
      /* 花の品種行（1.67.6、フォーム#508）：交配表の色リンクの着地先（id="frow-…"）。
         追随ヘッダーに隠れないよう scroll-margin を付ける（スマホ幅のヘッダーは
         ブランド行＋検索窓行で約110px、パソコン幅は左サイドバーで上部に被らない）。 */
      table.db tr[id^="frow-"] { scroll-margin-top: 118px; }
      @media (min-width: 641px) { table.db tr[id^="frow-"] { scroll-margin-top: 16px; } }
      /* 着地・再タップ時の目印：行を数秒光らせてから元の色へ戻す。 */
      table.db tr.frow-hit td { animation: frowHit 2.6s ease-out; }
      @keyframes frowHit { 0%, 55% { background: var(--hit); } 100% { background: transparent; } }
      @media (prefers-reduced-motion: reduce) { table.db tr.frow-hit td { animation-duration: 0.8s; } }
      /* ヘアカラー表：行列の組み合わせ表なので、並び替えはしない（data-sortable="1" で除外）。
         セルは短い色名だけなので中央寄せ・詰めて表示する。
         1.21.25（フォーム#51）：11列すべてを画面幅に収め、横スクロールなしで右端の
         「黒」の列まで見られるようにした。固定レイアウトで幅100%にし、狭い画面では
         文字を小さくしてセル内の折り返しを許す。あわせて applyColumnWidths の
         列下限合計による min-width はこの表には付けない（JS側で除外）。 */
      table.db.hair-table { table-layout: fixed; width: 100%; }
      table.db.hair-table th, table.db.hair-table td { text-align: center; padding: 6px 4px; white-space: nowrap; }
      table.db.hair-table th[scope="row"] { text-align: left; }
      @media (max-width: 640px) {
        table.db.hair-table { font-size: 12px; }
        table.db.hair-table th, table.db.hair-table td { white-space: normal; overflow-wrap: anywhere; padding: 5px 2px; }
      }
      /* 生物図鑑の表：1.21.26（フォーム#68）では固定レイアウトで画面幅に収めて
         いたが、狭い画面で見出しが列幅に収まらず文字切れしたため、1.32.1
         （フォーム#103）で他の一覧と同じ横スクロール方式（通常レイアウト＋
         列下限の合計による min-width）に戻した。売値は★ごとの塊
         （.price-star）で折り返す。 */
      table.db .price-star { display: inline-block; white-space: nowrap; }
      /* 列幅ルール：表は横スクロール前提で内容に合わせて広がり（最小でも入れ物の幅）、
         列ごとの最小幅・固定幅を確保する。列クラスはJS（applyColumnWidths）がヘッダー文言から付ける。
         これで名前列が1〜2文字幅に潰れて縦に折れるのを防ぐ。
         セルの min-width だけでは、画面が狭いときに表が入れ物の幅まで縮み、
         列が最小幅を割り込む端末（WebView等）があった。そのため applyColumnWidths が
         「列ごとの下限の合計」を表自体の min-width としても設定し、表が潰れずに
         横スクロールになることを保証する（下限の合計は COL_FLOOR_PX）。
         それでも実機では名前列が3文字ほどに潰れた。自動レイアウトの表では
         セルの min-width は「目安」でしかなく、端末によっては列が中身の最小幅
         （日本語は1文字まで折れる）まで縮むため。そこで名前列は、中身の要素
         （リンク・値スパン）自体にも最小幅を持たせる。中身の最小幅はレイアウト
         計算で必ず列の最小幅になるので、セルの min-width が効かない端末でも効く。 */
      table.db td { max-width: 24em; }
      table.db th.col-check, table.db td.col-check { width: 52px; min-width: 52px; max-width: 52px; text-align: center; }
      /* チェック列（入手済み・寄贈・完了）の見出しは、並び替えボタンを縦積みにして
         列幅を52pxに抑える（見出し＋並び替え操作に必要な範囲だけにする）。 */
      table.db th.col-check .sort-btn { flex-direction: column; align-items: center; gap: 1px; padding: 4px 1px; font-size: 12px; }
      table.db th.col-check .sort-ind { margin-left: 0; font-size: 10px; }
      table.db th.col-no, table.db td.col-no { width: 4.4em; min-width: 4.4em; white-space: nowrap; }
      /* 1.15.9：家具・服・生物の一覧（listPage に noRight を付けた表）だけ、No.／図鑑No.列を右揃えにする。
         シリーズ詳細など他の表の No. 列は従来どおり左揃えのまま。見出しの並び替えボタンも右へ寄せる。 */
      table.db.no-right th.col-no, table.db.no-right td.col-no { text-align: right; }
      table.db.no-right th.col-no .sort-btn { justify-content: flex-end; }
      table.db.no-right th.col-no .sort-ind { margin-left: 4px; }
      table.db th.col-rare, table.db td.col-rare { width: 3.9em; min-width: 3.9em; white-space: nowrap; }
      /* 称号ページの分類見出し行（1.42.1、#203）：1つの表のまま、行グループの境目と件数を示す。
         並び替えでは見出し行を区切りにし、グループ内だけで並べ替える（.sort-group-head）。 */
      table.db tr.sort-group-head td { background: var(--surface2); font-weight: 700; font-size: 13.5px; }
      table.db th.col-name, table.db td.col-name { width: 9em; min-width: 9em; }
      table.db td.col-name > a, table.db td.col-name > .val, table.db td.col-name > .wl-name-text { display: inline-block; min-width: 7.5em; }
      table.db th.col-count, table.db td.col-count { width: 4em; min-width: 4em; }
      table.db th.col-lv, table.db td.col-lv { width: 3.4em; min-width: 3.4em; white-space: nowrap; }
      .jump-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; font-size: 13px; }
      .jump-links a { background: var(--chip); border-radius: 999px; padding: 2px 11px; text-decoration: none; color: var(--ink); }
      /* 1.67.3（フォーム#493・#496）：目次バーをスクロールに追随させ、深い位置からも
         別グループ・別カテゴリへ飛べるようにする。スマホ幅では上部ナビ（sticky）の
         下に付ける。 */
      .jump-links.toc-sticky { position: sticky; top: 0; z-index: 15; background: var(--bg); padding: 6px 0; margin-top: 6px; }
      @media (max-width: 640px) { .jump-links.toc-sticky { top: 84px; } }
      /* 1.67.3（フォーム#497）：絞り込みチップのコンパクト表示（対象・機能は変えない）。 */
      .chip-row.compact { gap: 4px; }
      .chip-row.compact .chip { padding: 2px 9px; font-size: 12.5px; }
      /* 1.67.3（フォーム#499）：ショップの商品一覧は名前列を広く、価格列を詰める。 */
      table.db.shop-table { table-layout: fixed; width: 100%; }
      table.db.shop-table th:nth-child(1) { width: 52%; }
      table.db.shop-table th:nth-child(2) { width: 24%; }
      table.db.shop-table th:nth-child(3) { width: 24%; }
      table.db.shop-table td:nth-child(3) { text-align: right; white-space: nowrap; }
      /* 1.67.3（フォーム#493）：生物図鑑の表は見出し行をスクロールに追随させる。 */
      table.db.sticky-head thead th { position: sticky; top: 0; z-index: 5; }
      @media (max-width: 640px) { table.db.sticky-head thead th { top: 84px; } }
      /* 1.67.3（フォーム#495）：出没生物チェッカーの結果のグループ小見出し。 */
      .now-group-head { font-size: 15px; margin: 14px 0 4px; }
      .unknown{color:var(--ink-soft);font-size:12.5px;opacity:.75}
      /* starsea island list (compact: icon + name + unlock label) */
      .island-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 10px 0 6px; }
      .island-tile { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
      .iicon-chip { flex: none; display: inline-block; min-width: 46px; text-align: center; font-size: 12.5px; font-weight: 700; background: var(--surface2); border-radius: 8px; padding: 4px 8px; }
      .island-tile .itile-main { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
      .island-tile .iname { font-weight: 700; font-size: 14.5px; line-height: 1.4; }
      .unlock-tag { font-size: 12px; font-weight: 700; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; line-height: 1.6; white-space: nowrap; }
      .creature-list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
      .creature-list li { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 3px 11px; font-size: 14px; }
      .creature-list li a { text-decoration: underline; text-underline-offset: 2px; }
      .name-search { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
      .name-search input[type="search"], .name-search select, select.ctl, textarea.memo {
        font-family: inherit; font-size: 15px; color: var(--ink);
        background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
      }
      /* セレクトの選択中表示（1.41.16）：端末標準の見た目のままだと、ダークモードの
         端末で背景だけ端末側の明色に残り、文字色（--ink）だけ反転して、選択中の値が
         白同然で読めなくなることがある（閉じた状態も、開いた一覧も空欄に見える。
         報告はルカの樹のレベル選択＝プランナーと計算機）。そのためセレクトは標準の
         矢印を消し、自前の背景・文字色・矢印で描いて、選択中の値が常に見えるように
         する。開いた一覧の option にも明示の文字色・背景色を付ける。 */
      select.ctl, .name-search select {
        -webkit-appearance: none; appearance: none;
        background-color: var(--surface); color: var(--ink);
        padding-right: 30px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238a8574' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat; background-position: right 10px center;
      }
      select.ctl option, .name-search select option {
        color: var(--ink); background-color: var(--surface);
      }
      .name-search input[type="search"] { flex: 1; min-width: 180px; }
      /* obtained check */
      .obtained-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; font-size: 14px; }
      .obtained-bar .obtained-note { color: var(--ink-soft); font-size: 12.5px; }
      .obtained-cell { text-align: center; }
      .obtained-cell input[type="checkbox"], .obtained-check input[type="checkbox"], .collect-cell input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; vertical-align: middle; margin: 0; }
      /* 収集チェック（1.54.0、改善案2）：カード集の表のセルと、万象フォリオのカテゴリ別リスト */
      .collect-cell { text-align: center; }
      .collect-list { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 4px; }
      .collect-list li { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 5px 11px; font-size: 14.5px; }
      .collect-list input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; margin: 0; flex: none; }
      .collect-list .cname { flex: 1; min-width: 0; }
      .collect-list li.collect-group-head { font-weight: 700; background: transparent; border: none; padding: 8px 2px 0; }

      /* ルミートレイルの表（1.59.0）：全カテゴリ（デイリー含む）で
         列幅を統一し、スマホ幅に収まるよう固定レイアウトにする。列幅は
         colgroup の lc-* で決めるため、applyColumnWidths の min-width 付けは
         対象外（あちら側でも除外している）。 */
      table.db.lumi-table { table-layout: fixed; width: 100%; }
      table.db.lumi-table th, table.db.lumi-table td { padding: 6px 7px; overflow-wrap: break-word; }
      table.db.lumi-table col.lc-check { width: 44px; }
      table.db.lumi-table col.lc-name { width: 24%; }
      table.db.lumi-table col.lc-how { width: 20%; }
      table.db.lumi-table col.lc-stage { width: 12%; }
      table.db.lumi-table col.lc-goal { width: 11%; }
      table.db.lumi-table col.lc-reward { width: 33%; }
      table.db.catalog-table { table-layout: fixed; width: 100%; }
      table.db.catalog-table th, table.db.catalog-table td { padding: 6px 7px; overflow-wrap: break-word; }
      table.db.catalog-table col.cc-check { width: 44px; }
      table.db.catalog-table col.cc-name { width: 25%; }
      table.db.catalog-table col.cc-no { width: 6%; }
      table.db.catalog-table col.cc-rare { width: 9%; }
      table.db.catalog-table col.cc-type { width: 13%; }
      table.db.catalog-table col.cc-set { width: 15%; }
      table.db.catalog-table col.cc-size { width: 9%; }
      table.db.catalog-table col.cc-how { width: 23%; }
      /* 項目の先頭行の操作セル（段階マーカー・達成段階の入力を置く場所） */
      table.db.lumi-table td.lumi-ctrl-cell { background: var(--surface2); }
      /* 段階ごとの行：項目の先頭行と区別できるよう、ごく薄く色を付ける */
      table.db.lumi-table tr.lumi-sub-row td { background: color-mix(in srgb, var(--surface2) 42%, var(--surface)); }
      /* 雪見シーズン（1.57.0）：万象フォリオの枠グリッド */
      .obtained-line { margin: 0 0 4px; }
      .obtained-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; cursor: pointer; }
      /* wishlist */
      .wishlist-line { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
      /* ほしいものリスト「読み込み」の手順（1.21.25）：番号付きの短い文に分けた。 */
      .wl-steps { margin: 0 0 8px; padding-left: 1.5em; }
      .wl-steps li { margin: 2px 0; }
      .wishlist-added { font-size: 13.5px; color: var(--ink-soft); }
      /* favorites */
      .fav-list { list-style: none; margin: 0; padding: 0; }
      .fav-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
      .fav-list .r-cat { color: var(--ink-soft); font-size: 13px; }
      .fav-list li button { margin-left: auto; }
      /* お気に入りの★目印（アイテム一覧の名前の横、1.23.0） */
      .fav-star { color: var(--gold); font-size: 12.5px; margin-left: 4px; }
      .wishlist-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
      .wishlist-form input[type="text"], .wishlist-form input[type="number"] { font-family: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
      .wishlist-form .wl-name { flex: 1 1 180px; min-width: 0; }
      .wishlist-form .wl-how { flex: 1 1 160px; min-width: 0; }
      .wishlist-form .wl-count { width: 76px; }
      .goal-item { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 10px 14px; margin: 10px 0; }
      /* 達成済みの目標の印（1.41.7、#179） */
      .goal-done-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); vertical-align: middle; }
      .goal-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
      .goal-have { font-family: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; width: 5.5em; }
      table.db td.wl-done-cell { text-align: center; }
      .wl-done-cell input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; vertical-align: middle; margin: 0; }
      .wl-count-input { width: 64px; font-family: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }
      .wl-needs-row td { font-size: 14px; }
      .wl-needs-label { color: var(--ink-soft); }
      tr.wl-done .wl-name-text { color: var(--ink-soft); text-decoration: line-through; }
      /* ほしいものリストの検索追加：候補リスト（グレンマート今日カードの選択リストと同形） */
      .wl-cand-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
      .wl-cand-list li { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 5px 11px; font-size: 14.5px; }
      .wl-cand-list .ccat { flex: none; color: var(--ink-soft); font-size: 12.5px; }
      .wl-cand-list .cname { flex: 1; min-width: 0; }
      .wl-cand-list .wl-cand-in { flex: none; color: var(--ink-soft); font-size: 12.5px; white-space: nowrap; }
      /* vignette tracker */
      .vig-progress-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; font-size: 14.5px; }
      .vig-bar { display: inline-block; width: 130px; max-width: 40vw; height: 10px; background: var(--surface2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; vertical-align: middle; margin-left: 8px; }
      .vig-bar > span { display: block; height: 100%; background: var(--accent); }
      .vig-badge { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 0 8px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
      .vig-badge.got { background: var(--accent); color: var(--accent-ink); }
      .vig-badge.miss { border: 1px solid var(--danger); color: var(--danger); }
      .vig-badge.none { border: 1px solid var(--line); color: var(--ink-soft); font-weight: 400; }
      .vig-badge.cat { border: 1px solid var(--accent); color: var(--accent); }
      tr.vig-got td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
      /* ホーミーリフォーム：段階ごとの枠と、その中の要求グループ */
      .reform-tier { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 12px 14px; margin: 10px 0; }
      .reform-tier > h4 { margin: 0 0 4px; font-size: 16px; }
      .reform-req { margin: 10px 0 2px; }
      .reform-req h5 { margin: 0 0 4px; font-size: 14px; }
      .reform-req ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
      .reform-req li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14.5px; }
      /* search */
      .cond-group { margin: 12px 0; }
      .cond-group .glabel { font-weight: 700; font-size: 14px; margin-bottom: 5px; }
      .chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
      .chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 3px 12px; font-size: 13.5px; cursor: pointer; font-family: inherit; }
      .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
      .result-cat { margin: 16px 0; }
      .result-cat h4 { margin: 0 0 6px; font-size: 15.5px; }
      .result-cat h4 .cnt { color: var(--ink-soft); font-size: 13px; font-weight: 400; }
      .result-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
      .result-list li { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 3px 11px; font-size: 14px; }
      .result-list li a { text-decoration: underline; text-underline-offset: 2px; }
      /* 出没生物チェッカー：日付入力と開始／終了の印 */
      .now-date-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
      .now-date-row input[type="date"] { font-family: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
      .now-mark { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; vertical-align: middle; white-space: nowrap; }
      .now-mark.start { background: var(--accent); color: var(--accent-ink); }
      .now-mark.end { border: 1px solid var(--accent); color: var(--accent); }
      /* 検索結果の行形式：名前＋カテゴリ＋当たった条件＋比較用メタ（分類・価格・入手方法。属性の全並びは出さない） */
      .result-rows { list-style: none; margin: 0; padding: 0; }
      .result-rows li { padding: 6px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
      .result-rows li:last-child { border-bottom: none; }
      .result-rows .r-cat { color: var(--ink-soft); font-size: 13px; }
      .result-rows .r-hit { color: var(--ink-soft); font-size: 13px; }
      /* 検索結果の比較用メタ（分類・価格・入手方法、1.80.0・#430） */
      .result-rows .r-meta { color: var(--ink-soft); font-size: 13px; }
      .result-list .r-meta { color: var(--ink-soft); font-size: 12.5px; }
      /* 分類ピクトグラム：単色（currentColor）の小さなSVG。色が反転しても形で分類が分かる単純なシルエット */
      .cat-icon { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; margin-right: 5px; }
      /* レア度の色チップ（1.21.2）：CSSで描く小さな丸。色はサイト側で固定し、仮データの緑文字（color）とは別要素なので緑にはならない。白は背景と同化しないよう輪郭線を付ける。 */
      .rare-chip { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; box-sizing: border-box; }
      .rare-chip--white { background: #ffffff; border: 1.5px solid #a39d8b; }
      .rare-chip--blue { background: #3f8fd2; border: 1.5px solid #2c6da3; }
      .rare-chip--purple { background: #8b5cc7; border: 1.5px solid #673f9c; }
      .rare-chip--gold { background: #e6ac1c; border: 1.5px solid #a8741a; }
      .rare-chip--rainbow { background: conic-gradient(#e06666, #e6c84f, #6fbf6f, #4f8fd2, #a06fd0, #e06666); border: 1.5px solid #8a7a5a; }
      /* レア度の順番の凡例（1.21.2）：検索ページとレア度が一覧に出るカテゴリページの上部に1回だけ、1行で出す。 */
      .rare-legend { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 12px; white-space: nowrap; }
      .empty-msg { color: var(--ink-soft); font-size: 14px; }
      details.more-info { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 10px 14px; margin: 12px 0; }
      details.more-info summary { cursor: pointer; font-weight: 700; font-size: 14.5px; }
      details.cond-details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 10px 14px; margin: 10px 0; }
      details.cond-details summary { cursor: pointer; font-weight: 700; font-size: 15px; }
      details.cond-details summary .cnt { color: var(--ink-soft); font-size: 12.5px; font-weight: 400; }
      details.cond-details .chip-row { margin-top: 10px; }
      /* メモ帳タブ一覧の折りたたみ：既存の details の作りに合わせ、見出し（summary）で開閉する。
         初期は開いた状態（open 属性）。閉じた状態は保存しない。 */
      details.memo-details { margin: 28px 0 10px; }
      details.memo-details summary { font-size: 19px; }
      details.memo-details summary .cnt { font-size: 13px; color: var(--ink-soft); font-weight: 400; }
      details.memo-details .memo-note { margin: 10px 0 8px; }
      .sel-area { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }
      .sel-area .sel-label { font-weight: 700; font-size: 13.5px; }
      .chip.sel { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
      /* 1.77.0（T-115・§7）：0件になる条件の値は薄くして押せなくする。値ごとの件数は .cnt で添える。 */
      .chip[aria-disabled="true"] { opacity: .45; cursor: default; }
      .chip .cnt { color: var(--ink-soft); font-size: 12px; }
      .chip[aria-pressed="true"] .cnt { color: inherit; }
      /* 1.77.0（T-115・§4/§6）：条件の自動解除の通知は条件エリアの近くに1行だけ出す。 */
      .search-notice { color: var(--ink-soft); font-size: 13.5px; margin: 6px 0; }
      .cat-select-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; }
      .cat-select-row label { font-weight: 700; font-size: 14px; }
      /* 検索ページの探し方タブ・ショップページの店別タブ：表示中のタブだけパネルを出す */
      .search-tabs, .shop-tabs, .ex-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; border-bottom: 2px solid var(--line); }
      .search-tab, .shop-tab, .ex-tab { border: 1px solid var(--line); border-bottom: none; background: var(--surface2); color: var(--ink); border-radius: 10px 10px 0 0; padding: 8px 16px; font-size: 14.5px; cursor: pointer; font-family: inherit; margin-bottom: -2px; }
      .search-tab[aria-selected="true"], .shop-tab[aria-selected="true"], .ex-tab[aria-selected="true"] { background: var(--surface); color: var(--accent); font-weight: 700; border-bottom: 2px solid var(--accent); box-shadow: inset 0 2px 0 var(--accent); }
      [data-ex-panel][hidden] { display: none; }
      /* グレンマート今日カード：入力フォームと選択リスト（サイト側のUI）と、
         正方形カードのプレビュー（色はカード画像のデザインとして固定色で持つ。
         プレビュー内の寸法はコンテナ幅基準の cqw で組み、表示幅によらず正方形に収める） */
      .gcard-box { margin-top: 8px; }
      .gcard-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; margin: 12px 0; }
      .gcard-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 700; }
      .gcard-form input[type="text"], .gcard-form select { font-family: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
      .gcard-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 22px; margin: 6px 0; }
      .gcard-pick .glabel { font-weight: 700; font-size: 14.5px; margin: 8px 0 5px; }
      .gcard-pick .glabel .cnt { color: var(--ink-soft); font-size: 13px; font-weight: 400; }
      .gcard-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
      .gcard-list li { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 5px 11px; font-size: 14.5px; }
      .gcard-pick-label { display: flex; align-items: center; gap: 9px; cursor: pointer; }
      .gcard-pick-label input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; margin: 0; flex: none; }
      .gcard-pick-label input[type="checkbox"]:disabled { cursor: not-allowed; }
      .gcard-pick-label .pname { flex: 1; min-width: 0; }
      .gcard-limit, .gcard-norow { color: var(--danger); font-size: 13px; margin: 6px 0 0; }
      .gcard-norow { color: var(--ink-soft); }
      .gcard-custom-form .gc-cname { flex: 1 1 170px; min-width: 0; }
      .gcard-custom-form .gc-cprice { flex: 0 1 110px; min-width: 0; }
      .gcard-custom-list { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
      .gcard-custom-list li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 5px 11px; font-size: 14.5px; }
      .gcard-custom-list .cname { flex: 1; min-width: 0; }
      .gcard-del { flex: none; font-family: inherit; font-size: 13px; color: var(--danger); border: 1px solid var(--line); border-radius: 8px; padding: 2px 10px; background: var(--surface); cursor: pointer; }
      .gcard-preview { container-type: inline-size; max-width: 560px; margin: 16px auto 4px; }
      .gcard { width: 100%; aspect-ratio: 1 / 1; background: #fff9ef; border: 0.45cqw solid #2e6e48; border-radius: 3.3cqw; overflow: hidden; display: flex; flex-direction: column; color: #2b2b26; line-height: 1.4; }
      .gcard-head { background: #2e6e48; display: flex; justify-content: space-between; align-items: flex-start; gap: 2cqw; padding: 1.5cqw 4.3cqw 1.4cqw; }
      .gcard-title { color: #ffffff; font-weight: 700; font-size: 3.85cqw; line-height: 1.2; }
      .gcard-sub { color: #bee1c3; font-size: 2cqw; margin-top: 0.55cqw; }
      .gcard-date { color: #ffebb4; font-weight: 700; font-size: 2.85cqw; white-space: nowrap; padding-top: 0.7cqw; }
      .gcard-main { flex: 1; display: flex; flex-direction: column; padding: 0 4.3cqw; min-height: 0; }
      .gcard-idrow { margin-top: 1.6cqw; background: #ffffff; border: 0.17cqw solid #d6cdb6; border-radius: 1.5cqw; display: flex; align-items: center; gap: 1.6cqw; padding: 1.2cqw 2.1cqw; }
      .gcard-avatar { flex: none; width: 4.5cqw; height: 4.5cqw; border-radius: 50%; background: #e2f1e4; display: inline-flex; align-items: center; justify-content: center; }
      .gcard-avatar svg { width: 3.5cqw; height: 3.5cqw; display: block; }
      .gcard-uname { font-weight: 700; font-size: 2.65cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .gcard-uidtext { color: #6e695c; font-size: 2cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .gcard-starchip { margin-left: auto; flex: none; background: #e2f1e4; color: #205436; font-weight: 700; font-size: 2.3cqw; border-radius: 999px; padding: 0.85cqw 1.9cqw; white-space: nowrap; }
      .gcard-sec { margin-top: 1.9cqw; }
      .gcard-sec-label { color: #205436; font-weight: 700; font-size: 2.3cqw; }
      .gcard-sec-count { color: #6e695c; font-size: 2cqw; margin-left: 0.9cqw; }
      .gcard-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2cqw 1.85cqw; margin-top: 1cqw; }
      .gcard-tile { background: #ffffff; border: 0.17cqw solid #d6cdb6; border-radius: 1.2cqw; padding: 0.8cqw; display: flex; flex-direction: column; min-width: 0; }
      .gcard-band { height: 5cqw; border-radius: 0.75cqw; display: flex; align-items: center; justify-content: center; flex: none; }
      .gcard-band svg { height: 4.2cqw; width: auto; display: block; }
      .gcard-tname { font-size: 1.85cqw; line-height: 1.28; margin-top: 0.75cqw; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
      .gcard-tprice { margin-top: auto; padding-top: 0.5cqw; text-align: right; font-weight: 700; font-size: 1.9cqw; white-space: nowrap; }
      .gcard-none { color: #6e695c; font-size: 2.2cqw; margin: 3.2cqw 0 0; }
      .gcard-foot { margin-top: auto; display: flex; align-items: flex-end; gap: 2cqw; padding: 1.6cqw 0 2.3cqw; }
      .gcard-msg { background: #e2f1e4; color: #205436; font-weight: 700; font-size: 2.3cqw; border-radius: 999px; padding: 1cqw 2.1cqw; max-width: 72%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .gcard-credit { margin-left: auto; flex: none; color: #6e695c; font-weight: 700; font-size: 2.05cqw; white-space: nowrap; padding-bottom: 0.9cqw; }
      .gcard-actions { margin: 14px 0 4px; text-align: center; }
      .gcard-actions .btn:disabled { opacity: .45; cursor: not-allowed; }
      .gcard-result { margin: 12px auto 4px; max-width: 560px; text-align: center; }
      .gcard-result img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; }
      .gcard-share-status { margin: 6px 0 0; }
      /* detail fields */
      .fields { display: grid; grid-template-columns: max-content 1fr; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); margin: 12px 0; }
      .fields .f { padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
      .fields .f.key { background: var(--surface2); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
      .fields .f a { text-decoration: underline; text-underline-offset: 2px; }
      .fields .f a:hover { text-decoration: underline; }
      /* 属性チップ（1.69.0、計画§2500）：詳細ページの属性値はチップ形で出し、色には色見本（.color-chip）を付ける。値は仮データのため緑文字にする。 */
      .attr-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
      .attr-chip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; font-size: 13.5px; background: var(--surface); white-space: nowrap; }
      .fields .f a.attr-chip { text-decoration: none; }
      .fields .f a.attr-chip:hover { text-decoration: underline; text-underline-offset: 2px; }
      .attr-chip .color-chip { margin-right: 5px; }
      /* タグ・好みの折りたたみ（1.73.0、T-091・計画§2595）：5件以上は先頭4件だけ
         出し、残りは「＋N件」で開く。畳んだ分はDOMに残し、隠すだけにする。 */
      .chips-rest[hidden] { display: none; }
      .pref-list li.more-rest[hidden] { display: none; }
      .more-toggle { display: inline-flex; align-items: center; border: 1px dashed var(--line); border-radius: 999px; padding: 1px 10px; font-family: inherit; font-size: 13.5px; background: var(--surface2); color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
      .more-wrap > .more-toggle { margin-top: 6px; }
      /* データ状態の記号（1.69.0、計画§2503）：仮データの印は緑文字にこの丸印を併記する。 */
      /* 料理の食材で条件検索行きのものに付ける印（アイテム詳細行きと見分けるため） */
      .ing-cells { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: top; }
      .ing-cell { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 8.6em; border: 1px solid var(--line); border-radius: 6px; background: var(--surface2); padding: 2px; font-size: 12.5px; line-height: 1.35; text-align: center; overflow-wrap: anywhere; }
      .ing-mark { display: inline-block; font-size: 11px; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; margin-left: 4px; color: var(--ink-soft); vertical-align: 1px; white-space: nowrap; }
      .note-frame { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink-soft); font-size: 14px; margin: 12px 0; background: var(--surface); }
      /* luca growth calculator */
      .luca-calc { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 14px 16px; margin: 12px 0; box-shadow: var(--shadow); }
      .luca-calc-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
      .luca-calc-row label { font-weight: 700; font-size: 14px; }
      .luca-calc-row .arrow { color: var(--ink-soft); }
      .luca-calc input[type="number"] { font-family: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; width: 7em; }
      .luca-calc-result { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
      .luca-calc-result .fields { margin: 8px 0; }
      .luca-breakdown { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
      .luca-breakdown li { border: 1px solid var(--line); border-radius: 8px; padding: 3px 11px; font-size: 14px; }
      /* イベントカレンダー（1.46.0／1.84.0で縦リスト化）：表示月の全日を
         1日1行の縦リストで並べる。期間イベントは日付の右のトラック列に
         ガント風の縦バーを通す（1.85.0）：開始日は上端キャップ付きの
         部分線＋名前、継続日は行を通る線のみ、終了日は下端キャップ付きの
         部分線＋名前＋「終了」。バーの色は公式＝青、締切＝金。
         日の行を押すと、その日の詳細が直下に開く（旧・下部の予定一覧は統合）。 */
      .cal-bar { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
      .cal-bar .cal-title { flex: 1; text-align: center; font-size: 20px; font-weight: 700; margin: 0; }
      .cal-range { font-weight: 700; color: var(--accent); }
      .cal-rows { display: block; }
      .cal-row { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-top: 6px; overflow: hidden; }
      .cal-row.today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
      .cal-row.open { border-color: var(--accent); }
      .cal-row-head { font-family: inherit; display: flex; gap: 10px; align-items: flex-start; width: 100%; background: none; border: 0; padding: 8px 12px; text-align: left; cursor: pointer; color: var(--ink); }
      .cal-date { flex: none; width: 40px; text-align: center; }
      .cal-date .dnum { display: block; font-size: 17px; font-weight: 700; line-height: 1.2; }
      .cal-date .dow { font-size: 11.5px; color: var(--ink-soft); }
      .cal-date .dow.sun { color: var(--danger); }
      .cal-date .dow.sat { color: var(--accent); }
      .cal-items { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
      .cal-ev { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
      .cal-ev.official { color: var(--accent); font-weight: 600; }
      .cal-ev.limit { color: var(--gold); font-weight: 700; display: flex; align-items: center; }
      .cal-ev-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .cal-end-tag { font-size: 11.5px; border: 1px solid var(--gold); border-radius: 6px; padding: 0 5px; margin-left: 4px; white-space: nowrap; flex: none; }
      .cal-tracks { display: flex; gap: 2px; align-self: stretch; flex: none; }
      .cal-track { position: relative; width: 10px; flex: none; }
      .cal-bar-seg { position: absolute; left: 50%; width: 4px; margin-left: -2px; background: var(--accent); border-radius: 2px; }
      .cal-chip { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; flex: none; }
      .cal-bar-seg.st-full { top: -9px; bottom: -9px; }
      .cal-bar-seg.st-start { top: 10px; bottom: -9px; }
      .cal-bar-seg.st-start::before { content: ""; position: absolute; top: -2px; left: 50%; width: 10px; height: 5px; margin-left: -5px; background: inherit; border-radius: 3px; }
      .cal-bar-seg.st-end { top: -9px; bottom: 10px; }
      .cal-bar-seg.st-end::after { content: ""; position: absolute; bottom: -2px; left: 50%; width: 10px; height: 5px; margin-left: -5px; background: inherit; border-radius: 3px; }
      .cal-detail { position: relative; border-top: 1px solid var(--line); background: var(--surface2); padding: 10px 12px; }
      .cal-detail .cal-tracks { position: absolute; top: 0; bottom: 0; left: 62px; align-self: auto; }
      .cal-detail .cal-track { height: 100%; }
      .cal-detail .cal-bar-seg.st-full { top: 0; bottom: 0; }
      .cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
      .cal-list li { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 12px; font-size: 14.5px; }
      @media (max-width: 640px) {
        .cal-bar .cal-title { font-size: 18px; }
        .cal-row-head { padding: 7px 10px; }
        .cal-detail .cal-tracks { left: 60px; }
      }
      /* スマホメニュー（1.47.0）：ゲーム内のスマホの並び（4列）を再現する。
         対応ページがある項目だけリンクにし、無い項目は文言だけ出す（もち決定）。
         アイコンの地色はゲーム画面の淡い色合いに寄せた固定色（gcard と同じ扱い）。 */
      .phone-frame { max-width: 580px; margin: 16px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 18px 14px 20px; box-shadow: var(--shadow); }
      .phone-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; }
      .phone-app { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
      a.phone-app { text-decoration: none; color: var(--ink); }
      .phone-app .pa-icon { width: 100%; max-width: 74px; aspect-ratio: 1 / 1; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: inset 0 0 0 1px rgba(35, 39, 51, 0.08); }
      .phone-app .pa-icon svg { width: 58%; height: 58%; display: block; }
      a.phone-app:hover .pa-icon, a.phone-app:active .pa-icon { filter: brightness(0.95); }
      .phone-app .pa-name { font-size: 13px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
      .phone-app .pa-arrow { color: var(--gold); font-weight: 700; }
      .phone-app.is-plain .pa-name { font-weight: 400; color: var(--ink-soft); }
      /* 1.47.4（フォーム#248）：リンク無し項目はアイコンごと薄くし、押せないことが
         見た目で分かるようにする（矢印は付けない）。
         1.57.4（#348）：副題は「対応ページがありません」で全項目そろえる。 */
      .phone-app.is-plain { opacity: .52; }
      /* 1.63.1：リンク無し項目はアイコンをグレースケールにし、地色も無彩色にして区別を強める。 */
      .phone-app.is-plain .pa-icon { filter: grayscale(1); background: var(--surface2) !important; }
      .phone-app .pa-sub { font-size: 11px; line-height: 1.3; color: var(--accent); }
      .phone-app .pa-sub.pa-nopage { color: var(--ink-soft); }
      @media (max-width: 640px) {
        .phone-frame { padding: 14px 10px 16px; border-radius: 22px; }
        .phone-grid { gap: 13px 6px; }
        .phone-app .pa-name { font-size: 11.5px; }
        .phone-app .pa-sub { font-size: 10px; }
        .phone-app .pa-icon { border-radius: 13px; }
      }
      /* 1.47.4（フォーム#251）：デスクトップ幅では名前＋矢印を1行に収める
         （ホーミーリフォームだけ矢印が2行目に落ちる不具合の修正）。
         スマホ幅は列が狭く収まらないため、従来どおり折り返しを許す。 */
      @media (min-width: 641px) {
        .phone-app .pa-name { font-size: 12.5px; white-space: nowrap; }
      }
      footer.site { border-top: 1px solid var(--line); margin-top: 44px; background: var(--surface); }
      footer.site .inner { max-width: 1060px; margin: 0 auto; padding: 20px 16px 28px; font-size: 13.5px; color: var(--ink-soft); }
      footer.site .fname { font-weight: 700; color: var(--ink); font-size: 15px; }
      .changelog { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-soft); }
      .changelog li { margin: 0 0 6px; }
      textarea.memo { width: 100%; min-height: 140px; }
      textarea.wl-export { width: 100%; min-height: 150px; }
      .wl-export-label { display: block; font-weight: 700; font-size: 14px; margin: 10px 0 6px; }
      @media (max-width: 640px) {
        .hero h1 { font-size: 27px; }
        h2.page-title { font-size: 22px; }
        .fields { grid-template-columns: 1fr; }
        .fields .f.key { border-bottom: none; padding-bottom: 0; }
        .fields .f { padding: 6px 12px; }
        /* Today：スマホでもメモを項目名の下に出す（旧仕様の非表示はやめる）。
           リンク欄を狭め、項目名・メモ・リンクの文字を詰めて全行の高さをそろえる。 */
        .todo-list li { grid-template-columns: minmax(0, 1fr) 5.75rem; min-height: 60px; }
        .todo-btn { gap: 8px; padding: 6px 10px; font-size: 13.8px; }
        .todo-btn .box { width: 22px; height: 22px; }
        .todo-btn .hint { font-size: 11px; letter-spacing: -0.02em; }
        .todo-go { font-size: 11px; line-height: 1.3; padding: 4px 5px; }
      }
