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

/* ============================================================
   ロボット派遣 比較・見積もりページ
   ============================================================ */

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

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 24px;
    font-size: 14px;
    list-style: none;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #999;
    margin-right: 4px;
}

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

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

.breadcrumb-item.active {
    color: #666;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.page-header .lead {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
}

.content-wrapper {
    display: flex;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content-area {
    flex: 1;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

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

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

.content-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.content-section p {
    line-height: 1.8;
    color: #333;
    margin-bottom: 16px;
}

.content-section ul,
.content-section ol {
    margin: 16px 0;
    padding-left: 24px;
}

.content-section li {
    line-height: 1.8;
    color: #333;
    margin-bottom: 8px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

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

.comparison-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table tbody tr:hover {
    background: #f9f9f9;
}

.comparison-table .company-name {
    font-weight: 600;
    color: var(--text-primary);
}

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

.check-icon {
    color: #4caf50;
    font-weight: bold;
}

.cross-icon {
    color: #f44336;
    font-weight: bold;
}

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

.price-table thead {
    background: var(--gray-midashi);
    color: white;
}

.price-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
}

.price-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.price-table .robot-type {
    font-weight: 600;
    color: var(--text-primary);
}

.price-table .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.benefit-box {
    background: #e3f2fd;
    padding: 20px;
    margin: 24px 0;
    border-radius: 4px;
}

.benefit-box h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.benefit-box p {
    margin-bottom: 8px;
    color: #333;
}

.warning-box {
    background: #fff3cd;
    padding: 20px;
    margin: 24px 0;
    border-radius: 4px;
}

.warning-box h4 {
    font-size: 18px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 12px;
}

.warning-box p {
    margin-bottom: 8px;
    color: #856404;
}

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

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

.case-study .meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.case-study .result {
    background: white;
    padding: 16px;
    border-radius: 4px;
    margin-top: 16px;
}

.case-study .result h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

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

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

.cta-button {
    display: block;
    width: 100%;
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.cta-button:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

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

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

.ranking-item {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-number {
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.ranking-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.ranking-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

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

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

.related-links a {
    display: block;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
}

.related-links a:hover {
    background: var(--primary-color);
    color: white;
}

.faq-section {
    margin-top: 32px;
}

.faq-item {
    margin-bottom: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f5f5f5;
    padding: 16px 20px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.faq-question::before {
    content: "Q. ";
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 8px;
}

.faq-answer {
    padding: 16px 20px;
    background: white;
    line-height: 1.8;
    color: #333;
}

.faq-answer::before {
    content: "A. ";
    color: #4caf50;
    font-weight: 700;
    margin-right: 8px;
}

/* サイドバー内の電話番号 */
.sidebar-phone {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 16px 0;
    display: block;
}

.sidebar-hours {
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.6;
}

/* テキスト補足（小さい） */
.text-small-center {
    font-size: 13px;
    text-align: center;
    color: #666;
    margin-top: 12px;
}

@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

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

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

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

@media (max-width: 768px) {
    .comparison-table,
    .price-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
