/* ==========================================================================
   BLOG.CSS - Monerionブログページ専用スタイル（ブランドカラー統一版）
   ========================================================================== */

/* 記事コンテナ */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.6;
}

/* ページ全体のコンテナ（ヘッダーナビと同じ幅） */
.blog-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* パンくずナビゲーション */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 10px 20px;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    color: #6B7280;
}

.breadcrumb-list li:not(:last-child)::after {
    content: ' >';
    margin-left: 8px;
    color: #9CA3AF;
}

.breadcrumb-list a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
}

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

.breadcrumb-current {
    font-weight: 500;
    color: #374151;
}

/* CTA バナー（記事上部） */
.monerion-cta-banner-top {
    max-width: 1200px;
    background: #f8f8f8;
    color: #000000;
    border-radius: 0;
    padding: 24px;
    margin: 20px auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 2px solid #1a1a1a;  /* Soft Black - 統合デザインルール */
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-icon img {
    width: 80px;
    height: 80px;
}

.cta-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.cta-text p {
    margin: 0 0 16px 0;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #000000;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
    border: 2px solid #1a1a1a;  /* Soft Black - 統合デザインルール */
}

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

/* 記事ヘッダー */
.post-header {
    margin-bottom: 32px;
    text-align: left;
}

.post-title {
    font-size: 2rem;
    color: #1F2937;
    margin-bottom: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.post-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: #6B7280;
    flex-wrap: wrap;
}

.post-date,
.post-author,
.post-category {
    font-weight: 500;
}

.post-category {
    background: #000000;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

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

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    color: #1F2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content h1 {
    font-size: 2rem;
    border-bottom: 3px solid #000000;
    padding-bottom: 8px;
}

.post-content h2 {
    font-size: 1.6rem;
    position: relative;
    padding-left: 20px;
}

.post-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 20px;
    background: #000000;
    border-radius: 0;
}

.post-content h3 {
    font-size: 1.3rem;
    color: #000000;
    font-weight: 600;
}

/* 段落とリスト */
.post-content p {
    margin-bottom: 1.5rem;
}

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

.post-content li {
    margin-bottom: 0.5rem;
}

/* 強調とリンク */
.post-content strong {
    color: #000000;
    font-weight: 600;
}

.post-content a {
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid #000000;
    transition: all 0.2s ease;
    font-weight: 500;
}

.post-content a:hover {
    color: #333333;
    border-bottom-color: #333333;
}

/* TOCリンク（目次） */
.post-content .toclink {
    border: none;
    color: inherit;
    text-decoration: none;
}

.post-content .toclink:hover {
    border: none;
    color: #000000;
}

/* コードブロック */
.post-content code {
    background: #f8f8f8;
    padding: 2px 6px;
    border-radius: 0;
    font-family: 'Roboto Mono', 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
    color: #000000;
    border: 1px solid #e5e5e5;
}

.post-content pre {
    background: #1F2937;
    color: #F9FAFB;
    padding: 20px;
    border-radius: 0;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: none;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    border: none;
}

/* 引用 */
.post-content blockquote {
    border-left: 4px solid #000000;
    padding-left: 20px;
    margin: 1.5rem 0;
    background: #f8f8f8;
    padding: 16px 20px;
    border-radius: 0;
    font-style: normal;
    color: #333333;
}

/* テーブル */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content th,
.post-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.post-content th {
    background: #F3F4F6;
    font-weight: 600;
    color: #374151;
}

/* 記事カードスタイル */
.post-card {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
}

.post-card:hover {
    border-color: #D1D5DB;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* スクリーンリーダー専用（SEO対策でテキストを保持） */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* OGP画像表示スタイル */
.post-card-image {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1200 / 630; /* OGP標準比率 */
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.post-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.post-card-image img:hover {
    transform: scale(1.02);
}

.image-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
    text-align: center;
    padding: 20px;
}

.fallback-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

.fallback-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

/* モバイル対応の調整 */
@media (max-width: 768px) {
    .post-card-image {
        margin-bottom: 12px;
        border-radius: 6px;
    }
    
    .fallback-title {
        font-size: 0.8rem;
    }
}

/* 記事フッター（タグ） */
.post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.post-tags h4 {
    margin-bottom: 12px;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
}

.tag-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #ffffff;
    color: #000000;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #000000;
}

/* ページナビゲーション */
.page-navigation {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-prev,
.nav-next {
    display: flex;
}

.nav-next {
    justify-content: flex-end;
}

.page-navigation .nav-link {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    max-width: 300px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.page-navigation .nav-link:hover {
    border-color: #000000;
    background: #f8f8f8;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nav-label {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 4px;
    font-weight: 500;
}

.nav-title {
    font-weight: 600;
    line-height: 1.4;
    color: #1F2937;
}

/* 関連記事 */
.related-articles {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 40px 20px 0;
    border-top: 2px solid #E5E7EB;
}

.related-articles h2 {
    font-size: 1.5rem;
    color: #1F2937;
    margin-bottom: 24px;
    text-align: left;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.related-item {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.related-item:hover {
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.related-link {
    text-decoration: none;
    color: inherit;
}

.related-title {
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 1rem;
}

.related-description {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 8px;
}

.related-date {
    font-size: 0.8rem;
    color: #9CA3AF;
    font-weight: 500;
}

/* CTA バナー（記事下部） */
.monerion-cta-banner-bottom {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.cta-premium {
    background: #ffffff;
    color: #000000;
    padding: 40px;
    border-radius: 0;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 2px solid #1a1a1a;  /* Soft Black - 統合デザインルール */
}

.cta-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-premium h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    font-weight: 700;
}

.feature-highlights {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.feature-list {
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.feature-icon {
    font-size: 1.2rem;
}

.feature-text {
    font-weight: 500;
}

.cta-action {
    text-align: center;
}

.cta-button-large {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
    margin-bottom: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 2px solid #1a1a1a;  /* Soft Black - 統合デザインルール */
}

.cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: #333333;
    border-color: #333333;
}

.cta-sub {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* ブログトップに戻るリンク */
.back-to-blog {
    max-width: 1200px;
    text-align: center;
    margin: 40px auto;
    padding: 0 20px;
}

.back-link {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 0;
    transition: all 0.2s ease;
    border: 1px solid #000000;
}

.back-link:hover {
    background: #000000;
    color: #ffffff;
    text-decoration: none;
}

/* メインコンテンツの上下マージン調整 */
.main-content {
    margin-top: 20px;
    margin-bottom: 40px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .blog-post {
        padding: 0 16px;
    }

    .post-title {
        font-size: 1.6rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 8px;
    }

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

    .nav-container {
        grid-template-columns: 1fr;
    }

    .page-navigation .nav-link {
        max-width: none;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .feature-highlights {
        flex-direction: column;
        gap: 24px;
    }

    .feature-list {
        text-align: center;
    }

    .cta-premium {
        padding: 24px;
    }
}

/* フォーカス状態 */
.page-navigation .nav-link:focus,
.cta-button:focus,
.cta-button-large:focus,
.back-link:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* 印刷時のスタイル */
@media print {

    .monerion-cta-banner-top,
    .monerion-cta-banner-bottom,
    .page-navigation,
    .related-articles,
    .back-to-blog {
        display: none;
    }

    .post-content {
        color: #000;
    }

    .post-content a {
        color: #000;
        border-bottom: none;
    }
}
