:root {
    --asd-navy: #0f172a;
    --asd-blue: #2563eb;
    --asd-violet: #4f46e5;
    --asd-cyan: #06b6d4;
    --asd-muted: #64748b;
    --asd-line: rgba(148, 163, 184, .24);
    --asd-shadow: 0 26px 80px rgba(15, 23, 42, .12);
}

.ai-staff-demo-page {
    position: relative;
    overflow: hidden;
    color: #172033;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 42%, #eef5ff 100%);
    scroll-behavior: smooth;
}

.asd-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 8vw, 116px) 0 clamp(54px, 7vw, 92px);
    background:
        radial-gradient(circle at 78% 16%, rgba(37, 99, 235, .15), transparent 30%),
        radial-gradient(circle at 10% 92%, rgba(6, 182, 212, .12), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f7fbff 48%, #eef5ff 100%);
}

.asd-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image:
        linear-gradient(rgba(37, 99, 235, .11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, .11) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .72) 52%, transparent 100%);
    pointer-events: none;
}

.asd-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(3px);
    opacity: .72;
    pointer-events: none;
}

.asd-orb-one {
    right: -80px;
    top: 110px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(79, 70, 229, .22), transparent 68%);
}

.asd-orb-two {
    left: -110px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(6, 182, 212, .18), transparent 68%);
}

.asd-hero .container {
    position: relative;
    z-index: 1;
}

.asd-eyebrow,
.asd-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #1d4ed8;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.asd-eyebrow {
    margin-bottom: 18px;
    padding: 9px 14px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.asd-eyebrow span,
.asd-kicker::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 7px rgba(34, 197, 94, .12);
}

.asd-kicker::before {
    width: 28px;
    height: 2px;
    box-shadow: none;
    background: currentColor;
}

.asd-title {
    max-width: 780px;
    margin: 0;
    color: #020617;
    font-size: clamp(2.45rem, 5vw, 4.9rem);
    font-weight: 950;
    line-height: 1.13;
    letter-spacing: -.055em;
}

.asd-lead {
    max-width: 740px;
    margin: 22px 0 0;
    color: #334155;
    font-size: clamp(1.02rem, 1.25vw, 1.17rem);
    line-height: 2.05;
}

.asd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.asd-btn,
.asd-staff-demo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.asd-btn:hover,
.asd-staff-demo-button:hover {
    transform: translateY(-2px);
}

.asd-btn-primary,
.asd-staff-demo-button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 18px 44px rgba(37, 99, 235, .27);
}

.asd-btn-primary:hover,
.asd-staff-demo-button:hover {
    color: #ffffff;
    box-shadow: 0 22px 50px rgba(37, 99, 235, .34);
}

.asd-btn-outline {
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, .18);
    background: rgba(255, 255, 255, .78);
}

.asd-btn-outline:hover {
    color: #1e40af;
    background: #ffffff;
}

.asd-preview-card {
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 34px;
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--asd-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.asd-window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    background: rgba(248, 250, 252, .86);
}

.asd-window-bar span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #cbd5e1;
}

.asd-window-bar strong {
    margin-left: 7px;
    color: #0f172a;
    font-weight: 900;
}

.asd-preview-body {
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr);
    gap: 20px;
    padding: 24px;
}

.asd-preview-column small {
    display: block;
    margin-bottom: 12px;
    color: #64748b;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.asd-preview-list {
    display: grid;
    gap: 10px;
}

.asd-preview-list span {
    display: inline-flex;
    padding: 10px 12px;
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 14px;
    color: #1d4ed8;
    font-weight: 900;
    background: #eff6ff;
}

.asd-preview-chat {
    display: grid;
    gap: 12px;
}

.asd-preview-user,
.asd-preview-ai {
    padding: 14px 16px;
    border-radius: 18px;
    line-height: 1.75;
    font-weight: 750;
}

.asd-preview-user {
    justify-self: end;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.asd-preview-ai {
    color: #334155;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, .2);
}

.asd-preview-source {
    color: #64748b;
    font-size: .9rem;
    font-weight: 800;
}

.asd-section {
    padding: 86px 0;
}

.asd-soft-section {
    background: rgba(255, 255, 255, .54);
}

.asd-section-head {
    max-width: 960px;
    margin: 0 auto 38px;
}

.asd-section-head h2,
.asd-console-head h2 {
    margin: 12px 0 0;
    color: #0f172a;
    font-size: clamp(1.9rem, 3vw, 3.15rem);
    font-weight: 950;
    letter-spacing: -.045em;
    line-height: 1.24;
}

.asd-section-head p,
.asd-console-head p {
    margin: 16px 0 0;
    color: #64748b;
    line-height: 2;
}

.asd-staff-lineup {
    display: grid;
    gap: 18px;
}

.asd-staff-card {
    scroll-margin-top: 110px;
    position: relative;
    display: grid;
    grid-template-columns: 72px 68px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 30px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.asd-staff-card:hover,
.asd-staff-card.is-active,
.asd-staff-card:target {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, .38);
    box-shadow: 0 26px 70px rgba(37, 99, 235, .15);
}

.asd-staff-card:target::before,
.asd-staff-card.is-active::before {
    content: "関連AIスタッフ";
    position: absolute;
    right: 22px;
    top: -13px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 11px;
    border-radius: 999px;
    color: #ffffff;
    font-size: .76rem;
    font-weight: 900;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
}

.asd-staff-number {
    color: rgba(37, 99, 235, .18);
    font-size: 2.6rem;
    font-weight: 950;
    letter-spacing: -.06em;
}

.asd-staff-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: #ffffff;
    font-size: 1.7rem;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 16px 34px rgba(37, 99, 235, .2);
}

.asd-staff-body span {
    display: block;
    margin-bottom: 5px;
    color: #2563eb;
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.asd-staff-body h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: clamp(1.28rem, 2vw, 1.75rem);
    font-weight: 950;
    letter-spacing: -.035em;
}

.asd-staff-body p {
    margin: 0;
    color: #64748b;
    line-height: 1.85;
}

.asd-staff-body ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.asd-staff-body li {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #1e3a8a;
    font-size: .82rem;
    font-weight: 850;
    background: #eff6ff;
}

.asd-staff-demo-button {
    white-space: nowrap;
    cursor: pointer;
}

.asd-console-shell {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 34px;
    background:
        radial-gradient(circle at 100% 0%, rgba(79, 70, 229, .13), transparent 32%),
        rgba(255, 255, 255, .9);
    box-shadow: var(--asd-shadow);
}

.asd-console-head {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 24px;
    align-items: end;
    margin-bottom: 26px;
}

.asd-console-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.asd-console-tab {
    min-height: 44px;
    padding: 9px 13px;
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: 999px;
    color: #1d4ed8;
    font-weight: 900;
    background: rgba(255, 255, 255, .86);
    cursor: pointer;
}

.asd-console-tab.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 14px 34px rgba(37, 99, 235, .22);
}

.asd-app-layout {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    gap: 20px;
}

.asd-app-side,
.asd-chat-window,
.asd-result-card,
.asd-generated-panel {
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 28px;
    background: rgba(248, 250, 252, .84);
}

.asd-app-side {
    padding: 22px;
}

.asd-side-title small,
.asd-sample-box small,
.asd-free-input-box small {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.asd-side-title strong {
    display: block;
    color: #0f172a;
    font-size: 1.34rem;
    font-weight: 950;
    line-height: 1.3;
}

.asd-side-title span {
    display: block;
    margin-top: 8px;
    color: #64748b;
    line-height: 1.7;
}

.asd-sample-box,
.asd-free-input-box {
    margin-top: 22px;
}

.asd-sample-buttons {
    display: grid;
    gap: 10px;
}

.asd-sample-buttons button {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 16px;
    color: #1e3a8a;
    font-weight: 850;
    text-align: left;
    background: #ffffff;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.asd-sample-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.asd-free-input-box textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 16px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    resize: vertical;
}

.asd-free-input-box button {
    width: 100%;
    min-height: 46px;
    margin-top: 10px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.asd-app-main {
    display: grid;
    gap: 18px;
}

.asd-chat-window {
    overflow: hidden;
}

.asd-chat-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    background: rgba(255, 255, 255, .72);
}

.asd-chat-top small {
    display: block;
    color: #64748b;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.asd-chat-top strong {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-weight: 950;
}

.asd-chat-top span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #1d4ed8;
    font-size: .78rem;
    font-weight: 900;
    background: #eff6ff;
}

.asd-chat-body {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.asd-chat-bubble {
    max-width: 92%;
    padding: 15px 17px;
    border-radius: 20px;
    line-height: 1.85;
    font-weight: 760;
    white-space: pre-wrap;
}

.asd-chat-bubble.user {
    justify-self: end;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.asd-chat-bubble.ai {
    justify-self: start;
    color: #334155;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, .22);
}

.asd-typing {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    width: fit-content;
    padding: 12px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, .22);
}

.asd-typing span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #94a3b8;
    animation: asdTyping 1s infinite ease-in-out;
}

.asd-typing span:nth-child(2) { animation-delay: .12s; }
.asd-typing span:nth-child(3) { animation-delay: .24s; }

@keyframes asdTyping {
    0%, 100% { transform: translateY(0); opacity: .45; }
    50% { transform: translateY(-4px); opacity: 1; }
}

.asd-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.asd-result-card {
    padding: 18px;
}

.asd-result-card-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: #0f172a;
}

.asd-result-card-head i {
    color: #2563eb;
}

.asd-result-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 1.1rem;
    color: #334155;
    line-height: 1.7;
}

.asd-generated-panel {
    overflow: hidden;
}

.asd-generated-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    background: rgba(255, 255, 255, .72);
}

.asd-generated-head span {
    color: #64748b;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.asd-generated-head button {
    min-height: 34px;
    padding: 6px 11px;
    border: 0;
    border-radius: 999px;
    color: #1d4ed8;
    font-weight: 900;
    background: #eff6ff;
}

.asd-generated-panel pre {
    margin: 0;
    padding: 18px;
    white-space: pre-wrap;
    color: #334155;
    font-family: inherit;
    line-height: 1.9;
}

.asd-demo-script-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(239, 246, 255, .72));
}

.asd-flow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.asd-flow-card {
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 26px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 16px 42px rgba(15, 23, 42, .07);
}

.asd-flow-card span {
    display: inline-flex;
    margin-bottom: 12px;
    color: #2563eb;
    font-size: .76rem;
    font-weight: 950;
}

.asd-flow-card h3 {
    color: #0f172a;
    font-weight: 950;
}

.asd-flow-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.8;
}

.asd-final-section {
    padding: 0 0 90px;
}

.asd-final-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    padding: clamp(30px, 5vw, 60px);
    border-radius: 38px;
    color: #ffffff;
    background:
        radial-gradient(circle at 86% 0%, rgba(168, 85, 247, .30), transparent 34%),
        radial-gradient(circle at 0% 100%, rgba(96, 165, 250, .22), transparent 36%),
        linear-gradient(135deg, #020617, #172554 54%, #4c1d95);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
}

.asd-final-card .asd-kicker,
.asd-final-card h2,
.asd-final-card p {
    color: #ffffff;
}

.asd-final-card h2 {
    margin: 12px 0 0;
    font-size: clamp(1.8rem, 3.2vw, 3.3rem);
    font-weight: 950;
    line-height: 1.22;
    letter-spacing: -.045em;
}

.asd-final-card p {
    max-width: 820px;
    margin: 16px 0 0;
    opacity: .82;
    line-height: 2;
}

@media (max-width: 1199.98px) {
    .asd-staff-card {
        grid-template-columns: 62px 64px minmax(0, 1fr);
    }

    .asd-staff-demo-button {
        grid-column: 3;
        width: fit-content;
    }

    .asd-flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .asd-preview-body,
    .asd-console-head,
    .asd-app-layout,
    .asd-result-grid,
    .asd-final-card {
        grid-template-columns: 1fr;
    }

    .asd-final-card .asd-btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .asd-section {
        padding: 64px 0;
    }

    .asd-actions .asd-btn,
    .asd-console-tab,
    .asd-staff-demo-button {
        width: 100%;
    }

    .asd-staff-card {
        grid-template-columns: 1fr;
    }

    .asd-staff-demo-button {
        grid-column: auto;
    }

    .asd-chat-bubble {
        max-width: 100%;
    }

    .asd-flow-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Selected AI Staff Card - stronger visual state
   - Used when navigated from Solution page
   - Used when clicking a staff card / demo button
========================================================= */

.asd-staff-card.is-active,
.asd-staff-card:target {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, .62);
    background:
        linear-gradient(90deg, rgba(37, 99, 235, .10), rgba(255, 255, 255, .96) 34%),
        radial-gradient(circle at 100% 0%, rgba(79, 70, 229, .18), transparent 30%),
        rgba(255, 255, 255, .98);
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .14),
        0 28px 80px rgba(37, 99, 235, .20);
}

.asd-staff-card.is-active::after,
.asd-staff-card:target::after {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 22px;
    width: 7px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, #2563eb, #4f46e5, #06b6d4);
    box-shadow: 0 0 24px rgba(37, 99, 235, .45);
}

.asd-staff-card.is-active .asd-staff-number,
.asd-staff-card:target .asd-staff-number {
    color: rgba(37, 99, 235, .42);
}

.asd-staff-card.is-active .asd-staff-icon,
.asd-staff-card:target .asd-staff-icon {
    transform: scale(1.06);
    box-shadow:
        0 18px 40px rgba(37, 99, 235, .30),
        0 0 0 8px rgba(37, 99, 235, .10);
}

.asd-staff-card.is-active .asd-staff-body h3,
.asd-staff-card:target .asd-staff-body h3 {
    color: #1d4ed8;
}

.asd-staff-card.is-active .asd-staff-demo-button,
.asd-staff-card:target .asd-staff-demo-button {
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
    box-shadow: 0 20px 46px rgba(37, 99, 235, .34);
}

@media (max-width: 575.98px) {
    .asd-staff-card.is-active::after,
    .asd-staff-card:target::after {
        top: 0;
        bottom: auto;
        left: 22px;
        right: 22px;
        width: auto;
        height: 6px;
        border-radius: 0 0 999px 999px;
    }
}

