.header { flex-wrap: wrap; }
footer.work-footer { display: block; padding: 44px max(24px, calc((100% - 1120px) / 2)) 22px; background: #faf6f8; border-top: 1px solid #dbcbd2; color: #49383f; }
.work-footer-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1fr); gap: 48px; }
.work-footer-title { display: inline-block; font-size: 26px; font-weight: 800; line-height: 1.4; }
.work-footer h2 { font-family: inherit; font-size: 13px; line-height: 1.6; margin: 0 0 16px; color: #845269; }
.work-footer p { font-size: 13px; line-height: 1.9; margin: 16px 0 24px; }
.work-footer dl { display: grid; gap: 16px; margin: 20px 0 0; }
.work-footer dt { font-size: 11px; color: #76636c; margin-bottom: 4px; }
.work-footer dd { margin: 0; font-size: 14px; line-height: 1.8; }
.work-footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 14px; }
.work-footer-links h2 { margin-bottom: 0; }
.work-footer-links h2:not(:first-child) { margin-top: 12px; }
.work-footer-company-name { font-size: 22px; font-weight: 800; }
.work-footer address { display: grid; gap: 6px; font-style: normal; font-size: 13px; line-height: 1.8; margin-top: 12px; }
.work-footer-contact { display: inline-block; margin-top: 18px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.work-footer a { overflow-wrap: anywhere; }
.work-footer a:hover { color: #8c303b; }
.work-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #e2d7dc; margin-top: 32px; padding-top: 20px; font-size: 12px; }
@media (max-width: 800px) { .work-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } .work-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .work-footer-main { grid-template-columns: minmax(0, 1fr); } .work-footer-brand { grid-column: auto; } .work-footer-title { font-size: 23px; } .work-footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); } .work-footer-links h2 { grid-column: 1 / -1; } }
.hero-art.is-personalized { background: var(--favorite-tint, #fff8f8); }
.hero-art.is-personalized > .hero-background { display: none; }
.favorite-hero-scene { position: absolute; inset: 0; overflow: hidden; background: var(--favorite-tint, #fff8f8); }
.favorite-hero-scene[hidden] { display: none; }
.favorite-hero-portrait { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: min(58%, 680px); aspect-ratio: 1; overflow: hidden; }
.favorite-hero-portrait img { position: absolute; display: block; width: 203.39%; max-width: none; height: auto; left: -6.1%; top: -6.78%; }
.hero-art.is-personalized .hero-copy { z-index: 1; width: 39%; }
.hero-art.is-personalized .hero-logo { width: min(65%, 240px); }
.hero-art.is-personalized .hero-catch { color: var(--favorite-accent); font-size: 18px; margin-bottom: 10px; }
.hero-art.is-personalized .hero-description { font-size: 30px; line-height: 1.5; color: var(--favorite-accent); overflow-wrap: anywhere; }
.hero-art.is-personalized .hero-description a { color: inherit; }
.hero-art.is-personalized .hero-description a:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero-art.is-personalized .hero-favorite-entry { margin-bottom: 16px; }
@media (max-width: 700px) {
  .favorite-hero-scene { position: relative; aspect-ratio: 1; width: 100%; }
  .favorite-hero-portrait { width: 100%; }
  .hero-art.is-personalized .hero-copy { width: 100%; }
  .hero-art.is-personalized .hero-logo { width: 140px; position: static; margin: 0 0 12px; }
  .hero-art.is-personalized .hero-description { font-size: 24px; }
}
.hero-favorite-entry { margin: 0 0 16px; }
.favorite-hero-button { min-width: 150px; min-height: 44px; padding: 9px 16px; border: 1px solid var(--favorite-accent, #8c303b); border-radius: 6px; background: #fffaf9; color: var(--favorite-accent, #8c303b); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.favorite-hero-button:hover { background: var(--favorite-tint, #fff0f3); }
.favorite-picker { width: min(760px, calc(100% - 32px)); max-height: min(82dvh, 760px); padding: 24px; border: 1px solid #e3d5dc; border-radius: 8px; box-sizing: border-box; color: #604039; background: #fff; }
.favorite-picker[open] { display: flex; flex-direction: column; gap: 16px; }
.favorite-picker::backdrop { background: #31252c80; }
body:has(.favorite-picker[open]) { overflow: hidden; }
.favorite-picker-heading, .favorite-picker-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; }
.favorite-picker-heading h2 { margin: 0; font-size: 20px; letter-spacing: 0; }
.favorite-picker button { min-height: 44px; border: 1px solid #d8c9ce; border-radius: 6px; padding: 10px 16px; font: inherit; font-size: 14px; background: white; color: #604039; cursor: pointer; }
.favorite-picker button:disabled { opacity: .45; cursor: default; }
.favorite-picker .favorite-picker-close { width: 44px; padding: 0; font-size: 24px; flex-shrink: 0; }
.favorite-picker-search { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid #d8c9ce; border-radius: 5px; font: inherit; font-size: 14px; }
.favorite-picker-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.favorite-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.favorite-option { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 8px; border: 1px solid #e8dee3; border-radius: 6px; cursor: pointer; font-size: 12px; overflow-wrap: anywhere; }
.favorite-option:has(input:checked) { background: #eaf4f1; border-color: #6da296; }
.favorite-option input { accent-color: #397a6a; flex: 0 0 16px; }
.favorite-option .favorite-portrait { flex-basis: 36px; width: 36px; height: 40px; }
.favorite-picker [hidden] { display: none !important; }
.favorite-picker-footer { padding-top: 12px; border-top: 1px solid #e8dee3; }
.favorite-picker .favorite-picker-save { background: var(--favorite-accent, #86546a); border-color: transparent; color: white; }
.favorite-picker :focus-visible, .favorite-hero-button:focus-visible { outline: 3px solid #397a78; outline-offset: 3px; }
@media (max-width: 700px) { .favorite-options { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) {
  .favorite-picker { width: 100%; max-width: none; max-height: 88dvh; margin: auto 0 0; padding: 16px; border-radius: 8px 8px 0 0; }
  .favorite-option { gap: 5px; padding: 6px; font-size: 11px; }
  .favorite-option .favorite-portrait { flex-basis: 30px; width: 30px; height: 34px; }
}
.favorite-control { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-block: 16px; }
.favorite-toggle, .favorite-clear { min-height: 44px; padding: 10px 18px; border: 1px solid var(--character-accent, var(--favorite-accent, #86546a)); border-radius: 6px; background: white; color: var(--character-accent, var(--favorite-accent, #86546a)); font: inherit; font-size: 14px; cursor: pointer; }
.favorite-toggle[aria-pressed="true"] { background: var(--character-accent, #86546a); color: white; }
.favorite-toggle:hover, .favorite-clear:hover { filter: brightness(.95); }
.favorite-toggle:focus-visible, .favorite-clear:focus-visible, .favorite-profile:focus-visible { outline: 3px solid #397a78; outline-offset: 3px; }
.favorite-feedback { font-size: 12px; color: #756469; line-height: 1.7; margin-block: 8px; }
.favorite-feedback:empty { display: none; }
.favorite-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; margin-bottom: 24px; background: var(--favorite-tint, #fff3f8); border-left: 3px solid var(--favorite-accent, #86546a); }
.favorite-summary[hidden] { display: none; }
.favorite-profile { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; color: var(--favorite-accent, #86546a); }
.favorite-profile small, .favorite-profile strong { display: block; overflow-wrap: anywhere; }
.favorite-profile small { font-size: 12px; margin-bottom: 4px; }
.favorite-profile strong { font-size: 16px; }
.favorite-clear { flex-shrink: 0; }
.favorite-portrait { display: block; position: relative; flex: 0 0 52px; width: 52px; height: 52px; overflow: hidden; border-radius: 4px; }
.favorite-portrait img { position: absolute; width: 203.39%; max-width: none; height: auto; left: -6.1%; top: -6.78%; }
.character-home.has-favorite .hero-actions .primary, .character-home.has-favorite #characters .section-heading .primary { background: var(--favorite-accent); border-color: var(--favorite-accent); color: white; }
.character-home.has-favorite .home-video-band { background: var(--favorite-tint); }
@media (max-width: 560px) { .favorite-summary { padding: 12px; gap: 10px; } .favorite-profile { gap: 10px; } .favorite-profile strong { font-size: 14px; } .favorite-clear { padding-inline: 12px; } }
.header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 24px; }
.header > nav:not(.work-languages) { justify-content: flex-end; width: auto; gap: 12px 18px; }
.header .work-languages { display: block; width: auto; margin: 0; font-size: 12px; }
.work-languages details { position: relative; }
.work-languages summary { min-height: 44px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #693c45; cursor: pointer; white-space: nowrap; }
.work-languages summary:focus-visible { outline: 3px solid #227f79; outline-offset: 3px; }
.language-options { position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px #312c351a; z-index: 30; }
.work-languages a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 3px; }
.work-languages a:hover { background: #fff3f4; }
.work-languages a[aria-current="page"] { background: #f8e8ec; color: #8c303b; }
@media (max-width: 1100px) {
  .header { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
  .header > .studio { grid-column: 1; grid-row: 1; }
  .header > .work-languages { grid-column: 2; grid-row: 1; }
  .header > nav:not(.work-languages) { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .header > nav:not(.work-languages) a { white-space: normal; }
}
.work-languages[hidden],html[data-browser-language="ja"] .work-languages { display: none; }
.seo-work-intro { padding-block: 28px 8px; text-align: center; }
.seo-work-intro p { max-width: 720px; margin-inline: auto; text-wrap: pretty; overflow-wrap: break-word; }
.seo-work-intro .work-intro-lead { margin-block: 0 12px; font-size: 18px; font-weight: 700; line-height: 1.8; color: #604039; }
.seo-work-intro .work-intro-detail { margin-block: 0; max-width: 660px; font-size: 14px; line-height: 2; color: #756469; }
@media (max-width: 700px) {
  .seo-work-intro { padding-block: 24px 4px; text-align: left; }
  .seo-work-intro .work-intro-lead { font-size: 16px; margin-bottom: 10px; }
}
.seo-link-index { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 20px 0; line-height: 1.6; }
.seo-link-index a { text-decoration: underline; text-underline-offset: 4px; white-space: normal; }
.seo-character-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 24px; margin: 24px 0 36px; }
.seo-character-card { min-width: 0; border: 1px solid #ead8d6; background: #fff; border-radius: 6px; overflow: hidden; transition: box-shadow .2s; }
.seo-character-card:hover { box-shadow: 0 4px 14px #55404420; }
.seo-character-crop { position: relative; aspect-ratio: 1; overflow: hidden; }
.seo-character-crop img { position: absolute; width: 200%; max-width: none; height: auto; left: -4%; top: -5%; }
.seo-character-card h3 { font-size: 17px; line-height: 1.5; margin: 16px 14px 8px; overflow-wrap: anywhere; }
.seo-credit { font-size: 13px; line-height: 1.9; }
.seo-credit a { text-decoration: underline; text-underline-offset: 3px; }
.seo-profile-sheet { display: block; width: 100%; height: auto; max-width: 960px; margin: 24px auto 12px; }
.profile-edition { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.profile-edition > span { font-size: 12px; color: #795b60; line-height: 1.6; }
.profile-edition .button { min-height: 44px; font-size: 13px; padding: 10px 16px; }
@media(max-width:600px) {
  .work-languages { width: 100%; justify-content: flex-end; }
  .seo-character-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .seo-character-card h3 { font-size: 15px; margin: 10px; }
}
