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

/*
 * tl-lease.css
 * Tesla Optimus リースページ専用スタイル
 * prefix: tl-
 */

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

.tl-hero {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    color: white;
    padding: 60px 20px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.tl-table thead {
    background: #2d3436;
    color: white;
}

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

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

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

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

.tl-recommend-col {
    background: #2d3436;
    color: #ffd700;
}

.tl-recommend-cell {
    background: #f0f7e6;
    font-weight: bold;
    color: #2d6a4f;
}

.tl-compare-table thead {
    background: #374151;
    color: white;
}

.tl-compare-table thead th {
    font-weight: 600;
    padding: 14px 12px;
    text-align: center;
    border: 1px solid #2d3748;
}

.tl-compare-table td {
    vertical-align: middle;
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.tl-compare-label {
    font-weight: 600;
    text-align: left;
    background: var(--bg-secondary);
}

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

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

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

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

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

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

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

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

/* ============================================================
   メリットカード（4カラム）
   ============================================================ */

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

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

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

.tl-merit-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

/* ============================================================
   導入事例カード（3カラム）
   ============================================================ */

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

.tl-case-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
}

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

.tl-case-industry {
    background: #2d3436;
    color: white;
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tl-case-plan {
    font-size: 0.75rem;
    color: #6c757d;
}

.tl-case-result {
    margin-top: auto;
    padding-top: 1rem;
    padding: 10px;
    background: #f0f7e6;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.tl-result-label {
    font-size: 0.8rem;
    color: #6c757d;
}

.tl-result-value {
    font-weight: bold;
    color: #2d6a4f;
}

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

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

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

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

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

.tl-faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--primary-color);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 12px;
}

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

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

/* 最初のFAQを開いた状態に見せる */
.tl-faq-item:first-child {
    border-color: var(--primary-color);
}

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

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

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

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

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

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

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

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

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

.tl-final-cta {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .tl-cases {
        grid-template-columns: 1fr;
    }

    .tl-case-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 576px) {
    .tl-merits {
        grid-template-columns: 1fr;
    }

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

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