/* デザインの刷新(2026-10-21 ユーザー: Codex の見本。docs/design_renewal.md)。素材は app/assets/images/design/(tools/design_assets/extract.py)。
   ここは画像を使う所だけ(asset_path で digest の付いた URL にするため .erb)。印刷の画面(print レイアウト)には読ませない */


/* ---------- ノーマル・ダークの刷新(2026-10-21。Codex の基本の見本 v06 + 枠・表・明細の仕上げ v07) ----------
   v07 は「明細の行の高さ・上下の余白・1画面に見える件数を今のまま」の条件でユーザー了承(README_CLAUDE_HANDOFF.md)。
   なのでここでは padding・height・line-height・font-size を変えない(色・線・影・角だけ)。
   ガラスは liquid.css(グレージュ + v10)。共通の「行の交互色(ノーマル・ダーク)・金額欄の淡い色・桁ぞろえ」はここ。印刷には効かない(@media screen) */
@media screen {
  /* ノーマル: 白を土台に、細いグレーの枠・青灰色の見出し(左に細い線)・弱い影・角12px。今いる画面は白い札に紺の字 */
  html:not(.theme-liquid):not(.theme-dark) {
    --rn-row-alt: #f8fafc;
    --rn-row-hover: #eaf1f8;
    --rn-head: linear-gradient(90deg, #eaf0f6, #f3f6f9);
    --rn-accent-line: #7e9ab4;
    --rn-cell-line: #e3e8ee;
    --rn-amount: #f1f4f8;
  }
  html:not(.theme-liquid):not(.theme-dark) .app-shell .card { border-radius: 8px; box-shadow: 0 2px 8px rgba(32, 57, 81, 0.04); }
  html:not(.theme-liquid):not(.theme-dark) .app-shell .search-form { border: 1px solid var(--color-border); border-radius: 8px; }
  html:not(.theme-liquid):not(.theme-dark) .home-card__title { background: var(--rn-head); box-shadow: inset 3px 0 var(--rn-accent-line); }
  /* ノーマルの左のメニューは白にそろえる(2026-10-28 ユーザー: 下の帯と同じ感じに。前は紺 #113961 に白い文字)。
     中身との境目は少し濃い線と薄い影(白一色だと境目が分かりにくい)。今いる所は下の帯と同じ濃いめの青グレーの面・アイコンを少し浮かせる */
  html:not(.theme-liquid):not(.theme-dark) .app-shell { --side-bg: #ffffff; --side-ink: #1f2a36; --side-line: #e1e6ed; --side-hover: #eef2f7; }
  html:not(.theme-liquid):not(.theme-dark) .app-shell .sidebar { border-right: 1px solid #b7c3d2; box-shadow: 3px 0 14px rgba(17, 57, 97, 0.10); }
  html:not(.theme-liquid):not(.theme-dark) .app-shell .sidebar__action { color: #113961; border-color: rgba(17, 57, 97, 0.3); background: #fff; }
  html:not(.theme-liquid):not(.theme-dark) .app-shell .sidebar .font-scale__option.is-active { background: #113961; color: #fff; border-color: #113961; }
  html:not(.theme-liquid):not(.theme-dark) .app-shell .sidebar__fav { background: #f1f4f8; color: #1f2a36; }
  html:not(.theme-liquid):not(.theme-dark) .app-shell .sidebar__group-body a { color: #1f2a36; }
  html:not(.theme-liquid):not(.theme-dark) .app-shell .sidebar__group-body a:hover { background: #eef2f7; }
  html:not(.theme-liquid):not(.theme-dark) .app-shell .sidebar__group-body a[aria-current="page"] { background: #e3eaf3; }
  html:not(.theme-liquid):not(.theme-dark) .app-shell .sidebar__group-body .sidebar__sub > summary { color: #1f2a36; }
  html:not(.theme-liquid):not(.theme-dark) .app-shell .sidebar__group-body .sidebar__sub > summary:hover { background: #eef2f7; }
  html:not(.theme-liquid):not(.theme-dark) .app-shell .sidebar__group-body .sidebar__sub-body { border-left-color: #d3dbe5; }
  html:not(.theme-liquid):not(.theme-dark) .app-shell .sidebar__top-link--current,
  html:not(.theme-liquid):not(.theme-dark) .app-shell .sidebar__group--current > summary {
    background: linear-gradient(145deg, #c3d1e3, #d3deeb) !important; color: #113961 !important; font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(17, 57, 97, 0.25) !important; border-radius: 10px;
  }
  html:not(.theme-liquid):not(.theme-dark) .app-shell .sidebar__top-link--current > .sidebar__icon,
  html:not(.theme-liquid):not(.theme-dark) .app-shell .sidebar__group--current > summary > .sidebar__icon { position: relative; transform: translateY(-2px); }
  html:not(.theme-liquid):not(.theme-dark) .app-shell .sidebar__top-link--current > .sidebar__icon::after,
  html:not(.theme-liquid):not(.theme-dark) .app-shell .sidebar__group--current > summary > .sidebar__icon::after {
    content: ""; position: absolute; left: 50%; bottom: -6px; width: 24px; height: 6px; transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 70%);
  }

  /* ダーク: チャコール(2026-10-21 ユーザー: 紺グレーより暗く。Codex v31)。全部を黒にせず、背景・窓・見出し・入力欄を濃淡と枠で分ける */
  .theme-dark {
    --color-bg: #111315;
    --color-surface: #1b1e22;
    --band: #25292e;
    --color-border: #555e69;
    --color-text: #e6e9ee;
    --color-muted: #b8c0ca;
    --color-text-muted: #b8c0ca;
    --color-primary: #477aa8;
    --color-primary-dark: #b6c9dc;
    --frame: #b6c9dc;
    --input-border: #8a95a5;
    --side-bg: #101214;
    --dk-row: #202428;
    --dk-hover: #2a3036;
    --dk-input: #15181b;
    --rn-row-alt: #202428;
    --rn-row-hover: #2a3036;
    --rn-head: linear-gradient(90deg, #2a2e34, #25292e);
    --rn-accent-line: #8a95a5;
    --rn-cell-line: #33383f;
    --rn-amount: #22262b;
  }
  .theme-dark .app-shell { --side-bg: #101214; }
  .theme-dark .app-shell .card { border-radius: 8px; }
  .theme-dark .app-shell .search-form { border: 1px solid var(--color-border); border-radius: 8px; }
  .theme-dark .home-card__title { background: var(--rn-head); box-shadow: inset 3px 0 var(--rn-accent-line); }
  .theme-dark .app-shell .sidebar__top-link--current,
  .theme-dark .app-shell .sidebar__group--current > summary { background: #2a3036 !important; color: #f1f3f6 !important; border-radius: 6px; }

  /* 窓の一番上の見出しの帯は、上の角を窓と同じ丸みに(2026-10-21 ユーザー: ホームのスケジュールの帯の角が四角くはみ出していた。
     窓の角を 12px/18px にしたのに、帯は四角いままだった) */
  html:not(.theme-liquid) .app-shell .card > .home-card__title:first-child { border-radius: 7px 7px 0 0; }
  .theme-liquid .app-shell .card > .home-card__title:first-child { border-radius: calc(var(--liq-radius) - 1px) calc(var(--liq-radius) - 1px) 0 0; }

  /* ---- 表・明細(ノーマル・ダーク): うすい行の交互色・控えめな縦の区切り線 ---- */
  html:not(.theme-liquid) .app-shell .table tbody tr:nth-child(even) td { background: var(--rn-row-alt); }
  html:not(.theme-liquid) .app-shell .table tbody tr:hover td { background: var(--rn-row-hover); }
  html:not(.theme-liquid) .items-table tbody tr:nth-child(even) td { background: var(--rn-row-alt); }
  html:not(.theme-liquid) .items-table tbody tr:hover td { background: var(--rn-row-hover); }
  html:not(.theme-liquid) .items-table thead th { background: var(--band); }
  html:not(.theme-liquid) .items-table td + td, html:not(.theme-liquid) .items-table th + th { border-left: 1px solid var(--rn-cell-line); }
  html:not(.theme-liquid) .items-table td.col-amount { background: var(--rn-amount); }

  /* ---- 3つのデザイン共通: 金額は右寄せ・桁をそろえる(幅のそろった数字) ---- */
  .app-shell .items-table td.col-amount { text-align: right; }
  .app-shell .items-table, .app-shell .table td { font-variant-numeric: tabular-nums; }
  .theme-liquid .items-table td.col-amount { background: rgba(237, 241, 245, 0.75); }
}

/* ---------- ページ見出しの立体アイコン(29種類・明暗。<body data-title-icon>) ---------- */
:root { --title-icon-size: 64px; } /* 2026-10-21 ユーザー: 64・48(見本は 76・58) */
@media (max-width: 860px) { :root { --title-icon-size: 48px; } }
body[data-title-icon] main h1.page-title::before {
  content: ""; display: inline-block; width: var(--title-icon-size); height: var(--title-icon-size);
  margin: -4px 12px -2px 0; vertical-align: middle; background: var(--title-icon) center / contain no-repeat;
}
body[data-title-icon="home"] { --title-icon: url(/assets/design/title/home_light-c50137a763157650a082a7a5bc81da2edb6c4b2788af4102ae740e6638222ffe.webp); }
.theme-dark body[data-title-icon="home"] { --title-icon: url(/assets/design/title/home_dark-52ba1ddee794e2d9273bda282421ee20d2cbae0c279b2a0b6206fb226b536462.webp); }
body[data-title-icon="apps"] { --title-icon: url(/assets/design/title/apps_light-3967e532db607aae99cb394b4b5c1ea848e81769f718bdbf7d9247b4e46c0453.webp); }
.theme-dark body[data-title-icon="apps"] { --title-icon: url(/assets/design/title/apps_dark-68ea3af673387d261ab8b2c77d0c7a085754d06b58e2b1aab050c8516db1a506.webp); }
body[data-title-icon="settings"] { --title-icon: url(/assets/design/title/settings_light-a2ca22cf2446cb9b9fce0ac441f52ba24aa1c2a360a5b13294cd42bdc930e610.webp); }
.theme-dark body[data-title-icon="settings"] { --title-icon: url(/assets/design/title/settings_dark-dcd6c55eb046a018a24be6828b56f44f359d2eddf58e887acb42c240d7ac83d0.webp); }
body[data-title-icon="company"] { --title-icon: url(/assets/design/title/company_light-a91f4ebc0b5890f76f0009dca84f5b26ebb6d200eda18267a47501205b64d482.webp); }
.theme-dark body[data-title-icon="company"] { --title-icon: url(/assets/design/title/company_dark-97242d9ed896af40b619aa630362ba4639425ab13ca05dc66e72eb2510c33790.webp); }
body[data-title-icon="admin"] { --title-icon: url(/assets/design/title/admin_light-261cfd1c6c902f3e76c459394aaf11388ee8699c8bd0eca97cbd31975b352609.webp); }
.theme-dark body[data-title-icon="admin"] { --title-icon: url(/assets/design/title/admin_dark-39594470a1a93aa47057675c070331859f08e702fa779238266bcfa1a7223c65.webp); }
body[data-title-icon="customers"] { --title-icon: url(/assets/design/title/customers_light-537ae621beb9a901bd7dfafab839a8dc2b70d3585822cce23408e15f06d83473.webp); }
.theme-dark body[data-title-icon="customers"] { --title-icon: url(/assets/design/title/customers_dark-5bbf34a796d52ebe1d22a536b92ed25a3fb02be7bcac42a5b634ff2bdd214120.webp); }
body[data-title-icon="funeral"] { --title-icon: url(/assets/design/title/funeral_light-5311775b5dd63bc5c941d58dff9f466c5999da0a648ee44301551563d8299783.webp); }
.theme-dark body[data-title-icon="funeral"] { --title-icon: url(/assets/design/title/funeral_dark-098d0f909b0f32d8a14c77c2c5ba0807b1c2b8d38e31b2083e982b6a8c636916.webp); }
body[data-title-icon="consultation"] { --title-icon: url(/assets/design/title/consultation_light-9b5ef741c09f9db900a3efb46390ff9c9070d9273a20180088378e5a613e28c0.webp); }
.theme-dark body[data-title-icon="consultation"] { --title-icon: url(/assets/design/title/consultation_dark-70f96c48cd18a7c33b083ff271134b6e1683d7b896109e58b931a1646531618f.webp); }
body[data-title-icon="staff"] { --title-icon: url(/assets/design/title/staff_light-3410abdc3d05271064bf6d54be90ad0e32e7916186a6cf04d9ffe3076c466aa1.webp); }
.theme-dark body[data-title-icon="staff"] { --title-icon: url(/assets/design/title/staff_dark-2fcfe056ce526424ed8f485a8f20a54b92845cc5c0863e808de724a4432c8db4.webp); }
body[data-title-icon="estimate"] { --title-icon: url(/assets/design/title/estimate_light-f4390d65ece7fef9db360747515f6750d0ed17f14f0778c00566d72f85968e41.webp); }
.theme-dark body[data-title-icon="estimate"] { --title-icon: url(/assets/design/title/estimate_dark-42a21f4922474b132bf29a0bd670069ce19d07033b110d98defb9563672f91eb.webp); }
body[data-title-icon="billing"] { --title-icon: url(/assets/design/title/billing_light-2195fdbdbb3052ecdb950d88113b09699dc30a5eab732e7cfabe05ee66f33d52.webp); }
.theme-dark body[data-title-icon="billing"] { --title-icon: url(/assets/design/title/billing_dark-666e2080fc78f2648df19d43372f758e82d46b01b2adbae2c83b649cf9389209.webp); }
body[data-title-icon="receipt"] { --title-icon: url(/assets/design/title/receipt_light-d544f8cfcf4597d3468978a457c06d3b2220d7477e01f96d19414bf5e1252782.webp); }
.theme-dark body[data-title-icon="receipt"] { --title-icon: url(/assets/design/title/receipt_dark-a2f46224c3f523701c07656ab7092812ab173ae7bc9afc31ab4a68cf80f9006b.webp); }
body[data-title-icon="payment"] { --title-icon: url(/assets/design/title/payment_light-40ea34d50fff7bff5a8f7e86eb2edeffcf503f818aedcfc03d873126a47b3022.webp); }
.theme-dark body[data-title-icon="payment"] { --title-icon: url(/assets/design/title/payment_dark-623c96f4472933eb1c6baa6b6cb07e0aad9c59799c4d1005d2b4a97e4f4244b0.webp); }
body[data-title-icon="calendar"] { --title-icon: url(/assets/design/title/calendar_light-558aa5e941f287f435b2b79dd0198f43e02694ded916a2f67c079cfa806eca7b.webp); }
.theme-dark body[data-title-icon="calendar"] { --title-icon: url(/assets/design/title/calendar_dark-0c8f2f26b9f8707bf1fe67e859463e33c02b158a3edecf92c62fc092c3df1d07.webp); }
body[data-title-icon="message"] { --title-icon: url(/assets/design/title/message_light-931726359e1a1794f85f482a4f27b7c73a648d7fc7b3398464af1ab8a9459f7f.webp); }
.theme-dark body[data-title-icon="message"] { --title-icon: url(/assets/design/title/message_dark-20df663d8e44a91aee02a275eddf91ef72d0316f9ec6418000bbdd07a671435a.webp); }
body[data-title-icon="mail"] { --title-icon: url(/assets/design/title/mail_light-de79b1340174a7dd0f69b20a378a2deb283f5194f9081396f59d7be1155de4b1.webp); }
.theme-dark body[data-title-icon="mail"] { --title-icon: url(/assets/design/title/mail_dark-2bb0602513daaeeabb441045f5ff16d2dfc3f9880216e8a7b2ec21b4972e5a48.webp); }
body[data-title-icon="board"] { --title-icon: url(/assets/design/title/board_light-3bf2e517259ec438490157eca7c746a04daee2bc7228e994a7b903dedbc4a7ba.webp); }
.theme-dark body[data-title-icon="board"] { --title-icon: url(/assets/design/title/board_dark-a73c7497881c623c89c6e6668b02bd0a3c3426cd38fb3da62826b101dc8c2a92.webp); }
body[data-title-icon="workflow"] { --title-icon: url(/assets/design/title/workflow_light-a050b2651eb11bf0ecc7e0a395199920f8f0a2329d4453b25fe9dffee1988d91.webp); }
.theme-dark body[data-title-icon="workflow"] { --title-icon: url(/assets/design/title/workflow_dark-dfac6cef304985915bc27b7e5009094fd1470090489cb07bd91c42c7bedf4467.webp); }
body[data-title-icon="memo"] { --title-icon: url(/assets/design/title/memo_light-77708666250293a559579bed3a8e3efc052b34496e22562d157469912e56aacd.webp); }
.theme-dark body[data-title-icon="memo"] { --title-icon: url(/assets/design/title/memo_dark-853d564cdaca032e73c7533913b0c349be383e77b160afdbed03c5bd94b713ce.webp); }
body[data-title-icon="files"] { --title-icon: url(/assets/design/title/files_light-2b84d381011be06471efd86c7e7cba91de9f27bc03315c5eff616faf51119d26.webp); }
.theme-dark body[data-title-icon="files"] { --title-icon: url(/assets/design/title/files_dark-61fdffd214bdf9ad4b7816de2c51b933df540e951652337262b26c0a785f261f.webp); }
body[data-title-icon="links"] { --title-icon: url(/assets/design/title/links_light-ee11d47fff966d48799bdab98b3e65af799a614fab38e9860b46d97d7b19668f.webp); }
.theme-dark body[data-title-icon="links"] { --title-icon: url(/assets/design/title/links_dark-efc32191b72b2e8d6ee13950e1692c123ab953b5c3f0aa20d7e5a33746be9932.webp); }
body[data-title-icon="driving"] { --title-icon: url(/assets/design/title/driving_light-593ba875bb0e82a1595e3e9b20652bb9835c4f206820bbb5f52e9adf4de42e9b.webp); }
.theme-dark body[data-title-icon="driving"] { --title-icon: url(/assets/design/title/driving_dark-3a7de1a150d8265bc9ae38a7f3ab9e26441e7db74775405f8c056ecc96035fc0.webp); }
body[data-title-icon="mortuary"] { --title-icon: url(/assets/design/title/mortuary_light-9dcc2c839eb3cc8b2cf48f986a0cc8b305fb5e4aa0960d0e92acaccf11f947ab.webp); }
.theme-dark body[data-title-icon="mortuary"] { --title-icon: url(/assets/design/title/mortuary_dark-791bc736f803cbdc1030e011308d5ad1e89f7a2fa25a7ddfbde75b07786a1302.webp); }
body[data-title-icon="analytics"] { --title-icon: url(/assets/design/title/analytics_light-5941405d33616382f5312d3b09353d8125ae3efc2f507aa1ba4c5a1e88c673de.webp); }
.theme-dark body[data-title-icon="analytics"] { --title-icon: url(/assets/design/title/analytics_dark-93d24b7f1ea30b71fe40145bbc1bb11cfdf7c9d24fbcbbb1f4f0379b4c434950.webp); }
body[data-title-icon="survey"] { --title-icon: url(/assets/design/title/survey_light-5c58d32012299554d1017fb905223491c54b10a2ae1018a4a6d0a7e417aff64b.webp); }
.theme-dark body[data-title-icon="survey"] { --title-icon: url(/assets/design/title/survey_dark-1f4b828c90254a590cbf00226048cc0828b1e81b68f67d07a73ddd51173d4903.webp); }
body[data-title-icon="products"] { --title-icon: url(/assets/design/title/products_light-ca8423736924a35f5f19e08d6f24feb759ef26d76fad2b9e99bafea883631196.webp); }
.theme-dark body[data-title-icon="products"] { --title-icon: url(/assets/design/title/products_dark-44a7a8f715e17b72d18778abb14963448d7d2d25154eba9085db41ed7b44aa39.webp); }
body[data-title-icon="data"] { --title-icon: url(/assets/design/title/data_light-4946a8f37153d9924a36ff8b91eff86d1ea45e3b611375256986dd472e4622fe.webp); }
.theme-dark body[data-title-icon="data"] { --title-icon: url(/assets/design/title/data_dark-1a422efc15cc3af6315624666316a42133f2ab6d6e1633a32066c1eaa880039d.webp); }
body[data-title-icon="import"] { --title-icon: url(/assets/design/title/import_light-9c4994fee25d002e00b49e6669f0d9c0403d5cfb52746b82ae4dfbee0b05d970.webp); }
.theme-dark body[data-title-icon="import"] { --title-icon: url(/assets/design/title/import_dark-a3c55e79bb3e9af56f0a9e1286a218a5aff96690b7d9124e2fd728b53cfcbb52.webp); }
body[data-title-icon="logs"] { --title-icon: url(/assets/design/title/logs_light-b15842c44b117e54032de81ce90df795315a488f75a5c2b0bfaef736a8d3557d.webp); }
.theme-dark body[data-title-icon="logs"] { --title-icon: url(/assets/design/title/logs_dark-c48e208848022b35aadd9c04918e02c9b2add17618379390306895bffb28a7f1.webp); }

/* ---------- 申請の種類ごとの陶器アイコン 17種(Codex v30。WorkflowRequestsHelper#workflow_form_icon)。大きさ(sm/md/lg)は今のまま ---------- */
.wf-icon.wf-icon--porcelain { background: var(--wf-porcelain) center / contain no-repeat; border: 0; box-shadow: none; }
.wf-porcelain--accident { --wf-porcelain: url(/assets/design/workflow/accident_light-056bb22530145cec5c5916276e2116010ca4cfba3ebeaa1a75d205606620ce73.webp); }
.theme-dark .wf-porcelain--accident { --wf-porcelain: url(/assets/design/workflow/accident_dark-92d0dcd20802241d5416050914e6f70db2a515d145f7a19b92042b1b121c6c21.webp); }
.wf-porcelain--apology { --wf-porcelain: url(/assets/design/workflow/apology_light-b863e68e709d1fbc3606f9dd13520bb0e2352d6c04bef432d112dd91939f9357.webp); }
.theme-dark .wf-porcelain--apology { --wf-porcelain: url(/assets/design/workflow/apology_dark-f83079ff4376f75e50fd420d1003bc37ca2a7dad0e683948c21843cee8c4ba1d.webp); }
.wf-porcelain--asset_disposal { --wf-porcelain: url(/assets/design/workflow/asset_disposal_light-7e9b272724ce4050b78381d56808f8a5aa69c9b98337e68864496c8b3565da28.webp); }
.theme-dark .wf-porcelain--asset_disposal { --wf-porcelain: url(/assets/design/workflow/asset_disposal_dark-0257f3511bab03c056918fdfb9405b2aa9f27bf5c06d832e8ea5df9a46843ccb.webp); }
.wf-porcelain--congratulation { --wf-porcelain: url(/assets/design/workflow/congratulation_light-71074c67657c96564b73869e2284f097d77b2480e73a1b6cfda982ac7eba2766.webp); }
.theme-dark .wf-porcelain--congratulation { --wf-porcelain: url(/assets/design/workflow/congratulation_dark-6f816c582dc46b6f5c6928f9b83ff7723ce221874620d1ada4b93e0d195cc9e4.webp); }
.wf-porcelain--discount { --wf-porcelain: url(/assets/design/workflow/discount_light-ceea46fde530d5d512b0e76a5be11d57bb69708c4dc15302beae1128befa4458.webp); }
.theme-dark .wf-porcelain--discount { --wf-porcelain: url(/assets/design/workflow/discount_dark-773552c95d2d6127c1badb6badab070c16c240d7a4e3b7d54d5fd460e3cc786b.webp); }
.wf-porcelain--funeral_discount { --wf-porcelain: url(/assets/design/workflow/funeral_discount_light-ed6bad5315e4169db402255a24bf0d74964bafc9402f90e124f3ba5aa5ddecce.webp); }
.theme-dark .wf-porcelain--funeral_discount { --wf-porcelain: url(/assets/design/workflow/funeral_discount_dark-2f8b593189e3521a508cd0615ffb757bdc4831ee9ebc6a68c3d0daced82ddb41.webp); }
.wf-porcelain--late_early { --wf-porcelain: url(/assets/design/workflow/late_early_light-8a2f208eebd7aa0e109a0ef2aa973963a633592f182cdb9901f18ad1cc550a7d.webp); }
.theme-dark .wf-porcelain--late_early { --wf-porcelain: url(/assets/design/workflow/late_early_dark-ad9efabc2d494ad67852f7f4a2480936081b108a4740eda1c2e35c12af2f4707.webp); }
.wf-porcelain--leave { --wf-porcelain: url(/assets/design/workflow/leave_light-4d56a9e5cda113154115baa7d02216bd0c2e507b9954848dba3a2502875e2233.webp); }
.theme-dark .wf-porcelain--leave { --wf-porcelain: url(/assets/design/workflow/leave_dark-f9c32fbf8b8cbc41e95d12d266fa42cdd4c7977c43da0b2ec9d70e501104899b.webp); }
.wf-porcelain--market_research { --wf-porcelain: url(/assets/design/workflow/market_research_light-fbbfc071a540398f3d8b4a9715ac6acac00d78c8d7123dd6cc3f95df84a3ec9a.webp); }
.theme-dark .wf-porcelain--market_research { --wf-porcelain: url(/assets/design/workflow/market_research_dark-25e23a0724461e7d36281f936b36659cd7c926e15ab072880857e7d75367492d.webp); }
.wf-porcelain--overtime { --wf-porcelain: url(/assets/design/workflow/overtime_light-0fc902838ecbdcd0728bc006c7f986d474b45c18a72f5254f0b41f80d4f4983f.webp); }
.theme-dark .wf-porcelain--overtime { --wf-porcelain: url(/assets/design/workflow/overtime_dark-62fb0ce4b4df587d17179260afd94e3a7d9a14c7a5f9cc58bbc43c6579334735.webp); }
.wf-porcelain--paid_leave { --wf-porcelain: url(/assets/design/workflow/paid_leave_light-d76334fcafee626946b16e9df85c717828dcee0a9d25dce5b547fe539de9c71b.webp); }
.theme-dark .wf-porcelain--paid_leave { --wf-porcelain: url(/assets/design/workflow/paid_leave_dark-d7db5655f2cb00d70dfae14bb2384293e7ad2680935bc3dd65d5444cc6b58dbc.webp); }
.wf-porcelain--purchase { --wf-porcelain: url(/assets/design/workflow/purchase_light-4099586956e2d52a809fa37bbea1373d59890dbcb84bd8f1ea953586adf43d98.webp); }
.theme-dark .wf-porcelain--purchase { --wf-porcelain: url(/assets/design/workflow/purchase_dark-f440ee9980e55cba9bcf0e1996010b594500b5c4a379ca71a8f6c2d80643fa6e.webp); }
.wf-porcelain--referral { --wf-porcelain: url(/assets/design/workflow/referral_light-2e2ad267055c673fe23ac9c0d710b6734c94ea35f8226a60a14e88f0dd071f01.webp); }
.theme-dark .wf-porcelain--referral { --wf-porcelain: url(/assets/design/workflow/referral_dark-611c25eed4afd5526f51a7438d1271db54ee83523bf9d877b127a8fe6f96ee6a.webp); }
.wf-porcelain--ringi { --wf-porcelain: url(/assets/design/workflow/ringi_light-eb5030e648ff2ef5ff145e686f5127fbdf7b0d21c3bcf974912cb627c3f9e58e.webp); }
.theme-dark .wf-porcelain--ringi { --wf-porcelain: url(/assets/design/workflow/ringi_dark-60a11803b7eed19caac27af832fa71a67e3ad65c8599270da36d360dde3ba268.webp); }
.wf-porcelain--ringi_sales { --wf-porcelain: url(/assets/design/workflow/ringi_sales_light-ec36d8a4b90c7fda831edcadb34fe70bf45eab47f74b5dcdc6cd656f86e22a8d.webp); }
.theme-dark .wf-porcelain--ringi_sales { --wf-porcelain: url(/assets/design/workflow/ringi_sales_dark-8c61125eaccfa227f48c71f7b3abc66d8291effa76cc0b83d9d57b2fa916747b.webp); }
.wf-porcelain--sales_allowance { --wf-porcelain: url(/assets/design/workflow/sales_allowance_light-b898f95792e6db7d7deef3b2da15ed7ef47113a85ccb030d5688e3db6f2edf54.webp); }
.theme-dark .wf-porcelain--sales_allowance { --wf-porcelain: url(/assets/design/workflow/sales_allowance_dark-1c9b8b95b03405b79ec8242c0243be342af03ccb278f98dc6deb534c7f50a302.webp); }
.wf-porcelain--travel { --wf-porcelain: url(/assets/design/workflow/travel_light-6452c36c5d95ae92cd479681a583d214b359b5d1f7ee1d89d0141f326d2fd06c.webp); }
.theme-dark .wf-porcelain--travel { --wf-porcelain: url(/assets/design/workflow/travel_dark-a6af14e4a2eb0eca62e5753cbbc64baae20f576eb47737b2e13c964fd311e068.webp); }

/* ---------- スケジュールの天気のイラスト 5種(Codex v33。全デザイン共通の絵。SchedulesHelper#schedule_day_head) ----------
   字の高さに合わせて出す(日付の欄・行の高さは変えない)。2つ並ぶときは 1px あける */
.schedule-day__weather { display: inline-flex; align-items: center; gap: 1px; vertical-align: -0.15em; line-height: 1; }
.wx { display: inline-block; width: 1.25em; height: 1.25em; flex: none; background: center / contain no-repeat; }
.wx--sun { background-image: url(/assets/design/weather/sun-1edf196defcfc8688c08a4a1fde12185b1f41b97bd083d6d720a0d08c1a276c5.webp); }
.wx--cloud { background-image: url(/assets/design/weather/cloud-2e1c60e048a7074e8c5b74dd0953cb2fd240832b7cf1ed174778c9422e7169d6.webp); }
.wx--rain { background-image: url(/assets/design/weather/rain-8d129a0165fee244c995dbed553d213898568c43ff4a4064a9ce6297cb6e004b.webp); }
.wx--thunder { background-image: url(/assets/design/weather/thunder-30ca791439f25134f7bcb19830daa881cf9eed03d24531b11fce7604f0ea9da5.webp); }
.wx--snow { background-image: url(/assets/design/weather/snow-91ac2c47daf627dbde2076af9d53782d11038947d83556e4ea9b46d880a91ea2.webp); }

/* ---------- 左のメニューと下の帯の陶器調アイコン(正面向き) ---------- */
.porcelain { display: inline-block; background: var(--porcelain) center / contain no-repeat; flex: none; }
.porcelain--address { --porcelain: url(/assets/design/nav/address_light-5588b0b763c29984b353f6a83144b6f7b75e90602bead9f38bab3deba701e86c.webp); }
.theme-dark .porcelain--address { --porcelain: url(/assets/design/nav/address_dark-b94f54b7693e4587d436ed3a0107cbfe31f9a1a9eb8bc557617a7cf41654cf41.webp); }.porcelain--admin_docs { --porcelain: url(/assets/design/nav/admin_docs_light-45ad6e896c19ba6b94d3f1da9314dee9dc29500e28484df4b8b0e1bdaa85469e.webp); }
.theme-dark .porcelain--admin_docs { --porcelain: url(/assets/design/nav/admin_docs_dark-f0383826ff23bc059081b96a37cb30b35b961db779cef7caad061c00260e9d39.webp); }.porcelain--apps { --porcelain: url(/assets/design/nav/apps_light-b546a159bad972fddec7cae3bf6c66d9e1e66c8111731771859dac2ebea40171.webp); }
.theme-dark .porcelain--apps { --porcelain: url(/assets/design/nav/apps_dark-5c0445d32fc16d97d5cf0cf3ae68ea8594ec148103a25a884e7513989c79e43b.webp); }.porcelain--bell { --porcelain: url(/assets/design/nav/bell_light-8faab0c415bfe6e27302da1311160e1d42267ac02847f230d69ceb278cf8b7ce.webp); }
.theme-dark .porcelain--bell { --porcelain: url(/assets/design/nav/bell_dark-d18ce21cadd6f49ff7ff8500cf9db667a97d946dc327464169b83a32b6d96467.webp); }.porcelain--bill { --porcelain: url(/assets/design/nav/bill_light-77aace8a43b5fcfa2aea46708a1e5aabc46bcab47f31c634814583c4bffe29ce.webp); }
.theme-dark .porcelain--bill { --porcelain: url(/assets/design/nav/bill_dark-87d594ef6f4c86142d681d2038a59eeaa6a8e91f941be9226dca00d3bcd2b8cb.webp); }.porcelain--board { --porcelain: url(/assets/design/nav/board_light-5bd255b7915310fea0d60b8543a3b01ef68e78dd40bec0940bd4bcafb39d29bc.webp); }
.theme-dark .porcelain--board { --porcelain: url(/assets/design/nav/board_dark-5da963573c44fce23490e13d007f44c62a7778d1715fa254dd81dd1b1ab1eb8c.webp); }.porcelain--calendar { --porcelain: url(/assets/design/nav/calendar_light-c881aad53e270b1fedce41f06361df8ebd40d91e9815956c66430c142baaa7fe.webp); }
.theme-dark .porcelain--calendar { --porcelain: url(/assets/design/nav/calendar_dark-1a8c386ff7a5766e1401d7762c07c720267646044fe4189fac7571f67600760a.webp); }.porcelain--chart { --porcelain: url(/assets/design/nav/chart_light-467d501666415b92218a9901f8281ca25355158a5b1a98b177bd34e1e4556a44.webp); }
.theme-dark .porcelain--chart { --porcelain: url(/assets/design/nav/chart_dark-2b49e3c3f8f98278f447191459b00906dc4ce28c704963b51a914fc3a764f7bf.webp); }.porcelain--chat { --porcelain: url(/assets/design/nav/chat_light-07219a27b52e2b69412aeffccd86ce6e49e07851e9b6651e29743b9b5d1a5c95.webp); }
.theme-dark .porcelain--chat { --porcelain: url(/assets/design/nav/chat_dark-3a9873e4a4826979116c7e0997806498574901e3dc152cb8e0bcfbdd58f96548.webp); }.porcelain--check { --porcelain: url(/assets/design/nav/check_light-bd86bd166452f53b954b42c0d2d1967c7133645f1a4dd5bfeb9ec07c90e47ef1.webp); }
.theme-dark .porcelain--check { --porcelain: url(/assets/design/nav/check_dark-239119989bb67214d498d803baa11c086ddf9c81c60e3dd77df1fcb1897d957a.webp); }.porcelain--consultation { --porcelain: url(/assets/design/nav/consultation_light-c964c7563d714ab7210a9ed475f1b219abd0deb88df7ccfff731009b084dbd22.webp); }
.theme-dark .porcelain--consultation { --porcelain: url(/assets/design/nav/consultation_dark-cc81f163450001000c2d9b75ad427eafe0f0990e8f892f5e163cf187cc028ed7.webp); }.porcelain--driving_log { --porcelain: url(/assets/design/nav/driving_log_light-97323e14104489bcce263f9ff2cd001f46b08ab42864ba5da29822b1dcd57190.webp); }
.theme-dark .porcelain--driving_log { --porcelain: url(/assets/design/nav/driving_log_dark-f9a8007cfc4e053214309d1f7a9b9bc2732c1590a5fd06ecdd95c3a34ecba454.webp); }.porcelain--duty { --porcelain: url(/assets/design/nav/duty_light-cebcf5ecc4d3d2b20340ccd681a72bfd21d6d13f395129111bb1551ecb41b7a7.webp); }
.theme-dark .porcelain--duty { --porcelain: url(/assets/design/nav/duty_dark-61f4d96c2e1b2e14f905e2764c4d46e84006ec1d10f716137d8fe5c8bdd70dff.webp); }.porcelain--folder { --porcelain: url(/assets/design/nav/folder_light-3420e528274356d64722eaa7415abf12121063173ab5ed07b5996506def457c4.webp); }
.theme-dark .porcelain--folder { --porcelain: url(/assets/design/nav/folder_dark-843f1947719744d11adeec0d2fe2f143d748b883e2002377b52fc8accfb5f33e.webp); }.porcelain--funeral_reports { --porcelain: url(/assets/design/nav/funeral_reports_light-fd515602d07cb6929c964c7fea37dfd9d43604a4cf715068b5bf5e4bb9451490.webp); }
.theme-dark .porcelain--funeral_reports { --porcelain: url(/assets/design/nav/funeral_reports_dark-596f2470fd62e9c3ec22c73dcafa25cbb7da71033496dfde0b2693a4b95680aa.webp); }.porcelain--hikkou { --porcelain: url(/assets/design/nav/hikkou_light-cc6c6b73b8cdc01d7876d9c76f634b39adff3b87d063783d4f97c39ebefc7b43.webp); }
.theme-dark .porcelain--hikkou { --porcelain: url(/assets/design/nav/hikkou_dark-33271a001966c9c260539d14498646b426e673a3cebea0cd7f758577b1146537.webp); }.porcelain--home { --porcelain: url(/assets/design/nav/home_light-79ac232a75e8094f050d2c82be2cf4568e2956d5cfcb407dc766b5093b14bfe6.webp); }
.theme-dark .porcelain--home { --porcelain: url(/assets/design/nav/home_dark-6840a2ab6159a5858ddb0b805610d2993aa77f864db639dfc4cb11de86c266f8.webp); }.porcelain--links { --porcelain: url(/assets/design/nav/links_light-ea1f84c28666e1bd9d9e002c3ab67f404d0caa25a0d173cb32d9bca6074e4511.webp); }
.theme-dark .porcelain--links { --porcelain: url(/assets/design/nav/links_dark-7221f6e3e69a7818997798d56f07365e8fafaa8a8600f417aeebb9ae1f4ae958.webp); }.porcelain--mail { --porcelain: url(/assets/design/nav/mail_light-55bd43ec0240646be00d1c3cc7ab466ed854111da51b54a4caa363605a5c41b5.webp); }
.theme-dark .porcelain--mail { --porcelain: url(/assets/design/nav/mail_dark-e44016d0d3051749b18f52d7c1763b994fe899a03aece59b97bc749bfc552a2c.webp); }.porcelain--memo { --porcelain: url(/assets/design/nav/memo_light-097a806207e289e6dd0338485617f2c960d37501d0440ade9dc05df55dbf4e2f.webp); }
.theme-dark .porcelain--memo { --porcelain: url(/assets/design/nav/memo_dark-21317093d6ea27fd5640a52f3ea75cec703f60cca642125324007ce153c69b2c.webp); }.porcelain--menu { --porcelain: url(/assets/design/nav/menu_light-ae512ebf33f3562866dbdadf315bcd913c22a1adae063c0662fa7f2f8342f411.webp); }
.theme-dark .porcelain--menu { --porcelain: url(/assets/design/nav/menu_dark-df3f4d56a469086ef06e5f569996e9713f8831d2ab5f891b930ad1341abed8aa.webp); }.porcelain--mortuary { --porcelain: url(/assets/design/nav/mortuary_light-2aa097cad38ce0b06043af879cb1544e13585ac28fadb62f0a725bdd0b63b794.webp); }
.theme-dark .porcelain--mortuary { --porcelain: url(/assets/design/nav/mortuary_dark-01498d21341e28404355877ea1ff51752a130cd9e3806be2a32311c8f4266def.webp); }.porcelain--settings { --porcelain: url(/assets/design/nav/settings_light-1ce07ae961c38df54a139e1ab36d7a540dbef34d1642ba79f730add2a7155911.webp); }
.theme-dark .porcelain--settings { --porcelain: url(/assets/design/nav/settings_dark-0b8abd0624865f7be666835376039f637f3e0d179c6fdb985b0f468f248f442e.webp); }.porcelain--shift { --porcelain: url(/assets/design/nav/shift_light-718e332dc235367c6a793c01f4aece31fc2b459807c8bb81b8f29ca74fcc2938.webp); }
.theme-dark .porcelain--shift { --porcelain: url(/assets/design/nav/shift_dark-a1bc8624f2c789f9095ae603d008ff28e7f82ab95eeedf801afbcf196ad17e37.webp); }.porcelain--shop { --porcelain: url(/assets/design/nav/shop_light-690884fe9888086d92f12a8ab1dac79c3cf963a5660b059fe11569156b0c36ac.webp); }
.theme-dark .porcelain--shop { --porcelain: url(/assets/design/nav/shop_dark-9ae9a2085da03aa2cbe6dd8ecee5f0b391f904fabc208ba77e1339945a62651a.webp); }.porcelain--site_management { --porcelain: url(/assets/design/nav/site_management_light-c3bb6fbc11e69eb10a3d609621fd07d8352bb3b9f4c4abeaa9b71e73dc87f7ca.webp); }
.theme-dark .porcelain--site_management { --porcelain: url(/assets/design/nav/site_management_dark-92b107cc210386cb098e90329ec2ec4f754892e329d55d293699b8fa80b47bed.webp); }.porcelain--star { --porcelain: url(/assets/design/nav/star_light-140d8363fa12b36dabb79b67a8ed34839b40a23604662c849bee12554f831f65.webp); }
.theme-dark .porcelain--star { --porcelain: url(/assets/design/nav/star_dark-41b25bfd5d72499495df9036be2673119b8b46c5f9783154952d5216bb1c004c.webp); }.porcelain--supplier_slip { --porcelain: url(/assets/design/nav/supplier_slip_light-2a2e4c7aad5350868f3ca60e520095ef3d0fee36106b0154ad3cb125c8e95e7f.webp); }
.theme-dark .porcelain--supplier_slip { --porcelain: url(/assets/design/nav/supplier_slip_dark-aca4caeae3644e62ea2d96386e99fced6ad35b3f04ac9272f2cf2c9853346786.webp); }.porcelain--survey_request { --porcelain: url(/assets/design/nav/survey_request_light-cb7a45e8ce8bfe642cae01215173c87cbbce1a1e10a505ff6f459cc507cdf095.webp); }
.theme-dark .porcelain--survey_request { --porcelain: url(/assets/design/nav/survey_request_dark-63ac118080d1347e70b958fa1ba60eb0b0bcceb83522dcf6efb22527c512cd18.webp); }.porcelain--todo { --porcelain: url(/assets/design/nav/todo_light-a1f861a6603f2e56e2b46344de82309f3e895101312b20326f180d74d470efd9.webp); }
.theme-dark .porcelain--todo { --porcelain: url(/assets/design/nav/todo_dark-135c1689c96aee5abffd555dacd8a6475dafc14c43e45dd6729737e78eed364a.webp); }.porcelain--user { --porcelain: url(/assets/design/nav/user_light-5ab7821095ac33332278726ae0fd8073b5a71347aea482e06568a4baa3ff9242.webp); }
.theme-dark .porcelain--user { --porcelain: url(/assets/design/nav/user_dark-b448c0f30d84188375eda04f4db66c2eb887e7bb403a8b2252f89febf312bb16.webp); }.porcelain--users { --porcelain: url(/assets/design/nav/users_light-1217be34d8f133e0f48d1bccd69da0e85902f2bd6c2fe40c1de17f5c247b948d.webp); }
.theme-dark .porcelain--users { --porcelain: url(/assets/design/nav/users_dark-e1450638b037b969114de27a7959bcf50e00eba44d4c4f00c61127cacd76c1de.webp); }.porcelain--weekly_night { --porcelain: url(/assets/design/nav/weekly_night_light-6308294a648180004d0ef7e2588c38f09947aa364add6aa0ff0b3ca072202547.webp); }
.theme-dark .porcelain--weekly_night { --porcelain: url(/assets/design/nav/weekly_night_dark-8e305634d4662d9b6335e132997c58f20f536dcb1d473d70115231e0ab9be631.webp); }.porcelain--workflow { --porcelain: url(/assets/design/nav/workflow_light-0dba96b010447c1d8131581eae69451f8728ee54bcbc4bfb904d5d0709b787dc.webp); }
.theme-dark .porcelain--workflow { --porcelain: url(/assets/design/nav/workflow_dark-3e1911d7375fed6f1576f199480edb1d675c796d487b0a7b87da0a57c7fbc7dd.webp); }.sidebar .porcelain.sidebar__icon { width: 32px; height: 32px; flex-basis: 32px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18)); transition: transform 0.15s ease; }
.sidebar__top-link:hover > .porcelain, .sidebar__group > summary:hover > .porcelain { transform: translateY(-1px) scale(1.06); }
.tab-bar__item > .porcelain.sidebar__icon { width: 32px; height: 32px; margin-bottom: 1px; }
/* 押している項目: 項目全体でなく、アイコンの後ろだけ小さな淡い青緑の面(2026-10-24 Codex v80) */
.tab-bar__item.is-active::before { content: ""; position: absolute; left: 50%; top: 1px; width: 48px; height: 36px; transform: translateX(-50%); z-index: -1;
  background: linear-gradient(145deg, #e0e7e6, #e9ece7); border: 1px solid rgba(201, 212, 208, 0.5); border-radius: 6px; }
.theme-dark .tab-bar__item.is-active::before { background: rgba(225, 223, 219, 0.14); border-color: rgba(225, 223, 219, 0.2); }
/* ノーマル(白い画面)は下の帯・上の帯も白に合わせる(2026-10-27 ユーザー: アイボリーはガラスと同じで、白い画面だと浮く)。押している項目の面は帯の色の薄い青グレー。
   2026-10-28 ユーザー: v90(グレーのすりガラス)をやめてこの形に戻した(ガラス・ダークも v90 の前の形) */
@media (max-width: 860px) {
  html:not(.theme-liquid):not(.theme-dark) .tab-bar { background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 252, 0.99)); border-color: #c9d2de; box-shadow: 0 3px 10px rgba(17, 57, 97, 0.1); }
  html:not(.theme-liquid):not(.theme-dark) .tab-bar__item.is-active::before { background: linear-gradient(145deg, #e6ebf2, #eef1f6); border-color: rgba(185, 199, 216, 0.6); }
  html:not(.theme-liquid):not(.theme-dark) .mobile-bar.mobile-bar--page.is-scrolled { background: rgba(255, 255, 255, 0.97); }
}
/* スマホの下の帯の色(2026-10-28 ユーザー: 見本 Artifact「下の帯の透け感」で決めた。プライムビデオの下の帯のように透かす)。
   ノーマル = A(白・透けない)・ガラス = C(よく透ける白いすりガラス・ふちに光)・ダーク = D(暗いすりガラス・名前は白)。
   押している所は項目全体に面を敷く(前はアイコンの後ろの小さな面): ノーマルは濃いめの青グレー・ガラスは白い面に銀の縁(C-5)・ダークは黒っぽい面に白い細い縁。
   形・位置・大きさは今のまま(application.css) */
@media (max-width: 860px) {
  .tab-bar .tab-bar__item.is-active::before { content: none; }
  .tab-bar .tab-bar__item { border-radius: 12px; }
  html:not(.theme-liquid):not(.theme-dark) .tab-bar .tab-bar__item { color: #3a3f44; }
  html:not(.theme-liquid):not(.theme-dark) .tab-bar .tab-bar__item.is-active {
    background: linear-gradient(145deg, #c3d1e3, #d3deeb); color: #113961; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(17, 57, 97, 0.25);
  }
  html.theme-liquid .tab-bar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.18)); border-color: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(12px) saturate(200%) brightness(1.06); backdrop-filter: blur(12px) saturate(200%) brightness(1.06);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), inset 0 -1px 1px rgba(255, 255, 255, 0.35), 0 6px 20px rgba(17, 27, 37, 0.18);
  }
  html.theme-liquid .tab-bar .tab-bar__item { color: #15202b; text-shadow: 0 0 8px rgba(255, 255, 255, 0.95), 0 0 2px rgba(255, 255, 255, 0.9); }
  html.theme-liquid .tab-bar .tab-bar__item.is-active {
    color: #113961; font-weight: 750; text-shadow: none; border: 1.5px solid transparent;
    background: linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)) padding-box,
                linear-gradient(135deg, #fbfcfd 0%, #a4adb8 28%, #f2f4f7 50%, #8e98a4 74%, #e9edf1 100%) border-box;
    box-shadow: 0 2px 8px rgba(17, 27, 37, 0.16);
  }
  html.theme-dark .tab-bar {
    background: rgba(34, 38, 46, 0.48); border-color: rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 20px rgba(0, 0, 0, 0.25);
  }
  html.theme-dark .tab-bar .tab-bar__item { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
  html.theme-dark .tab-bar .tab-bar__item.is-active { background: rgba(0, 0, 0, 0.55); color: #fff; font-weight: 750; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
  /* 押している所のアイコンは少し浮かせて、下に影(2026-10-28 ユーザー: 見本の「浮かせる」)。iPhone で影(filter)の付いた絵が
     描き直されずに消えることがあったので(2026-10-26 左のメニュー)、影は filter を使わず、絵の下に置いたぼかした楕円で */
  .tab-bar .tab-bar__item > .sidebar__icon { position: relative; transition: transform 0.2s ease; }
  .tab-bar .tab-bar__item.is-active > .sidebar__icon { transform: translateY(-3px); }
  .tab-bar .tab-bar__item.is-active > .sidebar__icon::after {
    content: ""; position: absolute; left: 50%; bottom: -7px; width: 26px; height: 7px; transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0) 70%);
  }
  html.theme-dark .tab-bar .tab-bar__item.is-active > .sidebar__icon::after { background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 70%); }
  @media (prefers-reduced-motion: reduce) { .tab-bar .tab-bar__item > .sidebar__icon { transition: none; } }
  /* すりガラスが使えない端末・透け感を減らす設定は、読みやすい不透明の色 */
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    html.theme-liquid .tab-bar { background: rgba(250, 251, 252, 0.96); }
    html.theme-dark .tab-bar { background: #2a2e35; }
  }
  @media (prefers-reduced-transparency: reduce) {
    html.theme-liquid .tab-bar { background: rgba(250, 251, 252, 0.97); }
    html.theme-dark .tab-bar { background: #2a2e35; }
  }
}
@media (max-width: 860px) {
  /* 2026-10-26 ユーザー(iPhone): メニューのまとまりを1つ開くと、ほかのまとまりのアイコンが消えた(場所は空いたまま)。
     iPhone の Safari は、影(filter)の付いた絵が、まとまりを開いて並びが動いたときに描き直されないことがある
     → スマホは影と動きを付けない(下の帯の絵は影なしで消えていない) */
  .sidebar .porcelain.sidebar__icon { width: 36px; height: 36px; flex-basis: 36px; filter: none; transition: none; }
  .sidebar__top-link:hover > .porcelain, .sidebar__group > summary:hover > .porcelain { transform: none; }
  .tab-bar__item > .porcelain.sidebar__icon { width: 32px; height: 32px; }
}

/* ---------- ホームの背景(個人設定「ホームの背景」。home-hero--<背景> home-hero--band-<高さ>) ---------- */
.home-hero { position: relative; isolation: isolate; margin: -6px 0 14px; padding: 12px 18px 12px; border-radius: 8px; overflow: hidden;
  background-color: var(--hero-base, #f3f1ec); background-repeat: no-repeat; box-shadow: 0 1px 3px rgba(30, 40, 50, 0.12); }
.home-hero > * { position: relative; z-index: 1; }
/* 左は字が読めるように少し白く(右の絵は見える) */
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0, rgba(255, 255, 255, 0.45) 38%, rgba(255, 255, 255, 0) 72%); }
.home-hero .home__head { justify-content: flex-start; min-height: var(--hero-head, 72px); margin-bottom: 6px; gap: 8px 18px; }
.home-hero--band-compact { --hero-head: 40px; }
@media (max-height: 850px) { .home-hero--band-auto { --hero-head: 40px; } }
.home-hero { min-height: calc(var(--hero-head, 72px) + 44px); }
.home-hero .home__leave { background: rgba(255, 255, 255, 0.9); }
/* お知らせは小さな札に(2026-10-21 見本: 横に並べる・長い文は折り返す) */
.home-hero .home__notices { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 6px 8px; margin-bottom: 0; max-width: min(820px, 68%); }
.home-hero .home__notice { display: inline-flex; max-width: 100%; padding: 4px 12px 4px 5px; gap: 8px; border-radius: 8px;
  background: rgba(255, 246, 232, 0.94); box-shadow: 0 2px 6px rgba(60, 50, 30, 0.12); }
.home-hero .home__notice:hover { background: #fff1db; }
.home-hero .home__notice--error { background: rgba(253, 235, 234, 0.95); }
.home-hero .home__notice-icon { width: 26px; height: 26px; }
.home-hero .home__notice-icon svg { width: 15px; height: 15px; }
.home-hero .home__more { max-width: 100%; }
.home-hero .home__more > summary { border-radius: 8px; padding: 4px 14px; background: rgba(255, 250, 240, 0.92); }
.home-hero .home__more-list { flex-direction: row; flex-wrap: wrap; }

.home-hero--none { background: none; box-shadow: none; padding: 0; min-height: 0; margin-top: 0; overflow: visible; }
.home-hero--none::before { display: none; }
.home-hero--none .home__head { min-height: 0; justify-content: space-between; margin-bottom: 12px; }
.home-hero--none .home__notices { max-width: none; }

/* 絵の背景(2026-10-22 Codex v39: 4800×300 の横長の絵14種類。主役は右・左は文字が乗る淡い景色・上下30pxは切れてよい余白)。
   右をそろえて cover(ふつうの幅は高さに合わせて左が切れる・とても広い窓は横に合わせて上下が少し切れる)。
   前の猫・犬・小鳥の「右の絵の左のふちをぼかしてつなぐ」形は、絵が横長になったので要らなくなった */
.home-hero--spring { background-image: url(/assets/design/home/spring-3338ad812e9e88e55c4abdc7aab6a0b3fcfd2aa470658532c16aec30e65b434d.webp); }
.home-hero--summer { background-image: url(/assets/design/home/summer-2c1a2b5248cf1378142d792631876303234c78d0623810c4a8d8b4fa0ef8318e.webp); }
.home-hero--autumn { background-image: url(/assets/design/home/autumn-818649e5bd93cc356d85911e24a1d9a1d9df95adf675b70444497ff98ed9b564.webp); }
.home-hero--winter { background-image: url(/assets/design/home/winter-53ec0dbbe4104292639ff141dad5301c12f04186a26084a14312eee23446f217.webp); }
.home-hero--goldfish { background-image: url(/assets/design/home/goldfish-948ebf7683ec065809c805f3431e59518d88ec07c5fb789a0568831d97c8a1cb.webp); }
.home-hero--cat { background-image: url(/assets/design/home/cat-39e3e66563cfb0b256a8f67aa556bb53eefd84efa1dcbb7b5fd3025cec0b4475.webp); }
.home-hero--dog { background-image: url(/assets/design/home/dog-da87d37248c16df96dc5e48bfb8bb5f356dbfb86f59da09b9246d5a989e12755.webp); }
.home-hero--bird { background-image: url(/assets/design/home/bird-bab3a759f3a09a60bc1edc1058720ae1be13c8b942854cb19e98e7b3e0a66b50.webp); }
.home-hero--owl_night { background-image: url(/assets/design/home/owl_night-c82c22692f81555dce8e7f86631ebb92d759fa99b197803b8cfc2c0304509847.webp); }
.home-hero--moon_susuki { background-image: url(/assets/design/home/moon_susuki-88096b952f33f131914eefce7380061ba05df6df9790492123178709c47a6202.webp); }
.home-hero--hydrangea_rain { background-image: url(/assets/design/home/hydrangea_rain-5f39166a8a7386557ea27ae28aea1d9db4033c6a72d6514117e09150b3236200.webp); }
.home-hero--whale_shark { background-image: url(/assets/design/home/whale_shark-07259c54e1d99b572e68729e48c89f6dfd80938f55d3c0254218ec7cee56f75b.webp); }
.home-hero--fox_family { background-image: url(/assets/design/home/fox_family-0df30fa9138eabf3771c75aa216d7bddd88821ab950f9371c507b689991118a6.webp); }
.home-hero--arowana { background-image: url(/assets/design/home/arowana-6654e76ea317b816da502f3537570a671d53088d5b7425935e4b8781a8be9817.webp); }
.home-hero--space { background-image: url(/assets/design/home/space-55e0f8e33ecc5c0200c951e77df20a5789066cfd13205d170e51aa1fce8ed9e0.webp); }
.home-hero--fuji { background-image: url(/assets/design/home/fuji-5796dd76727f88f548e87fae5295bb4a54640e6b272e8791038f888e1a406f2a.webp); }
.home-hero--yakushima { background-image: url(/assets/design/home/yakushima-85e8d6b13c8f85408022fe8ffc4500669a76084dec8078604af3b5c0ef0da3ce.webp); }
.home-hero--shirakawa_snow { background-image: url(/assets/design/home/shirakawa_snow-bec2a83fbb4dbb313062f6b2e3debf6eecee5e1ab74518b16f47f916bf17f8ae.webp); }
.home-hero--mont_saint_michel_day { background-image: url(/assets/design/home/mont_saint_michel_day-ceab93cbcdf1cb3187cf3be576213557aae57c6616248f307e268b23636ef49e.webp); }
.home-hero--mont_saint_michel_night { background-image: url(/assets/design/home/mont_saint_michel_night-1be9686510e571f6a52cee3ee091c0c336f668720d7979a61d21b116b089348e.webp); }
.home-hero--westminster { background-image: url(/assets/design/home/westminster-0b8367eb2a1a20324fbcc172f64eb6d666d3e4bd8e10846f00e1f63d6e1db801.webp); }
.home-hero--machu_picchu { background-image: url(/assets/design/home/machu_picchu-704dba4b57b8be368021e6159186182e9efeae4e525610bcf527a28349f9b59a.webp); }
.home-hero--blue_waves { background-image: url(/assets/design/home/blue_waves-6c0889d48d76c251655f0503866758dce74199262763bcb3737b22cc2221e8a0.webp); }
.home-hero--pink_circles { background-image: url(/assets/design/home/pink_circles-6d8b7efcb700a95f147c375110b4fcee455d1c88e0acb6094882896fc409ff0a.webp); }
.home-hero--apricot_shapes { background-image: url(/assets/design/home/apricot_shapes-c01b4372576efd7bde8670afae30bc19e2e02dab38a99747425c24f6fb9e14cb.webp); }
.home-hero--sage_weave { background-image: url(/assets/design/home/sage_weave-f0492ae54af6212490b70931320c6b0da063b9df671ad11f64df76378608c737.webp); }
.home-hero--blue_cats { background-image: url(/assets/design/home/blue_cats-349ef3432a5562205bb0af60702e7ecf9fe075e4df39f4cfd5ed1b723f36bf0a.webp); }
.home-hero--sage_birds { background-image: url(/assets/design/home/sage_birds-4067f8251477609714f4f0fd8130da72795b3e500e79a31ccc0848bb68ad5dae.webp); }
.home-hero--apricot_dog { background-image: url(/assets/design/home/apricot_dog-742914c7cc5481cfa4abfb256e6c482dadeb2cc8d7ffdc1e80efbae3ff9cb5ed.webp); }
.home-hero--rose_flowers { background-image: url(/assets/design/home/rose_flowers-43f9dd05240de7c6b3913e0e32a8a14f47f6604422dbe7916ef5311efab1e609.webp); }
.home-hero--greige_curves { background-image: url(/assets/design/home/greige_curves-cf03478d1b36564fbe1d4a6c7756583d97cbd353e286b95880b84e6aebddf920.webp); }
.home-hero--lavender_geometry { background-image: url(/assets/design/home/lavender_geometry-10101322fbc3f2dc2561799a306c218f1809e20f26b47845c491f2a9e64c3c56.webp); }
.home-hero--greige_town { background-image: url(/assets/design/home/greige_town-8c1325f6e1c9289dfc85042ae35b05629602ea28680583ab5f972eac54da1729.webp); }
.home-hero--ivory_arches { background-image: url(/assets/design/home/ivory_arches-f502045426ba395b22d7c3e20fa4a38af89d6353ab01be125613a1207f61ba09.webp); }
.home-hero--sumi_landscape { background-image: url(/assets/design/home/sumi_landscape-af5f31190782632721db28206901cd7a5399ca7ddaafec59b5901402671bf754.webp); }
.home-hero--sumi_bamboo { background-image: url(/assets/design/home/sumi_bamboo-6cc845b72d5f29f1cb8d9bac41e04f6312c9f0b3f4a0fdc3c68025bc81a975d9.webp); }
.home-hero--sumi_garden { background-image: url(/assets/design/home/sumi_garden-79d54b11a822037a9ebb4d6fabbafbbc18c7cfc8b7b9d16eba2e7ba839b6beeb.webp); }
.home-hero--sumi_tiger { background-image: url(/assets/design/home/sumi_tiger-18970397172aa5bf31eba0807c38eac58f7339e103c4013118dc8b7afba2ecc1.webp); }
.home-hero--polar_bear { background-image: url(/assets/design/home/polar_bear-0210c5ba499b0bd490c82ece0bf3acdf3c06f5dcd8b8d834d95f7b00fa804417.webp); }
.home-hero--coelacanth { background-image: url(/assets/design/home/coelacanth-413e1598ff0c9855cf266f44439e69d04d3d4461131942f8b6e34a4c824d3e2a.webp); }
.home-hero--giza { background-image: url(/assets/design/home/giza-7f0d5b7a877f267b68ca6d0d4cb2061201c5171b98784a9d7d2a6506a60b4642.webp); }
:is(.home-hero--spring, .home-hero--summer, .home-hero--autumn, .home-hero--winter, .home-hero--goldfish, .home-hero--cat, .home-hero--dog, .home-hero--bird, .home-hero--owl_night, .home-hero--moon_susuki, .home-hero--hydrangea_rain, .home-hero--whale_shark, .home-hero--fox_family, .home-hero--arowana, .home-hero--space, .home-hero--fuji, .home-hero--yakushima, .home-hero--shirakawa_snow, .home-hero--mont_saint_michel_day, .home-hero--mont_saint_michel_night, .home-hero--westminster, .home-hero--machu_picchu, .home-hero--blue_waves, .home-hero--pink_circles, .home-hero--apricot_shapes, .home-hero--sage_weave, .home-hero--blue_cats, .home-hero--sage_birds, .home-hero--apricot_dog, .home-hero--rose_flowers, .home-hero--greige_curves, .home-hero--lavender_geometry, .home-hero--greige_town, .home-hero--ivory_arches, .home-hero--sumi_landscape, .home-hero--sumi_bamboo, .home-hero--sumi_garden, .home-hero--sumi_tiger, .home-hero--polar_bear, .home-hero--coelacanth, .home-hero--giza) { background-size: cover; background-position: right center; }
/* 自分の写真(2026-10-23。HomePhotosController で 10:1 に切ったもの。URL は style の --home-photo)。選んだ部分が見えるよう真ん中に合わせる */
.home-hero--photo { background-image: var(--home-photo); background-size: cover; background-position: center; background-color: #eef1f4; }
/* 夜の背景は左が濃い紺なので、字の下を少し強く白くする */
:is(.home-hero--owl_night, .home-hero--moon_susuki, .home-hero--space, .home-hero--mont_saint_michel_night, .home-hero--coelacanth)::before { background: linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0, rgba(255, 255, 255, 0.6) 34%, rgba(255, 255, 255, 0) 62%); }
/* 色だけの背景(見本の4つ) */
.home-hero--pink { background-image: linear-gradient(110deg, #fff4f7 35%, #f5dae5 73%, #edbfd2); }
.home-hero--orange { background-image: radial-gradient(ellipse 95% 210% at 110% 145%, #edbd99 0 38%, transparent 38.5%), radial-gradient(ellipse 100% 210% at 107% 175%, #f7ddc4 0 65%, transparent 65.5%); --hero-base: #fff4e9; }
.home-hero--lavender { background-image: linear-gradient(115deg, #f4effa 42%, #e5daf2 72%, #d4c4e8); }
.home-hero--mint { background-image: radial-gradient(circle at 85% 55%, transparent 0 42px, #a1c5b370 43px 44px, transparent 45px), radial-gradient(circle at 97% 120%, #c6e0d2 0 100px, transparent 101px); --hero-base: #eef7f1; }

/* ダーク: 絵を暗く沈める(字は明るいまま) */
.theme-dark .home-hero { box-shadow: none; }
.theme-dark .home-hero::before { background: linear-gradient(90deg, rgba(24, 28, 34, 0.86) 0, rgba(24, 28, 34, 0.7) 40%, rgba(24, 28, 34, 0.5) 100%); }
.theme-dark .home-hero .home__leave { background: rgba(40, 44, 50, 0.92); }
.theme-dark .home-hero .home__notice { background: rgba(58, 47, 23, 0.94); }
.theme-dark .home-hero .home__notice--error { background: rgba(59, 31, 31, 0.95); }
.theme-dark .home-hero .home__more > summary { background: rgba(43, 37, 28, 0.94); }

/* スマホは背景を出さない(見出し・お知らせはそのまま) */
@media (max-width: 860px) {
  .home-hero:not(.home-scene-choice) { background: none !important; box-shadow: none; padding: 0; min-height: 0; margin-top: 0; overflow: visible; }
  .home-hero:not(.home-scene-choice)::before { display: none; }
  .home-hero .home__head { min-height: 0; margin-bottom: 12px; }
  .home-hero .home__notices { max-width: none; flex-direction: column; flex-wrap: nowrap; }
  .home-hero .home__notice { display: flex; border-radius: 8px; padding: 8px 12px; background: #feecd2; }
  .home-hero .home__notice--error { background: #fdebea; }
}

/* 個人設定の背景の見本 */
.home-scene-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.home-scene-choice { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 64px; padding: 6px 8px;
  border: 1px solid var(--color-border); border-radius: 8px; cursor: pointer; overflow: hidden; text-align: left; font: inherit; color: #222020; }
.home-scene-choice::before { content: none; }
.home-scene-choice span { position: relative; z-index: 1; align-self: flex-start; background: rgba(255, 255, 255, 0.88); border-radius: 6px; padding: 0 6px; font-size: 0.9rem; font-weight: 600;
  color: #222020; } /* 白い札の上なので字はいつも濃い色(2026-11-24: ダークで白い字になり読めなかった) */
.home-scene-choice.is-active { outline: 3px solid var(--frame, #2f5f93); outline-offset: 1px; }
.home-scene-choice.home-hero { margin: 0; min-height: 64px; padding: 6px 8px; box-shadow: none; }
/* 小さな見本は主役(絵の右の方)が見えるように少し左へずらす(2026-10-22 v39。右端だけだと水や木しか見えなかった) */
.home-scene-choice.home-hero { background-position: 80% center; }
.home-scene-choice.home-hero--none { border-style: dashed; background: #fff; color: #222020; }

/* ---------- ドット絵: ホームの背景の上を歩く(奥は小さく・足もとに影。critters_controller.js の field) ---------- */
.critters-field { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.critter--field { left: 0; top: 0; bottom: auto; transform-origin: 50% 100%; will-change: translate; }
.critter--field .critter__body { display: block; position: relative; }
.critter--field .critter__body::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -3px; height: 5px; border-radius: 50%; background: rgba(40, 35, 25, 0.22); z-index: -1; }
@media print { .home-hero { background: none !important; } .critters-field { display: none; } }

/* ---------- スマホ・ダークの白い面の直し(Codex v28。スケジュールの右上のメニュー・メールの上の帯・メモの操作の帯) ----------
   白い半透明の背景が直に書いてあり、ダークで字だけ明るくなって読めなかった。位置・高さ・操作は変えない */
@media screen {
  .theme-dark :is(.mbar-actions, .mbar-pop, .m-head__bar, .m-head__more, .memo__bar):where(:not(.print-page, .print-page *)) {
    background: var(--color-surface); color: var(--color-text); border-color: var(--color-border);
    box-shadow: 0 6px 20px rgb(0 0 0 / 24%); -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .theme-dark :is(.mbar-btn, .mbar-pop__item, .memo__bar-item, .memo__bar-icon, .m-head__title):where(:not(.print-page, .print-page *)) { color: var(--color-text); }
  .theme-dark :is(.m-head__btn, .m-chip):where(:not(.print-page, .print-page *)) {
    background: var(--band); color: var(--color-text); border-color: var(--color-border); box-shadow: none;
  }
  .theme-dark .m-chip.is-on:where(:not(.print-page, .print-page *)) { background: #2f3a46; color: #f1f3f6; border-color: #b6c9dc; }
  .theme-dark .m-chip--warn:where(:not(.print-page, .print-page *)) { color: #ffb0b0; }
  .theme-dark .m-head__title small:where(:not(.print-page, .print-page *)) { color: var(--color-muted); }
  .theme-dark .m-search input:where(:not(.print-page, .print-page *)) { background: var(--dk-input); color: var(--color-text); border-color: var(--color-border); }
  .theme-dark .m-search input::placeholder { color: var(--color-muted); opacity: 1; }
  .theme-dark :is(.mbar-pop__item, .memo__bar-item, .m-head__btn, .m-chip):where(:not(.print-page, .print-page *)):not(:disabled):not([aria-disabled=true]):active,
  .theme-dark .mbar-menu[open] > .mbar-btn:where(:not(.print-page, .print-page *)) { background: var(--dk-hover); }
  .theme-dark :is(.mbar-btn, .mbar-pop__item, .memo__bar-item, .m-head__btn, .m-chip):where(:not(.print-page, .print-page *)):focus-visible { outline: 2px solid var(--frame); outline-offset: 2px; }
  @media (hover: hover) {
    .theme-dark :is(.mbar-pop__item, .memo__bar-item, .m-head__btn, .m-chip):where(:not(.print-page, .print-page *)):not(:disabled):not([aria-disabled=true]):hover { background: var(--dk-hover); }
  }
}

/* ---------- スマホのメール一覧の段違いの塗りの直し(Codex v29。3つのデザインとも) ----------
   760px 以下は行を grid にしているので、セルごとの背景(交互色・hover)が段違いに見えた → 背景は行(tr)だけに */
@media screen and (max-width: 760px) {
  .mail-page .table.mail-list { --mail-row-bg: var(--color-surface, #fff); --mail-row-selected: #e8f0fb; --mail-row-hover: #f2f6fc; }
  .theme-dark .mail-page .table.mail-list { --mail-row-selected: #2f3a46; --mail-row-hover: var(--dk-hover); }
  .mail-page .table.mail-list tbody > tr:where(:not(.print-page *)) { background: var(--mail-row-bg); border-bottom: 1px solid var(--color-border, #c5ced8); }
  :is(.theme-dark, .theme-liquid) .mail-page .table.mail-list tbody > tr:nth-child(n) > td:where(:not(.print-page *)),
  .mail-page .table.mail-list tbody > tr > td:where(:not(.print-page *)),
  .mail-page .table.mail-list tbody > tr:nth-child(even) > td:where(:not(.print-page *)),
  .mail-page .table.mail-list tbody > tr[data-href]:hover > td:where(:not(.print-page *)),
  .mail-page .table.mail-list tbody > tr:is(:active, :focus-within) > td:where(:not(.print-page *)) { background: transparent; border: 0; box-shadow: none; }
  .mail-page.is-editing .table.mail-list tbody > tr:has(input[type=checkbox]:checked):where(:not(.print-page *)) { background: var(--mail-row-selected); }
  .mail-page .table.mail-list tbody > tr[data-href]:active:where(:not(.print-page *)) { background: var(--mail-row-selected); }
  .mail-page .table.mail-list tbody > tr[data-href]:focus-visible:where(:not(.print-page *)) { outline: 2px solid var(--frame, #2f5f93); outline-offset: -2px; }
  @media (hover: hover) and (pointer: fine) {
    .mail-page .table.mail-list tbody > tr[data-href]:hover:where(:not(.print-page *)) { background: var(--mail-row-hover); }
    .mail-page.is-editing .table.mail-list tbody > tr:has(input[type=checkbox]:checked):hover:where(:not(.print-page *)) { background: var(--mail-row-selected); }
  }
}
/* 牛と UFO の場面(2026-10-22 Codex v49。critters_controller.js#playCowUfo)。押せない飾り・印刷しない */
.critters-event { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
@media print { .critters-event { display: none; } }
@media (max-width: 860px) { .critters-event { display: none; } }
/* スマホのメニュー: 開いたまとまりを色の箱に(2026-10-30 ユーザー: 開いている所が分かりづらい → 案A)。
   見出しを紺に塗り、中身は薄い色の箱に入れて左に紺の線。今いる画面は白く浮かせる。開けるのは1つだけ(sidebar_group_controller.js) */
@media (max-width: 860px) {
  .app-shell .sidebar__nav > .sidebar__group[open] { border-bottom-color: transparent; }
  .sidebar__spacer { flex: none; } /* 開いた見出しを上まで動かすための空白(sidebar_group_controller.js#bringToTop) */
  .app-shell .sidebar__group[open] > summary,
  html:not(.theme-liquid):not(.theme-dark) .app-shell .sidebar__group[open] > summary {
    background: #113961 !important; color: #fff !important; font-weight: 700; border-radius: 10px 10px 0 0 !important; box-shadow: none !important;
  }
  .app-shell .sidebar__group[open] > summary::after { opacity: 1; }
  .app-shell .sidebar__group[open] > summary > .sidebar__icon::after { display: none; }
  .app-shell .sidebar__group[open] > .sidebar__group-body {
    margin: 0 0 6px; padding: 6px 6px 8px 8px; border-left: 5px solid #113961; border-radius: 0 0 10px 10px; background: #e8eef6;
  }
  .app-shell .sidebar__group[open] > .sidebar__group-body a { color: #1f2a36; border-radius: 8px; }
  .app-shell .sidebar__group[open] > .sidebar__group-body a[aria-current="page"] {
    background: #fff; color: #113961; font-weight: 800; box-shadow: 0 1px 4px rgba(17, 57, 97, 0.18);
  }
  /* ガラス: 箱はすりガラスの白・見出しは紺 */
  .theme-liquid .app-shell .sidebar__group[open] > summary { background: rgba(17, 57, 97, 0.92) !important; }
  .theme-liquid .app-shell .sidebar__group[open] > .sidebar__group-body {
    background: rgba(255, 255, 255, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-left-color: rgba(17, 57, 97, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  }
  .theme-liquid .app-shell .sidebar__group[open] > .sidebar__group-body a[aria-current="page"] { background: #fff; box-shadow: 0 0 0 1px #c9d0d8, 0 1px 4px rgba(17, 57, 97, 0.18); }
  /* ダーク: 見出しは明るめの青灰・箱は少し明るいチャコール */
  .theme-dark .app-shell .sidebar__group[open] > summary { background: #3c5675 !important; color: #fff !important; }
  .theme-dark .app-shell .sidebar__group[open] > .sidebar__group-body { background: #2a2f35; border-left-color: #6f93bd; }
  .theme-dark .app-shell .sidebar__group[open] > .sidebar__group-body a { color: #e8ebef; }
  .theme-dark .app-shell .sidebar__group[open] > .sidebar__group-body a[aria-current="page"] { background: #47505b; color: #fff; box-shadow: none; }
}
