/* AIチェックページ（ai-features.html）専用。共通部品は css/lead-pages.css を使う。 */

.aic-page .container { max-width: 1200px; }
.aic-page main { overflow: clip; }
.aic-page section[id] { scroll-margin-top: 88px; }
.aic-page :is(a, button, summary):focus-visible { outline: 3px solid var(--lead-blue); outline-offset: 4px; }

.aic-page .nb { display: inline-block; }

/* ヘッダー：トップページなどと同じく、スクロール前はヒーローと同じ色（透明）にし、スクロールしたら白にする。
   css/lead-pages.css の「LPは常に白」より優先させる */
.aic-page .header:not(.header-scrolled) {
    background: transparent !important;
    border-bottom-color: transparent !important;
}

.aic-page sup.fn-ref {
    font-size: 0.62em;
    line-height: 1;
    color: var(--lead-faint);
    font-weight: 500;
    white-space: nowrap;
}

.aic-icon {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== ヒーロー ===== */
.aic-hero {
    padding: 134px 0 0;
    background: radial-gradient(ellipse at 72% 42%, #f6fbff 0%, transparent 58%), #e8f3ff;
}

.aic-page .aic-hero__inner {
    max-width: 1440px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-areas: "copy media" "proof proof";
    column-gap: 32px;
    align-items: center;
}

.aic-hero__copy { grid-area: copy; text-align: center; }
.aic-hero__media { grid-area: media; position: relative; min-width: 0; }
.aic-hero__proof { grid-area: proof; }
.aic-hero .lead-hero-eyebrow {
    margin-bottom: 16px;
    padding: 5px 14px;
    background: #fff;
    border: 1px solid #cfe3f1;
    border-radius: 999px;
    color: var(--sky-link, #176fa8);
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
}

.aic-hero h1 {
    margin: 0;
    color: var(--lead-navy);
    font-size: clamp(1.75rem, 2.5vw, 2.2rem);
    line-height: 1.5;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.aic-hero h1 .accent { color: var(--lead-blue); font-size: clamp(2.1rem, 3.4vw, 3rem); line-height: 1.5; }

.aic-hero__lead {
    margin: 20px auto 0;
    max-width: 34em;
    color: var(--lead-navy-2);
    font-size: 0.9375rem;
    line-height: 1.9;
}

.aic-hero__results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.aic-result {
    position: relative;
    display: flex;
    min-height: 115px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--lead-navy);
    text-decoration: none;
}

.aic-result::before,
.aic-result::after {
    content: "";
    position: absolute;
    top: 12px;
    width: 22px;
    height: 82px;
    background: url('../images/hero/laurel.svg') center / contain no-repeat;
    pointer-events: none;
}

.aic-result::before { left: 0; }
.aic-result::after { right: 0; transform: scaleX(-1); }
.aic-result__label { font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.aic-result strong { display: block; min-height: 40px; line-height: 1.2; font-weight: 800; }
.aic-result__number { font-size: 2.4rem; }
.aic-result__number--users { font-size: clamp(1.75rem, 2.4vw, 2.25rem); letter-spacing: -0.04em; }
.aic-result__number span { margin-left: 2px; font-size: 1rem; }
/* 3つ目は数値ではなくAIチェックの特長（弁護士監修・特許出願済み）を2行で見せる */
.aic-result .aic-result__feature { display: flex; flex-direction: column; justify-content: center; min-height: 64px; font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.02em; }
.aic-result__source { font-size: 0.625rem; line-height: 1.5; white-space: nowrap; }
.aic-result__source--emphasis { font-size: 0.75rem; font-weight: 700; }

.aic-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

.aic-hero__action-label { margin: 0; color: var(--lead-navy-2); font-size: 0.8125rem; font-weight: 600; }
.aic-hero__actions .btn {
    display: flex;
    justify-content: center;
    gap: 24px;
    width: min(100%, 360px);
    min-height: 64px;
    padding: 0 26px;
    font-size: 1.125rem;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(32, 98, 202, 0.13);
}

.aic-laptop { margin: 20px -20px 0; }
.aic-laptop img { display: block; width: 100%; height: auto; }
.aic-laptop figcaption { margin-top: 10px; color: var(--lead-navy-2); font-size: 0.875rem; font-weight: 600; text-align: center; }

.aic-hero__trial {
    position: absolute;
    z-index: 1;
    top: -24px;
    left: -4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #ffd13e;
    color: var(--lead-navy);
    box-shadow: 0 8px 18px rgba(70, 94, 119, 0.18);
    transform: rotate(-9deg);
    text-decoration: none;
    font-weight: 800;
    line-height: 1.35;
}
.aic-hero__trial span:first-child { font-size: 1.25rem; }
.aic-hero__trial strong { font-size: 2.65rem; }
.aic-hero__trial span:last-child { font-size: 0.875rem; }
.aic-hero__trial:hover { background: #ffdb64; }

.aic-hero__proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 30px;
    margin-top: 40px;
    padding: 22px 0;
    border-top: 1px solid #cadff0;
    text-align: center;
}
.aic-hero__note { margin: 0; color: var(--lead-muted); font-size: 0.6875rem; line-height: 1.7; }

/* ===== セクション見出し：少し小さくし、上に短い青の線を置く ===== */
.aic-page .lead-section-heading { margin-bottom: 40px; }
.aic-page .lead-section-heading h2 { font-size: 2rem; letter-spacing: -0.01em; }
.aic-page .lead-section-heading h2::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    margin: 0 auto 18px;
    background: var(--sky-button, #197bbb);
    border-radius: 2px;
}
.aic-page .lead-section-heading p { font-size: 0.95rem; }

/* ===== ロゴ（トップページと同じスライダー。2本の同じ列を半分ずつ流して継ぎ目をなくす） ===== */
.aic-page .lead-logos { border-bottom: 0; padding: 30px 0 34px; }
.aic-page .lead-logos-title { margin-bottom: 20px; }

.aic-logos { overflow: hidden; }

.aic-logos__rail {
    display: flex;
    width: max-content;
    animation: aic-logo-slide 25s linear infinite;
}

/* 動き続ける表示は、ポインターを重ねている間だけ止める */
.aic-logos:hover .aic-logos__rail { animation-play-state: paused; }

.aic-logos__track {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.aic-logos__item {
    flex: 0 0 auto;
    padding: 0 35px;
}

.aic-logos__item img {
    display: block;
    width: auto;
    max-height: 35px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.aic-logos__item.is-wide img { max-height: 28px; }
.aic-logos__item.is-tall img { max-height: 50px; }
.aic-logos__item img:hover { opacity: 1; }

@keyframes aic-logo-slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== 導入企業の声：導入事例ページと同じく商品画像を主役にし、数値ラベルを重ねる ===== */
.aic-cases {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.aic-case {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--lead-line);
    border-radius: 16px;
    box-shadow: 0 20px 44px -32px rgb(25 59 80 / 45%);
}

.aic-case__visual {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 10;
    background: #dde8f0;
}

.aic-case__visual > img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* ブランド画像（MedicalShift）は切り取らずに全体を見せる */
.aic-case__visual--brand { background: linear-gradient(180deg, #f1f6fb 0%, #faf2f6 100%); }
.aic-case__visual--brand > img { object-fit: contain; }

.aic-case__metric {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 28px);
    margin: 0;
    padding: 9px 14px 10px;
    background: rgb(255 255 255 / 95%);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgb(25 59 80 / 16%);
}

.aic-case__metric:has(img) { padding-left: 8px; }

.aic-case__metric img {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px #c7dfee;
}

.aic-case__metric > span > span { display: block; color: var(--sky-muted, #526776); font-size: 0.6875rem; font-weight: 700; line-height: 1.5; }
.aic-case__metric strong { display: block; color: var(--sky-button, #197bbb); font-size: 1.35rem; font-weight: 800; line-height: 1.25; }

.aic-case__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.aic-case__company { display: flex; align-items: center; gap: 12px; }
.aic-case__company img { flex: 0 0 auto; width: 76px; height: 28px; object-fit: contain; }
.aic-case__company p { min-width: 0; margin: 0; }
.aic-case__company strong { display: block; color: var(--lead-ink); font-size: 0.9rem; line-height: 1.5; }
.aic-case__company p > span { display: block; color: var(--lead-faint); font-size: 0.75rem; line-height: 1.5; }

.aic-case blockquote {
    margin: 14px 0 0;
    padding: 0;
    color: var(--lead-muted);
    font-size: 0.9rem;
    line-height: 1.85;
}

.aic-case__link {
    margin-top: auto;
    padding-top: 14px;
    color: var(--sky-link, #176fa8);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}
.aic-case__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ===== よくある質問：質問の頭に「Q」 ===== */
.aic-page .lead-faq summary { padding-left: 62px; }
.aic-page .lead-faq summary::before {
    content: "Q";
    position: absolute;
    top: 50%;
    left: 20px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    background: #eaf4fb;
    border-radius: 50%;
    color: var(--sky-button, #197bbb);
    font-size: 0.8125rem;
    font-weight: 800;
}
.aic-page .lead-faq details p { padding-left: 62px; }
.aic-page .lead-faq details[open] { border-color: #b9d6ea; }

/* ===== できること ===== */
.aic-formats-title {
    margin: 0 0 24px;
    color: var(--lead-ink);
    font-size: 1.35rem;
    text-align: center;
}

.aic-formats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 88px;
    padding: 0;
    list-style: none;
}

.aic-formats li {
    padding: 22px 20px;
    background: #fff;
    border: 1px solid var(--lead-line);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgb(25 59 80 / 4%);
}

.aic-formats .aic-icon {
    box-sizing: content-box;
    width: 24px;
    height: 24px;
    padding: 10px;
    background: #eaf4fb;
    border-radius: 12px;
    color: var(--sky-button, #197bbb);
}

.aic-formats h4 {
    margin: 12px 0 6px;
    color: var(--lead-ink);
    font-size: 1.05rem;
}

.aic-formats p {
    margin: 0;
    color: var(--lead-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.aic-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.aic-feature + .aic-feature { margin-top: 88px; }
.aic-feature.is-reverse .aic-feature__copy { order: 2; }

.aic-feature__copy h3 {
    margin: 0 0 14px;
    color: var(--lead-ink);
    font-size: 1.6rem;
    line-height: 1.45;
}

.aic-feature__copy > p {
    margin: 0;
    color: var(--lead-muted);
    line-height: 1.85;
}

.aic-points {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--lead-line);
}

.aic-points li {
    position: relative;
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid var(--lead-line);
    color: var(--lead-ink);
    font-size: 0.93rem;
    line-height: 1.75;
}

.aic-points li::before {
    content: "✓";
    position: absolute;
    top: 12px;
    left: 2px;
    color: var(--lead-blue);
    font-weight: 800;
}

.aic-feature__copy .aic-feature__note {
    margin-top: 14px;
    font-size: 0.85rem;
}

.aic-feature__note a,
.aic-page .aic-link { color: var(--lead-blue); }

.aic-feature__media { margin: 0; }

.aic-feature__media > img {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0 auto;
    border: 1px solid #d9e3ee;
    border-radius: 14px;
    box-shadow: 0 20px 44px -24px rgba(26, 54, 93, 0.3);
}

.aic-feature__media figcaption {
    margin-top: 12px;
    color: var(--lead-faint);
    font-size: 0.75rem;
    text-align: center;
}

/* 説明図（学習・修正漏れ）は白いパネルにまとめ、中のカードは淡い面にする */
.aic-feature:not(.aic-feature--demo) .aic-feature__media {
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--lead-line);
    border-radius: 18px;
    box-shadow: 0 24px 48px -32px rgb(25 59 80 / 35%);
}
.aic-feature__media .aic-card:not(.is-accent) { background: #f7fafc; }
.aic-feature__media .aic-versions .aic-card { padding: 14px; }
.aic-feature__media .aic-comment { padding: 6px 10px; font-size: 0.8rem; }

/* 動作イメージの動画：2カラムだと動画内の文字が読めないため、説明（見出し｜箇条書き）の下に全幅で置く */
.aic-feature--demo {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 56px;
    row-gap: 40px;
    align-items: start;
}
.aic-feature--demo .aic-points { margin-top: 4px; }
.aic-feature--demo .aic-points li { text-wrap: pretty; }
.aic-demo { grid-column: 1 / -1; }
.aic-demo__video {
    display: block;
    width: 100%;
    max-width: 1040px;
    height: auto;
    aspect-ratio: 1120 / 700;
    margin: 0 auto;
    background: #f4f8fb;
    border: 1px solid #d9e3ee;
    border-radius: 14px;
    box-shadow: 0 24px 48px -24px rgba(26, 54, 93, 0.3);
}
/* スマートフォンは縦長の動画（js/main.js の切り替えと同じ 767px） */
@media (max-width: 767px) {
    .aic-demo__video { max-width: 420px; aspect-ratio: 520 / 720; }
}

/* 説明図（学習・修正漏れ）：実際の画面ではないため、カードだけで簡潔に描く */
.aic-card {
    margin: 0;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #d9e3ee;
    border-radius: 10px;
    color: var(--lead-ink);
    font-weight: 700;
    line-height: 1.6;
}

.aic-card small {
    display: block;
    margin-bottom: 4px;
    color: var(--lead-faint);
    font-size: 0.75rem;
    font-weight: 500;
}

.aic-card em { font-style: normal; color: var(--lead-blue); }

.aic-card.is-accent {
    background: #ebf4ff;
    border-color: #a9c9ed;
}

.aic-learning {
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    counter-reset: learn;
}

.aic-learning li {
    position: relative;
    padding: 0 0 22px 52px;
}

.aic-learning li:last-child { padding-bottom: 0; }

.aic-learning li::before {
    counter-increment: learn;
    content: counter(learn);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--lead-navy);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
}

.aic-learning li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 38px;
    bottom: 4px;
    left: 16px;
    width: 2px;
    background: #c9d8ea;
}

.aic-learning h4 {
    margin: 5px 0 10px;
    color: var(--lead-ink);
    font-size: 1rem;
}

.aic-versions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 480px;
    margin: 0 auto;
}

.aic-price {
    margin: 4px 0 0;
    font-size: 1.6rem;
    font-weight: 800;
}

.aic-price mark {
    padding: 0 4px;
    background: #fff0ba;
    border-bottom: 2px solid #d8a633;
    color: inherit;
}

.aic-comment {
    margin: 12px 0 0;
    padding: 8px 12px;
    background: #f5f8fc;
    border-left: 3px solid var(--lead-blue);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.aic-versions__alert {
    max-width: 480px;
    margin: 14px auto 0;
}

/* ===== 他社の広告チェックツールとの比較：AdKuraの列を青で囲んで強調する ===== */
.aic-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.aic-compare {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    color: var(--lead-ink);
    font-size: 0.875rem;
    line-height: 1.65;
}

.aic-compare thead th:first-child { width: 27%; }
.aic-compare thead th:nth-child(2) { width: 38%; }

.aic-compare thead th {
    padding: 14px 16px;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.02em;
}

.aic-compare thead th:nth-child(2) { background: var(--sky-button, #197bbb); color: #fff; border-radius: 14px 14px 0 0; font-size: 1.2rem; }
.aic-compare thead th:nth-child(3) { background: #6b7785; color: #fff; border-radius: 14px 14px 0 0; }

.aic-compare tbody th,
.aic-compare tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--lead-line);
    vertical-align: middle;
}

.aic-compare tbody th { font-size: 0.85rem; font-weight: 700; text-align: left; }
.aic-compare tbody td { position: relative; padding-left: 44px; color: var(--lead-muted); }
.aic-compare tbody td:last-child { background: #fafbfc; }

.aic-compare td.is-adkura {
    background: #eef6fc;
    color: var(--lead-ink);
    font-weight: 600;
    box-shadow: inset 2px 0 0 var(--sky-button, #197bbb), inset -2px 0 0 var(--sky-button, #197bbb);
}

.aic-compare tbody tr:last-child td.is-adkura {
    border-radius: 0 0 14px 14px;
    box-shadow: inset 2px 0 0 var(--sky-button, #197bbb), inset -2px 0 0 var(--sky-button, #197bbb), inset 0 -2px 0 var(--sky-button, #197bbb);
}
.aic-compare tbody tr:last-child > * { border-bottom: 0; }
.aic-compare tbody tr:last-child td:last-child { border-radius: 0 0 14px 14px; }

/* ◎○△× は図形のアイコンで見せる（記号の文字は読み上げ用に残し、見た目は消す）。文の頭にそろえ、2行目以降は字下げ */
.aic-mark {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    background: center / contain no-repeat;
    color: transparent;
    font-size: 0;
}
.aic-mark.is-best { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9.5' fill='%23197bbb'/%3E%3Ccircle cx='10' cy='10' r='4.6' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E"); }
.aic-mark.is-good { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.2' fill='none' stroke='%23197bbb' stroke-width='2.6'/%3E%3C/svg%3E"); }
td:not(.is-adkura) > .aic-mark.is-good { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.2' fill='none' stroke='%236b7785' stroke-width='2.4'/%3E%3C/svg%3E"); }
.aic-mark.is-fair { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2.6 18 17H2z' fill='none' stroke='%23c27c0e' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.aic-mark.is-bad { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 4 12 12M16 4 4 16' stroke='%23a0aab4' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }

.aic-compare__price { display: block; color: var(--sky-button, #197bbb); font-size: 1.35rem; font-weight: 800; line-height: 1.3; }
.aic-compare__price.is-other { color: var(--lead-muted); font-size: 1.1rem; }
.aic-compare small { display: block; margin-top: 2px; color: var(--lead-muted); font-size: 0.75rem; font-weight: 500; }

.aic-compare__note {
    margin: 16px 0 0;
    color: var(--lead-faint);
    font-size: 0.75rem;
    line-height: 1.7;
}

/* ===== 判定基準・監修 ===== */
.aic-criteria {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    max-width: 1040px;
    margin: 0 auto;
}

.aic-criteria h3 {
    margin: 0 0 16px;
    color: var(--lead-ink);
    font-size: 1.1rem;
}

.aic-laws {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.aic-laws li {
    padding: 7px 15px;
    background: #eaf4fb;
    border: 1px solid #cfe3f1;
    border-radius: 999px;
    color: #1f5f8b;
    font-size: 0.85rem;
    font-weight: 700;
}

.aic-criteria__note {
    margin: 16px 0 0;
    color: var(--lead-muted);
    font-size: 0.85rem;
    line-height: 1.8;
}

.aic-supervisor {
    padding: 26px;
    background: #fff;
    border: 1px solid #cfe3f1;
    border-radius: 16px;
}

.aic-supervisor__head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.aic-supervisor__head img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px #fff, 0 0 0 5px #cfe3f1;
}

.aic-supervisor__head small {
    display: block;
    color: var(--lead-faint);
    font-size: 0.75rem;
    line-height: 1.6;
}

.aic-supervisor__head strong {
    display: block;
    margin: 2px 0;
    color: var(--lead-ink);
    font-size: 1.1rem;
}

.aic-supervisor p {
    margin: 16px 0 0;
    color: var(--lead-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.aic-principle {
    max-width: 1040px;
    margin: 40px auto 0;
    padding: 20px 24px;
    background: #fff;
    border-left: 4px solid var(--sky-button, #197bbb);
    border-radius: 0 10px 10px 0;
}

.aic-principle h3 {
    margin: 0 0 8px;
    color: var(--lead-ink);
    font-size: 1rem;
}

.aic-principle p {
    margin: 0;
    color: var(--lead-muted);
    font-size: 0.875rem;
    line-height: 1.8;
}

.aic-disclaimer {
    max-width: 1040px;
    margin: 16px auto 0;
    color: var(--lead-faint);
    font-size: 0.75rem;
    line-height: 1.7;
}

/* ===== AIチェックから承認まで ===== */
.aic-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: flow;
}

.aic-flow li { position: relative; }

.aic-flow li::before {
    counter-increment: flow;
    content: counter(flow);
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--sky-button, #197bbb);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 0 0 6px #fff;
}

/* 次の番号までの線（横に5つ並ぶときだけ） */
.aic-flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 36px;
    right: -14px;
    height: 2px;
    background: #bcd7ea;
}

.aic-flow h3 {
    margin: 0 0 6px;
    color: var(--lead-ink);
    font-size: 1.05rem;
}

.aic-flow p {
    margin: 0;
    color: var(--lead-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

/* ===== ご相談から無料トライアルまで ===== */
.aic-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.aic-steps li {
    padding: 22px 22px 20px;
    background: var(--lead-soft);
    border: 1px solid var(--lead-line);
    border-radius: 14px;
}

.aic-steps li:last-child { background: #eaf4fb; border-color: #b9d6ea; }

.aic-steps li::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--sky-button, #197bbb);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 800;
}

.aic-steps h3 {
    margin: 0 0 6px;
    color: var(--lead-ink);
    font-size: 1.05rem;
}

.aic-steps p {
    margin: 0;
    color: var(--lead-muted);
    font-size: 0.875rem;
    line-height: 1.75;
}

.aic-steps__note {
    margin: 18px 0 0;
    color: var(--lead-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* ===== 問い合わせフォーム =====
   PC（1120px以上）は本文の右に固定し、どこを読んでいても入力できるようにする。
   それより狭い画面は本文の後に置き、下部の固定ボタンからフォームへ移動する。 */
.aic-page { --aic-header-h: 80px; }

.aic-aside {
    padding: 0 20px 72px;
    background: var(--lead-soft);
    scroll-margin-top: 64px;
}

.aic-form-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 24px 24px 18px;
    background: #fff;
    border: 1px solid #d5e5f0;
    border-radius: 16px;
    box-shadow: inset 0 4px 0 var(--sky-button, #197bbb), 0 24px 48px -24px rgb(25 59 80 / 28%);
}

.aic-form-card__head { padding-bottom: 14px; border-bottom: 1px solid var(--lead-line); }

.aic-form-card__tag {
    display: inline-block;
    margin: 0 0 8px;
    padding: 3px 10px;
    background: #eaf4fb;
    border-radius: 999px;
    color: var(--lead-blue);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
}

.aic-form-card__head h2 {
    margin: 0;
    color: var(--lead-ink);
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 800;
}

.aic-form-card__points {
    display: grid;
    gap: 0;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.aic-form-card__points li {
    position: relative;
    padding-left: 20px;
    color: var(--lead-muted);
    font-size: 0.8125rem;
    line-height: 1.65;
}

.aic-form-card__points li::before {
    content: "✓";
    position: absolute;
    left: 2px;
    color: var(--lead-blue);
    font-weight: 800;
}

.aic-form-card .contact-form { gap: 12px; margin-top: 16px; }
.aic-form-card .form-group { gap: 4px; }
.aic-form-card .form-row { gap: 10px; }
.aic-form-card .form-label { color: var(--lead-ink); font-size: 0.8125rem; font-weight: 700; }
.aic-form-card .form-optional { margin-left: 6px; padding: 1px 6px; font-size: 0.6875rem; }

.aic-form-card :is(.form-input, .form-select, .form-textarea) {
    width: 100%;
    padding: 9px 12px;
    background-color: #fff;
    border-radius: 6px;
}

.aic-form-card .form-select { padding-right: 34px; background-position: right 12px top 50%; }
.aic-form-card .form-textarea { min-height: 60px; }
/* reCAPTCHAの読み込み前後で、送信ボタンの位置が動かないよう高さを確保する */
.aic-form-card__captcha { min-height: 78px; }
.aic-form-card .form-submit { margin-top: 0; }

.aic-form-card .form-submit .btn {
    width: 100%;
    min-height: 52px;
    border-radius: 6px;
    font-size: 1.0625rem;
    font-weight: 700;
}

.aic-form-card .lead-form-note { margin-top: 10px; font-size: 0.72rem; }

/* ヘッダーなどの「相談する」を押したとき、フォームの場所を知らせる */
.aic-form-card.is-attention { animation: aic-attention 1.6s ease-out; }

@keyframes aic-attention {
    0% { box-shadow: inset 0 4px 0 #197bbb, 0 0 0 0 rgb(25 123 187 / 45%), 0 24px 48px -24px rgb(25 59 80 / 28%); }
    100% { box-shadow: inset 0 4px 0 #197bbb, 0 0 0 16px rgb(25 123 187 / 0%), 0 24px 48px -24px rgb(25 59 80 / 28%); }
}

@media (min-width: 1120px) {
    .aic-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 368px;
        column-gap: 48px;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 40px;
    }

    /* 本文の列の中では、各セクションの横幅・余白は列に任せる */
    .aic-page .aic-body .container { max-width: none; padding-right: 0; padding-left: 0; }

    /* 背景色のある帯は、列からはみ出させて画面幅いっぱいに塗る（フォームの下にも続く） */
    .aic-body > .aic-hero { --aic-band: #edf6fc; }
    .aic-body > .lead-section-soft { --aic-band: var(--lead-soft); }
    .aic-body > :is(.aic-hero, .lead-section-soft) {
        box-shadow: 0 0 0 100vmax var(--aic-band);
        clip-path: inset(0 -100vmax);
    }

    .aic-aside { padding: 112px 0 64px; background: none; }

    .aic-form-card {
        position: sticky;
        top: calc(var(--aic-header-h) + 16px);
        max-width: none;
        max-height: calc(100vh - var(--aic-header-h) - 32px);
        overflow-y: auto;
        scrollbar-width: thin;
    }

    .aic-form-card :is(.form-input, .form-select, .form-textarea) { font-size: 0.9375rem; }

    /* ヒーロー：フォームが横にあるので、コピー → ノートPC → 信頼要素の縦並びにし、相談ボタンは出さない */
    .aic-hero { padding-top: 112px; }
    .aic-page .aic-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "copy"
            "media"
            "proof";
    }
    .aic-hero__actions { display: none; }
    .aic-hero__media { width: 100%; max-width: 640px; margin: 52px auto 0; }
    .aic-laptop { margin-inline: 0; }
    .aic-hero__trial { top: -30px; left: -18px; }
    .aic-hero__proof { margin-top: 28px; }

    /* ロゴの帯は列の幅で切れるので、両端をぼかす */
    .aic-logos {
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    }

    .aic-feature { gap: 40px; }
    .aic-feature--demo { column-gap: 40px; row-gap: 32px; }
    .aic-criteria { gap: 32px; }
}

/* 横幅の狭いPC（本文の列が700px前後）：2列の説明は縦に積む */
@media (min-width: 1120px) and (max-width: 1279px) {
    .aic-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aic-feature,
    .aic-feature--demo,
    .aic-criteria { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .aic-feature.is-reverse .aic-feature__copy { order: 0; }
    .aic-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
    .aic-flow li:not(:last-child)::after { display: none; }
}

/* 高さの低い画面（1366×768のノートPCなど）：送信ボタンまで1画面に収まるよう詰める。
   reCAPTCHAは入力を始めたら出す（js/lead-pages.js が .is-engaged を付ける。スクリプトの読み込みも入力開始時） */
@media (min-width: 1120px) and (max-height: 820px) {
    .aic-form-card { padding: 18px 20px 14px; }
    .aic-form-card__points,
    .aic-form-card__reply { display: none; }
    .aic-form-card__tag { margin-bottom: 6px; }
    .aic-form-card__head h2 { font-size: 1.15rem; }
    .aic-form-card .contact-form { gap: 9px; margin-top: 12px; }
    .aic-form-card .form-label { font-size: 0.78rem; }
    .aic-form-card :is(.form-input, .form-select) { padding-top: 7px; padding-bottom: 7px; }
    .aic-form-card .form-textarea { height: 40px; min-height: 0; padding-top: 7px; padding-bottom: 7px; }
    .aic-form-card:not(.is-engaged) .aic-form-card__captcha { display: none; }
    .aic-form-card .form-submit .btn { min-height: 46px; }
}

/* フォームが本文の後にある画面幅では、下部の固定ボタンからフォームへ移動できるようにする */
@media (max-width: 1119px) {
    .aic-page { padding-bottom: 74px; }

    .aic-page .lead-mobile-cta {
        position: fixed;
        z-index: 999;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid var(--lead-line);
    }

    .aic-page .lead-mobile-cta .btn { display: flex; justify-content: center; width: min(100%, 560px); min-height: 48px; margin: 0 auto; }
}

/* ===== レスポンシブ ===== */
@media (max-width: 1100px) {
    .aic-page .aic-hero__inner { column-gap: 24px; }
    .aic-result { padding-inline: 12px; }
    .aic-result::before, .aic-result::after { width: 17px; }
    .aic-result__label { font-size: 0.625rem; }
    .aic-result__source { font-size: 0.5625rem; }
    .aic-hero__trial { width: 120px; height: 120px; }
    .aic-hero__trial strong { font-size: 2.2rem; }
    .aic-feature { gap: 44px; }
}

/* タブレット：コピー・実績・CTA → ノートPC → 信頼要素 */
@media (max-width: 1023px) {
    .aic-hero { padding-top: 120px; }

    .aic-page .aic-hero__inner {
        max-width: 760px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "copy"
            "media"
            "proof";
    }

    .aic-hero__media { margin: 68px auto 0; width: 100%; max-width: 680px; }
    .aic-hero h1 { font-size: 2.2rem; }
    .aic-hero h1 .accent { font-size: 3rem; }
    .aic-hero__results { max-width: 580px; margin-inline: auto; }
    .aic-result__label { font-size: 0.75rem; }
    .aic-result__source { font-size: 0.625rem; }
    .aic-result::before, .aic-result::after { width: 22px; }
    .aic-hero__trial { left: 8px; top: -22px; }
    .aic-laptop { margin-inline: 0; }
    .aic-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aic-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
    .aic-flow li:not(:last-child)::after { display: none; }
}

@media (max-width: 900px) {
    .aic-feature,
    .aic-criteria { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .aic-feature.is-reverse .aic-feature__copy { order: 0; }
    .aic-feature + .aic-feature { margin-top: 64px; }
}

@media (max-width: 768px) {
    .aic-hero { padding-top: 104px; }
    .aic-hero .lead-hero-eyebrow { margin-bottom: 10px; font-size: 0.75rem; }
    .aic-hero h1 { font-size: clamp(1.35rem, 5.8vw, 2rem); }
    .aic-hero h1 .accent { font-size: clamp(1.65rem, 7.4vw, 2.7rem); }
    .aic-hero__lead { max-width: 34em; font-size: clamp(0.75rem, 3.33vw, 0.8125rem); line-height: 1.8; margin-top: 14px; }
    .aic-hero__results { gap: 4px; margin-top: 22px; }
    .aic-result { min-height: 100px; padding: 8px 10px; gap: 5px; }
    .aic-result::before, .aic-result::after { top: 16px; width: 14px; height: 66px; }
    .aic-result__label { font-size: clamp(0.5rem, 2.1vw, 0.6875rem); }
    .aic-result strong { min-height: 30px; }
    .aic-result__number { font-size: 1.85rem; }
    .aic-result__number--users { padding-top: 4px; font-size: clamp(1.15rem, 5.1vw, 1.85rem); }
    .aic-result__number span { font-size: 0.8125rem; }
    .aic-result .aic-result__feature { min-height: 48px; font-size: clamp(0.6875rem, 3.6vw, 1.125rem); white-space: nowrap; }
    .aic-result__source { font-size: 0.5rem; white-space: normal; }
    .aic-result__source--emphasis { font-size: clamp(0.5rem, 2.1vw, 0.6875rem); }
    .aic-hero__actions { gap: 13px; margin-top: 22px; }
    .aic-hero__action-label { font-size: 0.6875rem; }
    .aic-hero__actions .btn { min-height: 56px; font-size: 1rem; }
    .aic-hero__media { margin-top: 60px; }
    .aic-hero__trial { left: 0; top: -22px; width: 96px; height: 96px; }
    .aic-hero__trial span:first-child { font-size: 0.875rem; }
    .aic-hero__trial strong { font-size: 1.9rem; }
    .aic-hero__trial span:last-child { font-size: 0.6875rem; }
    .aic-laptop { margin-top: 10px; }
    .aic-laptop figcaption { margin-top: 8px; font-size: 0.75rem; }
    .aic-hero__proof { justify-content: center; gap: 14px; margin-top: 26px; padding: 20px 0; text-align: center; }
    .aic-hero__note { font-size: 0.625rem; }

    .aic-logos__rail { animation-duration: 15s; }
    .aic-logos__item { padding: 0 20px; }
    .aic-logos__item img,
    .aic-logos__item.is-wide img,
    .aic-logos__item.is-tall img { max-height: 32px; }

    .aic-formats-title { font-size: 1.15rem; }
    .aic-formats { gap: 10px; margin-bottom: 56px; }
    .aic-formats li { padding: 18px 16px; }
    .aic-formats p { font-size: 0.8rem; }
    .aic-feature__copy h3 { font-size: 1.35rem; }
    .aic-flow { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
    .aic-flow li { min-height: 36px; padding-left: 52px; }
    .aic-flow li::before { position: absolute; top: 0; left: 0; margin: 0; }
    .aic-flow li:not(:last-child)::after { display: block; top: 40px; right: auto; bottom: -18px; left: 17px; width: 2px; height: auto; }
    .aic-flow h3 { padding-top: 6px; }
    .aic-supervisor { padding: 20px; }
    .aic-page .lead-section-heading h2 { font-size: 1.6rem; }
    .aic-page .lead-section-heading h2::before { width: 32px; margin-bottom: 14px; }
    .aic-cases { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
    .aic-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .aic-compare { display: block; font-size: 0.8125rem; line-height: 1.6; }
    .aic-compare thead,
    .aic-compare tbody { display: block; }
    .aic-compare tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .aic-compare thead th:first-child { display: none; }
    .aic-compare thead th { width: auto !important; padding: 10px 8px; font-size: 0.9375rem !important; }
    .aic-compare tbody th { grid-column: 1 / -1; padding: 14px 4px 6px; border-bottom: 0; color: var(--lead-navy-2); font-size: 0.8125rem; text-align: center; }
    .aic-compare tbody td { padding: 10px 12px 12px; }
    .aic-compare td.is-adkura,
    .aic-compare tbody tr:last-child td.is-adkura { border-radius: 0; box-shadow: none; }
    .aic-compare tbody tr:last-child td.is-adkura { border-radius: 0 0 0 12px; }
    .aic-compare tbody tr:last-child td:last-child { border-radius: 0 0 12px 0; }
    .aic-mark { position: static; display: block; margin: 0 0 4px; }
    .aic-compare__price { font-size: 1.2rem; }
    .aic-compare__price.is-other { font-size: 1rem; }
    .aic-compare small { font-size: 0.6875rem; }
    .aic-feature:not(.aic-feature--demo) .aic-feature__media { padding: 24px 16px; }
    .aic-learning li { padding-left: 46px; }
    .aic-learning .aic-card { padding: 12px 14px; }
    .aic-feature__media .aic-card { font-size: 0.9rem; }
    .aic-page .lead-faq summary { padding-left: 54px; font-size: 0.95rem; }
    .aic-page .lead-faq summary::before { left: 16px; }
    .aic-page .lead-faq details p { padding-left: 54px; padding-right: 20px; font-size: 0.9rem; }
}

@media (max-width: 600px) {
    .aic-formats li { padding: 16px 14px; }
    .aic-formats h4 { margin: 8px 0 4px; font-size: 0.95rem; }
    .aic-formats p { font-size: 0.75rem; }
    .aic-versions { gap: 10px; }
    .aic-price { font-size: 1.3rem; }
    .aic-card { padding: 14px 16px; }
}

/* 「視差効果を減らす」設定ではロゴを流さず、1列分を折り返して並べる */
@media (prefers-reduced-motion: reduce) {
    .aic-logos__rail { width: auto; animation: none; }
    .aic-logos__track { flex-wrap: wrap; justify-content: center; row-gap: 20px; width: 100%; }
    .aic-logos__track[aria-hidden="true"] { display: none; }
    .aic-form-card.is-attention { animation: none; outline: 3px solid var(--lead-blue); outline-offset: 2px; }
}
