.layout {
    display: flex;
    min-height: 100vh;
}

/* 全体レイアウト */
.main {
    flex: 1;
    color: white;
    padding: 30px;
    background: #05040A;
    min-width: 0;
}

/* ヘッダー（バージョン切り替え） */
.leyline-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
}

.version-display {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 40px;
    border: 1px solid #25242A;
    border-radius: 4px;
}

#version-name { font-size: 24px; font-weight: bold; }
#version-time { font-size: 14px; opacity: 0.7; }

#version-prev, #version-next {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
}

/* 難易度ボタン */
.difficulty-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.diff-btn {
    padding: 10px 25px;
    background: #000000;
    border: 1px solid #333;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    border-radius: 8px;
}

.diff-btn.active {
    background: #5752EC;
    border-color: #5752EC;
}

/* 3分割グリッド */
.leyline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%; /* 横いっぱいに広げる */
}

.monster-column {
    background: #0D0B12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.monster-top-img img {
    width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.monster-main-info {
    padding: 20px;
}

.monster-title-name {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    text-align: center;
}

.monster-hp-val {
    font-size: 1.1em;
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.attr-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}

/* 優勢・劣勢コンテナ */
.attr-container {
    margin-bottom: 20px;
    text-align: center; /* 中央寄せにしたい場合 */
}

.attr-box {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* チェックマークやバツ印のフォント微調整 */
.attr-box span {
    font-size: 1.2em;
}

.adv { color: #ffffff; }
.disadv { color: #ffffff; }

/* バフセクション */
.monster-buff-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.buff-entry {
    margin-bottom: 15px;
}

.buff-title {
    color: #a091ff;
    margin-bottom: 4px;
}

.buff-body {
    font-size: 0.9em;
    line-height: 1.6;
    color: #ccc;
    padding-left: 1.1em; /* 1文字分右にずらす */
}

/* 一番下の説明文 */
.monster-lore-desc {
    margin-top: 15px;
    font-size: 0.85em;
    color: #ccc;
    line-height: 1.5;
    border-top: 1px solid #333;
    padding-top: 15px;
}

/* データ内のcolorタグ対応 */
color { color: inherit !important; }