/* REDTUNE_FILE_CHARTER_v1
 * PLANE: Frontend
 * ROLE: Shared editorial presentation
 * RESPONSIBILITY: Styles reports, features and blog indexes and long-form articles.
 * SIDE_EFFECTS: None; scoped to rt-editorial elements.
 * END_REDTUNE_FILE_CHARTER_v1 */
#main.rt-editorial { --ed-blue: #2478ad; --ed-ink: #262824; --ed-muted: #737873; --ed-line: #e2e6e5; width: min(var(--rt-page), calc(100% - var(--rt-gutter) * 2)); margin-inline: auto; padding-block: clamp(28px, 4vw, 56px) clamp(80px, 9vw, 132px); color: var(--ed-ink); }
.rt-editorial *, .rt-editorial *::before, .rt-editorial *::after { box-sizing: border-box; }
.rt-editorial { --rt-font-serif: "Redtune Noto Serif JP", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; --rt-font-serif-bold: var(--rt-font-serif); }
.rt-editorial a { text-underline-offset: 4px; }
.rt-editorial-head { padding: 20px 0 28px; border-bottom: 1px solid var(--ed-line); }
.rt-editorial-kicker { color: var(--ed-blue); font-size: 12px; letter-spacing: .12em; margin: 0 0 16px; }
.rt-editorial h1 { font-family: var(--rt-font-serif-bold, "Redtune Noto Serif JP", serif); font-size: clamp(32px, 3.6vw, 44px); font-weight: 700; line-height: 1.45; letter-spacing: -.035em; margin: 0; }
.rt-editorial-meta { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; align-items: center; color: var(--ed-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.rt-editorial-tag { display: inline-flex; align-items: center; padding: 5px 12px; border: 1px solid #d9e8f2; background: #f1f7fb; border-radius: 999px; color: #236790; font-size: 12px; white-space: nowrap; }
.rt-editorial-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; margin: 32px 0; }
.rt-editorial-bar p { margin: 0; font-size: 13px; color: var(--ed-muted); }
.rt-editorial-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.rt-editorial-filter button { border: 1px solid transparent; border-radius: 999px; padding: 9px 18px; font: inherit; font-size: 13px; color: #5f665f; background: #f4f6f5; cursor: pointer; }
.rt-editorial-filter button[aria-pressed="true"] { background: var(--ed-ink); color: #fff; }
.rt-editorial-filter button:focus-visible, .rt-editorial a:focus-visible { outline: 2px solid var(--ed-blue); outline-offset: 5px; }
.rt-editorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.rt-editorial-card { border-bottom: 1px solid var(--ed-line); padding: 28px 0 32px; min-width: 0; }
.rt-editorial-card:first-child { grid-column: 1 / -1; padding: 14px 0 40px; }
.rt-editorial-card a { display: grid; gap: 24px; grid-template-columns: 112px minmax(0, 1fr) 24px; align-items: start; color: inherit; text-decoration: none; }
.rt-editorial-card:first-child a { grid-template-columns: 240px minmax(0, 1fr) 24px; align-items: center; gap: 48px; }
.rt-editorial-cover { aspect-ratio: 1; border-radius: 16px; background: #eff5f8; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; color: #276789; }
.rt-editorial-cover small { font-size: 10px; letter-spacing: .08em; }
.rt-editorial-cover strong { font-size: clamp(32px, 5vw, 64px); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.rt-editorial-cover img { width: 100%; height: 100%; object-fit: cover; }
.rt-editorial-card h2 { margin: 12px 0; font-family: var(--rt-font-serif-bold, "Redtune Noto Serif JP", serif); font-size: 22px; line-height: 1.65; overflow-wrap: anywhere; }
.rt-editorial-card:first-child h2 { font-size: clamp(25px, 3vw, 36px); }
.rt-editorial-card time { color: var(--ed-muted); font-size: 12px; }
.rt-editorial-card p { font-size: 14px; line-height: 1.9; margin: 10px 0 0; color: #69706b; }
.rt-editorial-card a:hover h2 { color: var(--ed-blue); }
.rt-editorial-arrow { color: var(--ed-blue); font-size: 23px; transition: transform 180ms ease-out; }
.rt-editorial-card a:hover .rt-editorial-arrow { transform: translateX(4px); }
.rt-editorial-empty { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; border: 1px solid var(--ed-line); border-radius: 20px; background: linear-gradient(140deg, #f8fbfd, #fff 70%); }
.rt-editorial-empty svg { width: 52px; height: 52px; color: var(--ed-blue); margin-bottom: 22px; }
.rt-editorial-empty h2 { font-size: 20px; font-weight: 500; margin: 0 0 12px; }
.rt-editorial-empty p { color: var(--ed-muted); font-size: 14px; line-height: 1.9; max-width: 440px; margin: 0; }
.rt-editorial-cadence { display: flex; gap: 24px; flex-wrap: wrap; margin: 26px 0 0; font-size: 12px; color: var(--ed-muted); }
.rt-editorial-cadence span { display: flex; gap: 10px; align-items: center; }
.rt-editorial-cadence b { color: var(--ed-ink); font-weight: 500; }
#main.rt-editorial-article { width: min(var(--rt-page), calc(100% - var(--rt-gutter) * 2)); --rt-info-width: 800px; }
.rt-editorial-article .rt-editorial-head { max-width: 800px; margin-inline: auto; }
.rt-editorial-article h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.6; }
.rt-editorial-layout { display: grid; grid-template-columns: 200px minmax(0, 800px); gap: 64px; padding-top: 44px; }
.rt-report-article .rt-editorial-layout { display:block; max-width:800px; margin-inline:auto; }
.rt-report-article .rt-editorial-body p { line-height:1.95; }
.rt-editorial-parent .rt-channel-navigation-icon { transform:rotate(90deg); }
.rt-report-article .rt-editorial-head { --rt-share-margin-top:clamp(40px,4vw,56px); }
.rt-editorial-channel { display:flex; align-items:center; gap:12px; }
.rt-editorial-channel img { width:40px; height:40px; border-radius:50%; object-fit:cover; flex:none; }
.rt-editorial-toc { align-self: start; position: sticky; top: 108px; max-height: calc(100vh - 140px); overflow: auto; padding-right: 16px; }
.rt-editorial-toc h2 { font: 500 12px / 1.5 var(--rt-font-sans, sans-serif); letter-spacing: .12em; margin: 0 0 20px; color: var(--ed-muted); }
.rt-editorial-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: contents; }
.rt-editorial-toc li { counter-increment: contents; margin: 0 0 16px; }
.rt-editorial-toc a { display: flex; gap: 12px; color: #69706b; text-decoration: none; font-size: 12px; line-height: 1.8; }
.rt-editorial-toc a::before { content: counter(contents, decimal-leading-zero); color: #a0aaa4; font-variant-numeric: tabular-nums; }
.rt-editorial-toc a:hover { color: var(--ed-blue); }
.rt-editorial-body { min-width: 0; }
.rt-editorial-body section { margin: 0 0 64px; scroll-margin-top: 112px; }
.rt-editorial-body h2 { font-family: var(--rt-font-serif-bold, "Redtune Noto Serif JP", serif); font-size: clamp(24px, 3vw, 30px); line-height: 1.6; margin: 0 0 24px; }
.rt-editorial-body h3 { font-size: 19px; margin: 32px 0 14px; }
.rt-editorial-body p, .rt-editorial-body li { font-size: 16px; line-height: 2.1; overflow-wrap: anywhere; }
.rt-editorial-body p { margin: 0 0 24px; }
.rt-editorial-body a { color: var(--ed-blue); }
.rt-editorial-body img { max-width: 100%; height: auto; border-radius: 12px; }
.rt-editorial-note { padding: 18px 22px; border-left: 3px solid #8bbad5; background: #f4f8fa; font-size: 13px; color: #566670; line-height: 1.9; margin: 24px 0; }
.rt-editorial-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.rt-editorial-metric { border: 1px solid var(--ed-line); border-radius: 12px; padding: 20px; }
.rt-editorial-metric dt { color: var(--ed-muted); font-size: 12px; }
.rt-editorial-metric dd { font-size: clamp(20px, 3vw, 30px); margin: 10px 0 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rt-editorial-chart { border: 1px solid var(--ed-line); border-radius: 16px; padding: 24px; margin: 28px 0; overflow: hidden; }
.rt-editorial-chart figcaption { font-size: 14px; font-weight: 500; margin-bottom: 24px; }
.rt-editorial-chart svg { width: 100%; height: auto; display: block; }
.rt-editorial-chart text { font: 12px var(--rt-font-sans, sans-serif); fill: #69706b; }
.rt-editorial-chart details { margin-top: 18px; font-size: 12px; color: var(--ed-muted); }
.rt-editorial-chart summary { cursor: pointer; }
.rt-editorial-table { overflow-x: auto; margin: 24px 0; }
.rt-editorial table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.rt-editorial th, .rt-editorial td { padding: 14px 10px; border-bottom: 1px solid var(--ed-line); text-align: left; }
.rt-editorial th { color: var(--ed-muted); font-weight: 500; }
.rt-editorial-end { border-top: 1px solid var(--ed-line); padding-top: 28px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.rt-editorial[hidden], .rt-editorial [hidden] { display: none !important; }
@media (max-width: 900px) { .rt-editorial-layout { grid-template-columns: 1fr; gap: 36px; } .rt-editorial-toc { position: static; max-height: none; border-bottom: 1px solid var(--ed-line); padding: 0 0 20px; } .rt-editorial-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; } }
@media (max-width: 600px) { .rt-editorial-grid { grid-template-columns: 1fr; } .rt-editorial-card:first-child a, .rt-editorial-card a { grid-template-columns: 80px minmax(0, 1fr) 16px; gap: 16px; } .rt-editorial-card:first-child h2, .rt-editorial-card h2 { font-size: 21px; } .rt-editorial-cover { padding: 10px; border-radius: 10px; } .rt-editorial-cover strong { font-size: 29px; } .rt-editorial-cover small { font-size: 8px; } .rt-editorial-card p { grid-column: 1 / -1; font-size: 13px; } .rt-editorial-bar { align-items: start; gap: 20px; } .rt-editorial-metrics { grid-template-columns: 1fr; } .rt-editorial-metric { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; } .rt-editorial-metric dd { margin: 0; font-size: 24px; } .rt-editorial-chart { padding: 16px 12px; } .rt-editorial-body p, .rt-editorial-body li { font-size: 15px; } .rt-editorial-toc ol { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .rt-editorial-arrow { transition: none; } }
@media print { .rt-editorial-toc, .rt-editorial-end { display: none; } #main.rt-editorial-article { width: 100%; } .rt-editorial-layout { display: block; } .rt-editorial-chart { break-inside: avoid; } }

/* Reports use the shared page frame, with an overview above the article archive. */
.rt-reports-dashboard { --ed-muted:var(--rt-muted); --ed-ink:var(--rt-text); --ed-blue:var(--rt-accent,#2478ad); }
.rt-reports-dashboard .rt-editorial-head { border:0; }
.rt-report-controls { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:8px 0 28px; }
.rt-report-controls>span { font-size:12px; color:var(--ed-muted); }
.rt-reports-dashboard .rt-editorial-filter { display:inline-flex; flex-wrap:nowrap; gap:4px; padding:4px; border-radius:999px; background:#eff2f6; }
.rt-reports-dashboard .rt-editorial-filter button { min-height:40px; padding:8px 22px; border:0; color:#5d6671; background:transparent; font-weight:500; }
.rt-reports-dashboard .rt-editorial-filter button[aria-pressed="true"] { color:#202b3b; }
.rt-reports-dashboard .rt-editorial-filter:not([data-rt-segment-ready]) button[aria-pressed="true"] { background:#fff; box-shadow:0 1px 4px rgb(27 43 65 / 9%); }
.rt-report-caption { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:0 0 18px; }
.rt-reports-dashboard h2 { font:600 18px/1.5 var(--rt-font-sans); margin:0; }
.rt-report-caption p { color:var(--ed-muted); font-size:12px; margin:6px 0 0; font-variant-numeric:tabular-nums; }
.rt-report-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:0 0 20px; }
.rt-report-metric { background:#f7f9fc; border:1px solid #e7ebf1; padding:24px; border-radius:16px; min-width:0; }
.rt-report-metric dt { color:#536072; font-size:13px; }
.rt-report-metric dd { margin:18px 0 0; font:500 clamp(25px,3vw,36px)/1.3 var(--rt-font-number,var(--rt-font-sans)); color:#1e314a; overflow-wrap:anywhere; }
.rt-report-metric small { font:400 12px var(--rt-font-sans); margin-left:8px; color:#687589; }
.rt-report-panels { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.rt-report-panels>section { min-width:0; padding:26px; border:1px solid #e4e9ef; border-radius:16px; background:#fff; }
.rt-report-trend { grid-column:span 2; }
.rt-reports-dashboard .rt-editorial-arrow svg { width:20px; height:20px; display:block; }
.rt-report-no-data { min-height:200px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:8px; }
.rt-report-no-data p { font-size:14px; color:#647184; margin:0; }
.rt-report-no-data span { color:var(--ed-muted); font-size:12px; line-height:1.8; }
.rt-report-subtitle { font-size:12px; color:var(--ed-muted); margin:8px 0 0; }
.rt-report-trend .rt-editorial-chart { border:0; padding:0; margin:18px 0 0; border-radius:0; }
.rt-report-trend figcaption { font-size:12px; color:var(--ed-muted); margin-bottom:12px; }
.rt-report-bars { margin:24px 0 0; padding:0; list-style:none; }
.rt-report-bars li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; font-size:13px; margin-bottom:22px; }
.rt-report-bars li>span { min-width:0; overflow-wrap:anywhere; }
.rt-report-bars b { font-weight:500; font-variant-numeric:tabular-nums; }
.rt-report-bars small { color:var(--ed-muted); font-weight:400; }
.rt-report-bars li>div { grid-column:1/-1; height:7px; background:#f0f3f8; border-radius:4px; overflow:hidden; }
.rt-report-bars i { display:block; height:100%; background:#4386d8; border-radius:4px; }
.rt-report-archive { margin-top:52px; }
.rt-report-year { display:flex; align-items:center; gap:12px; font-size:12px; color:var(--ed-muted); white-space:nowrap; }
.rt-report-year select { border:1px solid var(--ed-line); border-radius:10px; background:#fff; padding:10px 12px; min-height:44px; font:inherit; color:var(--ed-ink); }
.rt-report-result { color:var(--ed-muted); font-size:12px; margin:0 0 12px; }
.rt-reports-dashboard .rt-editorial-grid { gap:16px; }
.rt-reports-dashboard .rt-editorial-card,.rt-reports-dashboard .rt-editorial-card:first-child { grid-column:auto; border:1px solid #e4e9ef; border-radius:16px; padding:24px; }
.rt-reports-dashboard .rt-editorial-card a,.rt-reports-dashboard .rt-editorial-card:first-child a { grid-template-columns:minmax(0,1fr) 20px; gap:16px; }
.rt-reports-dashboard .rt-editorial-card h2,.rt-reports-dashboard .rt-editorial-card:first-child h2 { font:600 20px/1.6 var(--rt-font-sans); margin:18px 0 8px; }
.rt-reports-dashboard .rt-editorial-card time { margin-left:12px; display:inline-block; }
.rt-reports-dashboard .rt-editorial-arrow { align-self:center; }
.rt-report-archive-empty { padding:38px 24px; text-align:center; background:#f8fafc; border:1px dashed #d9e1eb; border-radius:16px; }
.rt-report-archive-empty h3 { margin:0; font:500 17px/1.6 var(--rt-font-sans); }
.rt-report-source { color:var(--ed-muted); font-size:12px; line-height:1.9; }
.rt-report-source { margin:28px 0 0; }
.rt-ga-dashboard [hidden] { display:none !important; }
.rt-ga-dashboard .rt-report-panels { grid-template-columns:repeat(2,minmax(0,1fr)); }
.rt-ga-dashboard .rt-report-controls .rt-report-source { margin:0; }
.rt-ga-dashboard .rt-report-popular { grid-column:1/-1; }
.rt-report-pages { margin:20px 0 0; padding:0; list-style:none; }
.rt-report-pages li { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:12px; padding:14px 0; border-bottom:1px solid var(--ed-line); font-size:13px; }
.rt-report-pages a { overflow-wrap:anywhere; color:var(--ed-blue); }
.rt-report-pages b { font-weight:500; white-space:nowrap; font-variant-numeric:tabular-nums; }
.rt-report-pages small { font-weight:400; color:var(--ed-muted); }
.rt-ga-dashboard .rt-editorial-filter button { min-height:44px; }
.rt-ga-dashboard select:focus-visible,.rt-ga-dashboard summary:focus-visible { outline:2px solid var(--ed-blue); outline-offset:4px; }
.rt-ga-dashboard .rt-report-source summary { cursor:pointer; min-height:44px; padding-block:12px; }
@media(max-width:600px) { .rt-ga-dashboard .rt-report-panels { grid-template-columns:1fr; } .rt-ga-dashboard .rt-editorial-chart text { font-size:26px; } }
@media(max-width:900px) { .rt-report-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .rt-report-panels { grid-template-columns:1fr 1fr; } .rt-report-trend { grid-column:1/-1; } }
@media(max-width:600px) { .rt-report-controls { align-items:start; flex-direction:column; gap:10px; } .rt-report-caption { flex-wrap:wrap; } .rt-report-metrics { gap:10px; } .rt-report-metric { padding:18px 14px; } .rt-report-metric dt { font-size:12px; } .rt-report-metric dd { font-size:26px; margin-top:14px; } .rt-report-metric small { display:block; margin:5px 0 0; } .rt-report-panels { grid-template-columns:1fr; gap:14px; } .rt-report-panels>section { padding:20px; } .rt-report-no-data { min-height:160px; } .rt-report-archive { margin-top:36px; } .rt-report-year { width:100%; justify-content:space-between; } .rt-reports-dashboard .rt-editorial-card { padding:20px; } }

.rt-report-inventory { margin-top:32px; padding-top:24px; border-top:1px solid var(--ed-line); }
.rt-report-inventory dl { display:flex; flex-wrap:wrap; gap:20px 64px; margin:20px 0; }
.rt-report-inventory dt { color:var(--ed-muted); font-size:13px; }
.rt-report-inventory dd { margin:8px 0 0; font-size:28px; font-variant-numeric:tabular-nums; }
.rt-report-inventory small { font-size:12px; margin-left:8px; }
.rt-report-article .rt-editorial-channel img { width:40px; height:40px; border-radius:50%; }
@media(max-width:600px) {
  .rt-reports-dashboard .rt-report-periods { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; border-radius:24px; }
  .rt-reports-dashboard .rt-report-periods button { padding:8px 10px; }
}

.rt-editorial-body p.rt-report-source, .rt-editorial-body .rt-report-source p { font-size:12px; line-height:1.8; color:var(--ed-muted); }
