/* ================================================================
   fun.css — 見やすく・楽しく（style.css の上に重ねる）
   ・地の色は絵（クリーム色）に合わせる
   ・一覧は 1 行ずつ、20 件ごとにページを分ける
   ・どのページも 1 列で、上から順に読める
   ================================================================ */
:root {
  --bg: #fdf6ec;
  --bg2: #f6ead8;
  --card: #ffffff;
  --ink: #2b2540;
  --ink2: #4a4360;
  --muted: #7a7290;
  --line: #eedfca;
  --brand: #2f3f7a;
  --brand2: #e2557a;
  --gold: #e9a21a;
  --mint: #3fa98a;
  --grad: linear-gradient(120deg, #2f3f7a 0%, #7b5cd6 55%, #ee7d5c 100%);
  --soft: #fff3e0;
  --shadow: 0 1px 2px rgba(80, 50, 20, 0.06), 0 6px 18px -8px rgba(80, 50, 20, 0.22);
  --shadow-lg: 0 2px 4px rgba(80, 50, 20, 0.06), 0 22px 44px -18px rgba(80, 50, 20, 0.35);
}
:root[data-theme='dark'] { --bg: #16131f; --bg2: #1f1a2c; --card: #221d31; --ink: #f4f0ff; --ink2: #dcd5f0; --muted: #aaa2c4; --line: #342d48; --brand: #9fb2ff; --brand2: #ff8fab; --soft: #2a2238; }
@media (prefers-color-scheme: dark) { :root[data-theme='auto'] { --bg: #16131f; --bg2: #1f1a2c; --card: #221d31; --ink: #f4f0ff; --ink2: #dcd5f0; --muted: #aaa2c4; --line: #342d48; --brand: #9fb2ff; --brand2: #ff8fab; --soft: #2a2238; } }
body { font-size: 17px; }
body.no-scroll { overflow: hidden; }
.pill { display: inline-block; margin: 0 0 12px; padding: 5px 14px; border-radius: 999px; background: var(--soft); border: 1.5px solid var(--line); color: var(--brand); font: 700 13px/1.4 var(--round); }
.btn.primary { background: var(--brand); box-shadow: 0 8px 20px -10px rgba(47, 63, 122, 0.8); }
.center { text-align: center; }
.sec2 { margin: 56px auto; }
.sec2.narrow, .narrow { max-width: 860px; }
.sec2-h { text-align: center; margin: 0 auto 24px; max-width: 720px; }
.sec2-h h2 { font-size: clamp(24px, 4vw, 36px); margin: 0 0 6px; }
.sec2-h p { color: var(--muted); margin: 0; }
img { height: auto; }
/* 絵の地（クリーム）を画面の地になじませる */
:root:not([data-theme='dark']) .door img, :root:not([data-theme='dark']) .ch2-art, :root:not([data-theme='dark']) .mini img { mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { :root[data-theme='auto'] .door img, :root[data-theme='auto'] .ch2-art, :root[data-theme='auto'] .mini img { mix-blend-mode: normal; border-radius: 18px; } }
:root[data-theme='dark'] .door img, :root[data-theme='dark'] .ch2-art, :root[data-theme='dark'] .mini img { border-radius: 18px; }

/* ---------- ヘッダー・メニュー ---------- */
.hd { background: color-mix(in srgb, var(--bg) 90%, transparent); }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-owl { width: 44px; height: 44px; object-fit: contain; }
.logo small { font-size: 11px; }
.nav { margin-left: auto; }
.nav a { font-size: 15px; }
.menu-btn { display: grid !important; }
@media (max-width: 1080px) {
  .nav { display: none !important; }
  .hd .ibtn:first-of-type { margin-left: auto; }
}
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-bg { position: absolute; inset: 0; background: rgba(30, 20, 50, 0.45); opacity: 0; transition: opacity 0.2s; }
.drawer-in { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--bg); box-shadow: var(--shadow-lg); overflow-y: auto; padding: 14px 18px 40px; transform: translateX(100%); transition: transform 0.25s ease; overscroll-behavior: contain; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer.open .drawer-in { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-top b { font: 900 18px/1 var(--round); }
.drawer-x { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); font-size: 26px; line-height: 1; }
.drawer-q { display: flex; align-items: center; gap: 8px; background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 4px 14px; margin-bottom: 14px; }
.drawer-q input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; padding: 10px 0; font-size: 16px; }
.drawer-main { display: grid; gap: 6px; margin-bottom: 14px; }
.drawer-main a, .drawer-tools a { display: block; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.drawer-main a:hover, .drawer-tools a:hover { border-color: var(--brand); color: var(--brand); }
.drawer-hub { border-bottom: 1.5px dashed var(--line); }
.drawer-hub summary { cursor: pointer; padding: 13px 4px; font: 700 16px/1.4 var(--round); list-style: none; display: flex; align-items: center; gap: 8px; }
.drawer-hub summary::-webkit-details-marker { display: none; }
.drawer-hub summary::after { content: '＋'; margin-left: auto; color: var(--brand); }
.drawer-hub[open] summary::after { content: '－'; }
.drawer-hub summary small, .drawer-hub a small { color: var(--muted); font-size: 12px; font-weight: 500; }
.drawer-hub div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 0 12px; }
.drawer-hub a { padding: 9px 10px; border-radius: 10px; background: var(--card); text-decoration: none; color: var(--ink2); font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; gap: 4px; }
.drawer-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 16px 0; }
.drawer-tools a { font-size: 14px; padding: 10px 12px; }
.drawer-foot { text-align: center; }

/* ---------- 上へ戻る ---------- */
.totop { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; align-content: center; gap: 0; font: 700 11px/1 var(--round); }
.totop svg { width: 22px; height: 22px; }
.totop:hover { background: var(--brand2); }

/* ---------- ホームの最初 ---------- */
.hero2 { padding: 28px 0 8px; background: radial-gradient(60% 80% at 85% 20%, #ffe3c2 0%, transparent 70%), radial-gradient(50% 60% at 10% 10%, #efe4ff 0%, transparent 70%); }
:root[data-theme='dark'] .hero2 { background: none; }
.hero2-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px; align-items: center; }
.hero2-in > * { min-width: 0; }
.hero2 h1 { font-size: clamp(28px, 4.6vw, 50px); line-height: 1.3; margin: 0 0 14px; text-wrap: balance; }
.hero2 h1 em { font-style: normal; background: linear-gradient(transparent 60%, #ffd76a 60%); }
:root[data-theme='dark'] .hero2 h1 em { background: none; color: var(--gold); }
.hero2 h1 b { display: inline-flex; align-items: baseline; gap: 2px; margin-left: 10px; padding: 2px 16px; border-radius: 999px; background: var(--brand2); color: #fff; font: 900 0.8em/1.3 var(--display); vertical-align: middle; }
.hero2 h1 b small { font: 900 0.6em var(--round); }
.hero2-sub { color: var(--ink2); margin: 0 0 20px; }
.hero2 .hero-search { margin: 0; max-width: 560px; }
.hero2 .hero-search button { background: var(--brand); }
.hero2-art img { width: 100%; border-radius: 28px; box-shadow: var(--shadow-lg); }
@media (max-width: 820px) {
  .hero2-in { grid-template-columns: minmax(0, 1fr); }
  .hero2-art { order: -1; }
  .hero2-art img { border-radius: 22px; max-height: 170px; object-fit: cover; object-position: 50% 35%; }
  .hero2 h1 b { margin-left: 4px; }
}

/* ---------- 絵の入口（特集のドア） ---------- */
.doors { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.door { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 10px 16px; border-radius: 22px; background: var(--card); border: 2px solid var(--line); text-decoration: none; color: var(--ink); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.door:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: var(--shadow); border-color: var(--gold); color: var(--ink); }
.door img { width: 96px; height: 96px; object-fit: contain; margin-bottom: 6px; }
.door b { font: 900 16px/1.35 var(--round); }
.door span { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.door span[lang='en'] { font: italic 500 13px/1.4 var(--display); }
.door small { position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 700; }
.doors.sm { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.doors.sm img { width: 72px; height: 72px; }
.doors.sm b { font-size: 14.5px; }
@media (max-width: 560px) {
  .doors { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .doors.sm { grid-template-columns: repeat(2, 1fr); }
  .door img { width: 80px; height: 80px; }
}

/* ---------- ふくろうくんの吹き出し ---------- */
.owl-say { display: flex; align-items: center; gap: 12px; max-width: 720px; margin: 0 auto 20px; }
.owl-say-img { width: 88px; height: 88px; object-fit: contain; flex: none; }
.owl-say p { position: relative; margin: 0; padding: 14px 18px; background: var(--card); border: 2px solid var(--line); border-radius: 20px; font-weight: 700; color: var(--ink2); }
.owl-say p::before { content: ''; position: absolute; left: -10px; top: 50%; width: 16px; height: 16px; background: var(--card); border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); transform: translateY(-50%) rotate(45deg); }

/* ---------- 絵で読む（横にめくる本棚） ---------- */
.picbook { padding: 44px 0; background: var(--bg2); }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: min(300px, 78vw); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: thin; }
.pb { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--card); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform 0.15s; }
.pb:hover { transform: translateY(-4px); color: var(--ink); }
.pb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pb-en { padding: 12px 16px 2px; font: 700 18px/1.35 var(--display); }
.pb-ja { padding: 0 16px 16px; font-size: 14px; color: var(--muted); }
.shelf-nav { display: flex; justify-content: center; gap: 12px; }
.shelf-nav button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); font-size: 26px; line-height: 1; color: var(--brand); }

/* ---------- 今日の一言 ---------- */
.today2 { max-width: 860px; margin: 0 auto; }
.today2-h { display: flex; align-items: baseline; gap: 12px; justify-content: center; }
.today2-h .pill { margin: 0; }

/* ---------- 一覧：絵のカード（Pinterest のように並べる。押すと大きく開く） ---------- */
.rows { list-style: none; margin: 0 0 18px; padding: 0; columns: 2 150px; column-gap: 12px; }
@media (min-width: 700px) { .rows { columns: 3 200px; column-gap: 16px; } }
@media (min-width: 1060px) { .rows { columns: 4 220px; column-gap: 18px; } }
.r { break-inside: avoid; position: relative; display: block; margin: 0 0 12px; border-radius: 22px; overflow: hidden; background: #f6e9d6 var(--bg, none) center / cover no-repeat; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
@media (min-width: 700px) { .r { margin-bottom: 16px; } }
.r[hidden] { display: none; }
.r:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.r-a { position: relative; display: grid; gap: 6px; margin: 30px 11px 52px; padding: 16px 11px; border-radius: 16px; background: rgba(255, 251, 243, 0.8); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); color: #2b2540; text-decoration: none; text-align: center; }
.r.sz-xl .r-a { margin: 64px 14px 74px; padding: 20px 12px; }
.r.sz-lg .r-a { margin: 44px 12px 60px; }
.r.dk .r-a { background: rgba(14, 16, 40, 0.5); color: #fff; }
.r-a:hover { color: inherit; }
.r-en { font: 700 17px/1.35 var(--display); overflow-wrap: anywhere; text-wrap: balance; }
.r.sz-xl .r-en { font-size: 23px; }
.r.sz-lg .r-en { font-size: 19px; }
.r.sz-sm .r-en { font-size: 15.5px; }
.r-ja { font-size: 13px; line-height: 1.6; opacity: 0.85; }
.r-jp { font: 900 17px/1.3 var(--round); color: var(--brand2); }
.r-by { font-size: 12px; opacity: 0.72; line-height: 1.5; }
.r-warn { display: inline-block; margin: 0 4px 2px 0; padding: 1px 8px; border-radius: 999px; background: #ffe3e3; color: #c92a2a; font-size: 11.5px; font-weight: 700; }
.r.has-img { background: var(--card); }
.r-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.r.has-img .r-a { margin: 0 0 46px; border-radius: 0; background: none; padding: 12px 12px 4px; color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.r-say, .r-fav { position: absolute; bottom: 9px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--brand); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(40, 30, 60, 0.18); cursor: pointer; }
.r-say svg, .r-fav svg { width: 19px; height: 19px; }
.r-say { right: 9px; }
.r-fav { right: 51px; }
.r-say:hover, .r-say.on { background: var(--brand); color: #fff; }
.r-fav[aria-pressed='true'] { background: var(--brand2); color: #fff; }
.r-fav[aria-pressed='true'] svg path { fill: currentColor; }
.lst-bar .deck-go { flex: none; white-space: nowrap; }
@media (max-width: 560px) { .lst-bar { flex-wrap: wrap; } .lst-bar .deck-go { width: 100%; } }

/* ---------- めくる（1 枚ずつ大きく） ---------- */
.deck { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: rgba(28, 22, 44, 0.95); color: #fff; padding: max(10px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom)); }
.deck[hidden] { display: none; }
.deck-top { display: flex; align-items: center; gap: 10px; max-width: 560px; width: 100%; margin: 0 auto; }
.deck-n { flex: 1; font: 700 14px/1 var(--round); opacity: 0.85; }
.deck-auto, .deck-x { border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; font: 700 14px/1 var(--round); padding: 10px 14px; cursor: pointer; }
.deck-auto[hidden] { display: none; }
.deck-x { width: 42px; height: 42px; padding: 0; font-size: 18px; }
.deck-auto[aria-pressed='true'] { background: var(--brand2); }
.deck-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 10px; touch-action: pan-y; user-select: none; }
.deck-card { width: min(100%, 460px, calc((100vh - 210px) * 0.8)); aspect-ratio: 4 / 5; transition: transform 0.15s; }
.deck-card.in-r { animation: deckR 0.35s ease-out; }
.deck-card.in-l { animation: deckL 0.35s ease-out; }
@keyframes deckR { from { opacity: 0; transform: translateX(60px) rotate(3deg); } }
@keyframes deckL { from { opacity: 0; transform: translateX(-60px) rotate(-3deg); } }
.deck-nav { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.deck-nav[hidden] { display: none; }
@media (max-width: 600px) { .deck-nav { display: none; } }
.dc { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 26px; background: #fdf3e6 var(--bg, none) center / cover no-repeat; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.dc.has-img { justify-content: flex-end; padding: 0 16px 20px; }
.dc-img { position: absolute; inset: 0 0 auto; width: 100%; height: 60%; object-fit: cover; }
.dc-plate { position: relative; width: 100%; padding: 26px 20px; border-radius: 20px; background: rgba(255, 251, 243, 0.85); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #2b2540; text-align: center; }
.dc.dk .dc-plate { background: rgba(14, 16, 40, 0.56); color: #fff; }
.dc-en { margin: 0 0 12px; font: 700 clamp(21px, 5.4vw, 31px)/1.3 var(--display); overflow-wrap: anywhere; text-wrap: balance; }
.dc-ja { margin: 0; font-size: 15px; line-height: 1.7; opacity: 0.9; }
.dc-by { margin: 10px 0 0; font-size: 13px; opacity: 0.75; }
.dc-stamp { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); margin: 0; padding: 6px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.93); color: var(--brand2); font: 900 14px/1.2 var(--round); text-align: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15); white-space: nowrap; }
.dc-stamp b { display: block; font-size: 30px; letter-spacing: 0.1em; }
.dc-stamp small { font-size: 12px; color: #7a7290; }
.dc.kuji { background: linear-gradient(160deg, #fff4e0, #ffe0e8); color: #2b2540; gap: 14px; }
.kuji-owl { width: 50%; max-width: 200px; }
.kuji-t { font: 900 20px/1.4 var(--round); margin: 0; }
.dc.shake { animation: shake 0.5s ease-in-out infinite; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.dc.reveal { animation: reveal 0.6s ease-out; }
@keyframes reveal { from { transform: rotateY(90deg) scale(0.9); opacity: 0; } }
.deck-bar { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 12px auto 4px; }
.deck-bar[hidden] { display: none; }
.deck-b { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 11px 16px; background: #fff; color: var(--brand); font: 700 14px/1 var(--round); text-decoration: none; cursor: pointer; }
.deck-b.fav[aria-pressed='true'] { background: var(--brand2); color: #fff; }
.deck-b.say.on { background: var(--brand); color: #fff; }
.deck-hint { margin: 4px 0 0; text-align: center; font-size: 12px; opacity: 0.6; }
@media (max-width: 420px) { .deck-b { padding: 10px 13px; font-size: 18px; } .deck-b span { font-size: 12px; } }

/* ---------- ホーム：気分・遊ぶ・違い ---------- */
.moods { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.moodb { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: 700 15.5px/1.2 var(--round); cursor: pointer; box-shadow: var(--shadow); transition: transform 0.15s, border-color 0.15s; }
.moodb span { font-size: 22px; }
.moodb:hover { transform: translateY(-2px) scale(1.03); border-color: var(--brand2); }
.play3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 900px; margin: 26px auto 0; }
.play { display: grid; justify-items: center; gap: 4px; padding: 18px 12px; border-radius: 22px; border: 2px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; text-align: center; cursor: pointer; font: inherit; box-shadow: var(--shadow); transition: transform 0.15s; }
.play:hover { transform: translateY(-3px); color: var(--ink); }
.play img, .play i { width: 72px; height: 72px; font-size: 44px; font-style: normal; }
.play b { font: 900 17px/1.3 var(--round); }
.play small { color: var(--muted); font-size: 13px; }
.play.omikuji { background: linear-gradient(160deg, #fff4e0, #ffe3ec); border-color: #f6c9d6; color: #2b2540; }
@media (max-width: 600px) { .play3 { grid-template-columns: 1fr; } .play { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: 12px; } .play img, .play i { grid-row: span 2; width: 64px; height: 64px; } }
.pinsec { background: linear-gradient(180deg, transparent, var(--bg2) 12%, var(--bg2) 88%, transparent); padding: 30px 0; }
.diff4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.diff4 > div { padding: 20px 16px; border-radius: 22px; background: var(--card); border: 2px solid var(--line); text-align: center; }
.diff4 img, .diff4 i { width: 64px; height: 64px; font-size: 40px; font-style: normal; }
.diff4 b { display: block; margin: 6px 0; font: 900 17px/1.35 var(--round); color: var(--brand); }
.diff4 p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--ink2); text-align: left; }
@media (max-width: 900px) { .diff4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .diff4 { grid-template-columns: 1fr; } .diff4 > div { display: grid; grid-template-columns: 56px 1fr; gap: 0 12px; text-align: left; } .diff4 img, .diff4 i { grid-row: span 2; width: 56px; height: 56px; } .diff4 b { margin-top: 0; } }

/* ---------- 原田英語へのリンク ---------- */
.hlinks { margin: 34px auto; max-width: 860px; padding: 20px; border-radius: 24px; background: var(--soft); border: 2px dashed var(--line); }
.hlinks-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hlinks-h img { width: 64px; height: 64px; }
.hlinks-h .kicker { margin: 0; font-size: 12px; color: var(--muted); }
.hlinks-h h2 { margin: 0; font-size: 20px; }
.hlinks-list { display: grid; gap: 10px; }
.hlinks-list a { display: block; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; }
.hlinks-list a:hover { border-color: var(--brand); }
.hlinks-list b { display: block; font-size: 15.5px; line-height: 1.5; }
.hlinks-list small { color: var(--brand); font-size: 12.5px; font-weight: 700; }
.ft-sites { padding: 26px 0 8px; }
.ft-sites-h { margin: 0 0 10px; font: 900 15px/1 var(--round); color: var(--brand); }
.ft-sites > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.ft-sites a { display: block; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; }
.ft-sites a b { display: block; font-size: 14px; }
.ft-sites a small { color: var(--muted); font-size: 12px; }

/* ---------- 個別ページ：見出しを絵のカードに ---------- */
.it-head.it-pin { position: relative; background: #f6e9d6 var(--bg) center / cover no-repeat; border: 0; padding: 50px 26px 32px; color: #2b2540; }
.it-head.it-pin > * { position: relative; }
.it-head.it-pin::before { content: ''; position: absolute; inset: 26px 14px 18px; border-radius: 20px; background: rgba(255, 251, 243, 0.84); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.it-head.it-pin.dk { color: #fff; }
.it-head.it-pin.dk::before { background: rgba(14, 16, 40, 0.56); }
.it-head.it-pin.dk .it-by a, .it-head.it-pin.dk .it-ja, .it-head.it-pin.dk .it-kana, .it-head.it-pin.dk .it-by { color: #fff; }
.box-ic { width: 40px; height: 40px; flex: none; }

/* ---------- 特集ページ ---------- */
.ch2 { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 26px 20px 10px; }
.ch2 h1 { font-size: clamp(26px, 4.4vw, 44px); margin: 0 0 10px; }
.ch2 h1 span { display: inline-block; margin-left: 10px; padding: 0 14px; border-radius: 999px; background: var(--brand2); color: #fff; font: 900 0.55em/1.7 var(--display); vertical-align: middle; }
.ch2-art { width: 180px; height: 180px; object-fit: contain; }
.ch-hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
@media (max-width: 640px) { .ch2 { grid-template-columns: 1fr; padding-top: 16px; } .ch2-art { order: -1; width: 110px; height: 110px; margin: 0 auto -6px; } .ch2 { text-align: center; } }
.lst { max-width: 860px; margin: 0 auto; scroll-margin-top: 80px; }
.lst-bar { display: flex; gap: 10px; align-items: center; margin: 10px 0 12px; }
.lst-q { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 4px 16px; }
.lst-q:focus-within { border-color: var(--brand); }
.lst-q input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 16px; padding: 9px 0; }
.lst-c { font-weight: 700; color: var(--muted); white-space: nowrap; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 4px; scrollbar-width: thin; }
.tab { flex: none; padding: 9px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink2); font-weight: 700; font-size: 14px; white-space: nowrap; }
.tab small { margin-left: 6px; color: var(--muted); font-weight: 500; }
.tab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab.on small { color: rgba(255, 255, 255, 0.8); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 20px 0 8px; }
.pager button { min-width: 46px; height: 46px; padding: 0 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); font-weight: 700; color: var(--ink2); }
.pager button[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager button:disabled { opacity: 0.4; cursor: default; }
.pager span { color: var(--muted); padding: 0 2px; }
.pager small { flex-basis: 100%; text-align: center; color: var(--muted); }
.none { text-align: center; color: var(--muted); padding: 24px; }

/* ---------- 言葉のページ（1 列で上から読む） ---------- */
.it { max-width: 820px; margin: 0 auto; padding-top: 10px; }
.it-pic { margin: 0 0 18px; }
.it-pic img { width: 100%; border-radius: 26px; box-shadow: var(--shadow-lg); }
.it-head { text-align: center; padding: 28px 22px 22px; background: var(--card); border: 2px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.it-kind { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.it-kind span { padding: 2px 12px; border-radius: 999px; background: var(--soft); color: var(--brand); font-size: 13px; font-weight: 700; }
.it-jp { font: 900 34px/1.3 var(--round); color: var(--brand2); margin: 0; }
.it-jp small { display: block; font-size: 14px; color: var(--muted); }
.it-en { font: 700 clamp(28px, 5.4vw, 46px)/1.25 var(--display); margin: 6px 0 10px; overflow-wrap: anywhere; text-wrap: balance; }
.it-kana { color: var(--muted); margin: 0 0 6px; }
.it-ja { font: 700 clamp(18px, 2.6vw, 22px)/1.6 var(--round); color: var(--ink2); margin: 0 0 8px; }
.it-by { color: var(--muted); margin: 0 0 14px; }
.it-by small { display: block; font-size: 13px; }
.it-head .tools { justify-content: center; border: 0; padding: 0; margin-top: 8px; }
.it-head .tb { background: var(--soft); border: 1.5px solid var(--line); color: var(--brand); border-radius: 999px; padding: 9px 16px; font-size: 14px; }
.it-body { display: grid; gap: 16px; margin: 18px 0 0; }
.box { background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 20px 22px; }
.box h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 10px; }
.box h2 i { font-style: normal; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); font-size: 20px; }
.box p { margin: 0 0 10px; }
.box p:last-child { margin-bottom: 0; }
.box .lead { font: 700 18px/1.7 var(--round); color: var(--ink); }
.b-mean { border-color: #c9d3f5; }
.b-ex { border-color: #bfe3d6; }
.b-use { border-color: #f5dcae; }
.b-warn { border-color: #f5c2c2; background: color-mix(in srgb, #fff0f0 70%, var(--card)); }
:root[data-theme='dark'] .b-warn { background: var(--card); }
.d-lit, .d-orig, .d-also, .d-jp { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; padding: 10px 14px; border-radius: 14px; background: var(--soft); }
.d-lit b, .d-orig b, .d-also b, .d-jp b { font-size: 12.5px; padding: 1px 8px; border-radius: 999px; background: var(--card); color: var(--brand); }
.d-ex { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.d-ex li { padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.d-ex span[lang] { font: 600 18px/1.5 var(--display); }
.d-ex small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.d-ex .say { width: 34px; height: 34px; margin-left: 8px; vertical-align: middle; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: inline-grid; place-items: center; }
.d-words { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.d-words li { padding: 6px 12px; border-radius: 12px; background: var(--soft); font-size: 14px; }
.d-words b { margin-right: 6px; }
.srcbox { padding: 14px 18px; border-radius: 16px; background: var(--bg2); font-size: 14px; }
.srcbox p { margin: 4px 0; }
.srcbox a { display: inline-block; margin-right: 10px; }

/* うんちく */
.story { background: linear-gradient(160deg, #fff7e6, #fdeefa); border: 2px solid #f3d7a6; border-radius: 26px; padding: 22px 22px 18px; }
:root[data-theme='dark'] .story { background: var(--card); border-color: var(--line); }
.story-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.story-owl { width: 96px; height: 96px; object-fit: contain; flex: none; }
.story-h .kicker { margin: 0 0 4px; color: var(--brand2); }
.story-h h2 { margin: 0; font-size: clamp(19px, 3vw, 24px); }
.story-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.story-list li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }
.story-list li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; font: 900 15px/1 var(--display); }
.story-list h3 { margin: 0 0 4px; font-size: 17px; color: var(--brand); }
.story-list p { margin: 0; line-height: 1.85; }
.story-src { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .story-list li { padding: 14px 14px 14px 52px; } .story-list li::before { left: 12px; } .story-owl { width: 72px; height: 72px; } .box { padding: 18px 16px; } }

/* ---------- イベント ---------- */
.evband { padding: 44px 0; background: linear-gradient(180deg, #fff1f3, var(--bg)); }
:root[data-theme='dark'] .evband { background: var(--bg2); }
.evs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
.evs a { display: inline-flex; align-items: baseline; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--card); border: 2px solid #f6c9d4; text-decoration: none; color: var(--ink); font-weight: 900; font-family: var(--round); }
.evs a:hover { background: var(--brand2); border-color: var(--brand2); color: #fff; }
.evs small { font-size: 12px; color: var(--muted); font-weight: 500; }
.evs a:hover small { color: #fff; }

/* ---------- 先生・カード ---------- */
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.mini { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); text-decoration: none; color: var(--ink); }
.mini:hover { border-color: var(--mint); color: var(--ink); }
.mini img { width: 56px; height: 56px; object-fit: contain; }
.mini b { font: 700 15px/1.4 var(--round); }
.mini small { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.promo2 { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 26px 30px; border-radius: 28px; background: linear-gradient(120deg, #e9edff, #fff0e3); }
:root[data-theme='dark'] .promo2 { background: var(--card); }
.promo2-owl { width: 200px; height: 200px; object-fit: contain; }
.promo2 h2 { margin: 0 0 8px; font-size: clamp(22px, 3.4vw, 30px); }
@media (max-width: 680px) { .promo2 { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; } .promo2-owl { margin: 0 auto; width: 150px; height: 150px; } }

/* ---------- よくある質問 ---------- */
.faq details { background: var(--card); border: 2px solid var(--line); border-radius: 16px; margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 700; }
.faq details p { margin: 0 0 16px; color: var(--ink2); }

/* ---------- 探す（項目を減らして分かりやすく） ---------- */
.fb-big .fb-n, .fb-big .fb-k:not(.fb-t), .fb-big .fb-v { display: none !important; }

/* ---------- フッター ---------- */
.ft-copy { text-align: center; font-size: 13px; color: var(--muted); margin: 24px 0 0; padding: 14px 20px calc(80px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }

@media print { .drawer, .totop, .pager, .tabs, .lst-bar, .r-say, .r-fav, .deck { display: none !important; } .r { break-inside: avoid; } .rows .r[hidden] { display: block !important; } }

/* ---------- 今日の一言（明るい黒板風のカード） ---------- */
.today2 .stage { margin-top: 14px; }
.today2 .stage-card { color: var(--ink); background: #fffdf7; background-image: radial-gradient(70% 90% at 0% 0%, #ffe9c7 0%, transparent 60%), radial-gradient(60% 80% at 100% 100%, #e7e3ff 0%, transparent 60%); border: 3px solid #f0dcb8; text-align: center; min-height: 220px; box-shadow: var(--shadow); }
.today2 .stage-card::before, .today2 .stage-card::after { display: none; }
.today2 .stage-card:hover { color: var(--ink); }
.today2 .stage-en { color: var(--brand); }
.today2 .stage-ja { color: var(--ink2); opacity: 1; }
.today2 .stage-by { color: var(--muted); opacity: 1; }
:root[data-theme='dark'] .today2 .stage-card { background: var(--card); border-color: var(--line); }
.ft-logo img { width: 40px; height: 40px; object-fit: contain; vertical-align: middle; margin-right: 6px; }

/* ---------- 遊ぶページ（診断・誕生日・聞き取り） ---------- */
.play3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .play3 { grid-template-columns: 1fr 1fr; } .play { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 14px 8px; } .play img, .play i { grid-row: auto; width: 56px; height: 56px; } .play b { font-size: 15px; } .play small { font-size: 11.5px; } }
.play-wrap { max-width: 720px; margin: 0 auto 40px; }
.sd-box { padding: 26px 20px; border-radius: 26px; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.sd-no { margin: 0 0 8px; font: 700 13px/1 var(--display); letter-spacing: 0.12em; color: var(--brand2); }
.sd-bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 0 auto 18px; max-width: 360px; }
.sd-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand2), var(--gold)); border-radius: 99px; transition: width 0.3s; }
.sd-q { font-size: clamp(21px, 4.4vw, 28px); margin: 0 0 18px; }
.sd-opts { display: grid; gap: 10px; }
.sd-opts button { padding: 15px 16px; border-radius: 18px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); font: 700 16.5px/1.4 var(--round); cursor: pointer; transition: transform 0.12s, border-color 0.12s, background 0.12s; }
.sd-opts button:hover { border-color: var(--brand2); transform: translateY(-2px); }
.sd-type { font: 700 18px/1.5 var(--round); margin: 4px 0; }
.sd-type b { display: block; font-size: clamp(26px, 6vw, 36px); font-weight: 900; color: var(--brand2); }
.sd-owl { width: 140px; height: 140px; }
:root:not([data-theme='dark']) .sd-owl { mix-blend-mode: multiply; }
.sd-desc { text-align: left; line-height: 1.9; max-width: 560px; margin: 8px auto 18px; }
.sd-h { font-size: 18px; margin: 20px 0 12px; }
.sd-more { font-weight: 700; margin: 22px 0 8px; }
.sd-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; text-align: left; }
.sd-list a { display: block; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; }
.sd-list span { display: block; font: 700 16px/1.4 var(--display); }
.sd-list small { color: var(--muted); }
.pcard { position: relative; max-width: 420px; aspect-ratio: 4 / 5; margin: 0 auto; border-radius: 24px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 22px; background: #fdf3e6 var(--bg, none) center / cover no-repeat; box-shadow: var(--shadow-lg); }
.pcard-img { position: absolute; inset: 0 0 auto; width: 100%; height: 58%; object-fit: cover; }
.pcard-plate { position: relative; width: 100%; padding: 22px 16px; border-radius: 18px; background: rgba(255, 251, 243, 0.85); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); color: #2b2540; }
.pcard.dk .pcard-plate { background: rgba(14, 16, 40, 0.56); color: #fff; }
.pcard-en { margin: 0 0 10px; font: 700 clamp(21px, 5vw, 28px)/1.3 var(--display); text-wrap: balance; }
.pcard-ja { margin: 0; font-size: 15px; line-height: 1.7; }
.pcard-by { margin: 8px 0 0; font-size: 13px; opacity: 0.75; }
.pcard-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 6px; }
.bd-pick { display: flex; gap: 12px; justify-content: center; margin: 0 0 18px; }
.bd-pick label { display: grid; gap: 4px; font-weight: 700; }
.bd-pick select { font: 700 20px/1 var(--round); padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); }
.bd-day { font: 900 20px/1.4 var(--round); color: var(--brand2); margin: 0 0 14px; }
.ls-play { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; border: 0; background: var(--brand); color: #fff; font: 900 18px/1 var(--round); cursor: pointer; box-shadow: 0 10px 22px -10px rgba(47, 63, 122, 0.8); }
.ls-play.on { background: var(--brand2); }
.ls-en { font: 700 clamp(22px, 4.6vw, 30px)/1.45 var(--display); margin: 18px 0 6px; }
.ls-blank { display: inline-block; min-width: 4em; border-bottom: 3px solid var(--brand2); color: transparent; }
.ls-ans { color: var(--brand2); }
.ls-ja { color: var(--ink2); margin: 0 0 18px; }
.ls-opts { grid-template-columns: 1fr 1fr; }
.ls-opts button { font-family: var(--display); font-size: 19px; }
.ls-opts button.ok { background: #e3f7ec; border-color: var(--mint); }
.ls-opts button.ng { background: #ffe3e3; border-color: #e5484d; }
.ls-opts button:disabled { cursor: default; transform: none; }
.quiz-score { font: 900 48px/1 var(--display); color: var(--brand2); margin: 10px 0; }

/* ================================================================
   スマホ：下まで長くしない（2026-11-14 ユーザー指示）
   ・一覧は 10 枚ずつ（list.js）、カードを小さく
   ・ホームの入口・違い・先生向けは横にスワイプする 1 列
   ・ホームの絵のカードは 8 枚、個別ページの関連は 4 枚
   ・フッターの特集リンクはメニューにあるので隠す
   ================================================================ */
@media (max-width: 600px) {
  .sec2 { margin: 34px auto; }
  .sec2-h { margin-bottom: 14px; }
  .sec2-h h2 { font-size: 22px; }
  .sec2-h p { font-size: 14px; }
  .rows { column-gap: 10px; }
  .r { margin-bottom: 10px; border-radius: 18px; }
  .r-a { margin: 16px 8px 44px; padding: 12px 8px; gap: 4px; border-radius: 13px; }
  .r.sz-xl .r-a { margin: 28px 8px 48px; padding: 16px 8px; }
  .r.sz-lg .r-a { margin: 20px 8px 46px; }
  .r-en { font-size: 15px; }
  .r.sz-xl .r-en { font-size: 19px; }
  .r.sz-lg .r-en { font-size: 16.5px; }
  .r.sz-sm .r-en { font-size: 14px; }
  .r-ja { font-size: 12px; line-height: 1.5; }
  .r-by { font-size: 10.5px; }
  .r-say, .r-fav { width: 32px; height: 32px; bottom: 7px; }
  .r-say svg, .r-fav svg { width: 17px; height: 17px; }
  .r-say { right: 7px; }
  .r-fav { right: 44px; }
  .r.has-img .r-a { margin-bottom: 42px; }
  /* 横にスワイプする 1 列 */
  .sec2 .doors, .diff4, .minis, .ft-sites > div { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 40%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; margin-left: -4px; margin-right: -4px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .sec2 .doors > *, .diff4 > *, .minis > *, .ft-sites > div > * { scroll-snap-align: start; }
  .sec2 .doors .door { padding: 10px 6px 12px; }
  .sec2 .doors .door img { width: 72px; height: 72px; }
  .sec2 .doors .door b { font-size: 14px; }
  .sec2 .doors .door span { display: none; }
  .diff4 { grid-auto-columns: 78%; }
  .diff4 > div { display: block; text-align: center; }
  .diff4 img, .diff4 i { width: 52px; height: 52px; }
  .diff4 p { font-size: 13.5px; }
  .ft-sites > div { grid-auto-columns: 46%; }
  .moods { gap: 7px; }
  .moodb { padding: 9px 13px; font-size: 14px; }
  .moodb span { font-size: 18px; }
  .pinsec .rows > li:nth-child(n + 9) { display: none; }
  .rel .rows > li:nth-child(n + 5) { display: none; }
  .ft-grid > div:not(.ft-about) { display: none; }
  .ft-about .small { font-size: 11.5px; }
  .shelf-nav { display: none; }
  .owl-say { margin-bottom: 12px; }
  .owl-say-img { width: 64px; height: 64px; }
}

/* ================================================================
   動き（html.mo のときだけ。「動きを減らす」設定の人には出さない）
   ================================================================ */
.mo .rv { opacity: 0; transform: translateY(22px) scale(0.97); transition: opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) var(--rv-d, 0ms), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) var(--rv-d, 0ms); }
.mo .rv.in { opacity: 1; transform: none; }
/* 傾く */
.mo .tilt { transform: perspective(700px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-3px); transition: transform 0.08s linear, box-shadow 0.2s; box-shadow: var(--shadow-lg); }
/* ふくろうがふわふわ */
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
.mo .owl-say-img, .mo .ch2-art, .mo .me-owl, .mo .sd-owl, .mo .story-owl, .mo .promo2-owl, .mo .hlinks-h img, .mo .logo-owl { animation: floaty 4.2s ease-in-out infinite; }
.mo .hero2-art img { animation: floaty 6s ease-in-out infinite; }
.mo .play:hover img, .mo .play:hover i, .mo .door:hover img { animation: hop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes hop { 30% { transform: translateY(-10px) rotate(-6deg) scale(1.06); } 60% { transform: translateY(0) rotate(4deg); } }
.mo .moodb:hover span { display: inline-block; animation: wiggle 0.5s ease-in-out 2; }
@keyframes wiggle { 25% { transform: rotate(-14deg) scale(1.2); } 75% { transform: rotate(14deg) scale(1.2); } }
.mo .moodb:active, .mo .play:active, .mo .deck-b:active, .mo .r-say:active, .mo .r-fav:active { transform: scale(0.92); }
/* 声が流れているあいだ、輪が広がる */
.mo .r-say.on, .mo .deck-b.say.on, .mo .ls-play.on, .mo .tb.say.on { animation: ring 1s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(226, 85, 122, 0.55); } 100% { box-shadow: 0 0 0 14px rgba(226, 85, 122, 0); } }
/* ハートが飛ぶ */
.burst { position: fixed; z-index: 120; pointer-events: none; font-style: normal; color: var(--brand2); font-size: 16px; transform: translate(-50%, -50%); animation: burst 0.8s ease-out forwards; }
@keyframes burst { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.4); opacity: 0; } }
.mo .r-fav[aria-pressed='true'] svg, .mo .deck-b.fav[aria-pressed='true'], .mo .tb.fav[aria-pressed='true'] svg { animation: pop 0.45s cubic-bezier(0.3, 1.8, 0.5, 1); }
@keyframes pop { 40% { transform: scale(1.45); } }
/* ホームの浮かぶ光 */
.hero2 { position: relative; overflow: hidden; }
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255, 215, 120, 0.9) 35%, rgba(255, 215, 120, 0) 70%); transform: scale(var(--s)); animation: twinkle 4.5s ease-in-out var(--d) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: translateY(8px) scale(var(--s)); } 50% { opacity: 0.9; transform: translateY(-14px) scale(var(--s)); } }
.hero2-in { position: relative; }
/* 見出しの蛍光ペンが引かれる */
.mo .hero2 h1 em { background-size: 0% 100%; background-repeat: no-repeat; background-image: linear-gradient(transparent 60%, #ffd76a 60%); animation: marker 1s 0.4s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
@keyframes marker { to { background-size: 100% 100%; } }
/* 件数のバッジがはずむ */
.mo .hero2 h1 b { animation: hop 0.8s 1.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
/* おみくじのボタンがときどき揺れる */
.mo .play.omikuji img { animation: shake2 3.2s ease-in-out infinite; }
@keyframes shake2 { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-10deg); } 88% { transform: rotate(10deg); } 92% { transform: rotate(-6deg); } 96% { transform: rotate(4deg); } }
/* 正解・不正解 */
.mo .ls-opts button.ok { animation: hop 0.5s; }
.mo .ls-opts button.ng { animation: no 0.4s; }
@keyframes no { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.mo .sd-opts button { transition: transform 0.12s, border-color 0.12s, background 0.12s; }
.mo .quiz-score { animation: hop 0.8s cubic-bezier(0.3, 1.6, 0.5, 1); }

/* ---------- 運営者 ---------- */
.me { margin: 10px 0 30px; padding: 22px; border-radius: 26px; background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); }
.me-card { display: flex; align-items: center; gap: 16px; }
.me-owl { width: 110px; height: 110px; flex: none; }
:root:not([data-theme='dark']) .me-owl { mix-blend-mode: multiply; }
.me h2 { margin: 2px 0 4px; font-size: 22px; }
.me .kicker { margin: 0; color: var(--brand2); font: 700 12px/1 var(--display); letter-spacing: 0.12em; }
.me-role { margin: 0; color: var(--muted); font-size: 14px; }
.me-path { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0; counter-reset: none; }
.me-path li { padding: 6px 12px; border-radius: 999px; background: var(--soft); font-size: 13.5px; font-weight: 700; }
.me-path li:not(:last-child)::after { content: ' →'; color: var(--muted); }
.me-path li:last-child { background: var(--brand); color: #fff; }
.me-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.me-badges span { padding: 5px 12px; border-radius: 10px; border: 2px solid var(--gold); color: var(--ink); font-weight: 900; font-size: 14px; }
.me-badges small { color: var(--muted); }
.me-msg { margin: 0 0 36px; padding: 26px 22px; border-radius: 26px; background: linear-gradient(160deg, #fff6e6, #ffeaf0); color: #2b2540; }
:root[data-theme='dark'] .me-msg { background: var(--card); color: var(--ink); }
.me-msg .kicker { margin: 0; color: var(--brand2); font: 700 12px/1 var(--display); letter-spacing: 0.12em; }
.me-msg h2 { margin: 4px 0 14px; }
.me-msg p { line-height: 2; }
.me-sign { text-align: right; font: 900 20px/1.4 var(--round); }
.me-sign small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
@media (max-width: 520px) { .me-card { flex-direction: column; text-align: center; } }

/* ---------- Codex が描いた小さなアイコン ---------- */
.moodb img { width: 32px; height: 32px; margin: -6px 0 -6px -6px; flex: none; }
.mo .moodb:hover img { animation: wiggle 0.5s ease-in-out 2; }
.deck-b .dk-ic { width: 26px; height: 26px; flex: none; }
.deck-b.fav:not([aria-pressed='true']) .dk-ic { filter: grayscale(0.85); opacity: 0.6; }
.mo .deck-b.fav[aria-pressed='true'] .dk-ic { animation: pop 0.45s cubic-bezier(0.3, 1.8, 0.5, 1); }
.mo .deck-b:hover .dk-ic { animation: hop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
@media (max-width: 600px) { .moodb img { width: 26px; height: 26px; } }
@media print { .rv { opacity: 1 !important; transform: none !important; } }

/* 動き その2（2026-12-03）：ページのつながり・言葉が浮かび上がる・流れる名言の帯・読み進み線・光・磁石のボタン
   「動きを減らす」設定の人には出さない（html.mo のときだけ。ページのつながりも止める） */

/* ── ページを移るとき、ふっと切り替わる。名言のカードは、押したカードがそのまま大きなポスターへ育つ */
@view-transition { navigation: auto; }
.hd { view-transition-name: site-hd; }
.it-pz { view-transition-name: qposter; }
::view-transition-old(root) { animation: vt-out 0.26s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in 0.46s cubic-bezier(0, 0, 0.2, 1) both; }
::view-transition-group(qposter) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
::view-transition-group(site-hd) { animation: none; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ── 言葉が 1 語ずつ浮かび上がる（名言の英文・ページの見出し・ホームの一言） */
.mo .wd { display: inline-block; opacity: 0; transform: translateY(0.42em); filter: blur(7px); animation: wd-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(var(--i) * var(--wd-step, 60ms) + var(--wd-base, 120ms)); }
.mo .wd.wd-c { --wd-step: 38ms; transform: translateY(0.6em); }
@keyframes wd-in { to { opacity: 1; transform: none; filter: none; } }
.mo .stage-k { animation: kerning 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes kerning { from { letter-spacing: 0.9em; opacity: 0; } }

/* ── 小見出しが、左から幕を引くように現れる */
.mo .hx-h h2.wipe { clip-path: inset(0 100% 0 0); transform: translateX(-10px); transition: clip-path 0.95s cubic-bezier(0.7, 0, 0.2, 1), transform 0.95s cubic-bezier(0.2, 0.8, 0.2, 1); }
.mo .hx-h h2.wipe.in { clip-path: inset(0 -4px 0 0); transform: none; }

/* ── 名言のポスターの写真が、ゆっくり寄っていく */
.kb { position: absolute; inset: 0; z-index: -1; background: inherit; border-radius: inherit; pointer-events: none; }
.mo .kb { animation: kb 26s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.13) translate(-1.6%, -1.2%); } }

/* ── 読み進んだところを示す細い金の線 */
.rd-bar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #a8802f, #e9cf8a 60%, #fff3cf); pointer-events: none; }

/* ── ホームの舞台：マウスの位置に、柔らかい光 */
.spot { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.7s; mix-blend-mode: screen; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 232, 190, 0.11), transparent 62%); }
.stage:hover .spot { opacity: 1; }

/* ── 流れる名言の帯（ホーム） */
.mq { position: relative; overflow: hidden; background: #0c0c0f; border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 20px 0 22px; }
.mq::before, .mq::after { content: ''; position: absolute; top: 0; bottom: 0; width: 9vw; z-index: 1; pointer-events: none; }
.mq::before { left: 0; background: linear-gradient(90deg, #0c0c0f, transparent); }
.mq::after { right: 0; background: linear-gradient(270deg, #0c0c0f, transparent); }
.mq-track { display: flex; align-items: center; gap: 1.6em; width: max-content; }
.mo .mq-track { animation: mq var(--mq-t, 90s) linear infinite; }
.mq:hover .mq-track, .mq:focus-within .mq-track { animation-play-state: paused; }
.mq a { font: italic 600 clamp(21px, 2.6vw, 32px) / 1.2 'Playfair Display', Georgia, serif; color: #f3ede2; white-space: nowrap; text-decoration: none; transition: color 0.3s; }
.mq a:nth-of-type(3n + 2) { color: transparent; -webkit-text-stroke: 1px rgba(243, 237, 226, 0.72); }
.mq a:hover { color: #e9cf8a; -webkit-text-stroke: 0; }
.mq i { font-style: normal; color: #b8913c; font-size: 0.8em; }
html:not(.mo) .mq { overflow-x: auto; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ── 磁石のように、カーソルへ少し寄るボタン */
.mag { transition: translate 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }

@media print { .wd { opacity: 1 !important; transform: none !important; filter: none !important; } .rd-bar, .spot, .mq { display: none !important; } .hx-h h2.wipe { clip-path: none !important; } }

/* ── 探す：打った言葉から予想した言葉（2026-12-03） */
.srch-guess { margin: 4px 0 18px; padding: 14px 18px; border-left: 3px solid #b8913c; background: color-mix(in srgb, #b8913c 7%, transparent); border-radius: 0 10px 10px 0; }
.srch-guess p { margin: 0; font-size: 14.5px; line-height: 1.7; }
.srch-guess .chips { margin-top: 10px; }
.rows > .srch-sep { grid-column: 1 / -1; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 26px 0 6px; padding: 14px 0 10px; border-top: 1px solid var(--line); }
.srch-sep b { font: 600 clamp(17px, 2.2vw, 21px) / 1.4 'Shippori Mincho B1', var(--jp), serif; }
.srch-sep span { font-size: 12.5px; opacity: 0.7; }

/* ── ロゴ：目が引用符のふくろう（2026-12-03）。ふわふわ浮かせず、触れたときだけ首をかしげる */
.mo .logo-mk { animation: none; }
.logo-mk { border-radius: 22%; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s; }
.logo:hover .logo-mk { transform: rotate(-8deg) scale(1.06); box-shadow: 0 6px 18px -6px rgba(184, 145, 60, 0.55); }

/* イベントページ → ポストカードの書き方へのバナー */
.ev-pc { display: grid; gap: 2px; padding: 20px 24px; border-radius: 16px; background: linear-gradient(135deg, #1a1820, #26222c); color: #f3ede2; text-decoration: none; border: 1px solid rgba(201, 162, 74, 0.4); transition: transform 0.25s; }
.ev-pc:hover { transform: translateY(-2px); }
.ev-pc-k { font: 600 10.5px 'Poppins', sans-serif; letter-spacing: 0.2em; color: #c9a24a; }
.ev-pc b { font: 700 clamp(18px, 2.4vw, 22px) / 1.5 'Shippori Mincho B1', var(--jp), serif; }
.ev-pc b::after { content: ' →'; color: #c9a24a; }
.ev-pc span:last-child { font-size: 13.5px; opacity: 0.8; }
/* 一覧：スクリプトが動く前から 1 ページ目とページ送りを出す（build.mjs の pager0 と、行の hidden・data-m） */
.pager .pg-d { display: contents; }
.pager .pg-m { display: none; }
@media (max-width: 600px) {
  [data-list]:not([data-on]) .r[data-m] { display: none; }
  .pager .pg-d { display: none; }
  .pager .pg-m { display: contents; }
}
