:root {
  --fluid-w-min: 375px;
  --fluid-w-max: 1280px;
  --fluid-w-base: 500px;
  --fluid-w-l: 500px;
  --fluid-space-min: 16px;
  --fluid-space-max: 64px;

  --fluid-space-1: clamp(4px, 0.5vw, 8px);
  --fluid-space-2: clamp(8px, 1vw, 16px);
  --fluid-space-3: clamp(12px, 2vw, 24px);

  --page-gutter: clamp(
    var(--fluid-space-min),
    calc(
      var(--fluid-space-min) + (100vw - var(--fluid-w-min)) *
        (var(--fluid-space-max) - var(--fluid-space-min)) /
        (var(--fluid-w-max) - var(--fluid-w-min))
    ),
    var(--fluid-space-max)
  );

  /* ---- ブランド・アクセント ---- */
  --primary: #21b7b7;
  --accent: #26d1d3;
  --step-label: #1dbdc0;
  --marker-rgb: 255 236 104;
  --underline-orange: #fca841;
  --cta-from: #ff8503;
  --cta-to: #ff7403;
  --on-accent: #fff;
  --shine: rgb(255 255 255 / 60%);
  --badge: #305758;

  /* ---- ヒーロー ---- */
  --hero-bg: #28a3eb;
  --hero-grad-from: #25a5ee;
  --hero-grad-to: #b9e2fc;
  --hero-overlay: #059eff;
  --hero-shade: rgb(2 52 100 / 42%);
  --mv-ghost: rgb(255 255 255 / 20%);
  --mv-ghost-end: rgb(255 255 255 / 0%);
  --mv-ghost-2: var(--mv-ghost);
  --mv-ghost-2-end: var(--mv-ghost-end);
  --mv-cut: rgb(255 255 255 / 12%);
  --mv-cut-end: rgb(255 255 255 / 0%);
  --mv-cut-fade: 40cqw;
  --mv-lead: #fff;
  --mv-text: #e2edf5;
  --mv-title-top: var(--mv-text);
  --mv-title-bottom: var(--mv-text);
  --form-head-bg: #0066d3;
  --form-head-from: oklch(64% 0.106 197);
  --form-head-to: oklch(78.3% 0.128 196);

  /* ---- ニュートラル ---- */
  --bg: rgb(240, 244, 245);
  --surface: #fff;
  --text-main: #334746;
  --text-dark: #1a3f3f;
  --text-muted: #477171;
  --line: rgb(26 63 63 / 10%);
  --shadow: rgb(26 63 63 / 8%);
  --shadow-pill: rgb(26 63 63 / 10%);
  --cta-shadow: rgb(26 63 63 / 28%);

  --glass-bg: rgb(255 255 255 / 80%);
  --glass-bg-form: #fff;
  --glass-bg-logo: var(--glass-bg);
  --glass-border: rgb(255 255 255 / 60%);
  --glass-highlight: inset 0 1px 0 rgb(255 255 255 / 80%);
  --glass-highlight-form: inset 0 1px 0 rgb(255 255 255 / 45%);
  --glass-shadow: 0 4px 16px rgb(26 63 63 / 12%);
  --glass-shadow-form: 0 6px 20px rgb(13 92 92 / 22%);

  --ff-heading: "LINE Seed JP", sans-serif;
  --fw-heading: 700;
  --ff-body:
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans", Arial, "Hiragino Sans",
    "Noto Sans JP", sans-serif;
  --fw-body: 500;
  --fw-body-bold: 700;
  --fs-s: clamp(12px, 1vw, 14px);
  --fs-base: clamp(14px, 1.2vw, 16px);
  --fs-l: clamp(16px, 1.35vw, 18px);
  --fs-xl: clamp(20px, 1.8vw, 24px);
  --fs-2xl: clamp(24px, 2.5vw, 32px);
}

@media (min-width: 768px) {
  :root {
    --fluid-w-base: min(640px, calc(100% - var(--page-gutter) * 2));
    --fluid-w-l: min(640px, calc(100% - var(--page-gutter) * 2));
  }
}

@media (min-width: 1000px) {
  :root {
    --fluid-w-base: 800px;
    --fluid-w-l: 1080px;
  }
}

/* ===== Reset ===== */
*,
::before,
::after {
  box-sizing: border-box;
}

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

body,
h1,
h2,
h3,
p,
figure {
  margin: 0;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--ff-body);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: var(--fw-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

picture {
  display: block;
}

.u-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: inherit;
}

/* ===== Header ===== */
.header,
.header * {
  box-sizing: border-box;
}

.header {
  position: absolute;
  top: min(var(--fluid-space-3), 20px);
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--fluid-w-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.header__logo {
  height: auto;
  background-color: var(--glass-bg-logo);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  border: 0.5px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  width: min(300px, 80cqw);
  padding: 16px 20px;
}

.header__logo--dark {
  display: none;
}

@media (min-width: 768px) {
  .header {
    justify-content: space-between;
  }
  .header__logo {
    width: 300px;
    padding: 14px 18px;
  }
}

/* ===== ヒーロー（メインビジュアル＋フォーム） ===== */
.l-hero {
  /* ---- チューニング値 ---- */
  --peek: 56px;
  --mv-min: 440px;
  --mv-max: 700px;
  --photo-cap: 1.3;
  --year-y: 0.25;
  --year-h: 21cqw;
  --year-gap: 19cqw;
  --year-angle: 20deg;

  /* ---- 導出値 ---- */
  --mv-h: clamp(var(--mv-min), calc(85 * var(--svh, 1svh) - var(--peek)), var(--mv-max));
  --photo-h: min(var(--mv-h), calc(var(--photo-cap) * 100cqw));
  --u: min(calc(100cqw / 750), 0.7px);

  position: relative;
  overflow: clip;
  container-type: inline-size;
  /* isolation: isolate; */
  background: var(--hero-bg);
  background-image: linear-gradient(to right bottom, var(--hero-grad-from), var(--hero-grad-to));
}

.l-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to left bottom, transparent 50%, var(--hero-overlay));
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.l-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch' result='noise'/%3E%3CfeColorMatrix type='saturate' values='0' in='noise'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 400px 400px;
  /* mix-blend-mode: screen; */
  background-color: transparent;
  z-index: 3;
  pointer-events: none;
  user-select: none;
  opacity: 0.1;
}

/* ---- メインビジュアル本体 ---- */
.p-mv {
  position: relative;
  width: 100%;
  height: var(--mv-h);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  touch-action: none;
}

/* ---- 背景の年号 ---- */
.p-mv__cut {
  position: absolute;
  top: calc(var(--year-y) * var(--mv-h));
  left: 50%;
  width: 300cqw;
  height: 400%;
  translate: 0 -50%;
  transform-origin: 0 50%;
  rotate: var(--year-angle);
  z-index: 0;
  background-image: linear-gradient(to right, var(--mv-cut), var(--mv-cut-end) var(--mv-cut-fade));
  mix-blend-mode: overlay;
}

.p-mv__year {
  position: absolute;
  top: calc(var(--year-y) * var(--mv-h));
  left: 50%;
  display: flex;
  gap: var(--year-gap);
  margin: 0;
  translate: -50% -50%;
  z-index: 0;
}

.p-mv__year svg {
  display: block;
  height: var(--year-h);
  aspect-ratio: 80 / 50;
}

#year-grad-27 stop:first-child {
  stop-color: var(--mv-ghost);
}

#year-grad-27 stop:last-child {
  stop-color: var(--mv-ghost-end);
}

#year-grad-28 stop:first-child {
  stop-color: var(--mv-ghost-2);
}

#year-grad-28 stop:last-child {
  stop-color: var(--mv-ghost-2-end);
}

/* ---- 写真 ---- */
.p-mv__photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: var(--photo-h);
  aspect-ratio: 1440 / 807;
  translate: -50% 0;
  z-index: 1;
}

.p-mv__photo-layer {
  position: absolute;
  inset: 10% 0% 5%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 100%;
}

.p-mv__photo-layer--a {
  background-image: image-set(
    url("./assets/img/hero-pc.avif") type("image/avif"),
    url("./assets/img/hero-pc.png") type("image/png")
  );
}

.p-mv__photo-layer--b {
  opacity: 0;
  background-image: image-set(
    url("./assets/img/hero-pc-2.avif") type("image/avif"),
    url("./assets/img/hero-pc-2.png") type("image/png")
  );
}

/* ---- 下端スクリム ---- */
.p-mv__scrim {
  position: absolute;
  right: 0;
  left: 0;
  top: calc(0.54 * var(--mv-h));
  height: calc(0.46 * var(--mv-h) + 90px);
  z-index: 3;
  pointer-events: none;
  background-image: linear-gradient(
    to bottom,
    transparent,
    var(--hero-shade) calc(100% - 90px),
    transparent
  );
}

/* ---- コピー ---- */
.p-mv__copy {
  position: absolute;
  bottom: calc(80 * var(--u));
  left: 50%;
  translate: -50% 0;
  z-index: 4;
  text-align: center;
}

.p-mv__lead,
.p-mv__title {
  position: relative;
  margin: 0;
  font-family: var(--ff-heading);
  font-weight: var(--fw-heading);
  line-height: 1;
  white-space: nowrap;
}

.p-mv__lead {
  display: inline-block;
  margin-bottom: calc(35 * var(--u));
  font-size: calc(42 * var(--u));
  color: var(--mv-lead);
}

.p-mv__lead > span {
  display: block;
  letter-spacing: -0.061em;
  transform: skewX(-9.4deg);
  will-change: transform;
}

.p-mv__lead::after {
  content: "";
  position: absolute;
  top: calc(47 * var(--u));
  left: calc(-26 * var(--u));
  width: calc(100% + 42.8 * var(--u));
  height: calc(6 * var(--u));
  transform-origin: left center;
  background: linear-gradient(
    to right,
    rgb(var(--marker-rgb) / 0%) 0%,
    rgb(var(--marker-rgb) / 80%) 9.6%,
    rgb(var(--marker-rgb) / 100%) 17.2%,
    rgb(var(--marker-rgb) / 100%) 80.3%,
    rgb(var(--marker-rgb) / 32%) 93.4%,
    rgb(var(--marker-rgb) / 0%) 100%
  );
}

.p-mv__title {
  line-height: calc(121 * var(--u));
  color: var(--mv-text);
  transform: skewX(-9.4deg);
  will-change: transform;
  filter: drop-shadow(0 calc(3 * var(--u)) calc(14 * var(--u)) var(--hero-shade));
}

.p-mv__title-main {
  display: inline-block;
  margin: -0.25em 0;
  padding: 0.25em 0;
  font-size: calc(96 * var(--u));
  line-height: 1;
  letter-spacing: -0.025em;
  background-image:
    linear-gradient(
      calc(90deg + var(--year-angle)),
      transparent 38%,
      #fff 46%,
      #fff 54%,
      transparent 62%
    ),
    linear-gradient(var(--mv-title-top), var(--mv-title-bottom));
  background-size:
    300% 100%,
    auto;
  background-position:
    50% 0,
    0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.p-mv__title-sub {
  margin-left: calc(6 * var(--u));
  font-size: calc(51 * var(--u));
  letter-spacing: -0.014em;
}

.p-mv__title-tail {
  display: block;
  margin-top: calc(-13 * var(--u) - 0.25em);
  padding: 0.25em 0;
  transform: translateX(calc(9 * var(--u)));
  font-size: calc(94 * var(--u));
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ---- 入場アニメーション「光のスイープ」 ---- */
@keyframes p-mv-sweep {
  from {
    opacity: 0.15;
    transform: translateX(-35%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes p-mv-photo-rise {
  from {
    opacity: 0;
    transform: translateY(8%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes p-mv-photo-swap-out {
  0%,
  40% {
    opacity: 1;
  }
  50%,
  95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes p-mv-photo-swap-in {
  0%,
  40% {
    opacity: 0;
  }
  50%,
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes p-mv-sweep-accent {
  from {
    opacity: 0;
    transform: translateX(-18%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes p-mv-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes p-mv-draw {
  from {
    scale: 0 1;
  }
  to {
    scale: 1 1;
  }
}

@keyframes p-mv-streak {
  from {
    background-position:
      100% 0,
      0 0;
  }
  to {
    background-position:
      50% 0,
      0 0;
  }
}

.p-mv__photo {
  animation: p-mv-photo-rise 1.4s cubic-bezier(0.33, 1, 0.68, 1) both;
}

.p-mv__photo-layer--a {
  animation: p-mv-photo-swap-out 20s ease-in-out infinite;
}

.p-mv__photo-layer--b {
  animation: p-mv-photo-swap-in 20s ease-in-out infinite;
}

.p-mv__lead {
  animation: p-mv-in 0.34s linear 0.34s both;
}

.p-mv__lead::after {
  animation: p-mv-draw 0.5s cubic-bezier(0.22, 0.72, 0.24, 1) 0.42s both;
}

.p-mv__title {
  animation: p-mv-in 0.4s linear 0.46s both;
}

.p-mv__title-main {
  animation: p-mv-streak 1.1s cubic-bezier(0.22, 0.72, 0.24, 1) 0.6s both;
}

/* ===== フォーム ===== */
.p-form {
  position: relative;
  overflow-x: clip;
  z-index: 10;
  width: 100%;
  margin-top: -36px;
  padding-bottom: var(--page-gutter);
}

.p-form__inner {
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 3vw;
}

.form-box {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 5px 5px;
  border-radius: 12px;
  background-color: var(--form-head-bg);
  background-image: linear-gradient(to top left, var(--form-head-from), var(--form-head-to));
  border: 0.5px solid var(--glass-border);
  box-shadow: var(--glass-highlight-form), var(--glass-shadow-form);
}

.form-box_header {
  padding: 0.8em;
  color: var(--on-accent);
  font-size: var(--fs-base);
  text-align: center;
}

.form-box_wc {
  border-radius: 0 0 7px 7px;
  background-color: var(--glass-bg-form);
}

/* ===== セクション見出し ===== */
.section-title {
  color: var(--text-dark);
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-heading);
  text-align: center;
}

.section-title--deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-title__deco {
  display: block;
  height: 1em;
  aspect-ratio: 30 / 45;
  color: var(--accent);
}

.section-title__deco--flip {
  scale: -1 1;
}

/* ===== お悩み ===== */
.p-worriesOuter {
  text-align: center;
  padding-top: 40px;
  position: relative;
  pointer-events: none;
  user-select: none;
}

.p-worries {
  --pill-fs: clamp(12px, 0.7vw + 9px, 15px);

  position: relative;
  overflow: hidden;
  text-align: center;
  max-width: 1080px;
  margin: 0 auto;
}

.p-worries__inner {
  max-width: 1080px;
  margin: 0 auto 25px;
}

.p-worries__field {
  position: relative;
  height: 484px;
}

/* ===== お悩み背景 ===== */
.p-worries__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.c-worryPill,
.c-worryEmoji {
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
}

.c-worryPill.is-shown,
.c-worryEmoji.is-shown {
  visibility: visible;
}

.c-worryPill {
  display: inline-flex;
  align-items: center;
  padding: 0.4375em 0.875em;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--pill-fs);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 4px 10px var(--shadow-pill);
}

.c-worryPill--fill {
  padding: 0.3em 0.6em;
  background: var(--badge);
  color: var(--on-accent);
  font-size: calc(var(--pill-fs) * 1.25);
}

.c-worryEmoji {
  display: grid;
  place-items: center;
  width: calc(var(--fs-2xl) * 2);
  height: calc(var(--fs-2xl) * 2);
  border-radius: 50%;
  background: var(--surface);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: var(--fs-2xl);
  line-height: 1;
  box-shadow: 0 4px 10px var(--shadow-pill);
}

.p-merit__lead {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  margin-bottom: 40px;
}

.c-leadCopy {
  --fs: 35.4;
  /* --u: calc(var(--fs-xl) / var(--fs)); */
  --u: 0.72px;

  position: relative;
  width: calc(260 * var(--u));
  height: calc(61 * var(--u));
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.c-leadCopy::before,
.c-leadCopy::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  content: "";
}

.c-leadCopy::before {
  top: calc(54 * var(--u));
}

.c-leadCopy::after {
  top: calc(59 * var(--u));
}

.c-leadCopy__text {
  --text-top: 11;
  --text-left: 3;

  position: absolute;
  top: calc(var(--text-top) * var(--u));
  left: calc(var(--text-left) * var(--u));
  font-family: var(--ff-heading);
  font-feature-settings: "palt" 1;
  font-size: calc(var(--fs) * var(--u));
  font-weight: var(--fw-heading);
  transform: skewX(-9deg);
  transform-origin: left top;
}

.c-leadCopy__em {
  color: var(--step-label);
}

.c-leadCopy__bang {
  margin-inline-start: calc(-7 * var(--u));
}

.c-leadCopy__dots {
  position: absolute;
  top: 0;
  left: calc(102 * var(--u));
  width: calc(var(--fs) * 3 * var(--u));
  height: 5px;
  background-image: radial-gradient(circle closest-side, var(--accent) 100%, transparent 100%);
  background-size: calc(var(--fs) * var(--u)) 100%;
}

/* ===== 非公開選考枠なら！（メリット） ===== */
.p-merit {
  overflow: hidden;
  padding: 0 var(--page-gutter) var(--page-gutter);
}

.p-merit__inner {
  max-width: var(--fluid-w-l);
  margin: 0 auto;
  text-align: center;
}

.p-merit__title {
  margin-bottom: 25px;
  color: var(--text-dark);
}

.merit-points {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.merit-point {
  position: relative;
  container-type: inline-size;
  padding: 24px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 4px 12px var(--shadow);
  text-align: left;
}

.merit-point__fig {
  position: absolute;
  top: -6%;
  right: -2%;
  container-type: inline-size;
  display: grid;
  place-items: center;
  width: min(45cqw, 150px);
  aspect-ratio: 1;
}

.merit-point:nth-of-type(3) .merit-point__fig {
  right: -5%;
}

.merit-point__fig picture {
  width: 100%;
}

.merit-point__title {
  --lh: 1.45;

  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: calc(var(--lh) * 2em);
  color: var(--text-dark);
  font-size: clamp(17px, 8.5cqi, 26px);
  font-weight: var(--fw-body-bold);
  line-height: var(--lh);
  font-feature-settings: "palt" 1;
}

.merit-point__list {
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.merit-point__list li {
  display: flex;
  gap: 8px;
  color: var(--text-main);
  font-size: var(--fs-base);
  font-weight: var(--fw-body);
  line-height: 1.7;
}

.merit-point__list li + li {
  margin-top: 8px;
}

.merit-point__list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: calc(0.85em - 3px);
  border-radius: 50%;
  background: var(--primary);
}

/* ===== 紹介企業実績 ===== */
.p-logos {
  padding: 40px 0;
  overflow: hidden;
  text-align: center;
}

.p-logos__inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  container-type: inline-size;
}

.p-logos__title {
  margin-bottom: 20px;
}

.p-logos__count {
  margin-bottom: 26px;
  color: var(--primary);
  font-size: max(76px, min(17cqi, 108px));
  line-height: 1;
}

.p-logos__num {
  font-family: var(--ff-heading);
  font-weight: var(--fw-heading);
  letter-spacing: -0.05em;
  margin-right: 0.05em;
}

.p-logos__unit {
  font-size: 0.42em;
  font-weight: 900;
  color: var(--text-dark);
  margin-left: 0.06em;
}

.marquee-stage {
  --ss: 1.5;
  --row: 48px;
  --gap: 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(var(--gap) * var(--ss));
  width: calc(100% * var(--ss));
  transform: scale(calc(1 / var(--ss))) rotate(0.01deg);
  transform-origin: 0 0;
  margin-bottom: calc((3 * var(--row) + 2 * var(--gap)) * (1 - var(--ss)));
  pointer-events: none;
  touch-action: none;
  user-select: none;
}

.marquee-stage::before,
.marquee-stage::after {
  content: "";
  position: absolute;
  top: -6px;
  bottom: -14px;
  width: 10%;
  z-index: 1;
  pointer-events: none;
}

.marquee-stage::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.marquee-stage::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.marquee {
  overflow: hidden;
  padding-block: calc(6px * var(--ss)) calc(14px * var(--ss));
  margin-block: calc(-6px * var(--ss)) calc(-14px * var(--ss));
}

.marquee__set {
  display: flex;
  align-items: center;
  gap: calc(var(--gap) * var(--ss));
  width: max-content;
}

.marquee__logo {
  flex: 0 0 auto;
  display: flex;
  padding: calc(4px * var(--ss)) calc(12px * var(--ss));
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 calc(4px * var(--ss)) calc(10px * var(--ss)) var(--shadow-pill);
  will-change: transform;
}

.marquee__set img {
  display: block;
  width: auto;
  height: calc((var(--row) - 8px) * var(--ss));
  object-fit: contain;
}

.p-logos__lead {
  margin: 26px auto 0;
  color: var(--text-main);
  font-size: var(--fs-base);
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.p-logos__lead b {
  color: var(--primary);
  font-weight: var(--fw-body-bold);
}

/* ===== サービスご利用の流れ ===== */
.p-flow {
  padding: 40px var(--page-gutter);
  background: var(--bg);
}

.p-flow__inner {
  max-width: var(--fluid-w-l);
  margin: 0 auto;
}

.p-flow__title {
  margin-bottom: 28px;
}

.flow-band {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-band__ribbon {
  position: relative;
  z-index: 2;
  margin: 0 0 -1em;
  padding: 0.5em 1.5em;
  border-radius: 999px;
  color: var(--on-accent);
  font-size: var(--fs-base);
  font-family: var(--ff-heading);
  font-weight: var(--fw-heading);
  line-height: 1.5;
  font-feature-settings: "palt";
}

.flow-band--a .flow-band__ribbon {
  background: var(--badge);
}

.flow-band--b .flow-band__ribbon {
  background: var(--primary);
}

.flow-band__panel {
  --pad-x: 10px;
  --pad-t: 40px;
  --dot-c: rgb(38 209 211 / 20%);
  --dot-r: 1.5px;
  --dot-gap: 12px;

  width: 100%;
  padding: var(--pad-t) var(--pad-x) 0;
  overflow: hidden;
  border-radius: 14px;
  background-color: var(--surface);
  box-shadow: 0 4px 12px var(--shadow);
  background-image:
    linear-gradient(to bottom, transparent 20%, var(--surface) 78%),
    radial-gradient(circle, var(--dot-c) 0 calc(var(--dot-r) - 0.5px), transparent var(--dot-r));
  background-size:
    auto,
    var(--dot-gap) var(--dot-gap);
}

.flow-band--b .flow-band__panel {
  --dot-c: rgb(33 183 183 / 28%);
}

.flow-band__steps {
  --gap-b: 20px;

  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin: calc(var(--pad-t) * -1) auto 0;
  padding: 0;
  list-style: none;
}

.flow-band--a .flow-band__steps {
  width: 66.66%;
  max-width: 633px;
}

.flow-band--b .flow-band__steps {
  width: 100%;
  max-width: 950px;
}

.flow-step {
  min-width: 0;
  padding: var(--pad-t) 0 var(--gap-b);
  text-align: center;
}

.flow-step + .flow-step {
  border-left: 1px solid var(--line);
}

.flow-step__fig {
  position: relative;
}

.flow-step__circle {
  position: relative;
  width: min(74%, 120px);
  margin: 0 auto;
  aspect-ratio: 1;
  display: grid;
}

.flow-step__circle picture {
  position: absolute;
  inset: 0%;
}

.flow-step__circle img {
  width: 100%;
}

.flow-step__arrow {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: var(--fs-2xl);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px var(--shadow);
}

.flow-step__arrowSvg {
  display: block;
  height: 50%;
  aspect-ratio: 12 / 20;
  color: var(--primary);
}

.flow-step__label {
  color: var(--text-dark);
  font-size: var(--fs-base);
  font-weight: var(--fw-body-bold);
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.flow-band__description {
  width: auto;
  margin: 0 calc(var(--pad-x) * -1);
  padding: 1em max(calc(var(--pad-x) + 8px), calc((100% - 440px) / 2));
  border-top: 1px solid var(--line);
  color: var(--text-main);
  font-size: var(--fs-base);
  font-weight: var(--fw-body);
  line-height: 1.7;
  text-align: center;
}

.flow-bands__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
}

.flow-bands__arrowSvg {
  display: block;
  width: 42px;
  height: 17px;
  color: var(--accent);
}

/* ===== よくあるご質問 ===== */
.p-faq {
  background: var(--bg);
  padding: 40px var(--page-gutter);
}

.p-faq__inner {
  max-width: var(--fluid-w-base);
  margin-inline: auto;
}

.p-faq__title {
  margin-bottom: 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}

.faq-item {
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 4px 12px var(--shadow);
}

.faq-item__q {
  display: flex;
  align-items: center;
  gap: 15px;
}

.faq-item__a {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.faq-item__mark {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--step-label);
  color: var(--on-accent);
}

.faq-item__mark svg {
  width: 40%;
  height: 40%;
  opacity: 0.85;
}

.faq-item h3 {
  color: var(--text-dark);
  font-size: var(--fs-base);
  font-weight: 700;
}

.faq-item p {
  color: var(--text-main);
  font-size: var(--fs-base);
  line-height: 1.8;
}

/* ===== Footer ===== */
/* ===== Responsive（md: 768px〜） ===== */
@media (min-width: 768px) {
  .l-hero {
    --peek: 76px;
    --mv-min: 500px;
    --mv-max: 650px;
    --photo-cap: 0.86;
    --year-y: 0.5;
    --year-h: min(calc(0.4 * var(--mv-h)), 20cqw);
    --year-gap: min(calc(0.65 * var(--mv-h)), 45cqw);
    --u: calc(var(--photo-h) / 807);
    --mv-h: clamp(var(--mv-min), calc(85 * var(--svh, 1svh) - var(--peek)), var(--mv-max));
  }

  .p-mv__year {
    left: 48.5%;
  }

  .p-mv__photo-layer {
    inset: 0%;
  }

  .p-mv__scrim {
    display: none;
  }

  .p-mv__copy {
    bottom: calc(74 * var(--u));
  }

  .p-mv__lead {
    margin-bottom: calc(22 * var(--u));
    font-size: calc(33 * var(--u));
  }

  .p-mv__lead::after {
    top: calc(39 * var(--u));
    left: calc(-7 * var(--u));
    width: calc(100% + 37.7 * var(--u));
    height: calc(5 * var(--u));
  }

  .p-mv__title {
    line-height: 1;
  }

  .p-mv__title-main {
    font-size: calc(83 * var(--u));
  }

  .p-mv__title-sub,
  .p-mv__title-tail {
    font-size: calc(44 * var(--u));
    letter-spacing: -0.014em;
  }

  .p-mv__title-sub {
    margin-left: calc(5 * var(--u));
  }

  .p-mv__title-tail {
    display: inline;
    margin-top: 0;
    padding: 0;
    transform: none;
    letter-spacing: normal;
    background-image: none;
    color: var(--mv-text);
  }

  .p-form__inner {
    max-width: 1080px;
    padding: 0 var(--page-gutter);
  }

  .section-title {
    font-size: 30px;
  }

  .section-title__deco {
    height: 31px;
  }

  .cta--sec01 .cta__frame {
    --frame-w: 520;
    --frame-h: 104;
  }

  .cta--sec01 .cta__label {
    --fs: 24.8;
    --ls: 0;
    --label-dy: -2;
  }

  .cta--sec01 .cta__label-strong {
    --fs-strong: 36;
    --ls-strong: 0;
    --underline-w: 5.6;
    --underline-offset: 3.4;
  }

  .cta__chevron {
    --chev-w: 11.5;
    --chev-h: 18;
  }

  .cta--sec01 .cta__chevron {
    --chevron-gap: 25;
    --chevron-dy: 5;
  }

  .p-worries {
    padding: 40px 60px 0;
  }

  .p-worries__inner {
    margin-bottom: 40px;
  }

  .p-worries__field {
    height: 460px;
  }

  .c-leadCopy {
    --u: 1px;
  }

  .c-leadCopy__dots {
    height: 6px;
  }

  .p-merit__lead {
    margin-top: 0;
    margin-bottom: 60px;
  }

  .p-merit__title {
    margin-bottom: 40px;
  }

  .merit-point__fig {
    top: -2%;
    right: 0%;
    width: min(45cqw, 160px);
  }

  .merit-point:nth-of-type(3) .merit-point__fig {
    right: -5%;
  }

  .u-sp {
    display: none;
  }

  .p-logos {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .p-logos__title {
    margin-bottom: 34px;
  }

  .p-logos__count {
    margin-bottom: 44px;
  }

  .p-logos__lead {
    margin-top: 44px;
    font-size: var(--fs-base);
    line-height: 2;
  }

  .marquee-stage {
    --row: 58px;
    --gap: 45px;
  }

  .p-flow {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .p-flow__title {
    margin-bottom: 52px;
  }

  .flow-band__ribbon {
    font-size: var(--fs-l);
  }

  .flow-band__panel {
    --pad-x: 24px;
    --pad-t: 60px;
    --dot-r: 1.8px;
    --dot-gap: 16px;

    border-radius: 20px;
  }

  .flow-band__steps {
    --gap-b: 28px;
  }

  .flow-step__label {
    font-size: var(--fs-l);
  }

  .flow-bands__arrow {
    padding: 30px 0;
  }

  .flow-bands__arrowSvg {
    width: 71px;
    height: 31px;
  }

  .p-faq {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .p-faq__title {
    margin-bottom: 40px;
  }

  .faq-list {
    row-gap: 24px;
  }

  .faq-item {
    padding: 28px 32px;
    border-radius: 20px;
  }

  .faq-item__a {
    margin-top: 16px;
    padding-top: 16px;
  }

  .faq-item__mark {
    width: 40px;
    height: 40px;
  }

  .faq-item h3 {
    font-size: var(--fs-l);
  }

  .faq-item p {
    font-size: var(--fs-base);
  }
}

/* ===== Responsive（lg: 1000px〜） ===== */
@media (min-width: 1000px) {
  .merit-points {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .merit-point {
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 20px;
  }

  .flow-bands {
    display: grid;
    grid-template-columns: 2fr auto 3fr;
    align-items: stretch;
    column-gap: 24px;
  }

  .flow-band__panel {
    flex: 1;
  }

  .flow-band--a .flow-band__steps {
    width: 100%;
    max-width: none;
  }

  .flow-band__panel {
    --pad-t: 56px;
  }

  .flow-band--a .flow-band__panel {
    --pad-x: 14px;
  }

  .flow-band--b .flow-band__panel {
    --pad-x: 21px;
  }

  .flow-bands__arrow {
    align-self: center;
    padding: 0;
  }

  .flow-bands__arrowSvg {
    width: 42px;
    height: 24px;
    transform: rotate(-90deg);
  }
}

/* ===== Responsive（xl: 1200px〜） ===== */
@media (min-width: 1200px) {
  .l-hero {
    --mv-max: 800px;
  }

  .p-form__inner {
    padding: 0;
  }

  .p-worries {
    padding-right: 0;
    padding-left: 0;
  }

  .p-merit {
    padding-right: 0;
    padding-left: 0;
  }

  .merit-point {
    padding: 28px;
  }

  .merit-point__list li {
    font-size: 15px;
  }

  .p-faq {
    padding-right: 0;
    padding-left: 0;
  }
}

/* ===== 画面下部の固定CTA ===== */
.p-stickyCta {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  translate: 0 calc(100% + 40px);
  visibility: hidden;
  transition:
    translate 0.4s ease-out,
    visibility 0s 0.4s;
}

.p-stickyCta.is-visible {
  translate: 0 0;
  visibility: visible;
  transition:
    translate 0.3s ease-out,
    visibility 0s;
}

.p-stickyCta__panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background-color: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px var(--shadow);
}

.p-stickyCta__lead {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--text-dark);
  line-height: 1.3;
}

.p-stickyCta__note {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.p-stickyCta__title {
  font-size: 15px;
  font-weight: var(--fw-body-bold);
  white-space: nowrap;
}

.p-stickyCta__btn {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
  height: 48px;
  padding: 0 20px 0 22px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(var(--cta-from), var(--cta-to));
  color: var(--on-accent);
  font-feature-settings: "palt" 1;
  font-size: 16px;
  font-weight: var(--fw-heading);
  font-family: var(--ff-heading);
  letter-spacing: 0.025em;
  line-height: 1;
  white-space: nowrap;
  transition: filter 0.3s;
}

.p-stickyCta__btn:hover {
  filter: brightness(1.05);
}

.p-stickyCta__shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--shine), transparent);
  transform: translateX(-200%) skewX(-25deg);
  pointer-events: none;
  animation: sticky-shine 5s ease-in-out infinite;
}

@keyframes sticky-shine {
  0% {
    transform: translateX(-200%) skewX(-25deg);
  }
  14%,
  100% {
    transform: translateX(300%) skewX(-25deg);
  }
}

.p-stickyCta__btn svg {
  flex: none;
  width: 9px;
  height: 15px;
}

.p-stickyCta__btn-pc {
  display: none;
}

/* ===== 指差しハンド ===== */
.hand {
  position: absolute;
  z-index: 5;
  width: var(--hand-size);
  height: var(--hand-size);
  translate: -49% -4%;
  transform-origin: 49% 4%;
  rotate: var(--hand-aim);
  pointer-events: none;
  animation: hand-in 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.p-stickyCta:not(.is-visible) .hand {
  animation: none;
}

.hand__anim {
  position: absolute;
  inset: 0;
  transform-origin: 48% 75%;
}

.hand__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  rotate: -50deg;
  filter: drop-shadow(0 5px 6px var(--cta-shadow));
}

.hand__ring {
  position: absolute;
  top: 4%;
  left: 49%;
  width: 26px;
  height: 26px;
  translate: -50% -50%;
  border: 3px solid var(--cta-from);
  border-radius: 50%;
  opacity: 0;
}

.hand--nudge .hand__anim {
  animation: hand-nudge 2.6s infinite;
}

.hand--nudge .hand__ring {
  animation: hand-ring 2.6s infinite;
}

.hand--taptap .hand__anim {
  animation: hand-taptap 2s infinite;
}

.hand.is-out {
  animation: none;
}

.hand.is-out .hand__ring {
  animation: none;
}

.hand.is-out .hand__anim {
  animation: hand-out 0.38s cubic-bezier(0.3, 0, 0.7, 0.2) forwards;
}

@keyframes hand-in {
  from {
    scale: 0;
    opacity: 0;
  }
  to {
    scale: 1;
    opacity: 1;
  }
}

@keyframes hand-out {
  35% {
    scale: 1.18;
  }
  to {
    scale: 0;
    opacity: 0;
  }
}

@keyframes hand-nudge {
  0%,
  55%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  62% {
    translate: 0 -6px;
    rotate: 12deg;
  }
  70% {
    rotate: -9deg;
  }
  78% {
    rotate: 6deg;
  }
  86% {
    rotate: -3deg;
  }
  92% {
    translate: 0 0;
    rotate: 0deg;
  }
}

@keyframes hand-ring {
  0%,
  60% {
    scale: 0.4;
    opacity: 0;
  }
  64% {
    opacity: 0.8;
  }
  90%,
  100% {
    scale: 1.9;
    opacity: 0;
  }
}

@keyframes hand-taptap {
  0%,
  42%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  10% {
    translate: 0 -14px;
    rotate: 2deg;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.4, 1);
  }
  20% {
    translate: 0 0;
    rotate: 0deg;
  }
  30% {
    translate: 0 -14px;
    rotate: 2deg;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.4, 1);
  }
}

.shared-footer {
  height: auto;
  padding-bottom: calc(28px + 73px + env(safe-area-inset-bottom, 0px));
  color: var(--text-main);
  background: var(--bg);
}

.theme-toggle {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (min-width: 750px) {
  .shared-footer {
    padding-bottom: calc(32px + 73px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 768px) {
  .p-stickyCta {
    inset: auto 16px 24px;
  }

  .p-stickyCta__panel {
    width: 800px;
    max-width: 100%;
    padding: 14px 20px 14px 28px;
    border-radius: 22px;
    background-color: var(--glass-bg);
    background-image: linear-gradient(to bottom, transparent, var(--surface));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 0.5px solid var(--glass-border);
    box-shadow: var(--glass-highlight), var(--glass-shadow);
  }

  .p-stickyCta__note {
    font-size: 12px;
  }

  .p-stickyCta__title {
    font-size: 18px;
  }

  .p-stickyCta__btn {
    height: 56px;
    padding: 0 32px 0 36px;
    font-size: 18px;
  }

  .p-stickyCta__btn-pc {
    display: inline;
  }

  .shared-footer {
    padding-bottom: calc(32px + 110px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .p-stickyCta,
  .p-stickyCta.is-visible {
    transition: none;
  }

  .p-stickyCta__shine {
    animation: none;
  }

  .hand,
  .hand .hand__anim,
  .hand .hand__ring {
    animation: none;
  }

  .p-mv__photo,
  .p-mv__photo-layer--a,
  .p-mv__photo-layer--b,
  .p-mv__lead,
  .p-mv__lead::after,
  .p-mv__title,
  .p-mv__title-main {
    animation: none;
  }
}

/* ===== ダークモード ===== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111b1c;
  --surface: #1c2829;
  --text-main: #e3eaea;
  --text-dark: #d6e6e6;
  --text-muted: #9fd3d3;
  --line: rgb(255 255 255 / 10%);
  --shadow: rgb(0 0 0 / 10%);
  --shadow-pill: var(--shadow);
  --cta-shadow: rgb(0 0 0 / 15%);
  --badge: #355f5f;

  --hero-bg: oklch(55% 0.14 241);
  --hero-grad-from: oklch(55% 0.14 241);
  --hero-grad-to: oklch(75% 0.065 236);
  --hero-overlay: oklch(54% 0.16 247);
  --mv-ghost: rgb(157 253 255 / 20%);
  --mv-ghost-end: rgb(157 253 255 / 0%);
  --mv-ghost-2: rgb(157 253 255 / 20%);
  --mv-ghost-2-end: rgb(157 253 255 / 0%);
  --mv-cut: rgb(2 52 100 / 15%);
  --mv-cut-end: rgb(2 52 100 / 0%);
  --mv-cut-fade: 60cqw;
  --form-head-from: oklch(52% 0.12 197);
  --form-head-to: oklch(64% 0.106 197);

  --glass-bg: rgb(28 40 41 / 70%);
  --glass-bg-form: var(--surface);
  --glass-bg-logo: rgb(17 27 28 / 70%);
  --glass-border: var(--line);
  --glass-rim: inset 0 0 0 0.5px var(--line);
  --glass-highlight: inset 0 1px 0 rgb(255 255 255 / 6%);
  --glass-highlight-form: inset 0 1px 0 rgb(255 255 255 / 25%);
  --glass-shadow: 0 4px 16px var(--shadow);
  --glass-shadow-form: 0 6px 20px rgb(0 0 0 / 10%);
}

[data-theme="dark"] .l-hero:before {
  background-image:
    linear-gradient(to bottom, transparent 58%, var(--bg)),
    linear-gradient(to left bottom, transparent 50%, var(--hero-overlay));
}

[data-theme="dark"] .l-hero:after {
  mask-image: linear-gradient(to bottom, #000 58%, transparent);
}

[data-theme="dark"] .p-mv__photo-layer {
  filter: brightness(0.9);
}

[data-theme="dark"] .merit-point__fig img,
[data-theme="dark"] .flow-step__circle img {
  filter: brightness(0.9);
}

[data-theme="dark"] .merit-point,
[data-theme="dark"] .flow-band__panel,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .c-worryPill,
[data-theme="dark"] .c-worryEmoji {
  box-shadow: var(--glass-rim), var(--glass-highlight), var(--glass-shadow);
}

[data-theme="dark"] .marquee__logo {
  filter: brightness(0.85);
}

[data-theme="dark"] .header__logo--light {
  display: none;
}

[data-theme="dark"] .header__logo--dark {
  display: inline;
}
