/* top.css — トップ（index.html）固有。site.css の後に読む。
   トークン・色・ヘッダー・フッター・ボタン・skip-link は /assets/css/site.css。
   本文の幅 --max（1120px）だけはトップ固有としてここで定義する。 */

:root {
  /* トップ本文の幅（トークン・色は /assets/css/site.css） */
  --max: 1120px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: var(--lh-normal);
  font-feature-settings: "palt";
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============ ボタン（本文内） ============
   共通の .button は site.css（15px・行間 1.2）。トップ本文のボタンは共通化前と同じ
   文字サイズ（本文と同じ 16px）・行間 1.25 を保つ。ヘッダーの相談ボタンは全ページ共通の site.css のまま。 */

main .button {
  font-size: inherit;
  line-height: var(--lh-tight);
}

/* ============ §1 ファーストビュー ============ */

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, #fbfcf8 0%, #f3f7f6 48%, #e9f2f0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 138, 134, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 40, 80, .16) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.18));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 86px 24px 100px;
  display: grid;
  grid-template-columns: minmax(360px, .78fr) minmax(580px, 1.22fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-dark);
  font-size: var(--fs-base);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 3px;
  background: var(--amber);
  border-radius: var(--r-sm);
}

.heading-line { display: block; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-normal);
  font-weight: 600;
  text-wrap: balance;
}

/* 見出し・数字の強調だけ Webフォント（Noto Sans JP 700）。未読込時は Hiragino W6 / 游ゴシック bold */
h1, h2, h3, .section-title, .profile-text h2, .final-box h2,
.data-value, .metric, .price-main .price strong, .case-key-metric, .hero-signal-badge {
  font-family: var(--font-heading);
  font-weight: 700;
}

.hero-subhead {
  max-width: 600px;
  margin: 0 0 18px;
  color: var(--navy);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: var(--ls-normal);
  line-height: var(--lh-normal);
}

.hero-copy {
  max-width: 600px;
  color: #283746;
  font-size: var(--fs-md);
  font-weight: 500;
}

.hero-tasks-label {
  margin: 18px 0 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: var(--ls-normal);
}

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

.hero-tasks li {
  padding: 6px 14px;
  background: rgba(15, 138, 134, .1);
  border: 1px solid rgba(15, 138, 134, .28);
  border-radius: var(--r-pill);
  color: var(--teal-dark);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 580px;
  display: grid;
  align-items: center;
}

.hero-photo {
  position: relative;
  min-height: 580px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 40, 80, .14);
  border-radius: var(--r-sm);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: cover;
  object-position: center;
  filter: saturate(.94) contrast(1.02);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 40, 80, .03), rgba(0, 40, 80, .28)),
    linear-gradient(90deg, rgba(0, 40, 80, .06), rgba(15, 138, 134, .08));
  pointer-events: none;
  z-index: 1;
}

/* ヒーローカルーセル: クロスフェード 0.8s ease-in-out + 薄ブラー解除 */
.hero-carousel { position: relative; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  overflow: hidden;
}

.hero-slide.is-active { opacity: 1; }

/* 非アクティブは薄ブラー、アクティブで明瞭化（既存 saturate/contrast を維持） */
.hero-slide img {
  filter: saturate(.94) contrast(1.02) blur(3px);
  transition: filter 0.8s ease-in-out;
}

.hero-slide.is-active img {
  filter: saturate(.94) contrast(1.02) blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity 0.3s; }
  .hero-slide img,
  .hero-slide.is-active img {
    filter: saturate(.94) contrast(1.02);
    transition: none;
  }
}

.hero-signal {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-sm);
  color: var(--white);
  background: rgba(0, 40, 80, .88);
  backdrop-filter: blur(14px);
}

.hero-signal p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: var(--fs-xs);
  line-height: var(--lh-normal);
  font-weight: 500;
}

.hero-signal strong {
  display: block;
  margin-bottom: 3px;
  font-size: var(--fs-base);
  line-height: var(--lh-tight);
  font-weight: 600;
}

.hero-signal-badge {
  min-width: 92px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  color: #0f332f;
  background: #f0c76d;
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: var(--lh-tight);
}

/* ============ §2 権威・社会的証明バンド ============ */

.trust-bar {
  padding: 48px 24px 56px;
  background: var(--paper);
}

.trust-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.trust-item {
  min-width: 0;
  padding: 22px 26px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(23, 33, 43, .06);
}

.trust-label {
  display: block;
  color: var(--navy);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: var(--ls-normal);
  margin-bottom: 8px;
  line-height: var(--lh-tight);
}

.trust-detail {
  display: block;
  color: var(--muted);
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: var(--lh-normal);
}

/* ============ セクション共通 ============ */

.section { padding: 88px 24px; }
.section.alt { background: var(--white); }
.section.deep { color: var(--white); background: var(--navy); }

.section-inner { max-width: var(--max); margin: 0 auto; }

.section-kicker {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: var(--fs-base);
  font-weight: 600;
  text-transform: uppercase;
}

.deep .section-kicker { color: #f0c76d; }

.section-title {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: var(--fs-2xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-normal);
  font-weight: 600;
  text-wrap: balance;
}

.section-lead {
  max-width: 640px;
  color: var(--muted);
  font-size: var(--fs-md);
  font-weight: 500;
}

.deep .section-lead {
  color: rgba(255,255,255,.74);
}

.section-head-visual {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
  gap: 32px;
  align-items: center;
}

.section-head-visual .section-lead {
  margin-bottom: 0;
}

.section-head-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(23, 33, 43, .08);
}

.section-head-image img {
  width: 100%;
  height: auto; /* width/height 属性（CLS 対策）で高さが固定されないように */
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ============ §3 課題提起 ============ */

.pain-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pain-card {
  min-height: 200px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.pain-card .icon {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--white);
  background: var(--navy);
}

.pain-card:nth-child(2n) .icon { background: var(--teal); }
.pain-card:nth-child(3n) .icon { color: var(--ink); background: var(--amber); }

.pain-card h3 {
  margin-bottom: 8px;
  font-size: var(--fs-md);
  line-height: var(--lh-tight);
  font-weight: 600;
}

.pain-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

.pain-narrow {
  margin: 28px 0 0;
  padding: 14px 18px;
  background: var(--warm);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  font-weight: 500;
}

.pain-narrow strong {
  color: var(--navy);
  font-weight: 700;
}

/* ============ §4 Why Now ============ */

.data-strip {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.data-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
}

.data-value {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1;
}

.data-card h3 {
  margin-bottom: 10px;
  font-size: var(--fs-md);
  line-height: var(--lh-tight);
  font-weight: 600;
}

.data-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

.source-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: var(--fs-base);
  font-weight: 500;
}

/* ============ §6 実績 ============ */

.metrics {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metric-card {
  padding: 28px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--line);
}

.metric {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: var(--fs-3xl);
  line-height: 1;
  font-weight: 700;
  letter-spacing: var(--ls-normal);
}

.metric-card h3 {
  margin-bottom: 8px;
  font-size: var(--fs-md);
  line-height: var(--lh-tight);
  font-weight: 600;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

.results-positioning {
  margin: 28px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--navy);
  border-radius: var(--r-sm);
  background: var(--soft-teal);
  color: var(--ink);
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  font-weight: 500;
}

.results-positioning strong {
  color: var(--navy);
  font-weight: 700;
}

.voices {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.voices-title,
.cases-title {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: var(--ls-normal);
}

.voices-lead,
.cases-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: var(--fs-base);
  font-weight: 500;
}

/* スナップスクロール型カルーセル（自動再生なし） */
.carousel-viewport {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}

.carousel-viewport::-webkit-scrollbar { display: none; }

.carousel-viewport:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.carousel-track {
  display: flex;
  gap: 16px;
}

.carousel-track > * {
  scroll-snap-align: start;
}

.carousel-controls {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 40, 80, .08);
}

.carousel-arrow:hover { background: var(--soft-teal); }
.carousel-arrow:disabled { opacity: .4; cursor: default; }
.carousel-arrow:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.carousel-arrow svg { width: 20px; height: 20px; }

.carousel-dots {
  display: flex;
  align-items: center;
}

.carousel-dot,
.industry-dot {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.carousel-dot::before,
.industry-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--line);
  transition: background .16s ease, transform .16s ease;
}

.carousel-dot[aria-current="true"]::before,
.industry-dot[aria-current="true"]::before {
  background: var(--navy);
  transform: scale(1.2);
}

.carousel-dot:focus-visible,
.industry-dot:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -6px;
  border-radius: 50%;
}

.carousel-counter {
  display: none;
  min-width: 64px;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
}

.carousel.is-counter .carousel-dots { display: none; }
.carousel.is-counter .carousel-counter { display: block; }

@media (prefers-reduced-motion: reduce) {
  .carousel-viewport { scroll-behavior: auto; }
  .carousel-dot::before,
  .industry-dot::before { transition: none; }
}

.voice-card {
  position: relative;
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
  padding: 22px 24px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.voice-kind {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
}

.voice-quote {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--navy);
  color: var(--ink);
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  font-weight: 500;
}

.voice-meta {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-normal);
}

.industry-cases {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.industry-carousel {
  position: relative;
  max-width: 960px;
  margin: 28px auto 0;
}

.industry-stage {
  position: relative;
  min-height: 545px;
}

.case-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}

.case-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.case-card {
  padding: 0;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.case-key-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--soft-teal);
}

.case-key-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* 画像右半分のグラデーションで文字の可読性を確保 */
.case-key-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    transparent 0%,
    transparent 32%,
    rgba(0, 40, 80, .35) 62%,
    rgba(0, 40, 80, .58) 100%);
  pointer-events: none;
}

.case-key-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 22px 28px;
  pointer-events: none;
  text-align: right;
  color: var(--white);
  z-index: 1;
}

.case-key-industry {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-shadow: 0 2px 12px rgba(0, 40, 80, .6);
  line-height: var(--lh-tight);
}

.case-key-role {
  margin-top: 2px;
  margin-bottom: 16px;
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  opacity: .92;
  text-shadow: 0 2px 8px rgba(0, 40, 80, .55);
}

.case-key-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 68px;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  letter-spacing: var(--ls-tight);
  text-shadow: 0 3px 16px rgba(0, 40, 80, .55);
}

.case-key-metric-unit {
  font-size: 34px;
  font-weight: 700;
}

.case-key-metric-suffix {
  margin-top: 4px;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 40, 80, .55);
}

.case-key-note {
  margin-top: 10px;
  max-width: 300px;
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: var(--lh-normal);
  opacity: .92;
  text-shadow: 0 2px 8px rgba(0, 40, 80, .55);
}

/* 画像下端に重ねる Before → AI配属 → After のストリップ */
.case-key-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: linear-gradient(to top,
    rgba(0, 40, 80, 0.92) 0%,
    rgba(0, 40, 80, 0.78) 60%,
    transparent 100%);
  color: var(--white);
  z-index: 1;
}

.case-key-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-key-step-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  opacity: 0.82;
  text-transform: uppercase;
}

.case-key-step.is-after .case-key-step-label {
  color: var(--amber);
  opacity: 1;
}

.case-key-step-text {
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: var(--lh-tight);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.case-key-step.is-after .case-key-step-text {
  font-weight: 700;
}

.case-key-step-arrow {
  flex: 0 0 auto;
  font-size: var(--fs-base);
  font-weight: 700;
  opacity: 0.55;
}

/* オーバーレイをストリップに被らないよう上寄せ */
.case-key-overlay {
  justify-content: flex-start;
  padding-top: 24px;
}

.industry-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--navy);
  transition: background .16s ease;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 40, 80, 0.08);
}
.industry-nav:hover { background: var(--soft-teal); }
.industry-nav:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.industry-nav i { width: 22px; height: 22px; }
.industry-prev { left: -22px; }
.industry-next { right: -22px; }

.industry-dots {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .case-slide { transition: none; }
}
.cases-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.seminar-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
}

.seminar-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.seminar-photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.92);
  background: rgba(0, 40, 80, .78);
  backdrop-filter: blur(8px);
  font-size: var(--fs-xs);
  line-height: var(--lh-tight);
  font-weight: 500;
}

.seminar-row {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr);
  gap: 24px;
  align-items: start;
}

.seminar-row .seminar-photo img {
  aspect-ratio: 4 / 3;
}

.section.deep .seminar-flyer-side-next {
  margin: 0 0 14px;
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  color: rgba(255, 255, 255, .82);
}

.section.deep .seminar-flyer-side-note {
  margin: 0 0 14px;
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: rgba(255, 255, 255, .62);
}

/* ============ §7 主力AI顧問（アンカリング） ============ */

.advisor-benefit {
  margin: 32px 0 0;
  padding: 26px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--r-sm);
  box-shadow: 0 6px 18px rgba(23, 33, 43, .06);
}

.advisor-benefit-title {
  margin: 0 0 14px;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: var(--ls-normal);
  line-height: var(--lh-tight);
}

.advisor-benefit-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.advisor-benefit-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  color: var(--ink);
}

.advisor-benefit-list li::before {
  content: "▸";
  color: var(--amber);
  font-weight: 700;
  flex: 0 0 auto;
}

.advisor-benefit-list strong {
  color: var(--teal-dark);
  font-weight: 700;
}

.advisor-layout {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .78fr);
  gap: 24px;
  align-items: stretch;
}

.advisor-main {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(23, 33, 43, .08);
}

.advisor-main h3 {
  margin-bottom: 14px;
  font-size: var(--fs-xl);
  line-height: var(--lh-tight);
  font-weight: 600;
}

.feature-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #263543;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fbfcf8;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

.feature-list li strong {
  display: inline-block;
  margin-right: 6px;
  color: var(--ink);
  font-weight: 600;
}

.feature-list li span.feature-text {
  color: #3a4956;
  font-weight: 500;
}

.check {
  width: 22px;
  height: 22px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  flex: 0 0 auto;
  margin-top: 1px;
}

.price-anchor {
  padding: 28px;
  border-radius: var(--r-sm);
  background: var(--warm);
  border: 1px solid #e5d7b6;
  display: grid;
  align-content: center;
  gap: 14px;
}

.anchor-tier {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(116, 83, 35, .14);
  color: #745323;
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.anchor-tier.faded {
  background: rgba(255,255,255,.36);
  color: #8a7551;
}

.anchor-tier strong {
  display: block;
  color: #3d2d12;
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: 2px;
}

.anchor-tier ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
  font-size: var(--fs-xs);
}

.anchor-tier ul li { margin-bottom: 1px; }

.anchor-tier .total {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(116, 83, 35, .35);
  color: #3d2d12;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.price-main {
  padding: 18px 18px 16px;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: var(--white);
}

.price-main .price-label {
  color: rgba(255,255,255,.72);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  margin-bottom: 6px;
}

.price-main .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
  margin-bottom: 6px;
}

.price-main .price strong {
  font-size: var(--fs-3xl);
  letter-spacing: var(--ls-normal);
  font-weight: 700;
}

.price-main .price span {
  color: rgba(255,255,255,.84);
  font-weight: 600;
  font-size: var(--fs-base);
}

.price-main .price-note {
  color: var(--amber);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.mini-note {
  margin: 0;
  color: #584b35;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: 500;
}

.roi-sim {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--soft-teal);
  border: 1px solid rgba(15, 138, 134, .2);
  border-radius: var(--r-sm);
}

.roi-title {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: var(--lh-tight);
}

.roi-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.roi-table-wrap {
  overflow-x: auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--white);
}

.roi-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--white);
}

.roi-table th,
.roi-table td {
  padding: 10px 12px;
  text-align: left;
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.roi-table thead {
  background: var(--navy);
  color: var(--white);
}

.roi-table tbody tr {
  border-top: 1px solid var(--line);
}

.roi-table strong {
  color: var(--navy);
  font-weight: 700;
}

.roi-details > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 4px 0 8px;
  color: var(--teal-dark);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.roi-details > summary::-webkit-details-marker { display: none; }
.roi-details > summary::before { content: "＋"; }
.roi-details[open] > summary::before { content: "－"; }

.roi-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.roi-summary {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  font-weight: 500;
}

.roi-summary strong {
  color: var(--navy);
  font-weight: 700;
}

/* ============ §8 サービス一覧 ============ */

.service-flow-note {
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(15, 138, 134, .2);
  border-radius: var(--r-sm);
  color: #374b5e;
  background: var(--soft-teal);
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  font-weight: 600;
}

.service-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 202px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card .tag {
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: var(--r-sm);
  color: var(--white);
  background: var(--navy);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.service-card:nth-child(2) .tag { background: var(--teal); }
.service-card:nth-child(3) .tag { color: var(--ink); background: var(--amber); }
.service-card:nth-child(4) .tag { background: #5c6875; }

.service-card h3 {
  margin: 0;
  font-size: var(--fs-lg);
  line-height: var(--lh-tight);
  font-weight: 600;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

.service-card .small {
  margin-top: auto;
  color: var(--ink);
  font-size: var(--fs-base);
  font-weight: 600;
}

.service-subsidy {
  margin: -4px 0 0;
  padding: 10px 12px;
  background: var(--soft-teal);
  border-left: 3px solid var(--teal-dark);
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.subsidy-label {
  color: var(--teal-dark);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
}

.subsidy-value {
  color: var(--ink);
  font-size: var(--fs-base);
  font-weight: 600;
}

.subsidy-value strong {
  color: var(--navy);
  font-size: var(--fs-md);
  font-weight: 700;
}

/* ============ §9 料金表 ============ */

.price-transparency {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: var(--soft-teal);
  border: 1px solid rgba(15, 138, 134, .22);
  color: var(--teal-dark);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: var(--lh-normal);
}

.price-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th, td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: #eef3f6;
  color: var(--navy);
  font-size: var(--fs-base);
  font-weight: 600;
}

td {
  font-size: var(--fs-base);
  font-weight: 500;
}

tr:last-child td { border-bottom: 0; }

.note-list {
  margin: 18px 0 0;
  padding-left: 1.1em;
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
}

.price-original {
  color: var(--ink);
  font-weight: 600;
}

.price-subsidy {
  margin-top: 4px;
  color: var(--teal-dark);
  font-size: var(--fs-xs);
  line-height: var(--lh-normal);
  font-weight: 600;
}

.price-subsidy strong {
  color: var(--navy);
  font-weight: 700;
}

.subsidy-arrow {
  color: var(--muted);
  margin-right: 4px;
}

/* ============ §10 代表メッセージ ============ */

.profile {
  display: grid;
  grid-template-columns: minmax(280px, .65fr) minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}

.portrait {
  min-height: 360px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 138, 134, .08), rgba(27, 39, 51, .12)),
    url("/assets/representative_kato.jpg") center 28% / cover no-repeat;
  /* WebP 優先。image-set(type()) 非対応のブラウザはこの行を無視して上の JPG を使う */
  background-image:
    linear-gradient(135deg, rgba(15, 138, 134, .08), rgba(27, 39, 51, .12)),
    image-set(url("/assets/representative_kato-1024.webp") type("image/webp"), url("/assets/representative_kato.jpg") type("image/jpeg"));
  border: 1px solid rgba(255,255,255,.25);
}

.profile-text {
  align-self: center;
  container-type: inline-size; /* 引用文を1行に収める font-size 計算（cqw）の基準 */
}

.profile-text h2 {
  margin-bottom: 8px;
  font-size: var(--fs-2xl);
  line-height: var(--lh-tight);
  font-weight: 600;
}

.profile-credentials {
  margin: 0 0 16px;
  color: #f0c76d;
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
}

.profile-text p {
  color: rgba(255,255,255,.82);
  font-size: var(--fs-md);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: var(--lh-loose);
}

.profile-text p:last-child { margin-bottom: 0; }

.profile-text .profile-mission-quote {
  margin: 32px 0 14px;
  padding: 28px 32px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 255, 255, .06);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--white);
  /* 「この街で、弊社の仕事がなくなること。」を必ず1行に: 全角20文字＋α。Hiragino では約17em だが Windows の全角句読点を考慮して 20.2 で割る。cqw 非対応ブラウザは --fs-xl にフォールバック */
  font-size: var(--fs-xl);
  font-size: min(var(--fs-2xl), calc((100cqw - 64px) / 20.2));
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-normal);
  white-space: nowrap;
}

.profile-text .profile-mission-note {
  margin: 0;
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
}

/* ============ §11 FAQ ============ */

.faq-list {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  padding: 0;
  overflow: hidden;
  transition: box-shadow .16s ease;
}

.faq-item[open] {
  box-shadow: 0 8px 22px rgba(23, 33, 43, .06);
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  list-style: none;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--navy);
  font-size: var(--fs-lg);
  font-weight: 600;
  flex: 0 0 auto;
}

.faq-item[open] summary::after { content: "−"; }

.faq-answer { padding: 0 22px 20px; }

.faq-answer p {
  margin: 0;
  color: #374b5e;
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  font-weight: 500;
}

.faq-fallback {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: var(--lh-normal);
}

/* ============ §12 最終CTA ============ */

.final-cta {
  padding: 78px 24px;
  background: #f4f0e4;
}

.final-box {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.final-illustration {
  width: min(232px, 100%);
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 18px rgba(0, 40, 80, .13));
}

.final-box h2 {
  margin-bottom: 10px;
  font-size: var(--fs-2xl);
  line-height: var(--lh-tight);
  font-weight: 600;
}

.final-sub {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: var(--fs-md);
  font-weight: 600;
}

.final-risk {
  margin: 0 0 24px;
  color: var(--muted);
  font-weight: 500;
  line-height: var(--lh-loose);
}

.final-firstmeeting {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .06);
  border-left: 3px solid var(--amber);
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
  font-weight: 500;
}

.final-firstmeeting strong {
  color: var(--amber);
  font-weight: 700;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.precheck-download {
  margin-top: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(20, 46, 68, .14);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.55);
}

.precheck-download strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: var(--fs-base);
  font-weight: 700;
}

.precheck-download span {
  color: #5d6b76;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: 500;
}

.precheck-link {
  min-width: 176px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(20, 46, 68, .18);
  border-radius: var(--r-sm);
  color: var(--navy);
  background: var(--white);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease;
}

.precheck-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(23, 33, 43, .1);
}

/* ============ 下層ページへの要約 ============ */

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.more-link svg { width: 16px; height: 16px; }
.more-link:hover { color: var(--navy); }
.more-link-light { color: #f0c76d; }
.more-link-light:hover { color: var(--white); }

.summary-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.summary-card {
  padding: 26px 28px 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--r-sm);
  background: var(--paper);
}

.summary-card .summary-kicker {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
}

.summary-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: var(--fs-lg);
  line-height: var(--lh-tight);
}

.summary-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

#bot-seminar-info {
  display: block;
  margin-bottom: 2px;
  color: var(--white);
  font-size: var(--fs-md);
  font-weight: 700;
}

.seminar-recent-title {
  margin: 0 0 10px;
  color: var(--white);
  font-size: var(--fs-md);
  line-height: var(--lh-tight);
}

.seminar-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.seminar-list li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 255, 255, .06);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: rgba(255, 255, 255, .88);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

.seminar-list time {
  color: #f0c76d;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.seminar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button.ghost-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, .5);
}

.button.ghost-light:hover { background: rgba(255, 255, 255, .08); }

/* タップ領域 44px（見た目の行間は詰めたまま） */

/* ============ 運営者情報 ============ */

.supervisor h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: var(--lh-tight);
}

.supervisor p {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
}

.supervisor p.supervisor-dates {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* ============ チャットボット フローティング ============ */

.chatbot-fab {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 11px 20px 11px 11px;
  border: 1px solid rgba(15, 138, 134, .36);
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--white) 0%, #f1fbf9 100%);
  box-shadow:
    0 18px 38px rgba(0, 40, 80, .2),
    0 0 0 7px rgba(15, 138, 134, .1);
  color: var(--navy);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, padding .3s ease, gap .3s ease;
}

.chatbot-fab:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.chatbot-fab:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 138, 134, .58);
  box-shadow:
    0 24px 50px rgba(0, 40, 80, .24),
    0 0 0 9px rgba(15, 138, 134, .14);
}

.chatbot-fab .fab-avatar {
  position: relative;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: var(--r-pill);
  overflow: hidden;
  background: #edf7f4;
  border: 1px solid rgba(15, 138, 134, .28);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.82),
    0 8px 18px rgba(0, 40, 80, .12);
}

.chatbot-fab .fab-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04) translateY(3px);
}

.chatbot-fab .fab-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  max-width: 320px;
  overflow: hidden;
  opacity: 1;
  transition: max-width .3s ease, opacity .2s ease;
  text-align: left;
  line-height: var(--lh-tight);
}

.chatbot-fab .fab-kicker {
  display: block;
  color: var(--teal-dark);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  white-space: nowrap;
}

.chatbot-fab .fab-title {
  display: block;
  color: var(--navy);
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: var(--lh-tight);
  white-space: nowrap;
}

.chatbot-fab .fab-note {
  display: block;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-normal);
  white-space: nowrap;
}

/* 初回6秒後はアバターの円（56px）だけに畳む。ホバー/フォーカスで再展開 */
@media (hover: none) {
  .chatbot-fab.is-compact:not(:focus-visible) { padding: 2px; gap: 0; }
  .chatbot-fab.is-compact:not(:focus-visible) .fab-avatar { width: 50px; height: 50px; }
  .chatbot-fab.is-compact:not(:focus-visible) .fab-copy { max-width: 0; opacity: 0; }
}

@media (hover: hover) {
  .chatbot-fab.is-compact:not(:hover):not(:focus-visible) { padding: 2px; gap: 0; }
  .chatbot-fab.is-compact:not(:hover):not(:focus-visible) .fab-avatar { width: 50px; height: 50px; }
  .chatbot-fab.is-compact:not(:hover):not(:focus-visible) .fab-copy { max-width: 0; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .chatbot-fab,
  .chatbot-fab .fab-copy { transition: none; }
  .chatbot-fab:hover { transform: none; }
}

.chatbot-panel {
  position: fixed;
  right: 22px;
  bottom: 116px;
  z-index: 31;
  width: min(520px, calc(100vw - 44px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .16s ease, transform .16s ease;
}

.chatbot-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chatbot-card {
  overflow: hidden;
  border: 1px solid rgba(15, 138, 134, .24);
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow:
    0 24px 64px rgba(0, 40, 80, .22),
    0 0 0 1px rgba(15, 138, 134, .08);
}

.chatbot-head {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, #064c66 100%);
}

.chatbot-head-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.chatbot-avatar {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: var(--r-pill);
  overflow: hidden;
  background: #f4faf8;
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.chatbot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04) translateY(3px);
}

.chatbot-head strong {
  display: block;
  margin-bottom: 3px;
  font-size: var(--fs-md);
  line-height: var(--lh-tight);
  font-weight: 600;
}

.chatbot-head span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  font-weight: 500;
}

.chatbot-close {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-sm);
  color: var(--white);
  background: rgba(255,255,255,.08);
  cursor: pointer;
}

.chatbot-body {
  max-height: min(660px, calc(100vh - 210px));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.chatbot-messages {
  min-height: 310px;
  max-height: 460px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px;
  display: grid;
  gap: 12px;
  background: #f7faf9;
}

.chatbot-message {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: 500;
  white-space: pre-line;
}

.chatbot-message.bot {
  justify-self: start;
  color: #243648;
  background: var(--white);
  border: 1px solid var(--line);
}

.chatbot-message.user {
  justify-self: end;
  color: var(--white);
  background: var(--teal-dark);
}

.chatbot-message a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chatbot-message strong {
  color: var(--navy);
  font-weight: 700;
}

.chatbot-message.user strong {
  color: var(--white);
}

.chatbot-message code {
  padding: 2px 6px;
  border-radius: var(--r-sm);
  background: rgba(0, 40, 80, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.chatbot-controls {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chatbot-quick button {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 12px;
  color: var(--navy);
  background: #f7faf9;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}

.chatbot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.chatbot-form input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font: inherit;
  font-size: var(--fs-base);
}

.chatbot-form button {
  min-height: 46px;
  border: 0;
  border-radius: var(--r-sm);
  padding: 10px 15px;
  color: var(--white);
  background: var(--navy);
  font: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
}

.chatbot-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: var(--lh-normal);
}

/* ============ レスポンシブ ============ */

@media (max-width: 980px) {

  .hero { min-height: auto; }

  .hero-inner,
  .advisor-layout,
  .section-head-visual,
  .profile,
  .final-box {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-photo,
  .hero-photo img {
    min-height: 420px;
  }

  .pain-grid { grid-template-columns: repeat(2, 1fr); }

  .metrics { grid-template-columns: repeat(2, 1fr); }

  .industry-carousel { max-width: 100%; padding: 0 24px; }
  .industry-stage { min-height: 420px; }
  .industry-prev { left: -8px; }
  .industry-next { right: -8px; }

.service-grid,
.data-strip {
    grid-template-columns: 1fr;
  }

  .seminar-row { grid-template-columns: 1fr; }

  .final-box {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .voice-card { flex-basis: calc((100% - 16px) / 2); }

}

@media (max-width: 620px) {

  /* 表はスマホでカード型に積む（thead は読み上げ用に残す） */
  .roi-table-wrap,
  .price-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .roi-table,
  .price-table-wrap table {
    display: block;
    min-width: 0;
    background: transparent;
  }

  .roi-table thead,
  .price-table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .roi-table tbody,
  .price-table-wrap tbody {
    display: grid;
    gap: 12px;
  }

  .roi-table tbody tr,
  .price-table-wrap tbody tr {
    display: block;
    padding: 4px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--white);
  }

  .roi-table td,
  .price-table-wrap td {
    display: flow-root;
    min-height: 44px;
    padding: 11px 0 11px 108px;
    border-bottom: 1px solid var(--line);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    overflow-wrap: anywhere;
  }

  .roi-table tr:last-child td,
  .price-table-wrap tr:last-child td { border-bottom: 1px solid var(--line); }

  .roi-table tr td:last-child,
  .price-table-wrap tr td:last-child { border-bottom: 0; }

  .roi-table td::before,
  .price-table-wrap td::before {
    content: attr(data-label);
    float: left;
    width: 96px;
    margin: 1px 0 0 -108px;
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: var(--lh-normal);
  }

  .price-table-wrap td:first-child {
    color: var(--navy);
    font-weight: 700;
  }

  .hero-inner { padding: 58px 16px 72px; }

  .hero-copy { font-size: var(--fs-md); }

  .section { padding: 48px 16px; }

  /* スマホの縦長を抑える（内容は同じ・余白と並びだけ詰める） */
  .pain-card {
    min-height: 0;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
  }
  .pain-card .icon { margin: 0; }
  .pain-card h3 { margin: 0; }
  .pain-card p { grid-column: 1 / -1; margin-top: 8px; }
  .data-card,
  .metric-card { padding: 18px 20px; }
  .data-value,
  .metric { margin-bottom: 6px; }
  .final-illustration { width: 140px; }

  .pain-grid { grid-template-columns: 1fr; }

  .metrics { grid-template-columns: 1fr; }

  .industry-carousel { padding: 0 18px; }
  .industry-stage { min-height: 230px; }
  .case-card { padding: 0; }
  .case-key-visual { margin: 0; }
  .case-key-overlay { padding: 12px 14px; padding-top: 14px; }
  .case-key-industry { font-size: var(--fs-md); }
  .case-key-role { font-size: var(--fs-xs); margin-bottom: 6px; }
  .case-key-metric { font-size: 28px; }
  .case-key-metric-unit { font-size: var(--fs-base); }
  .case-key-metric-suffix { font-size: var(--fs-sm); }
  .case-key-note { display: none; }
  .case-key-strip { padding: 8px 12px; gap: 6px; }
  .case-key-step-label { font-size: var(--fs-xs); letter-spacing: var(--ls-normal); line-height: var(--lh-tight); overflow-wrap: anywhere; }
  .case-key-step-text { font-size: var(--fs-xs); line-height: var(--lh-tight); overflow-wrap: anywhere; }
  .case-key-step-arrow { font-size: var(--fs-xs); }
  .case-key-step:nth-of-type(2) { flex: 1.45 1 0; } /* 中央「AI配属」は文が長いので幅を多めに */
  .industry-nav { width: 38px; height: 38px; }
  .industry-nav i { width: 18px; height: 18px; }
  .industry-prev { left: -6px; }
  .industry-next { right: -6px; }

  /* スマホ時: PC版に近い明るさを維持し、文字の重なりだけ解消する */
  .case-key-visual img {
    filter: none;
  }
  .case-key-visual::after {
    background: linear-gradient(to right,
      transparent 0%,
      transparent 32%,
      rgba(0, 40, 80, .35) 62%,
      rgba(0, 40, 80, .58) 100%);
  }

  /* スマホ時: §advisor ベネフィットパネルを横スクロールカード化（縦スペース節約・スワイプUX向上） */
  .advisor-benefit {
    padding: 22px 0 18px;
    border-left: none;
    border-top: 4px solid var(--amber);
  }
  .advisor-benefit-title {
    padding: 0 18px;
    font-size: var(--fs-lg);
    margin-bottom: 12px;
  }
  .advisor-benefit-list {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 4px 18px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .advisor-benefit-list::-webkit-scrollbar {
    display: none;
  }
  .advisor-benefit-list li {
    flex: 0 0 85%;
    display: block;
    position: relative;
    background: var(--soft-teal);
    border: 1px solid #d6e8e6;
    border-radius: var(--r-md);
    padding: 18px 18px 18px 36px;
    scroll-snap-align: start;
    font-size: var(--fs-base);
    line-height: var(--lh-loose);
  }
  .advisor-benefit-list li::before {
    position: absolute;
    left: 16px;
    top: 18px;
    margin-top: 0;
    font-size: var(--fs-md);
  }
  .advisor-benefit-list strong {
    font-size: var(--fs-md);
    color: var(--teal-dark);
  }

  .voice-card { flex-basis: 88%; }

  .trust-bar { padding: 32px 16px 40px; }
  .trust-items { grid-template-columns: 1fr; gap: 10px; }
  .trust-item { padding: 16px 18px; }

  .summary-grid { grid-template-columns: 1fr; }
  .summary-card { padding: 20px 20px 12px; }

  .portrait { min-height: 260px; }

  .advisor-main,
  .price-anchor,
  .case-card {
    padding: 22px;
  }

  .hero-visual,
  .hero-photo,
  .hero-photo img {
    min-height: 360px;
  }

  .hero-signal {
    grid-template-columns: 1fr;
  }

  .hero-signal-badge { justify-self: start; }

  .profile-text .profile-mission-quote {
    margin: 28px 0 14px;
    padding: 18px 10px 18px 14px;
    font-size: var(--fs-md);
    font-size: min(var(--fs-md), calc((100cqw - 24px) / 20.2));
    line-height: var(--lh-tight);
    white-space: nowrap;
  }

  .hero-actions .button,
  .final-actions .button {
    width: 100%;
  }

  .precheck-download {
    flex-direction: column;
    align-items: stretch;
  }

  .precheck-link {
    width: 100%;
  }

  .chatbot-fab {
    gap: 9px;
    max-width: calc(100vw - 32px);
    padding: 7px 12px 7px 8px;
    font-size: var(--fs-sm);
  }

  .chatbot-fab .fab-avatar {
    width: 40px;
    height: 40px;
  }

  .chatbot-fab .fab-copy { gap: 1px; }

  .chatbot-fab .fab-kicker { font-size: var(--fs-xs); }

  .chatbot-fab .fab-title {
    font-size: var(--fs-sm);
    line-height: var(--lh-tight);
  }

  .chatbot-fab .fab-note { display: none; }

  .chatbot-panel {
    right: 14px;
    bottom: 76px;
    width: calc(100vw - 28px);
  }

  .chatbot-head {
    padding: 16px;
  }

  .chatbot-head-main {
    gap: 12px;
  }

  .chatbot-avatar {
    width: 54px;
    height: 54px;
  }

  .chatbot-head strong {
    font-size: var(--fs-base);
  }

  .chatbot-head span {
    font-size: var(--fs-xs);
  }

  .chatbot-close {
    width: 34px;
    height: 34px;
  }

  .chatbot-body {
    max-height: calc(100vh - 104px);
  }

  .chatbot-messages {
    min-height: 190px;
    max-height: calc(100vh - 330px);
  }

}
