@charset "utf-8";
/* =============================================================
   stage5-fix.css  (本文内のレイアウト用 table の整理: ul / div へ置き換え)
   template.dwt の head で stage4-fix.css の次に読み込みます。
   旧 table.right の見た目(幅680px・白背景・セル余白)を再現しています。
   ============================================================= */

/* ---- 旧 table.right 1個ぶんのまとまり ---- */
/* 旧 table と同じく、幅は680px。中の画像が広いときだけ、それに合わせて広がる */
.rt {
    box-sizing: border-box;
    width: min-content;
    min-width: 680px;
    margin: 0 auto;
    padding: 0;
    background-color: #FFF;
}

/* ---- 画像の並び (旧: 画像だけを入れた table.right) ---- */
ul.gallery {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}
ul.gallery.cols-1 { grid-template-columns: 1fr; }
ul.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
ul.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
ul.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
ul.gallery li {
    display: grid;               /* 旧 td の vertical-align: middle と同じ縦中央 */
    align-content: center;
    margin: 0;
    padding: 0.7em;              /* 旧 td の既定余白 */
    text-align: left;
}
ul.gallery li.pad-lg { padding: 1em; }   /* 旧 td.right の余白 */
ul.gallery li.ta-c { text-align: center; }
ul.gallery li.ta-r { text-align: right; }

/* ---- 文章だけの枠 (旧: 1セルの table.right) ---- */
.right-box {
    box-sizing: border-box;
    margin: 0;
    padding: 0.7em;
    text-align: left;
}
.right-box.pad-lg { padding: 1em; }
.right-box.ta-c { text-align: center; }
.right-box.ta-r { text-align: right; }

/* ---- 空白行 (旧: &nbsp; だけの table) ---- */
.right-gap {
    box-sizing: border-box;
    height: 46.4px;
    margin: 0;
    padding: 0;
}
.right-gap.gap-35 { height: 57.4px; }
