/* Smartmart 補助金ガイドページ共通 (sb- prefix) */

/* --- レイアウト --- */
.sb-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.sb-main {
    min-width: 0;
}

.sb-aside {
    min-width: 0;
}

/* --- ヒーロー --- */
.sb-hero {
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.sb-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.sb-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.sb-hero-desc {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- パンくずリスト --- */
.sb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary, #666);
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.sb-breadcrumb li + li::before {
    content: '/';
    color: var(--text-light, #aaa);
}

.sb-breadcrumb a {
    color: var(--primary-color, #0668E1);
    text-decoration: none;
}

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

.sb-breadcrumb-active {
    color: var(--text-primary, #333);
}

/* --- ハイライトボックス --- */
.sb-highlight {
    border: 2px solid;
    border-radius: 8px;
    padding: 24px;
    margin: 30px 0;
}

.sb-highlight h3 {
    margin-bottom: 14px;
    font-size: 1.3rem;
}

/* AI補助金: 青 */
.sb-highlight--blue {
    background: #f0f9ff;
    border-color: #3b82f6;
}
.sb-highlight--blue h3 {
    color: #1e40af;
}

/* ロボット補助金: 黄 */
.sb-highlight--amber {
    background: #fef3c7;
    border-color: #f59e0b;
}
.sb-highlight--amber h3 {
    color: #92400e;
}

/* --- バッジ --- */
.sb-badge {
    display: inline-block;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 4px;
}

.sb-badge--green  { background: #10b981; }
.sb-badge--amber  { background: #f59e0b; }
.sb-badge--blue   { background: #3b82f6; }
.sb-badge--red    { background: #ef4444; }

/* 難易度バッジ */
.sb-difficulty {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 4px;
}
.sb-difficulty--easy   { background: #d1fae5; color: #065f46; }
.sb-difficulty--medium { background: #fed7aa; color: #92400e; }
.sb-difficulty--hard   { background: #fecaca; color: #991b1b; }

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

.sb-table th {
    color: white;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.sb-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: var(--text-primary, #333);
}

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

.sb-table tr:hover td {
    background: #f9fafb;
}

/* AI補助金テーブルヘッダー */
.sb-table--blue th { background: var(--primary-color, #0668E1); }
/* ロボット補助金テーブルヘッダー */
.sb-table--red th  { background: #f5576c; }

/* --- ステップ --- */
.sb-step {
    background: white;
    padding: 22px 24px;
    margin: 16px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color, #e5e7eb);
}

.sb-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--primary-color, #0668E1);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 15px;
    margin-right: 12px;
    flex-shrink: 0;
    vertical-align: middle;
}

.sb-step h3 {
    display: inline;
    font-size: 1.2rem;
    color: #1f2937;
    vertical-align: middle;
}

/* フロー形式ステップ（ロボット補助金） */
.sb-flow-step {
    background: white;
    border: 2px solid #f5576c;
    border-radius: 8px;
    padding: 22px 24px;
    margin: 16px 0;
}

.sb-flow-step h3 {
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 8px;
}

/* --- CTA ボックス --- */
.sb-cta-box {
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.sb-cta-box h3 {
    font-size: 1.7rem;
    margin-bottom: 14px;
}

.sb-cta-box p {
    margin-bottom: 4px;
    line-height: 1.7;
}

.sb-cta-btn {
    display: inline-block;
    background: white;
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    margin: 10px 8px 0;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.sb-cta-btn:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* AI補助金 CTAボックス */
.sb-cta-box--pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.sb-cta-box--pink .sb-cta-btn { color: #f5576c; }

/* ロボット補助金 CTAボックス */
.sb-cta-box--purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.sb-cta-box--purple .sb-cta-btn { color: #764ba2; }

/* --- FAQ --- */
.sb-faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 22px 24px;
    margin-bottom: 14px;
}

.sb-faq-q {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 10px;
}

.sb-faq-a {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
}

/* --- 業界グリッド --- */
.sb-industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.sb-industry-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 22px;
    text-align: center;
}

.sb-industry-card h4 {
    color: var(--primary-color, #0668E1);
    margin-bottom: 10px;
    font-size: 16px;
}

.sb-industry-card p {
    font-size: 13px;
    color: var(--text-secondary, #666);
    line-height: 1.7;
    margin-bottom: 6px;
}

/* --- ロボット種別カード --- */
.sb-robot-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 22px;
    margin: 16px 0;
}

.sb-robot-card h3 {
    color: #f5576c;
    margin-bottom: 10px;
    font-size: 16px;
}

.sb-robot-card p {
    font-size: 14px;
    color: var(--text-primary, #333);
    line-height: 1.7;
    margin-bottom: 4px;
}

/* --- 地域グリッド --- */
.sb-region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.sb-region-card {
    background: white;
    border: 2px solid #fecaca;
    border-radius: 8px;
    padding: 22px;
}

.sb-region-card h4 {
    color: #f5576c;
    margin-bottom: 14px;
    font-size: 16px;
}

.sb-region-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-region-card li {
    padding: 7px 0;
    border-bottom: 1px solid #fee2e2;
    font-size: 13px;
    color: var(--text-primary, #333);
}

.sb-region-card li:last-child {
    border-bottom: none;
}

/* --- 事例 --- */
.sb-case {
    background: #fef2f2;
    padding: 22px 24px;
    margin: 16px 0;
    border-radius: 6px;
}

.sb-case h4 {
    color: #991b1b;
    margin-bottom: 10px;
    font-size: 15px;
}

.sb-case p {
    font-size: 14px;
    color: var(--text-primary, #333);
    line-height: 1.7;
    margin-bottom: 4px;
}

/* --- サイドバー --- */
.sb-sidebar-cta {
    background: white;
    border: 2px solid var(--primary-color, #0668E1);
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 22px;
    text-align: center;
}

.sb-sidebar-cta h4 {
    color: var(--primary-color, #0668E1);
    margin-bottom: 10px;
    font-size: 15px;
}

.sb-sidebar-cta p {
    font-size: 13px;
    color: var(--text-secondary, #666);
    line-height: 1.7;
    margin-bottom: 14px;
}

.sb-sidebar-cta--red {
    border-color: #f5576c;
}
.sb-sidebar-cta--red h4 {
    color: #f5576c;
}

.sb-sidebar-btn {
    display: inline-block;
    background: var(--primary-color, #0668E1);
    color: white;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.sb-sidebar-btn:hover {
    background: var(--primary-dark, #0555c0);
    color: white;
}

.sb-sidebar-btn--red {
    background: #f5576c;
}
.sb-sidebar-btn--red:hover {
    background: #e53e54;
    color: white;
}

.sb-related {
    background: white;
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 22px;
}

.sb-related h4 {
    margin-bottom: 14px;
    color: #1f2937;
    font-size: 15px;
}

.sb-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-related li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.sb-related li:last-child {
    border-bottom: none;
}

.sb-related a {
    color: var(--primary-color, #0668E1);
    text-decoration: none;
}

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

.sb-related--red a {
    color: #f5576c;
}

/* --- レスポンシブ --- */
@media (max-width: 992px) {
    .sb-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sb-hero h1 {
        font-size: 1.6rem;
    }

    .sb-hero-desc {
        font-size: 1rem;
    }

    .sb-cta-box {
        padding: 28px 20px;
    }

    .sb-cta-box h3 {
        font-size: 1.3rem;
    }

    .sb-cta-btn {
        display: block;
        margin: 10px 0 0;
    }
}
