/**
 * AI Bridge LP Hero Block Styles
 */

/* ヒーローセクション基本 */
.aibridge-lp-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.aibridge-lp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.aibridge-lp-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    padding: 60px 20px;
}

/* バッジ */
.aibridge-lp-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease-out;
}

/* 見出し */
.aibridge-lp-hero-headline {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    white-space: pre-line;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* サブテキスト */
.aibridge-lp-hero-subheadline {
    font-size: clamp(16px, 2.5vw, 22px);
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* ボタンコンテナ */
.aibridge-lp-hero-buttons {
    display: inline-flex; /* inline-flexで親のtext-alignが効く */
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* text-align継承 - 親のtext-alignに連動 */
.aibridge-lp-hero-content {
    text-align: center; /* デフォルト中央 */
}

.aibridge-lp-hero-content[style*="text-align:center"],
.aibridge-lp-hero-content[style*="text-align: center"] {
    text-align: center;
}

.aibridge-lp-hero-content[style*="text-align:center"] .aibridge-lp-hero-buttons,
.aibridge-lp-hero-content[style*="text-align: center"] .aibridge-lp-hero-buttons {
    justify-content: center;
}

.aibridge-lp-hero-content[style*="text-align:left"],
.aibridge-lp-hero-content[style*="text-align: left"] {
    text-align: left;
}

.aibridge-lp-hero-content[style*="text-align:left"] .aibridge-lp-hero-buttons,
.aibridge-lp-hero-content[style*="text-align: left"] .aibridge-lp-hero-buttons {
    justify-content: flex-start;
}

.aibridge-lp-hero-content[style*="text-align:right"],
.aibridge-lp-hero-content[style*="text-align: right"] {
    text-align: right;
}

.aibridge-lp-hero-content[style*="text-align:right"] .aibridge-lp-hero-buttons,
.aibridge-lp-hero-content[style*="text-align: right"] .aibridge-lp-hero-buttons {
    justify-content: flex-end;
}

/* CTAボタン */
.aibridge-lp-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 42px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.aibridge-lp-hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

/* セカンダリボタン */
.aibridge-lp-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 42px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    background: transparent;
    border: 2px solid currentColor;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.aibridge-lp-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 実績数値 */
.aibridge-lp-hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.aibridge-lp-hero-stat {
    text-align: center;
}

.aibridge-lp-hero-stat .stat-number {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.aibridge-lp-hero-stat .stat-label {
    font-size: 14px;
    opacity: 0.75;
    margin-top: 8px;
}

/* アニメーション */
@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);
    }
}

/* レスポンシブ */
@media (max-width: 768px) {
    .aibridge-lp-hero-content {
        padding: 40px 20px;
    }

    .aibridge-lp-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .aibridge-lp-hero-cta,
    .aibridge-lp-hero-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .aibridge-lp-hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .aibridge-lp-hero-stat {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
    }

    .aibridge-lp-hero-stat .stat-number {
        font-size: 32px;
    }

    .aibridge-lp-hero-stat .stat-label {
        margin-top: 0;
    }
}

/* エディター用スタイル調整 */
.aibridge-lp-hero-editor {
    margin-left: -15px;
    margin-right: -15px;
}

.aibridge-lp-hero-editor .aibridge-lp-hero-headline {
    color: inherit;
}

.aibridge-lp-hero-editor .aibridge-lp-hero-subheadline {
    color: inherit;
}
