/* ===========================================================================
   AI監視（Pages/Home/AiKanshi）専用。
   色・フォント・.btn・.sec-head・.band・.cards・.cta・.win・.phone などは hp.css のものを使う。
   画面の画像は wwwroot/img-ai/ の実物のスクリーンショット。
   =========================================================================== */

/* ---------------------------------------------------------------- hero */
.ai-hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: 28px 80px; }
.ai-hero .wrap > * { min-width: 0; }
.ai-hero .crumbs { grid-column: 1 / -1; }
.ai-hero h1 { font-weight: 900; font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -.01em; line-height: 1.3; margin-top: 14px; }
.ai-hero h1 .hl { background: linear-gradient(transparent 62%, var(--teal) 62%); padding-inline: 2px; }
.ai-hero .lead { margin-top: 22px; font-size: 17px; color: var(--ink-2); max-width: 32em; }
.ai-hero .actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.ai-hero .meta { margin-top: 26px; display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
.ai-hero .meta span::before { content: "✓"; color: var(--blue); font-weight: 700; margin-right: 6px; }

/* 近日発売・先行モニターのお知らせ（#monitor へ飛ぶ） */
.ai-launch { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--orange-soft); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.ai-launch b { background: var(--orange); color: #FFFFFF; border-radius: 999px; padding: 3px 12px; font-size: 13px; }
.ai-launch:hover { color: var(--ink); text-decoration: underline; }

/* 枠を付けるWEB画面（左上）と、スマホの監視画面（右下）を重ねた図 */
.ai-stage { position: relative; min-height: 580px; }
.ai-stage figure { margin: 0; }
.ai-stage .win { left: 0; right: auto; width: 86%; }
.ai-stage .win img { display: block; width: 100%; height: auto; }
.ai-stage .phone { width: 236px; }

/* ---------------------------------------------------------------- pains */
.worries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.worries li { position: relative; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 50px; font-weight: 700; line-height: 1.6; }
.worries li::before { content: ""; position: absolute; left: 22px; top: 27px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange-soft); box-shadow: inset 0 0 0 3px var(--orange); }
.answer { margin-top: 44px; text-align: center; font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 2.6vw, 27px); line-height: 1.5; }
.answer .hl { background: linear-gradient(transparent 62%, var(--teal) 62%); padding-inline: 2px; }

/* ---------------------------------------------------------------- 実物のスクリーンショット */
.shot { margin: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: var(--shadow); min-width: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 6px; }
/* 縦長のスマホ画面は、枠を細くして幅を抑える（hp.css の .phone と同じ見た目） */
.shot.phone-shot { justify-self: center; width: 100%; max-width: 320px; background: #6B8088; border: 0; border-radius: 24px; padding: 2px; overflow: hidden; }
.shot.phone-shot img { border-radius: 22px; }

/* ---------------------------------------------------------------- features */
.ai-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.ai-feature + .ai-feature { margin-top: 96px; }
.ai-feature.flip { grid-template-columns: 1.1fr .9fr; }
.ai-feature.flip .copy { order: 2; }
.ai-feature .copy { display: grid; gap: 16px; align-content: start; min-width: 0; }
.ai-feature .copy h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.ai-feature .copy > p:not(.eyebrow) { color: var(--ink-2); max-width: 32em; }

.ai-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: st; }
.ai-steps li { position: relative; counter-increment: st; padding-left: 46px; font-size: 14.5px; color: var(--ink-2); }
.ai-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--blue-ink); font-family: var(--f-mono); font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.ai-steps b { display: block; font-size: 16px; color: var(--ink); }

.judges { margin: 4px 0 0; display: grid; gap: 10px; }
.judges > div { background: var(--ground); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 10px; padding: 12px 18px; }
.judges dt { font-weight: 800; font-size: 17px; }
.judges dd { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.opts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opts li { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 14.5px; background: var(--ground); }

/* ---------------------------------------------------------------- flow（始めるまで） */
.ai-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.ai-flow li { position: relative; display: grid; gap: 10px; align-content: start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px; }
.ai-flow li:not(:last-child)::after { content: ""; position: absolute; right: -15px; top: 40px; width: 10px; height: 10px; border-top: 2.5px solid var(--blue); border-right: 2.5px solid var(--blue); transform: rotate(45deg); z-index: 1; }
.ai-flow li.last { background: var(--teal-soft); border-color: transparent; }
.ai-flow .num { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: var(--blue-ink); display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; font-size: 16px; }
.ai-flow h3 { font-size: 18px; }
.ai-flow p { font-size: 14px; color: var(--ink-2); }
.after { margin-top: 28px; font-size: 15px; color: var(--ink-2); }
.after b { color: var(--ink); margin-right: 6px; }

/* ---------------------------------------------------------------- devices */
.devices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.device { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; background: var(--ground); border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px; }
.device-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.device-icon svg { width: 30px; height: 30px; }
.device h3 { font-size: 21px; }
.device p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.device ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.device li { padding-left: 22px; position: relative; font-size: 14.5px; }
.device li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 10px; height: 3px; background: var(--teal); }
.no-equip { margin-top: 24px; padding: 20px 28px; border-radius: 14px; background: var(--teal-soft); text-align: center; font-family: var(--f-display); font-weight: 800; font-size: 18px; }
.no-equip b { color: var(--blue); margin-left: 4px; }

/* ---------------------------------------------------------------- cases */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.case { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); padding: 22px 22px 18px; display: grid; gap: 12px; align-content: start; }
.case h3 { font-size: 17px; }
.case dl { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.case dt { font-size: 12px; font-weight: 700; color: var(--ink); }
.case dd { margin: 0 0 8px; }
.case dd:last-child { margin-bottom: 0; }
.case b { color: var(--ink); }

/* ---------------------------------------------------------------- faq */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 18px 44px 18px 34px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 4px; top: 18px; font-family: var(--f-mono); color: var(--blue); }
.faq summary::after { content: "+"; position: absolute; right: 10px; top: 16px; font-size: 20px; color: var(--ink-2); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px 34px; color: var(--ink-2); font-size: 15px; }

/* ---------------------------------------------------------------- disclaimer */
.disclaimer { max-width: 860px; margin-top: 40px; padding: 22px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.disclaimer h3 { font-size: 15px; margin-bottom: 10px; }
.disclaimer ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }

/* ---------------------------------------------------------------- monitor（先行モニター募集） */
.monitor { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: var(--orange-soft); border-radius: 20px; padding: 40px 44px; }
.monitor-badge { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.monitor-badge b { background: var(--orange); color: #FFFFFF; border-radius: 999px; padding: 3px 12px; font-size: 13px; }
.monitor h2 { margin-top: 14px; font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; line-height: 1.45; }
.monitor-head > p:last-child { margin-top: 14px; color: var(--ink-2); }
.monitor-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.monitor-points li { background: var(--paper); border-radius: var(--radius); padding: 18px 22px; font-size: 14.5px; color: var(--ink-2); }
.monitor-points b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 4px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
    .ai-flow { grid-template-columns: 1fr; gap: 26px; max-width: 620px; }
    .ai-flow li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -19px; transform: rotate(135deg); }
    .cases { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
    .ai-hero .wrap, .ai-feature, .ai-feature.flip, .devices, .monitor { grid-template-columns: 1fr; }
    .ai-feature.flip .copy { order: 0; }
    .ai-feature + .ai-feature { margin-top: 72px; }
    .worries { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .ai-stage { min-height: 470px; }
    .ai-stage .win { width: 100%; }
    .ai-stage .phone { width: 180px; }
    .worries, .cases { grid-template-columns: 1fr; }
    .device { grid-template-columns: 1fr; gap: 14px; padding: 24px 22px; }
    .monitor { padding: 28px 22px; }
}
