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

/*
 * lc-compare.css
 * ロボットリース比較・見積もりページ専用スタイル
 * prefix: lc- (lease compare)
 */

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

.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: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.content-row {
    display: grid;
    grid-template-columns: 1fr 350px;
    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: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

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

.cta-button {
    display: block;
    width: 100%;
    background: var(--primary-color);
    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;
}

.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: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

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

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

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

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

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

/* ============================================================
   テーブル
   ============================================================ */

.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);
}

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

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

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

.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: 30px 0;
}

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

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

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

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

.lease-type-table td {
    padding: 12px;
    border: 1px solid var(--border-color);
}

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

.info-box {
    background: #e3f2fd;
    border: 2px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 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: 30px 0;
}

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

.demerit-box {
    background: #fff3e0;
    border: 2px solid #ff9800;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

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

/* ============================================================
   特徴グリッド
   ============================================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 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;
}

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

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

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

/* 口コミ内の評価ヘッダー */
.lc-review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.lc-review-stars {
    color: #f59e0b;
}

.lc-review-score {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.lc-review-source {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

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

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

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

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

/* ============================================================
   ロボットタイプ別カードグリッド
   ============================================================ */

.lc-robot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 12px;
}

.lc-robot-card {
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.lc-robot-card:hover {
    box-shadow: inset 0 0 0 1px var(--border-color, #ddd);
}

.lc-robot-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.lc-robot-icon-warning { color: #f59e0b; }
.lc-robot-icon-success { color: #10b981; }
.lc-robot-icon-primary { color: var(--primary-color); }
.lc-robot-icon-danger  { color: #ef4444; }

.lc-robot-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.lc-robot-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================================
   ランキング・目次
   ============================================================ */

.case-study-card {
    transition: box-shadow 0.2s;
}

.case-study-card:hover {
    box-shadow: inset 0 0 0 1px var(--border-color, #ddd);
}

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

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

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

.ranking-item {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
    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: 24px;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 40px;
}

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

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

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

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

.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: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}

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

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

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

.toc-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.toc-box h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.toc-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-box li {
    margin-bottom: 0.5rem;
}

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

.toc-box a:hover {
    color: var(--primary-color);
}

.update-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

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

    .main-content {
        padding: 25px;
    }

    .sidebar {
        position: static;
    }

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

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

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

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

    .lc-robot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
