.ai-hero {
    position: relative;
    width: auto;
    max-width: 100vw;
    min-height: 100svh;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0, 5, 15, 0.94) 0%, rgba(0, 5, 15, 0.74) 44%, rgba(0, 5, 15, 0.18) 76%),
        linear-gradient(0deg, #00050f 0%, transparent 24%),
        url('https://failsafe.jp/wp-content/uploads/2026/04/hero-bg.webp') center / cover no-repeat;
}

.ai-hero::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(103, 232, 249, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 232, 249, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    content: '';
    mask-image: linear-gradient(to right, #000, transparent 72%);
}

.ai-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(calc(100% - 48px), var(--fs-container));
    min-height: 100svh;
    align-items: center;
    margin: 0 auto;
    padding: 146px 0 76px;
}

.ai-hero__content {
    width: min(730px, 68%);
}

.ai-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    color: var(--fs-cyan);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.24em;
}

.ai-hero__eyebrow::before {
    width: 34px;
    height: 1px;
    background: var(--fs-cyan);
    content: '';
}

.ai-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 6.2vw, 5.8rem);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: 0.025em;
    text-wrap: balance;
}

.ai-hero h1 span {
    display: block;
    margin-top: 8px;
    background: linear-gradient(90deg, #67e8f9 0%, #38bdf8 46%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ai-hero__lead {
    max-width: 670px;
    margin: 28px 0 0;
    color: #d3dfed;
    font-size: 1.03rem;
    line-height: 2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.ai-hero .fs-button-row {
    margin-top: 36px;
}

.ai-hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 44px 0 0;
    padding: 0;
    color: #bfd0e3;
    font-size: 0.8rem;
    font-weight: 650;
    list-style: none;
}

.ai-hero__points li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-hero__points li::before {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fs-border-strong);
    border-radius: 50%;
    color: var(--fs-cyan);
    content: '\2713';
    font-size: 0.68rem;
}

.ai-problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.ai-problem-grid .fs-card {
    padding: 30px 26px;
}

.ai-bridge {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 70px;
    align-items: center;
}

.ai-bridge__visual {
    position: relative;
    min-height: 460px;
}

.ai-bridge__orb {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: 190px;
    height: 190px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(103, 232, 249, 0.45);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(56, 189, 248, 0.2), rgba(7, 18, 37, 0.92) 65%),
        #071225;
    box-shadow: 0 0 70px rgba(56, 189, 248, 0.2);
    color: #fff;
    font-size: 1.45rem;
    font-weight: 850;
    text-align: center;
    transform: translate(-50%, -50%);
}

.ai-bridge__orb::before,
.ai-bridge__orb::after {
    position: absolute;
    border: 1px dashed rgba(103, 232, 249, 0.22);
    border-radius: 50%;
    content: '';
}

.ai-bridge__orb::before {
    inset: -58px;
}

.ai-bridge__orb::after {
    inset: -118px;
}

.ai-bridge__tag {
    position: absolute;
    z-index: 2;
    min-width: 120px;
    padding: 12px 16px;
    border: 1px solid var(--fs-border);
    border-radius: 999px;
    background: rgba(6, 17, 37, 0.92);
    color: #d9e6f4;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.ai-bridge__tag--strategy { top: 5%; left: 34%; }
.ai-bridge__tag--build { top: 34%; right: 0; }
.ai-bridge__tag--learn { right: 11%; bottom: 8%; }
.ai-bridge__tag--operate { bottom: 8%; left: 10%; }
.ai-bridge__tag--improve { top: 34%; left: 0; }

.ai-bridge__copy .fs-lead {
    margin-bottom: 28px;
}

.ai-bridge__copy .fs-title span,
.fs-cta-panel .fs-title span {
    display: block;
}

.ai-check-list {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ai-check-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
    color: #d6e1ed;
    font-size: 0.92rem;
    line-height: 1.7;
}

.ai-check-list li::before {
    display: flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(103, 232, 249, 0.1);
    color: var(--fs-cyan);
    content: '\2713';
    font-size: 0.76rem;
}

.ai-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ai-service-card {
    position: relative;
    min-height: 310px;
    padding: 32px;
    overflow: hidden;
}

.ai-service-card::after {
    position: absolute;
    right: -55px;
    bottom: -55px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(103, 232, 249, 0.08);
    border-radius: 50%;
    content: '';
}

.ai-service-card__label {
    color: var(--fs-cyan);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.18em;
}

.ai-service-card h3 {
    margin-top: 24px;
    font-size: 1.25rem;
}

.ai-service-card__list {
    display: grid;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    color: #b5c6d8;
    font-size: 0.82rem;
    line-height: 1.55;
    list-style: none;
}

.ai-service-card__list li {
    display: flex;
    gap: 8px;
}

.ai-service-card__list li::before {
    color: var(--fs-cyan);
    content: '\2022';
}

.ai-usecase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ai-usecase {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    padding: 30px;
    align-items: start;
}

.ai-usecase__icon {
    display: flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fs-border);
    border-radius: 20px;
    background: rgba(103, 232, 249, 0.07);
    color: var(--fs-cyan);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.ai-usecase h3 {
    margin: 2px 0 10px;
}

.ai-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ai-why-grid .fs-card {
    padding: 34px 30px;
}

.ai-flow {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ai-flow__item {
    position: relative;
    padding: 0 18px;
    text-align: center;
}

.ai-flow__item:not(:last-child)::after {
    position: absolute;
    top: 23px;
    right: -24px;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, var(--fs-border-strong), transparent);
    content: '';
}

.ai-flow__number {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fs-border-strong);
    border-radius: 50%;
    background: #071225;
    color: var(--fs-cyan);
    font-size: 0.74rem;
    font-weight: 850;
}

.ai-flow h3 {
    margin: 18px 0 8px;
    color: #fff;
    font-size: 0.94rem;
}

.ai-flow p {
    margin: 0;
    color: var(--fs-muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

.ai-faq {
    display: grid;
    max-width: 900px;
    gap: 12px;
    margin: 0 auto;
}

.ai-faq details {
    border: 1px solid var(--fs-border);
    border-radius: 14px;
    background: rgba(7, 18, 37, 0.72);
}

.ai-faq summary {
    position: relative;
    padding: 22px 58px 22px 24px;
    color: #eef5fc;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.ai-faq summary::-webkit-details-marker {
    display: none;
}

.ai-faq summary::after {
    position: absolute;
    top: 50%;
    right: 24px;
    color: var(--fs-cyan);
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    transform: translateY(-50%);
}

.ai-faq details[open] summary::after {
    content: '\2212';
}

.ai-faq p {
    margin: 0;
    padding: 0 24px 24px;
    color: var(--fs-muted);
    font-size: 0.9rem;
    line-height: 1.9;
}

@media (max-width: 1100px) {
    .ai-problem-grid,
    .ai-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-flow {
        grid-template-columns: repeat(3, 1fr);
        gap: 44px 0;
    }

    .ai-flow__item:nth-child(3)::after {
        display: none;
    }
}

@media (max-width: 900px) {
    .ai-hero {
        background:
            linear-gradient(90deg, rgba(0, 5, 15, 0.9), rgba(0, 5, 15, 0.46)),
            linear-gradient(0deg, #00050f 0%, transparent 32%),
            url('https://failsafe.jp/wp-content/uploads/2026/04/hero-bg.webp') 62% center / cover no-repeat;
    }

    .ai-hero__content {
        width: 78%;
    }

    .ai-bridge {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ai-bridge__visual {
        min-height: 410px;
        order: 2;
    }

    .ai-usecase-grid,
    .ai-why-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .ai-hero {
        background:
            linear-gradient(180deg, rgba(0, 5, 15, 0.32), rgba(0, 5, 15, 0.66) 44%, #00050f 100%),
            url('https://failsafe.jp/wp-content/uploads/2026/04/hero-mobile.webp') center top / cover no-repeat;
    }

    .ai-hero::before {
        opacity: 0.5;
    }

    .ai-hero__inner {
        width: min(calc(100% - 36px), var(--fs-container));
        align-items: flex-end;
        padding: 120px 0 52px;
    }

    .ai-hero__content {
        width: 100%;
    }

    .ai-hero__eyebrow {
        margin-bottom: 16px;
        font-size: 0.67rem;
    }

    .ai-hero h1 {
        font-size: clamp(2.2rem, 11.8vw, 3.2rem);
        line-height: 1.14;
    }

    .ai-hero__lead {
        margin-top: 22px;
        font-size: 0.89rem;
        line-height: 1.85;
    }

    .ai-hero .fs-button-row {
        margin-top: 26px;
    }

    .ai-hero__points {
        display: grid;
        gap: 9px;
        margin-top: 28px;
        font-size: 0.76rem;
    }

    .ai-problem-grid,
    .ai-service-grid,
    .ai-usecase-grid {
        grid-template-columns: 1fr;
    }

    .ai-bridge__visual {
        min-height: 360px;
        transform: scale(0.86);
    }

    .ai-bridge__tag {
        min-width: 104px;
        padding: 10px 12px;
        font-size: 0.73rem;
    }

    .ai-service-card {
        min-height: 0;
        padding: 28px 26px;
    }

    .ai-usecase {
        grid-template-columns: 1fr;
    }

    .ai-usecase__icon {
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }

    .ai-flow {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ai-flow__item {
        display: grid;
        grid-template-columns: 54px 1fr;
        gap: 16px;
        min-height: 118px;
        padding: 0;
        text-align: left;
    }

    .ai-flow__item:not(:last-child)::after {
        top: 48px;
        right: auto;
        bottom: 0;
        left: 24px;
        width: 1px;
        height: 70px;
        background: linear-gradient(var(--fs-border-strong), transparent);
    }

    .ai-flow__item:nth-child(3)::after {
        display: block;
    }

    .ai-flow h3 {
        margin-top: 4px;
    }
}
