/* =============================================
   コラムページ専用スタイル (blog.css)
   ============================================= */

/* ベース：top.cssを継承している前提 */

/* 記事全体のコンテナ（個別記事・一覧・固定ページ共通） */
.article-wrapper,
.blog-container,
.page-content {
    max-width: 900px;
    margin: 60px auto 120px;
    padding: 80px 100px;
    background: #ffffff;
    border: 2px solid var(--border-glass);
    border-radius: 48px;
    box-shadow: 0 40px 80px rgba(120, 53, 15, 0.12);
    position: relative;
    z-index: 1;
}

/* 記事全体のコンテナ */
.article-wrapper {
    max-width: 860px; /* 記事本文は少し絞る */
}

/* ヘッダー周り */
.top-header {
    background: var(--bg-glass);
    border-bottom: 2px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(120, 53, 15, 0.05);
}

.top-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-header .header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

/* パンくずリスト */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 40px;
    flex-wrap: wrap;
    font-weight: 600;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent-1);
    text-decoration: underline;
}

.breadcrumb span {
    opacity: 0.5;
}

/* カテゴリーラベル */
.category-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
    background: #fff7ed;
    color: var(--accent-1);
    border: 1px solid rgba(234, 88, 12, 0.2);
}

/* 記事ヘッダー */
.article-header {
    margin-bottom: 56px;
}

.article-header h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.article-meta {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-weight: 500;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 記事本文スタイル */
.article-body {
    color: var(--text-secondary);
    font-size: 18px; /* 読みやすさのために少し大きく */
    line-height: 2.0; /* 行間をゆったりと */
}

.article-body h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 64px 0 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--bg-primary);
    position: relative;
}

.article-body h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--accent-1);
}

.article-body h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 40px 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-body h3::before {
    content: '●';
    color: var(--accent-1);
    font-size: 0.6em;
}

.article-body p {
    margin-bottom: 28px;
}

.article-body strong {
    color: var(--text-primary);
    font-weight: 800;
    background: linear-gradient(transparent 70%, #fef08a 70%); /* マーカー風の強調 */
}

.article-body ul, .article-body ol {
    padding-left: 24px;
    margin-bottom: 28px;
}

.article-body li {
    margin-bottom: 12px;
}

/* 強調ボックス (Callout) */
.callout {
    background: #fffdf9;
    border: 2px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px;
    margin: 40px 0;
    box-shadow: 0 10px 20px rgba(120, 53, 15, 0.03);
}

.callout.info {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.callout.danger {
    background: #fff1f2;
    border-color: #fecdd3;
}

.callout-title {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

/* データテーブル */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    margin: 40px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(120, 53, 15, 0.1);
}

.data-table th {
    background: var(--bg-glass);
    padding: 16px;
    text-align: left;
    font-weight: 800;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-glass);
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(120, 53, 15, 0.05);
    color: var(--text-secondary);
}

/* CTAエリア */
.article-cta {
    background: #0f172a; /* 濃いネイビーに変更してインパクトを出す */
    border-radius: 32px;
    padding: 56px 40px;
    text-align: center;
    margin: 64px 0;
    color: #fff;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 28px;
    line-height: 1.8;
}

.article-cta a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 18px 36px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
}

.article-cta a:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 関連記事 */
.related-articles {
    margin-top: 80px;
    border-top: 2px solid var(--bg-glass);
    padding-top: 56px;
}

.related-articles h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-primary);
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.related-card {
    background: #fffdf9;
    border: 1px solid rgba(120, 53, 15, 0.1);
    border-radius: 24px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(120, 53, 15, 0.08);
    background: #ffffff;
    border-color: var(--accent-1);
}

.related-card-icon {
    font-size: 32px;
}

.related-card h3 {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--text-primary);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .article-wrapper,
    .blog-container,
    .page-content {
        margin: 20px 10px 60px;
        padding: 40px 24px;
        border-radius: 32px;
    }

    .article-header h1 {
        font-size: 26px;
    }

    .article-body {
        font-size: 16px;
    }

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

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

/* コラム一覧ページ (index.html) 専用 */
.blog-hero {
    text-align: center;
    margin-bottom: 72px;
}

.blog-hero h1 {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.blog-hero p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    background: #fffdf9;
    border: 1px solid rgba(120, 53, 15, 0.1);
    border-radius: 32px;
    padding: 40px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    opacity: 0;
    transition: 0.3s;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(120, 53, 15, 0.12);
    background: #ffffff;
    border-color: var(--accent-1);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card .icon {
    font-size: 48px;
}

.blog-card .meta {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.blog-card h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-primary);
}

.blog-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.blog-card .read-more {
    margin-top: auto;
}

/* =============================================
   個別記事用パーツ
   ============================================= */

/* つもり貯金シミュレーション (tsumori-saving.html) */
.saving-example {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.saving-card {
    background: #fffdf9;
    border: 1px solid rgba(120, 53, 15, 0.1);
    border-radius: 24px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(120, 53, 15, 0.03);
}

.saving-card .emoji {
    font-size: 32px;
    margin-bottom: 12px;
}

.saving-card .item {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.saving-card .amount {
    font-size: 20px;
    font-weight: 900;
    color: #ec4899;
    font-family: var(--font-display);
}

.saving-card .unit {
    font-size: 12px;
    color: var(--text-muted);
}

.annual-calc {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    border-radius: 32px;
    padding: 48px;
    text-align: center;
    margin: 40px 0;
    color: #fff;
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
}

.annual-calc .num {
    font-family: var(--font-display);
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 12px;
}

.annual-calc .label {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 700;
}

/* 会議コスト強調 (meeting-cost.html) */
.cost-highlight {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border-radius: 32px;
    padding: 48px;
    text-align: center;
    margin: 40px 0;
    color: #fff;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.cost-highlight .num {
    font-family: var(--font-display);
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 12px;
}

.cost-highlight .label {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 700;
}

/* モバイル調整 (個別パーツ) */
@media (max-width: 600px) {
    .saving-example {
        grid-template-columns: 1fr;
    }
    
    .annual-calc, .cost-highlight {
        padding: 32px 24px;
    }
}

/* =============================================
   固定ページ共通パーツ (About, Contact, Privacy)
   ============================================= */

/* ページ見出し */
.page-content h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.page-content .updated {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 40px;
    display: block;
    letter-spacing: 0.1em;
}

.page-content .lead {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 56px;
    border-left: 4px solid var(--accent-1);
    padding-left: 20px;
}

/* コンセプトカード */
.concept-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 48px 0 64px;
}

.concept-card {
    background: #fffdf9;
    border: 2px solid var(--border-glass);
    border-radius: 32px;
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 10px 20px rgba(120, 53, 15, 0.03);
}

.concept-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-pop);
    background: #ffffff;
    border-color: var(--accent-1);
}

.concept-card .icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.concept-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    border: none;
    padding: 0;
}

.concept-card h3::after {
    display: none;
}

.concept-card p {
    font-size: 15px !important;
    color: var(--text-secondary) !important;
    line-height: 1.8 !important;
    margin-bottom: 0 !important;
    font-weight: 500;
}

/* 運営者情報テーブル (About用) */
.info-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 40px 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid rgba(120, 53, 15, 0.1) !important;
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.05) !important;
}

.info-table th, .info-table td {
    padding: 24px !important;
    border-bottom: 1px solid rgba(120, 53, 15, 0.05) !important;
    font-size: 16px !important;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none !important;
}

.info-table th {
    background: #fffbef !important;
    color: var(--text-primary) !important;
    font-weight: 800 !important;
    text-align: left !important;
    width: 30% !important;
    min-width: 140px !important;
}

.info-table td {
    background: #ffffff !important;
    color: var(--text-secondary) !important;
}

.info-table td a {
    color: var(--accent-1) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.info-table td a:hover {
    text-decoration: underline !important;
}

/* ツール一覧 & コラム一覧 (About用) */
.tool-list, .blog-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 32px 0 64px !important;
}

.tool-list li, .blog-list li {
    background: #ffffff;
    border: 1px solid rgba(120, 53, 15, 0.08);
    border-radius: 28px;
    padding: 28px;
    margin-bottom: 20px !important;
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 24px;
    box-shadow: 0 4px 12px rgba(120, 53, 15, 0.02);
}

.tool-list li:hover, .blog-list li:hover {
    border-color: var(--accent-1);
    transform: translateX(8px);
    box-shadow: 0 15px 30px rgba(120, 53, 15, 0.08);
}

.tool-emoji {
    font-size: 40px;
    background: var(--bg-secondary);
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    flex-shrink: 0;
}

.tool-info, .blog-list-content {
    flex: 1;
}

.tool-info strong, .blog-list a {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-decoration: none;
}

.tool-info span, .blog-list span {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.tool-info a {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tool-info a:hover {
    text-decoration: underline;
}

/* お問い合わせカード (contact.html) */
.contact-card {
    background: #ffffff;
    border: 2px solid var(--border-glass);
    border-radius: 48px;
    padding: 80px 48px;
    margin: 64px 0;
    text-align: center;
    box-shadow: 0 30px 60px rgba(120, 53, 15, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

.contact-card .x-logo {
    width: 64px;
    height: 64px;
    background: #000;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: rotate(-5deg);
}

.contact-card .x-logo svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.contact-card h2 {
    font-size: 26px;
    margin: 0 0 16px;
    border: none; 
    padding: 0;
}

.contact-card h2::after {
    display: none;
}

.account-name {
    font-size: 40px;
    font-weight: 900;
    font-family: var(--font-display);
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.x-dm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    padding: 18px 36px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
    font-size: 16px;
    white-space: nowrap;
    min-width: 200px;
}

.x-dm-btn:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.x-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #000;
    color: #fff;
    padding: 18px 36px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
    font-size: 16px;
    border: 2px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    min-width: 200px;
}

.x-follow-btn:hover {
    background: #1a1a1a;
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.note {
    background: #ffedd5;
    border: 2px solid var(--border-glass);
    border-radius: 32px;
    padding: 40px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
    text-align: left;
    margin-top: 72px;
    position: relative;
    overflow: hidden;
}

/* フォローセクション (About, Privacy用) */
.follow-section {
    margin: 80px 0 40px;
    padding: 60px 40px;
    background: #fffbef;
    border: 2px solid var(--border-glass);
    border-radius: 32px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(120, 53, 15, 0.05);
}

.follow-section p {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px !important;
}

.follow-section .x-follow-btn {
    margin: 0 auto;
}

@media (max-width: 600px) {
    .follow-section {
        padding: 40px 24px;
    }
    
    .follow-section p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .tool-list li, .blog-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tool-emoji {
        margin-bottom: 12px;
    }
    
    .x-dm-btn, .x-follow-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .btn-group {
        flex-direction: column;
    }
    
    .contact-card {
        padding: 40px 24px;
    }
    
    .account-name {
        font-size: 24px;
    }
}
