/* =====================================================
   Trial Banner（Hero直下の軽量CV導線）
   - 旧 .free-trial セクションを縮小・バナー化
   - Heroの余韻を引き継ぐ濃紺グラデ
   - 2CTA並列（無料トライアル / 本格導入相談）
   - 応募条件は <details> で折りたたみ
   ===================================================== */

.trial-banner {
    /* Heroの濃紺から自然に連続するグラデ（境界線なし） */
    background: linear-gradient(180deg, #0f1e3a 0%, #1e3a5f 50%, #25477a 100%);
    padding: 32px 0 36px;
    position: relative;
    overflow: hidden;
    /* Hero との継ぎ目を出さない */
    border-top: none;
    box-shadow: none;
    margin-top: 0;
}

/* 微かなオレンジのアクセント光（装飾過多にならない程度） */
.trial-banner::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -8%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.12), transparent 70%);
    pointer-events: none;
}

.trial-banner__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* --- 上段：バッジ + メインコピー --- */
.trial-banner__top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trial-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #fdba74;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.trial-banner__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.9);
    animation: trial-banner-dot-pulse 1.8s ease-in-out infinite;
}

@keyframes trial-banner-dot-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(0.85); }
}

.trial-banner__lead {
    color: #ffffff;
    font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.01em;
    margin: 0;
    flex: 1;
    min-width: 240px;
}

.trial-banner__lead-accent {
    color: #fdba74;
    font-weight: 700;
    margin-left: 4px;
}

/* --- 中段：2CTAカード並列 --- */
.trial-banner__cta-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.trial-banner__cta-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    min-height: 76px;
}

/* Primary: 無料トライアル（オレンジアクセント） */
.trial-banner__cta-card--primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.trial-banner__cta-card--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.5);
    filter: brightness(1.05);
}

/* Secondary: 本格導入相談（ブルー系・同等の視覚優先度） */
.trial-banner__cta-card--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1.5px solid rgba(147, 197, 253, 0.5);
    backdrop-filter: blur(4px);
}

.trial-banner__cta-card--secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
    border-color: #93c5fd;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.25);
}

/* カード内アイコン */
.trial-banner__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

.trial-banner__cta-icon svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

/* カード内コンテンツ */
.trial-banner__cta-content {
    flex: 1;
    min-width: 0;
}

.trial-banner__cta-title {
    font-size: 1rem;
    font-weight: 700;
    color: inherit;
    margin: 0 0 2px;
    line-height: 1.3;
}

.trial-banner__cta-desc {
    font-size: 0.78rem;
    color: inherit;
    opacity: 0.88;
    margin: 0;
    line-height: 1.45;
}

/* カード矢印 */
.trial-banner__cta-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.trial-banner__cta-arrow svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.trial-banner__cta-card:hover .trial-banner__cta-arrow svg {
    transform: translateX(3px);
}

/* --- 下段：折りたたみ応募条件 --- */
.trial-banner__conditions {
    border: none;
    padding: 0;
    margin: 0;
}

.trial-banner__conditions-summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    padding: 6px 0;
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
}

.trial-banner__conditions-summary::-webkit-details-marker {
    display: none;
}

.trial-banner__conditions-summary:hover {
    color: #ffffff;
}

.trial-banner__conditions-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.trial-banner__conditions[open] .trial-banner__conditions-icon {
    transform: rotate(180deg);
}

.trial-banner__conditions-list {
    margin: 10px 0 0;
    padding: 14px 18px;
    list-style: none;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trial-banner__conditions-list li {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    line-height: 1.7;
    padding-left: 18px;
    position: relative;
}

.trial-banner__conditions-list li::before {
    content: '●';
    position: absolute;
    left: 4px;
    top: 0;
    color: #fdba74;
    font-size: 0.6rem;
    line-height: 1.8;
}

/* ===========================
   レスポンシブ対応
   =========================== */

@media (max-width: 768px) {
    .trial-banner {
        padding: 26px 0 30px;
    }

    .trial-banner__inner {
        padding: 0 20px;
    }

    .trial-banner__top {
        gap: 12px;
        margin-bottom: 16px;
    }

    .trial-banner__lead {
        font-size: 1rem;
        line-height: 1.55;
    }

    .trial-banner__cta-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .trial-banner__cta-card {
        padding: 14px 16px;
        min-height: 68px;
        gap: 12px;
    }

    .trial-banner__cta-icon {
        width: 36px;
        height: 36px;
    }

    .trial-banner__cta-title {
        font-size: 0.95rem;
    }

    .trial-banner__cta-desc {
        font-size: 0.74rem;
    }

    .trial-banner__cta-arrow {
        font-size: 0.76rem;
    }
}

@media (max-width: 480px) {
    .trial-banner {
        padding: 22px 0 26px;
    }

    .trial-banner__inner {
        padding: 0 16px;
    }

    .trial-banner__cta-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .trial-banner__cta-arrow span,
    .trial-banner__cta-arrow {
        font-size: 0.72rem;
    }
}
