/* =========================================
   AIボディコンパス ブログ用スタイル
   ベースのCSS変数は ../assets/style.css から継承
   ========================================= */

/* ========== ブログ一覧 ヒーロー ========== */
.blog-hero {
    background: var(--gradient-primary);
    margin-top: 78px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #fff;
}

.blog-hero .blog-hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.75rem;
}

.blog-hero h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.blog-hero p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== ブログ一覧 コンテナ ========== */
.blog-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
}

/* ========== カテゴリタブ ========== */
.blog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.blog-tab {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.blog-tab:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.blog-tab.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}

/* ========== 記事カードグリッド ========== */
.blog-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

.blog-card-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(81, 181, 188, 0.1);
    border-radius: 999px;
}

.blog-card-date {
    font-size: 0.7rem;
    color: var(--text-gray);
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.55;
    color: var(--text-dark);
    margin: 0;
    transition: color 0.2s;
}

.blog-card:hover .blog-card-title {
    color: var(--primary-color);
}

.blog-card-excerpt {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .blog-hero { padding: 2.25rem 1.25rem; }
    .blog-hero h1 { font-size: 1.45rem; }
    .blog-hero p { font-size: 0.85rem; }
    .blog-container { padding: 2rem 1rem 4rem; }
    .blog-list { grid-template-columns: 1fr; }
    .blog-tabs { gap: 0.35rem; }
    .blog-tab { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
}

/* ========== 記事ページ ========== */
.blog-article {
    max-width: 760px;
    margin: 0 auto;
    margin-top: 78px;
    padding: 2.5rem 1.5rem 4rem;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.blog-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-breadcrumb a:hover { text-decoration: underline; }

.blog-breadcrumb .separator { color: var(--border-color); }

.blog-article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.blog-article-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(81, 181, 188, 0.1);
    border-radius: 999px;
}

.blog-article-date {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.blog-article-header h1 {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
}

@media (max-width: 768px) {
    .blog-article-header h1 { font-size: 1.4rem; }
}

/* ========== 記事本文 ========== */
.blog-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-section);
    border-radius: 0 8px 8px 0;
    scroll-margin-top: calc(var(--header-height, 78px) + 1.5rem);
}

.blog-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.blog-body p {
    margin: 1rem 0;
    line-height: 1.95;
    color: var(--text-light);
    font-size: 0.95rem;
}

.blog-body strong {
    color: var(--text-dark);
    font-weight: 600;
}

.blog-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.blog-body a:hover { border-bottom-color: var(--primary-color); }

.blog-body ul,
.blog-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.blog-body li {
    margin: 0.5rem 0;
    line-height: 1.85;
}

/* ビジュアル要素：アイコン付き見出しボックス */
.blog-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 1.75rem 0;
    padding: 1.1rem 1.25rem;
    background: var(--bg-section);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.blog-callout-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(81, 181, 188, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-callout-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.blog-callout-text {
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-callout-text strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* ビジュアル要素：ポイントカード */
.blog-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin: 1.75rem 0;
}

.blog-point {
    padding: 1rem 1.1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.blog-point-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.blog-point-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.65;
}

@media (max-width: 768px) {
    .blog-points { grid-template-columns: 1fr; }
}

/* ビジュアル要素：Before / After 比較 */
.blog-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin: 1.75rem 0;
}

.blog-compare-card {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: var(--bg-section);
}

.blog-compare-card.is-after {
    background: rgba(81, 181, 188, 0.08);
    border: 1px solid rgba(81, 181, 188, 0.25);
}

.blog-compare-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-gray);
    margin-bottom: 0.4rem;
}

.blog-compare-card.is-after .blog-compare-label {
    color: var(--primary-color);
}

.blog-compare-text {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .blog-compare { grid-template-columns: 1fr; }
}

/* ビジュアル要素：数字ハイライト */
.blog-stat {
    text-align: center;
    margin: 1.75rem 0;
    padding: 1.5rem 1rem;
    background: var(--bg-section);
    border-radius: 16px;
}

.blog-stat-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.blog-stat-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ========== FAQ（記事末尾） ========== */
.blog-faq {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.blog-faq h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    padding: 0;
    border: none;
    background: transparent;
}

.blog-faq details {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
}

.blog-faq details[open] { border-color: var(--primary-color); }

.blog-faq summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    padding-right: 1.5rem;
}

.blog-faq summary::-webkit-details-marker { display: none; }

.blog-faq summary::before {
    content: 'Q';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-gray);
    transition: transform 0.2s;
}

.blog-faq details[open] summary::after {
    content: '−';
    color: var(--primary-color);
}

.blog-faq details > div {
    padding: 0.85rem 0 0 2.2rem;
    font-size: 0.9rem;
    line-height: 1.85;
    color: var(--text-light);
}

/* ========== 関連サービス誘導（FAQの後） ========== */
.blog-related {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(81, 181, 188, 0.06), rgba(81, 181, 188, 0.02));
    border: 1px dashed rgba(81, 181, 188, 0.4);
    border-radius: 14px;
}

.blog-related-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    margin-bottom: 0.65rem;
}

.blog-related h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
    padding: 0;
    border: none;
}

.blog-related p {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--text-light);
    margin: 0 0 0.85rem;
}

.blog-related a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.blog-related a:hover { text-decoration: underline; }

/* ========== CTA（記事末尾） ========== */
.blog-cta {
    margin-top: 2rem;
    padding: 2rem 1.5rem;
    background: var(--gradient-primary);
    border-radius: 16px;
    text-align: center;
    color: #fff;
}

.blog-cta h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.6rem;
    padding: 0;
    border: none;
}

.blog-cta p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 1.25rem;
}

.blog-cta-button {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: #fff;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ========== 一覧に戻る ========== */
.blog-back {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.blog-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-back a:hover { color: var(--primary-color); }
