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

/* ページヘッダー（下層ページ共通デザイン） */
.page-header {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #f4ede4 0%, #e8d5c4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.page-header__container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.page-header__title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #765E46;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.page-header__subtitle {
    font-size: 1.2rem;
    color: #8B7355;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 300;
}

/* パンくずリスト */
.breadcrumb {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e8d5c4;
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
}

.breadcrumb__item:not(:last-child)::after {
    content: '>';
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumb__link {
    color: #765E46;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb__link:hover {
    color: #5a4a38;
}

.breadcrumb__current {
    color: #999;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* メインコンテンツ */
.main {
    padding: 3rem 0;
}

/* ブログ記事詳細 */
.blog-single {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 3rem;
}

/* メタ情報 */
.blog-single__meta {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.blog-single__meta-items {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.blog-single__date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.blog-single__date-icon {
    font-size: 1rem;
}

.blog-single__categories {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-single__category-icon {
    font-size: 1rem;
}

.blog-single__category {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.blog-single__category:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* カテゴリー別の色分け */
.blog-single__category--blog {
    background-color: #765E46;
}

.blog-single__category--voice {
    background-color: #d4a574;
}

.blog-single__category--news {
    background-color: #8fbc8f;
}

/* アイキャッチ画像 */
.blog-single__thumbnail {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.blog-single__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 記事本文 */
.blog-single__content {
    padding: 2rem;
    line-height: 1.8;
    color: #333;
}

.blog-single__content h2 {
    font-size: 1.6rem;
    color: #765E46;
    margin: 2.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8d5c4;
}

.blog-single__content h3 {
    font-size: 1.3rem;
    color: #765E46;
    margin: 2rem 0 1rem 0;
}

.blog-single__content h4 {
    font-size: 1.1rem;
    color: #765E46;
    margin: 1.5rem 0 0.8rem 0;
}

.blog-single__content p {
    margin-bottom: 1.5rem;
}

.blog-single__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-single__content ul,
.blog-single__content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-single__content li {
    margin-bottom: 0.5rem;
}

.blog-single__content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f9f5f0;
    border-left: 4px solid #765E46;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* 記事内ページネーション */
.blog-single__pagination {
    margin: 2rem 0;
    text-align: center;
}

.blog-single__pagination a,
.blog-single__pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.3rem;
    border: 1px solid #e8d5c4;
    border-radius: 5px;
    text-decoration: none;
    color: #765E46;
    transition: all 0.3s ease;
}

.blog-single__pagination a:hover {
    background-color: #765E46;
    color: white;
}

/* タグ */
.blog-single__tags {
    padding: 1.5rem 2rem;
    border-top: 1px solid #f0f0f0;
}

.blog-single__tags-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #765E46;
    margin-bottom: 1rem;
}

.blog-single__tags-icon {
    font-size: 1rem;
}

.blog-single__tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-single__tags-list a {
    padding: 0.3rem 0.8rem;
    background-color: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.blog-single__tags-list a:hover {
    background-color: #765E46;
    color: white;
}

/* 前後記事ナビゲーション */
.blog-navigation {
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.blog-navigation__items {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: stretch;
}

.blog-navigation__link {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 80px;
    justify-content: center;
}

.blog-navigation__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.blog-navigation__link--prev {
    text-align: left;
}

.blog-navigation__link--archive {
    text-align: center;
    background-color: #765E46;
    color: white;
}

.blog-navigation__link--archive:hover {
    background-color: #5a4a38;
}

.blog-navigation__link--next {
    text-align: right;
}

.blog-navigation__label {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.3rem;
    display: block;
}

.blog-navigation__link--archive .blog-navigation__label {
    color: rgba(255,255,255,0.8);
}

.blog-navigation__title {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.blog-navigation__link--archive .blog-navigation__title {
    color: white;
}

/* 関連記事 */
.blog-related {
    max-width: 800px;
    margin: 0 auto;
}

.blog-related__title {
    font-size: 1.5rem;
    color: #765E46;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.blog-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* 関連記事用の小さなブログカード */
.blog-card--small .blog-card__image {
    height: 150px;
}

.blog-card--small .blog-card__content {
    padding: 1rem;
}

.blog-card--small .blog-card__title {
    font-size: 1rem;
}

.blog-card--small .blog-card__excerpt {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-header {
        height: 200px;
    }
    
    .page-header__title {
        font-size: 1.6rem;
    }
    
    .page-header__subtitle {
        font-size: 1rem;
    }
    
    .main {
        padding: 2rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .blog-single__meta {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    
    .blog-single__meta-items {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .blog-single__content {
        padding: 1.5rem 1rem;
    }
    
    .blog-single__content h2 {
        font-size: 1.3rem;
    }
    
    .blog-single__content h3 {
        font-size: 1.1rem;
    }
    
    .blog-single__tags {
        padding: 1.5rem 1rem;
    }
    
    .blog-navigation__items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .blog-navigation__link {
        text-align: center;
        padding: 1rem;
    }
    
    .blog-related__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .breadcrumb__current {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .page-header__container {
        padding: 0 1rem;
    }
    
    .blog-single__content {
        padding: 1rem;
    }
    
    .blog-single__meta {
        padding: 1rem;
    }
    
    .blog-single__tags {
        padding: 1rem;
    }
}