@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  /* claude design v5 の実トークン */
  --color-bg: #fdf8ee;
  --color-ink: #0b5751;          /* tw-primary-deep */
  --color-primary: #0ea59b;      /* tw-primary */
  --color-primary-dark: #0b5751;
  --color-accent: #ef8a2c;
  --color-accent-dark: #d1751f;  /* tw-accent-deep */
  --color-accent-soft: #ffd9a8;
  --color-navy: #1b3a5c;
  --color-soft: #f2faf8;         /* tw-primary-soft: カード薄地 */
  --color-tint: #e3f3f0;         /* tw-primary-tint: バナー/フォーム地 */
  --color-sec: #e9f5f1;          /* tw-sec-bg: 交互セクション地 */
  --color-line: #bfe3de;         /* tw-primary-line: セクション罫線 */
  --color-white: #ffffff;
  --color-text: #2f3a38;
  --color-text-soft: #4c5a57;    /* neutral-700 */
  --color-text-muted: #5f6d6a;   /* neutral-600 */
  --color-text-faint: #78827f;   /* neutral-500 */
  --color-border: #d5ddda;       /* neutral-300 */
  --rad: 20px;
  --radius-sm: 12px;
  --shadow-card: 0 4px 16px rgba(31, 78, 76, 0.08);
  --container: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 62px; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--color-ink); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- セクション共通 ---------- */
main section { border-top: 3px solid var(--color-line); }
main section:first-of-type { border-top: none; }
.section { background: var(--color-white); }
.section-tint { background: var(--color-sec); }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  /* 上パディングのみ20px詰める(区切り線〜英語サブタイトルの間隔) */
  padding: clamp(28px, 6vw, 64px) 20px clamp(48px, 8vw, 84px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section-inner.narrow { max-width: 760px; }

.eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 8px;
}

.section-head { text-align: center; }
.section-title {
  font-size: clamp(20px, 4.6vw, 30px);
  font-weight: 900;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
/* v5の見出し下線アニメーション */
.section-title::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 0; height: 4px; border-radius: 2px;
  background: var(--color-accent);
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-title.in::after { width: min(144%, 440px, 86vw); }

.body-lead {
  font-size: 15px;
  line-height: 2.1;
  color: var(--color-text-soft);
  max-width: 36em;
  margin: 0 auto;
  text-align: center;
}

.stats-title {
  text-align: center;
  font-size: clamp(18px, 4.2vw, 24px);
  font-weight: 900;
  margin-bottom: 16px;
}

/* スクロール連動の出現アニメーション */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }
.rv.lift { transition: opacity 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.rv.lift:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(31, 78, 76, 0.16); }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .section-title::after { transition: none; }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-primary-dark);
  box-shadow: 0 2px 12px rgba(31, 78, 76, 0.2);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 3px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-mark { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; filter: brightness(0) invert(1); }
.brand-name { font-weight: 900; font-size: 26px; color: #fff; }
.brand-sub {
  font-weight: 700; font-size: 11px; letter-spacing: 0.1em;
  color: var(--color-accent-soft); white-space: nowrap; margin-left: 4px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 10px;
  font-size: 13px; font-weight: 700; color: #fff;
  white-space: nowrap;
}
.nav a:hover { color: var(--color-accent-soft); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2.4px; background: #fff; border-radius: 2px; }

/* ---------- ボタン ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 52px 0 34px;
  border-radius: 999px; font-weight: 900; font-size: 17px;
  border: none; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.btn .icon { width: 19px; height: 19px; }
.btn-primary {
  background: var(--color-accent); color: #fff;
  box-shadow: 0 5px 18px rgba(239, 138, 44, 0.4);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--color-accent) 88%, #fff);
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 138, 44, 0.4);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn .chev {
  position: absolute; top: 50%; right: 18px;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}
.btn-primary:hover .chev { transform: translateY(-50%) translateX(3px); }
.btn-block { width: 100%; padding: 0 34px; text-decoration: none; }

/* ---------- ヒーロー ---------- */
.hero { background: var(--color-bg); position: relative; overflow: hidden; }
.hero-bg-photo {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(58%, 620px); height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 35%, #000 70%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 35%, #000 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) 20px clamp(24px, 3vw, 40px);
  display: block;
}
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hero-copy h1 { white-space: nowrap; }
/* Nursing版と同一配置: カバー・アニメとも右下の同一スロットに重ねる */
.hero-art {
  position: absolute; right: 28px; bottom: 44px; z-index: 1;
  display: grid; place-items: end center;
}
.hero-art > * { grid-area: 1 / 1; }
.badge {
  display: inline-flex; align-items: center;
  min-height: 34px; padding: 4px 18px;
  background: var(--color-tint); color: var(--color-ink);
  font-weight: 700; font-size: 14px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(30px, 5.4vw, 56px);
  font-weight: 900;
  line-height: 1.4;
  color: var(--color-ink);
}
.hero-lead {
  font-size: clamp(15px, 4vw, 17px);
  line-height: 2.1;
  color: var(--color-text-soft);
  margin-bottom: 16px;
}
.hero-phone-img {
  width: min(18vw, 230px);
  filter: drop-shadow(0 18px 30px rgba(11, 87, 81, 0.3));
}

/* ---------- ヒーローの字幕ナレーション表示(初回描画時に順次フェードイン) ---------- */
/* html.hero-seq は head のインラインスクリプトが描画前に付与する。
   JSが無効・失敗した場合はクラスが付かず、全要素が通常どおり即時表示される。 */
.hero h1 .hero-rise,
.hero-lead .hero-rise { display: block; }
.hero-copy .hero-rise-cta { display: inline-flex; }

.hero-seq .hero-bg-photo { opacity: 0; }
.hero-seq .hero-rise { opacity: 0; transform: translateY(8px); }

.hero-seq-run .hero-bg-photo {
  opacity: 0.55;
  transition: opacity 2.4s ease;
}
.hero-seq-run .hero-rise {
  opacity: 1;
  transform: none;
  transition: opacity 1.35s ease var(--hero-d, 0s), transform 1.35s ease var(--hero-d, 0s);
}

/* 出現の間合い(合計 約5.6秒) */
.hero h1 .hero-rise:nth-child(1) { --hero-d: 0s; }
.hero h1 .hero-rise:nth-child(2) { --hero-d: 0.66s; }
.hero-lead .hero-rise:nth-child(1) { --hero-d: 1.74s; }
.hero-lead .hero-rise:nth-child(2) { --hero-d: 2.58s; }
.hero-lead .hero-rise:nth-child(3) { --hero-d: 3.42s; }
.hero-lead .hero-rise:nth-child(4) { --hero-d: 4.26s; }
/* リード文の1行目「見守りAI電話…の導入で」と同時にCTAとデモを出す */
.hero-copy .hero-rise-cta,
.hero-art.hero-rise { --hero-d: 1.74s; }

/* ---------- ヒーローの2段階カバー+動的スマホUI(Nursing版から移植・Business配色) ---------- */
.hero-phone-cover {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit;
}
.hero-phone-cover:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; border-radius: 26px; }
.hero-phone-cover .hero-phone-img { transition: transform 0.25s ease; }
.hero-phone-cover:hover .hero-phone-img { transform: translateY(-4px); }
.wipe-out { animation: wipeOut 0.5s ease forwards; }
.wipe-in { animation: wipeIn 0.5s ease forwards; }
@keyframes wipeOut {
  from { clip-path: inset(0 0 0 0); opacity: 1; }
  to { clip-path: inset(100% 0 0 0); opacity: 0.6; }
}
@keyframes wipeIn {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
.hero-phone {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none;
}
.hero-phone[hidden] { display: none; } /* hidden属性がdisplay:flexに負けないように */
.phone-frame {
  position: relative; display: block;
  width: 190px; height: 380px;
  background: #1f2430; border-radius: 30px; padding: 10px;
  box-shadow: 0 18px 34px rgba(11, 87, 81, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-phone:hover .phone-frame,
.hero-phone:focus-visible .phone-frame {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(11, 87, 81, 0.34);
}
.hero-phone:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; border-radius: 26px; }
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 14px; background: #1f2430;
  border-radius: 0 0 12px 12px; z-index: 2;
}
.phone-screen {
  position: relative; display: block; width: 100%; height: 100%;
  border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-tint) 100%);
}
.phone-scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 18px 12px; text-align: center;
  opacity: 0;
  animation: phoneScene 19s infinite;
}
.scene-call { animation-delay: 0s; }
.scene-talk { animation-delay: 4s; }
.scene-notify { animation-delay: 8s; animation-name: phoneSceneLong; } /* 通知シーン: 6秒表示 */
.scene-portal { animation-delay: 14s; animation-name: phoneSceneMid; } /* 専用ページシーン: 5秒表示 */
@keyframes phoneScene {
  0% { opacity: 0; }
  2.6% { opacity: 1; }
  18.4% { opacity: 1; }
  21.1% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes phoneSceneLong {
  0% { opacity: 0; }
  2.6% { opacity: 1; }
  28.9% { opacity: 1; }
  31.6% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes phoneSceneMid {
  0% { opacity: 0; }
  2.6% { opacity: 1; }
  23.7% { opacity: 1; }
  26.3% { opacity: 0; }
  100% { opacity: 0; }
}
.scene-title { font-weight: 900; color: var(--color-ink); font-size: 15px; line-height: 1.5; }
.scene-title-sub { display: block; font-size: 10px; font-weight: 700; color: var(--color-text-muted); margin-top: 2px; }
.scene-sub { font-size: 12px; color: var(--color-text-muted); margin-top: -8px; }
.scene-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-tint); color: var(--color-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 22px;
}
.call-ring {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  background: #3cae5c;
  display: flex; align-items: center; justify-content: center;
  margin-top: 6px;
}
.call-ring::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid #3cae5c;
  animation: callPulse 1.4s ease-out infinite;
}
@keyframes callPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}
.scene-logo { font-weight: 900; font-size: 18px; letter-spacing: 0.06em; color: var(--color-navy); }
.scene-icon { color: var(--color-primary); }
.scene-portal .scene-title { font-size: 11px; }
.talk-dots { display: flex; align-items: flex-end; gap: 5px; height: 26px; }
.talk-dots i {
  display: block; width: 6px; height: 10px; border-radius: 3px;
  background: var(--color-primary);
  animation: talkWave 1s ease-in-out infinite alternate;
}
.talk-dots i:nth-child(2) { animation-delay: 0.15s; }
.talk-dots i:nth-child(3) { animation-delay: 0.3s; }
.talk-dots i:nth-child(4) { animation-delay: 0.45s; }
.talk-dots i:nth-child(5) { animation-delay: 0.6s; }
@keyframes talkWave { from { height: 8px; } to { height: 24px; } }
.push-card {
  display: flex; align-items: flex-start; gap: 8px; width: 94%;
  background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 8px 10px; text-align: left;
}
.push-body { font-size: 10px; line-height: 1.6; color: var(--color-text-soft); }
.push-body b { display: block; font-size: 10px; white-space: nowrap; color: var(--color-ink); }
.push-icon {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.push-icon-mail { background: #4a7fd6; }
.push-icon-line { background: #06c755; }
.push-mail { animation: pushIn 19s infinite; }
.push-line { animation: pushIn 19s infinite; animation-delay: 0.45s; }
@keyframes pushIn {
  0%, 44.5% { opacity: 0; transform: translateY(-12px); }
  47.4% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}
.phone-cta-chip {
  display: inline-flex; align-items: center;
  background: var(--color-accent); color: #fff;
  font-weight: 700; font-size: 13px;
  padding: 8px 18px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(239, 138, 44, 0.35);
  animation: chipFloat 2.6s ease-in-out infinite;
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-scene, .call-ring::before, .talk-dots i, .phone-cta-chip,
  .wipe-out, .wipe-in, .push-mail, .push-line { animation: none; }
  .scene-call { opacity: 1; }
  .push-mail, .push-line { opacity: 1; transform: none; }
}

/* ---------- カードグリッド ---------- */
.card-grid { display: grid; gap: 16px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
/* 統計カードはv5どおり常に2×2 */
.card-grid-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* お悩みカード: v5は薄ミント地・枠線/影なし */
.issue-card {
  background: var(--color-soft);
  border-radius: var(--rad);
  padding: 24px 18px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.issue-icon {
  width: 110px; height: 110px; object-fit: cover; border-radius: 50%;
}
.issue-card p { font-weight: 700; color: var(--color-ink); font-size: 15px; line-height: 1.8; }

/* カード上部・セクション内のイラスト(v5 image-slot相当) */
.card-illust {
  width: 100%; height: 140px; object-fit: cover;
  border-radius: 14px; margin-bottom: 16px;
}
.section-illust {
  display: block;
  width: 100%; max-width: 640px;
  height: clamp(160px, 28vw, 240px);
  object-fit: cover;
  border-radius: 16px;
  margin: 0 auto 16px;
}
.section-illust-wide { max-width: 640px; height: clamp(180px, 32vw, 280px); }

/* 白地カード */
.info-card {
  background: var(--color-white);
  border-radius: var(--rad);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}
.info-card h3, .info-card h4 { margin-bottom: 12px; font-size: 18px; font-weight: 900; }
.info-card p { font-size: 14px; line-height: 2; color: var(--color-text-soft); }
.info-card-title-accent { color: var(--color-primary); }
.info-card-center { text-align: center; }
.info-card-center p { text-align: left; }
.info-card-dark {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.92);
}
.info-card-dark h3 { color: var(--color-accent-soft); text-align: center; }
.info-card-dark p { color: rgba(255, 255, 255, 0.92); }
.info-card-dark strong { color: #fff; }

.check-list { margin-top: 14px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-soft);
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--color-primary);
  font-weight: 900;
}

/* 統計カード */
.stat-card {
  background: var(--color-white);
  border-radius: var(--rad);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.stat-label { font-size: 13px; font-weight: 700; color: var(--color-text-muted); }
.stat-value {
  margin-top: 8px;
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 900;
  color: var(--color-primary);
}
.stat-value span { font-size: 0.5em; color: var(--color-text); margin-left: 2px; }
.stats-source { text-align: center; font-size: 12px; color: var(--color-text-faint); line-height: 1.7; margin-top: -18px; }

/* 機能一覧カード: アイコン丸+横並びタイトル */
.feature-card {
  background: var(--color-white);
  border-radius: var(--rad);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
}
.feature-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-tint); flex-shrink: 0;
}
.feature-icon svg { stroke: var(--color-primary); }
.feature-card h4 { margin: 0; font-size: 16px; font-weight: 900; }
.feature-card p { font-size: 14px; line-height: 1.9; color: var(--color-text-soft); }
.soon-tag {
  display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700;
  background: var(--color-border); color: var(--color-text-muted);
  padding: 2px 8px; border-radius: 999px;
}

/* 構成要素カード(薄ミント地+数字バッジ) */
.element-card {
  background: var(--color-soft);
  border-radius: var(--rad);
  padding: 26px 22px;
  text-align: center;
}
.element-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-size: 18px; font-weight: 900; margin-bottom: 12px;
}
.element-card h4 { margin-bottom: 8px; font-size: 17px; font-weight: 900; }
.element-card p { font-size: 14px; line-height: 1.9; color: var(--color-text-soft); }

/* 安心カード(薄ミント地) */
.assure-card {
  background: var(--color-soft);
  border-radius: var(--rad);
  padding: 26px 22px;
  text-align: center;
}
.assure-card h4 { margin-bottom: 8px; font-size: 17px; font-weight: 900; }
.assure-card p { font-size: 14px; line-height: 1.9; color: var(--color-text-soft); }
.assure-icon { display: flex; justify-content: center; margin-bottom: 8px; }
.assure-icon svg { stroke: var(--color-primary); }
.sandbox-logo { width: 44px; height: 44px; object-fit: contain; margin: 0 auto 8px; }

/* 利用者の声 */
.voice-card {
  background: var(--color-white);
  border-radius: var(--rad);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 12px;
}
.voice-headline { font-size: 17px; font-weight: 900; line-height: 1.7; color: var(--color-ink); }
.voice-body { font-size: 14px; line-height: 2; color: var(--color-text-soft); flex: 1; }
.voice-footer { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.voice-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; background: var(--color-tint);
}
.voice-person { font-size: 13px; font-weight: 700; color: var(--color-primary); }

/* 料金カード */
.plan-card {
  background: var(--color-white);
  border-radius: var(--rad);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.plan-tag {
  display: inline-flex; align-items: center;
  min-height: 30px; padding: 2px 16px;
  background: var(--color-primary); color: #fff;
  font-weight: 900; font-size: 14px;
  border-radius: 999px; margin-bottom: 12px;
}
.plan-card p { font-size: 14px; line-height: 2; color: var(--color-text-soft); text-align: left; }

/* 導入ステップカード(薄ミント地) */
.step-card {
  background: var(--color-soft);
  border-radius: var(--rad);
  padding: 26px 22px;
  text-align: center;
}
.step-illust {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 12px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-accent); color: #fff;
  font-size: 18px; font-weight: 900; margin-bottom: 12px;
}
.step-card h4 { margin-bottom: 8px; font-size: 17px; font-weight: 900; }
.step-card p { font-size: 14px; line-height: 1.9; color: var(--color-text-soft); }

/* ---------- バナー(callout) ---------- */
.callout {
  border-radius: var(--rad);
  padding: clamp(28px, 5vw, 44px) 24px;
  text-align: center;
}
.callout-light { background: var(--color-tint); }
.callout-white { background: var(--color-white); box-shadow: var(--shadow-card); }
/* v5のバナー型callout: テキスト+イラストの横並び */
.callout-media {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 24px;
}
.callout-media-text { flex: 1 1 280px; }
.callout-media-text .callout-main:last-child { margin-bottom: 0; }
.callout-media-img {
  flex: 0 1 220px; height: 160px; object-fit: cover;
  border-radius: 16px;
}
.callout .eyebrow { margin-bottom: 6px; font-size: 14px; }
.callout-sub { font-size: 15px; line-height: 2; color: var(--color-text-soft); margin-bottom: 4px; }
.callout-main { font-size: clamp(17px, 3vw, 21px); font-weight: 900; color: var(--color-ink); line-height: 1.8; margin-bottom: 16px; }
.callout .btn { margin-top: 4px; }

.callout-dark {
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: var(--rad);
  padding: clamp(28px, 5vw, 44px) 24px;
  text-align: center;
}
.callout-dark-title { font-size: clamp(21px, 5.2vw, 32px); font-weight: 900; margin-bottom: 14px; line-height: 1.55; }
.callout-dark-body { font-size: 14px; line-height: 2; color: rgba(255, 255, 255, 0.85); max-width: 28em; margin: 0 auto; }

/* ---------- フロー図 ---------- */
.flow-diagram {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 18px;
  margin: 12px 0;
}
.flow-node-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 84px; padding: 14px 18px; border-radius: 999px;
  background: var(--color-white); box-shadow: var(--shadow-card);
  font-weight: 700; font-size: 14px; color: var(--color-ink);
}
.flow-node-badge-ai { background: var(--color-primary); color: #fff; }
.flow-arrow { font-size: 20px; color: var(--color-accent); }

/* ---------- 運営会社 ---------- */
.company-mark { display: block; margin: 0 auto; width: 180px; height: auto; }

/* ---------- フォーム ---------- */
#apply { background: var(--color-tint); }
.apply-form {
  background: transparent;
  display: flex; flex-direction: column; gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-weight: 700; font-size: 14px; color: var(--color-ink); }
.required {
  background: var(--color-accent); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; margin-left: 6px;
}
.apply-form input {
  min-height: 50px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 16px; font-size: 16px; font-family: inherit;
  color: var(--color-text); background: #fff;
}
.apply-form input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.apply-form .btn { min-height: 56px; }
.form-note { text-align: center; font-size: 12px; color: var(--color-text-faint); line-height: 1.7; }
.form-note-success { font-size: 16px; font-weight: 700; color: var(--color-ink); }
.form-error { font-size: 13px; font-weight: 700; color: #d1442a; }

/* ---------- FAQ ---------- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: var(--color-soft);
  border-radius: var(--rad);
  padding: 4px 20px;
}
.accordion-item summary {
  cursor: pointer; padding: 16px 0;
  font-size: 15px; font-weight: 700; color: var(--color-ink);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
/* 開閉できることが分かるようにシェブロンを置き、開いている間は上向きにする */
.accordion-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px; height: 9px;
  border: 0 solid var(--color-primary);
  border-width: 0 3px 3px 0;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.accordion-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) {
  .accordion-item summary::after { transition: none; }
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.accordion-item p { padding: 0 0 18px; font-size: 14px; line-height: 2; color: var(--color-text-soft); }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(36px, 6vw, 52px) 20px 24px;
}
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr 1fr 1.2fr; gap: 28px;
  padding: 0 0 24px;
}
.footer-brand { display: flex; flex-direction: row; align-items: baseline; gap: 10px; }
.footer-brand .brand-name { color: #fff; font-size: 20px; font-weight: 900; }
.footer-brand .brand-sub { color: var(--color-accent-soft); font-size: 12px; letter-spacing: 0.1em; }
.footer-col h5 { color: #fff; font-size: 14px; font-weight: 900; margin: 0 0 10px; }
.footer-col p { font-size: 14px; line-height: 2; margin-bottom: 8px; color: rgba(255, 255, 255, 0.75); }
.footer-col a {
  display: block; font-size: 14px; margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.75); text-decoration: none;
}
.footer-col a:hover { color: #fff; }
.footer-patent-row { display: flex; align-items: center; gap: 12px; }
.footer-patent-row p { font-size: 13px; line-height: 1.8; margin: 0; }
.sandbox-logo-footer {
  width: 44px; height: 44px; flex-shrink: 0; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 4px; margin: 0;
}
.footer-copyright {
  max-width: var(--container); margin: 0 auto;
  text-align: left; font-size: 13px; color: rgba(255, 255, 255, 0.6);
  padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---------- モバイル固定CTA ---------- */
.sticky-cta-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 20px rgba(31, 78, 76, 0.15);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.sticky-cta {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px;
  background: var(--color-accent); color: #fff;
  font-weight: 900; font-size: 16px;
  border-radius: 999px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(239, 138, 44, 0.35);
}
.sticky-cta:hover { background: var(--color-accent-dark); color: #fff; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 899px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 16px;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(31, 78, 76, 0.12);
    display: none;
  }
  .nav a { color: var(--color-ink); }
  .nav a:hover { color: var(--color-accent); }
  .nav.open { display: flex; }
  .nav a { min-height: 48px; font-size: 15px; border-bottom: 1px solid var(--color-border); padding: 0; }
  .nav-toggle { display: flex; }

  /* v5仕様: 背景写真は残し、CTAボタンは下部固定バーに一本化して非表示 */
  .hero-copy .btn,
  .hero-copy .hero-rise-cta { display: none; }
  .hero-art { position: static; display: grid; place-items: center; margin-top: 8px; } /* テキスト直下に詰める */
  .hero-phone-img { width: min(40vw, 150px); } /* カバー画像は従来の半分 */
  .phone-frame { width: 200px; height: 400px; } /* アニメ側のサイズは維持 */
  .hero-copy h1 { white-space: normal; }

  /* v5のモバイル横スワイプカルーセル */
  .card-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 4px 10vw 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  .card-grid::-webkit-scrollbar { display: none; }
  .card-grid > * { flex: 0 0 72vw; min-width: 72vw; scroll-snap-align: center; scroll-snap-stop: always; }
  /* v5のカルーセル矢印(左右のsticky配置シェブロン) */
  .card-grid::before, .card-grid::after {
    content: "";
    position: sticky; z-index: 3;
    flex: 0 0 14px; min-width: 14px; height: 14px;
    align-self: center;
    border: 0 solid var(--color-primary);
    opacity: 0.6;
    pointer-events: none;
  }
  .card-grid::before { left: 2px; border-width: 0 0 3px 3px; transform: rotate(45deg); margin-right: -14px; }
  .card-grid::after { right: 2px; border-width: 3px 3px 0 0; transform: rotate(45deg); margin-left: -14px; }
  /* これ以上スライドできない側は薄くする(クラスはmain.jsがスクロール位置に応じて付け外しする) */
  .card-grid::before, .card-grid::after { transition: opacity 0.2s ease; }
  .card-grid.no-prev::before { opacity: 0.15; }
  .card-grid.no-next::after { opacity: 0.15; }
  /* 統計2×2はモバイルでもグリッド維持(矢印なし) */
  .card-grid-stats { display: grid; grid-template-columns: repeat(2, 1fr); padding: 0; overflow: visible; }
  .card-grid-stats > * { min-width: 0; }
  .card-grid-stats::before, .card-grid-stats::after { content: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .sticky-cta-bar { display: flex; }
  .site-footer { padding-bottom: 108px; }

  h1, .hero h1 { animation: none !important; }
}

@media (min-width: 900px) {
  .sticky-cta-bar { display: none !important; }
  /* PC: セクション区切り線〜タイトル間の余白を半分に */
  .section-inner { padding-top: 32px; }
}
