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

/*
 * lr-robot-lease-common.css
 * ロボットリース カテゴリページ共通スタイル
 * prefix: (なし / ページ固有クラスをそのまま使用)
 * 対象: lease/robot/delivery/, lease/robot/serving/, lease/robot/industrial/
 */

/* ============================================================
   ページレイアウト
   ============================================================ */

.robot-lease-page {
    padding: 40px 0;
    background: var(--bg-primary);
}

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

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

.breadcrumb-nav {
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumb-nav a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.breadcrumb-nav span {
    color: var(--text-secondary);
    margin: 0 8px;
}

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

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

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

.page-header .lead {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   コンテンツレイアウト
   ============================================================ */

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

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

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

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

.sidebar-box h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
}

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

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

.cta-button:hover {
    background: var(--secondary-color);
    color: white;
}

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

.cta-button.secondary:hover {
    background: var(--bg-secondary);
}

/* ============================================================
   セクション
   ============================================================ */

.section {
    margin-bottom: 50px;
}

.section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
}

.section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 28px 0 14px;
}

.section h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 22px 0 10px;
}

.section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.section ul,
.section ol {
    margin: 18px 0;
    padding-left: 28px;
}

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

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

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

.comparison-table thead {
    background: var(--primary-color);
    color: white;
}

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

.comparison-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    vertical-align: middle;
}

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

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

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

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

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

.price-table td {
    padding: 12px;
    border: 1px solid var(--border-color);
    font-size: 14px;
}

/* ============================================================
   情報ボックス
   ============================================================ */

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

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

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

.merit-box {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    padding: 20px;
    border-radius: 8px;
    margin: 28px 0;
}

.merit-box h4 {
    color: #2e7d32;
    font-weight: 700;
    margin-bottom: 10px;
}

.warning-box {
    background: #fff8e1;
    border: 2px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin: 28px 0;
}

.warning-box h4 {
    color: #e65100;
    font-weight: 700;
    margin-bottom: 10px;
}

/* 産業用ロボット専用: 安全ボックス */
.safety-box {
    background: #fce4ec;
    border: 2px solid #e91e63;
    padding: 20px;
    border-radius: 8px;
    margin: 28px 0;
}

.safety-box h4 {
    color: #880e4f;
    font-weight: 700;
    margin-bottom: 10px;
}

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

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

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

.feature-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 15px;
}

.feature-card p {
    font-size: 14px;
    margin-bottom: 0;
}

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

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

.case-study h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 12px;
}

/* ============================================================
   ランキング
   ============================================================ */

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

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

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

.ranking-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 36px;
}

.ranking-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ranking-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

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

.faq-item {
    margin-bottom: 28px;
}

.faq-question {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

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

/* ============================================================
   関連記事
   ============================================================ */

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

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

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

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

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

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}

.badge-recommended {
    background: #4caf50;
    color: white;
}

.badge-popular {
    background: #ff9800;
    color: white;
}

.badge-new {
    background: #2196f3;
    color: white;
}

/* ============================================================
   目次ボックス
   ============================================================ */

.toc-box {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.toc-box h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.toc-box ol {
    margin: 0;
    padding-left: 22px;
}

.toc-box li {
    font-size: 14px;
    margin-bottom: 6px;
}

.toc-box a {
    color: var(--primary-color);
    text-decoration: none;
}

.toc-box a:hover {
    text-decoration: underline;
}

/* ============================================================
   更新日
   ============================================================ */

.update-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ============================================================
   スペックラベル（配膳ロボットページ用）
   ============================================================ */

.spec-label {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 5px;
}

/* ============================================================
   リースの流れ（サイドバー）
   ============================================================ */

.lease-flow-list {
    list-style: decimal;
    padding-left: 20px;
}

.lease-flow-list li {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-primary);
}

/* ============================================================
   レスポンシブ
   ============================================================ */

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

    .main-content {
        padding: 24px;
    }

    .sidebar {
        position: static;
    }

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

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

    .comparison-table th,
    .comparison-table td {
        padding: 9px 7px;
    }

    .page-header h1 {
        font-size: 22px;
    }
}
