/* ============================================================
   THRIVE — AI ACTIVATION SERVICE / Landing Page
   Design system: warm-adjusted Vodafone analysis (DESIGN.md)
   Single red accent · ink type · warm neutral surfaces
   ============================================================ */

:root {
  /* ---- Color ---- */
  --red: #e60000;
  --red-ink: #b80707;
  --ink: #25282b;
  --ink-soft: #3c4045;
  --body: #6c6a64;
  --mute: #a8a39a;
  --canvas: #f4f0e9;       /* warm off-white page */
  --paper: #fbf9f5;        /* lighter warm */
  --card: #ffffff;
  --soft: #ebe6dd;         /* warm soft fill */
  --line: rgba(37, 40, 43, 0.12);
  --line-soft: rgba(37, 40, 43, 0.07);
  --on-dark: #f4f0e9;
  --on-dark-mute: rgba(244, 240, 233, 0.6);

  /* ---- Type ---- */
  --latin: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --sans: var(--jp);

  /* ---- Metrics ---- */
  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --r-card: 8px;
  --r-img: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.7;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(80px, 13vw, 168px); position: relative; }
.section--tight { padding-block: clamp(64px, 9vw, 112px); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--latin);
  font-weight: 800;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--red);
  display: inline-block;
}
.eyebrow--ink { color: var(--ink); }
.eyebrow--ink::before { background: var(--ink); }
.eyebrow--light { color: var(--on-dark); }
.eyebrow--light::before { background: var(--red); }
.eyebrow--plain::before { display: none; }

.idx {
  font-family: var(--latin);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--mute);
}

h1, h2, h3 { font-weight: 900; line-height: 1.28; letter-spacing: 0.005em; }

.h-hero {
  font-size: clamp(34px, 6.4vw, 78px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0.002em;
}
.h-sec {
  font-size: clamp(27px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.3;
}
.h-sub {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.45;
}
.lead {
  font-size: clamp(15px, 1.35vw, 18px);
  color: var(--body);
  line-height: 1.95;
  font-weight: 500;
}
.kicker-en {
  font-family: var(--latin);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.red { color: var(--red); }
.muted { color: var(--body); }

/* highlight underline behind key words */
.mark {
  background: linear-gradient(transparent 62%, rgba(230,0,0,0.16) 62%);
  padding: 0 0.04em;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--jp);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 14px 30px;
  border-radius: 60px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .35s var(--ease);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.btn svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--red { background: var(--red); color: #fff; border-color: var(--red); }
.btn--red:hover { background: var(--red-ink); border-color: var(--red-ink); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(230,0,0,0.5); }
.btn--ink { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.btn--ink:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(37,40,43,0.55); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(37,40,43,0.28); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(0,0,0,0.5); }
.btn--lg { padding: 17px 38px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.scrolled {
  background: rgba(246, 243, 238, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand__logo { height: 36px; width: auto; display: block; }
.brand__logo--footer { height: 40px; }
.brand__mark {
  font-family: var(--latin); font-weight: 900; font-size: 21px; letter-spacing: -0.02em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px;
}
.brand__dot { width: 9px; height: 9px; background: var(--red); border-radius: 2px; display: inline-block; transform: translateY(-1px); }
.brand__sub { font-size: 10.5px; letter-spacing: 0.16em; color: var(--mute); font-family: var(--latin); font-weight: 700; text-transform: uppercase; }
.nav.on-hero .brand__mark, .nav.on-hero .nav__link { color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); position: relative; padding-block: 4px;
  transition: color .2s;
}
.nav__link::after { content:""; position:absolute; left:0; bottom:-1px; width:0; height:1.5px; background: var(--red); transition: width .3s var(--ease); }
.nav__link:hover { color: var(--red); }
.nav__link:hover::after { width: 100%; }
.nav__cta { margin-left: 6px; }
.nav__burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-block: 120px 90px; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(244,240,233,0.97) 0%, rgba(244,240,233,0.9) 32%, rgba(244,240,233,0.45) 58%, rgba(244,240,233,0.08) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 760px; }
.hero h1 { margin: 26px 0 0; }
.hero__lead { margin-top: 26px; max-width: 520px; }
.hero__cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__sign { margin-top: 56px; display: flex; align-items: center; gap: 14px; }
.hero__sign-line { width: 40px; height: 1.5px; background: var(--ink); opacity: .35; }
.hero__sign span { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-soft); }
.hero__scroll {
  position: absolute; left: var(--gut); bottom: 30px; z-index: 2;
  font-family: var(--latin); font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute);
  display: flex; align-items: center; gap: 10px;
}
.hero__scroll i { width: 30px; height: 1px; background: var(--mute); display: inline-block; position: relative; overflow: hidden; }
.hero__scroll i::after { content:""; position:absolute; inset:0; width: 12px; background: var(--red); animation: scrollline 2.4s var(--ease) infinite; }
@keyframes scrollline { 0%{transform:translateX(-14px)} 60%,100%{transform:translateX(34px)} }

/* ---------- Section header ---------- */
.sec-head { max-width: 880px; }
.sec-head .h-sec { margin-top: 20px; }
.sec-head .lead { margin-top: 22px; max-width: 720px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

/* number tag */
.sec-no { font-family: var(--latin); font-weight: 800; font-size: 13px; color: var(--mute); letter-spacing: 0.1em; }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; margin-top: 56px; }
.svc {
  background: var(--card); padding: 34px 30px 38px; position: relative; min-height: 230px;
  display: flex; flex-direction: column; transition: background .3s;
}
.svc:hover { background: var(--paper); }
.svc__no { font-family: var(--latin); font-weight: 800; font-size: 12px; color: var(--mute); letter-spacing: 0.1em; }
.svc__icon { width: 30px; height: 30px; margin: 4px 0 20px; color: var(--ink); }
.svc__icon svg { width: 100%; height: 100%; }
.svc h3 { font-size: 19px; font-weight: 900; line-height: 1.45; }
.svc p { font-size: 14px; color: var(--body); margin-top: 12px; line-height: 1.85; }
.svc__tag {
  margin-top: auto; padding-top: 22px;
  font-family: var(--latin); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
}
.svc--lead { background: var(--ink); color: var(--on-dark); }
.svc--lead:hover { background: #1d2023; }
.svc--lead .svc__no, .svc--lead .svc__tag { color: var(--on-dark-mute); }
.svc--lead .svc__icon { color: var(--red); }
.svc--lead p { color: var(--on-dark-mute); }
.svc--lead .pill-mini { display:inline-block; margin-top:14px; font-family:var(--latin); font-weight:700; font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:#fff; border:1px solid rgba(255,255,255,.3); border-radius:40px; padding:4px 11px; }

/* ---------- Dark divider band ---------- */
.band-dark { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.band-dark .h-sec { color: var(--on-dark); }
.band-dark .lead { color: var(--on-dark-mute); }
.band-ghostnum {
  position: absolute; right: -2vw; top: 50%; transform: translateY(-50%);
  font-family: var(--latin); font-weight: 900; font-size: clamp(180px, 30vw, 420px); line-height: .8;
  color: rgba(255,255,255,0.035); pointer-events: none; user-select: none; letter-spacing: -0.03em;
}
.band-dark .band-meta { display:flex; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.band-dark .band-meta div { }
.band-dark .band-meta dt { font-family: var(--latin); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.band-dark .band-meta dd { font-size: 14px; color: var(--on-dark); margin-top: 6px; font-weight: 500; }

/* ---------- Problem cards ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--media-right { }
.figure { border-radius: var(--r-img); overflow: hidden; position: relative; background: var(--soft); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--tall { aspect-ratio: 4/5; }
.figure--wide { aspect-ratio: 16/10; }
.figure__cap {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--latin); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: rgba(37,40,43,.55); backdrop-filter: blur(4px); padding: 5px 11px; border-radius: 30px;
}

.prob-list { display: grid; gap: 14px; margin-top: 14px; }
.prob {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 24px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.prob:hover { transform: translateX(4px); border-color: rgba(230,0,0,.4); box-shadow: 0 18px 40px -28px rgba(37,40,43,.5); }
.prob__no { font-family: var(--latin); font-weight: 800; font-size: 14px; color: var(--red); padding-top: 2px; min-width: 22px; }
.prob h3 { font-size: 16.5px; font-weight: 800; line-height: 1.5; }
.prob p { font-size: 13.5px; color: var(--body); margin-top: 7px; line-height: 1.8; }

/* ---------- Comparison table ---------- */
.compare { margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--card); }
.compare__row { display: grid; grid-template-columns: 0.9fr 1.1fr 1.1fr; border-top: 1px solid var(--line); }
.compare__row:first-child { border-top: none; }
.compare__cell { padding: 20px 24px; font-size: 14px; line-height: 1.6; display: flex; align-items: center; }
.compare__cell--label { font-weight: 700; color: var(--ink-soft); background: var(--soft); font-size: 13.5px; }
.compare__cell--old { color: var(--body); border-left: 1px solid var(--line); }
.compare__cell--new { color: var(--ink); font-weight: 700; border-left: 1px solid var(--line); background: rgba(230,0,0,0.035); }
.compare__head .compare__cell { font-family: var(--latin); font-weight: 800; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding-block: 16px; }
.compare__head .compare__cell--new { color: var(--red); }
.compare__head .compare__cell--old { color: var(--mute); }
.compare__head .compare__cell--label { background: var(--ink); color: var(--on-dark); }

/* interactive search demo */
.demo {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(22px, 3vw, 34px); margin-top: 30px;
}
/* Demo label */
.demo__label { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 14px 18px; background: rgba(230,0,0,.04); border: 1.5px solid rgba(230,0,0,.15); border-radius: 12px; flex-wrap: wrap; }
.demo__badge { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; font-family: var(--latin); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 18px 8px 14px; border-radius: 40px; flex: none; box-shadow: 0 4px 14px -4px rgba(230,0,0,.45); }
.demo__dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; flex: none; animation: pulse-dot 1.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.demo__hint { font-size: 13.5px; color: var(--body); line-height: 1.6; }
.demo__hint b { color: var(--ink); }

/* Demo bar — toggle 左・検索ワード 右 */
.demo__bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.demo__q { font-size: 14px; font-weight: 700; color: var(--ink-soft); margin-right: 4px; margin-left: auto; }
.demo__chip {
  font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 40px; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; transition: all .25s var(--ease); color: var(--ink-soft); font-family: var(--jp);
}
.demo__chip:hover { border-color: var(--ink); }
.demo__chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.demo__toggle { display: inline-flex; background: var(--soft); border-radius: 40px; padding: 4px; }
.demo__toggle button { font-family: var(--jp); font-weight: 700; font-size: 12px; letter-spacing: .02em; padding: 8px 18px; border: none; background: transparent; border-radius: 30px; cursor: pointer; color: var(--body); transition: all .25s; }
.demo__toggle button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -4px rgba(0,0,0,.3); }
.demo__toggle button.on.kw { color: var(--body); }
.demo__results { margin-top: 24px; min-height: 156px; }
.demo__msg { font-size: 13px; color: var(--body); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.demo__msg b { color: var(--ink); }
.demo__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.demo__item { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: var(--paper); opacity: 0; transform: translateY(8px); animation: pop .4s var(--ease) forwards; }
.demo__item .swatch { height: 64px; border-radius: 5px; margin-bottom: 10px; }
.demo__item .swatch-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--soft); border-radius: 5px; margin-bottom: 10px; display: block; }
.demo__item .name { font-size: 12.5px; font-weight: 700; }
.demo__item .meta { font-size: 11px; color: var(--mute); margin-top: 3px; }
@keyframes pop { to { opacity: 1; transform: none; } }
.demo__loss { background: rgba(230,0,0,0.04); border: 1.5px solid rgba(230,0,0,0.2); border-radius: var(--r-card); padding: 28px 28px 32px; }
.demo__loss-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.demo__loss-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--red); color: #fff; font-family: var(--latin); font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 40px; flex: none; }
.demo__loss-query { font-size: 12.5px; color: var(--body); }
.demo__loss-body { display: flex; align-items: center; gap: 32px; }
.demo__loss-num { font-family: var(--latin); font-weight: 900; font-size: clamp(64px, 10vw, 96px); color: var(--red); line-height: 1; letter-spacing: -0.03em; flex: none; }
.demo__loss-unit { font-size: 0.36em; font-weight: 700; color: var(--red); margin-left: 4px; vertical-align: baseline; }
.demo__loss-copy { }
.demo__loss-main { font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.5; }
.demo__loss-sub { font-size: 13.5px; color: var(--body); margin-top: 8px; line-height: 1.8; }
.demo__loss-sub b { color: var(--red); font-weight: 800; }
@media (max-width: 600px) {
  .demo__loss-body { flex-direction: column; gap: 12px; align-items: flex-start; }
  /* ---- スマホ：チップ行のレイアウト修正 ---- */
  .demo__label { gap: 8px; padding: 12px 14px; }
  .demo__toggle { flex-basis: 100%; }                     /* トグルを独立行（先頭） */
  .demo__q { flex-basis: 100%; margin-left: 0; }          /* 「検索ワード：」も独立行 */
  .demo__chip { font-size: 12px; padding: 7px 12px; }     /* チップを小さく */
}

/* ---------- Use cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.case { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.case:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(37,40,43,.45); }
.case__img { aspect-ratio: 3/2; overflow: hidden; }
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case:hover .case__img img { transform: scale(1.05); }
.case__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.case__tag { font-family: var(--latin); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.case h3 { font-size: 18px; font-weight: 900; margin-top: 12px; line-height: 1.5; }
.case p { font-size: 13.5px; color: var(--body); margin-top: 12px; line-height: 1.85; }

/* ---------- Strengths + concerns (slide 7) ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); margin-top: 52px; align-items: start; }
.col-label { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.col-label .num { font-family: var(--latin); font-weight: 900; font-size: 13px; color: var(--red); }
.col-label h3 { font-size: 19px; font-weight: 900; }

.strength { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline; }
.strength:first-of-type { border-top: none; }
.strength dt { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.strength dd { font-size: 13.5px; color: var(--body); line-height: 1.8; }

.faq { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--card); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:first-child { border-top: none; }
.faq__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; gap: 14px; font-family: var(--jp); }
.faq__q .qmark { font-family: var(--latin); font-weight: 900; font-size: 14px; color: var(--red); flex: none; }
.faq__q .qtext { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.5; flex: 1; }
.faq__q .plus { flex: none; width: 20px; height: 20px; position: relative; }
.faq__q .plus::before, .faq__q .plus::after { content:""; position:absolute; background: var(--ink); transition: transform .35s var(--ease), opacity .3s; }
.faq__q .plus::before { left: 0; top: 9px; width: 20px; height: 2px; }
.faq__q .plus::after { left: 9px; top: 0; width: 2px; height: 20px; }
.faq__item.open .plus::after { transform: rotate(90deg); opacity: 0; }
.faq__item.open .plus::before { background: var(--red); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a > div { padding: 0 22px 22px 50px; font-size: 13.5px; color: var(--body); line-height: 1.85; }

/* ---------- Mail flow (slide 9) ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px 28px 32px; position: relative; }
.step__no { font-family: var(--latin); font-weight: 900; font-size: 15px; color: #fff; background: var(--red); width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 17px; font-weight: 900; margin-top: 22px; }
.step p { font-size: 13.5px; color: var(--body); margin-top: 10px; line-height: 1.8; }
.step__arrow { position: absolute; right: -16px; top: 50%; transform: translateY(-50%); color: var(--mute); z-index: 2; }
.step__arrow svg { width: 22px; height: 22px; }
.flow-note { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); background: var(--soft); padding: 12px 20px; border-radius: 40px; font-weight: 600; }
.flow-note svg { width: 16px; height: 16px; color: var(--red); flex: none; }

/* gmail mock */
.mailmock { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-img); overflow: hidden; box-shadow: 0 40px 80px -50px rgba(37,40,43,.6); }
.mailmock__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.mailmock__bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.mailmock__bar .dot.r { background: #ff5f57; } .mailmock__bar .dot.y { background: #febc2e; } .mailmock__bar .dot.g { background: #28c840; }
.mailmock__bar .url { margin-left: 12px; font-family: var(--latin); font-size: 11.5px; color: var(--mute); font-weight: 600; }
.mailmock__bar .badge { margin-left: auto; font-family: var(--latin); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); border: 1px solid rgba(230,0,0,.35); border-radius: 30px; padding: 3px 9px; }
.mailmock__body { padding: 22px 24px; }
.mailmock__received { font-size: 12px; color: var(--mute); font-weight: 600; }
.mailmock__subj { font-size: 15px; font-weight: 800; margin: 6px 0 14px; }
.mailmock__quote { font-size: 13px; color: var(--body); line-height: 1.8; border-left: 2px solid var(--line); padding-left: 14px; }
.mailmock__draft { margin-top: 18px; border: 1px solid rgba(230,0,0,.3); border-radius: 8px; background: rgba(230,0,0,0.03); padding: 16px 18px; }
.mailmock__draft .dl { display: flex; align-items: center; gap: 8px; font-family: var(--latin); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.mailmock__draft .dl .live { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.6s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }
.mailmock__type { margin-top: 12px; font-size: 13.5px; color: var(--ink); line-height: 1.85; min-height: 92px; }
.cursor-bar { display: inline-block; width: 2px; height: 1.05em; background: var(--red); transform: translateY(2px); animation: blink .9s steps(1) infinite; }
.mailmock__actions { margin-top: 14px; display: flex; gap: 9px; }
.mailmock__actions .b { font-family: var(--jp); font-size: 12px; font-weight: 700; padding: 8px 16px; border-radius: 40px; }
.mailmock__actions .b.send { background: var(--ink); color: #fff; }
.mailmock__actions .b.edit { background: var(--soft); color: var(--ink-soft); }

/* ---------- Cost (slide 10) ---------- */
.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.cost { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 38px 32px 40px; text-align: left; position: relative; overflow: hidden; }
.cost--hero { background: var(--ink); color: var(--on-dark); }
.cost__label { font-family: var(--latin); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.cost--hero .cost__label { color: var(--red); }
.cost__num { font-family: var(--latin); font-weight: 900; line-height: 1; margin-top: 18px; letter-spacing: -0.02em; }
.cost__num .big { font-size: clamp(46px, 6vw, 68px); }
.cost__num .unit { font-size: 19px; font-weight: 700; color: var(--body); margin-left: 6px; }
.cost--hero .cost__num .big { color: #fff; }
.cost--hero .cost__num .unit { color: var(--on-dark-mute); }
.cost__sub { font-size: 13px; color: var(--body); margin-top: 14px; line-height: 1.7; }
.cost--hero .cost__sub { color: var(--on-dark-mute); }
.cost-foot { margin-top: 26px; font-size: 13px; color: var(--body); }

/* ---------- Why us (slide 11) ---------- */
.why-list { display: grid; gap: 0; margin-top: 8px; }
.why { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
.why:first-child { border-top: none; }
.why__check { width: 30px; height: 30px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; flex: none; }
.why__check svg { width: 15px; height: 15px; color: #fff; }
.why p { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.5; }

/* ---------- Next step / CTA (slide 12) ---------- */
.next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px; }
.track { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 36px 34px 40px; color: var(--ink); }
.track__head { display: flex; align-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.track__icon { width: 40px; height: 40px; border-radius: 9px; background: var(--soft); display: flex; align-items: center; justify-content: center; flex: none; }
.track__icon svg { width: 20px; height: 20px; color: var(--red); }
.track__head h3 { font-size: 17px; font-weight: 900; line-height: 1.4; color: var(--ink); }
.track__steps { counter-reset: t; margin-top: 24px; display: grid; gap: 18px; }
.track__step { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.track__step .n { font-family: var(--latin); font-weight: 800; font-size: 12px; color: #fff; background: var(--ink); width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.track__step p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.track__lead { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 26px; font-family: var(--latin); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.track__lead .big { font-size: 22px; color: var(--ink); }

/* CTA band */
.cta-band { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.cta-band .figure-bleed { position: absolute; inset: 0; opacity: .16; }
.cta-band .figure-bleed img { width: 100%; height: 100%; object-fit: cover; }
.cta-inner { position: relative; z-index: 2; text-align: center; max-width: 760px; margin-inline: auto; }
.cta-inner .h-sec { color: #fff; }
.cta-inner .lead { color: var(--on-dark-mute); margin: 22px auto 0; }
.cta-actions { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* contact form */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact__aside h3 { font-size: clamp(24px,3vw,34px); font-weight: 900; line-height: 1.4; }
.contact__aside .lead { margin-top: 20px; }
.contact__points { margin-top: 30px; display: grid; gap: 14px; }
.contact__points li { list-style: none; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.contact__points li svg { width: 16px; height: 16px; color: var(--red); flex: none; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(26px, 3vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.field label .req { color: var(--red); margin-left: 4px; }
.field label .opt { color: var(--mute); margin-left: 4px; font-weight: 400; }
.field input:not([type="checkbox"]), .field textarea, .field select {
  width: 100%; font-family: var(--jp); font-size: 14px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field input:not([type="checkbox"]):focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(230,0,0,.1); }
.field textarea { resize: vertical; min-height: 180px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__interest { display: flex; gap: 10px; flex-wrap: wrap; }
.form__interest label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 40px; padding: 9px 16px; cursor: pointer; transition: all .2s; margin: 0; }
.form__interest input { width: auto; }
.form__interest label:has(input:checked) { border-color: var(--red); background: rgba(230,0,0,.05); color: var(--red); }
.form__submit { width: 100%; justify-content: center; margin-top: 6px; }
.form__note { font-size: 11.5px; color: var(--mute); margin-top: 14px; text-align: center; }
.form__note a { color: var(--mute); text-decoration: underline; }
.form__note a:hover { color: var(--ink); }
/* reCAPTCHA バッジを非表示（Google ポリシーに基づき本文内に開示テキストを掲載） */
.grecaptcha-badge { visibility: hidden !important; }
.form__done-wrap { padding: 0; }
.form__done { text-align: center; padding: 30px 10px; }
.form__done .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.form__done .ic svg { width: 26px; height: 26px; color: #fff; }
.form__done h4 { font-size: 20px; font-weight: 900; }
.form__done p { font-size: 13.5px; color: var(--body); margin-top: 10px; }

/* Confirm panel */
.form--confirm { padding: clamp(24px, 3vw, 38px); }
.confirm__heading { font-size: 17px; font-weight: 900; color: var(--ink); margin-bottom: 6px; }
.confirm__lead { font-size: 13px; color: var(--body); margin-bottom: 22px; }
.confirm__dl { border-top: 1px solid var(--line); margin-bottom: 24px; }
.confirm__row { display: grid; grid-template-columns: 9em 1fr; gap: 0 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.confirm__row dt { color: var(--mute); font-weight: 600; padding-top: 1px; }
.confirm__row dd { color: var(--ink); word-break: break-all; line-height: 1.65; }
.confirm__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.confirm__actions .btn--ghost { flex: 0 0 auto; }
.confirm__actions .btn--red { flex: 1 1 auto; justify-content: center; }
@media (max-width: 480px) {
  .confirm__row { grid-template-columns: 1fr; gap: 3px; }
  .confirm__row dt { font-size: 11.5px; }
  .confirm__actions { flex-direction: column-reverse; }
  .confirm__actions .btn--ghost, .confirm__actions .btn--red { width: 100%; justify-content: center; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark); padding-top: 72px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand__mark { color: #fff; }
.footer__tag { font-size: 13.5px; color: var(--on-dark-mute); margin-top: 20px; max-width: 320px; line-height: 1.8; }
.footer__col h5 { font-family: var(--latin); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-mute); margin-bottom: 18px; }
.footer__col ul { list-style: none; display: grid; gap: 11px; }
.footer__col a, .footer__col li { font-size: 13.5px; color: var(--on-dark); opacity: .82; transition: opacity .2s, color .2s; }
.footer__col a:hover { opacity: 1; color: var(--red); }
.footer__col .btn--light { color: var(--ink); opacity: 1; }
.footer__col .btn--light:hover { color: var(--ink); }
.footer__meta { display: grid; gap: 9px; }
.footer__meta div { display: flex; gap: 12px; font-size: 13px; }
.footer__meta dt { color: var(--on-dark-mute); min-width: 78px; }
.footer__meta dd { color: var(--on-dark); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-block: 26px; flex-wrap: wrap; gap: 12px; }
.footer__bottom small { font-family: var(--latin); font-size: 11.5px; color: var(--on-dark-mute); letter-spacing: .03em; }
.trademark-note { padding-block: 20px 32px; border-top: 1px solid var(--line-soft); }
.trademark-note small { font-size: 11px; color: var(--mute); line-height: 1.8; display: block; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .cases, .flow, .cost-grid { grid-template-columns: 1fr; }
  .step__arrow { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .two-col, .next-grid, .contact { grid-template-columns: 1fr; }
  .band-ghostnum { font-size: 240px; opacity: .5; }
}
@media (max-width: 760px) {
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: var(--ink); flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; padding: 40px; transform: translateX(100%); transition: transform .5s var(--ease); z-index: 120; }
  .nav__links.open { transform: none; }
  .nav__links .nav__link { color: var(--on-dark); font-size: 18px; }
  .nav__cta { margin-left: 0; }
  .nav__burger { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; z-index: 130; padding: 6px; }
  .nav__burger span { width: 24px; height: 2px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
  .nav__burger.open span { background: #fff; }
  .nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .svc-grid { grid-template-columns: 1fr; }
  .compare__row { grid-template-columns: 1fr; }
  .compare__cell { border-left: none !important; }
  .compare__cell--label { border-top: 1px solid var(--line); }
  .demo__grid { grid-template-columns: repeat(2, 1fr); }
  .strength { grid-template-columns: 1fr; gap: 6px; }
  .field--row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(244,240,233,0.82) 0%, rgba(244,240,233,0.7) 45%, rgba(244,240,233,0.55) 100%); }
  .hero__bg img { object-position: 70% center; }
}
