/* 記事共通レイアウト */
.article-main {
    max-width: 720px;
    margin: 100px auto 60px;
    padding: 0 24px;
}

/* --- 記事一覧ページ --- */
.article-list-header {
    margin-bottom: 40px;
}

.article-list-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.article-list-description {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}

.article-list-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.article-back-link {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-back-link:hover {
    color: #333;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card {
    display: block;
    padding: 24px;
    text-decoration: none;
    color: #333;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.article-card-meta time {
    font-size: 12px;
    color: #999;
}

.article-card-tag {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
}

.article-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* --- 個別記事ページ --- */
.article-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 48px 48px 64px;
}

.article-header {
    margin-bottom: 48px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.article-meta time {
    font-size: 13px;
    color: #999;
}

.article-tag {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
}

.article-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    color: #333;
}

/* 記事本文 */
.article-body {
    margin-bottom: 60px;
}

.article-body p {
    font-size: 15px;
    line-height: 2;
    color: #333;
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-top: 48px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}

.article-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 36px;
    margin-bottom: 16px;
}

.article-body blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    background: #f8f8f8;
    border-left: 3px solid #333;
    border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.article-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.article-figure {
    margin: 24px 0;
}

.article-figure img {
    width: 100%;
    display: block;
}

.article-figure figcaption {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    text-align: center;
}

.article-body ul {
    margin: 16px 0 24px;
    padding-left: 24px;
}

.article-body li {
    font-size: 15px;
    line-height: 2;
    color: #333;
    margin-bottom: 4px;
}

.article-body hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 48px 0;
}

/* 記事内CTA */
.article-body p a[href*="yoka-wan.biz"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    margin-top: 32px;
    background: #333;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.article-body p a[href*="yoka-wan.biz"]:hover {
    background: #555;
}

/* 記事下部ナビ */
.article-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}

.article-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    border: 1px solid #333;
    transition: all 0.2s ease;
}

.article-nav-link:hover {
    background: #f5f5f5;
}

.article-nav-label {
    font-size: 13px;
    font-weight: 500;
}

.article-nav-arrow {
    font-size: 14px;
    color: #999;
    transition: color 0.2s ease;
}

.article-nav-link:hover .article-nav-arrow {
    color: #333;
}

/* ヘッダーの「記事」リンクがアクティブなとき */
.nav-link-active {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .article-main {
        margin: 80px 16px 40px;
        padding: 0;
    }

    .article-content {
        padding: 32px 20px 48px;
    }

    .article-title {
        font-size: 22px;
    }

    .article-body p {
        font-size: 14px;
    }

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

    .article-card-title {
        font-size: 16px;
    }
}
