.mw-parser-output {
    word-break: break-all !important;
    font-size: calc(1em * var(--mw-font-scale, 1));
}

@media screen and (max-width: 600px) {
    .mw-parser-output img {
        max-width: 100%;
        height: auto;
    }
}

/* モバイル専用 */
.mobile {
    font-size: 100% !important;
    line-height: 100%;
}

.mobile textarea {
    font-size: 100% !important;
    height: calc(1.5em * 10) !important;
    line-height: 1.5 !important;
}

/* スマホ用メディアクエリ */
@media screen and (max-width: 428px) {

    body {
        font-size: 82% !important; 
    }

    textarea {
        font-size: 8px !important;
        height: calc(1.5em * 10) !important;
        line-height: 1.5 !important;
    }

    .youtube {
        position: relative;
        width: 100%;
        padding-top: 56.25%;
    }

    .youtube iframe {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
    }

    .vector-menu-tabs ul {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .vector-menu-tabs li {
        flex: 0 0 auto;
    }

    .table-scroll{
      width:100%;
      overflow-x:auto;
      -webkit-overflow-scrolling: touch;
    }

    .px0800-table{
      width:800px; /* 表の横幅を固定 */
    }
    .px0900-table{
      width:900px; /* 表の横幅を固定 */
    }
    .px1000-table{
      width:1000px; /* 表の横幅を固定 */
    }
    .px1100-table{
      width:1100px; /* 表の横幅を固定 */
    }
    .px1200-table{
      width:1200px; /* 表の横幅を固定 */
    }
    .px1300-table{
      width:1300px; /* 表の横幅を固定 */
    }
    .px1400-table{
      width:1400px; /* 表の横幅を固定 */
    }
    .px1500-table{
      width:1500px; /* 表の横幅を固定 */
    }
    .px1600-table{
      width:1600px; /* 表の横幅を固定 */
    }
    .px1700-table{
      width:1700px; /* 表の横幅を固定 */
    }
    .px1800-table{
      width:1800px; /* 表の横幅を固定 */
    }
    .px1900-table{
      width:1900px; /* 表の横幅を固定 */
    }
    .px2000-table{
      width:2000px; /* 表の横幅を固定 */
    }
    .px2100-table{
      width:2100px; /* 表の横幅を固定 */
    }
    .px2200-table{
      width:2200px; /* 表の横幅を固定 */
    }
    .px2300-table{
      width:2300px; /* 表の横幅を固定 */
    }
}

.ad-slot-top{
  width:100%;
  min-height:270px;   /* ← ここが最重要 */
}

/* PC向けチェックボックス系調整は残す場合 */
@media screen and (min-width: 429px) {
    .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container, 
    .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-article-toolbar-container{ 
        margin-left: 11.5em;
    }
}

body.anon #mw-panel {
    display: none !important;
}

:root {
    --mw-font-scale: 1;
}

/* 記事本文に倍率適用 */
#mw-content-text {
/*    font-size: calc(1em * var(--mw-font-scale));*/
}

.mw-first-heading select {
    margin-left: 12px;
    font-size: 0.5em;
    vertical-align: middle;
    padding: 2px 6px;
}

/* common.cssによるタイトルへのバージョン出力。本番環境ではコメントアウトする定義 */
.mw-body h1::after,
.mw-body-content h1::after {
    content: "";   /* 更新ごとに v2, v3… と変更 */
    color: red;          /* 赤にすると目立ちます */
    font-size: 0.6em;    /* タイトルの文字より小さく */
    margin-left: 0.5em;  /* 少しスペースを空ける */
}