/* ----------------------------------------------------
   IKEMOTO TECHNOLOGIES - DENSHIINKAN BLOG STYLES
   ---------------------------------------------------- */

@import url('../style.css');

/* Custom Blog Layout Variables & Overrides */
:root {
    --article-max-width: 760px;
    --sidebar-width: 300px;
}

/* Base Blog Container Overrides */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Branding Link Adjustments */
.brand-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

/* Blog Hero Introduction Section */
.blog-hero {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, rgba(230, 0, 18, 0.02) 0%, rgba(79, 70, 229, 0.02) 100%);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.01);
}

.blog-hero h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

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

/* Hub Directory Grid (Index Cards) */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.article-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(230, 0, 18, 0.12);
    box-shadow: 0 12px 30px rgba(230, 0, 18, 0.05);
}

.card-img-placeholder {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--card-border);
}

/* Gradient Themes for Card Banners */
.card-img-placeholder.excel {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}
.card-img-placeholder.excel::after {
    content: "田";
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 44px;
    color: rgba(16, 185, 129, 0.2);
}

.card-img-placeholder.legal {
    background: linear-gradient(135deg, #fffbeb 0%, #fde68a 100%);
}
.card-img-placeholder.legal::after {
    content: "法";
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 44px;
    color: rgba(217, 119, 6, 0.2);
}

.card-img-placeholder.tech {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}
.card-img-placeholder.tech::after {
    content: "輪";
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 44px;
    color: rgba(79, 70, 229, 0.2);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.meta-category {
    background: var(--indigo-glow);
    color: var(--indigo);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.card-content h2 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.card-more {
    font-size: 12px;
    font-weight: 600;
    color: var(--vermilion);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-more svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.article-card:hover .card-more svg {
    transform: translateX(4px);
}

/* Article Split Layout Grid */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 32px;
    align-items: start;
    margin-bottom: 48px;
}

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

/* Main Article Content Card */
.article-card-main {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.015);
}

@media (max-width: 768px) {
    .article-card-main {
        padding: 24px 16px;
    }
}

.article-header {
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 24px;
    margin-bottom: 28px;
}

.article-category {
    background: var(--vermilion-glow);
    color: var(--vermilion);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 12px;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

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

.article-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Typography styles inside article body */
.article-body {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.85;
}

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

.article-body strong {
    color: #000000;
}

.article-body h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 36px 0 16px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--vermilion);
}

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

.article-body h3::before {
    content: "■";
    color: var(--indigo);
    font-size: 12px;
}

/* Custom bullet lists */
.article-body ul {
    margin: 0 0 20px 20px;
    padding-left: 4px;
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Styled Blockquotes */
.article-body blockquote {
    background: rgba(15, 23, 42, 0.02);
    border-left: 4px solid var(--indigo);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin: 28px 0;
    font-style: normal;
    color: var(--text-secondary);
}

/* Info Callout Blocks */
.info-callout {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 12px;
    padding: 16px;
    margin: 28px 0;
    display: flex;
    gap: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #92400e;
}

.info-icon {
    font-size: 16px;
}

/* Custom Step Guides */
.step-guide {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.step-card {
    background: var(--bg-light);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--vermilion);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-details p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* Code block highlight (For Excel formulas or paths) */
.code-inline {
    background: rgba(15, 23, 42, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    color: var(--vermilion);
}

/* B2B Legal comparison table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 28px 0;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
    background: #ffffff;
    min-width: 480px;
}

.legal-table th {
    background: var(--bg-light);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--card-border);
}

.legal-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-secondary);
    line-height: 1.55;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table .highlight-row {
    background: rgba(230, 0, 18, 0.015);
}

/* Sticky Sidebar & Funnel Card */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 24px;
}

.funnel-cta-card {
    background: #ffffff;
    border: 2px solid var(--vermilion);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(230, 0, 18, 0.04);
    text-align: center;
    transition: all 0.3s ease;
}

.funnel-cta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(230, 0, 18, 0.08);
}

.funnel-cta-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.funnel-cta-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.btn-sidebar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--vermilion);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    width: 100%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.25);
    border: none;
    cursor: pointer;
}

.btn-sidebar-cta:hover {
    background: #c2000f;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(230, 0, 18, 0.35);
}

.btn-sidebar-cta:active {
    transform: translateY(0);
}

/* Shared security badge in sidebar */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 8px;
    border-radius: 8px;
    margin-top: 12px;
    font-weight: 500;
}
