/**
 * BUYMA Automation System - Home Page Styles
 * Version: 1.0.0
 */

.buyma-home-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
        'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN',
        'Hiragino Sans', 'メイリオ', Meiryo, Osaka,
        'ＭＳ Ｐゴシック', 'MS PGothic';
    line-height: 1.6;
    color: #333333;
}

.buyma-home-wrapper * {
    box-sizing: border-box;
}

.buyma-container {
    width: 100%;
    max-width: 1232px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 576px) {
    .buyma-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .buyma-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .buyma-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .buyma-container {
        max-width: 1232px;
    }
}

.buyma-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333333;
}

/* Hero Section */
.buyma-hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    overflow: hidden;
    color: #ffffff;
}

.buyma-hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.buyma-hero-background.has-image {
    background-color: #000;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

.buyma-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.buyma-hero-title,
.buyma-hero-subtitle,
.buyma-hero-stats,
.buyma-hero-stats .buyma-stat-number,
.buyma-hero-stats .buyma-stat-label {
    color: #000000;
}

.buyma-hero-content {
    position: relative;
    z-index: 3;
    max-width: 660px;
}

.buyma-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.buyma-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.95;
}

.buyma-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.buyma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.buyma-btn-primary {
    background-color: #000000;
    color: #ffffff;
}

.buyma-btn-primary:hover,
.buyma-btn-primary:focus-visible {
    background-color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.buyma-btn-secondary {
    background-color: rgb(0, 128, 128);
    color: #ffffff;
}


.buyma-btn-secondary:hover,
.buyma-btn-secondary:focus-visible {
    background-color: rgba(0, 128, 128, 0.85);
    transform: translateY(-3px);
}

.buyma-hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.buyma-stat-item {
    text-align: center;
}

.buyma-stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.buyma-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Services */
.buyma-services-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.buyma-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.buyma-service-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.buyma-service-card:hover,
.buyma-service-card:focus-within {
    transform: translateY(-10px);
}

.buyma-service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.buyma-service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0066cc;
}

.buyma-service-desc {
    color: #666666;
    line-height: 1.8;
}

/* Features */
.buyma-features-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.buyma-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.buyma-feature-item {
    text-align: center;
}

.buyma-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.buyma-feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333333;
}

.buyma-feature-desc {
    color: #666666;
    line-height: 1.8;
}

/* Flow */
.buyma-flow-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.buyma-flow-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.buyma-step {
    flex: 1;
    min-width: 260px;
    text-align: center;
}

.buyma-step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background-color: #667eea;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.buyma-step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333333;
}

.buyma-step-desc {
    color: #666666;
    line-height: 1.8;
}

/* Pricing */
.buyma-pricing-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.buyma-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.buyma-pricing-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.buyma-pricing-title {
    text-align: center;
    color: #0066cc;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.buyma-pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.buyma-pricing-table th,
.buyma-pricing-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eeeeee;
    color: #666666;
}

.buyma-pricing-table th {
    background-color: #f8f9fa;
    color: #333333;
    font-weight: 600;
}

.buyma-discount {
    color: #e74c3c;
    font-weight: 600;
}

.buyma-pricing-note {
    margin-top: 1rem;
    text-align: center;
    color: #666666;
    font-size: 0.9rem;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .buyma-hero-title {
        font-size: 1.8rem;
    }

    .buyma-hero-subtitle {
        font-size: 1rem;
    }

    .buyma-section-title {
        font-size: 1.5rem;
    }

    .buyma-cta-buttons {
        flex-direction: column;
    }

    .buyma-btn {
        width: 100%;
    }

    .buyma-hero-stats {
        gap: 2rem;
    }

    .buyma-flow-steps {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .buyma-container {
        padding: 0 15px;
    }

    .buyma-hero-section {
        padding: 3rem 0;
        min-height: 420px;
    }

    .buyma-service-card,
    .buyma-pricing-card {
        padding: 1.5rem;
    }

    .buyma-step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}
