/* ============================================================
   blog-article.css  –  AIスパルタン ブログ記事ページ専用スタイル
   読み込み: blog/[slug]/index.html から ../../css/blog-article.css
   ============================================================ */

/* ── 記事ページ基本レイアウト ── */
body.article-page {
    padding-top: var(--header-height, 72px);
    background: #f9fafb;
    color: #1a1a2e;
}

.article-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* ── 記事ラッパー ── */
.article-wrap {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 48px 52px 56px;
    margin-top: 24px;
}
@media (max-width: 767px) {
    .article-wrap { padding: 28px 20px 40px; margin-top: 16px; }
}

/* ── Header ── */
.article-header { margin-bottom: 28px; }

.article-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-red, #E63946);
    background: rgba(230,57,70,0.08);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.article-title {
    font-size: clamp(1.35rem, 4vw, 1.85rem);
    font-weight: 900;
    line-height: 1.45;
    color: #1a1a2e;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: #888;
}
.article-meta__date,
.article-meta__update { white-space: nowrap; }
.article-meta__author {
    color: var(--accent-red, #E63946);
    font-weight: 600;
    text-decoration: none;
}
.article-meta__author:hover { text-decoration: underline; }

/* ── Hero Image ── */
.article-hero {
    margin: 0 0 32px;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}
.article-hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Summary Box ── */
.article-summary {
    background: linear-gradient(135deg, #fff8f8 0%, #fff5f0 100%);
    border-left: 4px solid var(--accent-red, #E63946);
    border-radius: 0 10px 10px 0;
    padding: 20px 24px 22px;
    margin-bottom: 40px;
}
.article-summary__label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-red, #E63946);
    margin: 0 0 12px;
}
.article-summary__list {
    margin: 0;
    padding-left: 1.2em;
}
.article-summary__list li {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #333;
    margin-bottom: 6px;
}
.article-summary__list li:last-child { margin-bottom: 0; }

/* ── Article Section & Typography ── */
.article-section {
    margin-bottom: 48px;
}
.article-section h2 {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 800;
    color: #1a1a2e;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 10px;
    margin: 0 0 20px;
    line-height: 1.4;
}
.article-section h3 {
    font-size: clamp(0.98rem, 2.5vw, 1.1rem);
    font-weight: 700;
    color: #1a1a2e;
    margin: 28px 0 12px;
    position: relative;
    padding-left: 14px;
}
.article-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 4px;
    height: 1em;
    background: var(--accent-red, #E63946);
    border-radius: 2px;
}
.article-section p {
    font-size: 0.96rem;
    line-height: 1.85;
    color: #333;
    margin: 0 0 16px;
}
.article-section ul,
.article-section ol {
    padding-left: 1.4em;
    margin: 0 0 16px;
}
.article-section li {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #333;
    margin-bottom: 6px;
}
.article-section table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 16px 0;
    overflow-x: auto;
    display: block;
}
.article-section th,
.article-section td {
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    text-align: left;
    line-height: 1.5;
}
.article-section th {
    background: #f4f4f4;
    font-weight: 700;
}
.article-section blockquote {
    border-left: 3px solid #ddd;
    padding: 12px 20px;
    margin: 16px 0;
    color: #666;
    font-style: italic;
    background: #fafafa;
}

/* ── Inline CTA (記事中挿入型) ── */
.article-inline-cta {
    background: #1a1a2e;
    color: #fff;
    border-radius: 10px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 32px 0;
}
.article-inline-cta p {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
}
.article-inline-cta .btn {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 10px 22px;
}

/* ── FAQ ── */
.article-faq h2 {
    border-bottom-color: #e8e8e8;
}
.faq-list { margin: 0; }
.faq-item {
    border: 1px solid #ececec;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}
.faq-q {
    background: #f9f9f9;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a2e;
    padding: 14px 18px;
    margin: 0;
    display: block;
    position: relative;
    padding-left: 44px;
}
.faq-q::before {
    content: 'Q';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 900;
    color: var(--accent-red, #E63946);
}
.faq-a {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #444;
    padding: 14px 18px 14px 44px;
    margin: 0;
    position: relative;
}
.faq-a::before {
    content: 'A';
    position: absolute;
    left: 16px;
    top: 14px;
    font-size: 1rem;
    font-weight: 900;
    color: #1a3a5c;
}

/* ── Author Block ── */
.article-author {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f8f9fb;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 48px 0;
}
.article-author__photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
}
.article-author__info { flex: 1; }
.article-author__name {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 2px;
}
.article-author__name a {
    color: var(--accent-red, #E63946);
    text-decoration: none;
}
.article-author__name a:hover { text-decoration: underline; }
.article-author__role {
    font-size: 0.78rem;
    color: #888;
    margin: 0 0 6px;
}
.article-author__bio {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ── Main CTA ── */
.article-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #0d2240 100%);
    border-radius: 16px;
    padding: 36px 40px;
    text-align: center;
    margin-bottom: 48px;
}
.article-cta__lead {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}
.article-cta__sub {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    margin: 0 0 20px;
}
.article-cta__btn {
    display: inline-block;
    background: var(--accent-red, #E63946);
    color: #fff;
    padding: 14px 36px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}
.article-cta__btn:hover {
    background: #c62a35;
    transform: translateY(-1px);
}
@media (max-width: 575px) {
    .article-cta { padding: 28px 20px; }
}

/* ── Related ── */
.article-related {
    border-top: 1px solid #ececec;
    padding-top: 32px;
}
.article-related__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
}
.article-related__list {
    padding: 0;
    margin: 0;
    list-style: none;
}
.article-related__list li {
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
}
.article-related__list a {
    font-size: 0.9rem;
    color: #1a3a5c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.article-related__list a:hover { color: var(--accent-red, #E63946); }
