/* =========================================================
   ランサーズライブ LP — Figma「A_260807」(node 673:3) 再現
   トークン・共通コンポーネントは design-system/ds.css を参照
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  /* モーダル開閉でスクロールバーが消えても本体がズレないよう領域を常に確保 */
  scrollbar-gutter: stable;
}
body {
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--c-text);
  background: #f2f2f2;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/* 見出しは h1〜h3 とも各クラス側で font を指定しているため、
   ブラウザ既定の拡大(h1=2em等)を打ち消して従来の見た目を保つ */
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
/* 視覚的には隠すが読み上げ・検索エンジンには渡すテキスト。
   英字キッカーを見出し(h2)にした際、日本語のセクション名を併記するのに使う */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
a { color: inherit; }
button { font: inherit; background: none; border: none; cursor: pointer; }

.page {
  max-width: 402px;
  margin: 0 auto;
  background: var(--c-bg);
  overflow: clip;
  position: relative;
}

/* 後日格納する画像のプレースホルダー地。
   404時はonerror属性で透明1px gifに差し替え、この背景色が見える */
.ph { background: #e9eef5; }

/* ---- ヘッダー(FV画像の上に重ねる) ---- */
.header {
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 18px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20; /* ロゴ/メニューはFVの幾何(z7)・コピー(z9)・ハート(z10)より常に最前面 */
}
.header .menu { display: flex; margin-left: auto; } /* 右上配置 */
.header .menu img { width: 33px; height: 33px; }
.header .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
}
.header .logo img { height: 100%; width: auto; }

/* ---- PC表示時の背面(Figma node 670:2) ---- */
.pc-bg, .pc-chrome { display: none; }

/* ---- ぼかしリボン背景 ----
   境界は530px。これ未満はページを全幅にしてSPと同じ見せ方(下の別ブロック)、
   530px以上で.pageを402pxの柱に戻し、空いた左右に背景を出す。
   以前は1080px以上に限定していたが、タブレット幅で無地グレーに落ちて
   不自然だったため下げた。
   左右のPC用UI(.pc-chrome)は横幅を要するので1080px以上のまま。 */
@media (min-width: 530px) {
  body { background: #fff; }
  .page {
    position: relative;
    z-index: 1;
    /* Figma: ドロップシャドウ X0 Y1 ぼかし20 広がり2 #000 20% */
    box-shadow: 0 1px 20px 2px rgba(0, 0, 0, .2);
  }
  .pc-bg {
    display: block;
    position: fixed;
    inset: 0;
    background: url('../design-system/assets/pc-bg-ribbons.webp') center / cover no-repeat;
    opacity: .7;
  }
  .pc-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    -webkit-backdrop-filter: blur(11px);
            backdrop-filter: blur(11px);
    background: rgba(255, 255, 255, .2);
  }
}

@media (min-width: 1080px) {
  .pc-chrome { display: block; }
  .header .menu { display: none; }
  .pc-logo {
    position: fixed;
    left: 76px;
    top: 56px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 37px;
  }
  .pc-logo img { height: 100%; width: auto; }

  .pc-menu {
    position: fixed;
    left: 81px;
    top: 200px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-5); /* 項目間隔32px */
  }
  .pc-menu a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    color: var(--c-ink);
    text-decoration: none;
  }
  .pc-menu a small {
    font-family: var(--font-jp);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: var(--ls-tight);
  }
  .pc-menu a:hover { color: var(--c-primary); }

  .pc-copyright {
    position: fixed;
    left: 81px;
    bottom: 40px;
    z-index: 2;
    font-size: 12px;
    color: var(--c-ink);
  }
}

/* ---- ページ全体のいいねハート(js/like-hearts.js) ----
   ビューポート全面に固定した透明canvas。タップは下の要素へ通す。
   ドロワー(z50)より手前、モーダル(z100)より後ろ
   (モーダル表示中はJS側でハートを出さない) */
.like-hearts {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

/* ---- ドロワーメニュー ---- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 20, 20, .45);
  display: flex;
  justify-content: center;
}
.drawer[hidden] { display: none; }
.drawer-panel {
  position: relative;
  width: 100%;
  max-width: 402px;
  background: #fff;
  padding: 64px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
}
.drawer-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  line-height: 1;
  padding: 8px;
  color: var(--c-primary);
}
.drawer-list { list-style: none; }
.drawer-list li { border-bottom: 1px solid #e8eef5; }
.drawer-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 4px;
  text-decoration: none;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--c-ink);
}
.drawer-list a small {
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-tight);
}
.drawer .btn-line { align-self: center; }

/* アンカー着地位置の余白 */
#what, #know, #support, #features, #flow, #faq, #news, #start { scroll-margin-top: 16px; }

/* ---- FV ---- */
.fv { position: relative; padding-top: 0; } /* 60px→0: ビジュアルをページ最上部から(2026-08-25) */
/* 人物切替モーション(FVCharacterCycle)のビジュアル領域。
   素材(assets/people/*.webp)は元データ(1882×3344)の上268px/下0pxを事前クロップして402:657に揃え、.pageの最大幅402px×DPR3=1206pxに縮小してある
   (人物の頭がスマホ枠の上端付近に来る位置で上を切っている)。
   bg/maskの位置ズレ防止のため、ここでobject-positionによる追加クロップはしない */
.fv-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 402 / 657;
  background: #e9eef5;
}
/* 静止画フォールバック(1人目)。モジュール準備完了までのつなぎも兼ねる */
.fv-visual .fv-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* モジュールは全画像プリロード完了(is-cycle-ready)までフェードで隠しておく。
   失敗時はopacity:0のままなので静止画が見え続ける */
#fv-character-cycle { opacity: 0; transition: opacity .4s ease; }
.fv-visual.is-cycle-ready #fv-character-cycle { opacity: 1; }

/* ---- FV: スマホ筐体はみ出し構図(2026-08-26) ----
   スマホ枠は素材(phone-mask.webp)に焼き込み済みのためCSS描画は廃止。
   レイヤー: bg(モジュール/静止画) → 人物+枠の切り抜き。
   幾何はmask合成で切り抜きの後ろに回り込み、コピー帯(z5)は最前面 */
.fv-pop {
  position: absolute;
  inset: 0;
  z-index: 6; /* 背面幾何(z5)より上・右下の前面幾何(z7)より下 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* タップは下のモジュールへ(いいねハート) */
}
.fv-copy span {
  z-index: 9; /* コピーは常に最前面(前面幾何z7・ハートz8より上) */
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 8px;
  background: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  letter-spacing: var(--ls-display);
  color: var(--c-ink);
  white-space: nowrap;
  box-shadow: var(--shadow-card);
}
/* FV下端からの位置。2行目を67→40pxに下げ、1行目も同じ27px分下げて
   行間8px(span高さ56px)を維持している(2026-08-24) */
.fv-copy .l1 { bottom: 104px; }
.fv-copy .l2 { bottom: 40px; }

/* ---- サービス終了のお知らせ(MV直下) ----
   通常コンテンツや広告と取り違えられないよう、淡いグレーの色面と濃い罫線で囲む */
.notice-band {
  margin: var(--sp-3) var(--sp-3) var(--sp-4);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #f5f5f5;
  border: 1px solid var(--c-grey80);
  color: var(--c-text);
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .02em;
}
.notice-band-title { font-weight: 700; }
/* --c-accent(#f1204a) はこの色面上でコントラスト3.8:1と小さい文字の基準に届かないため、同系統の濃い赤にする */
/* 【重要】を独立した行にして、タイトルが幅360pxの端末でも1行に収まるようにする */
.notice-band .is-alert { display: block; color: #cc1236; }
.notice-band-more {
  font-size: 13px;
  color: var(--c-primary-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.notice-band-more::after { content: " ›"; }
.notice-band:hover .notice-band-more { text-decoration-thickness: 2px; }

/* ---- イントロ(マーキー背景) ---- */
.intro { position: relative; padding: 2px 0 24px; }
.intro-marquee {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.intro-marquee i {
  position: absolute;
  left: -20px;
  right: -20px;
  height: 53px;
  background: url('../design-system/assets/marquee-fill.svg') repeat-x 0 0 / auto 100%;
  opacity: .9;
}
.intro-marquee .r1 { top: 0; }
.intro-marquee .r2 { top: 73px; background-image: url('../design-system/assets/marquee-outline-2.svg'); background-position-x: -250px; }
.intro-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 19px;
  padding-right: 20px;
}
.intro-bar {
  flex: none;
  width: 5px;
  height: 124px;
  background: var(--grad-main-v);
}
.intro-text {
  font-size: var(--fs-body-sm);   /* 13px→14px(2026-08-28) */
  font-weight: 700;
  line-height: 24px;
  /* ロゴ(58px)を廃してテキストに充当(2026-08-28)。
     バー5 + gap19 + 345 + 右padding20 = 389px でロゴがあった頃と総幅が同じ */
  width: 345px;
}
.intro-text b { color: var(--c-primary); }

/* ---- メインカラム(FV以下の共通リズム) ---- */
.main-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
/* FV下の定位置CTA(Figma準拠) */
.cta-static {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 21px;
}

/* 新規受付停止のお知らせ(Figma node 1008:343)
   ボタン形状は .btn-line を流用し、リンクなしのグレー表示にする */
.cta-paused {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 359px;
}
.btn-line.is-paused {
  padding: 12px 48px;
  background: var(--c-muted);
  font-size: var(--fs-body-sm);
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  cursor: default;
}
.cta-paused-note {
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  color: #000;
}
/* 「こちら」はサイトのメインブルーで、テキストリンクと分かるようにする */
.cta-paused-note a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* 狭い画面でCTA文言が折り返さないように調整 */
@media (max-width: 401px) {
  .btn-line {
    padding: 16px 32px;
    font-size: clamp(14px, 4.8vw, 18px);
    white-space: nowrap;
  }
}

/* ---- WE ARE ---- */
.weare {
  width: 351px;
  border-radius: var(--r-card);
}
.weare .weare-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 24px;
  line-height: 41px;
  letter-spacing: var(--ls-tight);
  color: #fff;
  text-align: center;
  width: 100%;
}
.weare .weare-body {
  font-size: var(--fs-body-sm);
  line-height: 2;
  letter-spacing: var(--ls-tight);
  color: #fff;
}

/* ---- WHAT IS LIVER ---- */
.what { width: 100%; }
/* グラデ枠線(左辺なし・右角丸32)は二重要素で表現 */
.what-card {
  position: relative;
  z-index: 2; /* はみ出したスマホを後続セクションの上に */
  margin-right: 20px;
  border-radius: 0 32px 32px 0;
  background: var(--grad-main-v);
  padding: 2px 2px 2px 0;
  filter: drop-shadow(var(--shadow-card));
}
.what-card-inner {
  border-radius: 0 30px 30px 0;
  background: #fff;
  padding: 32px 20px 32px 42px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.what-flex { display: flex; gap: 8px; align-items: flex-start; }
.what-flex .what-phone {
  width: 141px;
  height: 228px;
  object-fit: contain;
  object-position: bottom;
  flex: none;
  align-self: flex-end;
  margin-bottom: -50px; /* カード下辺からはみ出させる(Figma準拠) */
}
.what-text { flex: 1; min-width: 0; font-size: var(--fs-body-sm); line-height: 26px; letter-spacing: var(--ls-tight); }
.what-text b { color: var(--c-accent); }

/* ---- ライブ配信をもっと知る ---- */
.know { padding: 24px 22px 0; display: flex; flex-direction: column; gap: 15px; }
/* 吹き出し(Figma 744:6): カード幅いっぱい・尻尾は右寄り */
.know-chip { align-self: stretch; position: relative; margin-bottom: 8px; }
.know-chip .btn-chip { width: 100%; font-size: var(--fs-body); padding: 10px 16px; }
.know-chip .chip-arrow {
  position: absolute;
  left: 76%;
  bottom: -12px;
  width: 14px;
  height: 14px;
}
.know-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  filter: drop-shadow(var(--shadow-card));
}
.know-cards .card-data { width: 100%; align-items: center; gap: var(--sp-3); }
.kc-cap { width: 100%; display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.kc-cap .no {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: var(--fs-kicker);
}
.kc-cap .cap { font-size: var(--fs-body); font-weight: 700; line-height: 1.4; }
.kc-head {
  font-weight: 900;
  font-size: var(--fs-title-md);
  color: var(--c-primary);
  text-align: center;
  line-height: 1.1;
}
.kc-head .num { font-family: var(--font-en); }
.kc-head .ast { font-size: 10px; vertical-align: super; }

/* グラフ(拡大版・ラベル重ね) */
/* 2026-08-24: 画像を幅20px縮小（273→253 / 267→247）。高さは原寸比で追従させる。
   重ねているラベルは%指定なので、この縮小に自動でついてくる */
.graph { position: relative; width: 253px; height: 170px; flex: none; }
.graph > .g-base { position: absolute; inset: 0 0 auto 0; width: 253px; height: auto; }
.graph.is-earnings { width: 247px; height: 169px; }
.graph .g-full { display: block; width: 247px; height: auto; }
.graph .g-label {
  position: absolute;
  font-family: var(--font-en);
  font-size: 20px;
  transform: translateX(-50%);
  white-space: nowrap;
  line-height: normal;
}
.graph .g-note-1 { position: absolute; left: 26%; top: 9.8%; transform: translateX(-50%); font-size: 20px; font-weight: 700; color: var(--c-primary); white-space: nowrap; line-height: normal; text-align: center; }
.graph .g-note-1 .num { font-family: var(--font-en); font-weight: 500; font-size: 40px; }
.graph .g-note-1 .ast { font-size: 12px; }

/* 注記 */
.know-notes { display: flex; flex-direction: column; }

/* ---- SUPPORT / FEATURES パネル(全幅・上角丸のみ) ---- */
.support, .features { width: 100%; }
.panel-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: var(--fs-title-lg);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-tight);
  color: #fff;
}
.card .card-logo { height: 26px; width: auto; align-self: flex-start; }
.card .and-more {
  align-self: flex-end;
  font-family: var(--font-en);
  font-size: var(--fs-body-sm);
  letter-spacing: var(--ls-tight);
}

/* FEATURESのリストボタン: グラデ枠線(角丸なし) */
.features .btn-list {
  border: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--c-primary), var(--c-purple)) 1;
}
.btn-list .ico { font-size: var(--fs-body); }
.btn-list .plus { margin-left: auto; }

/* ---- FLOW(所属〜活動開始までの流れ) ----
   直前が FEATURES(青パネル)なので、ここは色面を足さず素の白セクションで受ける。
   FAQ が「罫線で区切った一覧」なのに対し、FLOW は「左の縦ラインで数珠つなぎ」にして
   隣り合う2つの白セクションが同じ見え方にならないようにしている */
.flow {
  width: 100%;
  padding: 12px 30px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.flow-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: var(--fs-title-lg);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-tight);
}
.flow-list {
  list-style: none;
  width: 100%;
  padding-left: 44px;    /* 連番(30px) + 本文までの間隔 */
  margin-top: var(--sp-1);
}
.flow-item { position: relative; }
.flow-item + .flow-item { margin-top: var(--sp-4); }
/* 連番。円の高さ(30px)と見出しの行ボックスを揃えて基線を合わせる */
.flow-num {
  position: absolute;
  left: -44px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-main-v);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: var(--fs-body-sm);
  line-height: 1;
}
/* 連番同士をつなぐ線。最後の 04 は到達点なので線を引かない */
.flow-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 34px;
  bottom: calc(var(--sp-4) * -1);
  width: 2px;
  border-radius: 1px;
  background: var(--c-rule);
}
.flow-step {
  display: flex;
  align-items: center;
  min-height: 30px;      /* 連番の円と天地を揃える */
  font-weight: 700;
  font-size: var(--fs-title-md);
  line-height: 1.4;
  letter-spacing: var(--ls-tight);
}
/* 最終ステップだけ強調して、直後のFAQ/CTAへの視線の着地点にする */
.flow-item.is-goal .flow-step { color: var(--c-accent); }
.flow-body {
  margin-top: 6px;
  font-size: var(--fs-body-sm);
  line-height: 1.9;
  letter-spacing: var(--ls-tight);
}

/* ---- FAQ ----
   余白リズムだけの素セクション。
   開閉は <details> のネイティブ挙動に任せ、JSは持たせない
   (JS無効でもすべての回答がテキストとして存在する状態を保つため) */
.faq {
  width: 100%;
  padding: 12px 30px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.faq-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: var(--fs-title-lg);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-tight);
}
.faq-list { width: 100%; }
.faq-item { border-bottom: 1px solid var(--c-rule); }
.faq-item:first-child { border-top: 1px solid var(--c-rule); }
.faq-item > summary {
  list-style: none;              /* 既定の三角マーカーを消す */
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.5;              /* 見出し相当 */
  letter-spacing: var(--ls-tight);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-q {
  flex: none;
  font-family: var(--font-en);
  color: var(--c-primary);
}
/* 開閉インジケータ(シェブロン)。開いたときだけ向きが変わる */
.faq-item > summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  margin-top: 7px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--c-primary);
  border-bottom: 2px solid var(--c-primary);
  transform: rotate(45deg);
  transition: transform .18s cubic-bezier(.4, .1, .3, 1);
}
.faq-item[open] > summary::after { transform: rotate(-135deg); }
.faq-a {
  padding: 0 0 var(--sp-3) calc(1em + var(--sp-2));  /* Qの字下げに揃える */
  font-size: var(--fs-body-sm);
  line-height: 1.9;              /* 日本語本文 */
  letter-spacing: var(--ls-tight);
}
.faq-note {
  padding: 0 0 var(--sp-3) calc(1em + var(--sp-2));
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--c-note);
}
@media (prefers-reduced-motion: reduce) {
  .faq-item > summary::after { transition: none; }
}

/* ---- バッジ型キッカー ---- */
.kicker.is-badge {
  background: var(--grad-text);
  color: #fff;
  padding: 1px 6px 1px 2px;
  align-self: flex-start;
}

/* ---- START HERE(Figma node 708:948) ---- */
.start-here {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 21px;
}
.start-here .kicker.is-badge { align-self: center; }
.sh-copy {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: var(--fs-title-md);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-tight);
  text-align: center;
}
.sh-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 359px;
}

/* ---- NEWS(Figma node 708:965・オレンジパネル) ---- */
.sec-panel.is-news { width: 100%; background: var(--grad-news); gap: 32px; }
.sec-panel.is-news::before { display: none; }
.news-card {
  width: 100%;
  background: #fff;
  border-radius: var(--r-card);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.news-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #000;
}
/* 最後の1件は下線を出さない(記事が1件のときに線だけ浮くため) */
.news-item:last-child { padding-bottom: 0; border-bottom: none; }
.news-item time { font-size: 13px; color: var(--c-muted); line-height: 1; }
.news-item p { font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: var(--ls-tight); }

/* ---- フッター(Figma node 708:1068) ---- */
.site-footer {
  width: 100%;
  /* main-col の外に出した(<main>を閉じるため)。
     以前 .main-col の gap:40px が作っていた上余白をここで補う */
  margin-top: 40px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, .4);
  padding: 32px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-logo { display: flex; align-items: flex-end; gap: 4px; height: 22px; }
.footer-logo img { height: 100%; width: auto; }

/* ロゴ2枚目「ライブ」は「ランサーズ」より小さいのが正しい比率。
   公式ロゴ img/logo.png の実測 166/207 = 0.802、
   SVG素材の固有比 17.4117/21.5891 = 0.806 と一致する。
   両方を height:100% にすると「ライブ」だけ約24%大きく表示されてしまうため、
   2枚目だけ縮率を指定する(語間も logo.png の比率 0.179 に合わせてある) */
.header .logo img + img,
.pc-logo img + img,
.footer-logo img + img { height: 80.6%; }
/* 1メニュー1行(SPナビと同じ) */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.footer-nav a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 22px;   /* 24px → 22px(2026-08-24) */
  line-height: 1;
  padding: 8px;
  text-decoration: none;
  letter-spacing: .04em;
}
.footer-nav a small {
  font-family: var(--font-jp);
  font-size: 11px;   /* 13px → 11px(2026-08-24) */
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-tight);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .04em;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid transparent;
  transition-property: border-color;
  transition-duration: .18s;
  transition-timing-function: ease-out;
}
.footer-links a:hover,
.footer-links a:focus-visible { border-bottom-color: currentColor; }

.footer-social {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-social a {
  display: block;
  color: inherit;
  opacity: .68;
  transition-property: opacity;
  transition-duration: .18s;
  transition-timing-function: ease-out;
}
.footer-social a:hover,
.footer-social a:focus-visible { opacity: 1; }
.footer-social svg { display: block; width: 20px; height: 20px; fill: currentColor; }

.copyright { font-size: 11px; text-align: center; }

/* ---- モーダル(ベース) ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4) var(--sp-3);
  background: rgba(20, 20, 20, .5);
}
.modal[hidden] { display: none; }

/* ---- ポップアップごとの識別色 ----------------------------------
   --modal-grad ×ボタンの色。「そのポップアップを開くボタン」を踏襲する
   --modal-mark 本文の強調ハイライト。文字に色は付けず太字+下半分に敷く
   既定は 90deg #007FD8→#C17CF4。.btn-grad(1日)も
   .features .btn-list(イベント/PR/ステップ)の枠線もこの色のため。
   お知らせだけ起動元が .news-item = NEWSパネル(オレンジ→黄)。 */
.modal {
  --modal-grad: var(--grad-main-h);
  --modal-mark: rgba(0, 127, 216, .22);
}
#modal-news,
#modal-closing {
  --modal-grad: var(--grad-news);
  --modal-mark: rgba(253, 140, 56, .28);
}

.modal-scroll b {
  font-weight: 700;
  color: inherit;
  background: linear-gradient(transparent 62%, var(--modal-mark) 62%);
}
/* 見出し系は帯や色を別に持つのでハイライトの対象外 */
.modal-scroll .md-title b,
.modal-scroll .step-title,
.modal-scroll .tl-head b { background: none; }

/* ---- SP: ポップアップ本文は14px ---- */
@media (max-width: 1079.98px) {
  .modal-scroll .md-body,
  .modal-scroll .step-list li {
    font-size: var(--fs-body-sm);
  }
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 330px; /* 全幅共通。402pxカラムの内側に収まる幅 */
  max-height: 86vh;
  display: flex;
  background: #fff;   /* 枠線は廃止(2026-08-21) */
  border-radius: var(--r-card);
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, .18));
}
/* PCでもスマホのカラム内に収める。480pxだと402pxカラムをはみ出していた(2026-08-21)
   → SPと同じ330pxに統一し、幅の分岐自体を廃止 */
.modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-5) var(--sp-4);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--modal-grad);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(var(--shadow-card));
}
.md-body {
  font-size: var(--fs-body);
  line-height: 25.6px;
  letter-spacing: 0;   /* -0.86px → 0(2026-08-24)。お知らせモーダルも同じクラス */
}
/* 本文の強調はモーダルの枠色に合わせる(デフォルト=青) */
.modal-img {
  width: 100%;
  /* 高さ固定だと幅の狭いSPで縦長になる(PC 1.76 → SP 1.14)。
     比率指定にして、どの幅でも同じ見え方にする */
  aspect-ratio: 426 / 242;
  height: auto;
  object-fit: cover;
  border-radius: var(--r-img);
}

/* ---- 1日の流れモーダル(タイムライン) ---- */
/* モーダルタイトル = セクション見出しトークンに統一 */
.md-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: var(--fs-title-md);      /* 全モーダル共通の見出し(20px) */
  line-height: 1.5;                   /* 36px固定だと16pxで2.25倍になるため相対値へ */
  letter-spacing: var(--ls-tight);
}

.md-tabs {
  display: flex;
  flex-direction: column;    /* Figma 890:958 = 縦積み(旧: 2列) */
  gap: 4px;
  width: 100%;
  background: var(--c-rule);
  border-radius: 28px;       /* Figma */
  padding: 4px;
}
.md-tab {
  display: flex;
  align-items: center;
  justify-content: center;   /* Figma 890:959 */
  gap: var(--sp-2);
  width: 100%;
  border-radius: var(--r-full);
  padding: 6px 10px;
  font-weight: 700;
  font-size: var(--fs-body-sm);
  line-height: 1.3;
  color: var(--c-grey80);
  transition: background .25s ease, color .25s ease;
}
.md-tab-face {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.md-tab.on { background: var(--grad-text); color: #fff; }   /* Figma 890:959 = #0268CC→#785FF2 */
.md-panel { display: none; flex-direction: column; gap: var(--sp-3); }
.md-panel.show { display: flex; }

.tl {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding-left: 28px;
  margin-top: var(--sp-2);
}
/* 縦ライン(グレー) */
.tl::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--c-rule);
}
.tl-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.tl-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* ドット(オレンジ) */
.tl-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-primary);
}
.tl-head { display: flex; align-items: center; gap: 10px; }
.tl-head time {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: var(--fs-title-md);   /* 22px→20px。トークン外の値を排除 */
  line-height: 18px;
  color: var(--c-grey80);
}
.tl-head b {
  font-size: var(--fs-body);       /* 時刻(20px)より一段下げて階層を作る */
  font-weight: 900;
  line-height: 25.6px;
  letter-spacing: var(--ls-tight);
  color: var(--c-primary-deep);   /* モーダル内の色を青系に統一(2026-08-21) */
}
/* 見出しは横100%。本文と写真だけを横並びにする(2026-08-21) */
.tl-body {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}
.tl-photo {
  flex: none;
  width: 74px;               /* 全枠で統一(2026-08-21) */
  height: 74px;
  object-fit: cover;
  border-radius: 50%;
}
.tl-note {
  flex: 1;
  min-width: 0;
  max-width: 420px; /* PCのワイドパネルで写真側まで伸びないよう制限 */
  font-size: var(--fs-body-sm);  /* スケジュールモーダルはPCも14px(2026-08-21) */
  line-height: 24.5px;
  letter-spacing: var(--ls-tight);
}

/* ---- 成長ステップモーダル(Figma 738:225・画像左/テキスト右) ---- */
.step {
  display: flex;
  flex-direction: column;
  gap: 20px;                 /* Figma 850:75 = 20px */
  width: 100%;
}
/* 見出し帯: バッジ + タイトルを画像の上に全幅で置く(Figma 850:69) */
.step-head {
  position: relative;        /* バッジを外に出すための基準 */
  display: flex;
  flex-direction: column;    /* Figma 878:340 = 縦(見出しのみ) */
  align-items: center;       /* Figma = 中央寄せ */
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  padding: 20px 8px 12px;    /* Figma 878:340 */
  border-radius: 4px;
  /* Figma: --grad-text の2色(#0268CC/#785FF2)を22%で敷いた帯 */
  background: linear-gradient(90deg, rgba(2, 104, 204, .22), rgba(120, 95, 242, .22));
}
.step-head .step-badge {
  position: absolute;        /* Figma 878:368 = 帯からはみ出す */
  left: 6px;
  top: -12px;
  flex: none;
}
.step-head .step-title { flex: none; min-width: 0; }
.step-row {
  display: flex;
  align-items: flex-start;   /* 写真を天地中央でなく上揃えに(2026-08-28)。
                                本文の行数がSTEPごとに違うため、中央だと
                                写真の頭の位置がSTEPごとにずれて見える */
  gap: var(--sp-3);          /* Figma 850:13 = 16px */
  width: 100%;
  /* SPでも横並びを保つため折り返さない */
}
/* ▼を廃したので、STEP同士は余白だけで切る。
   .modal-scroll の gap 16px に加算して 40px = ステップ内 24px の1.67倍 */
.step + .step { margin-top: var(--sp-4); }
.step-text {
  flex: 1;
  min-width: 0;             /* 200pxだと狭い幅で折り返していた */
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.step-img {
  flex: none;
  width: 32%;                /* Figma 137/426。SPでも横並びを保つため%指定 */
  height: auto;
  aspect-ratio: 137 / 152;   /* 高さ固定だと狭い幅で縦長に切れるため比率で持つ */
  object-fit: cover;
  border-radius: var(--r-img);
}
.step-badge {
  background: var(--grad-main-v);  /* Figma = #007FD8→#C17CF4 縦グラデ(旧: 単色) */
  color: #fff;
  border-radius: var(--r-full);
  padding: 5px 12px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: var(--fs-body-sm);    /* Figma = 14px (旧13px) */
  line-height: 1;
  white-space: nowrap;
}
.step-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: var(--fs-kicker);     /* 18px (2026-08-21。Figma 878:344の20pxから調整) */
  line-height: 1.4;                /* Figmaは22px(0.92倍)だが和文が詰まるため1.4 */
  letter-spacing: var(--ls-tight);
}
/* STEP内の本文はFigma指定で14px / #333 */
.step .md-body {
  font-size: var(--fs-body-sm);
  color: var(--c-grey80);
}
.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  width: 100%;              /* .step-row の外に出したので全幅で使う */
}
.step-list li {
  position: relative;
  padding-left: 14px;
  font-size: var(--fs-body-sm);   /* 本文(.md-body)と揃える */
  line-height: 25.6px;
  letter-spacing: var(--ls-tight);
  color: var(--c-grey80);
}
.step-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--c-primary);
}

/* ---- PR案件モーダル(フロー図・Figma 737:78) ---- */
/* ---- PR案件モーダル (Figma 885:518) ---- */
/* フロー図は書き出し画像1枚(img/Flow-Diagram-Container.png 696×407)。
   アーチ・ノード・矢印のCSSは不要になったため削除した。 */
.pr-flow {
  position: relative;
  width: 100%;
  /* 画像は左右に26px(4.0%)ずつ透明余白がある。108.7%に拡大して余白を追い出し、
     アーチの左右端を内容幅に合わせる。高さは元の可視域を保つためクリップする。 */
  aspect-ratio: 596 / 406;
  overflow: hidden;
}
.pr-flow img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 108.72%;            /* 648/596 */
  height: auto;
  max-width: none;           /* img{max-width:100%} が拡大を打ち消すため解除 */
}

/* ---- 下部: 紹介案件のイメージ ---- */
.pr-bottom {
  width: 100%;
  background: #f7f5ff;      /* Figma 885:678 */
  border-radius: 12px;
  padding: var(--sp-3);        /* Figma 890:905 = 16px */
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.pr-divider { display: flex; align-items: center; gap: var(--sp-2); width: 100%; }
.pr-divider i { flex: 1; height: 1px; background: rgba(120, 95, 242, .35); }
.pr-divider span {
  font-family: var(--font-jp);   /* Figmaは Inter だが Noto Sans に統一(指示) */
  font-weight: 700;
  font-size: var(--fs-body-sm);
  line-height: 1.2;
  white-space: nowrap;
}
.pr-cards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  width: 100%;
}
.pr-cards li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 6px;           /* Figma 890:913 */
  background: #fff;
  border-radius: var(--r-img);
  text-align: center;
}
.pr-card-ico { display: block; width: 48px; height: 48px; }
.pr-card-ico img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pr-cards p {
  /* Figma 890:920: サイズ・色は一律。強調は文中の一部だけ太字にする */
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: var(--fs-caption);   /* 10px */
  line-height: 14px;
  color: var(--c-grey80);
}
.pr-cards p b {
  font-weight: 700;
  color: inherit;                 /* 色は付けない */
  background: none;               /* .modal-scroll b のハイライトを打ち消す */
}
/* サイズはトークンに統一したので、PCでの拡大分岐は廃止(2026-08-21) */

/* ---- お知らせモーダル(NEWSに合わせてオレンジ枠) ---- */
.md-date { font-size: var(--fs-caption); color: var(--c-muted); line-height: 1; }
/* サービス終了のお知らせ: 見出し・問い合わせ窓口・署名 */
.md-subtitle {
  margin-top: var(--sp-2);
  padding-left: 10px;
  border-left: 4px solid var(--c-orange-deep);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.5;
}
.md-contact {
  padding: 12px var(--sp-3);
  background: #f5f5f5;
  border-radius: var(--r-img);
  font-size: var(--fs-body-sm);
  line-height: 1.7;
}
.md-contact dt { font-weight: 700; }
.md-contact a { color: var(--c-primary-deep); text-decoration: underline; text-underline-offset: 2px; }
.md-contact-note { font-size: 12px; }
.md-sign { font-size: var(--fs-body-sm); line-height: 1.7; text-align: right; }
.news-item { text-decoration: none; }

/* ---- SP: ヘッダー(ハンバーガー)を追従させる ----
   .page は max-width 402px の中央寄せなので、fixed にすると
   ビューポート基準になってカラムから外れる。左右50%+translateで合わせる。
   absolute→fixed でも領域は持たないままなので、レイアウトはずれない。 */
@media (max-width: 1079.98px) {
  .header {
    position: fixed;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
    max-width: 402px;
    transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
  }
  /* FVを通り過ぎてから地を敷く。FV上では従来どおり透過のまま */
  .header.is-stuck {
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 4px 12px rgba(30, 37, 51, .06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .header { transition: none; }
}

/* ---- 530px未満: 左右の余白を作らず全幅で見せる(SPと同じ) ----
   .page を402pxに絞ると左右にすき間が出るため、境界未満では上限を外す。
   追従ヘッダーとドロワーも .page に合わせて広げないと横位置がずれる。

   ★このブロックは必ずファイル末尾に置くこと。
     メディアクエリは詳細度を上げないので、同詳細度なら記述順で決まる。
     打ち消したい .header(SP追従ブロック内) と .drawer-panel はどちらも
     ファイル中ほどにあるため、前に置くと打ち消せず470px前後で
     ヘッダーだけ402pxのまま左右が切れる。 */
@media (max-width: 529.98px) {
  .page,
  .header,
  .drawer-panel { max-width: none; }
}
