/**
 * AdQuecto Home Page CSS
 * トップページ専用スタイル
 */

/* ===========================================
   Hero Section
=========================================== */

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    display: flex;
    align-items: center;
    padding: var(--space-10) 0 var(--space-16);
    background: linear-gradient(
        180deg,
        var(--color-bg-primary) 0%,
        var(--color-bg-light-blue) 100%
    );
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(30, 75, 142, 0.06) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

@media (min-width: 768px) {
    .hero {
        padding: var(--space-16) 0 var(--space-20);
    }
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

@media (min-width: 1024px) {
    .hero-inner {
        flex-direction: row;
        align-items: center;
        gap: var(--space-12);
    }
}

.hero-content {
    flex: 1;
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
        max-width: 640px;
    }
}

/* Hero Label */
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, rgba(232, 212, 138, 0.1) 100%);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent-gold);
    letter-spacing: var(--letter-spacing-wide);
    margin-bottom: var(--space-5);
}

.hero-label svg {
    width: 14px;
    height: 14px;
}

/* Hero Problem Statement */
.hero-problem {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--color-text-muted);
}

@media (min-width: 768px) {
    .hero-problem {
        font-size: var(--font-size-base);
    }
}

/* Hero Title */
.hero-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-deep-blue);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--font-size-4xl);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
}

.hero-title-highlight {
    position: relative;
    display: inline;
    color: var(--color-accent-gold);
}

.hero-title-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.3) 0%, rgba(232, 212, 138, 0.3) 100%);
    z-index: -1;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: var(--font-size-md);
    }
}

/* Hero Stats Badges */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    margin-bottom: var(--space-8);
}

@media (min-width: 1024px) {
    .hero-stats {
        justify-content: flex-start;
    }
}

.hero-stat-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.hero-stat-value {
    font-family: var(--font-family-en);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-blue);
}

.hero-stat-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

/* Hero CTA */
.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

.hero-cta .btn {
    width: 100%;
}

@media (min-width: 640px) {
    .hero-cta .btn {
        width: auto;
    }
}

/* Hero Trust */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
}

@media (min-width: 1024px) {
    .hero-trust {
        justify-content: flex-start;
    }
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.hero-trust-item svg {
    width: 16px;
    height: 16px;
    color: var(--color-success);
}

/* Hero Visual */
.hero-visual {
    display: none;
    position: relative;
}

@media (min-width: 1024px) {
    .hero-visual {
        display: flex;
        flex: 1;
        justify-content: center;
    }
}

/* Scroll Indicator */
.scroll-indicator-wrap {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.scroll-indicator-text {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    letter-spacing: var(--letter-spacing-wider);
    text-transform: uppercase;
}

.scroll-indicator-arrow {
    width: 24px;
    height: 24px;
    color: var(--color-text-muted);
    animation: scrollBounce 2s ease-in-out infinite;
}

@media (max-width: 767px) {
    .scroll-indicator-wrap {
        display: none;
    }
}

/* ===========================================
   Problems Section
=========================================== */

.problems-section {
    background: var(--color-bg-primary);
}

.problems-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-10);
}

.problems-intro-text {
    font-size: var(--font-size-md);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

.problems-grid {
    display: grid;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (min-width: 1024px) {
    .problems-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.problem-card {
    padding: var(--space-6);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    transition: all var(--duration-normal) var(--ease-out);
}

.problem-card:hover {
    background: var(--color-bg-primary);
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.problem-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, rgba(30, 75, 142, 0.1) 0%, rgba(42, 95, 158, 0.1) 100%);
    border-radius: var(--radius-lg);
    color: var(--color-primary-blue);
}

.problem-icon svg {
    width: 24px;
    height: 24px;
}

.problem-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--color-deep-blue);
    margin-bottom: var(--space-2);
}

.problem-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ===========================================
   Services Section
=========================================== */

.services-section {
    background: var(--color-bg-secondary);
}

.services-grid {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
}

.service-card {
    padding: var(--space-8);
    background: var(--color-bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-gold-gradient);
    transform: scaleX(0);
    transition: transform var(--duration-normal) var(--ease-out);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-number {
    font-family: var(--font-family-en);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent-gold);
    letter-spacing: var(--letter-spacing-widest);
    margin-bottom: var(--space-4);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-5);
    background: linear-gradient(135deg, var(--color-bg-light-blue) 0%, rgba(30, 75, 142, 0.1) 100%);
    border-radius: var(--radius-xl);
    color: var(--color-primary-blue);
}

.service-icon svg {
    width: 36px;
    height: 36px;
}

.service-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-deep-blue);
    margin-bottom: var(--space-3);
}

.service-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-5);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary-blue);
    text-decoration: none;
    transition: gap var(--duration-fast) var(--ease-out);
}

.service-link:hover {
    gap: var(--space-3);
}

.service-link svg {
    width: 16px;
    height: 16px;
}

/* ===========================================
   Why Section
=========================================== */

.why-section {
    background: var(--color-bg-primary);
}

.why-grid {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.why-card {
    padding: var(--space-6);
    text-align: center;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    transition: all var(--duration-normal) var(--ease-out);
}

.why-card:hover {
    border-color: var(--color-primary-blue);
    box-shadow: var(--shadow-blue);
}

.why-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    background: var(--color-bg-light-blue);
    border-radius: var(--radius-full);
    color: var(--color-primary-blue);
}

.why-icon svg {
    width: 28px;
    height: 28px;
}

.why-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-deep-blue);
    margin-bottom: var(--space-2);
}

.why-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ===========================================
   Stats Section
=========================================== */

.stats-section {
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-darker) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(201, 162, 39, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(30, 75, 142, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-8);
    }
}

.stat-item {
    text-align: center;
    padding: var(--space-4);
}

.stat-number {
    font-family: var(--font-family-en);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-inverse);
    line-height: 1;
    margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
    .stat-number {
        font-size: var(--font-size-4xl);
    }
}

.stat-unit {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--color-light-gold);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* ===========================================
   Flow Section
=========================================== */

.flow-section {
    background: var(--color-bg-primary);
}

.flow-list {
    counter-reset: flow-counter;
    max-width: 800px;
    margin: 0 auto;
}

.flow-item {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--color-border-light);
    position: relative;
}

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

.flow-number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-gold-gradient);
    color: var(--color-deep-blue);
    font-family: var(--font-family-en);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-gold);
}

.flow-content {
    flex: 1;
    padding-top: var(--space-2);
}

.flow-title {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    color: var(--color-deep-blue);
    margin-bottom: var(--space-2);
}

.flow-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: 0;
}

/* ===========================================
   CTA Section
=========================================== */

.cta-section {
    background: var(--color-bg-secondary);
}

.cta-box {
    padding: var(--space-10);
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-darker) 100%);
    border-radius: var(--radius-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-box {
        padding: var(--space-14);
    }
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(201, 162, 39, 0.08) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-inverse);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .cta-title {
        font-size: var(--font-size-2xl);
    }
}

.cta-description {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.cta-note {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}
