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

/*
 * tr-rental.css
 * Tesla Optimus レンタルページ専用スタイル
 * prefix: tr-
 */

/* ============================================================
   ヒーローセクション
   ============================================================ */

.tr-hero {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    color: white;
    padding: 60px 20px;
}

.tr-hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.tr-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.tr-hero-title {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tr-hero-title-sub {
    font-size: 1.4rem;
    font-weight: normal;
}

.tr-text-highlight {
    color: #ffd700;
}

.tr-hero-price {
    background: rgba(255,255,255,0.15);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.tr-price-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.tr-price-amount {
    display: block;
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffd700;
}

.tr-hero-features {
    list-style: none;
    padding: 0;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.tr-hero-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5em;
    position: relative;
}

.tr-hero-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #ffd700;
    font-weight: bold;
}

.tr-hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tr-hero-img-wrap {
    text-align: center;
}

.tr-hero-img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* ============================================================
   共通コンテナ・セクション
   ============================================================ */

.tr-section {
    padding: 60px 20px;
}

.tr-section-bg {
    padding: 60px 20px;
    background: var(--bg-secondary, #f8f9fa);
}

.tr-container {
    max-width: 1140px;
    margin: 0 auto;
}

.tr-container-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.tr-section-title {
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--gray-midashi, #374151);
    font-size: 1.75rem;
}

.tr-section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 2.5rem;
}

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

.tr-table-wrap {
    overflow-x: auto;
}

.tr-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
}

.tr-table thead {
    background: #0077b6;
    color: white;
}

.tr-table thead th {
    font-weight: 600;
    padding: 14px 12px;
    text-align: center;
    border: 1px solid #005f8d;
}

.tr-table td {
    vertical-align: middle;
    padding: 14px 12px;
    border: 1px solid var(--border-color);
}

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

.tr-price-cell {
    text-align: center;
    font-weight: 600;
    font-size: 1.05rem;
}

.tr-highlight-cell {
    background: #e8f4f8;
}

.tr-text-muted-sm {
    font-size: 0.8rem;
    color: #6c757d;
}

.tr-text-success-sm {
    font-size: 0.8rem;
    color: #10b981;
}

.tr-price-notes {
    margin-top: 1rem;
}

.tr-price-notes p {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

/* ============================================================
   ステップフロー（4ステップ）
   ============================================================ */

.tr-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tr-step {
    text-align: center;
}

.tr-step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0077b6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.tr-step h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ============================================================
   活用シーンカード（3カラム）
   ============================================================ */

.tr-scenes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tr-scene-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 24px 20px;
    transition: transform 0.2s;
}

.tr-scene-card:hover {
    transform: translateY(-4px);
}

.tr-scene-icon {
    width: 50px;
    height: 50px;
    background: #e8f4f8;
    color: #0077b6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.tr-scene-list {
    padding-left: 1.2rem;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #555;
}

.tr-scene-list li {
    margin-bottom: 0.3rem;
}

/* ============================================================
   理由カード（3カラム）
   ============================================================ */

.tr-reasons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tr-reason-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 24px 20px;
    text-align: center;
}

.tr-reason-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tr-reason-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* ============================================================
   テスティモニアル（3カラム）
   ============================================================ */

.tr-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tr-testimonial-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 24px 20px;
}

.tr-testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 6px;
}

.tr-testimonial-header h5 {
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.tr-testimonial-period {
    font-size: 0.8rem;
    background: #e8f4f8;
    color: #0077b6;
    padding: 2px 10px;
    border-radius: 10px;
}

.tr-rating {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-top: 0.75rem;
}

/* ============================================================
   FAQ アコーディオン（独自実装 - details/summary）
   ============================================================ */

.tr-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tr-faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.tr-faq-item summary {
    padding: 18px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    user-select: none;
}

.tr-faq-item summary::-webkit-details-marker {
    display: none;
}

.tr-faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    color: #0077b6;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 12px;
}

.tr-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.tr-faq-body {
    padding: 0 20px 18px;
    color: var(--text-primary);
    line-height: 1.7;
}

.tr-faq-item:first-child {
    border-color: #0077b6;
}

/* ============================================================
   関連サービスカード（4カラム）
   ============================================================ */

.tr-related {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tr-related-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tr-related-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 100%;
}

.tr-related-card:hover {
    border-color: #0077b6;
    box-shadow: 0 4px 16px rgba(0,119,182,0.15);
}

.tr-related-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tr-related-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.tr-related-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================================
   最終CTA
   ============================================================ */

.tr-final-cta {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.tr-final-cta h2 {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.tr-final-cta-desc {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.tr-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.tr-final-note {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

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

.tr-btn-light {
    display: inline-block;
    background: white;
    color: #0077b6;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.tr-btn-light:hover {
    opacity: 0.9;
}

.tr-btn-outline-light {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 13px 27px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid white;
    transition: background 0.2s;
}

.tr-btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
}

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

@media (max-width: 992px) {
    .tr-hero-inner {
        grid-template-columns: 1fr;
    }

    .tr-hero-img-wrap {
        order: -1;
    }

    .tr-reasons {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .tr-hero {
        padding: 40px 20px;
    }

    .tr-hero-title {
        font-size: 2rem;
    }

    .tr-price-amount {
        font-size: 1.8rem;
    }

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

    .tr-scenes {
        grid-template-columns: 1fr;
    }

    .tr-testimonials {
        grid-template-columns: 1fr;
    }

    .tr-testimonial-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tr-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .tr-related {
        grid-template-columns: repeat(2, 1fr);
    }

    .tr-steps {
        grid-template-columns: 1fr;
    }
}
