@charset "UTF-8";
/* ==========================================================
   エルポタ LP  style.css
   Figma: 各種LP制作 / エルポタLP (PC 5076-445 / SP 5076-903)
   ========================================================== */

:root {
  --navy: #06216c;
  --blue: #0556d9;
  --accent: #006eff;
  --cyan: #0bf;
  --bg: #eff4fd;
  --gold: #fbbc05;
  --orange1: #f09819;
  --orange2: #ff512f;
  --login: #ff512f;
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Manrope", sans-serif;
  --font-inter: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-jp);
  color: var(--navy);
  background: #E7EFFB;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; }

.container {
  width: min(1050px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- 共通ボタン ---------- */
.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 390px;
  max-width: 100%;
  height: 70px;
  border-radius: 50px;
  background: linear-gradient(to top, var(--orange2) 21.4%, var(--orange1));
  color: #fff;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.27px;
  transition: opacity .25s, transform .25s;
}
.btn-cta:hover { opacity: .9; transform: translateY(-2px); }
.sp-fixed-cta { display: none; } /* PCでは非表示。SP(860px以下)で固定表示 */

/* ---------- セクション共通 ---------- */
.section { position: relative; }

.section-head.is-deco-roll { position: relative; }
.section-head.is-deco-roll::before {
  content: "";
  position: absolute;
  pointer-events: none;
  left: 77px;
  top: 60px;
  width: 150px;
  aspect-ratio: 1 / 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
}

.deco-roll-video {
  position: absolute;
  top: 60px;
  left: 77px;
  width: 150px;
  height: 150px;
  pointer-events: none;
  background-image: url('img/elpota_anime_1.png');
  background-repeat: no-repeat;
  background-size: 1500px 450px;
  animation: 
    roll-anim-x 0.67s steps(10) infinite,
    roll-anim-y 2.0s steps(3) infinite;
  mix-blend-mode: screen;
}

@keyframes roll-anim-x {
  from { background-position-x: 0; }
  to   { background-position-x: -1500px; }
}

@keyframes roll-anim-y {
  from { background-position-y: 0; }
  to   { background-position-y: -450px; }
}

.section-head.is-deco-benefit { position: relative; }
.section-head.is-deco-benefit::before {
  content: "";
  position: absolute;
  pointer-events: none;
  left: 140px;
  top: 138px;
  width: 130px;
  aspect-ratio: 1 / 1;
  background-image: url('img/robot-benefit.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
}

.section-head.is-deco-flow { position: relative; }
.section-head.is-deco-flow::before {
    content: "";
    position: absolute;
    pointer-events: none;
    left: 101px;
    top: 100px;
    width: 160px;
    aspect-ratio: 1 / 1;
    background-image: url(img/robot-flow.webp);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
}

.section-head {
  position: relative;
  text-align: center;
  padding-top: 85px;
}
.eyebrow {
  font-size: 25px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.25px;
}
.eyebrow.dim { color: rgba(255, 255, 255, .4); }
.sec-title {
  margin-top: 20px;
  font-size: 33px;
  font-weight: 600;
  letter-spacing: 0.99px;
  color: var(--navy);
}
.sec-title.white { color: #fff; }
.sec-title .big {
  font-family: var(--font-en);
  font-size: 75px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2.25px;
  line-height: 1;
}
.sec-title .big.gold { color: var(--gold); }
.sec-lead {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.66px;
  line-height: 40px;
  color: var(--navy);
}

/* ==========================================================
   Header
   ========================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 106px;
  padding: 0 38px;
}
.header-left { display: flex; align-items: center; gap: 60px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 150px; height: 51px; object-fit: contain; }
.logo span {
  font-family: "Cabin", var(--font-jp);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1px;
  color: #252b42;
}
.gnav { 
  display: flex; align-items: center; gap: 23px; 
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

}
.gnav a {
  padding: 12px 8px;
  font-family: "Roboto", var(--font-jp);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #0f172a;
  white-space: nowrap;
  transition: color .2s;
}
.gnav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 15px; }
.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 126px;
  padding: 12px 16px;
  border: 1.8px solid var(--login);
  border-radius: 40px;
  background: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--login);
  transition: background .2s, color .2s;
}
.btn-login:hover { background: var(--login); color: #fff; }
.btn-register {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 40px;
  background: linear-gradient(to bottom, #f1961a, #ff512f);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #fff;
  white-space: nowrap;
  transition: opacity .2s;
}
.btn-register:hover { opacity: .85; }

.hamburger {
  display: none;
  position: relative;
  width: 32px;
  height: 24px;
  border: 0;
  background: none;
  cursor: pointer;
}
.hamburger span {
  position: absolute;
  left: 4px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .3s, opacity .3s;
}
.hamburger span:nth-child(1) { top: 4px; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 24px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.drawer a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  border-bottom: 1px solid #eef2f8;
}
.drawer .btn-register {
  margin-top: 16px;
  border-bottom: 0;
  color: #fff;
  text-align: center;
}

/* ==========================================================
   Hero（背景敷き詰めレイアウト）
   ========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1440 / 919;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #E7EFFB;
}

/* 背面の背景画像 */
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  margin-top: -73px;
}

/* 前面コンテンツ */
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1360px, 92%); /* 1200px制限を解除して白枠の端まで広げる */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 20px 40px;    /* 上下の余白バランスを調整 */
}
/* 左側テキスト */
.hero-text {
  flex: 1;
  max-width: 580px;
  transform: translateY(clamp(-150px, -10vw, -40px));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 38px;
  border: 1px solid var(--navy);
  border-radius: 50px;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  background: #fff;
}

.hero-title {
  margin-top: 12px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.65px;
  line-height: 1.35;
}
.hero-title .t1 { font-size: 44px; }
.hero-title .t2 { font-size: 54px; font-weight: 900; }
.hero-title .t3 { font-size: 46px; color: var(--blue); }

.hero-lead {
  margin-top: 24px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.23px;
  line-height: 1.8;
  color: #415fb5;
}
.hero-lead em { font-style: normal; }
.hero-lead .mk-c { background: linear-gradient(transparent 20%, #b0fffe 20%); }
.hero-lead .mk-y { background: linear-gradient(transparent 62%, #fff5b0 62%); }

.hero-btn { 
  margin-top: 36px; 
}

/* 右側イラスト（前面のスマホやロボット） */
.hero-art {
  flex: 1.2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  /* 上方向へ持ち上げる（左側のテキストはそのまま） */
  margin-top: clamp(-240px, -16vw, -60px);
  z-index: 5;
}

.hero-art-img {
  width: 120%;
  max-width: 820px;
  height: auto;
  display: block;
  /* translateY(-20px); はそのままでOK */
  margin-top: 45px;
}

/* タブレット・スマホ対応 */
@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding: 60px 0 80px;
  }
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-btn {
    margin: 24px auto 0;
  }
  .hero-art-img {
    max-width: 360px;
  }
}

/* ==========================================================
   Features
   ========================================================== */
.features {
  z-index: 2;
  padding: 0px 0 0px;
}
.features .deco-roll4 {
    position: absolute;
    right: -190px;
    top: -170px;
    width: 710px;
    max-width: 41vw;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .1));
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 60px;
}
.fcard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 704px;
  padding: 34px 19px 0;
  background: #fff;
  border-radius: 17px;
  filter: drop-shadow(4px 4px 10px rgba(6, 33, 108, .08));
}
.fcard .num {
  font-family: var(--font-en);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.38px;
  color: var(--accent);
  line-height: 42px;
}
.fcard .icon {
    margin-top: 10px;
    height: 65px;
    width: auto;
    /* object-fit: contain; */
    padding: 5px 0px;
    margin: 20px 10px 10px 10px;
}
.fcard h3 {
  margin-top: 12px;
  font-size: 21px;
  letter-spacing: -0.21px;
  color: var(--navy);
  text-align: center;
  white-space: nowrap;
}
.fcard .desc {
  margin-top: 9px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.16px;
  line-height: 31px;
  color: var(--navy);
}
.fcard .shot {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 204px;
  height: 372px;
  border: 2px solid var(--navy);
  border-bottom: 0;
  border-radius: 21px 21px 0 0;
  overflow: hidden;
}
.fcard .shot img {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: none;
  object-fit: cover;
}

/* ==========================================================
   Benefit
   ========================================================== */
.benefit {
  margin-top: 0px;
  position: relative;
  overflow: hidden; /* 画面外へのはみ出し防止 */
  padding: 192px 0 150px;
  background: url("img/benefit-bg.png") center / 100% 100% no-repeat;
}
.benefit .wave-edge { display: none; }
.benefit .deco-robot {
  position: absolute;
  left: 170px;
  top: 55px;
  width: 100px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .25));
}
.benefit .deco-benefit-triangle {
    position: absolute;
    top: 289px;
    left: 62%;
    transform: translateX(180px);
    width: 257px;
    height: auto;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    opacity: 0.85;
}

.benefit .deco-spec {
  position: absolute;
  mix-blend-mode: screen;
  pointer-events: none;
}
.benefit .deco-spec.s1 { right: 30px; top: 115px; width: 95px; }
.benefit .deco-spec.s2 { right: -60px; top: 129px; width: 57px; transform: rotate(67deg); }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 338px);
  justify-content: center;
  gap: 19px;
  margin-top: 64px;
  padding-bottom: 90px;
}
.bcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 313px;
  padding: 31px 20px 0;
  background: #fff;
  border-radius: 17px;
}
.bcard h3 {
  font-family: var(--font-inter), var(--font-jp);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.84px;
  color: var(--navy);
  text-align: center;
}
.bcard p {
  margin-top: 18px;
  font-family: var(--font-inter), var(--font-jp);
  font-size: 16px;
  font-weight: 500;
  line-height: 31px;
  color: var(--navy);
  text-align: center;
}
.bcard .illo {
  margin-top: auto;
  height: 158px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================
   How To
   ========================================================== */
.howto { 
  position: relative;
  z-index: 2;
  margin-top: -102px;
  padding: 0 0 50px;
}
.howto .deco-roll7 {
  position: absolute;
  right: -77px;
  top: -162px;
  width: 238px;
  transform: rotate(-17.93deg);
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .15));
}
.device-block { position: relative; margin-top: 90px; }
.device-block:first-of-type { margin-top: 80px; }
.device-head { position: relative; z-index: 1; }
.device-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 360px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--blue);
}
.device-note {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.18px;
  color: var(--blue);
}
.deco-roll5 {
  position: absolute;
  right: 90px;
  top: 193px;
  width: 266px;
  aspect-ratio: 267.3 / 378.3;
  transform: rotate(-9.85deg);
  z-index: 0;
}
.deco-roll6 {
  position: absolute;
  left: 621px;
  top: 524px;
  width: 251px;
  filter: none !important;
  z-index: 0;
}
.step-row {
  position: relative;
  display: flex;
  gap: 1px;
  margin-top: 37px;
  z-index: 1;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 262px;
  height: 664px;
  flex-shrink: 0;
}
.step::before {
  content: "";
  position: absolute;
  inset: 0 3px;
  background: #fff;
  border-radius: 120px 120px 0 0;
}
.step-body {
  position: relative;
  width: 256px;
  height: 264px;
}
.step .badge {
  position: absolute;
  left: -1px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  border-radius: 100px;
  font-family: var(--font-en);
  font-size: 45px;
  font-weight: 800;
  letter-spacing: -0.45px;
  color: #fff;
}
.badge.grad-android { background: linear-gradient(132.6deg, #439bff 13.7%, #6366f1 87.5%); }
.badge.grad-ios { background: linear-gradient(132.6deg, #63d6fe 13.7%, #007cf3 87.5%); }
.step h4 {
  position: absolute;
  left: 50%;
  top: 96px;
  transform: translateX(-50%);
  width: 240px;
  font-size: 21px;
  letter-spacing: -0.21px;
  color: var(--navy);
  text-align: center;
  white-space: nowrap;
}
.step .txt {
  position: absolute;
  left: 15px;
  top: 149px;
  width: 225px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.16px;
  line-height: 31px;
  color: var(--navy);
}
.step .shot {
  position: relative;
  width: 204px;
  height: 371px;
  border: 2px solid var(--navy);
  border-bottom: 0;
  border-radius: 21px 21px 0 0;
  overflow: hidden;

}
.step .shot .shot-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.shot-android1 { border-color: #000; }
.step .shot .bg {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.shot-ios1 .bg, .shot-ios2 .bg { top: 0%; }
.shot-ios3 .bg { top: 0.2%; height: 119.6%; }
.shot-android2 .bg { top: 0; height: 100%; }
.step .shot .topbar {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 28px;
  object-fit: cover;
  object-position: 0 0;
}
.step .shot .bar {
  position: absolute;
  left: 5px;
  width: 178px;
  height: 12px;
  background: #f9fafc;
}
.step-ios .shot .bar { height: 14px; background: #f8fafc; }
.step .shot .tiny {
  position: absolute;
  left: 10px;
  width: 180px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: -0.26px;
  line-height: 12px;
  color: #000;
}
.step .shot .redbox {
  position: absolute;
  border: 2px solid red;
}
.shot-ios4 {
  background: #061e38; /* 画像読み込み前のチラつき防止（端末ヘッダーの紺色） */
}

.shot-ios4 .shot-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ==========================================================
   Flow
   ========================================================== */
.flow { 
  padding: 60px 0 40px; 
}
.flow .deco-robot-flow {
  position: absolute;
  left: 82px;
  top: 0;
  width: 153px;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .15));
}


  /* 不要になった旧絶対配置要素（もし残っていれば非表示） */
  .flow .deco-robot-flow {
    display: none;
  }

  /* カード一覧の余白調整 */
  .flow-grid {
    margin-top: 32px;
    gap: 16px;
  }

.flow-grid {
  display: flex;
  justify-content: center;
  gap: 19px;
  margin-top: 70px;
}
.flow-card {
  position: relative;
  width: 334px;
  height: 575px;
  flex-shrink: 0;
  background: url("img/flow-card-bg1.svg") top center / 100% 100% no-repeat;
  text-align: center;
}
.flow-card .badge {
  position: absolute;
  left: 9px;
  top: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 100px;
  background: linear-gradient(132.6deg, #0070f0 13.7%, #0058be 87.5%);
  font-family: var(--font-en);
  font-size: 45px;
  font-weight: 800;
  letter-spacing: -0.45px;
  color: #fff;
}
.flow-card h3 {
  padding-top: 120px;
  font-size: 21px;
  letter-spacing: -0.21px;
  color: var(--navy);
}
.flow-card .txt {
  margin-top: 24px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.16px;
  line-height: 31px;
  color: var(--navy);
}
.flow-card .detail {
  margin: 30px 24px 0;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.16px;
  line-height: 31px;
  color: var(--navy);
}
.flow-card .detail a {
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.flow-card .detail a:hover { color: var(--accent); }
.flow-card .qr-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.flow-card .qr-row img { width: 138px; height: 138px; }
.flow-card .qr-row p { padding-bottom: 20px; text-align: left; }
.flow-card .illo {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  width: 200px;
}

/* ==========================================================
   CTA
   ========================================================== */
.cta {
  position: relative;
  margin-top: 40px;
  padding: 150px 0;
  background: url("img/cta-bg.png") center / 100% 100% no-repeat;
}
.cta .wave-edge { display: none; }
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-bg .deco-pie { 
  position: absolute; left: 325px; top: 285px; width: 142px; 

}

.cta-bg .deco-torus-half { 
  position: absolute; left: 268px; bottom: 182px; width: 204px; 
}
.cta-bg .deco-torus { 
  position: absolute; right: 160px; top: 246px; width: 162px; 
}

.cta-bg .deco-pie,
.cta-bg .deco-torus-half {
  /* 色相を青・シアン方向にずらし、明るさと鮮やかさを上げる */
  /*filter: hue-rotate(-20deg) brightness(1.2) saturate(1.3);*/
}
.cta-bg .deco-torus {
  /* 乗算（または overlay / color-burn）で背景色と合成し、不自然な枠を見えなくする */
  mix-blend-mode: multiply;
  
  /* 少し濃い青になるようにコントラストや透明度を微調整 */
  filter: contrast(1.2);
  opacity: 0.6;
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  height: 718px;
}
.cta-hand {
  width: 403px;
  flex-shrink: 0;
  filter: drop-shadow(4px 4px 40px rgba(0, 0, 0, .2));
}
.cta-copy { text-align: center; }
.cta-copy .tag {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.75px;
  color: var(--navy);
}
.cta-copy h2 {
  margin-top: 30px;
  font-size: 35px;
  letter-spacing: 1.05px;
  line-height: 55px;
  color: var(--navy);
}
.cta-copy .btn-cta { margin: 47px auto 0; }

/* ==========================================================
   Footer
   ========================================================== */
.footer { padding: 60px 0 30px; }
.footer-top {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.footer-consult .lead {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.24px;
  line-height: 43px;
}
.footer-consult .sub {
  margin-top: 26px;
  font-size: 20px;
  letter-spacing: 0.2px;
  line-height: 43px;
}
.footer-robot { width: 240px; flex-shrink: 0; align-self: flex-start; }
.footer-contact { width: 452px; flex-shrink: 0; }
.footer-logo { width: 173px; }
.footer-contact .corp { margin-top: 18px; font-size: 20px; line-height: 1.4; }
.footer-contact .tel { margin-top: 10px; font-size: 39px; font-weight: 700; line-height: 1.4; }
.footer-contact .hours { margin-top: 10px; font-size: 20px; line-height: 1.4; }
.footer-divider {
  margin: 60px auto 0;
  border: 0;
  border-top: 1px solid var(--navy);
}
.footer-offices {
  display: flex;
  justify-content: center;
  gap: 69px;
  margin-top: 35px;
}
.office { width: 237px; }
.office h4 { font-size: 16px; line-height: 1.4; }
.office p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 2;
  opacity: .8;
}
.copyright {
  margin-top: 60px;
  font-size: 14px;
  text-align: center;
  opacity: .5;
}

.howto-deco-sm {
  display: none;
}

.br_sp{display: none;}

/* ==========================================================
   レスポンシブ（タブレット）
   ========================================================== */
@media (max-width: 1200px) {
  .cta-inner { 
    gap: 30px;
    height: 568px; 
  }
  .cta-hand { width: 340px; }
  .footer-robot { display: none; }
  .hero-text {
    transform: none;
  }
  .hero-art {
    margin-top: 0;
  }

}

@media (max-width: 1080px) {
  .gnav { display: none; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 246px)); justify-content: center; }
  .benefit-grid { grid-template-columns: repeat(auto-fit, 338px); }
  .deco-roll6 { display: none; }
  .step-row { overflow-x: auto; padding-bottom: 16px; }
}

/* ==========================================================
   レスポンシブ（SP）
   ========================================================== */
@media (max-width: 860px) {

  html { 
    scroll-padding-top: 80px; 
  
  }

  /* ---- Header ---- */
  .header-inner { height: 72px; padding: 0 20px; }
  .header-left { gap: 0; }
  .logo img { width: 100px; height: 32px; }
  .logo span { color: var(--navy); }
  .gnav { display: none; }
  .header-actions { gap: 12px; }
  .btn-register { display: none; }
  .btn-login { width: auto; padding: 8px 20px; font-size: 14px; }
  .hamburger { display: block; }
  .drawer.open { display: flex; }

  .br_sp{display: block;}
  /* ---- 共通 ---- */
  .eyebrow { font-size: 18px; }
  .sec-title { margin-top: 16px; font-size: 21px; letter-spacing: 0; }
  .sec-title .big { font-size: 40px; font-weight: 800; letter-spacing: 0; }
  .sec-lead { font-size: 16px; font-weight: 500; line-height: 1.6; margin-top: 16px; }
  .btn-cta { width: 352px; height: 60px; font-size: 20px; border-radius: 100px; }

  /* 並び順（SP） */
  main { 
    display: flex; flex-direction: column; 
    background: #F1F6FF;
  }
  .hero { order: 1; }
  .features { order: 2; }
  .benefit { order: 3; }
  .flow { order: 4; }
  .howto { order: 5; }
  .cta { order: 6; }
  .footer { order: 7; }

.hero {
    /* 画像の実サイズ比率を指定して、画像の高さ分エリアを確保 */
    aspect-ratio: 780 / 1958;
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 0;              /* 比率を完全一致させるため外側の上下パディングをリセット */
    background: transparent; /* 背景のグラデーションを無効化 */
    display: flex;
    align-items: flex-start; /* 上揃えでコンテンツを配置 */
    z-index: 10; 
    position: relative; /
  }

  .hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-bg-image picture,
  .hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;        /* または contain。比率が合っているため全体がぴったり収まります */
    object-position: top center;
  }

  .hero-inner {
    width: 100%;
    margin: 0 auto;
    /* 上端や下端の余白はここ（inner）で微調整してください */
    padding: 30px 0px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* カンプのようにイラストの下にボタンを配置したい場合 */
  .hero-art {
    order: 2;
    max-width: 320px;
    margin: 10px auto 0;
  }

  /* ヒーロー内のボタンはSPでは非表示（固定CTAは body 直下の .sp-fixed-cta で表示） */
  .hero-text .hero-btn { display: none; }

  /* SP用 固定CTA：main の外にあるので iOS でも他セクションに潜らない */
  .sp-fixed-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(24px + env(safe-area-inset-bottom)); /* iPhoneのホームバー分を考慮 */
    margin: 0 auto;
    width: 90%;
    max-width: 352px;
    z-index: 9999;
    -webkit-transform: translateZ(0); /* iOS Safariで独立レイヤー化 */
    transform: translateZ(0);
  }
  .sp-fixed-cta:hover { transform: translateZ(0); } /* タップ時のホバーでずれないように */
    .hero-lines { display: none; }
  .hero-lines-sp {
    display: block;
    position: absolute;
    top: -60px;
    left: -170px;
    width: 700px;
    aspect-ratio: 621 / 433;
    max-width: none;
  }
  .hero-blur-sp {
    display: block;
    position: absolute;
    top: -72px;
    left: -206px;
    width: 643px;
    aspect-ratio: 642.7 / 424.14;
    max-width: none;
    transform: rotate(7.03deg);
  }
  .hero-wave1 { top: calc(100% - 60px); }
  .hero-wave2 { top: calc(100% - 42px); }
  .hero-wave-rim {
    top: calc(100% - 62px);
    background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 20px);
  }
  .hero-wave1 {
    background: linear-gradient(180deg,
      rgba(204, 222, 255, .55) 0px,
      rgba(204, 222, 255, .88) 14px,
      #ccdeff 36px,
      #eff4fd 200px);
  }
  .hero-wave2 {
    background: linear-gradient(180deg,
      rgba(242, 246, 255, .78) 0px,
      #f2f6ff 20px,
      #eff4fd 140px);
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    width: calc(100% - 40px);
    gap: 30px;
  }
  .hero-text { max-width: 100%; }
  .hero-badge {
    width: auto;
    height: auto;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    align-self: flex-start;
  }
  .hero-title { margin-top: 12px; 
    line-height: 1.38; 
    text-align: left;
  }
  .hero-title .t1 { font-size: 30px; }
  .hero-title .t2 { font-size: 30px; }
  .hero-title .t3 { font-size: 30px; }
  .hero-lead {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.82;
    color: #3652a3;
    text-align: left;
  }
  .hero-btn { margin: 24px auto 0; }

  .hero-art {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    height: auto;
  }
  .hero-art-img {
    max-width: 100%;
    display: none;
  }

  .section-head.is-deco-roll::before {
    content: "";
    position: absolute;
    pointer-events: none;
    left: 77px;
    top: 60px;
    width: 150px;
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
  }

/* 1行目（ロボット＋FLOW）と2行目（見出し・リード文）を整列 */
  .section-head.is-deco-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  /* PC用の絶対配置を解除し、57px四方のアイコンとして左隣に配置 */
  .section-head.is-deco-flow::before {
    content: "";
    position: static;             /* absolute を解除 */
    display: inline-block;
    width: 57px;                  /* Figma指示値: 57px */
    height: 57px;
    margin-right: 8px;
    background-image: url('img/robot-flow.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
    order: 1;
  }

  /* 「FLOW」テキスト */
  .section-head.is-deco-flow .eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    font-weight: 800;
    margin-top: 0;
    order: 2;
  }

  /* 「かんたん3ステップで利用開始」（2行目・全幅） */
  .section-head.is-deco-flow .sec-title {
    order: 3;
    width: 100%;
    margin-top: 10px;
    font-size: 21px;
    letter-spacing: 0;
  }

  /* 「まずは、登録申請をします...」（3行目・全幅） */
  .section-head.is-deco-flow .sec-lead {
    order: 4;
    width: 100%;
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.6;
  }

  .section-head.is-deco-flow {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0;
  }

  /* FLOWテキスト：配置の基準点にする */
  .section-head.is-deco-flow .eyebrow {
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
  }

  /* 左のアイコン（::before）：FLOWの左外側に固定 */
  .section-head.is-deco-flow::before {
    position: absolute;
    top: 5%;
    right: 49%;
    transform: translate(calc(-100% - -44px), -55%);
    margin: 0;
  }

  /* ---- Features ---- */
  #features{
    padding: 0px 0 0px;
  }
  .features { 
    padding: 24px 0 40px;
  
  }
  /* 見出し親ブロックのパディングをリセット */
  .features .section-head {
    display: flex;
    justify-content: center; /* 横方向の中央寄せ */
    align-items: center;
    }
/* 親コンテナ：縦並びにして中央揃え */
  .features .section-head.is-deco-roll {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0;
  }

  /* FEATURESテキスト：配置の基準点にする */
  .features .eyebrow {
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
  }

  /* ロボットアイコン（動画div）：FEATURESの左外側に固定 */
  .features .deco-roll-video {
      position: absolute;
        right: 137%;
        top: 4%;
        transform: translateY(-50%);
        margin-right: -3px;
        width: 60px;
        height: 60px;
        left: 65px;
  }

  
  /* 疑似要素・アニメ要素の絶対配置を解除し、サイズを調整 */
/* 不要な透明の擬似要素を完全に非表示にする */
  .section-head.is-deco-roll::before {
    display: none !important;
  }

  /* 実際にロボットを表示しているアニメーション要素だけを配置 */
  .deco-roll-video {
  position: static;
    width: 60px;
    height: 60px;
    margin-right: 10px;
    background-size: 600px 180px; /* 元の1500x450を0.4倍にスケーリング */
    animation: 
      roll-anim-x-sp 0.67s steps(10) infinite,
      roll-anim-y-sp 2.0s steps(3) infinite;
    order: 1;
  }

  /* ロボットと「FEATURES」を横並びで配置 */
  .features .eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    margin-top: 0;
  }

  .features .eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    margin-top: 0;
  }

  /* アイコン＋テキストをグループ化して横並びにする擬似配置 */
  .section-head.is-deco-roll {
    /* 1行目: [ロボット] [FEATURES] を横並びに */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .deco-roll-video {
    order: 1;
  }

  .features .eyebrow {
    order: 2;
    margin-left: 0;
    margin-right: 0;
  }

  /* 2行目: 「エルポタでできる4つの便利機能」を下段に全幅で配置 */
  .features .sec-title {
    order: 3;
    width: 100%;
    margin-top: 12px;
    font-size: 22px;
    letter-spacing: -0.2px;
  }

  /* カード一覧の上の余白も詰める */
  .features .feature-grid {
    margin-top: 24px;
    gap: 16px;
  }

/* スマホ時は表示して、デザインに合わせて配置 */
  .howto-deco-sm {
    display: block;
    width: 100%;
    max-width: 320px; /* 画像が大きくなりすぎないように制限 */
    margin: 0 auto 20px; /* 中央寄せ＆下の「HOW TO」との余白 */
    text-align: center;
  }
  
  .howto-deco-sm img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-top: 45px;
  }

  .features .deco-roll4 { left: 20px; top: -30px; width: 81px; }

  .features .deco-roll4 {
    display: none;
  }

  .feature-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .fcard { height: auto; padding: 24px 19px 0; }
  .fcard h3 { font-size: 19px; }
  .fcard .desc { text-align: center; line-height: 27px; }
  .fcard .shot {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 20px;
    height: 368px;
  }
  .fcard .shot img { 
    height: 370px; 
  }

  /* ---- Benefit ---- */
  .benefit {
    margin-top: 0;
    padding: 90px 0 80px;
    background: linear-gradient(15.73deg, #2363c4 0%, #0061fe 97.4%);
  }
  .benefit .wave-edge {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
  }

  /* ---- Benefit (SP) ---- */
  .benefit {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: 60px 0 60px; /* 上下の余白をコンパクトに */
    background: linear-gradient(15.73deg, #2363c4 0%, #0061fe 97.4%);
  }


  .section-head.is-deco-benefit {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* BENEFITテキスト：アイコン配置の基準点にする */
  .section-head.is-deco-benefit .eyebrow {
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
  }

  /* 左のアイコン（::before）をBENEFITの左外側に固定 */
  .section-head.is-deco-benefit::before {
    position: absolute;
    /* BENEFITの左端の外側に配置 */
    right: 50%;
    /* テキストの横幅の半分 ＋ 余白分だけ左へずらす */
    transform: translate(calc(-100% - 45px), -50%); 
    top: 50%;
    margin: 0;
  }
  
  /* スマホ画面では幅が狭く文字と被ってしまうため非表示 */
  .deco-benefit-triangle {
    display: none;
  }

  /* 右上の円錐デコレーション */
.deco-benefit-triangle {
  position: absolute;
  top: 110px;
  /* 画面幅が変わっても .container(1050px) の右端から一定の位置をキープ */
  right: calc(50% - 525px);
  width: 250px;
  height: auto;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen; /* 黒を透明化して青い背景に馴染ませる */
  opacity: 0.9;
}

/* 1行目（ロール紙＋BENEFIT）と2行目（大見出し）を整列 */
  .section-head.is-deco-benefit {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  /* PC用の絶対配置を解除し、インラインのアイコンとして左隣に配置 */
  .section-head.is-deco-benefit::before {
    content: "";
    position: relative;
    display: inline-block;
    width: 65px;
    height: 60px;
    /* margin-right: 19px; */
    background-image: url(img/robot-benefit.webp);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.1));
    order: 1;
    top: 70px;
    left: 30px;    
  }

    .section-head {
        padding-top: 0px;
    }

  /* 「BENEFIT」テキスト */
  .section-head.is-deco-benefit .eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-top: 0;
    order: 2;
  }

  /* 「アプリを使う3つのメリット」（2行目・全幅） */
  .section-head.is-deco-benefit .sec-title {
    order: 3;
    width: 100%;
    margin-top: 10px;
    font-size: 21px;
    letter-spacing: 0;
  }

  /* カンプ右側にある円錐装飾（小さくして右上へ配置） */
  .benefit .deco-benefit-triangle {
    display: block;               /* 非表示を解除 */
    position: absolute;
    right: -10px;
    top: 40px;
    width: 90px;
    height: auto;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    opacity: 0.8;
  }

  /* カード一覧の上の余白を調整 */
  .benefit-grid {
    margin-top: 30px;
    gap: 16px;
    padding-bottom: 0;
  }


  .benefit .wave-edge.top { top: -1px; aspect-ratio: 390 / 67; }
  .benefit .wave-edge.bottom { bottom: -1px; aspect-ratio: 390 / 56; }
  .benefit .deco-robot { left: 45px; top: -25px; width: 57px; }
  .benefit .deco-spec.s1 { right: 40px; top: -30px; width: 43px; }
  .benefit .deco-spec.s2 { right: 8px; top: -30px; width: 29px; }
  .benefit-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .bcard { height: auto; padding: 30px 20px 20px; border-radius: 16px; }
  .bcard h3 { font-size: 20px; font-weight: 700; letter-spacing: 0; }
  .bcard p { margin-top: 16px; font-weight: 400; }
  .bcard .illo { margin-top: 20px; height: 140px; }

  /* ---- Flow ---- */
  .flow { padding: 20px 0; }
  .flow .deco-robot-flow { left: 90px; top: -10px; width: 57px; }
  .flow-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
  }
  .flow-card { max-width: 100%; }
  .flow-card:nth-child(n+2) { height: 502px; }
  .flow-card .badge { width: 80px; height: 80px; font-size: 30px; letter-spacing: -0.3px; }

  /* ---- How To ---- */
  .howto { padding: 80px 0; }
  .howto .deco-roll7 { right: 16px; top: -60px; width: 89px; transform: rotate(0.12deg); 
            display: none;
  }
  .device-block, .device-block:first-of-type { margin-top: 40px; }
  .deco-roll5, .deco-roll6 { display: none; }
  .device-tag { width: 100%; font-size: 16px; letter-spacing: -0.16px; }
  .device-note { font-size: 15px; text-align: center; }
  .step-row {
    gap: 7px;
    margin-top: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    /* 左右両方のコンテナ余白(20px)を打ち消して画面全幅まで広げる */
    margin-right: -20px;
    margin-left: -20px;

    /* 初期表示の左端位置を保ちつつ、スクロール時は画面端まで流す */
    padding-left: 20px;   /* 最初のカードの開始位置をコンテナに合わせる */
    padding-right: 20px;  /* 最後のカードまでスクロールした時の右端余白 */
    padding-top: 8px;
    padding-bottom: 16px;
  }

  /* ---- CTA ---- */
  .cta {
    margin-top: 0;
    padding: 100px 0 80px;
    background: linear-gradient(9.06deg, #60d1fe 0%, #4ca8fe 97.4%);
  }
  .cta .wave-edge {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
  }
  .cta .wave-edge.top { top: -1px; aspect-ratio: 390 / 67; }
  .cta .wave-edge.bottom { bottom: -1px; aspect-ratio: 390 / 56; }
  .cta-bg .deco-pie { left: 30%; top: auto; bottom: 130px; width: 93px; }
  .cta-bg .deco-torus-half { left: 2px; bottom: 64px; width: 139px; }
  .cta-bg .deco-torus { 
    right: 18px; top: 12px; width: 69px; 
    z-index: 10;
    position: absolute;
    right: 18px;
    top: 12px;
    width: 69px;
    z-index: 10;

    /* ▼ ここから追加（通常のくっきりした表示に戻す） ▼ */
    mix-blend-mode: normal; /* 乗算を解除 */
    opacity: 1;             /* 不透明度を100%にする */
    filter: none;

  }
  .container {
    width: min(1050px, 100% - 40px);
    margin-inline: auto;
  }


  .cta-inner { flex-direction: column; gap: 24px; }
  .cta-hand { width: 295px; order: 2;         margin-top: -70px;}
  .cta-copy { order: 1; }
  .cta-copy .tag { font-size: 20px; font-weight: 400; color: #fff; }
  .cta-copy h2 { margin-top: 14px; font-size: 21px; line-height: 1.6; letter-spacing: 0; }
  .cta-copy .btn-cta { display: none; }

  /* ---- Footer ---- */
  .footer-consult{
    margin: auto;
  }

  .footer { padding: 40px 0; background: #fff;         padding-bottom: 100px !important;}
  .footer-top { flex-direction: column; align-items: flex-start; gap: 32px; }
  .footer-consult .lead { font-size: 20px; line-height: 2; text-align: center; width: 100%; }
  .footer-consult .sub { margin-top: 8px; font-size: 16px; line-height: 33px; text-align: center; width: 100%; }
  .footer-robot { display: none; }
  .footer-contact { width: 100%; margin-top: 20px;}
  .footer-logo { width: 120px; }
  .footer-contact .corp { margin-top: 20px; font-size: 15px; font-weight: 700; }
  .footer-contact .tel { font-size: 30px; font-weight: 800; }
  .footer-contact .hours { font-size: 15px; }
  .footer-divider { margin-top: 40px; }
  .footer-offices { flex-direction: column; gap: 32px; margin-top: 32px; }
  .office { width: 100%; }
  .office p { margin-top: 8px; line-height: 25px; }
  .copyright { margin-top: 40px; }

}

@media (max-width: 400px) {
  .btn-cta { width: 100%; }
}
