/* Common section hierarchy: keep the readable sizes, use the existing local Mincho. */
.serif-layout .home-heading.section-heading{
 font-family:'Gashuo Review Serif','Yu Mincho','Hiragino Mincho ProN',serif;
 font-weight:500;color:#363c37;letter-spacing:.035em;line-height:1.65;
 font-synthesis:none;
}
.serif-layout .home-class h3,.serif-layout .route-grid h3{
 font-family:'Gashuo Review Serif','Yu Mincho','Hiragino Mincho ProN',serif;
 font-weight:500;color:#363c37;font-synthesis:none;
}
.serif-layout .detail-hero h1{
 font-family:'Gashuo Review Serif','Yu Mincho','Hiragino Mincho ProN',serif;
 font-weight:500;color:#363c37;font-synthesis:none;
}

/* A centered text group, with short sentences on their own lines, left aligned. */
.serif-layout .home-intro-text{width:min(100%,24em);max-width:none;margin-inline:auto;text-align:left}
.serif-layout .home-intro-text .intro-moments{width:max-content;max-width:100%;margin:0 auto 19px;line-height:2.05;text-align:left}
.serif-layout .intro-moments span{display:block;white-space:nowrap}
.serif-layout .home-intro-text .intro-thought{width:100%;margin:0;line-height:1.95;text-align:left;text-wrap:balance}
.serif-layout .intro-phrase,.serif-layout .reading-word{white-space:nowrap}
.serif-layout .home-room-copy p{line-height:1.95;text-wrap:pretty;line-break:strict;word-break:normal}
.serif-layout .home-class>p,.serif-layout .home-class-notes p,
.serif-layout .welcome-copy p,.serif-layout .route-grid p,
.serif-layout .welcome-review-card blockquote p{line-break:strict;word-break:normal;overflow-wrap:normal}
.serif-layout .welcome-intro{width:fit-content;max-width:32em;margin-inline:auto;text-align:left}
.serif-layout .welcome-learning{max-width:34em;margin-inline:auto;text-align:left}

/* PC is composed separately: contain the room image, reduce oversized portraits,
   and align the two class titles. Image sources, focus, carousel and gallery stay. */
@media(min-width:901px){
 .serif-layout .home-room-layout{max-width:1000px;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);column-gap:56px;align-items:center}
 .serif-layout .home-room figure img{width:auto;max-width:100%;height:auto;max-height:420px;object-fit:contain;margin-inline:auto}
 .serif-layout #practice h3{margin-top:0}
 .serif-layout .welcome-opening>.home-container{max-width:928px}
 .serif-layout .welcome-story{max-width:1040px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px}
 .serif-layout .welcome-story figure{width:100%;max-width:360px;justify-self:center}
 .serif-layout .welcome-moments>.home-container{max-width:1000px}
 .serif-layout .ginza-route img{height:auto;max-height:320px;object-fit:contain}
}
@media(max-width:700px){
 .serif-layout .home-heading.section-heading{letter-spacing:.025em}
 .serif-layout .home-intro-text{width:min(100%,21em)}
 .serif-layout .home-intro-text .intro-moments{margin-bottom:19px}
 .serif-layout .home-intro-text .intro-thought{max-width:100%;text-wrap:balance}
 .serif-layout .home-room-copy p{text-wrap:pretty}
 .serif-layout .welcome-intro,.serif-layout .welcome-learning{width:100%;max-width:100%;text-align:left}
}
