/* 記事詳細ページ専用スタイル */
/* .article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
} */

/* .article-title {
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 15px;
    line-height: 1.4;
} */

/* .article-meta {
    color: #718096;
    font-size: 0.875rem;
} */

/* .article-featured-image {
    width: 100%;
    max-width: 800px;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
} */

.article-featured-image img {
    width: 100%;
    height: auto;
}

/* 選択されたカードのスタイル */
.featured-cards {
    margin: 20px 0 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.featured-cards-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.featured-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.featured-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.2s;
}

.featured-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.featured-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 210px;
}

/* article-bodyのスタイルは削除（style.cssの.article-contentを使用） */

/* .back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
} */

/* コメント評価システムのスタイル */
.comment-vote-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.vote-button {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.vote-button:hover {
    background: #e0e0e0;
}

.vote-button.voted {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.vote-button.up.voted {
    background: #48bb78;
    border-color: #48bb78;
}

.vote-button.down.voted {
    background: #e53e3e;
    border-color: #e53e3e;
}

.vote-count {
    font-weight: bold;
    font-size: 12px;
}

.vote-gauge {
    flex: 1;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    min-width: 100px;
    max-width: 200px;
}

.vote-gauge-fill {
    display: flex;
    height: 100%;
}

.vote-gauge-up {
    background: #48bb78;
    transition: width 0.3s ease;
}

.vote-gauge-down {
    background: #e53e3e;
    transition: width 0.3s ease;
}

/* 返信機能のスタイル */
.reply-button {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    transition: all 0.2s;
}

.reply-button:hover {
    color: #5a67d8;
    background: #ebf4ff;
    border-radius: 4px;
}

.reply-count {
    font-size: 12px;
    color: #718096;
}

.replies-container {
    margin-left: 30px;
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid #e2e8f0;
}

.reply-item {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.reply-form {
    background: #f0f4f8;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
    margin-left: 30px;
}

.reply-form textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 16px;
    resize: vertical;
}

.reply-form-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.reply-form button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.reply-form .submit-reply {
    background: #667eea;
    color: white;
}

.reply-form .submit-reply:hover {
    background: #5a67d8;
}

.reply-form .cancel-reply {
    background: #e2e8f0;
    color: #4a5568;
}

.reply-form .cancel-reply:hover {
    background: #cbd5e0;
}

/* .comment-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    margin-bottom: 30px;
} */

.comment-form h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.comment-form .form-group {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2d3748;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 16px;
}

.comment-form textarea {
    min-height: 100px;
    resize: vertical;
}

.comment-form button[type="submit"] {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.comment-form button[type="submit"]:hover {
    background: #5a67d8;
}

.form-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.select-card-btn {
    background: #764ba2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.select-card-btn:hover {
    background: #6b46a0;
}

.cancel-btn {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.cancel-btn:hover {
    background: #cbd5e0;
}

.selected-card-container {
    margin-top: 15px;
}

.selected-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
}

.selected-card-number {
    font-weight: bold;
    color: #4a5568;
    font-size: 1rem;
    min-width: 20px;
    text-align: left;
}

.selected-card img {
    width: 60px;
    height: 84px;
    aspect-ratio: 5/7;
    object-fit: contain;
    border-radius: 4px;
    background: #f8f9fa;
}

.selected-card span {
    flex: 1;
    font-weight: 500;
}

.card-controls {
    display: flex;
    gap: 5px;
    align-items: center;
}

.move-up-btn,
.move-down-btn {
    background: #4a5568;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.move-up-btn:hover,
.move-down-btn:hover {
    background: #2d3748;
}

.add-card-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 5px;
}

.add-card-btn:hover {
    background: #5a67d8;
}

.remove-card-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.remove-card-btn:hover {
    background: #c53030;
}

/* タイムライン背景色 */
.timeline-bg-0 { background-color: #f0f4f8; } /* デフォルト：薄いグレー */
.timeline-bg-1 { background-color: #fee; }    /* 薄いピンク */
.timeline-bg-2 { background-color: #e6f3ff; } /* 薄い青 */
.timeline-bg-3 { background-color: #f0fff0; } /* 薄い緑 */
.timeline-bg-4 { background-color: #fffacd; } /* 薄い黄色 */
.timeline-bg-5 { background-color: #f5e6ff; } /* 薄い紫 */
.timeline-bg-6 { background-color: #ffe6e6; } /* 薄い赤 */
.timeline-bg-7 { background-color: #e6ffff; } /* 薄いシアン */
.timeline-bg-8 { background-color: #fff0e6; } /* 薄いオレンジ */
.timeline-bg-9 { background-color: #f0e6ff; } /* 薄いラベンダー */

/* タイムラインブロック全体に余白を追加 */
.timeline-block {
    padding-bottom: 30px;
}

/* 新しく追加されたカードのハイライト */
.new-card-highlight {
    animation: cardHighlight 2s ease-out;
    position: relative;
}

@keyframes cardHighlight {
    0% {
        background-color: #fef3c7;
        transform: scale(1.05);
    }
    50% {
        background-color: #fef3c7;
        transform: scale(1);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

/* タイムライン表示スタイル */
.timeline-display {
    position: relative;
    padding-left: 40px;
    margin: 20px 0;
    padding-bottom: 20px; /* 下部に余白を追加 */
}

.timeline-display::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 25px;
    bottom: 25px;
    width: 3px; /* 線を太く */
    background: #4a5568; /* 濃いグレーに変更 */
}

.timeline-display-item {
    position: relative;
    margin-bottom: 30px;
    padding: 15px; /* padding-bottomを統一 */
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.timeline-display-item:last-child {
    margin-bottom: 20px; /* 最後のアイテムにも余白を確保 */
}

.timeline-display-marker {
    position: absolute;
    left: -33px; /* 位置を調整 */
    top: 8px;
    width: 18px; /* サイズを大きく */
    height: 18px; /* サイズを大きく */
    background: #5b21b6; /* より濃い紫色 */
    border-radius: 50%;
    border: 4px solid white; /* ボーダーを太く */
    box-shadow: 0 0 0 3px #4a5568; /* 影を濃く */
    z-index: 1; /* 線の上に表示 */
}

.timeline-display-content {
    /* 背景色はtimeline-bg-*クラスで制御するため削除 */
    padding: 15px;
    padding-top: 35px; /* 日時の分、上部パディングを増やす */
    border-radius: 8px;
    /* border: 1px solid #4a5568; */ /* borderを非表示 */
}

.timeline-display-date {
    position: absolute;
    left: 30px; /* 丸印の右側に配置 */
    top: 4px; /* 丸印と同じ高さ */
    font-size: 1.125rem; /* 文字サイズをさらに大きく */
    font-weight: 600; /* 太字に */
    color: #2d3748; /* より濃い色に */
    white-space: nowrap; /* 改行しない */
}

/* モバイル対応 */
@media (max-width: 640px) {
    .timeline-display-date {
        position: static; /* 通常の配置に戻す */
        width: auto;
        text-align: left;
        margin-bottom: 8px;
        font-size: 0.9rem;
    }
}

.timeline-display-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.timeline-display-description {
    color: #4a5568;
    line-height: 1.6;
    margin-top: 8px;
}

.timeline-toggle-btn {
    margin-top: 10px;
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: underline;
    padding: 0;
}

.timeline-toggle-btn:hover {
    color: #5a67d8;
}

/* カード選択モーダル */
.card-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.card-selector-content {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.card-selector-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
}

.close-btn:hover {
    background: #f0f0f0;
    border-radius: 4px;
}

.card-selector-search {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.card-selector-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

.card-selector-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.card-selector-item {
    cursor: pointer;
    text-align: center;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
}

.card-selector-item:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-selector-item img {
    width: 100%;
    height: auto;
    margin-bottom: 8px;
    border-radius: 4px;
}

.card-selector-item span {
    display: block;
    font-size: 0.85rem;
    color: #4a5568;
}

.card-loading-indicator {
    text-align: center;
    padding: 20px;
    color: #718096;
    font-size: 0.9rem;
}

.comments-list {
    margin-top: 20px;
}

.comment-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

/* 記事本文コメントのスタイル */
.article-body-comment {
    background: #f8f9fa;
    border: 2px solid #667eea;
    margin-bottom: 30px;
}

.article-body-label {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
}

/* .comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
    color: #2d3748;
} */

/* .comment-date {
    color: #718096;
    font-size: 0.875rem;
} */

.comment-content {
    color: #4a5568;
    line-height: 1.6;
}

.comment-card {
    margin-top: 10px;
}

.comment-card img {
    max-width: 150px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* グリッド表示用スタイル */
.comment-cards {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 1-3枚の場合のスタイル */
.comment-cards .comment-card {
    margin-top: 0;
}

/* 4枚以上の場合のスタイル */
.comment-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 60px);
    gap: 8px;
    justify-content: start;
}

.comment-cards-grid .comment-card {
    margin-top: 0;
    width: 60px;
}

.comment-cards-grid .comment-card img {
    width: 60px;
    height: 84px;
    max-width: 60px;
    object-fit: cover;
    aspect-ratio: 5/7;
    cursor: pointer;
}

/* カード画像の拡大モーダル */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    display: flex;
    opacity: 1;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
    transition: color 0.2s;
}

.image-modal-close:hover {
    color: #ccc;
}

/* カード画像にホバー効果 */
.comment-card img, 
.featured-cards-grid img,
.comment-cards-grid img {
    cursor: pointer;
    transition: transform 0.2s;
}

.comment-card img:hover,
.featured-cards-grid img:hover,
.comment-cards-grid img:hover {
    transform: scale(1.05);
}

.comment-card-item:hover {
    border-color: #667eea !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* トップへ戻るボタン */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #5a67d8;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* カードのモバイル対応 */
@media (max-width: 768px) {
    .featured-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .featured-card img {
        max-height: 140px;
    }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* 他の記事リスト */
.other-articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 40px;
}

.other-article-card {
    display: flex;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    align-items: center;
    padding-left: 12px;
}

.other-article-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.other-article-image {
    width: 80px;
    height: 112px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.other-article-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.other-article-image.no-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f687b3 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.other-article-content {
    padding: 12px 12px 12px 16px;
    flex: 1;
}

.other-article-title {
    font-size: 0.9rem;
    color: #2d3748;
    margin: 0 0 5px;
    line-height: 1.4;
    /* タイトルの省略を削除 */
}

.other-article-date {
    font-size: 0.75rem;
    color: #718096;
    margin: 0;
}

.other-article-comment-count {
    font-size: 0.75rem;
    color: #667eea;
    margin: 4px 0 0;
    font-weight: 500;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .other-articles-list {
        gap: 10px;
    }
    
    .other-article-image {
        width: 60px;
        height: 84px;
    }
    
    .other-article-content {
        padding: 10px;
    }
    
    .other-article-title {
        font-size: 0.85rem;
    }
}

/* カード情報テーブル */
.card-info-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.card-info-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2d3748;
    font-weight: 600;
}

.card-image-cell {
    background: #e6f3ff !important;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.875rem;
    vertical-align: top;
    width: 220px;
}

.card-info-header {
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.card-images-in-table {
    margin-top: 12px;
}

.card-images-in-table img {
    width: 180px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.card-images-in-table img:hover {
    transform: scale(1.05);
}

.card-info-table {
    width: 100%;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-info-table th,
.card-info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

/* 最後の列の右側の線を削除 */
.card-info-table tr td:last-child,
.card-info-table tr th:last-child {
    border-right: none;
}

.card-info-table th {
    background: #f7fafc;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* 基本情報テーブルの列背景色 */
/* 1列目：カード情報 */
.card-info-table .card-image-cell,
.basic-info-table .card-image-cell,
.trainer-table .card-image-cell {
    background: #e6f3ff !important; /* 青系 */
}

/* 2列目：項目名 */
.basic-info-table th:not(.card-image-cell) {
    background: #f7fafc !important; /* 灰色系 */
}

/* 3列目：値 */
.basic-info-table td {
    background: white !important; /* 白 */
}

/* トレーナーテーブルの列背景色 */
.trainer-table th:not(.card-image-cell) {
    background: #f7fafc !important; /* 灰色系 */
}

.trainer-table td {
    background: white !important; /* 白 */
}

.card-info-table tr td:first-child {
    width: 220px;
}

.card-info-table tr th:nth-child(2) {
    width: 30%;
}

.card-info-table td {
    color: #2d3748;
    font-size: 0.9rem;
}

.card-info-table tr:last-child th,
.card-info-table tr:last-child td {
    border-bottom: none;
}

/* 特性・技テーブルの1列目のスタイル強調 */
.ability-table th:first-child,
.move-table th:first-child {
    background: #f7fafc;
    font-weight: 600;
}

/* 技テーブルのヘッダー行 */
.move-table tr:first-child th {
    background: #4a5568 !important;
    color: white !important;
    font-weight: 600;
}

/* エネルギーアイコン */
.energy-icons {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
    vertical-align: middle;
}

.energy-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
}

.energy-icon.fire { background: #F08030; }
.energy-icon.water { background: #6890F0; }
.energy-icon.grass { background: #78C850; }
.energy-icon.lightning { background: #F8D030; color: #333; }
.energy-icon.psychic { background: #F85888; }
.energy-icon.fighting { background: #C03028; }
.energy-icon.darkness { background: #705848; }
.energy-icon.metal { background: #B8B8D0; color: #333; }
.energy-icon.colorless { background: #A8A878; }

/* エネルギー画像 */
.energy-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* レアリティ画像 */
.card-info-table .rarity-icon {
    height: 24px !important;
    width: auto;
    max-height: 24px;
    max-width: 100px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
}

/* 技テーブルと特性テーブルのスタイル調整 */
.move-table th:first-child,
.ability-table th:first-child {
    width: 30%;
    white-space: nowrap;
}

.move-table td,
.ability-table td {
    width: 70%;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .card-info-section {
        padding: 15px;
        margin: 20px 0;
    }
    
    .card-image-cell {
        width: auto;
    }
    
    .card-images-in-table img {
        width: 120px;
    }
    
    .card-info-table tr td:first-child,
    .card-info-table tr th:nth-child(2) {
        width: auto;
    }
    
    .card-info-table {
        font-size: 0.85rem;
    }
    
    .card-info-table th,
    .card-info-table td {
        padding: 10px 12px;
    }
    
    .card-info-table th {
        width: 35%;
    }
    
    .energy-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .energy-icon-img {
        width: 20px;
        height: 20px;
    }
    
    /* モバイルでは基本情報テーブルの1列目を非表示 */
    .basic-info-table .card-image-cell {
        display: none;
    }
    
    /* カード画像を別途表示 */
    .card-images-mobile {
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .card-images-mobile img {
        width: 120px;
        height: auto;
        margin: 5px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* トレーナーテーブルも同様に処理 */
    .trainer-table .card-image-cell {
        display: none;
    }
    
    /* 技テーブルの幅調整 */
    .move-table th:first-child,
    .ability-table th:first-child {
        width: 35%;
    }
    
    .move-table td,
    .ability-table td {
        width: 65%;
    }
}

/* デスクトップではモバイル用画像を非表示 */
@media (min-width: 769px) {
    .card-images-mobile {
        display: none;
    }
}

/* ブロックエディタのコンテンツ表示用スタイル */
.content-block {
    margin-bottom: 20px;
}

.text-block {
    line-height: 1.8;
    color: #2d3748;
}

.table-block {
    overflow-x: auto;
    margin: 20px 0;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.article-table th,
.article-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.article-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
}

.article-table tr:last-child td {
    border-bottom: none;
}

.article-table tr:hover {
    background: #f8f9fa;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .article-table {
        font-size: 0.875rem;
    }
    
    .article-table th,
    .article-table td {
        padding: 8px 12px;
    }
}

/* 見出しブロックのスタイル */
.heading-block {
    margin: 1.5em 0 0.5em;
    line-height: 1.4;
}

h2.heading-block {
    font-size: 1.5rem;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

h3.heading-block {
    font-size: 1.25rem;
    color: #4a5568;
    padding-left: 0.5rem;
    border-left: 3px solid #667eea;
}

/* 見出しの最初の要素の場合は上マージンを削除 */
.content-block:first-child.heading-block {
    margin-top: 0;
}

/* Tier表のスタイル */
.timeline-tier-table {
    margin-top: 15px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.timeline-tier-table h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #4a5568;
    font-weight: bold;
}

.tier-display-group {
    margin-bottom: 20px;
}

.tier-display-label {
    font-weight: bold;
    padding: 6px 12px;
    background: #e2e8f0;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 10px;
    color: #2d3748;
}

.tier-display-decks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.tier-display-deck-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    gap: 8px;
    text-align: center;
}

/* .tier-deck-images {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 4px;
} */

.tier-deck-img {
    width: 90px;
    height: 126px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tier-deck-content {
    width: 100%;
}

.tier-deck-name {
    display: block;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}

.tier-deck-change {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.tier-change-new {
    background: #48bb78;
    color: white;
}

.tier-change-up {
    background: #f56565;
    color: white;
}

.tier-change-down {
    background: #4299e1;
    color: white;
}

.tier-change-stay {
    background: #718096;
    color: white;
}

/* デッキブロックのスタイル */
.deck-block {
    margin: 20px 0;
    padding: 20px;
    /* background: #f8f9fa; */
    border-radius: 8px;
    /* border: 1px solid #e2e8f0; */
}

.deck-energies {
    margin-bottom: 15px;
}

.deck-energies h5 {
    margin-bottom: 10px;
    color: #2d3748;
    font-size: 1rem;
}

.deck-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.deck-card-item {
    /* background: white; */
    /* border: 2px solid #e2e8f0; */
    border-radius: 8px;
    padding: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.deck-card-item:hover {
    /* border-color: #667eea; */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.deck-card-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 5/7;
    max-height: 180px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .deck-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .deck-card-item {
        padding: 6px;
    }
    
    .deck-card-item img {
        max-height: 120px;
    }
}