/* アーカイブページのスタイル */
#content {
    padding: 24px 0;
    background: #F5F5F4;
}

.cat-content {
    background: none;
    padding: 24px 0;
    margin-bottom: 32px;
    border-bottom: none;
    border-top: none;
}

.cat-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
}

.featured-posts,
.post-loop-wrap {
    background: #fff;
    /* padding: 30px; */
    padding: 30px 30px 30px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.featured-posts {
    margin-bottom: 40px;
}

.post-loop-wrap {
    margin: 40px 0;
}

/* 見出しスタイルの統一 */
/* h1見出し */
.cat-header .post-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 12px;
    padding: 0 0 8px;
    /* border-bottom: 2px solid #e5e5e5; */
    color: #333;
    position: relative;
    line-height: 1.4;
    background: none;
    border-top: none;
}

/* h2以下の見出し */
body.archive .section-title,
.section-title,
.post-loop-wrap .section-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 25px;
    padding: 0 0 15px;
    border-bottom: 2px solid #e5e5e5;
    color: #333;
    position: relative;
    line-height: 1.4;
    background: none;
    border-top: none;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #0073e6;
}

/* 記事タイトルのスタイル統一 */
.featured-post .post-title,
.featured-post h3.post-title,
body:not(.home) .featured-post .post-content h3.post-title,
.archive .featured-post .post-content h3.post-title,
body.archive .post-loop-wrap article h3.post-title,
.post-loop-wrap .post-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: #333;
    background: none;
    border: none;
    word-break: normal;
    overflow-wrap: normal;
    transition: color 0.3s ease;
}

/* 記事リンクの共通スタイル */
.featured-post .post-link,
.post-loop-wrap .post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}

.post-loop-wrap .post-link {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* サムネイル画像の共通スタイル */
.featured-post .post-thumbnail,
.post-loop-wrap .post-thumbnail {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
    z-index: 2;
}

.post-loop-wrap .post-thumbnail {
    flex: 0 0 200px;
    aspect-ratio: 16/9;
}

.featured-post .featured-image,
.post-loop-wrap .post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.featured-post:hover .featured-image,
.post-loop-wrap article:hover .post-image {
    transform: scale(1.05);
}

/* 記事メタ情報の共通スタイル */
.featured-post .post-meta,
.post-loop-wrap .post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 4px;
    color: #999;
    font-size: 13px;
    padding: 0;
    background: none;
    border: none;
}

/* タグスタイルの統一 */
.post-loop-wrap .tag-link {
    display: inline-block;
    padding: 2px 4px;
    margin: -2px -4px;
    position: relative;
    z-index: 3;
    text-decoration: none;
}

.post-loop-wrap .tag-name {
    color: #666;
    font-size: 13px;
    transition: all 0.3s ease;
}

.post-loop-wrap .tag-link:hover .tag-name {
    color: #0073e6;
    text-decoration: underline;
}

/* 記事区切り線とホバーエフェクト */
.post-loop-wrap article {
    padding: 24px 0;
    margin: 0;
    position: relative;
    transition: background-color 0.3s ease;
}

.post-loop-wrap article:first-child {
    padding-top: 0;
}

.post-loop-wrap article:last-child {
    padding-bottom: 0;
}

.post-loop-wrap article:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #f0f0f0;
}

.post-loop-wrap article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.post-loop-wrap article:hover::before {
    background-color: #f8f9fa;
}

.cat-description {
    font-size: 16px;
    color: #666;
    margin: 12px 0 0;
    line-height: 1.6;
    text-align: center;
}

/* 注目の記事セクション */
.featured-posts-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 0;
}

.featured-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.featured-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.featured-post .post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.featured-post .post-thumbnail {
    position: relative;
    margin-bottom: 0;
    overflow: hidden;
}

.featured-post .featured-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post:hover .featured-image {
    transform: scale(1.05);
}

.featured-post .post-content {
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.featured-post .post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 4px;
}

.featured-post .post-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.featured-post .category-name {
    background: #0073e6;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.featured-post .post-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 13px;
    margin-left: auto;
}

.featured-post .post-date i {
    font-size: 14px;
}

.featured-post .post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-posts {
    text-align: center;
    padding: 40px 0;
    color: #666;
    font-size: 16px;
    grid-column: 1 / -1;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
    #content {
        padding: 16px 0;
    }

    .cat-content {
        padding: 8px 0;
        margin-bottom: 20px;
    }

    .cat-header {
        padding: 0 20px;
    }

    .cat-description {
        margin: 8px 0 0;
        font-size: 14px;
    }

    .featured-posts {
        padding: 20px;
        margin: 0 -15px 20px;
        border-radius: 0;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .featured-posts-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-post .featured-image {
        height: 200px;
    }

    .featured-post .post-content {
        padding: 15px;
        gap: 6px;
    }

    .featured-post .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 2px;
    }

    .featured-post .post-date {
        margin-left: 0;
        font-size: 12px;
    }

    .featured-post .category-name {
        padding: 3px 8px;
        font-size: 11px;
    }

    .featured-post .post-title {
        font-size: 16px;
    }

    .featured-post .post-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .featured-post .post-categories {
        top: 10px;
        left: 10px;
    }

    .featured-post .category-name {
        padding: 3px 8px;
        font-size: 11px;
    }
}

/* 最新記事一覧 */
.post-loop-wrap .post-categories {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-loop-wrap .category-name {
    background: #0073e6;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.4;
}

.post-loop-wrap .post-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    background: none;
    border: none;
}

.post-loop-wrap .post-meta-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.post-loop-wrap .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    position: relative;
    z-index: 2;
}

.post-loop-wrap .tag-name {
    color: #666;
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.post-loop-wrap .tag-name:hover {
    color: #0073e6;
}

/* 記事リンクの優先順位を下げる */
.post-loop-wrap .post-link::before {
    display: none;
}

/* ホバー状態の視覚的フィードバック */
.post-loop-wrap .tag-link:hover .tag-name {
    color: #0073e6;
    text-decoration: underline;
}

/* スマートフォン対応 */
@media screen and (max-width: 767px) {
    .post-loop-wrap {
        margin: 30px -15px;
        padding: 20px;
        border-radius: 0;
    }

    .post-loop-wrap article {
        padding: 20px 0;
    }

    .post-loop-wrap .post-link {
        flex-direction: column;
        gap: 16px;
    }

    .post-loop-wrap .post-thumbnail {
        width: 100%;
        flex: none;
        aspect-ratio: 16/9;
    }

    .post-loop-wrap .post-image {
        width: 100%;
        height: 100%;
    }

    .post-loop-wrap .post-content {
        gap: 6px;
    }

    .post-loop-wrap .post-meta-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin-bottom: 2px;
    }

    .post-loop-wrap .post-title,
    .post-loop-wrap h3.post-title {
        font-size: 16px;
        margin: 0 0 2px;
    }

    .post-loop-wrap .post-excerpt {
        font-size: 13px;
    }

    .post-loop-wrap .category-name {
        font-size: 11px;
        padding: 3px 8px;
    }

    .post-loop-wrap .tag-link {
        padding: 4px 6px;
        margin: -4px -6px;
    }
}

/* よくある質問セクション */
.faq-section {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.faq-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    position: relative;
    padding: 20px;
    background: #f8f9fa;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-question:hover {
    background: #f0f0f0;
    color: #0073e6;
}

.faq-question.active {
    background: #0073e6;
    color: #fff;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 20px;
    display: none;
    background: #fff;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.no-faqs {
    text-align: center;
    padding: 40px 0;
    color: #666;
    font-size: 16px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
    .faq-section {
        margin: 30px -15px;
        padding: 20px;
        border-radius: 0;
    }

    .faq-question {
        padding: 15px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 15px;
        font-size: 13px;
    }
}

/* サイドバー */
#sidebar {
    background: #F8F9FA;
    border: 1px solid #DDD;
    padding: 20px;
}

#sidebar .widget {
    margin-bottom: 15px;
    font-size: 14px;
}

/* Sticky Sidebar */
@media screen and (min-width: 768px) {
    #sidebar {
        position: sticky;
        top: 20px;
    }
}

/* ページネーション */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination .page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.pagination .page-numbers li {
    margin: 0;
    padding: 0;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination .page-numbers a:hover {
    background: #f5f5f5;
    border-color: #0073e6;
    color: #0073e6;
}

.pagination .page-numbers .current {
    background: #0073e6;
    border-color: #0073e6;
    color: #fff;
}

.pagination .page-numbers .dots {
    border: none;
    padding: 0 5px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
    .pagination {
        margin: 30px 0;
    }

    .pagination .page-numbers a,
    .pagination .page-numbers span {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

.featured-post .featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 214, 0, 0.9);
    color: #333;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-post .featured-badge i {
    color: #FF8C00;
    font-size: 14px;
}

@media screen and (max-width: 767px) {
    .featured-post .featured-badge {
        top: 10px;
        right: 10px;
        padding: 3px 8px;
        font-size: 11px;
    }

    .featured-post .featured-badge i {
        font-size: 12px;
    }
}

.featured-post .category-more {
    background: #f5f5f5;
    color: #666;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

@media screen and (max-width: 767px) {
    .featured-post .category-more {
        padding: 3px 8px;
        font-size: 11px;
    }
}

/* 親テーマのボーダーを詳細度を上げてオーバーライド */

body.archive article.post,
body.archive article.page,
body.archive .post-loop-wrap article.post {
    border: none;
    background: #ffff;
}

.post-loop-wrap article {
    background: #fff;
    padding: 24px 0;
    margin: 0;
    transition: background-color 0.3s ease;
    position: relative;
}

.post-loop-wrap article:first-child {
    padding-top: 0;
}

.post-loop-wrap article:last-child {
    padding-bottom: 0;
}

.post-loop-wrap article:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #f0f0f0;
}

.post-loop-wrap article:hover {
    background-color: #f8f9fa;
}

.post-loop-wrap .post-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    z-index: 2;
}

.post-loop-wrap .post-title-link:hover .post-title {
    color: #0073e6;
} 