コンテンツにスキップ

「MediaWiki:Common.css」の版間の差分

編集の要約なし
編集の要約なし
タグ: 差し戻し済み
編集の要約なし
 
(同じ利用者による、間の25版が非表示)
1,282行目: 1,282行目:


/* =========================================================
/* =========================================================
   転スラWiki 年表
   転スラ年表・転スラ全史
  共通デザイン
   ========================================================= */
   ========================================================= */


.ts-chronology {
    --chron-blue: #36c;
    --chron-blue-dark: #2a4b8d;
    --chron-border: #c8ccd1;
    --chron-border-light: #eaecf0;
    --chron-text: #202122;
    --chron-subtext: #54595d;
    --chron-muted: #72777d;
    --chron-bg: #f8f9fa;
    --chron-bg-blue: #f4f7fc;


/* =========================================================
  0. 基本
  ========================================================= */
.ts-chronology,
.ts-fullchronology {
     width: 100%;
     width: 100%;
     color: var(--chron-text);
     max-width: none;
     box-sizing: border-box;
     box-sizing: border-box;
}
/* 年表内でMediaWiki側が生成する段落余白を抑える */
.ts-chronology p,
.ts-fullchronology p,
.ts-chron-entry p,
.ts-fullchron-entry p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
/* =========================================================
  1. ページ上部
  ========================================================= */
.ts-chron-header,
.ts-fullchron-header {
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
}
/* ---------- 導入文 ---------- */
.ts-chron-lead,
.ts-fullchron-lead {
    margin: 0 0 12px;
    padding: 0;
    font-size: 1rem;
    line-height: 1.85;
}
/* ---------- 注意書き ---------- */
.ts-chron-notice,
.ts-fullchron-notice {
    margin: 14px 0;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    border-left: 3px solid #36c;
    border-radius: 2px;
    font-size: .94rem;
    line-height: 1.75;
    box-sizing: border-box;
}
.ts-chron-notice p,
.ts-fullchron-notice p {
    margin: 0 !important;
}
.ts-chron-notice p + p,
.ts-fullchron-notice p + p {
    margin-top: 5px !important;
}
/* ---------- 年表内ナビ ---------- */
.ts-chron-nav,
.ts-fullchron-nav {
    margin: 14px 0 18px;
    padding: 7px 0;
    border-top: 1px solid #c8ccd1;
    border-bottom: 1px solid #c8ccd1;
    font-size: .94rem;
    line-height: 1.8;
}
.ts-chron-nav a,
.ts-fullchron-nav a {
    white-space: nowrap;
}
/* ---------- 他方の年表へのリンクなど ---------- */
.ts-chron-more,
.ts-fullchron-more {
    margin: 8px 0 0;
    padding: 0;
    font-size: .94rem;
    line-height: 1.6;
}
}




/* =========================================================
/* =========================================================
   時代セクション
   2. 時代セクション
   ========================================================= */
   ========================================================= */


.ts-chron-section {
.ts-chron-section,
     margin: 25px 0 32px;
.ts-fullchron-section {
    width: 100%;
 
     margin: 20px 0 26px !important;
    padding: 0 !important;
 
    box-sizing: border-box;
}
}


.ts-chron-section-title {
 
     margin: 0 0 14px !important;
/* 年表と全史の見出しを完全に同じデザインにする */
     padding: 4px 0 7px 10px !important;
h2.ts-chron-section-title,
     border: 0 !important;
h2.ts-fullchron-section-title,
     border-left: 4px solid var(--chron-blue) !important;
.ts-chron-section-title,
     border-bottom: 1px solid var(--chron-border) !important;
.ts-fullchron-section-title {
     color: var(--chron-text);
     margin: 0 0 8px !important;
     font-size: 1.2rem !important;
     padding: 5px 10px !important;
     font-weight: 700 !important;
 
     line-height: 1.4 !important;
     border-top: 0 !important;
     border-right: 0 !important;
     border-bottom: 1px solid #c8ccd1 !important;
    border-left: 4px solid #36c !important;
 
     background: transparent !important;
 
     font-size: 1.18rem !important;
     font-weight: 600 !important;
     line-height: 1.5 !important;
 
    box-sizing: border-box;
}
}




/* =========================================================
/* =========================================================
   年表本体
   3. タイムライン本体
   ========================================================= */
   ========================================================= */


.ts-chron-list {
.ts-chron-list,
.ts-fullchron-list {
     position: relative;
     position: relative;
     margin: 0;
 
     padding: 2px 0;
    display: block !important;
 
    width: 100% !important;
    max-width: none !important;
 
     margin: 0 !important;
     padding: 0 !important;
 
    gap: 0 !important;
 
    box-sizing: border-box;
}
}


/*
 
* 年代と出来事の間を通る縦線
/* ---------- 縦線 ---------- */
*/
 
.ts-chron-list::before {
.ts-chron-list::before,
.ts-fullchron-list::before {
     content: "";
     content: "";
     position: absolute;
     position: absolute;
     top: 8px;
 
     bottom: 8px;
     left: 145px;
     left: 130px;
     top: 0;
     bottom: 0;
 
     width: 1px;
     width: 1px;
     background: #a7b9d8;
 
     background: #a7c1ee;
 
    z-index: 0;
}
}




/* =========================================================
/* =========================================================
   1件の出来事
   4. 1件の出来事
   ========================================================= */
   ========================================================= */


.ts-chron-entry {
.ts-chron-entry,
.ts-fullchron-entry {
     position: relative;
     position: relative;
     display: grid;
 
     grid-template-columns: 112px minmax(0, 1fr);
     display: grid !important;
     column-gap: 40px;
     grid-template-columns: 130px minmax(0, 1fr) !important;
     min-width: 0;
     column-gap: 30px !important;
     padding: 11px 0 14px;
 
    width: 100% !important;
    max-width: none !important;
 
    height: auto !important;
     min-height: 0 !important;
    max-height: none !important;
 
    margin: 0 !important;
 
    /*
    * 以前よりかなりコンパクト。
    * これ以上狭くすると逆に詰まりすぎるため
    * まずは7px / 9pxを標準とする。
    */
     padding: 7px 0 9px !important;
 
    border-bottom: 1px solid #eaecf0;
 
    box-sizing: border-box;
}
}


/*
 
* タイムライン上の丸
/* 最終項目 */
*/
.ts-chron-entry:last-child,
.ts-chron-entry::before {
.ts-fullchron-entry:last-child {
    border-bottom: 0;
}
 
 
/* ---------- タイムライン上の丸 ---------- */
 
.ts-chron-entry::before,
.ts-fullchron-entry::before {
     content: "";
     content: "";
     position: absolute;
     position: absolute;
     top: 17px;
 
     left: 126px;
     left: 140px;
     width: 7px;
     top: 12px;
     height: 7px;
 
     border: 2px solid #fff;
     width: 11px;
     height: 11px;
 
    background: #fff;
 
     border: 2px solid #36c;
     border-radius: 50%;
     border-radius: 50%;
    background: var(--chron-blue);
 
     box-shadow: 0 0 0 1px var(--chron-blue);
     box-sizing: border-box;
     z-index: 1;
 
     z-index: 2;
}
}




/* =========================================================
/* =========================================================
   年代
   5. 年代
   ========================================================= */
   ========================================================= */


.ts-chron-date {
.ts-chron-date,
     padding-top: 1px;
.ts-fullchron-date {
     color: var(--chron-blue-dark);
    width: auto !important;
     font-size: .84rem;
    min-width: 0 !important;
    max-width: none !important;
 
    margin: 0 !important;
     padding: 0 !important;
 
    text-align: right;
 
     color: #2457a6;
 
     font-size: .94rem;
     font-weight: 600;
     font-weight: 600;
     line-height: 1.5;
     line-height: 1.5;
     text-align: right;
 
     white-space: nowrap;
 
    box-sizing: border-box;
}
 
 
/* =========================================================
  6. 本文エリア
  ========================================================= */
 
.ts-chron-body,
.ts-fullchron-main {
    display: block !important;
 
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
 
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
 
    margin: 0 !important;
    padding: 0 !important;
 
    box-sizing: border-box;
}
 
 
/* =========================================================
  7. 出来事名
  ========================================================= */
 
.ts-chron-event,
.ts-fullchron-event {
    width: 100%;
 
    margin: 0 0 2px !important;
    padding: 0 !important;
 
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.55;
 
    box-sizing: border-box;
}
 
 
/* =========================================================
  8. 概要
  ========================================================= */
 
.ts-chron-summary,
.ts-fullchron-summary {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
 
    margin: 0 !important;
    padding: 0 !important;
 
    font-size: .96rem;
    line-height: 1.65;
 
    box-sizing: border-box;
}
}




/* =========================================================
/* =========================================================
   出来事本文
   9. 全史のみ:人物・国家・組織・出典
   ========================================================= */
   ========================================================= */


.ts-chron-body {
.ts-fullchron-meta {
     min-width: 0;
    display: block !important;
     padding: 0 0 13px;
 
     border-bottom: 1px solid var(--chron-border-light);
    width: 100% !important;
     min-width: 0 !important;
    max-width: none !important;
 
    height: auto !important;
    min-height: 0 !important;
 
    margin: 5px 0 0 !important;
     padding: 0 !important;
 
    box-sizing: border-box;
}
 
 
/* ---------- 1行 ---------- */
 
.ts-fullchron-meta-row {
    position: static !important;
 
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
 
    float: none !important;
 
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
 
    height: auto !important;
    min-height: 0 !important;
 
    margin: 1px 0 !important;
     padding: 0 !important;
 
    gap: 8px;
 
    line-height: 1.55;
 
    box-sizing: border-box;
}
 
 
/* ---------- 人物・国家・組織・出典ラベル ---------- */
 
.ts-fullchron-meta-label {
    display: block !important;
 
    flex: 0 0 3.5em !important;
 
    width: 3.5em !important;
    min-width: 3.5em !important;
    max-width: 3.5em !important;
 
    margin: 0 !important;
    padding: 0 !important;
 
    color: #54595d;
 
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.55;
 
    white-space: nowrap !important;
 
    box-sizing: border-box;
}
}


.ts-chron-entry:last-child .ts-chron-body {
 
     border-bottom: 0;
/* ---------- 実際の値 ---------- */
 
.ts-fullchron-meta-value {
    display: block !important;
 
    flex: 1 1 auto !important;
 
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
 
    margin: 0 !important;
    padding: 0 !important;
 
    font-size: .9rem;
    line-height: 1.55;
 
    white-space: normal !important;
 
    word-break: normal !important;
    overflow-wrap: anywhere;
 
     box-sizing: border-box;
}
}


.ts-chron-event {
 
     margin: 0 0 4px;
/* =========================================================
     color: var(--chron-text);
  10. 年代・前後関係に関する注記
     font-size: .98rem;
  ========================================================= */
     font-weight: 700;
 
.ts-order-note {
    width: 100%;
 
     margin: 3px 0 0 !important;
     padding: 0 !important;
 
     color: #72777d;
 
     font-size: .78rem;
     line-height: 1.5;
     line-height: 1.5;
}
}


.ts-chron-event a {
 
     color: var(--chron-blue-dark);
/* =========================================================
  11. 詳細を見る
  ========================================================= */
 
.ts-chron-detail,
.ts-fullchron-detail {
     width: 100%;
 
    margin: 4px 0 0 !important;
    padding: 0 !important;
 
    font-size: .9rem;
    line-height: 1.5;
}
}


.ts-chron-summary {
 
     color: var(--chron-subtext);
/* =========================================================
    font-size: .88rem;
  12. リンク
    line-height: 1.7;
  ========================================================= */
 
.ts-chronology a,
.ts-fullchronology a {
     text-decoration: none;
}
}


.ts-chron-summary p {
.ts-chronology a:hover,
     margin: 0;
.ts-fullchronology a:hover {
     text-decoration: underline;
}
}




/* =========================================================
/* =========================================================
   「詳細を見る」
   13. タブレット
   ========================================================= */
   ========================================================= */


.ts-chron-detail {
@media screen and (max-width: 900px) {
     margin-top: 6px;
 
     font-size: .8rem;
    .ts-chron-list::before,
    .ts-fullchron-list::before {
        left: 125px;
    }
 
     .ts-chron-entry,
    .ts-fullchron-entry {
        grid-template-columns: 110px minmax(0, 1fr) !important;
        column-gap: 30px !important;
     }
 
    .ts-chron-entry::before,
    .ts-fullchron-entry::before {
        left: 120px;
    }
}
}


.ts-chron-detail a {
 
     color: var(--chron-blue);
/* =========================================================
  14. スマートフォン
  ========================================================= */
 
@media screen and (max-width: 720px) {
 
    /* ---------- ページ上部 ---------- */
 
    .ts-chron-header,
    .ts-fullchron-header {
        margin-bottom: 14px;
    }
 
    .ts-chron-lead,
    .ts-fullchron-lead {
        font-size: .95rem;
        line-height: 1.75;
    }
 
    .ts-chron-notice,
    .ts-fullchron-notice {
        margin: 10px 0;
        padding: 9px 11px;
 
        font-size: .88rem;
        line-height: 1.7;
    }
 
 
    /* ナビは横スクロール可能にする */
    .ts-chron-nav,
    .ts-fullchron-nav {
        margin: 10px 0 14px;
        padding: 6px 0;
 
        overflow-x: auto;
        overflow-y: hidden;
 
        white-space: nowrap;
 
        font-size: .88rem;
 
        -webkit-overflow-scrolling: touch;
    }
 
 
    /* ---------- セクション ---------- */
 
    .ts-chron-section,
    .ts-fullchron-section {
        margin: 16px 0 22px !important;
    }
 
    h2.ts-chron-section-title,
    h2.ts-fullchron-section-title,
    .ts-chron-section-title,
    .ts-fullchron-section-title {
        margin-bottom: 6px !important;
        padding: 5px 8px !important;
 
        font-size: 1.08rem !important;
    }
 
 
    /* ---------- 縦線 ---------- */
 
    .ts-chron-list::before,
    .ts-fullchron-list::before {
        left: 8px;
    }
 
 
    /* ---------- 1件 ---------- */
 
    .ts-chron-entry,
    .ts-fullchron-entry {
        display: block !important;
 
        width: 100% !important;
 
        margin: 0 !important;
 
        padding:
            7px
            0
            8px
            27px !important;
    }
 
 
    /* 丸 */
    .ts-chron-entry::before,
    .ts-fullchron-entry::before {
        left: 3px;
        top: 12px;
 
        width: 11px;
        height: 11px;
    }
 
 
    /* ---------- 年代 ---------- */
 
    .ts-chron-date,
    .ts-fullchron-date {
        margin: 0 0 2px !important;
 
        text-align: left;
 
        font-size: .84rem;
        line-height: 1.45;
    }
 
 
    /* ---------- 出来事 ---------- */
 
    .ts-chron-event,
    .ts-fullchron-event {
        margin-bottom: 2px !important;
 
        font-size: .96rem;
        line-height: 1.5;
    }
 
 
    /* ---------- 概要 ---------- */
 
    .ts-chron-summary,
    .ts-fullchron-summary {
        font-size: .9rem;
        line-height: 1.6;
    }
 
 
    /* ---------- 全史メタ情報 ---------- */
 
    .ts-fullchron-meta {
        margin-top: 4px !important;
    }
 
    .ts-fullchron-meta-row {
        gap: 5px;
 
        margin: 1px 0 !important;
 
        line-height: 1.5;
    }
 
    .ts-fullchron-meta-label {
        flex-basis: 3.2em !important;
 
        width: 3.2em !important;
        min-width: 3.2em !important;
        max-width: 3.2em !important;
 
        font-size: .82rem;
    }
 
    .ts-fullchron-meta-value {
        font-size: .82rem;
        line-height: 1.5;
    }
 
 
    /* ---------- 注記 ---------- */
 
    .ts-order-note {
        margin-top: 3px !important;
 
        font-size: .74rem;
    }
 
 
    /* ---------- 詳細 ---------- */
 
    .ts-chron-detail,
    .ts-fullchron-detail {
        margin-top: 3px !important;
 
        font-size: .84rem;
     }
}
 
/* ResourceLoader cache refresh 2026-08-28 */
 
/* 案内・お知らせボックス */
.ts-notice-box {
display: flex;
align-items: center;
gap: 12px;
margin: 12px 0 20px;
padding: 12px 16px;
background: #f5f9ff;
border: 1px solid #a2a9b1;
border-left: 5px solid #36c;
border-radius: 2px;
box-sizing: border-box;
}
 
.ts-notice-icon {
flex: 0 0 auto;
width: 28px;
height: 28px;
border: 2px solid #36c;
border-radius: 50%;
color: #36c;
font-size: 18px;
font-weight: bold;
line-height: 24px;
text-align: center;
}
 
.ts-notice-content {
flex: 1;
line-height: 1.6;
}
 
@media screen and (max-width: 600px) {
.ts-notice-box {
align-items: flex-start;
padding: 10px 12px;
}
}
/* =========================================================
  転スラWiki 外部画像スライドギャラリー 完全版
  ・画像を切り抜かない
  ・高さを統一
  ・PCでは横並び+左右ボタン
  ・スマホでは横スワイプ
  ========================================================= */
 
.mw-parser-output .ts-gallery {
position: relative !important;
display: block !important;
width: 100% !important;
max-width: 100% !important;
margin: 0.8em 0 1.5em !important;
padding: 0 !important;
box-sizing: border-box !important;
}
 
/* =========================================================
  横スクロール領域
  ========================================================= */
 
.mw-parser-output .ts-gallery .ts-gallery__track {
display: flex !important;
flex-direction: row !important;
flex-wrap: nowrap !important;
align-items: flex-start !important;
 
width: 100% !important;
max-width: 100% !important;
 
gap: 12px !important;
margin: 0 !important;
padding: 4px 44px 10px 0 !important;
 
overflow-x: auto !important;
overflow-y: hidden !important;
 
box-sizing: border-box !important;
 
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
 
scrollbar-width: thin;
scrollbar-color: #a2a9b1 transparent;
}
 
.mw-parser-output .ts-gallery .ts-gallery__track::-webkit-scrollbar {
height: 6px;
}
 
.mw-parser-output .ts-gallery .ts-gallery__track::-webkit-scrollbar-track {
background: transparent;
}
 
.mw-parser-output .ts-gallery .ts-gallery__track::-webkit-scrollbar-thumb {
background: #a2a9b1;
border-radius: 999px;
}
 
/* =========================================================
  カード
  ========================================================= */
 
.mw-parser-output .ts-gallery .ts-gallery__item {
position: relative !important;
display: block !important;
 
flex: 0 0 360px !important;
width: 360px !important;
min-width: 360px !important;
max-width: 360px !important;
 
margin: 0 !important;
padding: 0 !important;
 
border: 1px solid #a2a9b1 !important;
border-radius: 5px !important;
background: #fff !important;
overflow: hidden !important;
 
box-sizing: border-box !important;
scroll-snap-align: start;
}
 
/* =========================================================
  画像表示領域
  ========================================================= */
 
.mw-parser-output .ts-gallery .ts-gallery__imagebox {
display: flex !important;
align-items: center !important;
justify-content: center !important;
 
width: 100% !important;
height: 300px !important;
min-height: 300px !important;
max-height: 300px !important;
 
margin: 0 !important;
padding: 0 !important;
 
background: #f8f9fa !important;
overflow: hidden !important;
 
box-sizing: border-box !important;
 
/* 余計なベースライン隙間防止 */
line-height: 0 !important;
font-size: 0 !important;
}
 
/* =========================================================
  MediaWikiが挿入する可能性があるラッパーを全部無害化
  ここが超重要
  ========================================================= */
 
.mw-parser-output .ts-gallery .ts-gallery__imagebox > p,
.mw-parser-output .ts-gallery .ts-gallery__imagebox > a,
.mw-parser-output .ts-gallery .ts-gallery__imagebox > span,
.mw-parser-output .ts-gallery .ts-gallery__imagebox > div,
.mw-parser-output .ts-gallery .ts-gallery__imagebox > p > a,
.mw-parser-output .ts-gallery .ts-gallery__imagebox > div > a,
.mw-parser-output .ts-gallery .ts-gallery__imagebox > span > a,
.mw-parser-output .ts-gallery .ts-gallery__imagebox > p > span,
.mw-parser-output .ts-gallery .ts-gallery__imagebox > div > span {
display: flex !important;
align-items: center !important;
justify-content: center !important;
 
width: 100% !important;
height: 100% !important;
max-width: 100% !important;
max-height: 100% !important;
 
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
 
box-sizing: border-box !important;
line-height: 0 !important;
font-size: 0 !important;
}
 
/* pタグが入っても余白を出さない */
.mw-parser-output .ts-gallery .ts-gallery__imagebox p {
margin: 0 !important;
}
 
/* =========================================================
  画像本体
  画像全体を必ず表示(切り抜かない)
  ========================================================= */
 
.mw-parser-output .ts-gallery .ts-gallery__imagebox img {
display: block !important;
 
width: 100% !important;
height: 100% !important;
 
max-width: 100% !important;
max-height: 100% !important;
min-width: 0 !important;
min-height: 0 !important;
 
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
box-shadow: none !important;
 
object-fit: contain !important;
object-position: center center !important;
 
background: transparent !important;
box-sizing: border-box !important;
vertical-align: top !important;
}
 
/* =========================================================
  キャプション
  ========================================================= */
 
.mw-parser-output .ts-gallery .ts-gallery__caption {
display: block !important;
width: 100% !important;
 
margin: 0 !important;
padding: 10px 12px 12px !important;
 
background: #fff !important;
color: #202122 !important;
 
font-size: 12px !important;
line-height: 1.6 !important;
 
box-sizing: border-box !important;
overflow-wrap: anywhere;
}
 
.mw-parser-output .ts-gallery .ts-gallery__source {
color: #54595d !important;
font-size: 11px !important;
line-height: 1.55 !important;
}
}


/* =========================================================
/* =========================================================
   転スラ年表 - ページ上部
   左右ボタン
   ========================================================= */
   ========================================================= */


.ts-chron-header {
.mw-parser-output .ts-gallery .ts-gallery__nav {
    margin: 0 0 18px;
position: absolute !important;
top: 154px !important;
z-index: 20 !important;
 
display: flex !important;
align-items: center !important;
justify-content: center !important;
 
width: 40px !important;
height: 40px !important;
 
margin: 0 !important;
padding: 0 !important;
 
border: 1px solid #a2a9b1 !important;
border-radius: 50% !important;
 
background: rgba(255,255,255,.92) !important;
color: #202122 !important;
 
font-size: 26px !important;
line-height: 1 !important;
 
box-shadow: 0 1px 5px rgba(0,0,0,.2) !important;
cursor: pointer !important;
transform: translateY(-50%);
}
 
.mw-parser-output .ts-gallery .ts-gallery__prev {
left: 8px !important;
}
 
.mw-parser-output .ts-gallery .ts-gallery__next {
right: 8px !important;
}
 
.mw-parser-output .ts-gallery .ts-gallery__nav:disabled {
opacity: .25 !important;
}
}


.ts-chron-lead {
.mw-parser-output .ts-gallery:not(.ts-gallery--scrollable) .ts-gallery__nav {
    margin: 0 0 13px;
display: none !important;
    color: var(--chron-text);
}
    font-size: .95rem;
 
    line-height: 1.8;
/* =========================================================
  スマホ
  ========================================================= */
 
@media screen and (max-width: 720px) {
 
.mw-parser-output .ts-gallery {
margin: 0.6em 0 1.2em !important;
}
 
.mw-parser-output .ts-gallery .ts-gallery__track {
gap: 9px !important;
padding: 3px 28px 8px 0 !important;
scrollbar-width: none;
}
 
.mw-parser-output .ts-gallery .ts-gallery__track::-webkit-scrollbar {
display: none;
}
 
.mw-parser-output .ts-gallery .ts-gallery__item {
flex: 0 0 calc(100% - 28px) !important;
width: calc(100% - 28px) !important;
min-width: calc(100% - 28px) !important;
max-width: calc(100% - 28px) !important;
}
 
.mw-parser-output .ts-gallery .ts-gallery__imagebox {
height: 250px !important;
min-height: 250px !important;
max-height: 250px !important;
}
 
.mw-parser-output .ts-gallery .ts-gallery__nav {
top: 128px !important;
width: 34px !important;
height: 34px !important;
font-size: 23px !important;
}
 
.mw-parser-output .ts-gallery .ts-gallery__prev {
left: 5px !important;
}
 
.mw-parser-output .ts-gallery .ts-gallery__next {
right: 5px !important;
}
}
 
@media screen and (max-width: 380px) {
 
.mw-parser-output .ts-gallery .ts-gallery__imagebox {
height: 220px !important;
min-height: 220px !important;
max-height: 220px !important;
}
 
.mw-parser-output .ts-gallery .ts-gallery__nav {
top: 113px !important;
}
}
 
/* =========================================================
  Infobox 外部画像スライダー
  ========================================================= */
 
.ts-infobox-slider {
position: relative !important;
 
display: block !important;
 
width: 100% !important;
max-width: 100% !important;
 
margin: 0 !important;
padding: 0 !important;
 
box-sizing: border-box !important;
 
overflow: hidden !important;
}
 
 
/* =========================================================
  スライド領域
  ========================================================= */
 
.ts-infobox-slider__track {
display: flex !important;
flex-direction: row !important;
flex-wrap: nowrap !important;
 
width: 100% !important;
max-width: 100% !important;
 
margin: 0 !important;
padding: 0 !important;
 
overflow-x: auto !important;
overflow-y: hidden !important;
 
box-sizing: border-box !important;
 
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
 
-webkit-overflow-scrolling: touch;
overscroll-behavior-x: contain;
 
/* スクロールバーは非表示 */
scrollbar-width: none;
}
 
.ts-infobox-slider__track::-webkit-scrollbar {
display: none;
}
 
 
/* =========================================================
  1枚のスライド
  ========================================================= */
 
.ts-infobox-slider__slide {
position: relative !important;
 
display: block !important;
 
flex: 0 0 100% !important;
 
width: 100% !important;
min-width: 100% !important;
max-width: 100% !important;
 
margin: 0 !important;
padding: 0 !important;
 
box-sizing: border-box !important;
 
scroll-snap-align: start;
scroll-snap-stop: always;
 
background: #fff;
}
 
 
/* =========================================================
  画像表示領域
  ========================================================= */
 
.ts-infobox-slider__imagebox {
display: flex !important;
align-items: center !important;
justify-content: center !important;
 
width: 100% !important;
 
/*
* Infobox内なのでギャラリーより少しコンパクト
*/
height: 300px !important;
min-height: 300px !important;
max-height: 300px !important;
 
margin: 0 !important;
padding: 0 !important;
 
background: #f8f9fa !important;
 
overflow: hidden !important;
 
box-sizing: border-box !important;
 
line-height: 0 !important;
font-size: 0 !important;
}
 
 
/* =========================================================
  MediaWikiによるラッパー対策
  ========================================================= */
 
.ts-infobox-slider__imagebox p,
.ts-infobox-slider__imagebox a,
.ts-infobox-slider__imagebox span {
margin: 0 !important;
padding: 0 !important;
}
 
 
/* =========================================================
  画像本体
  絶対にトリミングしない
  ========================================================= */
 
.ts-infobox-slider__imagebox img {
display: block !important;
 
width: 100% !important;
height: 100% !important;
 
max-width: 100% !important;
max-height: 100% !important;
 
min-width: 0 !important;
min-height: 0 !important;
 
margin: 0 !important;
padding: 0 !important;
 
border: 0 !important;
box-shadow: none !important;
 
/*
* 元画像全体を表示する。
* cover は使用しない。
*/
object-fit: contain !important;
object-position: center center !important;
 
background: transparent !important;
 
box-sizing: border-box !important;
}
 
 
/* =========================================================
  各画像の説明
  ========================================================= */
 
.ts-infobox-slider__caption {
display: block !important;
 
width: 100% !important;
 
margin: 0 !important;
padding: 7px 8px 9px !important;
 
background: #fff;
 
color: #202122;
 
font-size: 11px !important;
line-height: 1.5 !important;
 
text-align: left;
 
box-sizing: border-box !important;
 
overflow-wrap: anywhere;
}
 
 
.ts-infobox-slider__source {
color: #54595d;
 
font-size: 10px;
line-height: 1.45;
}
}


.ts-chron-notice {
 
    padding: 11px 14px;
/* =========================================================
    border: 1px solid var(--chron-border);
  左右ボタン
    border-left: 3px solid var(--chron-blue);
  ========================================================= */
    background: #f8f9fa;
 
    color: var(--chron-subtext);
.ts-infobox-slider__nav {
    font-size: .86rem;
position: absolute !important;
    line-height: 1.7;
 
/*
* 300pxの画像枠中央
*/
top: 150px !important;
 
z-index: 20 !important;
 
display: flex !important;
align-items: center !important;
justify-content: center !important;
 
width: 32px !important;
height: 32px !important;
 
margin: 0 !important;
padding: 0 !important;
 
border: 1px solid rgba(84, 89, 93, 0.35) !important;
border-radius: 50% !important;
 
background: rgba(255, 255, 255, 0.88) !important;
color: #54595d !important;
 
font-family: Arial, sans-serif;
font-size: 22px !important;
font-weight: normal;
line-height: 1 !important;
 
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
 
cursor: pointer;
 
transform: translateY(-50%);
}
}




/* 年表内ナビ */
.ts-infobox-slider__prev {
left: 5px !important;
}
 


.ts-chron-nav {
.ts-infobox-slider__next {
    display: flex;
right: 5px !important;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 25px;
    border-top: 1px solid var(--chron-border);
    border-bottom: 1px solid var(--chron-border);
    background: #fff;
}
}


.ts-chron-nav > span {
 
    padding: 7px 12px;
.ts-infobox-slider__nav:hover {
    color: var(--chron-subtext);
background: #fff !important;
    font-size: .82rem;
color: #202122 !important;
}
}


.ts-chron-nav > a {
 
    padding: 7px 12px;
.ts-infobox-slider__nav:disabled {
    border-left: 1px solid var(--chron-border-light);
opacity: 0.25 !important;
    color: var(--chron-blue-dark);
cursor: default;
    font-size: .84rem;
}
}


.ts-chron-nav > a:hover {
 
    background: #f4f7fc;
/* 1枚しかない場合はナビ不要 */
    text-decoration: none;
.ts-infobox-slider--single .ts-infobox-slider__nav {
display: none !important;
}
}




/* 全史への誘導 */
/* =========================================================
  スマートフォン
  ========================================================= */
 
@media screen and (max-width: 720px) {
 
.ts-infobox-slider__imagebox {
height: 280px !important;
min-height: 280px !important;
max-height: 280px !important;
}
 
.ts-infobox-slider__nav {
top: 140px !important;
}


.ts-chron-more {
    margin: 30px 0 10px;
    padding: 14px 16px;
    border: 1px solid var(--chron-border);
    background: #f8f9fa;
    color: var(--chron-subtext);
    font-size: .88rem;
    line-height: 1.7;
}
}


.ts-chron-more-title {
/* メインページ4カラムを内容量に合わせる */
    margin-bottom: 4px;
.ts-grid-4 {
    color: var(--chron-text);
grid-auto-rows: auto !important;
    font-size: .96rem;
height: auto !important;
    font-weight: 700;
min-height: 0 !important;
}
}


.ts-chron-more-link {
.ts-grid-4 > .ts-panel {
    margin-top: 6px;
height: auto !important;
min-height: 0 !important;
}
}