/*
Theme Name: 無料エロ漫画紹介R18
Description: エロ漫画紹介専用WordPressテーマ
Version: 1.0
Author: Custom Theme
*/

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
body {
    font-family: 'Noto Sans JP', Arial, sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background-color: #1a1a1a;
    padding: 15px 0;
    border-bottom: 2px solid #ff6b6b;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b6b;
    text-decoration: none;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #333;
    background-color: #2a2a2a;
    color: #fff;
    border-radius: 4px 0 0 4px;
    width: 250px;
}

.search-button {
    padding: 8px 15px;
    background-color: #ff6b6b;
    border: none;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* メインコンテンツエリア */
.main-content {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.content-area {
    flex: 1;
}

/* サイドバー */
.sidebar {
    width: 250px;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 18px;
    color: #ff6b6b;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 5px;
}

.genre-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.genre-button {
    display: block;
    padding: 10px 15px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    text-align: center;
}

.genre-button:hover {
    background-color: #ff6b6b;
}

/* 広告エリア */
.ad-section {
    margin-bottom: 20px;
    text-align: center;
}

.ad-section img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 作品グリッド */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.work-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    position: relative;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.work-info {
    padding: 15px;
}

.work-title {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.work-title a {
    color: #fff;
    text-decoration: none;
}

.work-title a:hover {
    color: #ff6b6b;
}

.work-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.work-tags {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.work-tag {
    font-size: 10px;
    background-color: #ff6b6b;
    color: #fff;
    padding: 2px 6px;
    border-radius: 12px;
}

.view-count {
    font-size: 11px;
    color: #aaa;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination a:hover,
.pagination .current {
    background-color: #ff6b6b;
}

/* 作品詳細ページ */
.single-work {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.single-work-title {
    font-size: 28px;
    color: #ff6b6b;
    margin-bottom: 20px;
    text-align: center;
}

.single-work-meta {
    text-align: center;
    margin-bottom: 20px;
    color: #aaa;
    font-size: 14px;
}

.single-work-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
}

.work-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.work-image-item {
    text-align: center;
}

.work-image-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.work-link {
    text-align: center;
    margin: 30px 0;
}

.work-link a {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ff6b6b;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.work-link a:hover {
    background-color: #ff5252;
}

/* 関連作品 */
.related-works {
    margin-top: 40px;
}

.related-works-title {
    font-size: 24px;
    color: #ff6b6b;
    margin-bottom: 20px;
    text-align: center;
}

.related-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .search-input {
        width: 200px;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: -1;
    }
    
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .related-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .work-item {
        margin-bottom: 15px;
    }
    
    .work-image {
        height: 150px;
    }
    
    .single-work {
        padding: 20px;
    }
    
    .single-work-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .related-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .search-input {
        width: 150px;
    }
    
    .work-image {
        height: 120px;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-item {
    animation: fadeIn 0.5s ease-out;
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff5252;
}