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

/* ============================================================
   Tesla Optimus 買取ページ専用スタイル (sto- prefix)
   ============================================================ */

/* ─── ページ背景 ────────────────────────────────────── */
.sto-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding-bottom: 60px;
}

/* ─── コンテナ ──────────────────────────────────────── */
.sto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── ヒーロー ──────────────────────────────────────── */
.sto-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3436 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sto-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.sto-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.sto-hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 15px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.sto-hero-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* ─── パンくずリスト ────────────────────────────────── */
.sto-breadcrumb-nav {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sto-breadcrumb {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
}

.sto-breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.sto-breadcrumb-item + .sto-breadcrumb-item::before {
    content: '›';
    margin: 0 8px;
    color: var(--text-secondary);
}

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

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

.sto-breadcrumb-item--active {
    color: var(--text-secondary);
}

/* ─── レイアウト ────────────────────────────────────── */
.sto-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 40px;
}

/* ─── メインコンテンツ ──────────────────────────────── */
.sto-main {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sto-section {
    margin-bottom: 50px;
}

.sto-section h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.sto-section h3 {
    font-size: 1.4rem;
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

.sto-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.sto-section ul,
.sto-section ol {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    padding-left: 25px;
}

.sto-section li {
    margin-bottom: 10px;
}

/* ─── 価格テーブル ──────────────────────────────────── */
.sto-price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sto-price-table thead {
    background: linear-gradient(135deg, var(--kaitori-gradient-start, #667eea) 0%, #764ba2 100%);
    color: white;
}

.sto-price-table th,
.sto-price-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.sto-price-table tbody tr:nth-child(even) {
    background: var(--bg-secondary);
}

.sto-price-table tbody tr:hover {
    background: #e8f4f8;
}

.sto-rank-s {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    font-weight: 700;
}

.sto-rank-a {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    font-weight: 600;
}

.sto-rank-b {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    font-weight: 500;
}

/* ─── フィーチャーグリッド ──────────────────────────── */
.sto-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.sto-feature-card {
    background: linear-gradient(135deg, var(--kaitori-gradient-start, #667eea) 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sto-feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.sto-feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.sto-feature-card p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

/* ─── フローステップ ────────────────────────────────── */
.sto-flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.sto-flow-step {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    position: relative;
}

.sto-step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.sto-flow-step h4 {
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #2c3e50;
}

.sto-flow-step p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.875rem;
}

/* ─── ロボットリスト ────────────────────────────────── */
.sto-robot-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.sto-robot-item {
    background: var(--bg-secondary);
    padding: 14px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.sto-robot-item:hover {
    background: #e8f4f8;
    transform: translateX(4px);
}

.sto-robot-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.sto-robot-item p {
    color: #666;
    font-size: 12px;
    margin: 0;
}

/* ─── FAQ ───────────────────────────────────────────── */
.sto-faq-list {
    margin: 20px 0;
}

.sto-faq-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 18px 20px;
}

.sto-faq-question {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sto-faq-question::before {
    content: 'Q';
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.sto-faq-answer {
    color: #555;
    line-height: 1.8;
    padding-left: 38px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sto-faq-answer::before {
    content: 'A';
    color: #e74c3c;
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── 査定フォーム ──────────────────────────────────── */
.sto-assessment-form {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 8px;
}

.sto-form-group {
    margin-bottom: 18px;
}

.sto-form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 14px;
}

.sto-form-group input,
.sto-form-group select,
.sto-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sto-form-group input:focus,
.sto-form-group select:focus,
.sto-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(6,104,225,0.1);
}

.sto-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.sto-submit-btn {
    background: #27ae60;
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.sto-submit-btn:hover {
    background: #229954;
    transform: translateY(-2px);
}

/* ─── サイドバー ────────────────────────────────────── */
.sto-sidebar {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.sto-sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sto-sidebar-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.sto-sidebar-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.sto-cta-btn {
    display: block;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(231,76,60,0.3);
}

.sto-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231,76,60,0.4);
    color: white;
}

/* ─── ランキングリスト ──────────────────────────────── */
.sto-ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sto-ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

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

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

.sto-ranking-item a {
    color: #2c3e50;
    text-decoration: none;
    flex: 1;
}

.sto-ranking-item a:hover {
    color: var(--primary-color);
}

/* ─── 関連リンク ────────────────────────────────────── */
.sto-related-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.sto-related-links a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    transition: all 0.2s;
}

.sto-related-links a::before {
    content: '›';
    margin-right: 8px;
    font-weight: 700;
}

.sto-related-links a:hover {
    padding-left: 4px;
    color: var(--primary-dark);
}

/* ─── レスポンシブ ──────────────────────────────────── */
@media (max-width: 768px) {
    .sto-layout {
        grid-template-columns: 1fr;
    }

    .sto-hero h1 {
        font-size: 1.8rem;
    }

    .sto-hero-subtitle {
        font-size: 1.1rem;
    }

    .sto-main {
        padding: 20px;
    }

    .sto-sidebar {
        position: static;
    }
}
