/*!
 * © 2026 パソコンサロンゆうらく (Pasokon Salon Yuuraku). All rights reserved.
 * Project: ゆうらく学習トレーニングポータルYuuraku Leaning station
 * File: short-story-break styles.css
 * BUILD_ID: YR-2026-0115-K19                 // ← 公開用の可視ビルドID
 * CANARY_ZW
 * SPDX-License-Identifier: LicenseRef-Yuuraku-Proprietary
 * Contact: yuurakunomori@gmail.com  |  URL: https://yuurakus.jp/
 *
 * 重要
 * 
* [日本語 / Japanese]
 * 本スタイルシートおよび関連ファイルの著作権（著作権法上の権利）は、パソコンサロンゆうらくに専属します。
 * 法令で明示的に認められる場合を除き、当社の事前の書面許諾なく、複製・複写・転載・転用・編集・改変・翻案・
 * 逆コンパイル／リバースエンジニアリング・再配布・商用利用・公衆送信（Webへのアップロードを含む）・
 * 自動取得／スクレイピング等の二次利用を固く禁じます。侵害が判明した場合、警告なく直ちに
 * 差止請求・損害賠償請求等の法的措置を厳格に行います。
 * 【重要】本スタイルシートには検証用のBUILD IDおよび不可視の「カナリア文字（ウォーターマーク）」が埋め込まれ、
 * ソースには識別用IDが隠されています。これらの削除・改変は契約違反・不正競争・著作権侵害等として追及します。
 *
 * [English]
 * Copyright in this stylesheet and related files is owned exclusively by
 * Pasokon Salon Yuuraku unless otherwise stated. Except as expressly permitted by law,
 * any reproduction, modification, adaptation, reverse engineering, redistribution,
 * commercial use, public transmission (including posting on the web), or automated
 * collection/scraping without prior written permission is strictly prohibited.
 * Upon detection of infringement, we will immediately pursue legal remedies including
 * injunctive relief and damages. IMPORTANT: This stylesheet embeds a verifiable BUILD ID
 * and invisible “canary” watermark characters, and an identification ID is hidden in the source.
 * Removal or alteration will be treated as a violation and strictly enforced.
 *
 * [中文 / Chinese (Simplified)]
 * 本样式表及相关文件之著作权，除非另有说明，专属于「Pasokon Salon Yuuraku」。
 * 未经事先书面许可，严禁复制、转载、修改、改编、逆向工程、再分发、商业使用、
 * 公开传播（含上传至网络）及自动抓取/爬取等二次利用。一经发现侵权，将立即采取包括
 * 禁令与损害赔偿在内的法律措施。重要：本样式表内已嵌入可验证的BUILD ID与不可见
 * “金丝雀”水印字符，且源代码中隐藏有识别用ID。擅自删除或篡改将被视为违规并依法追究。
 *
 * [한국어 / Korean]
 * 본 스타일시트 및 관련 파일의 저작권은 별도 고지가 없는 한
 * ‘파소콘 살롱 유우라쿠(Pasokon Salon Yuuraku)’에 전속됩니다.
 * 사전 서면 허가 없이 복제, 전재, 전용, 수정, 각색, 리버스 엔지니어링,
 * 재배포, 상업적 이용, 공중송신(웹 게시 포함), 자동 수집·스크래핑 등의 2차 이용을 엄격히 금합니다.
 * 위반 시 예고 없이 즉시 금지청구 및 손해배상 청구 등 법적 조치를 취합니다.
 * 중요: 본 스타일시트에는 검증 가능한 BUILD ID와 보이지 않는 ‘카나리아(워터마크) 문자’가 포함되며,
 * 소스 내부에는 식별용 ID가 숨겨져 있습니다. 이를 삭제·변조하는 행위는 위반으로 간주되어 엄정 대응합니다.
 */

/* =========================================================
  short-story-break reader styles.css
  =========================================================*/

:root{
  /* Luxury library palette: ivory + ink + gold + teal */
  --scriptFont: "Snell Roundhand","Apple Chancery","Zapfino","Segoe Script","Brush Script MT",cursive;
  --ssbMincho: ui-serif, "Hiragino Mincho ProN","Hiragino Mincho Pro","Yu Mincho","YuMincho","Noto Serif JP","Noto Serif CJK JP","MS PMincho","MS Mincho",serif;
  --ink: #0b0b10;
  --ink2:#10111a;
  --paper:#f4f1e7;
  --paper2:#efe9d8;
  --gold:#c9a24e;
  --teal:#6aa6a8;

  --text: rgba(244,241,231,.96);
  --muted: rgba(244,241,231,.72);
  --line: rgba(244,241,231,.14);
  --line2: rgba(244,241,231,.08);

  --card: rgba(16,17,26,.62);
  --card2: rgba(16,17,26,.76);

  --r: 18px;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --shadow2: 0 12px 36px rgba(0,0,0,.35);

  --pad: clamp(16px, 3vw, 28px);
  --max: 1120px;

  --fz1: clamp(14px, 1.7vw, 16px);
  --fz2: clamp(18px, 2.3vw, 22px);
  --fz3: clamp(28px, 3.8vw, 44px);

  --focus: 0 0 0 3px rgba(201,162,78,.28);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(900px 700px at 18% 12%, rgba(106,166,168,.18), transparent 60%),
    radial-gradient(1000px 800px at 90% 10%, rgba(201,162,78,.16), transparent 62%),
    linear-gradient(180deg, var(--ink), var(--ink2));
  font-family: var(--scriptFont);
  letter-spacing:.02em;
  overflow-x:hidden;
}
button, input, select{ font: inherit; }
a{ color:inherit; text-decoration:none; }

#bg{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:-1;
  display:block;
  opacity:.85;
}

.container{
  width:min(var(--max), calc(100% - var(--pad)*2));
  margin:0 auto;
}

/* Intro overlay (click to enter) */
.intro{
  position:fixed;
  inset:0;
  z-index:80;
  display:grid;
  place-items:center;
  background:
    radial-gradient(1200px 900px at 50% 18%, rgba(244,241,231,.06), transparent 55%),
    radial-gradient(900px 700px at 50% 70%, rgba(201,162,78,.14), transparent 62%),
    linear-gradient(180deg, rgba(11,11,16,.92), rgba(11,11,16,.96));
  backdrop-filter: blur(16px);
  cursor:pointer;
}
.introInner{ text-align:center; padding: 24px 18px; }
.introScript{
  font-family: var(--scriptFont);
  font-size: clamp(44px, 7vw, 84px);
  color: rgba(244,241,231,.98);
  text-shadow: 0 18px 60px rgba(0,0,0,.55);
  line-height:1.02;
}
.introSub{
  margin-top: 12px;
  font-size: 12px;
  letter-spacing:.28em;
  text-transform: uppercase;
  color: rgba(244,241,231,.52);
}
.introCopy{
  margin: 14px auto 0;
  max-width: 52ch;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: rgba(244,241,231,.72);
  font-family: ui-sans-serif, system-ui, -apple-system, "Hiragino Kaku Gothic ProN",
               "Yu Gothic", "Meiryo", sans-serif;
}
@media (max-width: 420px){
  .introCopy{ font-size: 12px; }
}

.introHint{
  margin-top: 22px;
  display:inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201,162,78,.35);
  background: rgba(201,162,78,.10);
  color: rgba(244,241,231,.85);
}
.intro.hide{
  animation: introOut .42s ease forwards;
}
@keyframes introOut{
  to{ opacity:0; transform: translateY(6px); pointer-events:none; }
}

/* Header (minimal) */
.header{
  position:sticky;
  top:0;
  z-index:30;
  background: linear-gradient(180deg, rgba(11,11,16,.78), rgba(11,11,16,.35));
  border-bottom: 1px solid var(--line2);
  backdrop-filter: blur(14px);
}
.headerInner{
  display:flex;
  gap: 14px;
  align-items:center;
  padding: 12px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 210px;
}
.brandMark{
  width:28px; height:28px;
  border-radius: 10px;
  border: 1px solid rgba(201,162,78,.30);
  background:
    radial-gradient(14px 14px at 35% 35%, rgba(201,162,78,.85), transparent 70%),
    radial-gradient(16px 16px at 70% 70%, rgba(106,166,168,.70), transparent 75%),
    linear-gradient(180deg, rgba(244,241,231,.12), rgba(244,241,231,.02));
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
}
.brandText{ display:flex; flex-direction:column; line-height:1.1; }
.brandName{ font-weight: 720; letter-spacing:.06em; font-size: 15px; }
.brandSub{ font-size: 12px; color: rgba(244,241,231,.58); margin-top:2px; }
/* Header: one-line about text */
.brandNote{
  font-size: 11px;
  color: rgba(244,241,231,52);
  margin-top: 2px;
  max-width: 44ch;
}
html[data-theme="light"] .brandNote{ color: rgba(11,11,16,52); }
@media (max-width: 980px){
  .brandNote{ display:none; } /* ヘッダー混雑回避 */
}
html[data-theme="light"] .introCopy{
  color: rgba(11,11,16,.68);
}

/* Footer: operator + policy */
.footerPolicy{
  margin-top: 8px;
  color: rgba(244,241,231,70);
  font-size: 12px;
  line-height: 1.5;
}
.footerOps{
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 12px;
  color: rgba(244,241,231,60);
}
.footerLink{
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .95;
}
html[data-theme="light"] .footerPolicy{ color: rgba(11,11,16,70); }
html[data-theme="light"] .footerOps{ color: rgba(11,11,16,60); }

.searchWrap{ position:relative; flex:1 1 auto; min-width: 180px; }
.search{
  width:100%;
  border-radius: 999px;
  padding: 10px 40px 10px 14px;
  background: rgba(244,241,231,.06);
  border: 1px solid rgba(244,241,231,.10);
  color: var(--text);
  outline:none;
}
.search:focus{ box-shadow: var(--focus); border-color: rgba(201,162,78,.35); }

.iconBtn{
  position:absolute;
  top:50%;
  right:6px;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(244,241,231,.12);
  background: rgba(244,241,231,.06);
  color: var(--text);
}
.iconBtn:focus{ outline:none; box-shadow: var(--focus); }

.pill{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201,162,78,.35);
  background: rgba(201,162,78,.12);
  color: rgba(244,241,231,.92);
  font-weight: 650;
  white-space:nowrap;
}
.pill.ghost{
  border: 1px solid rgba(244,241,231,.12);
  background: rgba(244,241,231,.06);
  color: rgba(244,241,231,.78);
}
.pill:focus{ outline:none; box-shadow: var(--focus); }
.pillKey{ color: rgba(201,162,78,.98); }
.pillSep{ color: rgba(244,241,231,.55); padding:0 6px; }
.pillVal{ color: rgba(244,241,231,.78); }

/* App show/hide */
.app.is-hidden{ opacity:0; transform: translateY(8px); pointer-events:none; }
.app{ opacity:1; transform:none; transition: opacity .35s ease, transform .35s ease; }

/* Hero */
.hero{ padding: clamp(12px, 2.8vw, 20px) 0 10px; }
.heroMedia{
  position: relative;
  z-index: 0; /* 追加：heroBoxより必ず背面にする */
  overflow: hidden;
  border-radius: var(--r);

  background:
    radial-gradient(900px 600px at 20% 30%, rgba(201,162,78,18), transparent 60%),
    radial-gradient(900px 600px at 80% 10%, rgba(106,166,168,18), transparent 62%),
    linear-gradient(180deg, rgba(11,11,16,55), rgba(11,11,16,92));

  /* 文字を置くので高さを確保（clamp の min/max も正しい順に） */
  height: clamp(100px, 22vw, 180px);
}

.heroMedia::after{
  content:"";
  position:absolute;
  inset:0;
  z-index: 1;
  pointer-events: none;

  background:
    radial-gradient(900px 600px at 20% 30%, rgba(201,162,78,14), transparent 60%),
    radial-gradient(900px 600px at 80% 10%, rgba(106,166,168,14), transparent 62%);
  mix-blend-mode: screen;
  opacity:.8;
}

/* heroMedia 内に置く筆記体タイトル */
.heroScript{
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 44px;          /* heroBox（-34px）に少し被らない位置 */
  z-index: 2;
  text-align: center;

  font-family: var(--scriptFont);

  font-size: clamp(28px, 6.2vw, 80px);
  line-height: 1.45;
  letter-spacing: .02em;

  color: rgba(244,241,231,92);
  text-shadow: 0 18px 50px rgba(0,0,0,35);
}

/* Lightテーマ時は黒寄りに（背景が明るいので） */
html[data-theme="light"] .heroScript{
  color: rgba(11,11,16,90);
  text-shadow: 0 18px 50px rgba(0,0,0,16);
}

.heroBox{
  position: relative; /* 追加 */
  z-index: 2;         /* 追加：heroMediaより必ず前面 */
  margin-top: -34px;
  border-radius: var(--r);
  border: 1px solid rgba(244,241,231,.12);
  background: rgba(16,17,26,.70);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow2);
  padding: 16px;
}
.heroTitle{
  margin: 4px 0 8px;
  font-size: var(--fz3);
  line-height:1.05;
  letter-spacing:.02em;
  font-family: var(--scriptFont);
}
.heroLead{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: var(--fz1);
  line-height:1.55;
  max-width: 62ch;
}

.heroActions{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.btn{
  text-align:left;
  padding: 12px 12px;
  border-radius: var(--r);
  border: 1px solid rgba(201,162,78,.28);
  background: linear-gradient(180deg, rgba(201,162,78,.14), rgba(244,241,231,.06));
  color: rgba(244,241,231,.95);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  transition: transform .14s ease, border-color .14s ease;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(201,162,78,.42); }
.btn:focus{ outline:none; box-shadow: var(--focus); }
.btn.ghost{
  border: 1px solid rgba(244,241,231,.12);
  background: rgba(244,241,231,.06);
  color: rgba(244,241,231,.85);
  box-shadow:none;
}
.btnTop{ display:block; font-weight: 760; font-size: 14px; }
.btnSub{ display:block; margin-top:4px; color: rgba(244,241,231,.62); font-size: 12px; }

/* Accordion */
.acc{
  margin-top: 12px;
  border-radius: var(--r);
  border: 1px solid rgba(244,241,231,.12);
  background: rgba(11,11,16,.30);
}
.accSum{
  list-style:none;
  cursor:pointer;
  padding: 12px 12px;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  align-items:baseline;
}
.accSum::-webkit-details-marker{ display:none; }
.accTitle{ font-weight: 760; }
.accHint{ color: rgba(244,241,231,.62); font-size: 12px; }
.accBody{
  padding: 0 12px 12px;
  border-top: 1px solid rgba(244,241,231,.10);
}
.accRow{ margin-top: 12px; }
.rowTitle{
  font-size: 12px;
  color: rgba(244,241,231,.62);
  margin-bottom: 8px;
  letter-spacing:.10em;
  text-transform: uppercase;
}
.accTools{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
}

.select{
  display:flex;
  gap: 10px;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(244,241,231,.12);
  background: rgba(244,241,231,.06);
}
.selectLabel{ color: rgba(244,241,231,.62); font-size: 12px; }
select{
  background: transparent;
  color: rgba(244,241,231,.92);
  border:none;
  outline:none;
  font-weight: 650;
}

/* Chips / Genres */
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  border: 1px solid rgba(244,241,231,.12);
  background: rgba(244,241,231,.06);
  color: rgba(244,241,231,.78);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  transition: transform .14s ease, border-color .14s ease;
}
.chip:hover{ transform: translateY(-1px); border-color: rgba(106,166,168,.28); }
.chip[aria-pressed="true"]{
  border-color: rgba(201,162,78,.45);
  background: rgba(201,162,78,.12);
  color: rgba(244,241,231,.95);
}
.chip:focus{ outline:none; box-shadow: var(--focus); }

.genreGrid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
.genreCard{
  text-align:left;
  border-radius: var(--r);
  border: 1px solid rgba(244,241,231,.12);
  background: rgba(244,241,231,.06);
  padding: 12px;
}
.genreName{ font-weight: 820;   font-family: var(--scriptFont); }
.genreDesc{ margin: 6px 0 0; color: rgba(244,241,231,.68); font-size: 13px; line-height:1.45; }

/* Active filters */
.activeFilters{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  justify-content:flex-end;
}
.filterPill{
  border: 1px solid rgba(201,162,78,.28);
  background: rgba(201,162,78,.10);
  color: rgba(244,241,231,.78);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
}

/* List */
.section{ padding: 16px 0 8px; }
.sectionHead{ display:flex; justify-content:space-between; align-items:end; margin: 4px 0 12px; }
.sectionTitle{
  margin:0;
  font-size: var(--fz2);
  letter-spacing:.02em;
  font-family: var(--scriptFont);
}

/* Thumbnail grid cards */
.thumbGrid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}


/* Author sort: show as a 1-column list */
.thumbGrid.is-list{
  grid-template-columns: 1fr;
}

/* Group header (author) */
.groupHead{
  grid-column: 1 / -1;
  padding: 10px 12px;
  border-radius: var(--r);
  border: 1px solid rgba(244,241,231,.12);
  background: rgba(244,241,231,.04);
  font-weight: 820;
  letter-spacing: .02em;
  font-family: var(--scriptFont);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

}

/* Author link in group header */
.authorModalLink{
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
.authorModalLink:hover{ opacity: .88; }
.authorModalLink:focus{
  outline: none;
  box-shadow: var(--focus);
  border-radius: 10px;
}

/* Author modal (Top page) */
body.modalOpen{ overflow: hidden; }

.authorModal{
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}
.authorModal.is-open{ display: block; }

.authorModalBackdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,55);
  backdrop-filter: blur(12px);
}

.authorModalPanel{
  position: relative;
  width: min(780px, calc(100% - 28px));
  margin: 10vh auto;
  border-radius: var(--r);
  border: 1px solid rgba(244,241,231,12);
  background: rgba(16,17,26,92);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
}

html[data-theme="light"] .authorModalPanel{
  border-color: rgba(11,11,16,12);
  background: rgba(244,241,231,96);
  box-shadow: 0 18px 60px rgba(0,0,0,18);
}

.authorModalClose{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(244,241,231,12);
  background: rgba(244,241,231,06);
  color: inherit;
  cursor: pointer;
}
html[data-theme="light"] .authorModalClose{
  border-color: rgba(11,11,16,12);
  background: rgba(11,11,16,04);
}

.authorModalTitle{
  margin: 4px 44px 10px 2px;
  font-size: 22px;
  letter-spacing: .02em;
  font-family: var(--scriptFont);
}

.authorModalBody{
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo", sans-serif;
  line-height: 1.65;
}

.authorModalTagline{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}
.authorModalBio{ margin: 0 0 12px; }

.authorModalFacts{
  margin: 10px 0 0;
  padding-left: 18px;
}
.authorModalLinks{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.authorModalLink{
  text-decoration: underline;
  text-underline-offset: 3px;
}
.authorModalNote{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Light theme */
html[data-theme="light"] .groupHead{
  border-color: rgba(11,11,16,.12);
  background: rgba(11,11,16,.03);
  color: rgba(11,11,16,.92);
}

.thumbGrid.is-list .thumbBtn{
  display:grid;
  grid-template-columns: 180px 1fr;
}
.thumbGrid.is-list .thumbMedia{
  height: auto;
  min-height: 120px;
}
.thumbGrid.is-list .thumbBody{
  padding: 14px;
}
@media (max-width: 560px){
  .thumbGrid.is-list .thumbBtn{
    grid-template-columns: 1fr;
  }
.thumbGrid.is-list .thumbMedia{
  min-height: 140px;
}

}
.thumb{
  /* 影を変数化して“列として統一” */
  --thumbShadow: 0 10px 28px rgba(0,0,0,.22);
  --thumbShadowHover: 0 16px 44px rgba(0,0,0,.28);

  border-radius: var(--r);
  border: 1px solid rgba(244,241,231,.12);
  background: rgba(16,17,26,.62);
  overflow:hidden;

  box-shadow: var(--thumbShadow);
  transition: transform .14s ease, border-color .14s ease, box-shadow .18s ease;
}

/* hover は“浮き”と“影”だけ上品に */
.thumb:hover{
  transform: translateY(-1px);
  border-color: rgba(201,162,78,.28);
  box-shadow: var(--thumbShadowHover);
}

/* キーボード操作でも同じ体験（フォーカスで軽く浮く） */
.thumb:focus-within{
  border-color: rgba(201,162,78,.30);
  box-shadow: var(--thumbShadowHover);
}

.thumbBtn{
  display:block;
  width:100%;
  border:none;
  background: transparent;
  padding:0;
  color:inherit;
  text-align:left;
}

.thumbMedia{
  /* マット（余白）の太さ：ここで額縁感を調整 */
  --thumbMat: 14px;

  /* カードを少し縦長に（カバーが見やすい） */
  aspect-ratio: 4 / 5;
  height: auto;

  padding: var(--thumbMat);
  position: relative;
  overflow: hidden;
  border-radius: 18px;

  /* マット（台紙）色 */
  background-color: rgba(255,255,255,0.60);

  /* app.js の inline background-image は
     url(thumb), fallbackGradient の2枚構成なので2レイヤ指定 */
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: contain, cover;

  /* ★重要：画像（＆グラデ）を“窓=content-box”にだけ描く → マットにかからない */
  background-origin: content-box, content-box;
  background-clip: content-box, content-box;

  /* ほんのり高級感 */
  box-shadow:
    0 10px 26px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.60);

  isolation: isolate; /* 擬似要素の重なりを安定させる */
}

/* 窓の内枠（カバーはこの内側に収まって見える） */
.thumbMedia::before{
  content:"";
  position:absolute;
  inset: var(--thumbMat);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(201,162,78,0.40),
    inset 0 0 0 1px rgba(255,255,255,0.60);
  pointer-events:none;
  z-index: 2;
  transition: box-shadow .18s ease, opacity .18s ease;

}

/* 外周の面取り（額縁っぽさ：クリア版） */
.thumbMedia::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events:none;

  /* ★曇りガラス（overlay）を無効化 */
  background: none;

  /* 額縁の面取り */
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.10),
    inset 0 10px 18px rgba(255,255,255,0.18),
    inset 0 -14px 22px rgba(0,0,0,0.08);

  transition: box-shadow .18s ease, opacity .18s ease;
}




.thumbMedia::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(11,11,16,.05), rgba(11,11,16,.72));
}
@media (hover:hover) and (pointer:fine){

  /* ★“額縁の内枠”を強めに発光 */
  .thumb:hover .thumbMedia::before{
    box-shadow:
      0 0 0 1px rgba(201,162,78,0.85),
      0 0 18px rgba(201,162,78,0.28),
      0 0 58px rgba(201,162,78,0.34),
      inset 0 0 0 1px rgba(255,255,255,0.60);
  }

  /* ★“マット全体”にも薄いオーラ（これが体感を一気に上げる） */
  .thumb:hover .thumbMedia{
    box-shadow:
      0 10px 26px rgba(0,0,0,0.10),
      0 0 16px rgba(201,162,78,0.26),
      0 0 54px rgba(201,162,78,0.22),
      inset 0 1px 0 rgba(255,255,255,0.60);
  }

  /* 外周の面取りも少し艶を増やす */
  .thumb:hover .thumbMedia::after{
    box-shadow:
      inset 0 0 0 1px rgba(0,0,0,0.10),
      inset 0 12px 20px rgba(255,255,255,0.24),
      inset 0 -16px 26px rgba(0,0,0,0.12);
  }
}


/* キーボードフォーカスでも同じ発光（アクセシビリティ） */
.thumb:focus-within .thumbMedia::before{
  box-shadow:
    0 0 0 1px rgba(201,162,78,0.85),
    0 0 18px rgba(201,162,78,0.28),
    0 0 58px rgba(201,162,78,0.34),
    inset 0 0 0 1px rgba(255,255,255,0.60);
}
.thumb:focus-within .thumbMedia{
  box-shadow:
    0 10px 26px rgba(0,0,0,0.10),
    0 0 16px rgba(201,162,78,0.26),
    0 0 54px rgba(201,162,78,0.22),
    inset 0 1px 0 rgba(255,255,255,0.60);
}


.thumbBody{
  padding: 12px;
  font-family: var(--ssbMincho);
}

.thumbTitle{
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}


/* Thumb rating (TOP cards) */
.thumbRating{
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.thumbStars{
  display: flex;
  gap: 6px;
}
.thumbStar{
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(244,241,231,.12);
  background: rgba(244,241,231,.06);
  color: rgba(244,241,231,.38);
  line-height: 1;
  font-size: 14px;
}
.thumbStar.is-on{
  color: var(--gold);
  border-color: rgba(201,162,78,.35);
  background: rgba(201,162,78,.12);
}
.thumbRatingText{
  font-size: 12px;
  color: rgba(244,241,231,.70);
}

html[data-theme="light"] .thumbStar{
  border-color: rgba(11,11,16,.14);
  background: rgba(11,11,16,.03);
  color: rgba(11,11,16,.32);
}
html[data-theme="light"] .thumbStar.is-on{
  color: rgba(201,162,78,.95);
  border-color: rgba(201,162,78,.40);
  background: rgba(201,162,78,.12);
}
html[data-theme="light"] .thumbRatingText{
  color: rgba(11,11,16,.66);
}

.thumbMeta{
  margin-top: 8px;
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
}
.badge{
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(244,241,231,.12);
  background: rgba(244,241,231,.06);
  color: rgba(244,241,231,.74);
}
.badge.time{ border-color: rgba(201,162,78,.30); color: rgba(201,162,78,.95); }
.badge.genre{ border-color: rgba(106,166,168,.28); color: rgba(106,166,168,.95); }
.thumbExcerpt{
  margin: 10px 0 0;
  color: rgba(244,241,231,.70);
  font-size: 13px;
  line-height:1.52;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.thumbFoot{
  margin-top: 10px;
  color: rgba(244,241,231,.55);
  font-size: 12px;
}

/* Empty */
.empty{
  border: 1px dashed rgba(244,241,231,.18);
  border-radius: var(--r);
  padding: 18px;
  margin: 12px 0 6px;
  background: rgba(244,241,231,.04);
}
.emptyTitle{ font-weight: 820; }
.emptySub{ margin-top:6px; color: rgba(244,241,231,.70); font-size: 13px; }

/* Footer */
.footer{
  padding: 22px 0 30px;
  border-top: 1px solid rgba(244,241,231,.10);
  margin-top: 10px;
}
.footerBrand{ font-weight: 850; letter-spacing:.06em; }
.footerDesc{ margin-top:6px; color: rgba(244,241,231,.72); font-size: 13px; line-height:1.5; }
.footerFine{ margin-top: 14px; color: rgba(244,241,231,.55); font-size: 12px; }

/* Responsive (Mobile-first tuning)
   - Make hero compact on phones
   - Show covers sooner
   - Multi-column card grid on phones (3 cols; falls back to 2/1 on very small)
*/
@media (max-width: 980px){
  /* Filters */
  .genreGrid{ grid-template-columns: repeat(2, minmax(0,1fr)); }

  /* Hero: avoid tall first view */
  .heroActions{ grid-template-columns: repeat(2, minmax(0,1fr)); }

  /* Cards: 4 -> 3 columns on smaller screens */
  .thumbGrid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* Phone portrait */
@media (max-width: 560px){
/* Header: wrap + compact controls (phone) */
.brandSub{ display:none; }

.headerInner{
  padding: 9px 0;
  gap: 10px;
  flex-wrap: wrap;   /* ← はみ出し防止 */
  row-gap: 8px;
}

.brand{
  min-width: 0;      /* ← 210px固定を解除して縮められるように */
  flex: 1 1 auto;    /* ← 右端ボタンのための余白を作る */
}

/* search は2段目に落としてフル幅（= 1段目をボタンに譲る） */
.searchWrap{
  order: 3;
  flex: 1 1 100%;
  min-width: 0;
}

/* JP/EN, Theme の pill を 1段目に寄せる */
.headerInner > .pill{
  order: 2;
  flex: 0 0 auto;
}

/* ボタン最少化 */
.pill{
  padding: 8px 10px;
  font-size: 12px;
}

/* Theme: の “Theme :” を隠して値だけに（Light/Dark のみ表示） */
.pillKey,
.pillSep{
  display:none;
}
.pillVal{
  display:inline-block;
  max-width: 18ch;
  overflow:hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.search{ padding: 9px 38px 9px 12px; }


  /* Hero: compact so covers appear quickly */
  .hero{ padding: 8px 0 6px; }
  .heroMedia{ height: clamp(72px, 22vw, 110px); }
  .heroScript{
    bottom: 18px;
    font-size: clamp(22px, 7vw, 44px);
    line-height: 1.25;
  }
  .heroBox{ margin-top: -18px; padding: 12px; }
  .heroTitle{
    margin: 2px 0 6px;
    font-size: clamp(22px, 7vw, 34px);
    line-height: 1.06;
  }
  .heroLead{
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.55;
  }

  /* Buttons: smaller + 2 columns */
  .heroActions{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .btn{ padding: 10px; border-radius: 16px; }
  .btnTop{ font-size: 13px; }
  .btnSub{ display:none; } /* <- this is the big height saver */

  /* Cards: phone default = 3 columns */
  .thumbGrid{ grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }

  /* Cards: keep them compact so covers dominate */
  .thumbMedia{ --thumbMat: 10px; }
  .thumbBody{ padding: 9px; }
  .thumbTitle{ font-size: 13px; }
  .thumbRating{ margin-top: 6px; gap: 6px; }
  .thumbStars{ gap: 4px; }
  .thumbStar{ width: 20px; height: 20px; font-size: 12px; }
  .thumbRatingText{ font-size: 11px; }
  .thumbMeta{ display:none; }   /* badges hidden on phone */
  .thumbExcerpt{ display:none; }/* excerpt hidden on phone */
  .thumbFoot{ display:none; }   /* "by ..." hidden on phone */
}

/* Smaller phones: fall back to 2 columns */
@media (max-width: 420px){
  .thumbGrid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Very small: 1 column (safety) */
@media (max-width: 340px){
  .thumbGrid{ grid-template-columns: 1fr; }
  .heroActions{ grid-template-columns: 1fr; }
}


/* =========================
   Theme (Top page)
   - controlled by html[data-theme]
   ========================= */

html[data-theme="light"]{
  --text: rgba(11,11,16,.94);
  --muted: rgba(11,11,16,.70);
  --line: rgba(11,11,16,.12);
  --line2: rgba(11,11,16,.08);

  --card: rgba(244,241,231,.90);
  --card2: rgba(244,241,231,.96);

  --shadow: 0 18px 60px rgba(0,0,0,.18);
  --shadow2: 0 12px 36px rgba(0,0,0,.14);
}

html[data-theme="light"] body{
  background:
    radial-gradient(900px 700px at 18% 12%, rgba(106,166,168,.16), transparent 60%),
    radial-gradient(1000px 800px at 90% 10%, rgba(201,162,78,.12), transparent 62%),
    linear-gradient(180deg, var(--paper), var(--paper2));
}

/* Intro */
html[data-theme="light"] .intro{
  background:
    radial-gradient(1200px 900px at 50% 18%, rgba(11,11,16,.04), transparent 55%),
    radial-gradient(900px 700px at 50% 70%, rgba(201,162,78,.12), transparent 62%),
    linear-gradient(180deg, rgba(244,241,231,.92), rgba(244,241,231,.96));
}
html[data-theme="light"] .introScript{
  color: rgba(11,11,16,.92);
  text-shadow: 0 14px 40px rgba(0,0,0,.18);
}
html[data-theme="light"] .introSub{ color: rgba(11,11,16,.55); }
html[data-theme="light"] .introHint{
  background: rgba(201,162,78,.14);
  border-color: rgba(201,162,78,.35);
  color: rgba(11,11,16,.82);
}

/* Header */
html[data-theme="light"] .header{
  background: linear-gradient(180deg, rgba(244,241,231,.92), rgba(244,241,231,.58));
}
html[data-theme="light"] .brandSub{ color: rgba(11,11,16,.56); }
html[data-theme="light"] .brandMark{ box-shadow: 0 16px 50px rgba(0,0,0,.10); }

/* Search */
html[data-theme="light"] .search{
  background: rgba(11,11,16,.05);
  border-color: rgba(11,11,16,.12);
  color: rgba(11,11,16,.94);
}
html[data-theme="light"] .iconBtn{
  background: rgba(11,11,16,.05);
  border-color: rgba(11,11,16,.12);
  color: rgba(11,11,16,.94);
}

/* Pills */
html[data-theme="light"] .pill{
  color: rgba(11,11,16,.92);
}
html[data-theme="light"] .pill.ghost{
  border-color: rgba(11,11,16,.12);
  background: rgba(11,11,16,.05);
  color: rgba(11,11,16,.78);
}
html[data-theme="light"] .pillSep{ color: rgba(11,11,16,.55); }
html[data-theme="light"] .pillVal{ color: rgba(11,11,16,.78); }

/* Hero */
html[data-theme="light"] .heroMedia{
  background:
    radial-gradient(900px 600px at 20% 30%, rgba(201,162,78,.14), transparent 60%),
    radial-gradient(900px 600px at 80% 10%, rgba(106,166,168,.14), transparent 62%),
    linear-gradient(180deg, rgba(244,241,231,.65), rgba(244,241,231,.95));
}
html[data-theme="light"] .heroMedia::after{
  opacity: .45;
  mix-blend-mode: multiply;
}
html[data-theme="light"] .heroBox{
  border-color: rgba(11,11,16,.12);
  background: rgba(244,241,231,.82);
}
html[data-theme="light"] .heroLead{ color: rgba(11,11,16,.70); }

/* Buttons */
html[data-theme="light"] .btn{
  color: rgba(11,11,16,.92);
  background: linear-gradient(180deg, rgba(201,162,78,.16), rgba(11,11,16,.04));
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
html[data-theme="light"] .btnSub{ color: rgba(11,11,16,.60); }
html[data-theme="light"] .btn.ghost{
  border-color: rgba(11,11,16,.12);
  background: rgba(11,11,16,.04);
  color: rgba(11,11,16,.82);
}

/* Accordion / filters */
html[data-theme="light"] .acc{
  border-color: rgba(11,11,16,.12);
  background: rgba(11,11,16,.03);
}
html[data-theme="light"] .accHint{ color: rgba(11,11,16,.60); }
html[data-theme="light"] .rowTitle{ color: rgba(11,11,16,.60); }

html[data-theme="light"] .select{
  border-color: rgba(11,11,16,.12);
  background: rgba(11,11,16,.04);
}
html[data-theme="light"] .selectLabel{ color: rgba(11,11,16,.60); }
html[data-theme="light"] select{ color: rgba(11,11,16,.92); }

/* Chips / genres */
html[data-theme="light"] .chip{
  border-color: rgba(11,11,16,.12);
  background: rgba(11,11,16,.04);
  color: rgba(11,11,16,.74);
}
html[data-theme="light"] .chip[aria-pressed="true"]{
  background: rgba(201,162,78,.16);
  color: rgba(11,11,16,.92);
}

html[data-theme="light"] .genreCard{
  border-color: rgba(11,11,16,.12);
  background: rgba(11,11,16,.03);
}
html[data-theme="light"] .genreDesc{ color: rgba(11,11,16,.68); }

/* Cards */
html[data-theme="light"] .thumb{
  --thumbShadow: 0 10px 28px rgba(0,0,0,.10);
  --thumbShadowHover: 0 16px 44px rgba(0,0,0,.14);

  border-color: rgba(11,11,16,.12);
  background: rgba(244,241,231,.88);
  box-shadow: var(--thumbShadow);
}

html[data-theme="light"] .thumbMedia::after{
  background: none;
}

html[data-theme="light"] .badge{
  border-color: rgba(11,11,16,.12);
  background: rgba(11,11,16,.04);
  color: rgba(11,11,16,.70);
}
html[data-theme="light"] .thumbExcerpt{ color: rgba(11,11,16,.70); }
html[data-theme="light"] .thumbFoot{ color: rgba(11,11,16,.55); }

/* Empty / footer */
html[data-theme="light"] .empty{
  border-color: rgba(11,11,16,.14);
  background: rgba(11,11,16,.02);
}
html[data-theme="light"] .emptySub{ color: rgba(11,11,16,.70); }

html[data-theme="light"] .footer{
  border-top-color: rgba(11,11,16,.10);
}
html[data-theme="light"] .footerDesc{ color: rgba(11,11,16,.72); }
html[data-theme="light"] .footerFine{ color: rgba(11,11,16,.55); }

.groupHeadCount{
  font-weight: 700;
  font-size: 0.95em;
  opacity: 0.75;
  white-space: nowrap;
}

/* ---------- Catalog-driven filter UI helpers ---------- */
.mutedText{
  color: var(--muted);
  font-size: 13px;
}
.chip.is-disabled,
.genreCard.is-disabled{
  opacity: .45;
  pointer-events: none;
}
.genreCard[aria-pressed="true"]{
  border-color: rgba(201,162,78,.45);
  background: rgba(201,162,78,.12);
}
