/* ============================================
   インビックス TOPページ スタイル
   ============================================ */

/* CSS変数 */
.top-page {
    --primary: #1a5f7a;
    --primary-dark: #134a5f;
    --primary-light: #e8f4f8;
    --accent: #e67e22;
    --accent-light: #fef5e7;
    --text-dark: #2c3e50;
    --text-muted: #6b7c8a;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-display: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

.top-page {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

.top-page *,
.top-page *::before,
.top-page *::after {
    box-sizing: border-box;
}

/* ============================================
   ヒーローセクション
   ============================================ */
.top-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a5f7a 0%, #2d8a9e 50%, #1a5f7a 100%);
    overflow: hidden;
}

.top-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(230, 126, 34, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.top-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--white) 0%, transparent 100%);
    pointer-events: none;
}

.top-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.top-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    border-radius: 50px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

.top-hero-badge i {
    color: var(--accent);
}

.top-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.top-hero-title .highlight {
    color: var(--accent);
    position: relative;
}

.top-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.top-hero-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.top-hero-service-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-hero-service-tag:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.top-hero-service-tag i {
    color: var(--accent);
    font-size: 1.1rem;
}

.top-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.top-hero-stat {
    text-align: center;
}

.top-hero-stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.top-hero-stat-number span {
    font-size: 0.5em;
    font-weight: 500;
}

.top-hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   共通セクションスタイル
   ============================================ */
.top-section {
    padding: 100px 20px;
}

.top-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.top-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.top-section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.top-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.4;
}

.top-section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   3つのサービスセクション
   ============================================ */
.top-services {
    background: var(--gray-50);
}

.top-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .top-services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.top-service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.top-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.top-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.top-service-card:hover::before {
    transform: scaleX(1);
}

.top-service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #d4eef5 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.top-service-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}

.top-service-card:nth-child(2) .top-service-icon {
    background: linear-gradient(135deg, #fef5e7 0%, #fdebd0 100%);
}

.top-service-card:nth-child(2) .top-service-icon i {
    color: var(--accent);
}

.top-service-card:nth-child(3) .top-service-icon {
    background: linear-gradient(135deg, #e8f8f5 0%, #d0ece7 100%);
}

.top-service-card:nth-child(3) .top-service-icon i {
    color: #16a085;
}

.top-service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.top-service-price {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
}

.top-service-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

.top-service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.top-service-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.top-service-features li i {
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}

.top-service-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.top-service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.top-service-link:hover {
    color: var(--accent);
}

.top-service-link i {
    transition: transform 0.3s ease;
}

.top-service-link:hover i {
    transform: translateX(4px);
}

.top-service-main-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.top-service-main-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   選ばれる理由セクション
   ============================================ */
.top-reasons {
    background: var(--white);
}

.top-reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .top-reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .top-reasons-grid {
        grid-template-columns: 1fr;
    }
}

.top-reason-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-reason-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.top-reason-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.top-reason-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.top-reason-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.top-reason-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   対応エリアセクション
   ============================================ */
.top-areas {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.top-areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .top-areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .top-areas-grid {
        grid-template-columns: 1fr;
    }
}

.top-area-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-area-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.top-area-rank {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #f1c40f 0%, #e67e22 100%);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-area-rank i {
    font-size: 0.7rem;
}

.top-area-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.top-area-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* エリアごとのカラーバリエーション */
.top-area-card.odawara .top-area-icon {
    background: #e8f0f7;
}
.top-area-card.odawara .top-area-icon i {
    color: #2c3e7a;
}

.top-area-card.atami .top-area-icon {
    background: #fef5e7;
}
.top-area-card.atami .top-area-icon i {
    color: #e67e22;
}

.top-area-card.ito .top-area-icon {
    background: #e8f4fc;
}
.top-area-card.ito .top-area-icon i {
    color: #2980b9;
}

.top-area-card.hakone .top-area-icon {
    background: #e8f8f5;
}
.top-area-card.hakone .top-area-icon i {
    color: #27ae60;
}

.top-area-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.top-area-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.top-area-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.top-area-link:hover {
    color: var(--accent);
}

.top-area-link i {
    transition: transform 0.3s ease;
}

.top-area-link:hover i {
    transform: translateX(4px);
}

/* ============================================
   サービスの流れセクション
   ============================================ */
.top-flow {
    background: var(--primary);
    color: var(--white);
}

.top-flow .top-section-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.top-flow .top-section-title {
    color: var(--white);
}

.top-flow .top-section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.top-flow-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
}

.top-flow-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
}

@media (max-width: 1024px) {
    .top-flow-steps::before {
        display: none;
    }
}

.top-flow-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.top-flow-number {
    width: 80px;
    height: 80px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.top-flow-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.top-flow-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ============================================
   お客様の声セクション
   ============================================ */
.top-testimonials {
    background: var(--gray-50);
}

.top-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .top-testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.top-testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.top-testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 28px;
    font-size: 4rem;
    color: var(--primary-light);
    font-family: Georgia, serif;
    line-height: 1;
}

.top-testimonial-service {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.top-testimonial-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.top-testimonial-author {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   FAQセクション
   ============================================ */
.top-faq {
    background: var(--white);
}

.top-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.top-faq-item {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.top-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: background 0.3s ease;
}

.top-faq-question:hover {
    background: var(--gray-100);
}

.top-faq-icon {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.top-faq-icon::before,
.top-faq-icon::after {
    content: '';
    position: absolute;
    background: var(--white);
}

.top-faq-icon::before {
    width: 12px;
    height: 2px;
}

.top-faq-icon::after {
    width: 2px;
    height: 12px;
    transition: transform 0.3s ease;
}

.top-faq-item.active .top-faq-icon::after {
    transform: rotate(90deg);
}

.top-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.top-faq-item.active .top-faq-answer {
    max-height: 300px;
}

.top-faq-answer-content {
    padding: 0 28px 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================
   CTAセクション
   ============================================ */
.top-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 20px;
    text-align: center;
}

.top-cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.top-cta-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.top-cta-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.top-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.top-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-cta-btn.primary {
    background: var(--white);
    color: var(--primary);
}

.top-cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.top-cta-btn.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.top-cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.top-cta-info {
    margin-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   アニメーション
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.top-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* アニメーション遅延 */
.top-animate-delay-1 { transition-delay: 0.1s; }
.top-animate-delay-2 { transition-delay: 0.2s; }
.top-animate-delay-3 { transition-delay: 0.3s; }
.top-animate-delay-4 { transition-delay: 0.4s; }

/* ============================================
   レスポンシブ調整
   ============================================ */
@media (max-width: 768px) {
    .top-section {
        padding: 70px 16px;
    }
    
    .top-hero {
        min-height: 70vh;
    }
    
    .top-hero-stats {
        gap: 24px;
    }
    
    .top-hero-stat-number {
        font-size: 2rem;
    }
    
    .top-service-card {
        padding: 32px 24px;
    }
    
    .top-flow-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .top-flow-step {
        min-width: 100%;
        max-width: 300px;
    }
    
    .top-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .top-cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}