:root {
  color-scheme: light;
  --ink: #1e1720;
  --paper: #fff3dc;
  --gold: #f0c84b;
  --rose: #9f2144;
  --rose-dark: #5c1730;
  --blue: #243b67;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  background: radial-gradient(circle at 50% 0%, rgba(240, 200, 75, 0.16), transparent 34%), linear-gradient(180deg, #170e22, #2b142a 52%, #120a18);
}
a { color: inherit; }
.character-shell { width: min(100%, 1160px); margin: 0 auto; padding: clamp(18px, 4vw, 48px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: rgba(255, 243, 220, 0.82); font-size: 0.86rem; font-weight: 800; }
.breadcrumb a { text-decoration: none; border-bottom: 1px solid rgba(240, 200, 75, 0.48); }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.character-hero, .detail-hero, .archive-block, .detail-section {
  background: linear-gradient(180deg, rgba(255, 249, 237, 0.96), rgba(239, 211, 164, 0.94));
  border: 4px solid #05030a;
  box-shadow: 0 18px 60px rgba(0,0,0,0.42), 0 0 0 2px rgba(240,200,75,0.42) inset;
}
.character-hero { padding: clamp(28px, 6vw, 64px); margin-bottom: 26px; color: #fff3dc; background: radial-gradient(circle at 80% 16%, rgba(240,200,75,0.22), transparent 32%), linear-gradient(135deg, #21142d, #5c1730 58%, #243b67); }
.character-hero.slim { padding: clamp(24px, 5vw, 48px); }
h1, h2 { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; line-height: 1.12; }
h1 { margin: 0 0 14px; font-size: clamp(2.1rem, 8vw, 5rem); }
h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 4vw, 2rem); }
.character-hero p { max-width: 760px; margin: 0; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.primary-link, .secondary-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px;
  border-radius: 999px; font-weight: 900; text-decoration: none;
}
.primary-link { color: #2a0d1c; background: linear-gradient(180deg, #fff3b8, #d6a44c); box-shadow: 0 5px 0 rgba(0,0,0,0.38); }
.secondary-link { color: #fff3dc; border: 2px solid rgba(240,200,75,0.72); background: rgba(30,23,32,0.82); }
.archive-block { padding: clamp(20px, 4vw, 34px); margin-bottom: 24px; }
.archive-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.archive-heading a { color: var(--rose-dark); font-weight: 900; }
.character-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.character-grid.compact { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.character-card a { display: grid; min-height: 100%; color: inherit; text-decoration: none; background: rgba(255, 249, 237, 0.96); border: 3px solid #21142d; box-shadow: 0 9px 0 rgba(0,0,0,0.28); overflow: hidden; }
.card-art { position: relative; display: grid; place-items: end center; min-height: 260px; background: linear-gradient(180deg, #28324c, #171020); overflow: hidden; }
.card-fullbody { max-width: 95%; max-height: 260px; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,0.38)); }
.card-sd { position: absolute; right: 10px; bottom: 8px; width: 76px; max-height: 86px; object-fit: contain; filter: drop-shadow(0 5px 0 rgba(0,0,0,0.3)); }
.card-copy { padding: 14px; }
.card-copy p { margin: 0 0 6px; color: var(--rose); font-size: 0.76rem; font-weight: 900; }
.card-copy h2 { margin: 0 0 8px; font-size: 1.18rem; }
.card-copy span { display: block; color: #5e5662; font-size: 0.9rem; line-height: 1.55; }
.detail-page { display: grid; gap: 22px; }
.detail-hero { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 42px); padding: clamp(22px, 4vw, 42px); }
.detail-art { position: relative; display: grid; place-items: end center; min-height: 560px; overflow: hidden; background: linear-gradient(180deg, #27334a, #13101a); }
.detail-art.modern { background: linear-gradient(180deg, #dfe9f5, #f7efe4); }
.detail-art.fantasy { background: linear-gradient(180deg, #2a1d3c, #5c1730); }
.detail-fullbody { max-width: 105%; max-height: 560px; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(0,0,0,0.42)); }
.detail-sd { position: absolute; right: 18px; bottom: 16px; width: 112px; max-height: 130px; object-fit: contain; }
.detail-copy { align-self: center; }
.detail-copy h1 { color: var(--rose-dark); }
.detail-copy p { line-height: 1.9; }
.catch { color: #3a1830; font-size: 1.1rem; font-weight: 900; }
.detail-section { padding: clamp(20px, 4vw, 34px); }
.detail-section p { margin: 0; color: #3c303e; line-height: 1.9; }
.detail-section.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.seo-copy { background: linear-gradient(135deg, rgba(255,249,237,0.98), rgba(240,223,188,0.96)); }
.seo-copy .tag-list { margin-top: 16px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tag-list li, .mini-link-grid a { padding: 9px 13px; color: #2a0d1c; background: linear-gradient(180deg, #fff3b8, #d6a44c); border-radius: 999px; font-weight: 900; text-decoration: none; }
.mini-link-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.compatibility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.compatibility-card {
  display: grid; gap: 8px; min-height: 100%; padding: 16px;
  color: #2a0d1c; text-decoration: none;
  background: linear-gradient(180deg, #fff9ed, #efd3a4);
  border: 2px solid #21142d;
  box-shadow: 0 6px 0 rgba(0,0,0,0.24);
}
.compatibility-card span { color: var(--rose); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.08em; }
.compatibility-card strong { color: var(--rose-dark); font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.08rem; line-height: 1.35; }
.compatibility-card p { font-size: 0.92rem; line-height: 1.75; }
.compatibility-card small { color: #665866; font-weight: 800; line-height: 1.55; }
.ad-slot {
  position: relative; display: grid; place-items: center; min-height: 112px; padding: 18px;
  color: rgba(255, 243, 220, 0.74); text-align: center;
  background: linear-gradient(135deg, rgba(255, 243, 220, 0.08), rgba(240, 200, 75, 0.05)), rgba(8, 4, 12, 0.46);
  border: 2px dashed rgba(240, 200, 75, 0.42);
  box-shadow: 0 12px 28px rgba(0,0,0,0.24) inset;
}
.ad-slot span {
  position: absolute; top: 8px; left: 10px; padding: 2px 7px;
  color: rgba(255, 243, 220, 0.72); background: rgba(8, 4, 12, 0.62);
  border: 1px solid rgba(240, 200, 75, 0.34); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.08em;
}
.ad-slot p { margin: 0; font-size: 0.84rem; font-weight: 800; }
.ad-slot-inline { min-height: 260px; }
.ad-slot-detail { min-height: 128px; }
.quote { color: #fff3dc; background: linear-gradient(135deg, #21142d, #5c1730); }
.quote h2, .quote p { color: #fff3dc; }
@media (max-width: 760px) {
  .character-shell { padding: 14px; }
  .detail-hero, .detail-section.split { grid-template-columns: 1fr; }
  .detail-art { min-height: 420px; }
  .detail-fullbody { max-height: 420px; }
  .archive-heading { align-items: start; flex-direction: column; }
}
