/* Let grid children shrink to the viewport instead of a table's min-content width. */
.detail-body>*,.article-layout>*,.detail-hero>*,.character-profile-top>*,.reading-column,.article-expanded,.article-section{min-width:0;max-width:100%;box-sizing:border-box}
.table-scroll{display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.reading-column p,.reading-column li,.reading-column dd,.reading-column a,.detail-intro{overflow-wrap:anywhere}
.fact-table>div{grid-template-columns:120px minmax(0,1fr)}
.reading-column img,.reading-column svg{max-width:100%}
.search-controls .segmented[aria-label="作品の種類"]{display:flex;min-width:0;max-width:100%}.search-controls .segmented[aria-label="作品の種類"] button{white-space:nowrap;flex:1 1 auto;min-width:0}
.character-portrait.has-photo{height:auto;aspect-ratio:1}.actor-profile-image{aspect-ratio:1}.actor-profile-image .photo-fallback{display:grid;place-items:center;height:100%;font-size:56px;color:#b9c0cc}.actor-photo{object-position:center}
.character-answer h2{margin:8px 0 12px}.character-answer dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:20px 0 0;background:#343740}.character-answer dl>div{min-width:0;padding:14px;background:#191b20}.character-answer dt{color:#aeb1ba;font-size:11px}.character-answer dd{margin:5px 0 0;font-weight:700}.character-answer a{color:#ff7a83}
@media(max-width:850px){.detail-body,.article-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:580px){.search-controls .segmented[aria-label="作品の種類"]{width:100%}.search-controls .segmented[aria-label="作品の種類"] button{padding:10px 5px;font-size:11px;min-height:44px}}
@media(max-width:580px){.detail-intro{width:100%}.fact-table>div{grid-template-columns:85px minmax(0,1fr)}.article-diagram,.article-image-board,.character-relationship-visual{padding:16px}.reading-column{font-size:14px;line-height:2}.cast-facts th,.cast-facts td{overflow-wrap:anywhere}.article-image-grid{gap:18px 12px}}
@media(max-width:580px){.character-answer dl{grid-template-columns:1fr}.character-answer dl>div{padding:12px}}
