/*
Blog Page Styles for Beauty Clinic Theme
美容クリニックテーマ - ブログページ専用スタイル（水色テーマ #49bfd8）

【修正内容】
- 関連記事セクション追加
- デスクトップ時は2カラムレイアウト
- スマホ時は記事下に配置
*/

/* ===================================================
   ブログアーカイブページ
   =================================================== */

   .blog-page {
    padding-bottom: 0;
}

/* カテゴリーフィルター */
.blog-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 40px;
}

.filter-button {
    padding: 8px 16px;
    background: #FFFFFF;
    border: 1px solid #868686;
    border-radius: 25px;
    font-family: 'Shippori Mincho', serif;
    font-size: 13px;
    font-weight: 500;
    color: #868686;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.05em;
}

.filter-button:hover {
    background: #FCFCFC;
    border-color: #49bfd8; /* 水色に変更 */
    color: #49bfd8; /* 水色に変更 */
}

.filter-button.active {
    background: #49bfd8; /* 水色に変更 */
    border-color: #49bfd8; /* 水色に変更 */
    color: #FFFFFF;
    font-weight: 700;
}

/* ブログ記事グリッド */
.blog-archive-section {
    padding: 40px 0 60px 0;
    background: #FFFFFF;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

/* ブログ記事カード - 横長デザイン */
.blog-post-card {
    background: #FFFFFF;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 30px;
}

.blog-post-card:hover {
    transform: none;
    box-shadow: none;
}

.blog-post-link {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

/* サムネイル */
.blog-post-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: #E5E5E5;
    border-radius: 0;
}

.blog-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* カテゴリーバッジ - テーマカラー統一 */
.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Shippori Mincho', serif;
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    background: #49bfd8; /* 水色に変更 */
    z-index: 2;
    letter-spacing: 0.05em;
}

/* すべてのカテゴリーバッジをテーマカラーに統一 */
.blog-category-badge.category-news,
.blog-category-badge.category-director,
.blog-category-badge.category-staff,
.blog-category-badge.category-campaign {
    background: #49bfd8; /* 水色に変更 */
}

/* 記事コンテンツ */
.blog-post-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-post-date {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: #49bfd8; /* 水色に変更 */
    margin-bottom: 0;
    letter-spacing: 0.05em;
}

.blog-post-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.blog-post-excerpt {
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    font-weight: 400;
    color: #868686;
    line-height: 1.7;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

/* VIEW MOREボタン */
.blog-view-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    letter-spacing: 0.1em;
    margin-top: auto;
    transition: all 0.3s ease;
}

.blog-view-more::after {
    content: '→';
    font-size: 16px;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-view-more {
    color: #49bfd8; /* 水色に変更 */
}

.blog-post-card:hover .blog-view-more::after {
    transform: translateX(5px);
}

/* 記事なしメッセージ */
.blog-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.blog-no-posts p {
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    color: #868686;
    letter-spacing: 0.05em;
}

/* ローディング表示 */
.blog-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.blog-loading p {
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    color: #49bfd8; /* 水色に変更 */
    letter-spacing: 0.05em;
}

/* フィルターボタンのカーソル */
.filter-button {
    cursor: pointer;
}

/* ページネーション */
.blog-pagination {
    padding: 0 7%;
    margin-top: 40px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.blog-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-pagination li {
    margin: 0;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-block;
    padding: 10px 15px;
    min-width: 44px;
    text-align: center;
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    color: #868686;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-pagination a:hover {
    background: #FCFCFC;
    border-color: #49bfd8; /* 水色に変更 */
    color: #49bfd8; /* 水色に変更 */
}

.blog-pagination .current {
    background: #49bfd8; /* 水色に変更 */
    border-color: #49bfd8; /* 水色に変更 */
    color: #FFFFFF;
    font-weight: 700;
}

/* ===================================================
   ブログ詳細ページ
   =================================================== */

.blog-single-page {
    padding-bottom: 0;
}

.blog-single-content {
    padding: 40px 0 60px 0;
    background: #FFFFFF;
}

/* 【追加】2カラムレイアウト */
.blog-single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* 記事 */
.blog-article {
    padding: 0;
}

/* 記事ヘッダー */
.blog-article-header {
    margin-bottom: 30px;
}

.blog-article-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    line-height: 1.6;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
}

/* 詳細ページのカテゴリーバッジ - position: staticに上書き */
.blog-article-meta .blog-category-badge {
    position: static;
    top: auto;
    left: auto;
}

.blog-article-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: #868686;
    letter-spacing: 0.05em;
}

/* アイキャッチ画像 */
.blog-article-thumbnail {
    margin-bottom: 40px;
    border-radius: 0;
    overflow: hidden;
}

.blog-article-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* 本文 */
.blog-article-body {
    font-family: 'Shippori Mincho', serif;
    font-size: 12px;
    font-weight: 400;
    color: #333333;
    line-height: 1.9;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
}

.blog-article-body p {
    margin-bottom: 1.5em;
}

.blog-article-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    margin: 2em 0 1em 0;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #49bfd8; /* 水色に変更 */
    letter-spacing: 0.05em;
}

.blog-article-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin: 1.8em 0 1em 0;
    letter-spacing: 0.05em;
}

.blog-article-body ul,
.blog-article-body ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.blog-article-body li {
    margin-bottom: 0.5em;
}

.blog-article-body a {
    color: #49bfd8; /* 水色に変更 */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-article-body a:hover {
    color: #3aa9c0; /* 水色の濃い色に変更 */
}

.blog-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin: 2em 0;
}

.blog-article-body blockquote {
    margin: 2em 0;
    padding: 1.5em;
    background: #FCFCFC;
    border-left: 4px solid #49bfd8; /* 水色に変更 */
    font-style: italic;
    color: #666666;
}

/* 記事フッター */
.blog-article-footer {
    padding-top: 40px;
    border-top: 1px solid #E5E5E5;
}

.blog-back-link {
    text-align: center;
}

.back-button {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    font-weight: 500;
    color: #868686;
    background: #FFFFFF;
    border: 1px solid #868686;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.back-button:hover {
    background: #FCFCFC;
    border-color: #49bfd8; /* 水色に変更 */
    color: #49bfd8; /* 水色に変更 */
}

/* ===================================================
   【追加】関連記事サイドバー
   =================================================== */

.blog-sidebar {
    padding: 0 7%;
    margin-top: 40px;
}

.related-posts-section {
    background: #FCFCFC;
    padding: 30px 20px;
    border-radius: 8px;
}

.sidebar-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
    padding-bottom: 15px;
    border-bottom: 2px solid #49bfd8; /* 水色に変更 */
}

.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 関連記事アイテム */
.related-post-item {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-post-item:hover {
    box-shadow: 0 4px 12px rgba(73, 191, 216, 0.2); /* 水色の影に変更 */
    transform: translateY(-2px);
}

.related-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 関連記事サムネイル */
.related-post-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #E5E5E5;
}

.related-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-thumbnail img {
    transform: scale(1.05);
}

/* 関連記事カテゴリーバッジ */
.related-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 15px;
    font-family: 'Shippori Mincho', serif;
    font-size: 11px;
    font-weight: 700;
    color: #FFFFFF;
    background: #49bfd8; /* 水色に変更 */
    z-index: 2;
    letter-spacing: 0.05em;
}

.related-category-badge.category-news,
.related-category-badge.category-director,
.related-category-badge.category-staff {
    background: #49bfd8; /* 水色に変更 */
}

/* 関連記事コンテンツ */
.related-post-content {
    padding: 15px;
}

.related-post-date {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 12px;
    color: #49bfd8; /* 水色に変更 */
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.related-post-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    font-weight: 700;
    color: #333333;
    line-height: 1.5;
    letter-spacing: 0.05em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-related-posts {
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    color: #868686;
    text-align: center;
    padding: 20px;
    letter-spacing: 0.05em;
}

/* 前後の記事ナビゲーション */
.blog-post-navigation {
    max-width: 100%;
    margin: 40px auto 0 auto;
    padding: 0 7%;
}

.post-nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.post-nav-item a {
    display: block;
    padding: 20px;
    background: #FCFCFC;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-nav-item a:hover {
    background: #FFFFFF;
    border-color: #49bfd8; /* 水色に変更 */
    box-shadow: 0 4px 12px rgba(73, 191, 216, 0.15); /* 水色の影に変更 */
}

.nav-label {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 12px;
    color: #49bfd8; /* 水色に変更 */
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.nav-title {
    display: block;
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    line-height: 1.6;
    letter-spacing: 0.05em;
}

/* ===================================================
   タブレット以上
   =================================================== */

@media screen and (min-width: 600px) {
    /* 横長カードレイアウト */
    .blog-post-link {
        grid-template-columns: 300px 1fr;
        gap: 25px;
    }

    .blog-post-thumbnail {
        padding-top: 0;
        height: 200px;
    }

    .blog-post-title {
        font-size: 20px;
    }

    .filter-button {
        font-size: 16px;
        padding: 12px 24px;
    }

    .blog-post-content {
        padding: 10px 0;
    }
    
    /* 関連記事 - タブレット */
    .sidebar-title {
        font-size: 22px;
    }
    
    .related-post-title {
        font-size: 15px;
    }
}

/* ===================================================
   PC版
   =================================================== */

@media screen and (min-width: 960px) {
    .blog-category-filter {
        gap: 15px;
        margin-bottom: 60px;
        padding: 0;
    }

    .filter-button {
        font-size: 18px;
        padding: 15px 30px;
    }

    .blog-archive-section {
        padding: 60px 0 80px 0;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0;
    }

    /* PC版横長カードレイアウト */
    .blog-post-link {
        grid-template-columns: 400px 1fr;
        gap: 40px;
    }

    .blog-post-thumbnail {
        height: 267px; /* 400px * 2/3 */
    }

    .blog-post-content {
        padding: 20px 0;
        gap: 15px;
    }

    .blog-post-date {
        font-size: 16px;
    }

    .blog-post-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .blog-post-excerpt {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .blog-view-more {
        font-size: 16px;
    }

    .blog-pagination {
        padding: 0;
        margin-top: 60px;
    }

    /* 詳細ページ PC版 */
    .blog-single-content {
        padding: 60px 0 80px 0;
    }

    /* 【追加】PC版2カラムレイアウト */
    .blog-single-layout {
        max-width: 1200px;
        margin: 0 auto;
        grid-template-columns: 1fr 350px;
        gap: 60px;
        padding: 0;
    }

    .blog-article {
        padding: 0;
    }

    .blog-sidebar {
        padding: 0;
        margin-top: 0;
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }

    .related-posts-section {
        padding: 35px 25px;
    }

    .sidebar-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .related-posts-list {
        gap: 25px;
    }

    .related-post-content {
        padding: 18px;
    }

    .related-post-date {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .related-post-title {
        font-size: 15px;
    }

    .blog-article-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .blog-article-date {
        font-size: 16px;
    }

    .blog-article-body {
        font-size: 18px;
    }

    .blog-article-body h2 {
        font-size: 26px;
    }

    .blog-article-body h3 {
        font-size: 24px;
    }

    .post-nav-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .blog-post-navigation {
        padding: 0 7%;
        margin-top: 60px;
        max-width: 1200px;
    }

    .back-button {
        font-size: 16px;
        padding: 15px 40px;
    }

    .nav-title {
        font-size: 16px;
    }
}