/* 汎用 Infobox の基本スタイル */
.infobox {
clear: right;
float: right;
margin-left: 1.5em; /* コンテンツとの間隔 */
margin-bottom: 0.5em; /* 下のコンテンツとの間隔 */
width: 300px; /* デフォルトの幅。必要に応じて調整 */
border: 1px solid var(--border-color-divider); /* 共通CSS変数を使用 */
background-color: var(--background-color-neutral); /* 共通CSS変数を使用 */
color: var(--color-base); /* 共通CSS変数を使用 */
box-shadow: var(--box-shadow-color-base) 2px 2px 5px; /* 影を追加 */
}
.infobox-image {
padding: 0.5em;
text-align: center;
background-color: var(--background-color-neutral-subtle); /* 画像背景色 */
}
.infobox-image img {
max-width: 100%;
height: auto;
}
.infobox-title {
font-size: 1.2em;
font-weight: bold;
text-align: center;
padding: 0.5em 0.8em;
background-color: var(--background-color-progressive); /* アクセントカラーをタイトルに */
color: var(--color-inverted); /* 明るいテキスト色 */
}
.infobox-subtitle {
font-size: 0.9em;
text-align: center;
padding: 0.2em 0.8em 0.5em;
background-color: var(--background-color-progressive); /* アクセントカラーをタイトルに */
color: var(--color-inverted); /* 明るいテキスト色 */
border-bottom: 1px solid var(--border-color-divider);
}
.infobox-content {
padding: 0.8em;
}
/* Infobox 内のテーブルスタイル(オプション) */
.infobox .wikitable,
.infobox table {
width: 100%; /* 親のInfoboxの幅に合わせる */
border-collapse: collapse;
margin: 0;
background-color: transparent; /* 親の背景色を引き継ぐ */
color: inherit; /* 親のテキスト色を引き継ぐ */
}
.infobox .wikitable th,
.infobox .wikitable td,
.infobox table th,
.infobox table td {
padding: 0.5em 0.8em;
border: none; /* 個別のセルにボーダーは不要 */
border-bottom: 1px dashed var(--border-color-divider); /* 点線ボーダーを引く */
}
.infobox .wikitable th,
.infobox table th {
font-weight: bold;
text-align: left;
background-color: transparent;
color: var(--color-subtle); /* ラベルのテキスト色 */
}
.infobox .wikitable tr:last-child th,
.infobox .wikitable tr:last-child td,
.infobox table tr:last-child th,
.infobox table tr:last-child td {
border-bottom: none; /* 最後の行の下ボーダーを削除 */
}