/* Smartmart 共通コンポーネントCSS */
@import url('/css/variables.css');

/* ==========================================================================
   ページ共通ラッパー
   ========================================================================== */

.robot-compare-page {
    padding: 40px 0;
    background: var(--bg-primary, #ffffff);
}

/* ヒーローバナー上書き（border-radius なし・全幅） */
.rt-cta-banner--hero {
    border-radius: 0;
    margin: 0 0 40px;
}

/* 在庫なしバッジ */
.sm-badge-out-of-stock {
    background: #ef4444;
    color: white;
}

/* ==========================================================================
   パンくずリスト
   ========================================================================== */

.sm-breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    background: var(--bg-secondary, #f8f9fa);
    border-bottom: 1px solid var(--border-color, #e0e5eb);
}

.sm-breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sm-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.sm-breadcrumb-item {
    display: flex;
    align-items: center;
}

.sm-breadcrumb-item + .sm-breadcrumb-item::before {
    content: "\203A";
    color: var(--text-secondary, #666);
    margin: 0 8px;
    font-size: 16px;
}

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

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

.sm-breadcrumb-item.active span {
    color: var(--text-secondary, #666);
}

/* ==========================================================================
   コンテンツレイアウト（記事 + サイドバー）
   ========================================================================== */

.sm-content-row {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 40px;
}

.sm-main-content {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sm-sidebar {
    position: sticky;
    top: 140px;
    align-self: start;
}

.sm-sidebar-box {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sm-sidebar-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary, #333);
}

@media (max-width: 768px) {
    .sm-content-row {
        grid-template-columns: 1fr;
    }

    .sm-main-content {
        padding: 25px;
    }

    .sm-sidebar {
        position: static;
    }
}

/* ==========================================================================
   セクション見出し
   ========================================================================== */

.sm-section {
    margin-bottom: 50px;
}

.sm-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary, #333);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color, #0668E1);
}

.sm-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #333);
    margin: 30px 0 15px;
}

.sm-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #333);
    margin: 25px 0 12px;
}

.sm-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary, #333);
    margin-bottom: 20px;
}

.sm-section ul,
.sm-section ol {
    margin: 20px 0;
    padding-left: 30px;
}

.sm-section li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary, #333);
    margin-bottom: 10px;
}

/* ==========================================================================
   CTAボタン
   ========================================================================== */

.sm-cta-button {
    display: block;
    width: 100%;
    background: var(--primary-color, #0668E1);
    color: white;
    text-align: center;
    padding: 15px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.3s;
    margin-bottom: 15px;
    border: none;
    cursor: pointer;
}

.sm-cta-button:hover {
    background: var(--secondary-color, #0080FB);
    color: white;
}

.sm-cta-button.secondary {
    background: white;
    color: var(--primary-color, #0668E1);
    border: 2px solid var(--primary-color, #0668E1);
}

.sm-cta-button.secondary:hover {
    background: var(--bg-secondary, #f8f9fa);
}

/* ==========================================================================
   比較テーブル
   ========================================================================== */

.sm-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sm-comparison-table thead {
    background: var(--primary-color, #0668E1);
    color: white;
}

.sm-comparison-table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
}

.sm-comparison-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color, #e0e5eb);
    font-size: 14px;
}

.sm-comparison-table tbody tr:hover {
    background: var(--bg-secondary, #f8f9fa);
}

.sm-comparison-table .highlight {
    background: #fff3cd;
    font-weight: 600;
}

/* ==========================================================================
   料金テーブル
   ========================================================================== */

.sm-price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.sm-price-table th {
    background: var(--bg-secondary, #f8f9fa);
    padding: 12px;
    text-align: left;
    font-weight: 700;
    border: 1px solid var(--border-color, #e0e5eb);
}

.sm-price-table td {
    padding: 12px;
    border: 1px solid var(--border-color, #e0e5eb);
}

/* ==========================================================================
   インフォボックス
   ========================================================================== */

.sm-info-box {
    background: #e3f2fd;
    border: 2px solid var(--primary-color, #0668E1);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.sm-info-box h4 {
    color: var(--primary-color, #0668E1);
    font-weight: 700;
    margin-bottom: 10px;
}

.sm-info-box p {
    margin-bottom: 10px;
}

.sm-info-box.success {
    background: #e8f5e9;
    border-color: var(--success-color, #10b981);
}

.sm-info-box.success h4 {
    color: #2e7d32;
}

.sm-info-box.warning {
    background: #fff3e0;
    border-color: var(--warning-color, #f59e0b);
}

.sm-info-box.warning h4 {
    color: #e65100;
}

/* ==========================================================================
   フィーチャーグリッド
   ========================================================================== */

.sm-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.sm-feature-card {
    background: var(--bg-secondary, #f8f9fa);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e0e5eb);
}

.sm-feature-card h4 {
    color: var(--primary-color, #0668E1);
    font-weight: 700;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .sm-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ケーススタディ
   ========================================================================== */

.sm-case-study {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.sm-case-study h4 {
    color: var(--primary-color, #0668E1);
    font-weight: 700;
    margin-bottom: 10px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.sm-faq-item {
    margin-bottom: 30px;
}

.sm-faq-question {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #333);
    margin-bottom: 10px;
}

.sm-faq-answer {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary, #333);
}

/* ==========================================================================
   ランキングリスト
   ========================================================================== */

.sm-ranking-list {
    list-style: none;
    padding: 0;
}

.sm-ranking-item {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color, #e0e5eb);
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.3s;
}

.sm-ranking-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sm-ranking-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color, #0668E1);
    min-width: 40px;
}

.sm-ranking-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.sm-ranking-info p {
    font-size: 13px;
    color: var(--text-secondary, #666);
    margin: 0;
}

/* ==========================================================================
   関連記事リンク
   ========================================================================== */

.sm-related-articles {
    list-style: none;
    padding: 0;
}

.sm-related-articles li {
    margin-bottom: 12px;
}

.sm-related-articles a {
    color: var(--primary-color, #0668E1);
    text-decoration: none;
    font-size: 14px;
}

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

/* ==========================================================================
   バッジ
   ========================================================================== */

.sm-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}

.sm-badge-recommended {
    background: var(--success-color, #10b981);
    color: white;
}

.sm-badge-popular {
    background: var(--warning-color, #f59e0b);
    color: white;
}

.sm-badge-new {
    background: var(--info-color, #3b82f6);
    color: white;
}

/* ==========================================================================
   ページヘッダー
   ========================================================================== */

.sm-page-header {
    margin-bottom: 40px;
}

.sm-page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary, #333);
    margin-bottom: 15px;
    line-height: 1.3;
}

.sm-page-header .lead {
    font-size: 18px;
    color: var(--text-secondary, #666);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .sm-page-header h1 {
        font-size: 24px;
    }

    .sm-comparison-table {
        font-size: 12px;
    }

    .sm-comparison-table th,
    .sm-comparison-table td {
        padding: 10px 8px;
    }
}

/* ==========================================================================
   商品画像プレースホルダー
   ========================================================================== */

.sm-product-img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.sm-product-img--card {
    height: 200px;
}

.sm-product-img--detail {
    height: 400px;
}

.sm-product-img--thumb {
    height: 120px;
}

.sm-no-image {
    background-color: #f1f3f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #adb5bd;
    width: 100%;
}

.sm-no-image--card {
    height: 200px;
}

.sm-no-image--detail {
    height: 400px;
}

.sm-no-image--thumb {
    height: 120px;
}

.sm-no-image__icon {
    width: 2.5rem;
    height: 2.5rem;
    color: inherit;
    stroke: currentColor;
}

.sm-no-image--thumb .sm-no-image__icon {
    width: 1.8rem;
    height: 1.8rem;
}

.sm-no-image--detail .sm-no-image__icon {
    width: 4rem;
    height: 4rem;
}

.sm-no-image__text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
