/* Scoped to ranking content and its existing site shell. */
body.mtw-monthly-view .mtw-inner-layout-preserve { width: min(1240px, calc(100% - 48px)); padding: 0; margin-inline: auto; }
.mtw-monthly { --mr-ink: #382c24; --mr-red: #9e272d; --mr-paper: #fffdfa; --mr-cream: #f7f0e5; --mr-line: #dfd5c7; color: var(--mr-ink); font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-size: 16px; line-height: 1.8; width: 100%; max-width: 1240px; margin: 0 auto; padding: 36px 0 64px; overflow-wrap: anywhere; }
.mtw-monthly *, .mtw-monthly-media, .mtw-monthly-media * { box-sizing: border-box; }
.mtw-monthly :where(h1,h2,h3,p,ol,ul,figure) { margin: 0; }
.mtw-monthly :where(h1,h2,h3) { color: var(--mr-ink); line-height: 1.45; font-family: inherit; font-weight: 800; }
.mtw-monthly a { color: var(--mr-red); text-underline-offset: 4px; }
.mtw-monthly a:focus-visible { outline: 3px solid #8b5214; outline-offset: 5px; }
.mtw-monthly-breadcrumb { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #675c52; margin-bottom: 30px; }
.mtw-monthly-preview { padding: 12px 18px; background: #fff2c9; border: 1px solid #d8b658; border-radius: 8px; font-size: 14px; margin-bottom: 24px; }
.mtw-monthly-heading { padding: 12px 0 30px; max-width: 900px; }
.mtw-monthly .mtw-monthly-kicker { font-size: 12px; letter-spacing: .16em; font-weight: 700; color: var(--mr-red); margin-bottom: 8px; }
.mtw-monthly .mtw-monthly-heading h1 { font-size: clamp(29px, 3.5vw, 48px); letter-spacing: -.045em; margin-bottom: 20px; }
.mtw-monthly-heading h1 span { display: block; font-size: .55em; letter-spacing: .015em; margin-bottom: 8px; }
.mtw-monthly-heading p { max-width: 52em; }
.mtw-monthly .mtw-monthly-comparison { font-size: 14px; color: #675c52; margin-top: 6px; }
.mtw-monthly-jump { display: flex; gap: 12px; margin-bottom: 42px; }
.mtw-monthly-jump a { display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 1px solid var(--mr-line); border-bottom: 3px solid var(--mr-red); border-radius: 8px; background: var(--mr-paper); padding: 13px 22px; min-width: min(235px, 45%); font-weight: 700; text-decoration: none; }
.mtw-monthly-category { scroll-margin-top: 120px; margin-bottom: 52px; }
.mtw-monthly-section-head { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 2px solid var(--mr-ink); }
.mtw-monthly .mtw-monthly-section-head h2 { font-size: clamp(21px, 2.5vw, 30px); }
.mtw-monthly-section-head > span { flex: none; color: var(--mr-red); font-size: 14px; font-weight: 800; }
.mtw-monthly .mtw-monthly-grid { display: grid; list-style: none; gap: 20px; margin: 0 0 20px; padding: 0; }
.mtw-monthly-grid--podium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mtw-monthly-grid--rest { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mtw-monthly .mtw-monthly-card { list-style: none; margin: 0; min-width: 0; display: flex; flex-direction: column; align-items: stretch; padding: 18px; background: var(--mr-paper); border: 1px solid var(--mr-line); border-radius: 12px; box-shadow: 0 3px 10px #382c2405; }
.mtw-monthly-card--podium { border-top: 3px solid #b68a49 !important; }
.mtw-monthly-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.mtw-monthly-rank { color: var(--mr-red); font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1; }
.mtw-monthly-rank strong { font-size: 31px; margin-right: 3px; font-variant-numeric: tabular-nums; }
.mtw-monthly-card--podium .mtw-monthly-rank strong { font-size: 40px; }
.mtw-monthly-change { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; font-size: 12px; color: #62564b; }
.mtw-monthly-change strong { font-size: 19px; color: var(--mr-ink); font-weight: 700; }
.mtw-monthly .mtw-monthly-card h3 { font-size: 17px; line-height: 1.6; margin-bottom: 8px; min-height: 3.2em; }
.mtw-monthly .mtw-monthly-card--podium h3 { font-size: 20px; }
.mtw-monthly-badges { min-height: 25px; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.mtw-monthly-badges span:not(.mtw-monthly-sr) { display: inline-block; background: #f6e8bd; color: #5d3d13; border-radius: 4px; padding: 1px 8px; font-weight: 700; font-size: 11px; }
.mtw-monthly-media { margin: 0 0 16px; position: relative; width: 100%; aspect-ratio: 4 / 3; background: #f1ede6; border: 1px solid #e5ded3; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.mtw-monthly-no-image { color: #796f64; font: 600 14px/1.4 sans-serif; letter-spacing: .12em; }
.mtw-monthly-media .mtw-monthly-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; object-fit: contain; display: block; background: #fff; opacity: 0; margin: 0; border: 0; }
.mtw-monthly-media.is-loaded .mtw-monthly-photo { opacity: 1; }
.mtw-monthly-media.is-loaded .mtw-monthly-no-image { visibility: hidden; }
.mtw-monthly .mtw-monthly-spec { font-size: 13px; color: #62564b; margin-bottom: 6px; }
.mtw-monthly .mtw-monthly-feature { font-size: 14px; margin-bottom: 16px; }
.mtw-monthly .mtw-monthly-button { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #b78773; border-radius: 6px; min-height: 50px; padding: 10px 12px; background: #fffdf8; color: #853128; font-size: 12px; line-height: 1.6; font-weight: 700; text-decoration: none; }
.mtw-monthly-card--podium .mtw-monthly-button { font-size: 13px; }
.mtw-monthly-button span { flex: none; }
.mtw-monthly-button:hover, .mtw-monthly-jump a:hover { background: #f9efdd; }
.mtw-monthly-notes { background: var(--mr-cream); border: 1px solid var(--mr-line); border-radius: 12px; padding: 24px 28px; margin: 28px 0; }
.mtw-monthly .mtw-monthly-notes h2 { font-size: 19px; margin-bottom: 10px; }
.mtw-monthly-notes p + p { margin-top: 8px; }
.mtw-monthly-notes p, .mtw-monthly-notes li { font-size: 14px; }
.mtw-monthly-notes ul { padding-left: 22px; margin-top: 10px; }
.mtw-monthly .mtw-monthly-back { margin-top: 28px; }
.mtw-monthly-back a { font-weight: 700; }
.mtw-monthly-archive h2 { font-size: 26px; margin-bottom: 20px; }
.mtw-monthly-departments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 40px; }
.mtw-monthly-department { scroll-margin-top: 120px; min-width: 0; padding: 24px; border: 1px solid var(--mr-line); border-radius: 12px; background: var(--mr-paper); display: flex; flex-direction: column; align-items: stretch; }
.mtw-monthly .mtw-monthly-department h2 { font-size: 23px; margin-bottom: 12px; }
.mtw-monthly-department p { font-size: 14px; margin-bottom: 18px; }
.mtw-monthly .mtw-monthly-department .mtw-monthly-button { font-size: 14px; }
.mtw-monthly-archive ul { padding: 0; list-style: none; }
.mtw-monthly-archive li { margin: 0; }
.mtw-monthly-archive li a { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--mr-line); text-decoration: none; flex-wrap: wrap; }
.mtw-monthly-archive li a > span:last-child { margin-left: auto; }
.mtw-monthly-latest { margin: 0 0 36px; background: #f8ebc4; padding: 20px; border-radius: 8px; }
.mtw-monthly-sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 1000px) { .mtw-monthly-grid--rest { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mtw-monthly .mtw-monthly-card { padding: 15px; } }
@media (max-width: 800px) { .mtw-monthly-grid--rest { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mtw-monthly .mtw-monthly-grid { gap: 14px; } .mtw-monthly .mtw-monthly-card--podium h3 { font-size: 17px; } .mtw-monthly .mtw-monthly-card--podium .mtw-monthly-button { font-size: 12px; } }
@media (max-width: 620px) {
 body.mtw-monthly-view .mtw-inner-layout-preserve { width: calc(100% - 32px); }
 .mtw-monthly { padding-top: 22px; font-size: 15px; }
 .mtw-monthly-breadcrumb { font-size: 12px; gap: 8px; margin-bottom: 22px; }
 .mtw-monthly-heading { padding-bottom: 24px; }
 .mtw-monthly-jump { gap: 10px; margin-bottom: 30px; }
 .mtw-monthly-jump a { flex: 1; min-width: 0; padding: 12px 14px; gap: 8px; }
 .mtw-monthly-grid--podium { grid-template-columns: minmax(0, 1fr); }
 .mtw-monthly .mtw-monthly-card--podium { padding: 18px; }
 .mtw-monthly .mtw-monthly-card--podium h3 { font-size: 20px; min-height: 0; }
 .mtw-monthly-card--podium .mtw-monthly-badges:empty { display: none; }
 .mtw-monthly-card--podium .mtw-monthly-button { font-size: 14px !important; }
 .mtw-monthly .mtw-monthly-grid--rest { gap: 10px; }
 .mtw-monthly .mtw-monthly-grid--rest .mtw-monthly-card { padding: 12px; }
 .mtw-monthly .mtw-monthly-grid--rest h3 { font-size: 14px; min-height: 4.8em; }
 .mtw-monthly-grid--rest .mtw-monthly-rank strong { font-size: 27px; }
 .mtw-monthly-grid--rest .mtw-monthly-change { font-size: 11px; }
 .mtw-monthly-grid--rest .mtw-monthly-change strong { font-size: 16px; }
 .mtw-monthly .mtw-monthly-grid--rest .mtw-monthly-button { padding: 8px; min-height: 60px; font-size: 11px; gap: 4px; }
 .mtw-monthly-grid--rest .mtw-monthly-spec, .mtw-monthly-grid--rest .mtw-monthly-feature { font-size: 12px; }
 .mtw-monthly-notes { padding: 20px; }
 .mtw-monthly-archive li a { gap: 8px; }
 .mtw-monthly-archive li a strong { flex-basis: 100%; }
 .mtw-monthly-departments { grid-template-columns: minmax(0, 1fr); gap: 14px; }
 .mtw-monthly-department { padding: 20px; }
}
@media (max-width: 350px) { .mtw-monthly-grid--rest { grid-template-columns: minmax(0, 1fr); } .mtw-monthly .mtw-monthly-grid--rest h3 { min-height: 0; font-size: 17px; } .mtw-monthly-grid--rest .mtw-monthly-card { display: grid; grid-template-columns: minmax(0,1fr); } .mtw-monthly .mtw-monthly-grid--rest .mtw-monthly-button { min-height: 48px; font-size: 13px; } }
/* The shared fixed-page readability rules use keep-all; ranking names must wrap. */
body.mtw-monthly-view .mtw-monthly :is(h1, h2, h3, p, a) { overflow-wrap: anywhere !important; word-break: normal !important; white-space: normal !important; }
body.mtw-monthly-view .mtw-monthly .mtw-monthly-category-note { display: block; margin-top: 3px; font-family: inherit; font-size: 14px; line-height: 1.6; font-weight: 500; letter-spacing: 0; color: #675c52; }
@media (max-width: 620px) { body.mtw-monthly-view .mtw-monthly :is(.mtw-monthly-section-head, .mtw-monthly-department) h2 { font-size: 23px !important; } }
