/* /ai-business と /ai-business/contact 専用のスタイル */
:root {
  --cool: #e7eef2;
  --cool-line: #c9d8de;
  --glow: rgba(15, 95, 92, 0.16);
  --future: #2f6f8a;
  --error: #a3261d;
  --error-pale: #fbecea;
}

.aib .phrase { display: inline-block; }
/* 淡い背景（生成り・青み）の上でも小さな文字が4.5:1以上になるよう、このページでは補足の灰色を濃くする */
.aib { --ink-faint: #5d636c; }

/* ---------- Hero ---------- */
.aib-hero {
  position: relative; overflow: hidden;
  padding: 44px 0 40px;
  background:
    radial-gradient(ellipse 60% 70% at 92% 10%, rgba(47, 111, 138, 0.13), transparent 70%),
    radial-gradient(ellipse 55% 60% at 0% 100%, rgba(15, 95, 92, 0.10), transparent 70%),
    linear-gradient(180deg, var(--accent-pale) 0%, rgba(227, 236, 233, 0) 80%),
    var(--ground);
}
.aib-hero::before {
  /* うっすらとした点の格子 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15, 95, 92, 0.13) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.aib-hero > .container { position: relative; }
@media (min-width: 768px) { .aib-hero { padding: 72px 0 60px; } }
.aib-hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.4rem, 6.4vw, 2.5rem); line-height: 1.5;
  margin-bottom: 20px;
}
.aib-hero-lead { font-size: 1.02rem; color: var(--ink-soft); max-width: 40em; }
.aib-hero-note {
  display: inline-block; font-size: 0.9rem; color: var(--ink-soft);
  border-left: 3px solid var(--future); padding: 2px 0 2px 12px; margin: 4px 0 26px;
}
.aib-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.aib-actions .btn { flex: 1 1 260px; text-align: center; line-height: 1.5; }
@media (min-width: 768px) { .aib-actions .btn { flex: 0 1 auto; } }
.aib .btn { text-align: center; line-height: 1.5; max-width: 100%; }

@media (min-width: 960px) {
  .aib-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: center; }
}

/* ノードの概念図（顧客 → AIに相談 → 企業情報 → 問い合わせ） */
.aib-nodes {
  margin: 36px 0 0; padding: 22px 20px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--cool-line); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 95, 92, 0.08);
}
@media (min-width: 960px) { .aib-nodes { margin: 0; padding: 28px 26px 18px; } }
.aib-nodes-list { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.aib-nodes-list::before {
  /* ノードを結ぶ淡い線 */
  content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 17px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--future));
  opacity: 0.35;
}
.aib-nodes-list::after {
  /* 線の上を1度だけ通る小さな光（動きを減らす設定では出さない） */
  content: ""; position: absolute; top: 14px; left: 12.5%; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px 4px var(--glow); opacity: 0;
}
.aib-nodes-list li {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.4;
}
.aib-node-dot {
  position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(227, 236, 233, 0.9), 0 0 18px var(--glow);
}
.aib-node-dot::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--future));
}
@media (max-width: 359px) { .aib-nodes-list li { font-size: 0.74rem; } }
.aib-nodes-caption { margin-top: 16px; font-size: 0.8rem; color: var(--ink-faint); text-align: center; line-height: 1.6; }
@media (min-width: 960px) {
  .aib-nodes-list { grid-template-columns: 1fr; gap: 22px; }
  .aib-nodes-list::before { left: 17px; right: auto; top: 18px; bottom: 18px; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), var(--future)); }
  .aib-nodes-list::after { left: 14px; top: 18px; }
  .aib-nodes-list li { flex-direction: row; gap: 16px; font-size: 0.98rem; text-align: left; }
  .aib-nodes-caption { text-align: left; }
}
@media (prefers-reduced-motion: no-preference) {
  .aib-nodes-list::after { animation: aib-travel-x 2.6s ease-in-out 0.6s 2 both; }
  @media (min-width: 960px) { .aib-nodes-list::after { animation-name: aib-travel-y; } }
}
@keyframes aib-travel-x {
  0% { opacity: 0; left: 12.5%; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; left: calc(87.5% - 8px); }
}
@keyframes aib-travel-y {
  0% { opacity: 0; top: 18px; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; top: calc(100% - 26px); }
}

/* ---------- 表示アニメーション（JSが有効で、動きを減らす設定でない場合だけ） ---------- */
.aib-motion .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.aib-motion .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Section 2：Before / After ---------- */
.journey { display: grid; gap: 16px; margin-bottom: 18px; }
@media (min-width: 820px) { .journey { grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; } }
.journey-panel { margin: 0; border-radius: 10px; padding: 22px 20px 24px; }
@media (min-width: 768px) { .journey-panel { padding: 26px 28px 28px; } }
.journey-before { background: var(--white); border: 1px solid var(--line); }
.journey-after {
  background: linear-gradient(160deg, rgba(231, 238, 242, 0.85), rgba(255, 255, 255, 0.9));
  border: 2px dashed var(--future);
}
.journey-tag {
  display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em;
  border-radius: 999px; padding: 1px 12px; margin-bottom: 6px;
  color: var(--ink-soft); background: var(--ground-alt); border: 1px solid var(--line);
}
.journey-tag-future { color: var(--future); background: #fff; border: 1px dashed var(--future); }
.journey-panel h3 { font-size: 1.12rem; margin-bottom: 16px; }
.journey-steps { display: grid; gap: 0; }
.journey-steps li {
  position: relative; padding: 10px 14px; border-radius: 8px;
  background: var(--ground); border: 1px solid var(--line);
  font-weight: 500; font-size: 0.96rem;
}
.journey-after .journey-steps li { background: #fff; border: 1px dashed var(--cool-line); }
.journey-steps li + li { margin-top: 26px; }
.journey-steps li + li::before {
  /* 縦の矢印 */
  content: ""; position: absolute; left: 50%; top: -22px; width: 2px; height: 14px; margin-left: -1px;
  background: var(--accent); opacity: 0.55;
}
.journey-steps li + li::after {
  content: ""; position: absolute; left: 50%; top: -11px; margin-left: -5px;
  border: 5px solid transparent; border-top: 6px solid var(--accent); opacity: 0.55;
}
.journey-after .journey-steps li + li::before {
  background: none; border-left: 2px dashed var(--future); width: 0; opacity: 0.8;
}
.journey-after .journey-steps li + li::after { border-top-color: var(--future); opacity: 0.8; }
.journey-note { font-size: 0.88rem; color: var(--ink-faint); max-width: 52em; }

/* ---------- Section 3：プラットフォーム ---------- */
.platform-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .platform-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.platform-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 24px 20px 20px; overflow: hidden;
}
.platform-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--future));
}
.platform-card h3 { font-size: 1.3rem; font-family: var(--serif); margin-bottom: 4px; }
.platform-label { font-size: 0.82rem; font-weight: 700; color: var(--future); margin-bottom: 12px; }
.platform-card > p:not(.platform-label):not(.platform-note) { font-size: 0.96rem; margin-bottom: 0.6em; }
.platform-note {
  margin: 10px 0 0; padding: 10px 12px; border-radius: 6px;
  background: var(--ground); font-size: 0.85rem; color: var(--ink-soft); line-height: 1.75;
}
.platform-sources { margin-top: auto; padding-top: 16px; }
.platform-sources-title { font-size: 0.78rem; font-weight: 700; color: var(--ink-faint); letter-spacing: 0.08em; margin-bottom: 2px; }
.platform-sources li { font-size: 0.9rem; margin-bottom: 2px; }
.platform-sources a { font-weight: 500; }
.platform-sources a::after { content: " ↗"; }
.platform-summary {
  margin-top: 28px; padding: 20px 22px; border-radius: 10px;
  background: var(--white); border-left: 4px solid var(--accent);
  font-weight: 500;
}
.platform-dateline { margin-top: 12px; font-size: 0.82rem; color: var(--ink-faint); }

/* ---------- Section 4：準備 ---------- */
.prep-grid { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 900px) { .prep-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.prep-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 20px 20px;
}
.prep-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.prep-num {
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 700;
}
.prep-card-optional { border: 2px dashed var(--cool-line); background: linear-gradient(160deg, rgba(231, 238, 242, 0.7), #fff); }
.prep-card-optional .prep-num { background: var(--future); }
.prep-tag {
  display: inline-block; font-size: 0.76rem; font-weight: 700; color: var(--future);
  border: 1px dashed var(--future); border-radius: 999px; padding: 1px 12px; margin-bottom: 8px; background: #fff;
}
.aib-caution {
  font-size: 0.9rem; color: var(--ink-soft);
  padding: 12px 16px; border-radius: 8px; background: var(--ground-alt); max-width: 52em;
}
.section-alt .aib-caution { background: var(--white); }

/* ---------- Section 5：企業AIの実証モデル ---------- */
.demo-flow-title { font-size: 1.05rem; margin: 8px 0 14px; }
.demo-flow { display: grid; gap: 10px; counter-reset: none; }
@media (min-width: 700px) { .demo-flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .demo-flow { grid-template-columns: repeat(3, 1fr); } }
.demo-flow li {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; font-weight: 500; font-size: 0.95rem; line-height: 1.6;
}
.demo-flow-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-pale); color: var(--accent-dark); font-weight: 700; font-size: 0.85rem;
  border: 1px solid rgba(15, 95, 92, 0.25);
}
.demo-supplement { margin-top: 16px; font-size: 0.93rem; color: var(--ink-soft); }
.demo-alert {
  margin: 20px 0 28px; padding: 14px 16px 14px 44px; position: relative;
  border-radius: 8px; background: #fff4df; border: 1px solid #f0d49c; color: #5c3a00; font-size: 0.95rem;
}
.demo-alert::before {
  content: "!"; position: absolute; left: 14px; top: 15px;
  width: 20px; height: 20px; border-radius: 50%; background: #7a4a00; color: #fff;
  font-weight: 700; font-size: 0.8rem; line-height: 20px; text-align: center;
}

.mock-gallery {
  margin: 0; padding: 22px 16px 18px; border-radius: 14px;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(47, 111, 138, 0.12), transparent 70%),
    linear-gradient(180deg, #fff, var(--cool));
  border: 1px solid var(--cool-line);
}
@media (min-width: 768px) { .mock-gallery { padding: 28px 28px 22px; } }
.mock-gallery-head { margin-bottom: 18px; }
.mock-gallery-title { font-weight: 900; font-size: 1.02rem; margin-bottom: 0; }
.mock-gallery-sub {
  display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--future);
  border: 1px dashed var(--future); background: #fff; border-radius: 999px; padding: 1px 12px; margin-top: 4px;
}
.mock-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .mock-grid { grid-template-columns: 1fr 1fr; } .mock-item-wide { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .mock-grid { grid-template-columns: 300px 300px minmax(0, 1fr); align-items: start; } .mock-item-wide { grid-column: auto; } }
.mock-step { font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.mock-note { margin-top: 10px; font-size: 0.8rem; color: var(--ink-faint); line-height: 1.7; }
.mock-excerpt { margin-top: 16px; font-size: 0.82rem; color: var(--ink-faint); }

.phone {
  max-width: 320px; margin: 0 auto;
  border-radius: 26px; padding: 10px; background: #1f2a30;
  box-shadow: 0 14px 30px rgba(26, 29, 35, 0.16);
}
.mock-grid .phone { margin: 0; }
@media (max-width: 719px) { .mock-grid .phone { margin: 0 auto; } }
.phone-bar, .lead-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; font-size: 0.85rem; font-weight: 700;
}
.phone-bar { background: var(--accent); color: #fff; border-radius: 18px 18px 0 0; }
.phone-chip {
  font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 0 8px;
  background: rgba(255, 255, 255, 0.92); color: var(--accent-dark); white-space: nowrap;
}
.chat, .slot-panel {
  background: var(--ground); border-radius: 0 0 18px 18px; padding: 14px 12px 16px;
}
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat li { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 0.88rem; line-height: 1.7; }
.chat-user { align-self: flex-end; background: var(--accent-pale); border-bottom-right-radius: 4px; }
.chat-ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-who {
  display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--future)); color: #fff;
  font-size: 0.7rem; font-weight: 700; vertical-align: 1px;
}
.slot-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.slot-desc { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 12px; line-height: 1.7; }
.slot-list { display: grid; gap: 8px; }
.slot-list li {
  padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line);
  font-size: 0.92rem; font-weight: 500;
}
.slot-list li.is-selected { border: 2px solid var(--accent); background: var(--accent-pale); font-weight: 700; }
.slot-check { display: inline-block; margin-right: 6px; color: var(--accent); }
.slot-selected-label { font-size: 0.8rem; color: var(--accent-dark); }
.slot-foot { margin-top: 12px; font-size: 0.78rem; color: var(--ink-faint); }

.lead-card { background: #fff; border: 1px solid var(--cool-line); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 26px rgba(15, 95, 92, 0.07); }
.lead-card-head { background: var(--cool); color: var(--ink); border-bottom: 1px solid var(--cool-line); }
.lead-card-head .phone-chip { background: #fff; }
.lead-list { padding: 4px 14px 10px; }
.lead-list > div { display: grid; gap: 0 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.88rem; line-height: 1.7; }
.lead-list > div:first-child { border-top: none; }
.lead-list dt { font-weight: 700; color: var(--ink-faint); font-size: 0.8rem; }
.lead-card { container-type: inline-size; }
@container (min-width: 400px) { .lead-list > div { grid-template-columns: 9.5em 1fr; } }

.demo-closing {
  margin-top: 28px; display: grid; gap: 16px; align-items: center;
}
.demo-closing p { font-weight: 500; }
@media (min-width: 860px) { .demo-closing { grid-template-columns: 1fr auto; } }

/* ---------- Section 6：準備度チェック ---------- */
.readiness { display: grid; gap: 24px; }
@media (min-width: 900px) { .readiness { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; } }
.readiness-text .aib-caution { margin: 8px 0 22px; }
.readiness-box {
  background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--accent);
  border-radius: 10px; padding: 22px 20px;
}
.readiness-box h3 { font-size: 1.05rem; margin-bottom: 12px; }

/* ---------- Section 7：最終CTA・FAQ ---------- */
.consult-panel {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(47, 111, 138, 0.10), transparent 70%),
    var(--white);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 28px 20px; margin-bottom: 40px;
}
@media (min-width: 768px) { .consult-panel { padding: 40px 44px; } }
.consult-list { margin-bottom: 16px; }
.consult-list li { position: relative; padding-left: 1.4em; font-weight: 500; margin-bottom: 4px; }
.consult-list li::before {
  content: ""; position: absolute; left: 0.1em; top: 0.7em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-pale);
}
.consult-panel > p:not(.section-label) { color: var(--ink-soft); margin-bottom: 22px; }
.consult-faq-title { font-size: 1.15rem; margin-bottom: 14px; }
.qa .qa-q { position: relative; font-size: 1.05rem; padding-left: 1.9em; margin: 0 0 8px; line-height: 1.5; }
.qa .qa-q::before { content: "Q"; position: absolute; left: 0; color: var(--accent); font-family: Georgia, serif; font-weight: 700; font-size: 1.15em; line-height: 1.35; }

/* ---------- 問い合わせページ ---------- */
.aib-hero-compact { padding: 36px 0 28px; }
@media (min-width: 768px) { .aib-hero-compact { padding: 56px 0 36px; } }
.contact-page { max-width: 760px; }
.contact-back { font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; }
.contact-back a::before { content: "← "; }
.contact-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.45rem, 5vw, 2.1rem); line-height: 1.5; margin-bottom: 16px; }
.contact-form-section { padding-top: 24px; }

.aib-form {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 18px;
}
@media (min-width: 768px) { .aib-form { padding: 36px 40px; } }
.form-caution {
  font-size: 0.9rem; color: var(--ink-soft); background: var(--ground);
  border-left: 3px solid var(--future); padding: 10px 14px; border-radius: 0 6px 6px 0; margin-bottom: 24px;
}
.form-summary {
  margin-bottom: 20px; padding: 12px 14px; border-radius: 6px;
  background: var(--error-pale); border: 1px solid var(--error); color: var(--error); font-weight: 700;
}
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; line-height: 1.6;
  padding: 0 8px; border-radius: 4px; background: var(--ground-alt); color: var(--ink-soft);
}
.badge-required { background: var(--accent); color: #fff; }
.choice-consent .badge { margin-left: 8px; }
.field-hint { font-size: 0.86rem; color: var(--ink-faint); margin-bottom: 6px; }
.aib-form input[type="text"], .aib-form input[type="url"], .aib-form input[type="email"], .aib-form textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid #857d70; border-radius: 6px; background: #fff; /* 白地に約4.1:1（入力部品の境界は3:1以上） */
  font: inherit; font-size: 1rem; color: var(--ink); line-height: 1.6;
}
.aib-form textarea { resize: vertical; min-height: 140px; }
.aib-form input::placeholder, .aib-form textarea::placeholder { color: #666c75; opacity: 1; } /* 白地に約5.3:1 */
.aib-form input:focus-visible, .aib-form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.choice-list { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  padding: 10px 12px; border: 1px solid #857d70; border-radius: 8px; background: var(--ground);
  line-height: 1.6;
}
.choice input { flex-shrink: 0; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-pale); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }
.field-error {
  margin: 8px 0 0; font-size: 0.9rem; font-weight: 700; color: var(--error);
}
.field-error::before { content: "※ "; }
.has-error input[type="text"], .has-error input[type="url"], .has-error input[type="email"], .has-error textarea { border: 2px solid var(--error); background: var(--error-pale); }
.has-error .choice { border-color: var(--error); }
.form-actions { margin-top: 8px; }
.form-submit { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
@media (min-width: 600px) { .form-submit { width: auto; min-width: 280px; } }
.form-submit:disabled { opacity: 0.6; cursor: progress; }
.form-status:empty { display: none; }
.form-status { margin-top: 16px; padding: 12px 14px; border-radius: 6px; font-weight: 700; }
.form-status.is-error { background: var(--error-pale); border: 1px solid var(--error); color: var(--error); }
.form-done {
  background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--accent);
  border-radius: 12px; padding: 28px 24px; font-weight: 700;
}
.turnstile-box { min-height: 65px; }
