/* =====================================================
   Tesla Robot Kaitori Page CSS
   Prefix: tk-
   MacClaw風デザイン準拠
   ===================================================== */
@import url('/css/variables.css');

/* =====================================================
   レイアウト
   ===================================================== */

.tk-hero {
    background: linear-gradient(135deg, var(--kaitori-gradient-start, #667eea) 0%, #764ba2 100%);
    color: #fff;
    padding: 72px 0 56px;
}

.tk-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.tk-section {
    padding: 64px 0;
}

.tk-section--alt {
    padding: 64px 0;
    background: var(--bg-secondary);
}

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

.tk-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.tk-hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 24px;
    color: #fff;
}

.tk-hero-title-sub {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 8px;
    opacity: 0.92;
}

.tk-hero-price {
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: inline-block;
    margin-bottom: 28px;
}

.tk-price-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.85;
    margin-bottom: 4px;
}

.tk-price-amount {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffd700;
}

.tk-hero-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    font-size: 1rem;
}

.tk-hero-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.tk-hero-features li i {
    color: #86efac;
    font-size: 1rem;
    flex-shrink: 0;
}

.tk-hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tk-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-md);
}

.tk-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tk-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.tk-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

.tk-hero-image {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
}

.tk-hero-image img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* =====================================================
   共通見出し
   ===================================================== */

.tk-section-heading {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin: 0 0 40px;
}

/* =====================================================
   買取の流れ
   ===================================================== */

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

.tk-flow-step {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 32px 20px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.tk-step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--kaitori-gradient-start, #667eea) 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.tk-step-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.tk-step-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.tk-flow-step h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.tk-flow-step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* =====================================================
   価格表
   ===================================================== */

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

.tk-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.tk-price-table th,
.tk-price-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.tk-price-table thead th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.tk-price-table td:first-child {
    text-align: left;
}

.tk-price-high {
    font-weight: 700;
    color: var(--primary-color);
}

.tk-price-mid {
    font-weight: 700;
    color: var(--success-color);
}

.tk-price-low {
    font-weight: 700;
    color: var(--warning-color);
}

.tk-table-note {
    margin-top: 16px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* =====================================================
   特長カード（なぜ選ばれるか）
   ===================================================== */

.tk-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tk-feature-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tk-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.tk-feature-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tk-feature-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.tk-feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
}

.tk-feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* =====================================================
   お客様の声
   ===================================================== */

.tk-review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tk-review-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
}

.tk-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tk-review-avatar {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tk-review-avatar i {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.tk-review-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.tk-review-stars {
    color: #f59e0b;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.tk-review-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
}

/* =====================================================
   FAQ アコーディオン (vanilla JS)
   ===================================================== */

.tk-faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.tk-faq-item {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.tk-faq-question {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    cursor: pointer;
    transition: background 0.2s;
    list-style: none;
}

.tk-faq-question::-webkit-details-marker {
    display: none;
}

.tk-faq-item[open] .tk-faq-question,
.tk-faq-question:hover {
    background: var(--bg-secondary);
}

.tk-faq-q-badge {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.tk-faq-q-text {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.tk-faq-arrow {
    color: var(--text-secondary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.tk-faq-item[open] .tk-faq-arrow {
    transform: rotate(180deg);
}

.tk-faq-answer {
    display: flex;
    gap: 14px;
    padding: 0 24px 20px;
}

.tk-faq-a-badge {
    width: 30px;
    height: 30px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.tk-faq-a-text {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* =====================================================
   関連サービス
   ===================================================== */

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

.tk-service-card {
    display: block;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tk-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

.tk-service-emoji {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.tk-service-card h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.tk-service-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* =====================================================
   ボトムCTA
   ===================================================== */

.tk-cta-section {
    background: linear-gradient(135deg, var(--kaitori-gradient-start, #667eea) 0%, #764ba2 100%);
    padding: 72px 0;
    text-align: center;
    color: #fff;
}

.tk-cta-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
}

.tk-cta-section p {
    font-size: 1.0625rem;
    opacity: 0.92;
    margin: 0 0 36px;
}

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

.tk-cta-note {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    font-size: 0.875rem !important;
    opacity: 0.8 !important;
}

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

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

    .tk-hero-image {
        display: none;
    }

    .tk-hero-title {
        font-size: 2.125rem;
    }

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

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

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

@media (max-width: 768px) {
    .tk-hero {
        padding: 48px 0 40px;
    }

    .tk-section,
    .tk-section--alt {
        padding: 48px 0;
    }

    .tk-hero-title {
        font-size: 1.75rem;
    }

    .tk-hero-title-sub {
        font-size: 1.125rem;
    }

    .tk-price-amount {
        font-size: 1.875rem;
    }

    .tk-section-heading {
        font-size: 1.375rem;
    }

    .tk-hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .tk-review-grid {
        grid-template-columns: 1fr;
    }

    .tk-cta-section h2 {
        font-size: 1.375rem;
    }

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

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

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

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