/* 社内実験の結果画面 */
.ae-ai-page.is-ai-report-open {
    overflow: hidden;
}

/* AI実験結果・開発事例：詳細モーダルの共通デザイン */
.ae-ai .ae-ai__experiment-dialog {
    display: none;
    width: min(var(--modal-width), calc(100% - 48px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    box-sizing: border-box;
    margin: auto;
    border: 2px solid var(--modal-blue);
    border-radius: var(--modal-radius);
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--modal-tint);
    color: var(--modal-ink);
    box-shadow: var(--modal-shadow);
    scrollbar-color: #75a5f6 #e4efff;
}

.ae-ai .ae-ai__experiment-dialog[open] {
    display: block;
}

.ae-ai__experiment-dialog::backdrop {
    background: var(--modal-backdrop);
}

.ae-ai__report-toolbar {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 0;
    padding: 12px 24px;
    background: var(--modal-header-background);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.ae-ai .ae-ai__report-close {
    flex-shrink: 0;
    min-height: 44px;
    border: 1px solid var(--modal-white);
    border-radius: 999px;
    padding: 9px 18px;
    background: var(--modal-white);
    color: var(--modal-blue);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    cursor: pointer;
}

.ae-ai .ae-ai__report-close:hover {
    background: #dcecff;
}

.ae-ai .ae-ai__report-close:focus-visible {
    outline: 3px solid var(--modal-white);
    outline-offset: 3px;
}

.ae-ai__report-body {
    padding: clamp(20px, 3vw, 32px);
    overflow-wrap: anywhere;
    background: var(--modal-background);
}

.ae-ai .ae-ai__report-eyebrow {
    margin: 0 0 10px;
    color: var(--modal-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.6;
}

.ae-ai .ae-ai__report-body h2 {
    margin: 0;
    color: var(--modal-blue);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.5;
}

.ae-ai .ae-ai__report-lead {
    margin: 18px 0 28px;
    color: var(--modal-ink);
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.9;
    white-space: normal;
}

@media (max-width: 700px) {
}

.ae-ai__report-prediction {
    border: 1px solid #b9d0ff;
    border-left: 5px solid var(--ai-blue);
    border-radius: 6px;
    padding: 18px 20px;
    background: #fff;
}

.ae-ai .ae-ai__report-prediction h3 {
    margin: 0 0 10px;
    color: var(--ai-blue);
    font-size: 17px;
    line-height: 1.6;
}

.ae-ai .ae-ai__report-prediction p {
    white-space: pre-line;
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.8;
}

/* 質問文は全幅、回答バッジは右上 */
.ae-ai .ae-ai__report-prediction [data-report-first],
.ae-ai .ae-ai__report-prediction [data-report-second] {
    position: relative;
    display: block;
    margin: 14px 0 0;
    border: 1px solid #d1ddf0;
    border-radius: 8px;
    padding: 14px 12px;
    background: #f7faff;
    white-space: normal;
    text-align: left;
}

.ae-ai .ae-ai__report-prediction [data-report-second] {
    margin-top: 30px;
}

.ae-ai__report-prediction [data-report-second]::before {
    content: "↓";
    position: absolute;
    top: -29px;
    left: 50%;
    transform: translateX(-50%);
    color: #064bfa;
    font-size: 20px;
    font-weight: 800;
}

.ae-ai__prediction-question {
    display: block;
    color: #143570;
    font-size: clamp(12px, 3.3vw, 14px);
    font-weight: 700;
    line-height: 1.75;
}

.ae-ai__prediction-question > span:last-child {
    display: block;
    white-space: nowrap;
}

.ae-ai__prediction-number {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 11px;
}

.ae-ai__prediction-answer {
    position: absolute;
    top: 14px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 42px;
    border-radius: 6px;
    background: #064bfa;
    color: #fff;
    font: 800 16px/1 Arial, sans-serif;
}

.ae-ai__prediction-answer[data-answer="no"] {
    background: #344563;
}

.ae-ai .ae-ai__report-prediction [data-report-second][hidden] {
    display: none;
}

.ae-ai .ae-ai__report-prediction .ae-ai__report-insight {
    margin-top: 20px;
    border: 1px solid #b9d0ff;
    border-left: 4px solid #064bfa;
    border-radius: 6px;
    padding: 16px 14px;
    background: #edf5ff;
    color: #143570;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.95;
    white-space: pre-line;
}

.ae-ai__report-insight::before {
    content: "あなたの予想から、ここに注目";
    display: block;
    margin-bottom: 10px;
    color: #064bfa;
    font-size: 14px;
    font-weight: 800;
}

.ae-ai__report-prediction small {
    display: block;
    margin-top: 10px;
    color: #56616e;
    font-size: 12px;
    line-height: 1.7;
}

.ae-ai__report-section {
    margin: 32px 0 0;
    border-top: 1px solid #d5dfed;
    padding: 24px 0 0;
}

.ae-ai .ae-ai__report-section > h3 {
    margin: 0 0 18px;
    color: #143570;
    font-size: clamp(21px, 2.5vw, 28px);
    line-height: 1.6;
}

.ae-ai__report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
/* 左：従来型／右：AI駆動型。青の濃淡で比較する */
.ae-ai__report-grid > article:nth-child(1) {
    --report-accent: #235ca9;
    --report-background: #ffffff;
    --report-border: #a8c8ff;
    --report-label: "従来型開発";
}

.ae-ai__report-grid > article:nth-child(2) {
    --report-accent: var(--modal-blue);
    --report-background: #e4f2ff;
    --report-border: #8dbaff;
    --report-label: "AI駆動型開発";
}

.ae-ai__report-metric,
.ae-ai__report-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    border: 1px solid var(--report-border);
    border-top: 4px solid var(--report-accent);
    border-radius: 8px;
    padding: 22px;
    background: var(--report-background);
}

/* 人物画像：画像部分だけにホバーを付ける */
.ae-ai__report-figure {
    display: block;
    flex-shrink: 0;
    height: 300px;
    margin: 16px 0 0;
    padding: 0;
    background-image: var(--report-art);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* 品質・学び：ラベル → 画像 → 説明 */
.ae-ai__report-card > * {
    order: 2;
}

.ae-ai__report-card > .ae-ai__report-figure {
    order: 1;
    margin: 12px 0 20px;
}

.ae-ai #ai-report-quality + .ae-ai__report-grid h4 {
    order: 0;
}

/* 学び：見出しと感想の間に点線 */
.ae-ai #ai-report-learning + .ae-ai__report-grid > article > p {
    margin: 16px 0 0;
    border-top: 1px dashed var(--report-border);
    padding-top: 12px;
}

/* PC：左右で画像・説明・感想の開始位置を共有 */
@media (min-width: 701px) {
    #ai-report-quality + .ae-ai__report-grid,
    #ai-report-learning + .ae-ai__report-grid {
        row-gap: 0;
    }

    #ai-report-quality + .ae-ai__report-grid > article,
    #ai-report-learning + .ae-ai__report-grid > article {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 4;
        row-gap: 0;
    }

    #ai-report-quality + .ae-ai__report-grid > article > h4,
    #ai-report-learning + .ae-ai__report-grid > article::before {
        justify-self: start;
    }
}

/* カーソルを合わせた画像だけ、軽く浮かせる */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .ae-ai__report-figure {
        transition:
            transform 220ms ease,
            filter 220ms ease;
    }

    .ae-ai__report-figure:hover {
        transform: translateY(-5px) scale(1.025);
        filter: drop-shadow(0 10px 6px rgba(20, 40, 75, 0.15));
    }
}

/* 工数 */
#ai-report-effort + .ae-ai__report-grid > article:nth-child(1) {
    --report-art: url("../../images/ai-development/comparison/developer-conventional.png");
}

#ai-report-effort + .ae-ai__report-grid > article:nth-child(2) {
    --report-art: url("../../images/ai-development/results/ai-effort.png");
}

/* 品質確認 */
#ai-report-quality + .ae-ai__report-grid > article:nth-child(1) {
    --report-art: url("../../images/ai-development/results/conventional-quality.png");
}

#ai-report-quality + .ae-ai__report-grid > article:nth-child(2) {
    --report-art: url("../../images/ai-development/results/ai-quality.png");
}

/* 学び */
#ai-report-learning + .ae-ai__report-grid > article:nth-child(1) {
    --report-art: url("../../images/ai-development/results/conventional-learning.png");
}

#ai-report-learning + .ae-ai__report-grid > article:nth-child(2) {
    --report-art: url("../../images/ai-development/results/ai-learning.png");
}

#ai-report-learning + .ae-ai__report-grid > article > .ae-ai__report-figure {
    height: 320px;
}

/* 工数・品質の見出しを方式ラベルにする */
.ae-ai .ae-ai__report-metric h4,
.ae-ai #ai-report-quality + .ae-ai__report-grid h4 {
    align-self: flex-start;
    margin: 0 0 10px;
    border-radius: 5px;
    padding: 5px 12px;
    background: var(--report-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

/* 学びにも同じ方式ラベルを表示 */
#ai-report-learning + .ae-ai__report-grid > article::before {
    content: var(--report-label);
    align-self: flex-start;
    margin-bottom: 14px;
    border-radius: 5px;
    padding: 5px 12px;
    background: var(--report-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.ae-ai .ae-ai__report-card h4 {
    margin: 0 0 10px;
    color: var(--report-accent);
    font-size: 18px;
    line-height: 1.6;
}

.ae-ai .ae-ai__report-metric p,
.ae-ai .ae-ai__report-card p,
.ae-ai__report-card li {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.85;
}

.ae-ai .ae-ai__report-metric .ae-ai__report-method {
    color: #56616e;
    font-size: 13px;
}

.ae-ai .ae-ai__report-metric .ae-ai__report-number {
    margin: 16px 0 0;
    color: var(--report-accent);
    line-height: 1.2;
}

.ae-ai__report-number strong {
    font: 700 clamp(44px, 6vw, 64px)/1.2 Arial, sans-serif;
}

.ae-ai__report-number span {
    margin-left: 8px;
    font-size: 16px;
    font-weight: 700;
}
.ae-ai .ae-ai__report-note {
    margin: 14px 0 0;
    color: #56616e;
    font-size: 12px;
    line-height: 1.9;
}

.ae-ai__report-details {
    margin-top: 18px;
    border: 1px solid #c3d5f5;
    border-radius: 6px;
    padding: 14px 18px;
    background: #fff;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.ae-ai__report-details:hover,
.ae-ai__report-details:focus-within,
.ae-ai__report-details[open] {
    border-color: #59bfff;
    background-color: #e6f5ff;
}

.ae-ai__report-details summary {
    color: var(--ai-blue);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.ae-ai__report-details .ae-ai__report-grid {
    margin-top: 18px;
}

.ae-ai__report-details table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ae-ai__report-details caption {
    padding-bottom: 10px;
    color: #143570;
    font-weight: 700;
    text-align: left;
}

.ae-ai__report-details th,
.ae-ai__report-details td {
    border-bottom: 1px solid #e0e8f5;
    padding: 8px 4px;
    text-align: left;
}

.ae-ai__report-details td {
    white-space: nowrap;
    text-align: right;
}

.ae-ai__report-details tfoot {
    color: var(--ai-blue);
    font-weight: 700;
}

.ae-ai__report-card ul {
    margin: 0;
    padding-left: 20px;
}

.ae-ai .ae-ai__report-card .ae-ai__report-reflection {
    margin: 16px 0 0;
    border-top: 1px dashed var(--report-border);
    padding-top: 12px;
}

/* レポートの結論見出し */
.ae-ai .ae-ai__report-section > .ae-ai__report-conclusion-label {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 32px 0 12px;
    color: #143570;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.6;
}

.ae-ai__report-conclusion-label span {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

/* 担当者の感想：元の文章で高さを確保 */
.ae-ai .ae-ai__report-card .ae-ai__report-typing-note {
    position: relative;
    display: grid;
    align-content: start;
    color: #064bfa;
    font-weight: 600;
}

.ae-ai__report-takeaway {
    position: relative;
    margin-top: 0;
    border: 1px solid #064bfa;
    border-radius: 10px;
    padding: 32px 32px 64px;
    background-color: #073ba7;
    background-image: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.12) 2.5px,
        transparent 3px
    );
    background-size: 26px 26px;
    color: #fff;
}

.ae-ai .ae-ai__report-takeaway h4 {
    display: grid;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    line-height: 1.65;
}

.ae-ai .ae-ai__report-takeaway p {
    display: grid;
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 2;
}

.ae-ai__takeaway-source,
.ae-ai__takeaway-output {
    grid-area: 1 / 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ae-ai__takeaway-output {
    white-space: pre-line;
}

.ae-ai__report-takeaway.is-typing .ae-ai__takeaway-source,
.ae-ai__report-typing-note.is-typing .ae-ai__takeaway-source {
    opacity: 0;
}
.ae-ai__takeaway-output.is-active::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 4px;
    background: currentColor;
    vertical-align: -0.12em;
    animation: ae-ai-takeaway-cursor 800ms step-end infinite;
}

.ae-ai .ae-ai__takeaway-skip {
    position: absolute;
    right: 24px;
    bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    padding: 5px 12px;
    background: #073ba7;
    color: #fff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.ae-ai .ae-ai__takeaway-skip:hover,
.ae-ai .ae-ai__takeaway-skip:focus-visible {
    background: #fff;
    color: #073ba7;
}

.ae-ai__takeaway-output[hidden],
.ae-ai__takeaway-skip[hidden] {
    display: none;
}

@keyframes ae-ai-takeaway-cursor {
    50% {
        opacity: 0;
    }
}

@media (max-width: 700px) {
    .ae-ai__report-takeaway {
        padding: 24px 16px 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ae-ai__report-details {
        transition: none;
    }

    .ae-ai__takeaway-output.is-active::after {
        animation: none;
    }
}

.ae-ai .ae-ai__report-source {
    margin: 28px 0 0;
    color: #56616e;
    font-size: 12px;
    line-height: 1.9;
}

.ae-ai__report-bottom {
    margin-top: 24px;
    text-align: right;
}

.ae-ai__report-notices {
    display: none;
}

@media (max-width: 700px) {
    /* 本文中の注意書き・出典は下部へ集約 */
    .has-mobile-notices .ae-ai__report-note,
    .has-mobile-notices .ae-ai__report-source {
        display: none;
    }

    .ae-ai__report-bottom {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border-top: 1px solid #d5dfed;
        padding-top: 16px;
        text-align: left;
    }

    .ae-ai__report-notices {
        display: block;
        min-width: 0;
    }

    .ae-ai__report-notices > summary {
        display: flex;
        align-items: center;
        gap: 6px;
        min-height: 44px;
        color: #344563;
        font-size: 12px;
        font-weight: 700;
        list-style: none;
        cursor: pointer;
    }

    .ae-ai__report-notices > summary::-webkit-details-marker {
        display: none;
    }

    .ae-ai__report-notices > summary::before {
        content: "＋";
        color: #064bfa;
    }

    .ae-ai__report-notices[open] > summary::before {
        content: "−";
    }

    .ae-ai__report-notices > summary:focus-visible {
        outline: 2px solid #064bfa;
        outline-offset: 3px;
    }

    .ae-ai__report-notices-content {
        position: absolute;
        z-index: 3;
        right: 0;
        bottom: calc(100% + 10px);
        left: 0;
        max-height: 50vh;
        max-height: 50dvh;
        overflow-y: auto;
        border: 1px solid #b9d0ff;
        border-radius: 8px;
        padding: 18px;
        background: #fff;
        box-shadow: 0 8px 28px rgba(20, 40, 75, 0.18);
    }

    .ae-ai .ae-ai__report-notices-content h4 {
        margin: 18px 0 8px;
        color: #143570;
        font-size: 14px;
    }

    .ae-ai .ae-ai__report-notices-content h4:first-child {
        margin-top: 0;
    }

    .ae-ai .ae-ai__report-notices-content p {
        margin: 0;
        color: #52627b;
        font-size: 12px;
        line-height: 1.9;
    }

    .ae-ai .ae-ai__report-bottom > .ae-ai__report-close {
        flex-shrink: 0;
        margin-left: auto;
        white-space: nowrap;
    }
}

/* PCでは既存の左右比較を表示 */
.ae-ai__report-switch,
.ae-ai__report-overview,
.ae-ai__report-stage-details,
.ae-ai__report-effort-toggle {
    display: none;
}

@media (max-width: 700px) {
    .ae-ai__report-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ae-ai__report-toolbar {
        gap: 8px;
        padding: 10px 12px;
    }

    /* レポート内のメニューを画面中央に配置 */
    #ai-experiment-report .ae-site-menu__panel {
        position: fixed;
        left: 50%;
        bottom: calc(120px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        width: min(350px, calc(100vw - 48px));
        max-height: calc(100dvh - 198px - env(safe-area-inset-bottom, 0px));
    }

    .ae-ai__report-toolbar > span {
        font-size: 10px;
    }

    .ae-ai .ae-ai__report-close {
        padding: 10px 12px;
        font-size: 12px;
    }

    .ae-ai__report-body {
        padding: 24px 18px calc(140px + env(safe-area-inset-bottom, 0px));
    }

    .ae-ai .ae-ai__report-body h2 {
        font-size: clamp(24px, 6.5vw, 28px);
        line-height: 1.55;
    }

    .ae-ai .ae-ai__report-eyebrow {
        font-size: 10px;
        letter-spacing: 0.04em;
    }

    .ae-ai .ae-ai__report-lead {
        margin: 16px 0 24px;
        font-size: 14px;
        line-height: 1.9;
        white-space: normal;
    }

    .ae-ai__report-lead > span {
        display: block;
    }

    .ae-ai__report-metric,
    .ae-ai__report-card,
    .ae-ai__report-prediction {
        padding: 16px;
    }

    .ae-ai__report-prediction {
        box-shadow: 0 6px 18px rgba(20, 53, 112, 0.12);
    }

    .ae-ai .ae-ai__report-prediction p {
        white-space: pre-line;
        font-size: 13px;
        line-height: 1.85;
        line-break: strict;
        overflow-wrap: normal;
    }

.ae-ai .ae-ai__report-section > h3 {
    font-size: 16px;
    line-height: 1.9;
    text-wrap: wrap;
}
    /* 切り替えボタン：左が従来型、中央が概要、右がAI */
    .ae-ai__report-switch {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        margin: 0 0 16px;
        border: 1px solid #d5dfed;
        border-radius: 8px;
        padding: 4px;
        background: #f3f6fb;
    }

    .ae-ai .ae-ai__report-switch button {
        min-width: 0;
        min-height: 44px;
        border: 0;
        border-radius: 5px;
        padding: 8px 3px;
        background: transparent;
        color: #52627b;
        font: inherit;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
    }

    .ae-ai .ae-ai__report-switch button[aria-pressed="true"] {
        background: #fff;
        color: #064bfa;
        box-shadow: 0 1px 5px rgba(20, 40, 75, 0.12);
    }

    .ae-ai .ae-ai__report-switch button:first-child[aria-pressed="true"] {
        color: #344563;
    }

    .ae-ai .ae-ai__report-switch button:focus-visible {
        outline: 2px solid #064bfa;
        outline-offset: -2px;
    }

/* 項目が変わったことを明確にする */
.ae-ai__report-section {
    border-top: 6px solid #e3ecfc;
    padding-top: 24px;
}

/* 番号から説明の終わりまで、一つの枠にまとめる */
.ae-ai__report-section {
    min-width: 0;
    box-sizing: border-box;
    margin-top: 28px;
    border: 1px solid #b9d0ff;
    border-top: 4px solid #064bfa;
    border-radius: 8px;
    padding: 18px 14px;
    background: var(--report-sheet-background, #fff);
    box-shadow: 0 6px 18px rgba(20, 53, 112, 0.12);
}

/* 内側のカード枠を外す */
.ae-ai__report-slides > article,
.ae-ai__report-slides > .ae-ai__report-overview {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

/* 3面とも同じ高さ */
.ae-ai__report-grid.ae-ai__report-slides {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 12px;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 0;
    scrollbar-width: none;
}

.ae-ai__report-slides::-webkit-scrollbar {
    display: none;
}

.ae-ai__report-slides > article,
.ae-ai__report-slides > .ae-ai__report-overview {
    flex: 0 0 100%;
    align-self: stretch;
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    overflow: visible;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.ae-ai__report-slides > article:nth-child(1) {
    order: 0;
}

.ae-ai__report-slides > article:nth-child(2) {
    order: 2;
}

.ae-ai__report-slides > .ae-ai__report-overview {
    order: 1;
    align-self: stretch;
    justify-content: flex-start;
    height: auto;
}

.ae-ai__report-slides > article > * {
    flex-shrink: 0;
}

/* 概要：白地に濃い文字 */
.ae-ai__report-overview {
    display: flex;
    flex-direction: column;
    border: 1px solid #b9d0ff;
    border-top: 4px solid #064bfa;
    border-radius: 8px;
    padding: 24px 18px;
    background: #fff;
    color: #142b50;
}

.ae-ai .ae-ai__report-overview h4 {
    display: none;
}

.ae-ai .ae-ai__report-overview p {
    flex-shrink: 0;
    margin: 0;
    color: #142b50;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.9;
    text-wrap: wrap;
}

/* 概要：文字と矢印で比較先を案内 */
.ae-ai__report-overview-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: start;
    gap: 8px;
    flex: 0 0 auto;
    margin: 14px 0 0;
    padding: 0;
}

.ae-ai .ae-ai__report-overview-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid #a9b5c6;
    border-radius: 8px;
    padding: 10px 12px;
    background: #f1f3f6;
    color: #344563;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    cursor: pointer;
}

.ae-ai__report-overview-actions button::before {
    content: none;
}

.ae-ai .ae-ai__report-overview-actions button:last-child {
    border-color: #8fb1ff;
    background: #edf4ff;
    color: #064bfa;
}

.ae-ai .ae-ai__report-overview-actions button:focus-visible {
    outline: 3px solid #064bfa;
    outline-offset: 2px;
}

    .ae-ai .ae-ai__report-metric p,
    .ae-ai .ae-ai__report-card p,
    .ae-ai .ae-ai__report-card li {
        font-size: 14px;
        line-height: 1.9;
    }

    .ae-ai .ae-ai__report-card h4 {
        font-size: 16px;
        line-height: 1.7;
    }

/* 工数の人物画像 */
.ae-ai .ae-ai__report-metric > .ae-ai__report-figure {
    flex: 0 0 210px;
    min-height: 0;
    max-height: none;
    height: 210px;
    margin: 16px 0 0;
    background-position: center;
}

/* 品質の人物画像 */
.ae-ai .ae-ai__report-card > .ae-ai__report-figure {
    height: 200px;
    margin: 12px 0 18px;
    background-position: center;
}

/* 学びの人物画像 */
.ae-ai #ai-report-learning + .ae-ai__report-grid
> article > .ae-ai__report-figure {
    height: 220px;
}

/* 工数の表示切り替え */
.ae-ai__report-shared-details,
.ae-ai__report-stage-details {
    display: none;
}

/* タイトルとボタンのための見出し行 */
.ae-ai__report-effort-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    column-gap: 12px;
}

.ae-ai__report-effort-section > * {
    grid-column: 1 / -1;
    min-width: 0;
}

.ae-ai .ae-ai__report-effort-section
> .ae-ai__report-eyebrow {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    align-self: center;
    box-sizing: border-box;
    min-height: 36px;
    max-width: none;
    margin: 0 0 10px;
}

.ae-ai .ae-ai__report-effort-toggle {
    position: static;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 100px;
    min-height: 36px;
    box-sizing: border-box;
    margin: 0 0 10px;
    border: 1px solid #064bfa;
    border-radius: 999px;
    padding: 6px 12px;
    background: linear-gradient(#fff, #e8f1ff);
    color: #064bfa;
    box-shadow: 0 2px 0 #b7ceff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
}

.ae-ai .ae-ai__report-effort-toggle::after {
    content: "＋";
    font-size: 14px;
    line-height: 1;
}

.ae-ai .ae-ai__report-effort-toggle[aria-pressed="true"]::after {
    content: "−";
}

.ae-ai .ae-ai__report-effort-toggle:active {
    transform: translateY(1px);
    box-shadow: none;
}
.ae-ai .ae-ai__report-effort-toggle[hidden] {
    display: none;
}

.ae-ai .ae-ai__report-effort-toggle[aria-pressed="true"] {
    background: #064bfa;
    color: #fff;
}

.ae-ai .ae-ai__report-effort-toggle:focus-visible {
    outline: 3px solid #82bdff;
    outline-offset: 2px;
}

.ae-ai__report-effort-section[data-effort-view="stages"]
.ae-ai__report-stage-details {
    display: block;
    margin-top: 16px;
}

.ae-ai__report-effort-section[data-effort-view="stages"]
.ae-ai__report-metric > p:not(.ae-ai__report-method),
.ae-ai__report-effort-section[data-effort-view="stages"]
.ae-ai__report-metric > .ae-ai__report-figure {
    display: none;
}

.ae-ai__report-stage-details table {
    margin-top: 0;
}

/* スマホ：担当者コメントは青い太字で表示 */
.ae-ai .ae-ai__report-typing-note {
    color: #064bfa;
    font-weight: 600;
}

/* 結論も青文字が読める薄青の背景にする */
.ae-ai .ae-ai__report-takeaway {
    background-color: #edf5ff;
    background-image: none;
    color: #064bfa;
    box-shadow: 0 6px 18px rgba(20, 53, 112, 0.14);
}

.ae-ai .ae-ai__report-takeaway h4 {
    margin-bottom: 20px;
    color: #064bfa;
    font-size: clamp(18px, 4.4vw, 20px);
    line-height: 1.8;
    letter-spacing: 0;
}

.ae-ai .ae-ai__report-takeaway p {
    color: #064bfa;
    font-size: clamp(12.5px, 3.2vw, 14px);
    font-weight: 600;
    line-height: 1.95;
    letter-spacing: 0;
}

.ae-ai__report-takeaway .ae-ai__takeaway-source,
.ae-ai__report-takeaway .ae-ai__takeaway-output {
    overflow-wrap: normal;
    word-break: normal;
    line-break: strict;
}
}
.ae-ai__quiz-status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 780px) {
    .ae-ai__quiz {
        margin-top: 44px;
    }

    .ae-ai__quiz-start {
        width: 100%;
    }

    .ae-ai .ae-ai__quiz-question {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 12px;
        min-height: 132px;
        padding: 20px 16px;
        font-size: clamp(18px, 4vw, 22px);
    }

    .ae-ai__quiz-root-answers,
    .ae-ai__quiz-branches {
        gap: 16px;
    }

    .ae-ai__quiz-branches {
        margin-top: 56px;
    }

    .ae-ai .ae-ai__quiz-branch .ae-ai__quiz-question {
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        gap: 12px;
        min-height: 180px;
        padding: 20px 12px;
        font-size: 16px;
        border-radius: 6px;
        overflow-wrap: anywhere;
    }

    .ae-ai__quiz-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .ae-ai__quiz-answers {
        gap: 10px;
    }

    .ae-ai__quiz-answer {
        min-height: 48px;
        padding: 10px 8px;
        font-size: 17px;
    }

    .ae-ai__quiz-merge {
        height: 32px;
    }

    .ae-ai .ae-ai__quiz-result > p:not(.ae-ai__quiz-result-label):not(.ae-ai__quiz-pending) {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ae-ai__quiz-question,
    .ae-ai__quiz-answer {
        transition: none;
    }
}

.ae-ai__experiment-heading {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 32px;
    margin-bottom: 40px;
}
.ae-ai__experiment-heading .ae-ai__eyebrow {
    margin-bottom: 16px;
}

.ae-ai .ae-ai__experiment-title {
    margin: 0;
    color: var(--ai-blue);
    font-size: clamp(44px, 5.4vw, 88px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
    text-align: left;
}

.ae-ai__experiment-title > span {
    display: block;
}

/* 左の説明・中央の機械用余白・右の問い */
.ae-ai__experiment-copy {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 0.85fr)
        minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.ae-ai__experiment-intro {
    grid-column: 1;
    min-width: 0;
}

.ae-ai .ae-ai__experiment-intro h3 {
    margin: 0 0 18px;
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 800;
    line-height: 1.5;
}

.ae-ai .ae-ai__experiment-intro > p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.85;
}

.ae-ai__experiment-break {
    display: none;
}

.ae-ai__experiment-methods {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ae-ai .ae-ai__experiment-methods > li {
    color: var(--ai-blue);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
}

.ae-ai__experiment-invitation {
    grid-column: 3;
    min-width: 0;
}

.ae-ai__experiment-questions {
    display: grid;
    gap: 14px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.ae-ai__experiment-questions > li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin: 0;
}

.ae-ai__experiment-questions > li > span {
    flex: 0 0 auto;
    color: var(--ai-blue);
    font: 700 14px/1.5 "Courier New", monospace;
}

.ae-ai__experiment-questions strong {
    color: var(--ai-ink);
    font-size: clamp(20px, 1.7vw, 28px);
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ae-ai__experiment-link {
    width: 100%;
    min-height: 58px;
    gap: 12px;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    box-shadow: none;
}

.ae-ai__experiment-link > span {
    flex: 0 0 auto;
}

.ae-ai__experiment-link[aria-disabled="true"] {
    cursor: default;
}

.ae-ai__experiment-link[aria-disabled="true"]:hover {
    background: var(--ai-blue);
}

.ae-ai .ae-ai__experiment-pending {
    margin: 10px 0 0;
    color: var(--ai-ink);
    font-size: 12px;
    line-height: 1.6;
}

