/* =========================================================
   トップページ：FV（ファーストビュー）
   キャッチ・マーカー文・CTA・イラスト・導入実績バッジ
   ========================================================= */
/* 開いた瞬間に FV 全体が 1 画面に収まるよう、高さ＝画面の高さ − ヘッダー。
   上下余白は画面の高さに合わせて伸縮し、中身は上下中央に置く */
.fv {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: clamp(24px, 5vh, 100px) 90px;
  overflow: hidden;
}
.fv__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.fv__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1260px;
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  gap: 0;
}

/* ---- 左：テキスト＋CTA ---- */
.fv__left {
  width: 675px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.fv__catch {
  color: #fff;
  font-weight: 700;
  letter-spacing: .1em;
  display: flex;
  flex-direction: column;
}
.fv__catch em { font-style: normal; color: var(--yellow); }
.fv__catch .kutoten { letter-spacing: -.4em; }
.fv__catch-sm { font-size: clamp(20px, 2.22vw, 32px); line-height: 1.5; }
.fv__catch-lg { font-size: clamp(32px, 3.89vw, 56px); line-height: 1.2; }

.fv__marker { display: flex; flex-direction: column; gap: 8px; }
.fv__marker p { line-height: 0; }
.fv__marker-bar {
  display: inline-block;
  background: var(--bg-2);
  color: var(--main);
  font-size: clamp(16px, 1.67vw, 24px);
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 44px;
  padding: 0 5px;
}
.fv__marker em { font-style: normal; color: var(--accent); }

/* 「\」「/」は半角。和文フォントだと「\」が ¥ で表示されるため欧文フォントを指定する（バッジの .badge__slash と同じ） */
.fv__slash { font-family: "Helvetica Neue", Arial, sans-serif; }

.fv__lead {
  font-size: clamp(15px, 1.39vw, 20px);
  font-weight: 700;
  color: var(--bg);
  text-align: center;
  line-height: 1.7;
  letter-spacing: -.04em;
}

.fv__cta { width: 675px; max-width: 100%; }

/* ---- 右：イラスト ---- */
.fv__right {
  position: relative;
  width: 583px;
  flex-shrink: 0;
  margin-left: 2px;
}
.fv__illust {
  width: 582px;
  max-width: 100%;
  aspect-ratio: 582 / 486.575;
}
.fv__illust > img {
  width: 139.59%;
  height: 236.13%;
  left: -17.77%;
  top: -65.64%;
}

/* ---- 導入実績バッジ ---- */
.badge {
  position: absolute;
  top: -17px;
  left: 69.5%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--bg);
  border: 4.8px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 700;
}
.badge__inner { position: relative; width: 157px; height: 142px; }

.badge__stars {
  position: absolute;
  left: 52.9px;
  top: 0;
  display: flex;
  align-items: flex-start;
  gap: 2.1px;
}
.badge__stars img { width: 14.68px; height: 13.95px; }
.badge__stars img:nth-child(1),
.badge__stars img:nth-child(3) { margin-top: 4.2px; }

/* 「\ 導入実績 /」は円の中央に揃える */
.badge__label {
  position: absolute;
  left: 0;
  top: 24.5px;
  width: 157px;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}
/* 半角の「\」が ¥ で表示される和文フォントに当たらないよう欧文フォントを指定 */
.badge__slash { font-family: "Helvetica Neue", Arial, sans-serif; }

/* Figma：DIN Bold 57.053px / 件 Noto Sans JP Bold 20.988px */
.badge__num {
  position: absolute;
  left: 0;
  top: 30.82px;
  width: 157px;
  height: 77px;
  text-align: center;
  line-height: 1.5;
  white-space: nowrap;
}
.badge__din {
  font-family: "BadgeDIN", sans-serif;
  font-weight: 700;
  font-size: 54px;
}
.badge__tight { letter-spacing: -2.2821px; }
.badge__unit { font-size: 20.988px; margin-left: -2px; }

/* Figma：left 54px / top 111px、「破」は字間 -1.8px */
.badge__sub {
  position: absolute;
  left: 54px;
  top: 101px;
  font-size: 20px;
  line-height: 1.5;
  white-space: nowrap;
}
.badge__ha { letter-spacing: -1.8px; }
.badge__ex { font-size: 20.988px; }

/* ---- Responsive ---- */
@media (max-width: 1280px) {
  .fv { padding: clamp(24px, 5vh, 80px) 40px; }
  .fv__left { width: 54%; }
  .fv__right { width: 46%; }
  .fv__illust { width: 100%; }
  .fv__cta { width: 100%; }
  .badge { transform: scale(.85); transform-origin: top left; left: 66%; }
}

@media (max-width: 980px) {
  /* 縦積み。並びは キャッチ → マーカー文 → イラスト＋バッジ → リード文 → CTA。
     .fv__left を display: contents で畳み、中身を .fv__inner の子として order で並べ替える
     （HTML は PC と同じまま） */
  .fv { padding: 60px 24px; min-height: 0; }
  .fv__inner { flex-direction: column; align-items: center; gap: 30px; }
  .fv__left { display: contents; }
  /* キャッチ全体は中央に置き、各行は一番長い「新しいネットショップ」の左端にそろえる */
  .fv__catch { order: 1; text-align: left; }
  .fv__catch-sm, .fv__catch-lg { display: block; }
  .fv__marker { order: 2; max-width: 675px; }
  .fv__right { order: 3; width: 100%; max-width: 583px; margin: 18px 0; }
  .fv__lead { order: 4; }
  .fv__cta { order: 5; width: 100%; max-width: 675px; }
}

@media (max-width: 560px) {
  .fv { padding: 48px 18px; }
  /* 「3ステップで誰でも売れるショップが持てます。」を1行に収める。
     16px のときの行幅が文字サイズの約 22.6 倍なので、画面幅から逆算して文字を詰める
     （345px より狭い端末では 13px で頭打ちにし、2行に折り返す） */
  .fv__marker-bar {
    line-height: 1.8;
    padding: 2px 6px;
    font-size: clamp(13px, calc((100vw - 60px) / 22.6), 16px);
  }
  .fv__lead { font-size: 16px; }

  .badge {
    left: auto;
    right: 0;
    top: -6px;
    transform: scale(.6);
    transform-origin: top right;
  }
}
