/* ================================================
   Cocoon風ブログサイト - メインスタイルシート
   ================================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Bangers&family=Creepster&display=swap');

/* ================================================
   リセット・基本スタイル
   ================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.7;
    color: #e0e0e0;
    background-color: #1a1a1a;
    font-weight: 400;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    /* transition: color 0.3s ease; */
}

a:hover {
    text-decoration: none;
    opacity: 1;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ================================================
   ヘッダー
   ================================================ */

.site-branding .site-title {
    text-align: center;
}

.site-logo {
    display: flex;
    align-items: center;
    color: #e0e0e0;
    text-decoration: none;
    justify-content: center;
}

.site-logo .logo-text {
    font-family: 'M PLUS Rounded 1c', 'Fredoka', 'Bangers', 'Comic Sans MS', cursive !important;
    font-weight: 600 !important;
    font-style: normal !important;
}



.logo-text {
    font-family: 'M PLUS Rounded 1c', 'Fredoka', 'Bangers', 'Comic Sans MS', cursive !important;
    font-size: 2rem;
    font-weight: 600;
    color: #ff6b47;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    display: block;
    line-height: 1.2;
}
@media screen and (max-width: 768px) {
    .logo-text {
        font-size: 1.2rem;
    }
}

.site-description {
    color: #b0b0b0;
    font-size: 0.875rem;
    margin-left: 0;
    text-align: center;
    margin-top: 5px;
}

/* ナビゲーション */
.main-navigation {
    background: #333333;
    color: white;
}

.main-navigation .container {
    max-width: 1320px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}



.nav-link:hover,
.nav-item.active .nav-link {
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
}

/* ================================================
   メインコンテンツ
   ================================================ */

.main-content {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 1320px;
    margin: 0 auto;
}

/* article.php用のコンテンツラッパー */
.content-wrapper .main-column {
    max-width: 930px;
    margin: 0 auto;
}

.main-column {
    min-width: 0;
    max-width: 100%;
}

/* 記事セクション */
.articles-section {
    max-width: 930px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff6b47;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #d63384;
}

/* 記事グリッドレイアウト */
.articles-grid {
    display: grid;
    gap: 10px;
}

/* 3列グリッド */
.articles-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* 2列グリッド */
.articles-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* セクションヘッダー */
.section-header {
    margin-bottom: 30px;
}

/* 記事カード（グリッド用） - アスペクト比固定 */
.article-card-grid {
    background: #2d2d2d;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    border: 1px solid #404040;
    height: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.article-card-grid .article-thumbnail {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.article-card-grid .article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-grid .article-content {
    padding: 12px;
    height: 70px; /* 固定の高さを設定 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #2c2c2c;
    color: #ffffff;
}

.article-card-grid .article-title {
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-card-grid .article-title {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    transition: color 0.3s ease;
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.article-card-link:hover {
    text-decoration: none;
}

.article-card-link:hover .article-title {
    color: #ff6b47;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* カテゴリバッジの色分け */
.category-recommend { background: #ff6b6b; }
.category-news { background: #4ecdc4; }
.category-review { background: #45b7d1; }
.category-ranking { background: #f9ca24; color: #1a1a1a; }
.category-new { background: #6c5ce7; }
.category-話題 { background: #ff7675; }
.category-完結 { background: #00b894; }
.category-連載中 { background: #74b9ff; }
.category-新着 { background: #a29bfe; }
.category-ランキング { background: #fdcb6e; color: #1a1a1a; }

/* 通常の記事カード */
.article-card {
    background: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 1px solid #404040;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.article-thumbnail {
    position: relative;
    overflow: hidden;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff6b47;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-recommend { background: #ff6b6b; }
.category-news { background: #4ecdc4; }
.category-review { background: #45b7d1; }
.category-ranking { background: #f9ca24; color: #1a1a1a; }
.category-new { background: #6c5ce7; }

.article-content {
    padding: 25px;
}

.article-title {
    margin-bottom: 15px;
}

.article-title a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title a:hover {
    color: #ff6b47;
    transition: color 0.3s ease;
}

.article-excerpt {
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #999;
    border-top: 1px solid #505050;
    padding-top: 15px;
}

.article-date {
    color: #b0b0b0;
}

.article-author {
    color: #ff6b47;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid #404040;
    border-radius: 5px;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 44px;
}

.pagination a:hover {
    background: #ff6b47;
    color: white;
    border-color: #ff6b47;
    text-decoration: none;
}

.pagination-current {
    background: #ff6b47;
    color: white;
    border-color: #ff6b47;
}

.pagination-prev.disabled,
.pagination-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 高機能ページネーション */
.pagination-wrapper {

}

.pagination-info {
    text-align: center;
    margin-bottom: 20px;
}

.pagination-summary {
    color: #b0b0b0;
    font-size: 0.9rem;
    background: #404040;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}


.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid #404040;
    border-radius: 5px;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 44px;
    font-size: 0.875rem;
}

.pagination-link:hover {
    background: #ff6b47;
    color: white;
    border-color: #ff6b47;
    text-decoration: none;
    transform: translateY(-1px);
}

.pagination-current {
    background: #ff6b47;
    color: white;
    border: 1px solid #ff6b47;
    padding: 10px 15px;
    border-radius: 5px;
    min-width: 44px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.pagination-prev,
.pagination-next {
    font-weight: 500;
    padding: 10px 18px;
}

.pagination-prev i {
    margin-right: 6px;
}

.pagination-next i {
    margin-left: 6px;
}

.pagination-prev.disabled,
.pagination-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #404040;
    border-color: #505050;
    color: #777;
}

.pagination-dots {
    color: #777;
    padding: 10px 8px;
    font-size: 0.875rem;
}



/* ================================================
   サイドバー
   ================================================ */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #2d2d2d;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid #404040;
}

.widget-title {
    background: #404040;
    padding: 15px 20px;
    margin: 0;
    font-size: 1rem;
    color: #e0e0e0;
    font-weight: 600;
    border-bottom: 1px solid #505050;
    display: flex;
    align-items: center;
}



/* サイドバー - デイリーランキングウィジェット */
.ranking-widget .sidebar-ranking-list {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* サイドバー内のランキングカードは1列レイアウト */
.sidebar-ranking-list .article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.sidebar-ranking-list .article-card-link:hover {
    text-decoration: none;
}

.sidebar-ranking-list .article-card-grid {
    width: 100%;
}

.sidebar-no-ranking {
    padding: 20px;
    text-align: center;
    color: #999;
}

/* カテゴリーウィジェット */
.category-list {
    list-style: none;
    padding: 20px;
}

.category-item {
    border-bottom: 1px solid #505050;
}

.category-item:last-child {
    border-bottom: none;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #ff6b47;
    text-decoration: none;
}

.category-count {
    background: #505050;
    color: #b0b0b0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* タグクラウド */
.tag-cloud {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-block;
    padding: 5px 12px;
    background: #404040;
    border: 1px solid #505050;
    border-radius: 15px;
    color: #b0b0b0;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #ff6b47;
    color: white;
    border-color: #ff6b47;
    text-decoration: none;
}

.tag-count {
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 4px;
}

/* アーカイブウィジェット */
.archive-list {
    list-style: none;
    padding: 20px;
}

.archive-item {
    border-bottom: 1px solid #505050;
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-link:hover {
    color: #ff6b47;
    text-decoration: none;
}

.archive-count {
    color: #777;
    font-size: 0.875rem;
}

/* 広告ウィジェット */
.ad-content {
    padding: 20px;
    text-align: center;
}

.ad-placeholder {
    background: #404040;
    border: 2px dashed #666;
    padding: 40px 20px;
    border-radius: 5px;
    color: #888;
}

/* ================================================
   フッター
   ================================================ */

.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    margin-top: 60px;
    padding: 30px 0;
}

.footer-simple-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #ff6b47;
    text-decoration: none;
}

.footer-separator {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.footer-copyright {
    color: #95a5a6;
    font-size: 0.875rem;
}

.footer-copyright p {
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .footer-simple-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links {
        order: 2;
    }
    
    .footer-copyright {
        order: 1;
    }
}

/* ================================================
   スクロールトップボタン
   ================================================ */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff6b47;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(255,107,71,0.3);
}

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

.scroll-to-top:hover {
    background: #ff8c6b;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255,107,71,0.4);
}



/* ================================================
   ページコンテンツ（新規ページ用）
   ================================================ */

.page-content {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid #404040;
    margin-bottom: 30px;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #505050;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.page-description {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin: 0;
}

.page-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e0e0e0;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b47;
}

.page-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e0e0e0;
    margin: 25px 0 15px 0;
}

.page-body p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #b0b0b0;
}

.page-body ul {
    margin: 15px 0;
    padding-left: 25px;
}

.page-body li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: #b0b0b0;
}

.page-body ol {
    margin: 15px 0;
    padding-left: 25px;
}

.policy-date {
    background: #404040;
    padding: 15px;
    border-radius: 6px;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #b0b0b0;
    text-align: center;
}

/* ================================================
   お問い合わせフォーム
   ================================================ */

.contact-form {
    background: #2d2d2d;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.required {
    color: #ff6b47;
    margin-left: 3px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #404040;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #404040;
    color: #e0e0e0;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #ff6b47;
    box-shadow: 0 0 0 3px rgba(255, 107, 71, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.submit-button {
    background: #ff6b47;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.submit-button:hover {
    background: #ff8c6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success {
    background: #2d5a2d;
    color: #90ee90;
    border: 1px solid #4a7c4a;
}

.alert-error {
    background: #5a2d2d;
    color: #ffb3b3;
    border: 1px solid #7c4a4a;
}

.alert ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.alert li {
    margin-bottom: 5px;
}

.contact-info {
    background: #404040;
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
}

.contact-info h3 {
    color: #ff6b47;
    margin-bottom: 15px;
}

.contact-info ul {
    margin: 0;
    padding-left: 20px;
}

.contact-info li {
    margin-bottom: 8px;
    color: #b0b0b0;
}

/* ================================================
   RSSページ
   ================================================ */

.rss-feed-info {
    background: #2d2d2d;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.feed-url {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    align-items: stretch;
}

.feed-url-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #404040;
    border-radius: 6px;
    background: #404040;
    color: #e0e0e0;
    font-family: monospace;
    font-size: 0.9rem;
}

.copy-button {
    background: #ff6b47;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.copy-button:hover {
    background: #ff8c6b;
}

.feed-description {
    margin-top: 15px;
    font-size: 0.95rem;
}

.feed-description a {
    color: #ff6b47;
    text-decoration: none;
    font-weight: 500;
}

.feed-description a:hover {
    text-decoration: underline;
}

.rss-readers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.reader-item {
    background: #404040;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #505050;
}

.reader-item h4 {
    color: #ff6b47;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.reader-item p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.reader-item a {
    display: inline-block;
    background: #ff6b47;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.reader-item a:hover {
    background: #ff8c6b;
}

.rss-note {
    background: #5a4a2d;
    border: 1px solid #6b5a33;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
}

.rss-note p {
    margin: 0;
    color: #d4b06a;
    font-size: 0.9rem;
}

/* ================================================
   画面サイズに応じたグリッド調整
   ================================================ */

@media screen and (min-width: 1600px) {
    .articles-grid-5col {
        grid-template-columns: repeat(6, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 1399px) and (min-width: 1200px) {
    .articles-grid-5col {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 1199px) and (min-width: 992px) {
    .articles-grid-3col {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
    .articles-grid-3col {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 767px) and (min-width: 480px) {
    .articles-grid-3col {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media screen and (max-width: 479px) {
    .articles-grid-3col {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* レスポンシブ対応 - 4列グリッド */
@media screen and (max-width: 1199px) and (min-width: 992px) {
    .articles-grid-4col {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
    .articles-grid-4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media screen and (max-width: 767px) {
    .articles-grid-4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* PC表示（992px以上）でのみサイドバーを右側表示 */
@media screen and (min-width: 992px) {
    .content-wrapper {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 30px;
    }
    
    .main-column {
        grid-column: 1;
        order: 1;
    }
    
    .sidebar {
        grid-column: 2;
        order: 2;
    }
}

/* ================================================
   共通レイアウトスタイル - 最大横幅統一
   ================================================ */

/* メインコンテンツエリア */
.main-content-area {
    max-width: 930px;
    margin: 0 auto;
}

/* フルウィズコンテンツ（サイドバーなし） */
.content-wrapper-full {
    max-width: 1200px;
    margin: 0 auto;
}

.content-wrapper-full .main-content-area {
    max-width: 100%;
}

/* サイドバーカラム */
.sidebar-column {
    display: flex;
    flex-direction: column;
}

/* テンプレート専用スタイル */
.page-template .articles-section {
    max-width: 100%;
    margin: 0;
} 

/* ================================================
   検索機能スタイル
   ================================================ */

/* モバイル用検索フォーム（ナビゲーション内） */
.mobile-search-item {
    display: none; /* デスクトップでは非表示 */
    padding: 15px 0;
    border-bottom: 1px solid #404040;
}

.mobile-search-form {
    width: 100%;
}

.nav-search-form {
    width: 100%;
}

.nav-search-group {
    display: flex;
    background: #404040;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.nav-search-group:focus-within {
    border-color: #ff6b47;
}

.nav-search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #e0e0e0;
    font-size: 16px;
    outline: none;
}

.nav-search-input::placeholder {
    color: #999;
}

.nav-search-button {
    padding: 12px 16px;
    border: none;
    background: #ff6b47;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 50px;
}

.nav-search-button:hover {
    background: #ff8c6b;
}

/* サイドバー検索ウィジェット */
.search-widget .search-form-container {
    margin: 10px;
}

.sidebar-search-form {
    width: 100%;
}

.sidebar-search-form .search-input-group {
    display: flex;
    background: #404040;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.sidebar-search-form .search-input-group:focus-within {
    border-color: #ff6b47;
}

.sidebar-search-input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    background: transparent;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
}

.sidebar-search-input::placeholder {
    color: #999;
}

.sidebar-search-button {
    padding: 12px 14px;
    border: none;
    background: #ff6b47;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 45px;
}

.sidebar-search-button:hover {
    background: #ff8c6b;
}

/* 検索ページスタイル */
.search-section {
    margin-bottom: 30px;
}

.search-form-container {
    margin-top: 20px;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    background: #404040;
    border-radius: 30px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.search-input-group:focus-within {
    border-color: #ff6b47;
}

.search-input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: #e0e0e0;
    font-size: 16px;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    padding: 16px 24px;
    border: none;
    background: #ff6b47;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    min-width: 100px;
}

.search-button:hover {
    background: #ff8c6b;
}

.search-button i {
    margin-right: 8px;
}

/* 検索結果 */
.search-results-section {
    margin-bottom: 30px;
}

.search-results-summary {
    margin: 20px 0;
    padding: 15px 20px;
    background: #2d2d2d;
    border-radius: 8px;
    border-left: 4px solid #ff6b47;
}

.search-results-summary p {
    margin: 0;
    font-size: 16px;
    color: #e0e0e0;
}

.results-count {
    color: #ff6b47;
    font-weight: 600;
}

.no-results {
    color: #ff6b6b;
    font-weight: 600;
}

/* 検索結果なしメッセージ */
.no-results-message {
    text-align: center;
    padding: 60px 20px;
    background: #2d2d2d;
    border-radius: 12px;
    margin: 30px 0;
}

.no-results-icon {
    font-size: 48px;
    color: #666;
    margin-bottom: 20px;
}

.no-results-message h3 {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 24px;
}

.no-results-message p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 16px;
}

.no-results-message ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    color: #ccc;
}

.no-results-message li {
    margin-bottom: 8px;
    padding-left: 5px;
}

/* 検索のヒント */
.search-tips-section {
    margin-bottom: 30px;
}

.search-tips {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.tip-item {
    background: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ff6b47;
}

.tip-item h3 {
    color: #e0e0e0;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.tip-item h3 i {
    color: #ff6b47;
    margin-right: 10px;
}

.tip-item p {
    color: #ccc;
    margin: 0;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    
    /* モバイル用検索フォームを表示 */
    .mobile-search-item {
        display: block;
    }
    
    /* 検索フォーム */
    .search-form {
        max-width: 100%;
    }
    
    .search-input {
        padding: 14px 16px;
        font-size: 16px; /* iOS zoom 防止 */
    }
    
    .search-button {
        padding: 14px 16px;
        min-width: 80px;
        font-size: 14px;
    }
    
    .search-button i {
        margin-right: 5px;
    }
    
    /* 検索のヒント */
    .search-tips {
        grid-template-columns: 1fr;
    }
    
    .tip-item {
        padding: 15px;
    }
    
    .tip-item h3 {
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .search-input {
        padding: 12px 14px;
    }
    
    .search-button {
        padding: 12px 14px;
        min-width: 60px;
    }
    
    .search-button span {
        display: none;
    }
}

/* ================================================
   ランキング機能スタイル
   ================================================ */

/* ランキングセクション */
.ranking-section {
    margin-bottom: 30px;
}

/* ランキングカード */
.ranking-card {
    position: relative;
}

.ranking-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b47 0%, #ff8e53 100%);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8px 0 0 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ranking-card.rank-1 .ranking-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.ranking-card.rank-2 .ranking-badge {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.4);
}

.ranking-card.rank-3 .ranking-badge {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.4);
}

.rank-number {
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.ranking-card.rank-1 .rank-number,
.ranking-card.rank-2 .rank-number,
.ranking-card.rank-3 .rank-number {
    color: #1a1a1a;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.ranking-card.rank-1:hover {
    /* box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3); */
}

.ranking-card.rank-2:hover {
    /* box-shadow: 0 8px 25px rgba(192, 192, 192, 0.3); */
}

.ranking-card.rank-3:hover {
    /* box-shadow: 0 8px 25px rgba(205, 127, 50, 0.3); */
}

.article-card-link:hover .article-thumbnail img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* ランキングタブ */
.ranking-tabs {
    margin: 20px 0 30px 0;
    border-bottom: 2px solid #404040;
}

.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: -2px;
}

.tab-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #2d2d2d;
    color: #ccc;
    text-decoration: none;
    border: 2px solid #404040;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 120px;
    justify-content: center;
}

.tab-link:hover {
    background: #404040;
    color: #e0e0e0;
    text-decoration: none;
}

.tab-link.active {
    background: #ff6b47;
    color: white;
    border-color: #ff6b47;
}



/* ランキング説明 */
.ranking-description {
    background: #2d2d2d;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #ff6b47;
}

.ranking-description p {
    margin: 0;
    color: #e0e0e0;
    line-height: 1.6;
}



/* ランキングデータなし */
.no-ranking-message {
    text-align: center;
    padding: 60px 20px;
    background: #2d2d2d;
    border-radius: 12px;
    margin: 30px 0;
}

.no-ranking-icon {
    font-size: 48px;
    color: #666;
    margin-bottom: 20px;
}

.no-ranking-message h3 {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 24px;
}

.no-ranking-message p {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.no-ranking-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ff6b47;
    color: white;
}

.btn-primary:hover {
    background: #ff8c6b;
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
}

.btn i {
    margin-right: 8px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    /* タブメニュー */
    .tab-list {
        justify-content: space-between;
    }
    
    .tab-link {
        padding: 10px 12px;
        min-width: auto;
        flex: 1;
        font-size: 14px;
    }
    

    
    /* PC専用タブをモバイルで非表示 */
    .tab-link-pc-only {
        display: none;
    }
    
    /* ランキングカードモバイル対応 */
    .ranking-badge {
        width: 40px;
        height: 40px;
        padding: 6px 0 0 6px;
    }
    
    .rank-number {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .tab-link {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .tab-link span {
        display: none;
    }
    
    /* PC専用タブをスマホでも非表示 */
    .tab-link-pc-only {
        display: none;
    }
    
    /* さらに小さい画面でのランキングカード調整 */
    .ranking-badge {
        width: 35px;
        height: 35px;
        padding: 5px 0 0 5px;
    }
    
    .rank-number {
        font-size: 12px;
    }
} 

/* ================================================
   ジャンル・サークル一覧ページ
   ================================================ */

.genre-list,
.maker-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.genre-item,
.maker-item {
    flex: 0 0 calc(25% - 12px);
    margin: 0;
    padding: 0;
}

.genre-link,
.maker-link {
    display: block;
    color: #e0e0e0;
    text-decoration: none;
    padding: 8px 12px;
    transition: all 0.3s ease;
    background: rgba(45, 45, 45, 0.3);
    border: 1px solid rgba(68, 68, 68, 0.5);
}

.genre-link:hover,
.maker-link:hover {
    color: #ff6b47;
    text-decoration: none;
    background: rgba(255, 107, 71, 0.1);
    border-color: #ff6b47;
}

.no-genres,
.no-makers {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-genres p,
.no-makers p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .genre-item,
    .maker-item {
        flex: 0 0 calc(33.333% - 10px);
    }
}

@media screen and (max-width: 480px) {
    .genre-item,
    .maker-item {
        flex: 0 0 calc(50% - 8px);
    }
    
    .genre-link,
    .maker-link {
        padding: 6px 10px;
        font-size: 14px;
    }
} 



.fas.fa-search,
.fa-solid.fa-bars {
    font-size: small;
}

