/* --- Novel List Page Styles --- */
.novel-list-section {
    padding: 20px 0;
}

.novel-grid {
    display: grid;
    /* 1列の最小幅を280pxとし、画面幅に応じて列数を自動調整 */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px; /* カード間の余白 */
}

.novel-card {
    display: flex;
    flex-direction: column;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.novel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-accent);
}

.novel-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.novel-card-cast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.novel-card-cast-name {
    font-size: 0.85em;
    font-weight: 500;
    color: var(--text-secondary);
}

.novel-card-body {
    flex-grow: 1;
}

.novel-card-title {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--primary-accent);
    /* 2行までに制限し、超える場合は...で表示 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.novel-card-description {
    font-size: 0.8em;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    /* 3行までに制限し、超える場合は...で表示 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 読み込み中用のスケルトン表示 */
.skeleton-novel-card {
    background-color: #f0f4f8;
    border-radius: 12px;
    height: 170px; /* novel-cardの平均的な高さに合わせる */
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { background-color: #e9eef3; }
    50% { background-color: #f5f7fa; }
    100% { background-color: #e9eef3; }
}

.welcome-description {
    text-align: center;
    padding: 20px 15px;
    margin-top: 30px;
    color: #555;
    font-size: 12px;
    line-height: 1.7;
}

.welcome-description h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
/* H1見出しのロゴ画像のスタイル */
.h1-logo-img {
    height: 50px; /* 高さを調整 */
    width: auto;
    max-width: 80%; /* 画面幅に対して大きすぎないように */
}