/* =========================================================
   AI活用・エンジニア支援ページのセクション（/ai）
   theme-tech.css のトークンを使用（ライト/ダーク両対応）。クラスは tech- 接頭辞。
   ========================================================= */

/* ===== AI HERO（/service/ai）===== */
.ai-hero {
    position: relative;
    overflow: hidden;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
}

.ai-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 78% 50%, var(--glow) 0%, transparent 65%),
        linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.35), #000 60%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.35), #000 60%);
}

.ai-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: 440px;
    padding-top: 56px;
    padding-bottom: 56px;
}

.ai-hero__en {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-secondary);
}

.ai-hero__en::before {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
}

.ai-hero__title {
    margin: 14px 0 18px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.3;
    color: var(--c-ink);
}

.ai-hero__lead {
    max-width: 520px;
    margin: 0 0 32px;
    color: var(--c-text);
    line-height: 1.9;
}

.ai-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ai-hero__visual {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    justify-self: center;
}

.ai-hero__visual .ai-rings__stage {
    width: 92%;
}

/* ===== AI SECTION ===== */
.tech-ai {
    position: relative;
    overflow: hidden;
    padding: 112px 0;
    background: var(--c-surface);
    color: var(--c-text);
}

.tech-ai::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 75% at 78% 50%, var(--glow) 0%, transparent 60%);
    pointer-events: none;
}

.tech-ai__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 72px;
    align-items: center;
}

.tech-ai .section-heading__lead {
    margin-left: 0;
}

.tech-ai__features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.tech-ai__feat {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tech-ai__feat-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    background: var(--teal-bg);
    border: 1px solid var(--c-border);
    border-radius: 2px;
    color: var(--c-secondary);
}

.tech-ai__feat-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--c-ink);
    margin: 0 0 4px;
    font-family: var(--font-sans);
}

.tech-ai__feat-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--c-text);
    margin: 0;
}

.tech-ai__cta {
    margin-top: 40px;
}

.tech-ai__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-ai__canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
}

.tech-ai__canvas-wrap::before {
    content: '';
    position: absolute;
    inset: 4%;
    border: 1px dashed var(--c-border);
    border-radius: 50%;
}

.tech-ai__canvas-wrap canvas {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== ENGINEERS (SES) ===== */
.tech-ses__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.tech-ses .section-heading {
    margin-bottom: 40px;
}

.tech-ses .section-heading__lead {
    margin-left: 0;
}

.tech-process {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tech-process__step {
    position: relative;
    display: flex;
    gap: 18px;
    padding-bottom: 32px;
}

.tech-process__step:last-child {
    padding-bottom: 0;
}

.tech-process__step::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 22px;
    bottom: 0;
    width: 1px;
    background: var(--rule);
}

.tech-process__step:last-child::before {
    display: none;
}

.tech-process__dot {
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px var(--teal-bg);
}

.tech-process__num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--c-secondary);
    margin-bottom: 2px;
}

.tech-process__title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--c-ink);
    margin: 0 0 4px;
}

.tech-process__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--c-text);
    margin: 0;
}

.tech-skills__label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--c-secondary);
    margin: 0 0 16px;
}

.tech-skills {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
}

.tech-skill {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--c-surface);
    transition: background-color 0.2s ease;
}

.tech-skill:hover {
    background: var(--hover-tint);
}

.tech-skill__badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--teal-bg);
    color: var(--c-secondary);
}

.tech-skill__role {
    font-size: 15px;
    font-weight: 500;
    color: var(--c-ink);
}

.tech-skill__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tech-skill__tags span {
    padding: 1px 7px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--c-secondary);
    background: var(--teal-bg);
    border-radius: 2px;
}

.tech-ses__cta {
    margin-top: 32px;
}

/* ===== MOTION ===== */
@media (prefers-reduced-motion: no-preference) {
    .tech-fade {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .tech-fade.is-visible {
        opacity: 1;
        transform: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .tech-ai__layout,
    .tech-ses__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .tech-ai__canvas-wrap {
        max-width: 360px;
    }
}

@media (max-width: 768px) {
    .tech-ai {
        padding: 80px 0;
    }

    .tech-skill {
        padding: 16px;
    }
}

@media (max-width: 960px) {
    .ai-hero__inner {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 24px;
    }

    .ai-hero__visual {
        max-width: 300px;
    }
}


/* ヒーロー内のリング：光のオーブを四角く切らない／背景グリッドはヒーロー側のものを使う */
.ai-hero__visual .ai-rings {
    overflow: visible;
}

.ai-hero__visual .ai-rings__grid {
    display: none;
}
