/* ==========================================================
   CharaSite main.css
   レイアウト共通 ＋ data-preset による配色切り替え
   ========================================================== */

/* ---------- プリセット（配色だけを切り替える） ---------- */
:root,
[data-preset="lavender"] {
	--bg: #f7f7fb; --surface: #ffffff; --tint: #efeff6; --ink: #2f2e40; --muted: #7a798e; --line: #e2e1ec;
	--btn: #32355c; --btn-ink: #ffffff; --accent: #8f84d6;
	--gacha-1: #ece8f7; --gacha-2: #d5d2ee;
	--side-left:  linear-gradient(170deg, #c9cce6 0%, #8d92bd 55%, #5d6190 100%);
	--side-right: linear-gradient(190deg, #c9cce6 0%, #8d92bd 55%, #5d6190 100%);
	--ico-filter: none;
}
[data-preset="black"] {
	--bg: #17171b; --surface: #1f1f24; --tint: #24242a; --ink: #ece8df; --muted: #9d998f; --line: #35353d;
	--btn: #c8a45a; --btn-ink: #17171b; --accent: #c8a45a;
	--gacha-1: #2a2720; --gacha-2: #3b3323;
	--side-left:  linear-gradient(170deg, #2b2b31, #0e0e10);
	--side-right: linear-gradient(190deg, #2b2b31, #0e0e10);
	--ico-filter: invert(1);
}
[data-preset="pink"] {
	--bg: #fdf8f9; --surface: #ffffff; --tint: #faeff2; --ink: #4a3a41; --muted: #97838b; --line: #f0dfe4;
	--btn: #c77d93; --btn-ink: #ffffff; --accent: #c9a86a;
	--gacha-1: #fcecf1; --gacha-2: #f3d5df;
	--side-left:  linear-gradient(170deg, #fbe3ea, #e9b7c6);
	--side-right: linear-gradient(190deg, #fbe3ea, #e9b7c6);
	--ico-filter: none;
}
[data-preset="blue"] {
	--bg: #f6f9fd; --surface: #ffffff; --tint: #ebf2fa; --ink: #26374b; --muted: #6f8196; --line: #dbe5f1;
	--btn: #3d6fae; --btn-ink: #ffffff; --accent: #9fb0c4;
	--gacha-1: #e6eff9; --gacha-2: #cfdff3;
	--side-left:  linear-gradient(170deg, #dfeaf7, #8fb0d8);
	--side-right: linear-gradient(190deg, #dfeaf7, #8fb0d8);
	--ico-filter: none;
}
[data-preset="dark"] {
	--bg: #15142b; --surface: #1d1b38; --tint: #221f41; --ink: #e7e4f6; --muted: #a29ec2; --line: #34315c;
	--btn: #8c78e0; --btn-ink: #ffffff; --accent: #b9a8ff;
	--gacha-1: #27234c; --gacha-2: #342d66;
	--side-left:  linear-gradient(170deg, #2a2656, #0b0a1c);
	--side-right: linear-gradient(190deg, #2a2656, #0b0a1c);
	--ico-filter: invert(1);
}

:root {
	--col: 480px;                 /* PCでもスマホと同じ縦長カラム幅 */
	--pad: 18px;
	--serif: "Cormorant Garamond", "Times New Roman", serif;
	--sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
	--serif-jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--r: 6px;
}

/* ---------- ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.75; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- PC：中央カラム＋左右背景 ---------- */
.side { display: none; }
.stage { position: relative; min-height: 100vh; background: var(--bg); padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (min-width: 600px) {
	body { background: #000; }
	.side { display: block; position: fixed; top: 0; bottom: 0; width: calc((100vw - var(--col)) / 2); background-size: cover; background-position: center; }
	.side--left  { left: 0;  background-image: var(--side-left); }
	.side--right { right: 0; background-image: var(--side-right); }
	.stage { max-width: var(--col); margin: 0 auto; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 60px rgba(0,0,0,.35); z-index: 1; }
}

/* ---------- ヘッダー・メニュー ---------- */
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 var(--pad); padding-top: env(safe-area-inset-top, 0px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); }
.site-header--over { position: absolute; left: 0; right: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 70%, transparent), transparent); backdrop-filter: none; }
.site-header__title { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 20px; text-decoration: none; }
.menu-btn { width: 36px; height: 36px; border: 0; background: none; display: grid; place-content: center; gap: 5px; }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.drawer { position: fixed; inset: 0; margin: 0 auto; max-width: var(--col); z-index: 25; background: color-mix(in srgb, var(--bg) 96%, transparent); display: grid; place-items: center; }
.drawer[hidden] { display: none; }
.drawer__list { text-align: center; }
.drawer__list a { display: block; padding: 12px 24px; font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .08em; text-decoration: none; }

/* ---------- 共通セクション ---------- */
.sec { padding: 22px var(--pad) 26px; }
.sec--tint { background: var(--tint); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: .04em; }
.sec-title--center { text-align: center; margin-bottom: 12px; }
.sec-more { font-size: 11px; letter-spacing: .06em; color: var(--muted); text-decoration: none; display: inline-flex; gap: 4px; }
.page { min-height: 60vh; padding-top: 64px; }
.page-title { font-family: var(--serif); font-weight: 700; font-size: 30px; letter-spacing: .05em; text-align: center; margin: 0 0 20px; }
.empty { color: var(--muted); text-align: center; padding: 24px 0; }
.center { text-align: center; }
.back { margin-top: 28px; font-size: 13px; }
.back a { color: var(--muted); }
.intro { margin: 0; padding: 18px var(--pad) 0; text-align: center; color: var(--muted); font-size: 13px; }

.btn-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 6px 26px; border: 0; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-decoration: none; }
.btn-pill--lg { min-height: 46px; padding: 10px 30px; font-size: 15px; }
.btn-pill--accent { background: linear-gradient(135deg, var(--btn), var(--accent)); }
.btn-pill:disabled { opacity: .5; cursor: wait; }

/* ---------- HERO ---------- */
.hero { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--tint); }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,40,.55), rgba(20,18,40,0) 55%); pointer-events: none; }
.hero__text { position: absolute; left: var(--pad); right: var(--pad); bottom: 34px; z-index: 1; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero__title { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(36px, 11vw, 52px); line-height: 1.05; }
.hero__catch { margin: 8px 0 0; font-size: 12px; letter-spacing: .1em; line-height: 1.7; }
.hero__down { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); color: var(--ink); display: grid; place-items: center; }

/* ---------- TODAY'S MESSAGE ---------- */
.today__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.today__track::-webkit-scrollbar { display: none; }
.msg { flex: 0 0 100%; scroll-snap-align: center; display: grid; grid-template-columns: 56% 1fr; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.msg__img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.msg__body { padding: 14px 14px 12px 16px; display: flex; flex-direction: column; justify-content: space-between; }
.msg__text { margin: 0; font-size: 13px; line-height: 1.85; white-space: pre-wrap; }
.msg__name { margin: 8px 0 0; text-align: right; font-size: 11px; color: var(--muted); }
.today__dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.today__dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: var(--line); }
.today__dots button[aria-selected="true"] { background: var(--muted); }

/* ---------- NEWS ---------- */
.news-list li + li { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 8px 0; text-decoration: none; }
.news-item__thumb { width: 56px; aspect-ratio: 7 / 5; border-radius: 3px; overflow: hidden; background: var(--tint); }
.news-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item time { display: block; font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.news-item__title { font-size: 12px; line-height: 1.6; }
.ext { color: var(--muted); }

/* ---------- 3列グリッド（キャラ・ギャラリー） ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid3--tight { gap: 8px; }
.grid3--chara-list { row-gap: 18px; }
.chara-card { display: block; text-align: center; text-decoration: none; background: var(--surface); border-radius: var(--r); overflow: hidden; padding-bottom: 8px; }
.chara-card__img { display: block; aspect-ratio: 1 / .85; overflow: hidden; background: var(--line); }
.chara-card__img img { width: 100%; height: 100%; object-fit: cover; }
.chara-card__name { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.chara-card__catch { display: block; padding: 0 6px; font-size: 9.5px; line-height: 1.5; color: var(--muted); }
.gal-thumb { display: block; width: 100%; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--line); aspect-ratio: 1 / .85; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- GACHA バナー ---------- */
.gacha-banner { position: relative; display: grid; grid-template-columns: 1fr 34%; align-items: center; margin: 18px var(--pad) 0; padding: 20px 18px; border-radius: var(--r); background: linear-gradient(120deg, var(--gacha-1), var(--gacha-2)); overflow: hidden; }
.gacha-banner__title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 34px; letter-spacing: .12em; line-height: 1; padding-left: 26px; }
.gacha-banner__desc { margin: 6px 0 12px; font-size: 10.5px; letter-spacing: .08em; }
.gacha-banner__cards { position: relative; height: 90px; }
.gacha-banner__cards span { position: absolute; width: 58px; aspect-ratio: 3 / 4; border-radius: 5px; background: var(--surface); box-shadow: 0 6px 18px rgba(40,30,90,.18); }
.gacha-banner__cards span:first-child { left: 4px; top: 16px; transform: rotate(-12deg); opacity: .8; }
.gacha-banner__cards span:last-child { left: 36px; top: 2px; transform: rotate(8deg); background: linear-gradient(150deg, var(--accent), var(--btn)); }

.sub-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px var(--pad); }
.sub-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: var(--ink); }
.sub-link svg { flex: none; color: var(--muted); }
.sub-link .sub-link__chev { margin-left: auto; }
.sub-link b { display: block; font-size: 11px; letter-spacing: .04em; }
.sub-link small { display: block; font-size: 10px; color: var(--muted); }

/* ---------- LINKS / FOOTER ---------- */
.sec--links { padding-top: 10px; }
.links { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 12px; }
.link-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; text-decoration: none; overflow: hidden; }
.link-ico__img { width: 20px; height: 20px; object-fit: contain; filter: var(--ico-filter); }
.link-ico__txt { font-size: 8px; font-weight: 700; letter-spacing: .02em; }
.site-footer { padding: 6px var(--pad) 26px; text-align: center; font-size: 10.5px; color: var(--muted); }
.site-footer__wave { width: 100%; height: 16px; color: var(--line); }
.site-footer__title { margin: 8px 0 6px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink); }
.site-footer__nav, .site-footer__sub { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 4px; }
.site-footer a { text-decoration: none; }
.site-footer__copy { margin: 8px 0 0; font-size: 9.5px; }

/* ---------- 記事・キャラ詳細 ---------- */
.article__date { margin: 0; font-size: 12px; color: var(--muted); }
.article__title { margin: 4px 0 16px; font-size: 19px; line-height: 1.5; }
.article__eyecatch { margin-bottom: 16px; border-radius: var(--r); overflow: hidden; }
.article__body { font-size: 14px; line-height: 1.95; overflow-wrap: anywhere; }
.article__body img { border-radius: 4px; }
.profile { margin: 18px 0; border-top: 1px solid var(--line); }
.profile__row { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.profile dt { color: var(--muted); font-size: 12px; }
.profile dd { margin: 0; font-size: 13px; }

/* ---------- ギャラリー絞り込み・ページ送り ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters__item { flex: 1 1 30%; min-width: 120px; font-size: 11px; color: var(--muted); }
.filters select { width: 100%; margin-top: 2px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.page-numbers { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; font-size: 13px; }
.page-numbers.current { background: var(--btn); color: var(--btn-ink); }

/* ---------- ライトボックス ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(12,10,24,.9); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-height: 80vh; width: auto; border-radius: 4px; }
.lightbox__cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: 12px; }
.lightbox__close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 28px; }

/* ==========================================================
   GACHA
   ========================================================== */
.gacha-stage { padding: 70px var(--pad) 34px; text-align: center; background: linear-gradient(170deg, var(--gacha-1), var(--gacha-2)); }
.gacha-stage__title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 46px; letter-spacing: .14em; line-height: 1.1; }
.gacha-stage__desc { margin: 6px 0 0; font-size: 12px; letter-spacing: .08em; }
.gacha-stage__deck { position: relative; height: 190px; margin: 22px auto 18px; width: 200px; }
.gacha-stage__deck span { position: absolute; left: 50%; top: 10px; width: 118px; aspect-ratio: 3 / 4; margin-left: -59px; border-radius: 8px; background: var(--surface); box-shadow: 0 10px 30px rgba(40,30,90,.2); }
.gacha-stage__deck span:nth-child(1) { transform: rotate(-14deg) translateX(-38px); opacity: .75; }
.gacha-stage__deck span:nth-child(2) { transform: rotate(10deg) translateX(38px); opacity: .85; }
.gacha-stage__deck span:nth-child(3) { background: linear-gradient(150deg, var(--accent), var(--btn)); }
.gacha-stage__deck span:nth-child(3)::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 54px; color: rgba(255,255,255,.85); }
.gacha-stage__buttons { display: grid; gap: 10px; max-width: 280px; margin: 0 auto; }
.gacha-stage__note { margin: 16px 0 0; font-size: 12px; }
.rate-table { width: 100%; max-width: 280px; margin: 18px auto 0; border-collapse: collapse; font-size: 13px; }
.rate-table caption { font-weight: 700; margin-bottom: 6px; }
.rate-table th, .rate-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); }
.rate-table td { text-align: right; }
.rar { display: inline-block; min-width: 3em; padding: 0 8px; border-radius: 3px; background: var(--rar); color: #fff; font-size: 11px; font-weight: 700; text-align: center; letter-spacing: .06em; }

/* 抽選結果オーバーレイ */
.draw-overlay { position: fixed; inset: 0; margin: 0 auto; max-width: var(--col); z-index: 50; background: rgba(16,14,34,.94); display: grid; place-items: center; padding: 20px 14px; overflow-y: auto; }
.draw-overlay[hidden] { display: none; }
.draw-overlay__inner { width: 100%; }
.draw-overlay__actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.draw-overlay__flash { position: fixed; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 45%, var(--flash, #fff) 0%, transparent 60%); }
.draw-overlay.is-high .draw-overlay__flash { animation: cs-flash 1.1s ease-out; }
@keyframes cs-flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }

.draw-results { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.draw-results--single { grid-template-columns: minmax(0, 62%); justify-content: center; }
.card { perspective: 800px; aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; width: 100%; }
.card__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3,.7,.3,1); }
.card.is-flipped .card__inner { transform: rotateY(180deg); }
.card__face { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; backface-visibility: hidden; }
.card__back { background: linear-gradient(150deg, var(--accent), var(--btn)); display: grid; place-items: center; color: rgba(255,255,255,.8); font-family: var(--serif); font-size: 26px; }
.card__front { transform: rotateY(180deg); background: #000; box-shadow: 0 0 0 2px var(--rar); }
.card__front img { width: 100%; height: 100%; object-fit: cover; }
.card__rar { position: absolute; left: 4px; top: 4px; }
.card__new { position: absolute; right: 4px; top: 4px; padding: 0 5px; border-radius: 3px; background: #fff; color: #d0385c; font-size: 9px; font-weight: 700; }
.card--high.is-flipped .card__front { box-shadow: 0 0 0 2px var(--rar), 0 0 18px 4px var(--rar); }
.draw-comment { color: #fff; text-align: center; font-size: 13px; margin: 14px 0 0; }

/* ==========================================================
   COLLECTION
   ========================================================== */
.collection__summary { text-align: center; margin-bottom: 18px; }
.collection__total { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 700; letter-spacing: .06em; }
.collection__by-rarity { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.col-group + .col-group { margin-top: 20px; }
.col-group__head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; }
.col-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.col-card { aspect-ratio: 3 / 4; border-radius: 5px; overflow: hidden; position: relative; border: 0; padding: 0; background: var(--surface); box-shadow: 0 0 0 1.5px var(--rar); }
.col-card img { width: 100%; height: 100%; object-fit: cover; }
.col-card__count { position: absolute; right: 3px; bottom: 3px; padding: 0 5px; border-radius: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 9px; }
.col-card--locked { box-shadow: none; background: repeating-linear-gradient(135deg, var(--tint) 0 6px, var(--line) 6px 7px); display: grid; place-items: center; color: var(--muted); font-size: 12px; letter-spacing: .1em; cursor: default; }

.transfer__lead { font-size: 12.5px; color: var(--muted); margin-top: 0; }
.transfer__last { font-size: 12px; margin: 0; }
.transfer__last:empty { display: none; }
.collection__notice { margin: 0 0 16px; padding: 10px 12px; border-radius: var(--r); background: var(--tint); font-size: 12.5px; text-align: center; }
.collection__notice[hidden] { display: none; }
.transfer__box { margin-top: 14px; padding: 14px; border-radius: var(--r); background: var(--surface); text-align: center; }
.transfer__box label { display: block; font-size: 12px; margin-bottom: 8px; }
.transfer__row { display: flex; gap: 8px; }
.transfer__row input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.transfer__code { margin: 12px 0 0; font-family: ui-monospace, Menlo, monospace; font-size: 22px; letter-spacing: .1em; user-select: all; }
.transfer__code small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0; color: var(--muted); }
.transfer__msg { margin: 8px 0 0; font-size: 12px; min-height: 1.5em; }

/* ==========================================================
   CREATOR / ABOUT
   ========================================================== */
.about__head { text-align: center; margin-bottom: 18px; }
.about__icon { width: 112px; height: 112px; margin: 0 auto 12px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.about__name { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .08em; }
.about__kind { margin: 2px 0 0; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.about__block + .about__block { margin-top: 22px; }
.about__h { margin: 0 0 10px; font-family: var(--serif); font-weight: 700; font-size: 16px; letter-spacing: .08em; }
.members { display: grid; gap: 10px; }
.member { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: var(--r); background: var(--tint); }
.member__icon { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.member__icon--empty { display: grid; place-items: center; background: var(--line); color: var(--muted); font-weight: 700; }
.member__name { margin: 0; font-size: 14px; font-weight: 700; }
.member__name a { text-decoration: none; }
.member__role { margin: 0; font-size: 11px; color: var(--muted); }
.member__intro { margin: 4px 0 0; font-size: 12.5px; line-height: 1.7; }

/* ==========================================================
   v0.5 キャラクター一覧・詳細（character_list.png / character_single.png）
   ========================================================== */
.sec--flush { padding-top: 10px; }

/* ---------- 画像付きページヘッダー ---------- */
.page-hero { position: relative; aspect-ratio: 16 / 8.4; min-height: 210px; overflow: hidden; background: linear-gradient(150deg, var(--gacha-1), var(--gacha-2)); }
.page-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(22,20,44,.55) 0%, rgba(22,20,44,.18) 55%, rgba(22,20,44,0) 80%), linear-gradient(to top, rgba(22,20,44,.35), rgba(22,20,44,0) 45%); }
.page-hero__text { position: absolute; left: calc(var(--pad) + 8px); right: var(--pad); bottom: 22px; z-index: 1; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.page-hero__title { margin: 0; line-height: 1.1; font-family: var(--serif-jp); font-weight: 500; font-size: clamp(32px, 10vw, 44px); letter-spacing: .14em; }
.page-hero__title--latin { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(34px, 10.5vw, 48px); letter-spacing: .03em; }
.page-hero__sub { margin: 4px 0 0; font-family: var(--serif-jp); font-size: 15px; letter-spacing: .22em; }
.page-hero__title:not(.page-hero__title--latin) + .page-hero__sub { font-family: var(--serif); font-size: 14px; letter-spacing: .32em; text-transform: uppercase; }
.page-hero__catch { margin: 10px 0 0; font-size: 12.5px; line-height: 1.8; letter-spacing: .1em; }

/* ---------- パンくず ---------- */
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0 0 14px; padding: 0; list-style: none; font-family: var(--serif); font-size: 12px; letter-spacing: .06em; color: var(--ink); }
.crumb li { display: inline-flex; align-items: center; gap: 6px; }
.crumb li + li::before { content: "›"; margin: 0 10px; color: var(--muted); }
.crumb a { text-decoration: none; }

/* ---------- 横線付き見出し ---------- */
.heading { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-family: var(--serif-jp); font-weight: 700; font-size: 16px; letter-spacing: .08em; }
.heading::after { content: ""; flex: 1; height: 1px; align-self: center; background: var(--line); }
.heading--latin .heading__main { font-family: var(--serif); font-size: 20px; letter-spacing: .05em; }
.heading__sub { font-family: var(--serif-jp); font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--muted); }

/* ---------- 一覧：分類タブ ---------- */
.chara-tabs { display: flex; gap: 6px; margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.chara-tabs::-webkit-scrollbar { display: none; }
.chara-tab { flex: 1 0 auto; min-width: 22%; display: grid; place-items: center; height: 42px; padding: 0 16px; border-radius: 999px; background: color-mix(in srgb, var(--btn) 9%, var(--surface)); color: var(--ink); text-decoration: none; font-size: 13px; letter-spacing: .14em; transition: background .2s, color .2s; }
.chara-tab[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); font-family: var(--serif); font-size: 15px; }

/* ---------- 一覧：2列カード ---------- */
.chara-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.chara-grid li[hidden] { display: none; }
.chara-wide { display: block; height: 100%; overflow: hidden; border-radius: var(--r); background: var(--surface); box-shadow: 0 2px 12px rgba(40,40,90,.07); text-decoration: none; color: var(--ink); }
.chara-wide__img { display: block; aspect-ratio: 16 / 9.2; overflow: hidden; background: var(--tint); }
.chara-wide__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .4s; }
.chara-wide:hover .chara-wide__img img { transform: scale(1.03); }
.chara-wide__body { position: relative; display: block; padding: 11px 28px 14px 16px; }
.chara-wide__name { display: block; font-family: var(--serif-jp); font-weight: 700; font-size: 17px; letter-spacing: .16em; }
.chara-wide__catch { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.7; letter-spacing: .06em; color: var(--muted); }
.chara-wide__chev { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink); }

/* ---------- 詳細 ---------- */
.chara__sec + .chara__sec { margin-top: 26px; }
.basic { display: grid; grid-template-columns: 46% 1fr; gap: 14px; align-items: start; }
.basic:has(> :only-child) { grid-template-columns: 1fr; }
.basic__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--tint); }
.basic__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.basic__list { margin: 0; }
.basic__row { display: grid; grid-template-columns: 5.6em 1fr; gap: 10px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line); }
.basic__row dt { padding: 2px 4px; border-radius: 2px; background: color-mix(in srgb, var(--btn) 9%, var(--surface)); color: var(--ink); font-size: 11px; text-align: center; letter-spacing: .06em; }
.basic__row dd { margin: 0; font-size: 12.5px; line-height: 1.6; letter-spacing: .04em; }
.chara__desc { font-size: 13px; line-height: 1.95; letter-spacing: .03em; }
.chara__desc p { margin: 0 0 .6em; }

.more-list { margin: 0; border-top: 1px solid var(--line); }
.more-list__row { display: grid; grid-template-columns: 38% 1fr; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.more-list__row dt { font-weight: 500; letter-spacing: .06em; }
.more-list__row dd { margin: 0; letter-spacing: .04em; }

.details { display: grid; gap: 12px; }
.detail { display: grid; grid-template-columns: 52% 1fr; gap: 14px; align-items: start; }
.detail--noimg { grid-template-columns: 1fr; }
.detail__img { aspect-ratio: 16 / 9.4; overflow: hidden; border-radius: 4px; background: var(--tint); }
.detail__img img { width: 100%; height: 100%; object-fit: cover; }
.detail__title { margin: 2px 0 6px; font-family: var(--serif-jp); font-weight: 700; font-size: 15px; letter-spacing: .1em; }
.detail__text { margin: 0; font-size: 11.5px; line-height: 1.85; color: color-mix(in srgb, var(--ink) 80%, var(--bg)); }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.grid4 .gal-thumb { aspect-ratio: 16 / 10; border-radius: 3px; }
.chara__more { margin: 10px 0 0; text-align: right; font-size: 12px; }
.chara__more a { color: var(--muted); text-decoration: none; }

/* ---------- VOICE ---------- */
.voice-list { border-top: 1px solid var(--line); }
.voice-row { position: relative; display: grid; grid-template-columns: 34px 1fr auto 28px; gap: 4px 14px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.voice-row__play { position: relative; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--btn) 78%, var(--surface)); }
.voice-row__play::after { content: ""; position: absolute; left: 13px; top: 11px; border-left: 10px solid var(--btn-ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.voice-row__play[aria-pressed="true"] { background: var(--btn); }
.voice-row__play[aria-pressed="true"]::after { left: 12px; top: 11px; width: 10px; height: 12px; border: 0; border-left: 3px solid var(--btn-ink); border-right: 3px solid var(--btn-ink); }
.voice-row__title { font-size: 12.5px; letter-spacing: .08em; }
.voice-row__time { font-family: var(--serif); font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.voice-row__more { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 7px; letter-spacing: 1px; line-height: 1; }
.voice-row__more[aria-expanded="true"] { background: var(--tint); }
.voice-row__more--blank { visibility: hidden; }
.voice-row__text { grid-column: 1 / -1; margin: 4px 0 2px 48px; padding: 8px 12px; border-radius: 4px; background: var(--tint); font-size: 12px; line-height: 1.8; }
.voice-row__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; opacity: 0; transition: opacity .2s; }
.voice-row__bar span { display: block; width: 0; height: 100%; background: var(--accent); }
.voice-row.is-playing .voice-row__bar { opacity: 1; }

/* ---------- GACHA バナー（背景画像あり・ボタン） ---------- */
.gacha-banner--image { background: linear-gradient(90deg, color-mix(in srgb, var(--gacha-1) 90%, transparent) 0%, color-mix(in srgb, var(--gacha-1) 55%, transparent) 60%, color-mix(in srgb, var(--gacha-1) 10%, transparent) 100%), var(--banner-bg) center / cover no-repeat; }
.gacha-banner__title { font-weight: 700; }
.btn-pill--dark { background: var(--ink); color: var(--bg); min-width: 12em; }
.gacha-banner__cards span:last-child { box-shadow: 0 0 0 4px var(--surface), 0 6px 18px rgba(40,30,90,.2); }

@media (max-width: 360px) {
	.chara-grid { gap: 12px; }
	.chara-wide__body { padding-left: 12px; }
	.basic { grid-template-columns: 1fr; }
}

/* 細かな調整（MY COLLECTION の折り返し・パンくずのアイコン間隔） */
.sub-link { gap: 8px; padding: 10px; min-width: 0; }
.sub-link b { font-size: 10.5px; letter-spacing: .02em; white-space: nowrap; }
.sub-link small { font-size: 9.5px; white-space: nowrap; }
.sub-link > span { min-width: 0; }
.crumb svg { margin-right: 5px; flex: none; }
