/* AI駆動型開発：ページの基本設定 */
.ae-ai-page {
    --ai-blue: #064bfa;
    --ai-ink: #080b20;
    --ai-border: #739eff;
    color: var(--ai-ink);
    background: var(--ae-dot-background);
    background-attachment: fixed;
    animation: ae-dot-background-drift 20s ease-in-out infinite;
    font-family: var(--font-family-base);
    line-height: 1.85;
}
.ae-ai,
.ae-ai *,
.ae-ai *::before,
.ae-ai *::after {
    box-sizing: border-box;
}

.ae-ai {
    width: calc(100% - 80px);
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 64px;
}

.ae-ai h1,
.ae-ai h2,
.ae-ai h3,
.ae-ai h4,
.ae-ai p {
    margin-top: 0;
}

.ae-ai h1,
.ae-ai h2,
.ae-ai h3,
.ae-ai h4 {
    color: var(--ai-ink);
    line-height: 1.5;
    letter-spacing: 0;
}

.ae-ai h1,
.ae-ai h2 {
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700;
}

.ae-ai h3 {
    font-size: 21px;
    font-weight: 700;
}

.ae-ai p,
.ae-ai li {
    font-size: 16px;
}

.ae-ai button,
.ae-ai select,
.ae-ai input {
    font: inherit;
}

.ae-ai button {
    cursor: pointer;
}

.ae-ai [hidden] {
    display: none !important;
}

.ae-ai a:focus-visible,
.ae-ai button:focus-visible,
.ae-ai select:focus-visible {
    outline: 3px solid var(--ai-blue);
    outline-offset: 4px;
}

.ae-ai__skip {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100000;
    padding: 10px 18px;
    background: #fff;
    color: #064bfa;
    transform: translateY(-180%);
}

.ae-ai__skip:focus {
    transform: none;
}

/* 会社紹介から開いた場合の戻るリンク */
.ae-ai .ae-ai__first-screen > .ae-ai__topbar--with-return {
    display: flex;
    justify-content: flex-end;
    padding: 24px 0;
    border-bottom: 0;
}

.ae-ai__topbar--with-return .ae-ai__brand {
    display: none;
}

/* ページ上部 */
.ae-ai__topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #c8dfff;
}

.ae-ai__brand {
    color: var(--ai-ink);
    font: 700 29px/1.2 Arial, sans-serif;
    letter-spacing: -0.06em;
    text-decoration: none;
}

.ae-ai__brand span,
.ae-ai__hero-en span {
    color: var(--ai-blue);
}

.ae-ai__text-link {
    color: var(--ai-blue);
    font-size: 14px;
    font-weight: 700;
    text-underline-offset: 4px;
}

.ae-ai__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(300px, 34vw, 520px);
    align-items: start;
    column-gap: clamp(24px, 3vw, 48px);
    row-gap: 16px;
    margin-top: 20px;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    padding: 16px 0 0;
    background: transparent;
    box-shadow: none;
}

.ae-ai__hero-side {
    display: grid;
    grid-column: 1;
    gap: 12px;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    justify-self: start;
}

/* コンベアの銀色に合わせた、控えめな金属パネル */
.ae-ai__hero-index {
    position: relative;
    overflow: hidden;
    border: 1px solid #b5bec5;
    border-radius: 8px;
    padding: 20px 24px 16px;
    background:
        linear-gradient(
            125deg,
            rgba(255, 255, 255, 0.22) 0%,
            transparent 48%,
            rgba(65, 83, 100, 0.025) 100%
        ),
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.04) 0 1px,
            rgba(75, 91, 105, 0.02) 1px 2px
        ),
        linear-gradient(
            180deg,
            #edf0f2 0%,
            #e4e8eb 52%,
            #dce1e5 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        inset 0 -1px 0 rgba(75, 91, 105, 0.12),
        0 3px 6px rgba(8, 11, 32, 0.06);
}

/* 四隅の小さな固定ネジ */
.ae-ai__hero-index::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 3px;
    background:
        radial-gradient(
            circle at 3px 3px,
            #777a78 0 1px,
            #c6c7c1 1.2px 2.5px,
            transparent 3px
        ),
        radial-gradient(
            circle at calc(100% - 3px) 3px,
            #777a78 0 1px,
            #c6c7c1 1.2px 2.5px,
            transparent 3px
        ),
        radial-gradient(
            circle at 3px calc(100% - 3px),
            #777a78 0 1px,
            #c6c7c1 1.2px 2.5px,
            transparent 3px
        ),
        radial-gradient(
            circle at calc(100% - 3px) calc(100% - 3px),
            #777a78 0 1px,
            #c6c7c1 1.2px 2.5px,
            transparent 3px
        );
    pointer-events: none;
}

.ae-ai .ae-ai__hero-index-label {
    margin: 0 0 6px;
    color: var(--ai-blue);
    font: 700 11px/1.6 "Courier New", monospace;
    letter-spacing: 0.12em;
}

.ae-ai .ae-ai__hero-index h2 {
    margin: 0 0 12px;
    color: #4b535b;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.ae-ai__hero-index-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ae-ai__hero-index-list li {
    min-width: 0;
    margin: 0;
    padding: 0;
    border-top: 1px solid #c5cdd3;
}

/* 狭い画面では文字の読みやすさを優先する */
@media (max-width: 1200px) {
    .ae-ai__hero-index-list {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
    }
}

.ae-ai__hero-index-list a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 0;
    color: #596168;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    text-decoration: none;
    transition: color 180ms ease;
}

.ae-ai__hero-index-number {
    color: var(--ai-blue);
    font: 700 13px/1.6 "Courier New", monospace;
}

.ae-ai__hero-index-list a > span:last-child {
    color: var(--ai-blue);
    text-align: right;
}

.ae-ai__hero-index-list a:hover {
    color: var(--ai-blue);
}

.ae-ai__hero-case-link {
    justify-self: end;
    gap: 24px;
}

.ae-ai__eyebrow {
    margin: 0 0 12px;
    color: var(--ai-blue);
    font: 700 12px/1.6 "Courier New", monospace;
    letter-spacing: 0.06em;
}
/* トップ：ページ名と会社の姿勢 */
.ae-ai__hero-copy {
    min-width: 0;
}

.ae-ai__hero-copy > .ae-ai__eyebrow {
    margin-bottom: 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.ae-ai .ae-ai__hero-title {
    margin: 0 0 20px;
    color: var(--ai-blue);
    font-size: clamp(28px, 2.4vw, 40px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: left;
    text-shadow: none;
}

.ae-ai .ae-ai__hero-message {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 8px;
    margin: 0 0 18px;
    color: var(--ai-ink);
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: left;
}

.ae-ai__hero-message > span {
    white-space: nowrap;
}

.ae-ai__hero-message > span:first-child {
    color: var(--ai-blue);
}
/* 英語タイトル：数字・相談ページと共通の書体とサイズ */
.ae-ai .ae-ai__hero-en {
    margin: 0 0 24px;
    color: var(--ai-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(48px, 6vw, 92px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.ae-ai .ae-ai__intro {
    max-width: none;
    margin-bottom: 0;
    color: var(--ai-ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0;
}

.ae-ai__intro > span {
    display: block;
}

.ae-ai__intro > span + span {
    margin-top: 0;
}

.ae-ai__intro strong {
    color: var(--ai-ink);
    font-weight: 700;
}

.ae-ai__hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.ae-ai__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 2px solid var(--ai-blue);
    border-radius: 5px;
    padding: 12px 22px;
    background: var(--ai-blue);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 3px 3px 0 #9cc6ff;
}

.ae-ai__button:hover {
    background: #003bd0;
}

.ae-ai__hero-note {
    position: relative;
    padding: 18px 40px 24px 12px;
}

/* 紙のメモ */
.ae-ai__note {
    position: relative;
    display: block;
    border: 1px solid #ccd5e3;
    border-radius: 3px;
    padding: 36px 32px 28px 48px;
    background-color: #fffef9;
    background-image:
        linear-gradient(
            90deg,
            transparent 29px,
            #dbe5f3 29px,
            #dbe5f3 30px,
            transparent 30px
        ),
        repeating-linear-gradient(
            transparent,
            transparent 31px,
            #e2e8f0 31px,
            #e2e8f0 32px
        );
    box-shadow: 0 12px 28px rgba(8, 11, 32, 0.13);
    color: var(--ai-ink);
    text-decoration: none;
}

/* 描けるメモ。描画位置を合わせるため紙は傾けない */
.ae-ai__note--hero {
    min-height: 340px;
    transform: none;
    transition:
        transform 260ms ease,
        box-shadow 260ms ease,
        border-color 260ms ease;
}

.ae-ai__hero-note.is-written .ae-ai__note--hero {
    transform: none;
    border-color: #80afff;
    box-shadow: 0 16px 32px rgba(6, 75, 250, 0.16);
}

/* 紙の中の描画スペース */
.ae-ai__drawing-area {
    position: relative;
    width: 100%;
    min-height: 180px;
    aspect-ratio: 2 / 1;
    margin-top: 8px;
}

.ae-ai__drawing-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
    cursor: default;
}

.ae-ai__hero-note.is-drawing .ae-ai__drawing-canvas {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M5 21L22 4Q24 2 26 4L28 6Q30 8 28 10L11 27Z' fill='%23064bfa' stroke='white' stroke-width='1.2'/%3E%3Cpath d='M5 21L2 30L11 27Z' fill='%23f4dcba' stroke='%23080b20' stroke-width='1'/%3E%3Cpath d='M2 30L4 25L7 28Z' fill='%23080b20'/%3E%3Cpath d='M20 6L26 12' stroke='%2362caff' stroke-width='2'/%3E%3C/svg%3E") 2 30, crosshair;
}

.ae-ai__drawing-hint {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    gap: 8px;
    color: #6f87a6;
    font-size: 15px;
    text-align: center;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.ae-ai__drawing-hint small {
    margin: 0;
    color: #8798ad;
    font-size: 12px;
}

.ae-ai__hero-note.is-written .ae-ai__drawing-hint {
    opacity: 0;
}

/* 描画モードと消去 */
.ae-ai__drawing-tools {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.ae-ai__drawing-tools button {
    min-height: 40px;
    border: 1px solid #bad2ff;
    border-radius: 5px;
    padding: 7px 12px;
    background: #fff;
    color: var(--ai-blue);
    font-size: 12px;
    font-weight: 700;
    transition:
        background-color 180ms ease,
        border-color 180ms ease;
}

.ae-ai__drawing-tools button:hover {
    border-color: var(--ai-blue);
    background: #f0f6ff;
}

.ae-ai__drawing-tools button[aria-pressed="true"] {
    border-color: var(--ai-blue);
    background: var(--ai-blue);
    color: #fff;
}

.ae-ai__drawing-tools button:disabled {
    opacity: 0.45;
    cursor: default;
}

/* 線が自動で消える設定では、消去ボタンを表示しない */
@media (prefers-reduced-motion: no-preference) {
    .ae-ai__drawing-clear {
        display: none;
    }
}

/* PCでは描画モードの切り替えボタンを表示しない */
@media (hover: hover) and (pointer: fine) {
    .ae-ai__drawing-mode {
        display: none;
    }
}

/* PCの通常表示：操作ボタンの場所をメモの高さに置き換える */
@media (hover: hover) and (pointer: fine)
       and (prefers-reduced-motion: no-preference) {
    .ae-ai__drawing-tools {
        display: none;
    }

    .ae-ai__drawing-area {
        box-sizing: content-box;
        padding-bottom: 56px;
    }
}

/* メモ下の案内：描画前から表示して高さを保つ */
.ae-ai__idea-next {
    margin-top: 18px;
    border: 2px solid #bad2ff;
    border-radius: 8px;
    padding: 14px 18px;
    background: #fff;
    transition:
        background-color 240ms ease,
        border-color 240ms ease,
        box-shadow 240ms ease;
}

.ae-ai__idea-next p {
    margin: 0 0 8px;
    color: var(--ai-blue);
    font-size: 16px;
    font-weight: 700;
}

.ae-ai__idea-next a {
    display: block;
    color: #285998;
    font-size: 13px;
    font-weight: 700;
    text-underline-offset: 4px;
}

/* 描いた後：青いカードで実例への案内を強調 */
.ae-ai__idea-next.is-active {
    border-color: var(--ai-blue);
    background: var(--ai-blue);
    box-shadow: 4px 4px 0 #9cc6ff;
}

.ae-ai__idea-next.is-active p,
.ae-ai__idea-next.is-active a {
    color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
    .ae-ai__idea-next.is-active {
        animation: ae-ai-idea-appear 450ms ease-out;
    }
}

@keyframes ae-ai-idea-appear {
    from {
        opacity: 0.65;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ae-ai__idea-next {
        transition: none;
    }
}


.ae-ai__paperclip {
    position: absolute;
    top: -22px;
    left: 12px;
    z-index: 2;
    width: 23px;
    height: 66px;
    border: 3px solid var(--ai-blue);
    border-radius: 13px;
    background: transparent;
    box-shadow:
        inset 1px 0 1px rgba(255, 255, 255, 0.8),
        1px 0 1px rgba(8, 11, 32, 0.22),
        3px 4px 3px rgba(8, 11, 32, 0.16);
    transform: rotate(-12deg);
    pointer-events: none;
}

.ae-ai__paperclip::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 4px;
    width: 10px;
    height: 43px;
    border: 3px solid var(--ai-blue);
    border-top: 0;
    border-radius: 0 0 7px 7px;
    box-shadow:
        inset 1px 0 1px rgba(255, 255, 255, 0.7),
        1px 1px 1px rgba(8, 11, 32, 0.18);
}

.ae-ai__paperclip::after {
    content: "";
    position: absolute;
    top: 5px;
    left: -2px;
    width: 1px;
    height: 42px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.7);
}

.ae-ai__note-label {
    display: block;
    margin-bottom: 22px;
    color: #56708c;
    font: 700 12px/1.5 "Courier New", monospace;
    letter-spacing: 0.1em;
}

.ae-ai__note--hero > .ae-ai__note-label {
    margin-bottom: 8px;
}

.ae-ai__note--hero > strong {
    display: block;
    margin-bottom: 12px;
    color: #064bfa;
    font-family:
        "Yu Gothic",
        "Hiragino Kaku Gothic ProN",
        "Meiryo",
        sans-serif;
    font-size: clamp(20px, 1.8vw, 28px);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
}

.ae-ai__note-line {
    display: block;
    margin-bottom: 8px;
    color: #285998;
}

.ae-ai__sketch-flow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

.ae-ai__sketch-flow span {
    border: 2px solid #4772ad;
    border-radius: 3px;
    padding: 6px 12px;
    color: #285998;
}

.ae-ai__handnote {
    display: block;
    color: #285998;
    font-weight: 700;
}

.ae-ai__note small {
    display: block;
    margin-top: 20px;
    color: #687587;
    font-size: 11px;
}

.ae-ai__pen {
    position: absolute;
    right: -12px;
    bottom: 5px;
    width: 140px;
    height: 140px;
    object-fit: contain;
    pointer-events: none;
    transform: rotate(35deg);
}

.ae-ai__hero-hint {
    margin: 24px 0 0;
    color: var(--ai-blue);
    font-size: 13px !important;
    font-weight: 700;
    text-align: center;
}

/* PCでは、メモ内と重複する操作説明を非表示 */
@media (hover: hover) and (pointer: fine) {
    .ae-ai__hero-hint {
        display: none;
    }
}

@media (min-width: 1000px) {
    .ae-ai-page {
        --ae-ai-admin-height: 0px;
    }

    .ae-ai-page.admin-bar {
        --ae-ai-admin-height: 32px;
    }

    .ae-ai {
        width: 100%;
        max-width: none;
    }

    /* 文字とコンベアを画面の高さに合わせて配置する */
    .ae-ai__first-screen {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
        min-height: calc(100svh - var(--ae-ai-admin-height));
        isolation: isolate;
    }

        .ae-ai__first-screen > .ae-page-scroll-guide {
        grid-area: 3 / 1;
        justify-self: center;
    }

    .ae-ai__first-screen > .ae-ai__topbar,
    .ae-ai__first-screen > .ae-ai__hero,
    .ae-ai > .ae-ai__section,
    .ae-ai > .ae-ai__talk {
        width: calc(100% - 80px);
        max-width: 1280px;
        margin-inline: auto;
    }

    .ae-ai__first-screen > .ae-ai__topbar {
        display: none;
        grid-area: 1 / 1;
    }

    /* 左にタイトルと本文、右に目次 */
    .ae-ai__first-screen > .ae-ai__hero {
        position: relative;
        z-index: 2;
        grid-area: 2 / 1;
        align-self: start;
        margin-top: 20px;
        margin-bottom: 0;
        padding-top: 16px;
        padding-bottom: 0;
    }

    .ae-ai__first-screen .ae-ai__hero-copy > .ae-ai__eyebrow {
        margin-bottom: 12px;
    }

    /* 英語タイトルを数字ページと共通の文字サイズにする */
    .ae-ai__first-screen .ae-ai__hero-en {
        margin-bottom: 24px;
        font-size: clamp(48px, 6vw, 92px);
    }

    .ae-ai__first-screen .ae-ai__hero-title {
        margin-bottom: 20px;
    }

    /* 中央の機械に重ならないよう、下側の文章幅を抑える */
    .ae-ai__first-screen .ae-ai__hero-message {
        max-width: min(420px, calc(50vw - 140px));
        margin-bottom: 12px;
        font-size: clamp(20px, 1.6vw, 24px);
    }

    .ae-ai__first-screen .ae-ai__intro {
        max-width: min(420px, calc(50vw - 140px));
        margin-bottom: 0;
    }

    /* 左右いっぱいのコンベアをトップ画面の下側にそろえる */
    .ae-ai__first-screen > .ae-ai__factory {
        grid-area: 2 / 1;
        align-self: end;
        margin-top: 0;
        margin-bottom: 4px;
        padding-bottom: 32px;
    }

    .ae-ai__first-screen > .ae-ai__factory .ae-ai__factory-scene {
        top: 10px;
    }
}

/* 固定目次と管理バーの間隔 */
.ae-ai-page {
    --ai-nav-admin-offset: 0px;
}

.ae-ai-page.admin-bar {
    --ai-nav-admin-offset: 32px;
}

@media (max-width: 782px) {
    .ae-ai-page.admin-bar {
        --ai-nav-admin-offset: 46px;
    }
}

/* スクロール後に現れる右上の目次 */
.ae-ai__floating-nav {
    position: fixed;
    top: calc(var(--ai-nav-admin-offset) + 14px);
    right: clamp(16px, 2.5vw, 40px);
    z-index: 1000;
    max-width: calc(100% - 32px);
}

.ae-ai__floating-links {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;    border: 1px solid #d2e2ff;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 3px 10px rgba(6, 75, 250, 0.05);
}

.ae-ai__floating-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 24px;
    padding: 10px 18px;
    background: transparent;
    color: #064bfa;
    box-shadow: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 220ms ease,
        color 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

/* 選択中の項目：薄い水色と青い縁取り */
.ae-ai__floating-links a[aria-current="location"] {
    border-color: #80afff;
    background: linear-gradient(180deg, #f3f8ff, #deecff);
    color: #064bfa;
    box-shadow:
        inset 0 1px 2px #fff,
        0 2px 5px rgba(6, 75, 250, 0.08);
}

.ae-ai__floating-links a:focus-visible {
    outline: 2px solid #064bfa;
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .ae-ai__floating-links a:hover {
        border-color: #bad2ff;
        background-color: #eef5ff;
        box-shadow: none;
    }

    .ae-ai__floating-links a[aria-current="location"]:hover {
        border-color: #064bfa;
        box-shadow:
            inset 0 1px 2px #fff,
            0 2px 7px rgba(6, 75, 250, 0.12);
    }
}

.ae-ai__floating-toggle {
    display: none;
}

/* 目次から移動しても見出しが隠れないようにする */
.ae-ai__section {
    padding: 64px 0;
    scroll-margin-top: calc(var(--ai-nav-admin-offset) + 84px);
}

/* スマホ：ボタンから目次を開く */
@media (max-width: 650px) {
    .ae-ai__floating-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        width: min(280px, calc(100% - 32px));
    }

    .ae-ai__floating-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        min-height: 44px;
        border: 1px solid #80afff;
        border-radius: 22px;
        padding: 9px 16px;
        background: #fff;
        color: #064bfa;
        box-shadow: 0 4px 12px rgba(6, 75, 250, 0.1);
        font-size: 12px;
        font-weight: 700;
    }

    .ae-ai__floating-toggle[aria-expanded="true"] {
        background: #064bfa;
        color: #fff;
    }

    .ae-ai__floating-links {
        display: grid;
        gap: 8px;
        width: 100%;
        border: 1px solid #a9caff;
        border-radius: 18px;
        padding: 10px;
        background: linear-gradient(180deg, #fff, #e7f1ff);
        box-shadow:
            inset 0 1px 0 #fff,
            0 5px 16px rgba(6, 75, 250, 0.1);
    }

    .ae-ai__floating-links a:nth-child(n) {
        justify-content: flex-start;
        min-height: 44px;
        border-radius: 12px;
        padding-inline: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ae-ai__floating-links a {
        transition: none;
    }
}

.ae-ai__section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.ae-ai .ae-ai__section-en {
    margin: 0 0 12px;
    font: 800 clamp(28px, 3.6vw, 48px)/1.05 Arial, sans-serif;
    letter-spacing: -0.05em;
}

.ae-ai__section-heading h2 {
    max-width: none;
    margin: 0;
    text-align: left;
}

.ae-ai__section-heading > p {
    margin: 0;
    color: var(--ai-ink);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
}

/* ウィンドウと日付切り替え */
.ae-ai__window {
    overflow: hidden;
    border: 1px solid var(--ai-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(6, 75, 250, 0.12);
}

.ae-ai__window-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 14px;
    background: var(--ai-blue);
    color: #fff;
    font: 700 12px/1.5 "Courier New", monospace;
}

.ae-ai__window-body {
    padding: 28px;
}

