/* =====================================================
   NE MCP LP — style.css
   ===================================================== */

/* ---- アンカーのスムーズスクロール ---- */
html { scroll-behavior: smooth; }
/* sticky ヘッダー分のオフセット（スクロール先が隠れないように） */
#cta, #cta-2, #solution, #vision, #benefits, #faq { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- レスポンシブ改行ユーティリティ ---- */
.tab-br { display: none; }
.sp-br { display: none; }

/* AVIFフォールバック用pictureラッパー（レイアウトに影響させない） */
.pic-contents { display: contents; }
@media (max-width: 1280px) {
  .tab-br { display: inline; }
}
@media (max-width: 767px) {
  .sp-br { display: inline; }
  .container { padding-inline: var(--spacing-sm); }
  .site-header .container {
    padding-left: var(--spacing-xs);
    padding-right: var(--spacing-xs-half);
  }
  .site-header .btn { padding: var(--spacing-xs) var(--spacing-xs-half); }
}

/* ---- セクション共通 ---- */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-ms);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-ls);
}

.section-header .text-body-lg {
  color: var(--text-secondary);
  margin-top: var(--spacing-sm);
}

@media (max-width: 767px) {
  .section-header { margin-bottom: var(--spacing-ms); }
  .section-title + * { margin-top: var(--spacing-xs-half); }
}

/* ---- 見出し強弱ユーティリティ ---- */
.h-sub  { display: block; font-size: 0.62em; font-weight: 600; line-height: 1.5; margin-bottom: 0.1em; }
.h-big  { font-size: 1.25em; line-height: 1; }
.h-em   { text-emphasis: filled circle var(--color-blue-400); text-emphasis-position: over right;
          -webkit-text-emphasis: filled circle var(--color-blue-400); -webkit-text-emphasis-position: over right; }
.h-em--light { text-emphasis: filled circle rgba(255,255,255,0.55); text-emphasis-position: over right;
               -webkit-text-emphasis: filled circle rgba(255,255,255,0.55); -webkit-text-emphasis-position: over right; }

/* ---- FV アニメーション ---- */
@keyframes char-rise {
  from { opacity: 0; transform: translateY(0.6em); }
  to   { opacity: 1; transform: none; }
}
.char {
  display: inline-block;
  opacity: 0;
  animation: char-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fv-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.fv-anim {
  opacity: 0;
  animation: fv-slide-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.fv-anim--1 { animation-delay: 0.1s; }
.fv-anim--3 { animation-delay: 0.55s; }
.fv-anim--4 { animation-delay: 0.75s; }

/* ---- スクロールアニメーション ---- */
[data-anim] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-anim].is-visible {
  opacity: 1;
  transform: none;
}

/* ---- CTA ボタン パルスアニメーション ---- */
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0    rgba(237, 64, 99, 0.45); }
  60%       { box-shadow: 0 0 0 14px rgba(237, 64, 99, 0); }
}
.btn--cta-primary              { animation: btn-pulse 2.4s ease-out infinite; }
.site-header .btn--cta-primary { padding: var(--spacing-xs-half) var(--spacing-s); animation: none; }

/* .btn 内のチェックマークアイコン（FVボタンと同じ見た目） */
.btn img { width: 1.35em; height: 1.35em; flex-shrink: 0; }

/* lp-cta-button は固有のドロップシャドウを持つため、それを保ちつつ波紋を重ねる */
@keyframes lp-cta-pulse {
  0%, 100% { box-shadow: 0 0.4rem 2.4rem 0 rgba(0, 0, 0, 0.16), 0 0 0 0    rgba(237, 64, 99, 0.45); }
  60%       { box-shadow: 0 0.4rem 2.4rem 0 rgba(0, 0, 0, 0.16), 0 0 0 14px rgba(237, 64, 99, 0); }
}
.lp-cta-button { animation: lp-cta-pulse 2.4s ease-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .btn--cta-primary { animation: none; }
  .lp-cta-button { animation: none; }
  .fv-anim, .char { opacity: 1; transform: none; animation: none; }
  [data-anim] { opacity: 1; transform: none; transition: none; }
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-invert);
  border-bottom: 1px solid var(--border-primary);
}

.site-header .container { padding-block: var(--spacing-xs); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img { height: 48px; width: auto; }

@media (max-width: 767px) {
  .nav__logo img { height: 40px; }
}

/* =====================================================
   1. FV
   ===================================================== */
.fv {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 740;
  background-image: url('../images/FV_pc_full.webp?v=20260629'); /* fallback */
  background-image: image-set(url('../images/FV_pc_full.avif?v=20260629') type('image/avif'), url('../images/FV_pc_full.webp?v=20260629') type('image/webp'));
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  color: var(--text-invert);
  overflow: hidden;
}

/* テキスト＋ボタンのまとまり。vw指定で背景画像と一緒にスケールさせる */
.fv__content {
  position: absolute;
  left: 16.8%;
  top: 23.5%;
  display: flex;
  flex-direction: column;
  gap: 2.5vw; /* 48px相当 */
  align-items: flex-start;
}

.fv__text {
  display: flex;
  flex-direction: column;
  gap: 0.62vw; /* 12px相当 */
  align-items: flex-start;
  /* テキストは背景画像にベイク済み。位置維持のため要素は残し非表示に */
  visibility: hidden;
}

/* キャッチ：ECの売上を1分で確認 */
.fv__catch {
  font-weight: 600;
  font-size: 1.667vw; /* 32px */
  color: var(--text-invert);
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
  font-feature-settings: "palt" 1; /* 約物・かな詰め（カーニング） */
}
.fv__catch .fv__r { font-family: "Roboto", sans-serif; font-size: 1.875vw; } /* EC 36px */
.fv__catch .fv__r--lg { font-size: 2.5vw; } /* 1 48px */

/* メイン見出し：AI に [今日の売上は？] と聞くだけ。 */
.fv__headline {
  display: flex;
  align-items: baseline;
  gap: 0.5vw;
  white-space: nowrap;
  color: var(--text-invert);
  font-weight: 700;
  text-shadow: 0 4px 12px rgba(0, 153, 255, 0.6);
  font-feature-settings: "palt" 1; /* 約物・かな詰め（カーニング） */
}
.fv__hl-ai  { font-family: "Roboto", sans-serif; font-size: 3.333vw; } /* 64px */
.fv__hl-mid { font-size: 2.5vw; } /* 48px */
.fv__pill {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  margin-inline: 0.3vw;
  padding: 0.42vw 1.25vw; /* 8 / 24 */
  border-radius: 1.25vw; /* 24px */
  background: var(--surface-invert);
  color: var(--surface-primary);
  font-size: 2.917vw; /* 56px（今日・売上・？） */
  letter-spacing: 0.02em; /* tracking 1.12px相当 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  text-shadow: none;
  line-height: 1.45;
font-feature-settings: "palt" 1; /* カーニングを詰める */
}
.fv__pill-sm { font-size: 2.5vw; } /* の・は 48px */
.fv__pill-tail {
  position: absolute;
  bottom: -1.3vw;
  right: 1.4vw;
  width: 3.25vw; /* 62.5px */
  height: auto;
  pointer-events: none;
}

/* リード文 */
.fv__lead {
  padding: 1rem 0 0;
  font-weight: 600;
  font-size: 0.833vw; /* 16px */
  line-height: 1.6;
  color: var(--text-invert);
  letter-spacing: 0.02em;
}

/* CTA */
.fv__cta-area {
  display: flex;
  flex-direction: column;
  gap: 2vw;
  align-items: flex-start;
}
.fv__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.04vw; /* 20px */
  padding: 1.4vw 3vw; /* 20 / 60 */
  background: var(--surface-secondary); /* #ed4063 */
  color: var(--text-invert);
  font-weight: 700;
  font-size: 1.571vw; /* 30px */
  line-height: 1.2;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  animation: btn-pulse 2.4s ease-out infinite;
}
.fv__cta-btn img { width: 1.83vw; height: 1.83vw; flex-shrink: 0; }

.fv__note {
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--color-gray-50);
}

@media (prefers-reduced-motion: reduce) {
  .fv__cta-btn { animation: none; }
}

/* ===== スマホ用FV ===== */
.fv__sp { display: none; }

@media (max-width: 767px) {
  .fv {
    aspect-ratio: 390 / 570;
    background-image: url('../images/FV_sp_full.webp?v=20260629'); /* fallback */
    background-image: image-set(url('../images/FV_sp_full.avif?v=20260629') type('image/avif'), url('../images/FV_sp_full.webp?v=20260629') type('image/webp'));
    background-size: 100% auto;
    background-position: top center;
    background-color: var(--surface-invert); /* 画像下の余白 */
  }
  .fv__content { display: none; } /* PC用テキストを隠す */
  .fv__sp { display: block; }

  /* テキスト・装飾は背景画像にベイク済み。ボタン/注釈の位置維持のため空間は残す */
  .fv__sp-top { visibility: hidden; }
  .fv__sp-lead { visibility: hidden; }
  .fv__sp-connector { display: none; }

  /* 上：キャッチ＋見出し（右寄せ） */
  .fv__sp-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 4.1vw 6.15vw 6.15vw; /* 16 / 24 */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }
  .fv__sp-catch {
    font-weight: 700;
    font-size: 8.2vw;            /* 32px */
    line-height: 1.32;
    letter-spacing: 0.04em;
    color: var(--text-invert);
    text-shadow: 0 0 6px var(--surface-primary);
    white-space: nowrap;
    font-feature-settings: "palt" 1;
  }
  .fv__sp-catch .fv__r { font-family: "Roboto", sans-serif; font-size: 9.23vw; }  /* EC 36px */
  .fv__sp-catch .fv__r--lg { font-size: 12.3vw; }                                 /* 1 48px */

  .fv__sp-headline {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 1vw;
  }
  .fv__sp-hl-row { display: flex; align-items: center; gap: 1vw; }
  .fv__sp-ai { font-family: "Roboto", sans-serif; font-weight: 700; font-size: 8.2vw; color: var(--surface-primary); } /* 32 */
  .fv__sp-ni { font-weight: 700; font-size: 6.15vw; color: var(--surface-primary); }                                   /* 24 */
  /* 青文字に白フチ（paint-orderでフチを背面に描き、塗りを保つ） */
  .fv__sp-ai, .fv__sp-ni {
    -webkit-text-stroke: 0.08em var(--surface-invert);
    text-stroke: 0.08em var(--surface-invert);
    paint-order: stroke fill;
  }
  .fv__sp-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 3vw;               /* 12px */
    border-radius: 4vw;
    background: var(--surface-invert);
    color: var(--surface-primary);
    font-weight: 700;
    font-size: 9.74vw;          /* 38px */
    box-shadow: 0 2.6px 8px rgba(0, 0, 0, 0.16);
    font-feature-settings: "palt" 1;
    line-height: 1.4;
    word-break: keep-all;
  }
  .fv__sp-pill-tail { position: absolute; bottom: -2.6vw; right: 2vw; width: 10.6vw; height: auto; pointer-events: none; }
  .fv__sp-end {
    font-weight: 700;
    font-size: 6.15vw;          /* 24px */
    color: var(--text-invert);
    margin-top: 1.5vw;
    text-shadow: 0 2.6px 8px rgba(0, 153, 255, 0.6);
    font-feature-settings: "palt" 1;
  }

  /* 下：リード＋ボタン＋注釈 */
  .fv__sp-bottom {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    padding: 6.15vw; /* 24px */
    display: flex;
    flex-direction: column;
    gap: 2.8vw;      /* 11px */
    align-items: stretch;
  }
  /* リード上に伸びる装飾ライン（Vector 90） */
  .fv__sp-connector {
    position: absolute;
    top: -22.8vw;   /* -89px */
    left: 4.87vw;   /* 19px */
    width: 65.9vw;  /* 257px */
    height: auto;
    transform: rotate(180deg);
    pointer-events: none;
  }
  .fv__sp-lead {
    font-weight: 600;
    font-size: 3.59vw;          /* 14px */
    line-height: 1.32;
    color: var(--text-invert);
    text-shadow: 0 0 6px var(--surface-primary);
  }
  .fv__sp-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3vw;
    width: 100%;
    padding: 4.1vw;             /* 16px */
    background: var(--surface-secondary);
    color: var(--text-invert);
    font-weight: 700;
    font-size: 5.13vw;          /* 20px */
    line-height: 1.1;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 3.7px 11px rgba(0, 0, 0, 0.16);
    animation: btn-pulse 2.4s ease-out infinite;
  }
  .fv__sp-cta img { width: 6.15vw; height: 6.15vw; flex-shrink: 0; }
  .fv__sp-note {
    font-size: 3.08vw;          /* 12px */
    line-height: 1.3;
    color: var(--color-gray-500);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fv__sp-cta { animation: none; }
}


/* =====================================================
   2. Bridge セクション
   ===================================================== */
.bridge-section {
  background: var(--color-gray-50);
  overflow: hidden;
}

.bridge__lead {
  color: var(--text-secondary);
  margin-top: var(--spacing-sm);
}

.bridge__flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-s);
  margin-top: var(--spacing-ls);
}

.bridge__flow-item {
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  max-width: 100%;
  position: relative;
}

.bridge__pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-s);
  margin-top: calc(var(--spacing-ls) + 60px);
  position: relative;
}

.bridge-deco {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.bridge-deco--left  { left:  -40px; }
.bridge-deco--right { right: -20px; }

/* @media (max-width: 1280px) {
  .bridge-deco { display: none; }
} */

.bridge__pain-card {
  position: relative;
  background: var(--surface-invert);
  border-radius: var(--radius-s);
  padding: 72px var(--spacing-ms) var(--spacing-ms);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-s);
}

/* 上部から飛び出す円形写真 */
.bridge__pain-card__photo {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  overflow: hidden;
  filter: drop-shadow(0 4.96px 2.48px rgba(0, 0, 0, 0.25));
}

.bridge__pain-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bridge__pain-card__text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.bridge__pain-card h3 { margin-bottom: 0; }
.bridge__pain-card .text-body { line-height: 1.7; }

@media (max-width: 767px) {
  /* タイトル：24px・2行 */
  .bridge-section .section-title { font-size: 1.5rem; }
  .bridge-section .section-header { margin-bottom: 0; }

  .bridge__pain-grid {
    grid-template-columns: 1fr;
    margin-top: var(--spacing-2xl); /* ヘッダーとの間隔96px */
    row-gap: var(--spacing-lg);     /* カード間72px（写真の飛び出し分） */
  }

  /* 装飾アイコンをスマホでも表示（左上・右下に配置） */
  .bridge-deco { display: block; transform: none; }
  .bridge-deco--left  { top: -52px;   left: -6px;  width: 72px; }
  .bridge-deco--right { top: auto; bottom: 170px; right: -6px; width: 64px; }
}

.bridge__flow-item--after {
  border-color: var(--color-blue-300);
  background: var(--color-blue-100);
}

.bridge__flow-icon {
  font-size: 2rem;
  color: var(--color-gray-400);
  flex-shrink: 0;
}
.bridge__flow-item--after .bridge__flow-icon {
  color: var(--surface-primary);
}

.bridge__flow-item .text-body-sm {
  color: var(--text-tertiary);
  line-height: 2;
}

.bridge__flow-chat {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-block: var(--spacing-xs);
}

.bridge__flow-result {
  font-weight: 600;
  color: var(--surface-primary);
  font-size: 1rem;
}

.bridge__flow-label {
  position: absolute;
  top: -12px;
  left: var(--spacing-ms);
  transform: none;
  padding: 2px var(--spacing-xs);
  border-radius: var(--radius-full);
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.bridge__flow-label--old {
  background: var(--color-gray-200);
  color: var(--text-tertiary);
}
.bridge__flow-label--new {
  background: var(--surface-primary);
  color: var(--text-invert);
}

.bridge__flow-arrow {
  color: var(--color-gray-400);
}
.bridge__flow-arrow .material-symbols-outlined { font-size: 2rem; }

/* =====================================================
   3. Pain セクション
   ===================================================== */
.pain-section { background: var(--surface-invert); }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-sm);
}

.pain-card {
  background: var(--color-gray-50);
  border-radius: var(--radius-s);
  padding: var(--spacing-ms);
  border-left: 4px solid var(--color-gray-300);
}

.pain-card .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--surface-gray-dark);
  display: block;
  margin-bottom: var(--spacing-s);
}

/* =====================================================
   4 & 6. CTA Mid
   ===================================================== */
.cta-mid {
  background-image: url('./assets/images/cta_bg.png');
  background-size: cover;
  background-position: center;
  padding-top: var(--spacing-ms);    /* 上マージンを半分に（64px→32px） */
  padding-bottom: var(--spacing-ls);
  position: relative;
}

.cta-mid .container {
  position: relative;
  z-index: 1;
}

.cta-mid__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

/* .cta-mid h2          { color: var(--text-invert); } */
.cta-mid .text-caption { color: rgba(255,255,255,0.45); }

/* ===== CTA バナー（FAQ前） ===== */
.cta-banner {
  background-image: url('../images/cta-banner-bg.webp'); /* fallback */
  background-image: image-set(url('../images/cta-banner-bg.avif') type('image/avif'), url('../images/cta-banner-bg.webp') type('image/webp'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--surface-primary); /* 画像読み込み前のフォールバック */
  padding-block: var(--spacing-lg); /* 72px */
}
.cta-banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  text-align: center;
}
.cta-banner__heading {
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 2.5rem; /* 40px */
  line-height: 1.6;
  color: var(--text-invert);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
@media (max-width: 767px) {
  .cta-banner__heading { font-size: 1.5rem; }
}

/* =====================================================
   5. Solution セクション
   ===================================================== */
.solution-section {
  background: var(--surface-primary);
}
.solution-section .section-title,
.solution-section .h-sub,
.solution-section .text-body-lg {
  color: var(--text-invert);
}

/* ヘッダーのキラキラ装飾 */
.solution-header {
  position: relative;
}
.solution-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
.solution-deco--left  { top: 13px; left: 0;  width: 86px; height: 118px; }
.solution-deco--right { top: 13px; right: 0; width: 64px; height: 108px; transform: rotate(180deg);}

@media (max-width: 767px) {
  .solution-deco--left  { top: -26px;  left: -12px;  width: 43px; height: 60px; }
.solution-deco--right { top: 37px;  right: -7px; width: 32px; height: 54px; }
}

@media (max-width: 767px) {
  .solution-header .section-title { font-size: 1.5rem; } /* 24px */
}

.usecase-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm); /* 24px */
}

/* 各行をボーダー付きグラデーションカードに */
.usecase-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-ms);
  padding: var(--spacing-ms);
  border: 2px solid var(--color-blue-300);
  border-radius: var(--radius-s-half); /* 20px */
  background-image: linear-gradient(270deg, var(--color-blue-400) 0%, var(--surface-primary) 25%);
  overflow: hidden;
}
/* 2つ目はグラデーションを左右反転（明るい側を左に） */
.usecase-row:nth-child(2) {
  background-image: linear-gradient(90deg, var(--color-blue-400) 0%, var(--surface-primary) 25%);
}

.usecase-row__info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xs);
  color: var(--text-invert);
}
.usecase-row__head {
  display: flex;
  align-items: center;
  gap: var(--spacing-s);
}
.usecase-row__info .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--text-invert);
}
.usecase-row__info .text-h3 {
  color: var(--text-invert);
  font-size: 2rem; /* PC 32px */
}

.usecase-card__chat {
  flex-shrink: 0;
  width: 56%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  /* 白背景は廃止。吹き出しにドロップシャドウのみ */
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}
.usecase-card__chat .mini-chat {
  font-size: 1rem;
}

.mini-chat {
  line-height: 1.5;
}
.mini-chat--user {
  background: var(--color-gray-50);
  color: var(--text-secondary);
  align-self: flex-end;
  width: fit-content;
  max-width: 100%;
  padding: var(--spacing-xs);
  text-align: right;
  /* 左上・左下・右下を 12px、右上を角に */
  border-radius: var(--radius-xs-half) 0 var(--radius-xs-half) var(--radius-xs-half);
}
.mini-chat--ai {
  background: var(--color-blue-100);
  color: var(--color-blue-900);
  align-self: flex-start;
  width: 460px;
  max-width: 100%;
  padding: var(--spacing-s);
  /* 右上・左下・右下を 16px、左上を角に */
  border-radius: 0 var(--radius-s) var(--radius-s) var(--radius-s);
}

.usecase-card__note {
  color: rgba(255, 255, 255, 0.8);
}

/* スマホ：カードを解除し、上ボーダー区切り＋縦積み・全幅チャット */
@media (max-width: 767px) {
  .usecase-list { gap: var(--spacing-ms); } /* 32px */
  .usecase-row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-xs-half); /* 12px */
    padding: var(--spacing-ms) 0 0; /* 上32pxのみ */
    border: none;
    border-top: 2px solid var(--color-blue-300);
    border-radius: 0;
    background-image: none;
    overflow: visible;
  }
  .usecase-row:nth-child(2) { background-image: none; } /* PC用の反転を打ち消し */
  .usecase-row__info .text-h3 { font-size: 1.5rem; } /* 24px */
  .usecase-card__chat { width: 100%; }
  .mini-chat--ai { width: 100%; }
}

/* =====================================================
   7. Benefits セクション
   ===================================================== */
.benefits-section {
  background: var(--surface-invert);
  position: relative;
  padding-bottom: var(--spacing-ls); /* 下マージンを半分に（128px→64px） */
}
.benefits-section::before {
  content: '';
  position: absolute;
  /* 下に220pxはみ出させる（top right bottom left） */
  inset: 0 0 -220px 0;
  background-image: url('../images/ai-wave.webp'); /* fallback */
  background-image: image-set(url('../images/ai-wave.avif') type('image/avif'), url('../images/ai-wave.webp') type('image/webp'));
  background-size: 100% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}
.benefits-section .container {
  position: relative;
  z-index: 1;
}

.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* 折り返した時に中央寄せ */
  gap: var(--spacing-sm);
}

.benefit-card {
  flex: 1 1 280px;
  max-width: 344px; /* 3カラム時の幅。伸びすぎ防止＆単独折返し時も中央に */
  display: flex;
  flex-direction: column;
  background: var(--color-blue-100);
  border-radius: var(--radius-s);
  border: 1px solid var(--color-blue-200);
  overflow: hidden;
}

.benefit-card__image {
  width: 100%;
  height: 220px;
  flex-shrink: 0;
}
.benefit-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.benefit-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding: var(--spacing-ms);
}

.benefit-card h3 { margin-bottom: 0; }
.benefit-card .text-body { line-height: 1.6; }

@media (max-width: 767px) {
  .benefit-card {
    max-width: 100%;
  }
}

/* =====================================================
   8. Vision（NE Links 将来構想）
   ===================================================== */
.vision-section {
  position: relative;
  padding: 80px 0 128px;
  overflow: hidden;
  background: var(--surface-invert);
}

/* 背景の巨大 VISION 文字 */
.vision__bgtext {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-size: clamp(4.5rem, 12vw, 11.5rem);
  line-height: 1.6;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0.2;
  background-image: linear-gradient(261deg, var(--color-blue-300) 31%, var(--surface-primary) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* 散らばる EC アイコン */
.vision__icons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96%;
  max-width: 1759px;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

/* スマホ用アイコンレイヤー（PCでは非表示） */
.vision__icons-sp {
  display: none;
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

/* 周囲の写真 */
.vision__photo {
  position: absolute;
  border-radius: var(--radius-s-half); /* 20px */
  object-fit: cover;
  z-index: 1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}
.vision__photo--left { left: 2%;  top: 28%; width: 27vw;   max-width: 520px; aspect-ratio: 520 / 416; }
.vision__photo--tr   { right: 9.1%; top: 17.1%; width: 19.1875rem; height: 15.375rem; z-index: 2; } /* 307×246px */
.vision__photo--r    { right: 1%; top: 41%; width: 24.6vw; max-width: 473px; aspect-ratio: 473 / 378; }

/* 中央コンテンツ */
.vision__content {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin-inline: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  text-align: center;
}

.vision__label {
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 1.25rem;
}
.vision__label-sm { font-size: 1rem; }

.vision__headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xxs);
}
.vision__hl-line {
  font-weight: 700;
  font-size: 2.5rem; /* 40px */
  color: var(--text-secondary);
  line-height: 1.4;
}
.vision__pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 24px;
  background-image: linear-gradient(253deg, var(--color-blue-300) 31%, var(--surface-primary) 80%);
  color: var(--text-invert);
  font-weight: 700;
  font-size: 3.5rem; /* 56px */
  letter-spacing: 0.05em;
  line-height: 1.4;
  font-feature-settings: "palt";
  white-space: nowrap;
}
.vision__pill-tail {
  position: absolute;
  bottom: -26px;
  right: 16%;
  width: 62px;
  height: 42px;
  pointer-events: none;
}

.vision__lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
}
.vision__lead .r,
.vision__bullets .r { font-weight: 600; }

.vision__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xxs);
  text-align: left;
}
.vision__bullets li {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 1rem;
  color: var(--text-primary);
}
.vision__bullets li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-primary);
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .vision__photo { display: none; }
  .vision__icons { opacity: 0.55; }
}
@media (max-width: 767px) {
  /* PC用アイコンを隠してSP用に切り替え */
  .vision__icons { display: none; }
  .vision__icons-sp { display: block; opacity: 0.9; }

  .vision__bgtext { font-size: 7rem; }
  .vision__content { max-width: 350px; padding-top: 128px; }
  .vision__label { font-size: 1rem; }
  .vision__label-sm { font-size: 0.875rem; }
  .vision__hl-line { font-size: 1.25rem; }     /* 20px */
  .vision__pill {
    font-size: 2.25rem;                         /* 36px */
    padding: 0.34rem 1rem;
    border-radius: 16px;
    letter-spacing: 0.05em;
  }
  .vision__pill-tail { bottom: -18px; right: 12%; width: 44px; height: 30px; }
  .vision__lead { line-height: 1.46; }

  /* 写真2枚を下部に並べる（女性カットは非表示） */
  .vision-section { padding-bottom: 380px; }
  .vision__photo--tr { display: none; }
  .vision__photo--left,
  .vision__photo--r {
    display: block;
    top: auto;
    border-radius: 9px;
  }
  .vision__photo--left {
    left: -16px; right: auto;
    bottom: 16%;
    width: 60vw;
    height: 11.82538rem;
  }
  .vision__photo--r {
    right: -8px; left: auto;
    bottom: 12%;
    width: 60vw;
    height: 10.74519rem;
  }
}

/* =====================================================
   10. CTA Final
   ===================================================== */
.cta-final {
  padding-block: var(--spacing-4xl);
  text-align: center;
  background: var(--surface-invert);
  border-top: 1px solid var(--border-primary);
}
.cta-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}
.cta-final h2        { color: var(--text-primary); }
.cta-final .text-body-lg  { color: var(--text-secondary); }
.cta-final .text-caption  { color: var(--text-tertiary); }

.cta-final__trial {
  background: var(--color-blue-100);
  border-radius: var(--radius-s-half);
  padding: var(--spacing-s);
  text-align: center;
  color: var(--text-primary);
}
.cta-final__trial a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .cta-final { padding: var(--spacing-lg) 0; }
  .cta-final__lead { font-size: 14px; }
}

/* Marketo フォームエリア */
.marketo-placeholder {
  background: var(--color-gray-50);
  border: 2px dashed var(--border-primary);
  border-radius: var(--radius-s);
  padding: var(--spacing-ms);
  text-align: center;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}
.marketo-placeholder .text-caption {
  color: var(--text-tertiary);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--surface-invert);
  padding-block: var(--spacing-x);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}
.footer__nav a {
  color: var(--text-emphasize-primary);
  text-decoration: underline;
  font-size: 0.875rem;
}
.footer__copy {
  text-align: center;
  color: var(--text-tertiary);
}





.logo-loop {
  padding: 6rem 0;
  overflow: hidden;
}
.logo-loop__heading {
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--spacing-ms);
}
@media screen and (max-width: 767px) {
  .logo-loop {
    padding: 4.2rem 0;
  }
}
.logo-loop__inner {
  width: 100%;
  overflow: hidden;
}
.logo-loop__track {
  display: flex;
  width: max-content;
  animation: logo-loop 52s linear infinite;
}
@media screen and (max-width: 767px) {
  .logo-loop__track {
    animation-duration: 36s;
  }
}
.logo-loop__item {
  flex: 0 0 auto;
}
.logo-loop__item img {
  display: block;
  width: auto;
  height: 60px;
}

/* 同一コピーを3枚並べているため、1コピー分（=トラック幅の1/3）だけ
   ずらせば寸法に依存せずシームレスにループする */
@keyframes logo-loop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.3333%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-loop__track { animation: none; }
}


.newuser img {width: 100%;}
