/* ブログページ専用CSS */

/* ベーススタイル（親スタイルシートから継承） */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 40px;
}

/* 2カラムレイアウト */
.container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 40px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 記事ヘッダー */
.article-header {
    margin-bottom: 2rem;
}

.article-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.article-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-category {
    background: #059669;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* メイン画像 */
.article-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

/* 記事本文 */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1a1a1a;
}

.article-content h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #059669;
    color: #1a1a1a;
}

.article-content h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1e3a5f;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #2d3748;
    text-align: justify;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.article-content strong {
    font-weight: 700;
    color: #1a1a1a;
}

.article-content em {
    font-style: italic;
    color: #059669;
}

.article-content a {
    color: #059669;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: #10b981;
}

/* コールアウトボックス */
.callout-box {
    background: #f0fdf4;
    border-left: 4px solid #059669;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

/* サイドバー */
.sidebar-section {
    background: #f9fafb;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.sidebar-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #059669;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 0.75rem;
}

.sidebar-nav a {
    color: #4a5568;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    background: #e5e7eb;
    color: #059669;
    padding-left: 1rem;
}

/* 広告スペース */
.ad-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.ad-placeholder {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 4px;
}

/* シェアボタン */
.share-buttons {
    display: flex;
    gap: 10px;
    margin: 3rem 0;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.share-button.twitter {
    background: #1DA1F2;
}

.share-button.twitter:hover {
    background: #0d8bd9;
    transform: translateY(-2px);
}

.share-button.facebook {
    background: #1877F2;
}

.share-button.facebook:hover {
    background: #0e63d1;
    transform: translateY(-2px);
}

/* ブログ一覧ページ */
.blog-list {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    display: flex;
    gap: 2rem;
}

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

.blog-card-image {
    width: 400px;
    height: 250px;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.blog-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-card-title a:hover {
    color: #059669;
}

.blog-card-date {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.blog-card-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #059669;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-card-link:hover {
    color: #10b981;
    gap: 12px;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-card-image {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 80px 15px 30px;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        margin-top: 2rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-button {
        justify-content: center;
    }
}

/* ブログホームページ用 */
.blog-hero {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 4rem 2rem;
    margin-top: 80px;
    margin-bottom: 3rem;
    border-radius: 12px;
    text-align: center;
}

.blog-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
}
