@charset "UTF-8";

/* ブログ用ホワイトテーマ・リセット */
body.article-body {
    background-color: #f9f9f9 !important;
    color: #333 !important;
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

a:hover {
    color: #2575fc;
}

/* ヘッダー */
.blog-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.blog-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: #333;
    margin: 0;
}

.blog-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* コンテナ (2カラム) */
.blog-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* メインカラム */
.blog-main {
    flex: 1;
    min-width: 0;
}

.blog-main.archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    align-content: start;
}

/* カードスタイル (一覧) */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    border: 1px solid #f0f0f0;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.card-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.card-cat {
    color: #2575fc;
    font-weight: bold;
    background: #eef4ff;
    padding: 2px 10px;
    border-radius: 10px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #333;
}

.card-desc {
    color: #666;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* 記事詳細スタイル */
.article-detail-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    padding: 40px;
    margin-bottom: 30px;
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.article-header h1 {
    font-size: 2rem;
    color: #333;
    margin: 10px 0;
    line-height: 1.4;
}

.article-header .meta {
    color: #999;
    font-size: 0.9rem;
    display: flex;
    gap: 15px;
    align-items: center;
}

.article-main-thumb {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 40px;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
}

.article-content h2.content-subtitle {
    margin: 50px 0 20px;
    font-size: 1.5rem;
    border-left: 5px solid #2575fc;
    padding-left: 15px;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
}

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-link {
    display: inline-block;
    padding: 12px 30px;
    background: #2575fc;
    color: #fff !important;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.3);
}

.content-link:hover {
    background: #1a60d6;
    transform: translateY(-2px);
}

/* サイドバー */
.blog-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid #2575fc;
    padding-bottom: 10px;
    display: inline-block;
    color: #333;
}

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

.widget-list li {
    border-bottom: 1px solid #f5f5f5;
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: #555;
    font-size: 0.95rem;
}

.widget-list a:hover {
    color: #2575fc;
    transform: translateX(5px);
}

.count-badge {
    background: #f0f0f0;
    color: #888;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
}

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

    .blog-sidebar {
        width: 100%;
    }
}