:root {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #202321;
  background: #f8f8f6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --page: #f8f8f6;
  --surface: #fff;
  --text: #202321;
  --muted: #6c716d;
  --line: #e5e7e3;
  --accent: #a72c38;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
img { display: block; }
.page-shell { max-width: 1184px; margin: 0 auto; padding: 0 32px; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 10; padding: 11px 15px; border-radius: 8px; background: var(--surface); }
.skip-link:focus { top: 12px; }
a:focus-visible, fzd-chibi-avatar:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.site-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { font-size: 18px; font-weight: 750; letter-spacing: -.04em; text-decoration: none; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; transition: color .18s ease; }
.back-link:hover, .breadcrumbs a:hover, .end-link a:hover { color: var(--accent); }
.back-link span { color: var(--accent); font-size: 17px; }
.breadcrumbs { min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { text-decoration: none; transition: color .18s ease; }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 650; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, .92fr); align-items: center; gap: clamp(32px, 5vw, 72px); padding: clamp(30px, 4vw, 54px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.hero-copy { min-width: 0; max-width: 540px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .025em; }
h1 { margin: 0; color: var(--text); font-size: clamp(42px, 5vw, 66px); font-weight: 780; letter-spacing: -.065em; line-height: 1.16; text-wrap: balance; }
.lead { margin: 28px 0 0; color: #383d39; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.75; }
.detail { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin-top: 26px; color: var(--muted); font-size: 12px; font-weight: 600; }
.hero-meta span + span::before { content: "·"; margin: 0 11px; color: #a4aaa5; }
.jump-link { display: inline-flex; align-items: center; gap: 22px; margin-top: 30px; padding: 12px 0; border-bottom: 1px solid var(--accent); color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none; transition: gap .18s ease; }
.jump-link:hover { gap: 29px; }
.jump-link span { font-size: 18px; line-height: 1; }

.hero-visual { min-width: 0; }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; overflow: hidden; border: 1px solid #e8ebe6; border-radius: 20px; background: radial-gradient(circle at 50% 43%, #fff 0%, #f1f3ef 78%, #ecefeb 100%); }
.hero-art.is-crop img { position: absolute; width: 300%; height: 300%; max-width: none; }
.hero-art.is-full fzd-chibi-avatar { display: block; width: 100%; height: 100%; cursor: pointer; }
.hero-art.is-full fzd-chibi-avatar > img { width: 100%; height: 100%; object-fit: contain; }
.motion-hint { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 29px; margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.motion-hint::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.frame-section { padding: 64px 0 0; }
.frame-section + .frame-section { margin-top: 62px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 22px; }
.section-kicker { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.section-heading h2 { margin: 0; color: var(--text); font-size: clamp(27px, 3vw, 36px); font-weight: 740; letter-spacing: -.055em; line-height: 1.2; }
.section-heading > p { max-width: 440px; margin: 0 0 2px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.frame-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.frame-card { min-width: 0; margin: 0; padding: 11px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.frame-art { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #f4f5f2; }
.frame-art.is-crop img { position: absolute; width: 300%; height: 300%; max-width: none; }
.frame-art.is-full img { width: 100%; height: 100%; object-fit: contain; }
.frame-card figcaption { padding: 11px 2px 3px; color: #4e554f; font-size: 13px; font-weight: 620; text-align: center; }
.is-extra .frame-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.end-link { padding: 62px 0 68px; text-align: center; }
.end-link a { display: inline-flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 650; text-decoration: none; transition: color .18s ease; }
.end-link a span { color: var(--accent); }
.site-footer { display: grid; grid-template-columns: minmax(225px, .8fr) minmax(0, 1.2fr); gap: 28px; padding: 27px 0 50px; border-top: 1px solid var(--line); }
.site-footer strong { font-size: 14px; font-weight: 700; }
.site-footer p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { width: min(100%, 500px); margin: 0 auto; }
}
@media (max-width: 640px) {
  .page-shell { padding: 0 18px; }
  .site-header { min-height: 68px; gap: 12px; }
  .brand { font-size: 15px; }
  .back-link { font-size: 12px; text-align: right; }
  .breadcrumbs { min-height: 58px; gap: 7px; }
  .hero { padding: 24px 18px 20px; border-radius: 20px; }
  h1 { font-size: clamp(37px, 10vw, 50px); }
  .lead { margin-top: 20px; }
  .hero-meta { margin-top: 20px; }
  .jump-link { margin-top: 17px; }
  .hero-art { border-radius: 14px; }
  .frame-section { padding-top: 46px; }
  .frame-section + .frame-section { margin-top: 44px; }
  .section-heading { display: block; margin-bottom: 17px; }
  .section-heading > p { margin-top: 10px; }
  .frame-grid { gap: 8px; }
  .frame-card { padding: 6px; border-radius: 10px; }
  .frame-art { border-radius: 6px; }
  .frame-card figcaption { padding: 8px 1px 2px; font-size: 11px; }
  .is-extra .frame-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .end-link { padding: 48px 0; }
  .site-footer { grid-template-columns: 1fr; gap: 10px; padding-bottom: 36px; }
}
@media (hover: none) {
  .motion-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .back-link, .jump-link, .breadcrumbs a, .end-link a { transition: none; }
}
/* Match the gallery header and typography on every detail page. */
:root { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.site-header { min-height: 94px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 720; letter-spacing: 0; line-height: 1.2; white-space: nowrap; }
.brand small { display: block; margin-top: 5px; color: #888e89; font-size: 8px; font-weight: 650; letter-spacing: .13em; }
.brand-mark { display: block; width: 42px; height: 42px; flex: 0 0 42px; object-fit: contain; }
@media (max-width: 640px) {
  .site-header { min-height: 72px; }
  .brand { font-size: 13px; }
  .brand small { font-size: 7px; letter-spacing: .06em; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
}
