/**
 * ブログ記事用コンポーネントスタイル
 * インラインスタイルをCSS変数とクラスベースのスタイリングに移行
 * Version: 1.0.0
 * Last Updated: 2025-11-19
 */

/* ===== CSS変数定義 ===== */
:root {
    /* ブランドカラー */
    --blog-brand-primary: #C8A882;
    --blog-brand-secondary: #27AE60;
    --blog-accent: #333;
    --blog-text-light: #666;
    --blog-text-lighter: #888;

    /* 背景カラー */
    --blog-bg-cream: #fffef0;
    --blog-bg-beige: #F5E6D3;
    --blog-bg-gray-light: #f8f9fa;
    --blog-bg-gray: #e9ecef;
    --blog-bg-main: #f8fafc;

    /* 共通テーマ変数 */
    --theme-bg: var(--blog-bg-main);
    --theme-card: #ffffff;
    --theme-text: #1e293b;
    --theme-muted: #64748b;
    --theme-glass-bg: rgba(255, 255, 255, 0.7);
    --theme-glass-border: rgba(255, 255, 255, 0.3);
    --theme-input-bg: #ffffff;
    --theme-border: #e2e8f0;

    /* スペーシング */
    --blog-spacing-xs: 8px;
    --blog-spacing-sm: 15px;
    --blog-spacing-md: 20px;
    --blog-spacing-lg: 25px;
    --blog-spacing-xl: 30px;
    --blog-spacing-xxl: 40px;

    /* ボーダー半径 */
    --blog-radius-sm: 10px;
    --blog-radius-md: 15px;
    --blog-radius-lg: 20px;

    /* その他 */
    --blog-line-height: 1.8;
    --blog-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"],
.dark-mode {
    --theme-bg: #0f172a;
    --theme-card: #1e293b;
    --theme-text: #f1f5f9;
    --theme-muted: #94a3b8;
    --theme-glass-bg: rgba(30, 41, 59, 0.8);
    --theme-glass-border: rgba(255, 255, 255, 0.1);
    --theme-input-bg: #334155;
    --theme-border: #334155;

    --blog-bg-cream: #1e293b;
    --blog-bg-beige: #334155;
    --blog-bg-gray-light: #1e293b;
    --blog-bg-gray: #0f172a;
    --blog-accent: #f1f5f9;
    --blog-text-light: #94a3b8;
    --blog-text-lighter: #64748b;
}

[data-theme="dark"] html,
.dark-mode html,
[data-theme="dark"],
.dark-mode {
    background-color: var(--theme-bg) !important;
}

/* ===== メインコンテンツエリア ===== */
.blog-main {
    flex: 1;
    padding: 0;
}

/* ===== コンテナ ===== */
.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    line-height: var(--blog-line-height);
}

/* ===== ヘッダーセクション ===== */
.blog-article-header {
    margin-bottom: var(--blog-spacing-xxl);
    text-align: center;
}

.blog-article-title {
    font-size: 2em;
    margin-bottom: var(--blog-spacing-md);
    color: var(--blog-brand-primary);
    line-height: 1.5;
    font-weight: 700;
}

.blog-article-date {
    color: var(--blog-text-lighter);
    font-size: 0.95em;
}

/* ===== リード文 ===== */
.blog-lead {
    background: linear-gradient(135deg, var(--blog-bg-cream) 0%, var(--blog-bg-gray-light) 100%);
    padding: var(--blog-spacing-xl);
    border-radius: var(--blog-radius-md);
    margin-bottom: var(--blog-spacing-xxl);
    border-left: 5px solid var(--blog-brand-primary);
}

.blog-lead p {
    line-height: var(--blog-line-height);
    margin-bottom: var(--blog-spacing-sm);
}

.blog-lead p:last-child {
    margin-bottom: 0;
}

/* ===== 目次 ===== */
.blog-toc {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: var(--blog-radius-md);
    padding: var(--blog-spacing-lg);
    margin-bottom: var(--blog-spacing-xxl);
}

.blog-toc h2 {
    color: var(--blog-brand-primary);
    margin-bottom: var(--blog-spacing-md);
    font-size: 1.3em;
    text-align: center;
}

.blog-toc ol {
    line-height: 2;
    padding-left: 20px;
}

.blog-toc a {
    color: var(--blog-accent);
    text-decoration: none;
}

.blog-toc a:hover {
    color: var(--blog-brand-primary);
    text-decoration: underline;
}

/* ===== セクション ===== */
.blog-section {
    background: linear-gradient(135deg, var(--blog-bg-gray-light) 0%, var(--blog-bg-gray) 100%);
    border-left: 5px solid var(--blog-brand-primary);
    border-radius: var(--blog-radius-md);
    padding: var(--blog-spacing-xl);
    margin: var(--blog-spacing-xxl) 0;
    box-shadow: var(--blog-shadow);
}

.blog-section h2 {
    color: var(--blog-brand-primary);
    margin-bottom: var(--blog-spacing-md);
    font-size: 1.3em;
}

.blog-section h3 {
    margin-top: var(--blog-spacing-xxl);
    color: var(--blog-accent);
}

.blog-section p {
    line-height: var(--blog-line-height);
    margin-bottom: var(--blog-spacing-sm);
}

.blog-section ul {
    line-height: 2;
    margin-bottom: var(--blog-spacing-lg);
    padding-left: 30px;
}

.blog-section li {
    margin-bottom: var(--blog-spacing-xs);
}

/* ===== ポイントボックス（緑） ===== */
.blog-point-box {
    background: var(--blog-bg-cream);
    border-left: 4px solid var(--blog-brand-secondary);
    padding: var(--blog-spacing-lg);
    margin: var(--blog-spacing-xl) 0;
    border-radius: var(--blog-radius-lg);
}

.blog-point-box h4 {
    color: var(--blog-accent);
    margin-bottom: var(--blog-spacing-sm);
}

.blog-point-box ul {
    line-height: 2;
    padding-left: 30px;
    margin-bottom: var(--blog-spacing-sm);
}

.blog-point-box p {
    line-height: var(--blog-line-height);
    font-style: italic;
    color: var(--blog-text-light);
}

/* ===== サクセスボックス（ベージュ） ===== */
.blog-success-box {
    background: var(--blog-bg-beige);
    border-left: 4px solid var(--blog-brand-primary);
    padding: var(--blog-spacing-lg);
    margin: var(--blog-spacing-xl) 0;
    border-radius: var(--blog-radius-lg);
}

.blog-success-box h4 {
    color: var(--blog-brand-primary);
    margin-bottom: var(--blog-spacing-sm);
}

.blog-success-box ul {
    line-height: 2;
    padding-left: 30px;
}

.blog-success-box p {
    line-height: var(--blog-line-height);
}

/* ===== 警告ボックス（イエロー） ===== */
.blog-warning-box {
    background: #fff9e6;
    border-left: 4px solid #f39c12;
    padding: var(--blog-spacing-lg);
    margin: var(--blog-spacing-xl) 0;
    border-radius: var(--blog-radius-lg);
}

.blog-warning-box h4 {
    color: #f39c12;
    margin-bottom: var(--blog-spacing-sm);
}

.blog-warning-box ul {
    line-height: 2;
    padding-left: 30px;
}

.blog-warning-box p {
    line-height: var(--blog-line-height);
}

/* ===== インフォボックス（ブルー） ===== */
.blog-info-box {
    background: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: var(--blog-spacing-lg);
    margin: var(--blog-spacing-xl) 0;
    border-radius: var(--blog-radius-lg);
}

.blog-info-box h4 {
    color: #3498db;
    margin-bottom: var(--blog-spacing-sm);
}

.blog-info-box ul {
    line-height: 2;
    padding-left: 30px;
}

.blog-info-box p {
    line-height: var(--blog-line-height);
}

/* ===== ハイライト要素 ===== */
.blog-highlight-yellow {
    background: linear-gradient(transparent 60%, #ffeb3b 60%);
    padding: 2px 4px;
}

.blog-important-number {
    font-weight: 700;
    color: var(--blog-brand-primary);
}

/* ===== テーブル ===== */
.blog-table-wrapper {
    overflow-x: auto;
    margin: var(--blog-spacing-xl) 0;
}

.blog-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.blog-table th,
.blog-table td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: left;
    line-height: var(--blog-line-height);
}

.blog-table th {
    background: var(--blog-bg-gray-light);
    font-weight: 700;
    color: var(--blog-accent);
}

.blog-table tr:nth-child(even) {
    background: #fafafa;
}

/* ===== 画像 ===== */
.blog-image-wrapper {
    margin: var(--blog-spacing-xl) 0;
    text-align: center;
}

.blog-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--blog-radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-image-caption {
    margin-top: var(--blog-spacing-sm);
    font-size: 0.9em;
    color: var(--blog-text-light);
    font-style: italic;
}

/* ===== 引用 ===== */
.blog-quote {
    background: var(--blog-bg-gray-light);
    border-left: 4px solid var(--blog-brand-primary);
    padding: var(--blog-spacing-lg);
    margin: var(--blog-spacing-xl) 0;
    font-style: italic;
    color: var(--blog-text-light);
}

.blog-quote cite {
    display: block;
    margin-top: var(--blog-spacing-sm);
    font-size: 0.9em;
    font-style: normal;
    color: var(--blog-text-lighter);
}

/* ===== バッジ ===== */
.blog-badge {
    background: var(--blog-brand-primary);
    color: white;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: var(--blog-spacing-sm);
    font-weight: bold;
}

/* ===== ボタン ===== */
.blog-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--blog-brand-primary), #b89968);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(200, 168, 130, 0.3);
}

.blog-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(200, 168, 130, 0.4);
}

.blog-button-secondary {
    background: linear-gradient(135deg, var(--blog-brand-secondary), #1e8449);
}

.blog-button-secondary:hover {
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
    .blog-container {
        padding: 20px 15px;
    }

    .blog-article-title {
        font-size: 1.5em;
    }

    .blog-lead,
    .blog-section,
    .blog-point-box,
    .blog-success-box,
    .blog-warning-box,
    .blog-info-box {
        padding: var(--blog-spacing-md);
        margin: var(--blog-spacing-md) 0;
    }

    .blog-toc {
        padding: var(--blog-spacing-md);
    }

    .blog-section h2,
    .blog-toc h2 {
        font-size: 1.1em;
    }
}

/* ===== 後方互換性のためのエイリアス ===== */
/* 既存のクラス名をサポート（段階的な移行用） */
.modern-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    line-height: var(--blog-line-height);
}

.modern-lead {
    background: linear-gradient(135deg, var(--blog-bg-cream) 0%, var(--blog-bg-gray-light) 100%);
    padding: var(--blog-spacing-xl);
    border-radius: var(--blog-radius-md);
    margin-bottom: var(--blog-spacing-xxl);
    border-left: 5px solid var(--blog-brand-primary);
}

.modern-toc {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: var(--blog-radius-md);
    padding: var(--blog-spacing-lg);
    margin-bottom: var(--blog-spacing-xxl);
}

.modern-point-box {
    background: var(--blog-bg-cream);
    border-left: 4px solid var(--blog-brand-secondary);
    padding: var(--blog-spacing-lg);
    margin: var(--blog-spacing-xl) 0;
    border-radius: var(--blog-radius-lg);
}

.success-box {
    background: var(--blog-bg-beige);
    border-left: 4px solid var(--blog-brand-primary);
    padding: var(--blog-spacing-lg);
    margin: var(--blog-spacing-xl) 0;
    border-radius: var(--blog-radius-lg);
}

.yellow-highlight {
    background: linear-gradient(transparent 60%, #ffeb3b 60%);
    padding: 2px 4px;
}

.important-number {
    font-weight: 700;
    color: var(--blog-brand-primary);
}

/* ===== 追加のインラインスタイル置き換えクラス ===== */

/* タイトルとヘッディング */
.blog-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
}

.blog-section-heading {
    font-size: 28px;
    font-weight: 700;
    color: #C8A882;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #C8A882;
}

.blog-subsection-heading {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #C8A882;
}

.blog-date {
    color: #666;
    font-size: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

/* インフォグラフィック */
.blog-infographic {
    margin: 0;
}

/* テキストスタイル */
.blog-paragraph {
    font-size: 16px;
    line-height: 2;
    color: #333;
    margin-bottom: 20px;
}

.blog-paragraph-large {
    font-size: 18px;
    line-height: 2;
    color: #333;
    margin-bottom: 20px;
}

/* リスト */
.blog-list {
    line-height: 2;
    color: #333;
    margin: 20px 0;
    padding-left: 25px;
}

/* コンテンツボックス */
.blog-content-box {
    background: #F5E6D3;
    border-left: 4px solid #C8A882;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.blog-highlight-box {
    background: #fffef0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* テーブルコンテナ */
.blog-table-container {
    overflow-x: auto;
    margin: 30px 0;
}

/* テーブルの追加スタイル */
.blog-table thead {
    background: #F5E6D3;
}

.blog-table tbody tr:nth-child(even) {
    background: #fffef0;
}

.blog-table th {
    font-weight: 700;
}

/* TOC（目次）の追加スタイル */
.blog-toc.beige-style {
    background: #F5E6D3;
    border: 2px solid #C8A882;
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
}

/* ===== Phase 2: 追加の頻出パターン ===== */

/* テーブルセルのバリエーション */
.blog-table-cell {
    padding: 15px;
    border: 1px solid #ddd;
}

.blog-table-cell-center {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
}

.blog-table-cell-modern {
    border: 1px solid #dee2e6;
    padding: 12px;
}

.blog-table-cell-sm {
    padding: 12px;
    border: 1px solid #ddd;
}

.blog-table-cell-xs {
    padding: 10px;
    border: 1px solid #ddd;
}

.blog-table-cell-brand {
    padding: 12px;
    border: 1px solid #C8A882;
}

/* テキストカラー */
.blog-text-brand {
    color: #C8A882;
}

.blog-text-dark {
    color: #333;
}

.blog-text-link {
    color: #333;
    text-decoration: none;
}

.blog-text-link:hover {
    text-decoration: underline;
}

/* 背景色 */
.blog-bg-beige {
    background: #F5E6D3;
}

.blog-bg-white {
    background-color: white;
}

/* バッジ（ブランドカラー） */
.blog-badge-brand {
    background: #C8A882;
    color: white;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* スペーシング */
.blog-mb-10 {
    margin-bottom: 10px;
}

.blog-mb-20 {
    margin-bottom: 20px;
}

.blog-mb-25 {
    margin-bottom: 25px;
}

.blog-mt-20 {
    margin-top: 20px;
}

.blog-pb-8 {
    padding: 8px 0;
}

/* ライン高さ */
.blog-lh-18 {
    line-height: 1.8;
}

.blog-lh-18-mb-20 {
    line-height: 1.8;
    margin-bottom: 20px;
}

.blog-lh-18-mb-25 {
    line-height: 1.8;
    margin-bottom: 25px;
}

/* コンビネーションクラス */
.blog-text-dark-mb-10 {
    color: #333;
    margin-bottom: 10px;
}

.blog-mb-10-lh-18 {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* ===== Phase 3: さらなる頻出パターン ===== */

/* バッジ変種（完全一致） */
.blog-badge-full {
    background: #C8A882;
    color: white;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* 背景色 */
.blog-bg-cream {
    background: #fffef0;
}

/* リストスタイル */
.blog-list-indent {
    margin: 0;
    padding-left: 20px;
}

.blog-list-indent-lg {
    padding: 15px 0 15px 30px;
}

.blog-list-lined {
    line-height: 2;
    padding-left: 30px;
}

/* テキストバリエーション */
.blog-text-dark-mb-15 {
    color: #333;
    margin-bottom: 15px;
}

/* スペーシング拡張 */
.blog-mb-12 {
    margin-bottom: 12px;
}

.blog-mb-15 {
    margin-bottom: 15px;
}

.blog-m-60-0 {
    margin: 60px 0;
}

.blog-m-20-0 {
    margin: 20px 0;
}

.blog-m-30-0 {
    margin: 30px 0;
}

/* ライン高さ拡張 */
.blog-lh-18-m-0 {
    line-height: 1.8;
    margin: 0;
}

/* サブヘッディング */
.blog-subheading {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 40px 0 20px;
}

.blog-small-heading {
    font-size: 18px;
    font-weight: 700;
    color: #C8A882;
    margin-bottom: 15px;
}

/* テーブルセル拡張 */
.blog-table-cell-text {
    padding: 15px;
    border: 1px solid #ddd;
    color: #333;
}

/* ボーダー */
.blog-border-brand {
    border: 1px solid #C8A882;
}

.blog-border-brand-thick {
    border: 2px solid #C8A882;
    padding: 12px;
}

/* テーブルコンテナ変種 */
.blog-table-container-sm {
    overflow-x: auto;
    margin: 20px 0;
}

/* パラグラフ拡張 */
.blog-paragraph-styled {
    margin: 20px 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* イタリック引用 */
.blog-quote-small {
    line-height: 1.8;
    font-style: italic;
    color: #666;
    margin-top: 15px;
}

/* Flexbox レイアウト */
.blog-flex-1 {
    flex: 1;
}

.blog-feature-card {
    display: flex;
    align-items: flex-start;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ===== Phase 10: グラデーションと特殊ボックス (Legacy Refactoring) ===== */

/* ヒーローセクション用グラデーション */
.blog-hero-gradient-red {
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 50%, #ff69b4 100%);
    padding: 60px 30px;
    margin: 30px -20px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.3);
    color: white;
    text-align: center;
}

.blog-hero-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.blog-hero-subtitle {
    font-size: 0.9em;
    color: #ffe4e1;
}

.blog-hero-text-box {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15em;
    line-height: 1.8;
    color: #fff0f5;
}

.blog-hero-cta-box {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    color: #333;
}

/* セクション見出し用グラデーションボックス */
.blog-gradient-box-yellow {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(253, 203, 110, 0.3);
}

.blog-gradient-box-orange {
    background: linear-gradient(135deg, #e17055 0%, #fab1a0 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
    box-shadow: 0 5px 15px rgba(225, 112, 85, 0.3);
}

.blog-gradient-box-blue {
    background: linear-gradient(135deg, #74b9ff 0%, #a29bfe 100%);
    padding: 35px;
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 20px rgba(116, 185, 255, 0.3);
    margin-bottom: 30px;
}

.blog-gradient-box-green {
    background: linear-gradient(135deg, #55efc4 0%, #81ecec 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(129, 236, 236, 0.3);
}

.blog-gradient-box-purple {
    background: linear-gradient(135deg, #6c5ce7 0%, #74b9ff 100%);
    padding: 30px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
    margin-bottom: 30px;
}

.blog-gradient-box-red-orange {
    background: linear-gradient(135deg, #ff6348 0%, #ff8c42 100%);
    padding: 30px;
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 20px rgba(255, 99, 72, 0.3);
}

/* ビジネスモデル用グラデーション */
.blog-gradient-card-yellow {
    background: linear-gradient(135deg, #ffeaa7 0%, #fff 50%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-gradient-card-orange {
    background: linear-gradient(135deg, #fab1a0 0%, #fff 50%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-gradient-card-purple {
    background: linear-gradient(135deg, #a29bfe 0%, #fff 50%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 特定色のボーダーボックス */
.blog-box-border-left-orange {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ff6348;
    margin-bottom: 15px;
}

.blog-box-border-orange-outline {
    background: #fff3e0;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid #ff9800;
}

.blog-box-border-green-outline {
    background: #e8f5e9;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #4caf50;
    margin-bottom: 30px;
}

/* CTAボタン */
.blog-btn-gradient-orange {
    display: inline-block;
    background: linear-gradient(135deg, #ff6348 0%, #ff8c42 100%);
    color: white;
    padding: 20px 60px;
    border-radius: 50px;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(255, 99, 72, 0.4);
    margin: 20px 0;
    transition: transform 0.3s;
}

.blog-btn-gradient-orange:hover {
    transform: translateY(-2px);
}

/* テキストカラー */
.blog-text-white {
    color: white;
}

.blog-text-yellow {
    color: #ffeb3b;
}

.blog-text-red-dark {
    color: #8b0000;
}

.blog-text-orange {
    color: #f57c00;
}

.blog-text-purple {
    color: #6c5ce7;
}

.blog-text-green-dark {
    color: #2e7d32;
}

/* その他ユーティリティ */
.blog-shadow-text {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.blog-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

/* ===== Phase 11: 頻出インラインスタイルパターン ===== */

/* スペーシング - マージン */
.blog-mb-15 {
    margin-bottom: 15px;
}

.blog-mb-30 {
    margin-bottom: 30px;
}

.blog-mt-20-mb-10 {
    margin-top: 20px;
    margin-bottom: 10px;
}

/* リスト - インデント */
.blog-list-indent-lh16 {
    line-height: 1.6;
    margin-left: 20px;
}

/* 白背景ボックス - バリエーション */
.blog-white-box-rounded {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.blog-white-box-rounded-sm {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.blog-white-box-rounded-plain {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.blog-white-box-sm {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

/* 半透明白背景ボックス */
.blog-white-translucent-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
}

.blog-white-translucent-box-dark {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 20px;
    border-radius: 10px;
}

/* パディング付きボックス */
.blog-padded-box {
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.blog-padded-box-lg {
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-padded-box-sm {
    padding: 20px;
    border-radius: 10px;
}

.blog-padded-box-xs {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* ボーダー付きボックス */
.blog-box-border-red {
    padding: 20px;
    border: 2px solid #dc143c;
}

.blog-border-bottom-light {
    border-bottom: 1px solid #eee;
}

/* テキストアライメント */
.blog-text-right {
    text-align: right;
}

.blog-text-center {
    text-align: center;
}

/* 見出しサイズバリエーション */
.blog-h-1-3em {
    font-size: 1.3em;
    margin-bottom: 15px;
}

.blog-h-1-4em {
    font-size: 1.4em;
    margin-bottom: 20px;
}

.blog-h-1-5em {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.blog-h-1-5em-center {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

/* カラーバリエーション - 見出し用 */
.blog-h-red {
    color: #dc143c;
    margin-bottom: 10px;
}

.blog-h-orange-light {
    color: #e17055;
    margin-bottom: 15px;
}

.blog-h-orange-dark {
    color: #ff9800;
    margin-bottom: 15px;
}

/* リンクスタイル */
.blog-link-red {
    color: #dc143c;
    text-decoration: none;
}

.blog-link-red:hover {
    text-decoration: underline;
}

/* 行間 */
.blog-lh-16 {
    line-height: 1.6;
}


/* ===== Phase 4: 追加クラス（上位パターン対応） ===== */

/* テーブルセル - 中央揃え */
.blog-table-cell-center-simple {
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
}

/* テーブルセル - 左揃え */
.blog-table-cell-left {
    padding: 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.blog-table-cell-brand-left {
    padding: 12px;
    text-align: left;
    border: 1px solid #C8A882;
}

/* テーブルセル - 右揃え */
.blog-table-cell-brand-right {
    border: 2px solid #C8A882;
    padding: 12px;
    text-align: right;
}

/* テーブルセル - 中央揃えシンプル */
.blog-table-cell-center-plain {
    padding: 15px;
    text-align: center;
}

/* テーブルヘッダー */
.blog-table-header {
    background: #C8A882;
    color: white;
}

/* 見出しバリエーション */
.blog-heading-20 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 30px 0 15px 0;
}

.blog-heading-22 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 30px 0 20px;
}

.blog-heading-18 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

/* アイコン付き見出し */
.blog-heading-icon {
    color: #C8A882;
    font-size: 2em;
    padding-left: 15px;
    border-left: 5px solid #C8A882;
}

/* テキストスタイル */
.blog-text-1-1em {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.blog-text-lh18-dark {
    line-height: 1.8;
    color: #333;
}

.blog-text-lh18-mb10 {
    line-height: 1.8;
    margin-bottom: 10px;
}

/* 背景スタイル */
.blog-bg-white-lh18 {
    background: white;
    line-height: 1.8;
}

.blog-bg-white-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

/* スペーシング拡張 */
.blog-m-50-0 {
    margin: 50px 0;
}

/* ブランドカラーバリエーション */
.blog-brand-mb15 {
    color: #C8A882;
    margin-bottom: 15px;
}

/* アバター画像 */
.blog-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

/* ===== Phase 5: 追加クラス（上位パターン対応） ===== */

/* テキストスタイル */
.blog-link-brand-underline {
    color: #C8A882;
    text-decoration: underline;
}

.blog-text-lh2-dark {
    line-height: 2;
    color: #333;
}

.blog-text-16-lh18-dark {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

.blog-text-gray-lh16 {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.blog-text-lh18-m0 {
    margin: 0;
    line-height: 1.8;
}

/* 背景ボックス */
.blog-box-cream-highlight {
    background: #fffef0;
    padding: 25px;
    margin: 25px 0;
    border-radius: 10px;
    border-left: 4px solid #C8A882;
}

.blog-box-beige {
    background: #F5E6D3;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.blog-bg-beige-plain {
    background-color: #F5E6D3;
}

/* コンテナボックス */
.blog-container-course {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px 20px;
    background: #fffef0;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* レイアウト */
.blog-flex-center-gap30 {
    display: flex;
    align-items: center;
    gap: 30px;
}

.blog-flex-shrink-mr20 {
    margin-right: 20px;
    flex-shrink: 0;
}

/* 画像 */
.blog-img-responsive {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

/* スペーシング */
.blog-m-80-0 {
    margin: 80px 0;
}

/* テーブル・ボーダー */
.blog-table-border-brand-left {
    border: 1px solid #C8A882;
    text-align: left;
}

.blog-table-cell-brand-bold {
    padding: 12px;
    border: 1px solid #C8A882;
    color: #C8A882;
    font-weight: bold;
}

/* テキストアライン */
.blog-text-left {
    text-align: left;
}

/* ===== Phase 6: 追加クラス（上位パターン対応） ===== */

/* アバター画像 - 大 */
.blog-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* テキストバリエーション */
.blog-text-brand-1-2em {
    color: #C8A882;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.blog-text-dark-1-3em {
    color: #333;
    margin-top: 0;
    font-size: 1.3em;
}

.blog-text-15-lh19-dark {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 0;
}

.blog-text-brand-18-mb15 {
    color: #C8A882;
    margin-bottom: 15px;
    font-size: 18px;
}

.blog-text-green-20 {
    color: #27AE60;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* ボックス・ボーダー */
.blog-box-white-brand-border {
    background: white;
    border: 2px solid #C8A882;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.blog-box-white-padded {
    background: white;
    line-height: 1.8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.blog-box-cream-orange-border {
    background: #fffef0;
    border-left: 4px solid #FF9800;
    padding: 25px;
    margin: 30px 0;
    border-radius: 20px;
}

.blog-box-blue-green-border {
    background: #f0f9ff;
    border-left: 4px solid #27AE60;
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
}

/* 背景色 */
.blog-bg-gray-light {
    background: #f9f9f9;
}

.blog-bg-white {
    background: white;
}

/* テーブル */
.blog-table-styled {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.blog-table-cell-brand-simple {
    border: 1px solid #C8A882;
    padding: 12px;
}

/* 見出し - ボーダー付き */
.blog-heading-28-border {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 40px 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #C8A882;
}

/* リスト */
.blog-list-lh20-dark {
    line-height: 2.0;
    color: #333;
    margin: 0;
    padding-left: 20px;
}

.blog-list-lh18-dark-indented {
    color: #333;
    line-height: 1.8;
    margin: 0;
    padding-left: 20px;
}

.blog-list-mb10-lh20 {
    margin-bottom: 10px;
    line-height: 2.0;
}

/* 位置指定 */
.blog-position-absolute-left {
    position: absolute;
    left: 0;
    color: #333;
    font-weight: bold;
}

/* ===== ページネーション・カード画像（blog-pagination.css統合） ===== */

/* 自動画像生成（index.html用） */
.myblog-auto-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    font-size: 18px !important;
    text-align: center !important;
    padding: 20px !important;
    width: 100% !important;
    height: 150px !important;
    z-index: 0 !important;
    position: relative !important;
}

/* ::before疑似要素を完全に非表示 */
.myblog-auto-image::before {
    display: none !important;
}

/* カード画像（page2-11用） */
.myblog-article-card-image {
    display: block !important;
    width: 100% !important;
    height: 150px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
}

/* カード背景グラデーション - 7色ローテーション（青系統一版）*/
body .myblog-articles-grid .myblog-article-card:nth-child(7n+1) .myblog-auto-image,
.myblog-article-card:nth-child(7n+1) .myblog-article-card-image {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%) !important;
}

body .myblog-articles-grid .myblog-article-card:nth-child(7n+2) .myblog-auto-image,
.myblog-article-card:nth-child(7n+2) .myblog-article-card-image {
    background: linear-gradient(135deg, #1E40AF 0%, #60A5FA 100%) !important;
}

body .myblog-articles-grid .myblog-article-card:nth-child(7n+3) .myblog-auto-image,
.myblog-article-card:nth-child(7n+3) .myblog-article-card-image {
    background: linear-gradient(135deg, #1D4ED8 0%, #93C5FD 100%) !important;
}

body .myblog-articles-grid .myblog-article-card:nth-child(7n+4) .myblog-auto-image,
.myblog-article-card:nth-child(7n+4) .myblog-article-card-image {
    background: linear-gradient(135deg, #2563EB 0%, #BFDBFE 100%) !important;
}

body .myblog-articles-grid .myblog-article-card:nth-child(7n+5) .myblog-auto-image,
.myblog-article-card:nth-child(7n+5) .myblog-article-card-image {
    background: linear-gradient(135deg, #0EA5E9 0%, #7DD3FC 100%) !important;
}

body .myblog-articles-grid .myblog-article-card:nth-child(7n+6) .myblog-auto-image,
.myblog-article-card:nth-child(7n+6) .myblog-article-card-image {
    background: linear-gradient(135deg, #0284C7 0%, #BAE6FD 100%) !important;
}

body .myblog-articles-grid .myblog-article-card:nth-child(7n) .myblog-auto-image,
.myblog-article-card:nth-child(7n) .myblog-article-card-image {
    background: linear-gradient(135deg, #0369A1 0%, #E0F2FE 100%) !important;
    color: #fff !important;
}

/* ===== Phase 7: 追加クラス（上位パターン対応） ===== */

/* テーブルセル - バリエーション */
.blog-table-cell-modern-gray {
    border: 1px solid #dee2e6;
    padding: 12px;
    color: #333;
}

.blog-table-cell-bold {
    padding: 15px;
    text-align: left;
    border: 1px solid #ddd;
    color: #333;
    font-weight: 700;
}

.blog-table-cell-bold-center {
    padding: 15px;
    border: 1px solid #ddd;
    color: #333;
    font-weight: 700;
}

/* テキストスタイル */
.blog-text-link-transition {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-text-16-lh20-dark-mb20 {
    font-size: 16px;
    line-height: 2.0;
    color: #333;
    margin-bottom: 20px;
}

.blog-text-dark-mb20 {
    color: #333;
    margin-bottom: 20px;
}

.blog-text-lh18-dark-m0 {
    line-height: 1.8;
    margin: 0;
    color: #333;
}

.blog-text-brand-mt40 {
    color: #C8A882;
    margin-top: 40px;
}

.blog-text-brand-mb10 {
    color: #C8A882;
    margin-bottom: 10px;
}

/* 見出し22px */
.blog-heading-22-mt40 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 40px 0 20px 0;
}

/* リストバリエーション */
.blog-list-relative-indented {
    padding: 10px 0 10px 30px;
    position: relative;
    line-height: 1.6;
}

.blog-list-lh20-indented-lg {
    line-height: 2.0;
    padding: 15px 0 15px 30px;
    margin: 0;
}

/* ボックスバリエーション */
.blog-box-cream-brand-border-sm {
    background: #fffef0;
    padding: 20px;
    border-left: 4px solid #C8A882;
    border-radius: 8px;
    margin-bottom: 20px;
}

.blog-box-cream-brand-border {
    background: #fffef0;
    border-left: 4px solid #C8A882;
    padding: 20px;
    margin: 30px 0;
}

.blog-box-white-padded-lg {
    background: white;
    line-height: 1.8;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    border-left: 4px solid #C8A882;
}

/* スペーシング */
.blog-mb-5 {
    margin-bottom: 5px;
}

/* アイコン円形 */
.blog-icon-circle {
    background: white;
    color: #333;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
}

/* ===== Phase 8: 追加クラス（上位パターン対応） ===== */

/* コンテナ - 記事最大幅 */
.blog-container-article {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px 20px;
    background: #fffef0;
    border-radius: 15px;
    border: 1px solid #e0d5c0;
}

/* プロフィール画像 - 大サイズ */
.blog-profile-img-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* テーブル - 標準 */
.blog-table-standard {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* カード - ボーダー付き */
.blog-card-bordered {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

/* 情報ボックス - クリーム色 */
.blog-info-box-cream {
    background: #fffef0;
    padding: 20px;
    border-left: 4px solid #C8A882;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 背景ボックス - グレー */
.blog-bg-box-gray {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 見出し4 - 標準 */
.blog-heading-4 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

/* テキスト - 標準段落 */
.blog-text-para {
    margin-top: 25px;
    color: #333;
    font-size: 1.05em;
}

/* テーブル - シンプル */
.blog-table-simple {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* テーブルヘッダー - ブランド色 */
.blog-table-header-brand {
    background: #C8A882;
    color: #fff;
}

/* リスト - インデント＋行間 */
.blog-list-indent-lh2 {
    margin: 10px 0 0 20px;
    line-height: 2.0;
}

/* タイトル - 大サイズ */
.blog-title-lg {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

/* 見出し2 - ブランド色上マージン */
.blog-h2-brand-mt {
    color: #C8A882;
    margin-top: 60px;
}

/* テーブルセル - ボーダー付き */
.blog-table-cell-bordered {
    padding: 12px;
    border: 1px solid #C8A882;
    text-align: left;
}

/* 見出し - 最大サイズ */
.blog-heading-xl {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #C8A882;
}

/* テキスト - 標準行間 */
.blog-text-standard {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    margin-bottom: 15px;
}

/* テーブルセル - シンプル */
.blog-table-cell-simple {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

/* 見出し3 - ブランド色 */
.blog-h3-brand {
    color: #C8A882;
    font-size: 22px;
    margin-bottom: 20px;
}

/* テーブル - 基本 */
.blog-table-basic {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

/* テーブルセル - ブランドボーダー */
.blog-table-cell-brand-border {
    border: 2px solid #C8A882;
    padding: 12px;
    text-align: left;
}

/* ===== Phase 9: 追加クラス（残存パターン対応） ===== */

/* テキスト - マージントップ＋行間 */
.blog-text-mt15-lh18 {
    margin-top: 15px;
    line-height: 1.8;
}

/* 情報ボックス - ベージュ */
.blog-info-box-beige {
    background: #F5E6D3;
    padding: 20px;
    border-left: 4px solid #C8A882;
    margin: 30px 0;
}

/* テキスト - 標準15px */
.blog-text-15-lh18 {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}

/* リンク - ブランド色 */
.blog-link-brand {
    color: #C8A882;
    text-decoration: none;
}

/* リンク - ブランド色小サイズ */
.blog-link-brand-sm {
    color: #C8A882;
    text-decoration: none;
    font-size: 0.95em;
}

/* ボーダー - 下線ベージュ */
.blog-border-bottom-beige {
    padding: 12px 0;
    border-bottom: 1px solid #F5E6D3;
}

/* ボックス - クリーム左ボーダー太め */
.blog-box-cream-brand-border-lg {
    background: #fffef0;
    border-left: 4px solid #C8A882;
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
}

/* テキスト - 行間1.8上マージン */
.blog-text-lh18-mt15 {
    line-height: 1.8;
    margin-top: 15px;
}

/* リスト - スタイルなし */
.blog-list-unstyled {
    list-style: none;
    padding: 0;
}

/* ボックス - 白パディング */
.blog-box-white-p30 {
    background: white;
    padding: 30px;
}

/* テーブル - ボーダー付き白背景 */
.blog-table-bordered-white {
    background: white;
    border: 1px solid #ddd;
}

/* 見出し - 行間1.8マージンあり */
.blog-heading-lh18-mb15 {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* コンテナ - 最大幅パディング */
.blog-container-maxw-p30 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

/* ボックス - グレー薄め */
.blog-box-gray-light {
    margin: 20px 0;
    padding-left: 20px;
}

/* ===== 関連記事セクション (Modernized) ===== */
.blog-related-articles-section {
    padding: 60px 0;
    background-color: #f8f6f3;
}

.blog-related-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-related-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 32px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

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

.blog-related-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-related-card-content {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.blog-related-card:hover .blog-related-card-content {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-related-image-wrapper {
    overflow: hidden;
    aspect-ratio: 16/9;
}

.blog-related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-related-card:hover .blog-related-image {
    transform: scale(1.05);
}

.blog-related-body {
    padding: 20px;
}

.blog-related-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.blog-related-date {
    font-size: 12px;
    color: #888;
}

.blog-related-category {
    font-size: 11px;
    color: #C8A882;
    font-weight: 600;
    background: rgba(200, 168, 130, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ===== テーマ切替共通スタイル ===== */
.theme-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--theme-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--theme-glass-border);
    color: var(--theme-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

.theme-toggle-btn svg {
    width: 24px;
    height: 24px;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

/* ===== ダークモード時の要素調整 (記事ページ用詳細) ===== */
[data-theme="dark"] body,
.dark-mode body {
    background-color: var(--theme-bg) !important;
    color: var(--theme-text) !important;
}

[data-theme="dark"] .blog-container,
.dark-mode .blog-container {
    background: var(--theme-card) !important;
    color: var(--theme-text) !important;
}

[data-theme="dark"] .blog-title,
.dark-mode .blog-title,
[data-theme="dark"] .blog-section-heading,
.dark-mode .blog-section-heading,
[data-theme="dark"] .blog-subsection-heading,
.dark-mode .blog-subsection-heading,
[data-theme="dark"] .blog-h3-brand,
.dark-mode .blog-h3-brand {
    color: var(--blog-brand-primary) !important;
}

[data-theme="dark"] .blog-paragraph,
.dark-mode .blog-paragraph,
[data-theme="dark"] .blog-list,
.dark-mode .blog-list,
[data-theme="dark"] .blog-text-dark,
.dark-mode .blog-text-dark,
[data-theme="dark"] .blog-text-15-lh18,
.dark-mode .blog-text-15-lh18 {
    color: var(--theme-text) !important;
}

[data-theme="dark"] .blog-toc,
.dark-mode .blog-toc {
    background: #1e293b !important;
    border-color: var(--blog-brand-primary) !important;
}

[data-theme="dark"] .blog-toc a,
.dark-mode .blog-toc a {
    color: var(--theme-text) !important;
}

[data-theme="dark"] .blog-table,
.dark-mode .blog-table,
[data-theme="dark"] .blog-table-basic,
.dark-mode .blog-table-basic,
[data-theme="dark"] .blog-table-bordered-white,
.dark-mode .blog-table-bordered-white {
    background: #1e293b !important;
    border-color: var(--theme-border) !important;
}

[data-theme="dark"] .blog-table th,
.dark-mode .blog-table th,
[data-theme="dark"] .blog-table-cell-brand-border,
.dark-mode .blog-table-cell-brand-border,
[data-theme="dark"] .blog-bg-beige th,
.dark-mode .blog-bg-beige th {
    background: #334155 !important;
    color: var(--blog-brand-primary) !important;
    border-color: var(--theme-border) !important;
}

[data-theme="dark"] .blog-table td,
.dark-mode .blog-table td,
[data-theme="dark"] .blog-table-cell-simple,
.dark-mode .blog-table-cell-simple {
    background: transparent !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-text) !important;
}

/* 強制背景上書き */
[data-theme="dark"] .blog-bg-beige,
.dark-mode .blog-bg-beige,
[data-theme="dark"] .blog-bg-cream,
.dark-mode .blog-bg-cream,
[data-theme="dark"] tr.blog-bg-beige,
.dark-mode tr.blog-bg-beige,
[data-theme="dark"] tr.blog-bg-cream,
.dark-mode tr.blog-bg-cream {
    background-color: #1e293b !important;
    color: var(--theme-text) !important;
}

[data-theme="dark"] .blog-content-box,
.dark-mode .blog-content-box,
[data-theme="dark"] .blog-info-box-beige,
.dark-mode .blog-info-box-beige,
[data-theme="dark"] .blog-box-cream-brand-border-lg,
.dark-mode .blog-box-cream-brand-border-lg {
    background: #1e293b !important;
    border-color: var(--blog-brand-primary) !important;
    color: var(--theme-text) !important;
}

[data-theme="dark"] .blog-section,
.dark-mode .blog-section,
[data-theme="dark"] .blog-point-box,
.dark-mode .blog-point-box,
[data-theme="dark"] .blog-success-box,
.dark-mode .blog-success-box {
    background: #1e293b !important;
    color: var(--theme-text) !important;
}

[data-theme="dark"] .blog-warning-box,
.dark-mode .blog-warning-box {
    background: #272115 !important;
    border-left-color: #f39c12 !important;
    color: var(--theme-text) !important;
}

[data-theme="dark"] .blog-highlight-yellow,
.dark-mode .blog-highlight-yellow {
    background: rgba(200, 168, 130, 0.3) !important;
    color: inherit !important;
}

/* ヘッダー・フッターのアクセシビリティ改善 */
[data-theme="dark"] .site-header,
.dark-mode .site-header {
    background: #0f172a !important;
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .site-header .global-nav a,
.dark-mode .site-header .global-nav a,
[data-theme="dark"] .site-header .site-logo-text a,
.dark-mode .site-header .site-logo-text a {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .hamburger-button span,
.dark-mode .hamburger-button span {
    background-color: #f1f5f9 !important;
}

[data-theme="dark"] .site-footer,
.dark-mode .site-footer {
    background: #0f172a !important;
    border-top-color: #334155 !important;
}

[data-theme="dark"] .site-footer .footer-links a,
.dark-mode .site-footer .footer-links a,
[data-theme="dark"] .site-footer .footer-brand h2,
.dark-mode .site-footer .footer-brand h2 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .blog-related-articles-section,
.dark-mode .blog-related-articles-section {
    background-color: #020617 !important;
}

[data-theme="dark"] .blog-related-card-content,
.dark-mode .blog-related-card-content {
    background: #1e293b !important;
}

[data-theme="dark"] .blog-related-article-title,
.dark-mode .blog-related-article-title {
    color: #f1f5f9 !important;
}