/* MCU時系列ガイド。release-order.css と同じ設計（角丸2px・影なし・チャコール／ロゴ赤）に揃える */
.mgwc-timeline-guide{--tl-ink:#20242a;--tl-charcoal:#2b3038;--tl-red:#b51f2e;--tl-red-light:#e8404f;--tl-line:#dfe3e8;--tl-paper:#f4f5f7;--tl-muted:#6b7280;container-type:inline-size;margin:22px 0 30px;color:var(--tl-ink)}
.mgwc-timeline-guide .mgwc-timeline-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:6px;margin:0 0 30px}
.mgwc-timeline-guide .mgwc-timeline-nav a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #cfd4db;border-radius:2px;background:#fff;color:var(--tl-ink)!important;font-size:13px;font-weight:700;text-align:center;text-decoration:none!important;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.mgwc-timeline-guide .mgwc-timeline-nav a:hover,.mgwc-timeline-guide .mgwc-timeline-nav a:focus-visible{border-color:var(--tl-red);background:var(--tl-red);color:#fff!important}
.mgwc-timeline-guide .mgwc-timeline-block{margin:0 0 32px;scroll-margin-top:90px}
.mgwc-timeline-guide .mgwc-timeline-block:last-child{margin-bottom:0}
.mgwc-timeline-guide .mgwc-timeline-block>h3{margin:0 0 10px!important;font-size:22px;line-height:1.5}
.mgwc-timeline-guide .mgwc-timeline-block>p{margin:0 0 14px!important;padding:0!important;font-size:15px;line-height:1.8}
.mgwc-timeline-guide .mgwc-timeline-era{margin:0 0 26px}
.mgwc-timeline-guide .mgwc-timeline-era>header{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,36%);align-items:stretch;overflow:hidden;border-radius:2px;background:var(--tl-charcoal);color:#fff}
/* 写真と文字パネルの継ぎ目をぼかす */
.mgwc-timeline-guide .mgwc-timeline-era>header:after{content:"";position:absolute;top:0;right:0;bottom:0;width:36%;background:linear-gradient(90deg,var(--tl-charcoal),rgba(43,48,56,0) 58%);pointer-events:none}
.mgwc-timeline-guide .mgwc-timeline-era>header>div{display:flex;flex-direction:column;justify-content:center;gap:6px;padding:19px 20px}
.mgwc-timeline-guide .mgwc-timeline-era>header span{display:inline-flex;align-items:center;gap:9px;color:#fff;font-size:11px;font-weight:800;letter-spacing:.16em}
.mgwc-timeline-guide .mgwc-timeline-era>header span:before{content:"";flex:none;width:18px;height:2px;background:var(--tl-red-light)}
.mgwc-timeline-guide .mgwc-timeline-era>header h4{margin:0!important;padding:0!important;border:0!important;color:#fff;font-size:20px;font-weight:700;line-height:1.45;text-wrap:balance;word-break:auto-phrase;line-break:strict}
.mgwc-timeline-guide .mgwc-timeline-era>header img{display:block;width:100%;height:100%;min-height:160px;margin:0!important;vertical-align:top;object-fit:cover}
.mgwc-timeline-guide .mgwc-timeline-era>p{margin:12px 0 12px!important;padding:0!important;font-size:15px;line-height:1.8}
.mgwc-timeline-guide .mgwc-timeline-movies{display:grid;grid-template-columns:repeat(auto-fill,minmax(248px,1fr));gap:8px;margin:0!important;padding:0!important;list-style:none!important}
.mgwc-timeline-guide .mgwc-timeline-movies li{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:12px;min-height:52px;margin:0!important;padding:10px 14px!important;border:1px solid var(--tl-line);border-left:2px solid #cdd3da;border-radius:2px;background:#fff;list-style:none!important}
.mgwc-timeline-guide .mgwc-timeline-movies li:before{content:none!important}
.mgwc-timeline-guide .mgwc-timeline-movies b{min-width:23px;color:var(--tl-muted);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.mgwc-timeline-guide .mgwc-timeline-movies span{font-size:14px;font-weight:700;line-height:1.5}
.mgwc-timeline-guide .mgwc-timeline-pending{margin-top:16px;padding:16px 18px;border:1px solid var(--tl-line);border-left:3px solid var(--tl-red);border-radius:2px;background:var(--tl-paper)}
.mgwc-timeline-guide .mgwc-timeline-pending strong{display:block;margin-bottom:7px;font-size:12px;font-weight:800;letter-spacing:.08em}
.mgwc-timeline-guide .mgwc-timeline-pending p{margin:0!important;font-size:14px;line-height:1.85}
.mgwc-timeline-guide .mgwc-timeline-details{margin-top:16px;border:1px solid var(--tl-line);border-radius:2px;background:#fff}
.mgwc-timeline-guide .mgwc-timeline-details summary{padding:15px 17px;cursor:pointer;font-size:14px;font-weight:800}
.mgwc-timeline-guide .mgwc-timeline-details summary:focus-visible{outline:2px solid var(--tl-red);outline-offset:-2px}
.mgwc-timeline-guide .mgwc-timeline-details ol{columns:2;column-gap:26px;margin:0!important;padding:4px 17px 20px!important;list-style:none!important;counter-reset:mgtl}
.mgwc-timeline-guide .mgwc-timeline-details li{position:relative;break-inside:avoid;margin:0 0 7px!important;padding-left:32px!important;font-size:13.5px;line-height:1.65;list-style:none!important}
.mgwc-timeline-guide .mgwc-timeline-details li:before{counter-increment:mgtl;content:counter(mgtl)!important;position:absolute!important;top:.15em!important;left:0!important;width:24px!important;height:auto!important;margin:0!important;border-radius:0!important;background:none!important;color:var(--tl-muted)!important;font-size:11.5px;font-weight:700;font-variant-numeric:tabular-nums;text-align:right}
.mgwc-timeline-guide .mgwc-source{margin:12px 0 0!important;color:var(--tl-muted);font-size:12.5px;line-height:1.75}
/* 本文カラム幅で判定する。サイドバー有無に関わらず同じ折り返しになる */
@container (max-width:600px){
.mgwc-timeline-guide .mgwc-timeline-era>header{grid-template-columns:1fr}
.mgwc-timeline-guide .mgwc-timeline-era>header:after{display:none}
.mgwc-timeline-guide .mgwc-timeline-era>header>div{padding:19px 18px}
.mgwc-timeline-guide .mgwc-timeline-era>header h4{font-size:18px}
.mgwc-timeline-guide .mgwc-timeline-era>header img{min-height:0;height:auto;aspect-ratio:16/8}
.mgwc-timeline-guide .mgwc-timeline-block>h3{font-size:19px}
.mgwc-timeline-guide .mgwc-timeline-details ol{columns:1;padding-right:14px!important}
}
@container (min-width:640px){
.mgwc-timeline-guide .mgwc-timeline-era>header h4{font-size:23px}
}
/* コンテナクエリ非対応ブラウザ向けのフォールバック */
@supports not (container-type:inline-size){
@media(max-width:760px){
.mgwc-timeline-guide .mgwc-timeline-era>header{grid-template-columns:1fr}
.mgwc-timeline-guide .mgwc-timeline-era>header:after{display:none}
.mgwc-timeline-guide .mgwc-timeline-era>header>div{padding:19px 18px}
.mgwc-timeline-guide .mgwc-timeline-era>header h4{font-size:18px}
.mgwc-timeline-guide .mgwc-timeline-era>header img{min-height:0;height:auto;aspect-ratio:16/8}
.mgwc-timeline-guide .mgwc-timeline-details ol{columns:1}
}
}
