:root {
  --1px: 0.0625rem;
  --2px: 0.125rem;
  --12px: 0.75rem;
  --14px: 0.875rem;
  --16px: 1rem;
  --20px: 1.25rem;
  --21px: 1.3125rem;
  --24px: 1.5rem;
  --26px: 1.625rem;
  --28px: 1.75rem;
  --40px: 2.5rem;
  --60px: 3.75rem;
  --145px: 9.0625rem;
}
@media screen and (min-width: 500px) {
  html {
    font-size: 21px;
  }
}
/* extracted from index.html inline <style> */
body {
  font-family: "Roboto", "Noto Sans JP", sans-serif;
}

.lp-frame {
  width: 100%;
  max-width: 560px;
  position: relative;
  z-index: 1;
  background: #f6f7fa;
  border: 8px solid #3e4a95;
  margin: 0 auto;
  overflow: hidden;
}

.lp-background {
  display: none;
}

#hero {
  border-bottom: 8px solid #3e4a95;
}

/* Hero 背景左右装飾（画像4枚配置） */
.hero-bg {
  position: relative;
  overflow: hidden;
}

.hero-bg__bg {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.hero-bg__bg--left-1 {
  left: 0;
  top: 60%;
  background-image: url("../images/bg-left.svg");
}

.hero-bg__bg--left-2 {
  left: 0;
  bottom: 25%;
  background-image: url("../images/bg-left.svg");
}

.hero-bg__bg--right-1 {
  right: 0;
  top: 20%;
  background-image: url("../images/bg-right.svg");
}

.hero-bg__bg--right-2 {
  right: 0;
  bottom: 70%;
  background-image: url("../images/bg-right.svg");
}

.hero-bg > * {
  z-index: -1;
}

#hero .logo {
  width: 85%;
}

.hero-text {
  color: #3e4a95;
  text-align: center;
  font-size: var(--16px);
  font-style: normal;
  font-weight: 700;
  line-height: 175%;
}

.character-slide {
  position: relative;
  overflow: hidden;
  height: 140px;
  padding: 16px 0;
}

.character-slide__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: character-scroll 50s linear infinite;
  --character-animation: none;
}

.character-slide__item {
  flex: 0 0 auto;
  width: 88px;
  height: auto;
  animation: character-bounce-a 3s ease-in-out infinite;
}

.character-slide__item:nth-child(3n + 2) {
  animation-name: character-bounce-b;
  animation-duration: 2.3s;
  animation-delay: 0.35s;
}

.character-slide__item:nth-child(3n) {
  animation-name: character-bounce-c;
  animation-duration: 3.1s;
  animation-delay: 0.6s;
}

@keyframes character-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes character-bounce-a {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  18% {
    transform: translateY(-14px) rotate(-3deg);
  }

  32% {
    transform: translateY(6px) rotate(2deg);
  }

  55% {
    transform: translateY(-9px) rotate(-1deg);
  }

  78% {
    transform: translateY(4px) rotate(1.5deg);
  }
}

@keyframes character-bounce-b {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  12% {
    transform: translateY(-10px) rotate(1.5deg);
  }

  27% {
    transform: translateY(5px) rotate(-2deg);
  }

  46% {
    transform: translateY(-15px) rotate(2deg);
  }

  71% {
    transform: translateY(3px) rotate(-1deg);
  }
}

@keyframes character-bounce-c {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  21% {
    transform: translateY(-18px) rotate(-2deg);
  }

  37% {
    transform: translateY(8px) rotate(2.5deg);
  }

  58% {
    transform: translateY(-12px) rotate(1deg);
  }

  83% {
    transform: translateY(6px) rotate(-1.5deg);
  }
}

/* lp-slide-left / lp-slide-right keyframes removed; JS generates pixel-perfect keyframes */

#floating-cta {
  left: 0;
  right: 0;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* FLOW セクションタイトル (中央寄せ調整) */
.flow-title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 32px;
}

/* 見出し内の「heading-mark / FLOW / 3STEP」をセクション中央に揃えるため、バブルを絶対配置でフロー外へ */
.flow-title__header {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flow-title__bubble {
  position: absolute;
  left: 50%;
  width: 115px;
  transform: translateX(-140%);
}

.flow-title__bubble img {
  width: 100%;
  height: auto;
  display: block;
}

.flow-title__label-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 43px;
}

.flow-title__label-group img {
  width: 100%;
  object-fit: contain;
}

.flow-title__flow-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #3e4a95;
}

.flow-title__spark {
  position: absolute;
  left: 50%;
  width: 37px;
  transform: translateX(170%);
}

.flow-title__spark img {
  width: 100%;
  height: auto;
  display: block;
}

.flow-title__step {
  color: #3e4a95;
  text-align: center;
  font-size: var(--40px);
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
}

.flow-title__step small {
  color: #3e4a95;
  font-size: var(--28px);
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
}

/* フレーム内コーナー画像（左上） */
.lp-frame__corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 81px;
  height: auto;
  pointer-events: none;
  z-index: 10;
}

/* --- Header (top bar) --- */
.lp-header {
  position: relative;
  /* 固定解除 */
  z-index: 20;
  height: 56px;
  width: 117px;
  /* 指定幅 */
  margin-left: auto;
  /* 右寄せ配置 */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* ロゴを右寄せ */
  padding: 0 12px;
  background: #3e4a95;
  /* 青背景はこの幅のみ */
}

.lp-header__logo {
  height: 28px;
  width: auto;
  display: block;
}

/* 内側ラッパー: 背景/クリップ不要のため簡略化 */
.lp-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (min-width: 561px) {
  .lp-background {
    display: block;
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background-color: #f0f4ff;
  }

  .lp-background__corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    height: auto;
    rotate: calc(90deg);
  }

  .lp-background__corner--bottom {
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    rotate: calc(180deg);
  }

  .lp-background__row {
    position: absolute;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    overflow: hidden;
  }

  .lp-background__row--reverse {
    bottom: 50%;
    transform: scaleX(-1) translateY(110%);
    transform-origin: center;
  }

  .lp-background__row--forward {
    top: 50%;
    transform: translateY(-110%);
  }

  .lp-background__track {
    --slide-gap: 24px;
    --slide-correction: calc(var(--slide-gap) / 2);
    display: flex;
    gap: var(--slide-gap);
    width: max-content;
    will-change: transform;
  }

  .lp-background__image {
    width: 296px;
    height: auto;
    flex: 0 0 auto;
    border: 4px solid #ffa61d;
    border-radius: 16px;
  }

  .lp-background__row--reverse .lp-background__image {
    transform: scaleX(-1);
  }

  .lp-background__track img:nth-child(3n + 2) {
    border-color: #62a0e3;
  }

  .lp-background__track img:nth-child(3n) {
    border-color: #35c5c0;
  }
  .lp-background .character-image {
    position: absolute;
    width: 115px;
    z-index: 1;
    transform-origin: center;
  }

  .lp-background .character-image.character1 {
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: translateY(-300%) translateX(-430%);
  }

  .lp-background .character-image.character2 {
    top: 50%;
    left: 50%;
    transform: translateY(-200%) translateX(-550%);
  }

  .lp-background .character-image.character3 {
    top: 50%;
    bottom: auto;
    right: 50%;
    transform: translateY(100%) translateX(550%);
  }
  .lp-background .character-image.character4 {
    top: 50%;
    bottom: auto;
    right: 50%;
    transform: translateY(200%) translateX(430%);
  }

  #floating-cta {
    left: 50%;
    right: auto;
    max-width: 560px;
    padding-left: 0;
    padding-right: 0;
    transform: translateX(-50%);
  }
}

#how-to-use {
  position: relative;
}

/* `#how-to-use`セクション専用の背景スパン表示調整
   表示順: 上(左画像) / 中央(右画像) / 下(左画像)
   左右のSVGを再利用して同一イメージを表示します */
#how-to-use .hero-bg__bg {
  position: absolute;
  width: 120px;
  height: auto;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* 上: 左 */
#how-to-use .hero-bg__bg--left-1 {
  left: 0;
  top: 12%;
  transform: translateY(-50%);
  background-image: url("../images/bg-left.svg");
  z-index: 0;
}

/* 中央: 右 */
#how-to-use .hero-bg__bg--right-1 {
  right: 0;
  top: 35%;
  transform: translateY(-50%);
  background-image: url("../images/bg-right.svg");
  z-index: 0;
}

/* 下: 左 */
#how-to-use .hero-bg__bg--left-2 {
  left: 0;
  bottom: 36%;
  transform: translateY(50%);
  background-image: url("../images/bg-left.svg");
  z-index: 0;
}

/* FAQ セクションを基点にコーナー画像を右下配置するために relative を指定 */
#faq {
  position: relative;
}

#how-to-use .section-frame__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 81px;
  height: auto;
  pointer-events: none;
  z-index: 10;
}

.step-card {
  padding-bottom: 24px;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.08);
}

/* ステップ1左上三角 + 数字オーバーレイ */
.step-1-number {
  position: relative;
  width: 64px;
  height: 64px;
}

.step-1-number:before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 81px 81px 0 0;
  /* 81pxへ復元 */
  border-color: #ffa61d transparent transparent transparent;
  border-radius: 8px 0 0 0;
}

.step-1-digit {
  position: absolute;
  top: 14px;
  left: 18px;
  font-weight: 700;
  font-size: var(--24px);
  line-height: 1;
  color: #fff;
}

/* ステップ2右上 / ステップ3左上 三角スタイル */
.step-2-number {
  position: relative;
  width: 64px;
  height: 64px;
  margin-left: auto;
}

.step-2-number:before {
  content: "";
  position: absolute;
  inset: 0 -17px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 81px 0 0 81px;
  /* 81pxへ復元 */
  border-color: #ffa61d transparent transparent transparent;
  border-radius: 0 8px 0 0;
}

.step-2-digit {
  position: absolute;
  top: 14px;
  right: 18px;
  font-weight: 700;
  font-size: var(--24px);
  line-height: 1;
  color: #fff;
}

.step-3-number {
  position: relative;
  width: 64px;
  height: 64px;
}

.step-3-number:before {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 81px 81px 0 0;
  /* 81pxへ復元 */
  border-color: #ffa61d transparent transparent transparent;
  border-radius: 8px 0 0 0;
}

.step-3-digit {
  position: absolute;
  top: 14px;
  left: 18px;
  font-weight: 700;
  font-size: var(--24px);
  line-height: 1;
  color: #fff;
}
.step-decoration.kira1 {
  position: absolute;
  left: 50%;
  transform: translateX(-240%);
  top: 21px;
}
.step-decoration.kira2 {
  position: absolute;
  left: 50%;
  transform: translateX(260%);
  top: 90px;
}
.step-icon {
  width: 99px;
  height: auto;
  margin: -55px auto 16px;
}

.step-icon img {
  width: 100%;
  object-fit: contain;
}

.step-card {
  position: relative;
}

.step-card h3 {
  color: #62a0e3;
  text-align: center;
  font-size: var(--24px);
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
}

.step-card p {
  color: #3e4a95;
  font-size: var(--16px);
  font-style: normal;
  font-weight: 400;
  line-height: 175%;
  padding: 0 24px;
}

.step-character-image {
  position: absolute;
  width: 115px;
}

.step-card.step1 .step-character-image {
  right: 9px;
  top: -40px;
}

.step-card.step2 .step-character-image {
  left: 9px;
  top: -40px;
}

.step-card.step3 .step-character-image {
  right: 9px;
  top: -40px;
}

#cta-middle {
  position: relative;
  background-color: #3e4a95;
  background-image: repeating-linear-gradient(
    135deg,
    #4a57a9 0,
    #4a57a9 4px,
    transparent 4px,
    transparent 16px
  );
  height: 590px;
  /* Track frame width so characters can follow the layout between 500px and 560px */
  --cta-min-width: 500px;
  --cta-max-width: 560px;
  --cta-frame-width: min(100%, var(--cta-max-width));
  --cta-width-range: calc(var(--cta-max-width) - var(--cta-min-width));
  --cta-extra: max(0px, calc(var(--cta-frame-width) - var(--cta-min-width)));
  --cta-progress: calc(var(--cta-extra) / var(--cta-width-range));
}

@media (min-width: 500px) {
  #cta-middle {
    height: 660px;
  }
}

.result-slide {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) rotate(-10deg);
  top: var(--145px);
  transform-origin: center;
  pointer-events: none;
  z-index: 1;
}

.result-slide__row {
  position: relative;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  margin: 12px 0;
}

.result-slide__track {
  --slide-gap: 16px;
  --slide-correction: calc(var(--slide-gap) / 2);
  display: flex;
  gap: var(--slide-gap);
  width: max-content;
  will-change: transform;
}

/* no-js animation fallbacks removed; JS exclusively controls sliding animations */

.result-slide__image {
  width: 220px;
  height: auto;
  flex: 0 0 auto;
  border: 4px solid #ffa61d;
  border-radius: 12px;
  background: #fff;
}

/* alternate border colors to match lp-background images */
.result-slide__track img:nth-child(3n + 2) {
  border-color: #62a0e3;
}

.result-slide__track img:nth-child(3n) {
  border-color: #35c5c0;
}

/* CTA message floats slightly above the section and sits on top */
#cta-middle .cta-message {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  pointer-events: auto;
  /* allow interaction */
  display: flex;
  flex-direction: column;
  width: calc(100% - 30px);
  max-width: 500px;
}

/* CTA button remains in normal flow, below the decorative slide */
#cta-middle .cta-button {
  position: absolute;
  z-index: 8;
  display: block;
  margin: 0 auto;
  pointer-events: auto;
  bottom: var(--60px);
  left: 50%;
  transform: translateX(-50%);
  width: 276px;
}

.cta-message .cta-message-item {
  color: #fff;
  font-size: var(--26px);
  font-style: normal;
  font-weight: 700;
  background: #35c5c0;
  border-radius: 8px;
  padding: 1px 8px;
  box-shadow: #fff 0px 6px 0px 0;
  margin-bottom: 13px;
  width: fit-content;
}
#cta-middle .character-image {
  position: absolute;
  width: 115px;
  z-index: 1;
  transform-origin: center;
}
#cta-middle .character-image.character1 {
  top: -39px;
  left: 50%;
  transform: translateX(55%) rotate(10deg);
}

#cta-middle .character-image.character2 {
  top: 67px;
  left: 50%;
  transform: translateX(-150%) rotate(10deg);
}

#cta-middle .character-image.character3 {
  bottom: -45px;
  left: 50%;
  transform: translateX(23%) rotate(10deg);
}

@media (min-width: 500px) {
  #cta-middle .character-image.character1 {
    left: calc(50% + 160px + (var(--cta-progress) * 20px));
    transform: translateX(-50%) rotate(10deg);
  }

  #cta-middle .character-image.character2 {
    left: calc(50% - 170px - (var(--cta-progress) * 24px));
    transform: translateX(-50%) rotate(10deg);
  }

  #cta-middle .character-image.character3 {
    left: calc(50% + 130px + (var(--cta-progress) * 12px));
    transform: translateX(-50%) rotate(10deg);
  }
}
#faq {
  padding-bottom: 32px;
}

#faq .container {
  margin-top: -40px;
}

.faq-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.faq-header .text {
  color: #3e4a95;
  text-align: center;
  font-size: var(--14px);
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
}

#faq .section-title {
  color: #3e4a95;
  text-align: center;
  font-size: var(--28px);
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  margin-bottom: 32px;
  /* 39.2px */
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item h3 {
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 24px 0 24px 24px;
  background: #3e4a95;
  color: #fff;
  font-size: var(--16px);
  font-style: normal;
  font-weight: 700;
  line-height: 175%;
  margin-bottom: 12px;
  margin-left: 56px;
}

.faq-item p {
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  border-radius: 0 24px 24px 24px;
  border: 4px solid #35c5c0;
  background: #fff;
  color: #3e4a95;
  font-size: var(--16px);
  font-style: normal;
  font-weight: 400;
  line-height: 175%;
  margin-bottom: 12px;

  margin-right: 56px;
}

.accent {
  color: #fff;
  font-size: var(--16px);
  font-style: normal;
  font-weight: 700;
  line-height: 175%;
  background: #35c5c0;
  border-radius: 4px;
  padding: 0 4px;
}

/* FAQ 内の右下コーナー画像を固定配置（回転付き） */
#faq .section-frame__corner.right-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  height: auto;
  pointer-events: none;
  z-index: 10;
  rotate: calc(90deg);
}

/* 上: 左 */
#faq .hero-bg__bg--left-1 {
  left: 0;
  top: 16%;
  transform: translateY(-50%);
  background-image: url("../images/bg-left.svg");
  z-index: -1;
}

/* 中央: 右 */
#faq .hero-bg__bg--right-1 {
  right: 0;
  top: 30%;
  transform: translateY(-50%);
  background-image: url("../images/bg-right.svg");
  z-index: -1;
}

/* 下: 左 */
#faq .hero-bg__bg--left-2 {
  left: 0;
  bottom: 58%;
  transform: translateY(50%);
  background-image: url("../images/bg-left.svg");
  z-index: -1;
}

#faq .step-character-image.character1 {
  top: -30px;
  right: 9px;
}

#faq .step-character-image.character2 {
  bottom: 15px;
  right: -20px;
}

#faq .step-character-image.character3 {
  bottom: 15px;
  right: -20px;
}

#closing {
  padding: 56px 0;
  position: relative;
  background-color: #3e4a95;
  background-image: repeating-linear-gradient(
    135deg,
    #4a57a9 0,
    #4a57a9 4px,
    transparent 4px,
    transparent 16px
  );
  overflow: visible;
}

#closing .container {
  display: flex;
  width: 90%;
  padding: 40px 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #fff;
}
#closing .container .lp-frame__corner {
  border-radius: 8px 0;
}
.closing-text__head {
  color: #3e4a95;
  text-align: center;
  font-size: var(--20px);
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
}

.closing-text {
  color: #3e4a95;
  font-size: var(--16px);
  font-style: normal;
  font-weight: 400;
  line-height: 175%;
  text-align: left;
  padding: 0 18px;
}

.closing-text__bottom {
  color: #3e4a95;
  text-align: center;
  font-size: var(--14px);
  font-style: normal;
  font-weight: 700;
  line-height: 175%;
  margin-top: 8px;
}

#footer {
  margin-top: 32px;
  margin-bottom: 45px;
  text-align: center;
  color: #fff;
  font-size: var(--12px);
  font-style: normal;
  font-weight: 400;
  line-height: 175%;
}
#closing h2 {
  width: 75%;
  margin-bottom: 16px;
}
#closing .sub {
  margin-bottom: 16px;
}

#closing .character {
  width: 90%;
  margin: -25px auto 0;
  z-index: 2;
  position: relative;
}

#closing .character img {
  width: 80px;
  height: auto;
}

#floating-cta {
  background: #f6f7fa;
  box-shadow: 0 -4px 16px 0 rgba(0, 0, 0, 0.04);
}

#floating-cta .cta-button {
  width: 276px;
}

#floating-cta .cta-button img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
