* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #fff;
  background: #000;
  overflow-x: hidden;
}

body.menu-open,
.drawer,
.drawer-backdrop {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: auto;
}

:root {
  --wrap-max: 430px;
  --wrapW: min(100vw, var(--wrap-max));
  --left-slice: calc(50vw - var(--wrapW) / 2);
}

/* ===== 背景エリア ===== */
.video-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* 右側＝全面動画（下の層） */
.video-background .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  transform: translateZ(0);
  z-index: 0; /* ← 背面に固定 */
}

/* 左側画像（上の層）。境界を +2px オーバーラップ */
.video-background .bg-left {
  position: absolute;
  top: 0;
  left: 0;
  /* 誤: + -8px  → 正: + 2px（負値にならないよう max 付き） */
  width: calc(max(var(--left-slice), 0px) - 8px);
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  transform: translateZ(0);
  z-index: 1;
}

/* FOUC防止は残してOK（JSで必ず解除するように修正します） */
.lawyer-box .lawyer-item,
.lawyer-box .lawyer-text {
  opacity: 0;
  will-change: transform, opacity;
}

/* ロゴ */
.video-background .logo {
  position: absolute;
  top: calc(3vw + env(safe-area-inset-top));
  left: calc(3vw + env(safe-area-inset-left));
  width: clamp(180px, calc(var(--left-slice) * 0.35), 250px);
  height: auto;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 3px 9px rgba(146, 19, 151, 0.45));
  object-fit: contain;
}

/* ===== コンテンツ幅 ===== */
.wrap {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: var(--wrapW);
}

/* ===== 固定リンク ===== */
.fixed-links {
  position: fixed;
  bottom: calc(5vw + env(safe-area-inset-bottom));
  left: calc(3vw + env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1;
}

.fixed-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: opacity 0.3s;
}

.fixed-links a:hover {
  opacity: 0.7;
}

/* ===== 固定メッセージ ===== */
.fixed-message {
  position: fixed;
  top: 50%;
  right: calc(3vw + env(safe-area-inset-right));
  transform: translateY(-50%);
  color: #fff;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  text-align: right;
  z-index: 999;
  pointer-events: none;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* ===== トップ画像とキャッチ ===== */
.top-image-container {
  position: relative;
  width: 100%;
  height: auto;
}

.top-image-container img {
  display: block;
  width: 100%;
  height: auto;
}

.top-image-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.top-image-container .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

/* ===== 重ねる見出しブロック ===== */
.top-catch-container {
  position: relative;
  width: 100%;
  margin-top: 24px;
}

.catch-hand {
  display: block;
  width: 100%;
  height: auto;

  /* 右側をフェードアウト */
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.catch-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(86%, 520px);
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.catch-caption {
  position: absolute;
  top: clamp(12px, 2vw, 20px);
  left: clamp(12px, 2vw, 20px);
  color: #fff;
  font-weight: 400;
  font-size: clamp(12px, 2vw, 16px);
  line-height: 1.5;
  letter-spacing: 0.1rem;
  z-index: 3;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
  margin: 0;
}

/* ===== 女性画像と縦書き ===== */
.top-woman-container {
  position: relative;
  width: 100%;
}

.top-woman-container img {
  display: block;
  width: 100%;
  height: auto;
}

.woman-caption {
  position: absolute;
  top: 12%;
  right: 25%;
  color: #000;
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 400;
  line-height: 1.8;
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin: 0;
}

.catch-center {
  text-align: center;
  font-weight: 300;
  margin-top: 50px;
  margin-bottom: 30px;
}

/* ▼ ここから lawyer-box を入れ替え */
.lawyer-box {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 50px auto;
}

/* 画像は横一列（小さな画面では2列） */
.lawyer-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; /* 少し広めのすき間に */
  align-items: start; /* 段差が効くように上揃え */
}

@media (max-width: 600px) {
  .lawyer-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 画像カード */
.lawyer-item {
  position: relative;
  overflow: hidden; /* 角丸からはみ出さない */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  will-change: transform;
}

.lawyer-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  filter: brightness(0.6); /* ←ここで暗くする */
}

.lawyer-item:nth-child(1) {
  transform: translateY(14px);
}
.lawyer-item:nth-child(2) {
  transform: translateY(-10px);
}
.lawyer-item:nth-child(3) {
  transform: translateY(18px);
}
.lawyer-item:nth-child(4) {
  transform: translateY(-12px);
}

/* 小さい画面では段差を弱める/オフにする */
@media (max-width: 600px) {
  .lawyer-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .lawyer-item:nth-child(1) {
    transform: translateY(8px);
  }
  .lawyer-item:nth-child(2) {
    transform: translateY(-6px);
  }
  .lawyer-item:nth-child(3) {
    transform: translateY(8px);
  }
  .lawyer-item:nth-child(4) {
    transform: translateY(-6px);
  }
}

/* 画像の上に重なる中央テキスト */
.lawyer-overlay {
  position: absolute;
  inset: 0; /* 親 .lawyer-box 全体をカバー */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none; /* 下の画像クリックを妨げない */
  color: #fff;
  font-size: clamp(14px, 2.2vw, 16px);
  font-weight: 400;
  line-height: 1.8;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
  padding: 0 12px;
}

/* FOUC防止（アニメ前は非表示） */
.lawyer-box .lawyer-item,
.lawyer-box .lawyer-overlay {
  opacity: 0;
  will-change: transform, opacity;
}
/* ▲ ここまで lawyer-box を入れ替え */

/* ===== 悩みリスト ===== */
.troubles {
  width: 100%;
  margin: 32px 0 0;
}

.troubles-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 12px; /* スマホ余白 */
}

@media (min-width: 560px) {
  .troubles-list {
    gap: 18px;
    padding: 0;
  }
}

/* ガラス風の pill */
.trouble {
  position: relative;
  color: #111;
  text-align: center;
  font-size: clamp(12px, 3.9vw, 16px);
  line-height: 1.6;
  padding: 14px 18px;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* アニメ初期状態（JSでも上書きしますがFOUC防止） */
  opacity: 0;
  transform: translateY(8px);
}

/* ちょっと立体に見せる縁取り */
.trouble::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 8px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

/* ===== その悩みブロック ===== */
.problem-block {
  width: 100%;
  margin: 48px 0 64px;
  text-align: center;
}

.problem-block .catch-center {
  font-size: clamp(14px, 2.2vw, 20px);
  color: #fff;
  margin-bottom: 16px;
  font-weight: 400;
}

/* 画像＋テキストの重ね */
.problem-image {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
}

/* ←描画モードは “画像だけ” に適用 */
.problem-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  mix-blend-mode: exclusion; /* 画像のみ除外で合成 */
}

.problem-overlay-text {
  position: absolute;
  top: 15%;
  right: 5%;
  /* 位置合わせに transform は使わない：GSAPのyと競合させない */
  color: #fff;
  font-size: clamp(16px, 2.6vw, 16px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.85);
  mix-blend-mode: normal;
  z-index: 1;

  /* アニメ初期値（チラつき防止用の宣言だけ） */
  opacity: 0;
  will-change: transform, opacity;
}

/* 下のキャッチ */
.problem-bottom {
  margin-top: 16px;
  color: #fff;
  font-size: clamp(14px, 2.2vw, 16px);
  line-height: 1.7;
}
.problem-bottom strong {
  font-weight: 600;
  font-size: 1.1em;
}

.problem-bottom strong {
  opacity: 0; /* 初期は非表示 */
  transform: translateY(8px);
  will-change: transform, opacity;
}

/* Fallback: 古いブラウザで mix-blend-mode が効かない場合は少し暗く */
@supports not (mix-blend-mode: exclusion) {
  .problem-image img {
    filter: brightness(0.85);
  }
}

/* ===== 固定左画像＋右テキスト ===== */
.feature-sticky {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.fs-inner {
  display: grid;
  grid-template-columns: 40% 60%; /* ← ここを変更 */
  gap: clamp(12px, 3vw, 28px);
  align-items: stretch;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 0;
}

.fs-left {
  position: relative;
  height: 100svh; /* モバイルのアドレスバー対策 */
  overflow: visible; /* contain ならはみ出さないので隠さない */
  border-radius: 12px;
}

.fs-left img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: 100vh;
  object-fit: contain;
  object-position: left center;
}

.fs-right {
  position: sticky;
  top: 0;
  height: 100svh;
  padding-right: 10px;
  display: grid;
  place-items: center;
}

.fs-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 真ん中に固定 */
  width: min(36ch, 90%); /* 横幅を安全に制限（2行にしやすい）*/
  text-align: center;
  line-height: 1.8;
  color: #fff;
  opacity: 0;
  will-change: opacity, transform;
}

@media (max-width: 700px) {
  .fs-line {
    width: min(34ch, 92%);
    font-size: clamp(12px, 4.2vw, 14px);
  }
}

/* ===== サポートセクション ===== */
.support-section {
  /* 親(.wrap)の幅制限を受けても収まるように */
  width: min(100%, 900px);
  margin: 100px auto;
  text-align: center;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
}

/* タイトル（ロゴ + テキスト） */
.support-title {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.8rem;
  flex-wrap: nowrap; /* ← 改行させない */
}

.support-logo {
  height: clamp(56px, 14vw, 80px); /* ← 画面が狭いほど小さく */
  width: auto;
  object-fit: contain;
  flex: 0 0 auto; /* ← 縮ませない */
}

.support-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 300;
  white-space: nowrap; /* ← 文字を折り返さない */
  flex: 0 0 auto;
}

/* 以下はそのままでOK（テーブル等） */

/* 説明文 */
.support-intro {
  font-size: clamp(12px, 1.8vw, 14px);
  margin-top: 32px;
  margin-bottom: 32px;
  color: #ddd;
}

/* テーブル */
.support-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  font-size: clamp(13px, 1.6vw, 15px);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.support-table th,
.support-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
  vertical-align: top;
}

.support-table th {
  color: #ffccff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
}

.support-table td {
  color: #fff;
}

.support-table tr:last-child td {
  border-bottom: none;
}

/* スクリーンリーダー用ユーティリティ */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== 救われた方の声 ===== */
.voices-section {
  color: #fff;
  width: min(90%, 900px);
  margin: 60px auto 60px;
  font-family:
    "Noto Sans JP",
    system-ui,
    -apple-system,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

/* タイトル（画像＋テキスト横並び・下揃え） */
.voices-title {
  display: flex;
  justify-content: center;
  align-items: flex-end; /* 下揃え */
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.voices-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}
.voices-subtitle {
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 300;
}

/* リスト */
.voice-list {
  list-style: none;
  display: grid;
  gap: 28px;
  padding: 0;
  margin: 0;
}

/* 1件 */
.voice {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
}
@media (min-width: 640px) {
  .voice {
    grid-template-columns: 140px 1fr;
    gap: 20px;
  }
}

.voice-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.voice-body {
  line-height: 1.9;
}
.voice-quote {
  font-size: clamp(12px, 1.9vw, 14px);
  margin: 0 0 6px;
}
.voice-meta {
  font-size: clamp(10px, 1.6vw, 12px);
  color: #d7d7d7;
  margin: 0;
  letter-spacing: 0.02em;
}

/* ===== よくある質問 ===== */
.faq-section {
  color: #fff;
  width: min(90%, 900px);
  margin: 100px auto 0;
  font-family:
    "Noto Sans JP",
    system-ui,
    -apple-system,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

/* タイトル（ロゴ＋テキスト横並び・下揃え） */
.faq-title {
  display: flex;
  justify-content: center;
  align-items: flex-end; /* 下揃え */
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.faq-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}
.faq-subtitle {
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 300;
}

/* Q&A */
.faq-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.faq-item {
  display: block;
}
.faq-item dt {
  font-size: clamp(14px, 1.9vw, 16px);
  font-weight: 600;
  line-height: 1.9;
  margin: 0 0 4px;
}
.faq-item dd {
  margin: 0;
  padding-left: 1.2em; /* 矢印の分だけインデント */
  color: #ddd;
  font-size: clamp(13px, 1.8vw, 15px);
  line-height: 1.9;
  position: relative;
}
.faq-item dd::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
}

/* ====== メインページ内の About埋め込み ====== */
.about-embed {
  width: min(90%, 900px);
  margin: 70px auto;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  text-align: left;
}
.about-embed .about-h2 {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 600;
  margin: 70px 0 20px;
  text-align: center;
}
.about-embed .about-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
}
.about-embed th,
.about-embed td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: top;
  text-align: left;
  font-size: clamp(12px, 2vw, 14px);
}
.about-embed th {
  width: 30%;
  color: #ffccff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
}
.about-embed tr:last-child th,
.about-embed tr:last-child td {
  border-bottom: none;
}
.about-embed .about-team {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}
/* ===== PCでも1カラム（スマホと同じ縦配置）に統一 ===== */
.about-embed .about-team {
  display: grid;
  grid-template-columns: 1fr !important; /* ← 強制的に1カラム固定 */
  gap: 14px;
}

.about-embed .about-member {
  flex-direction: row; /* ← 画像とテキストを横並び（スマホと同じ） */
  align-items: flex-start;
}
/* ===== アクセス：PCでも縦並びに固定 ===== */
.about-embed .about-access {
  display: flex !important;
  flex-direction: column !important; /* ← 縦並びに変更 */
  align-items: center;
  gap: 20px !important; /* 適度な余白 */
}

.about-embed .about-map,
.about-embed .about-access__info {
  width: 100%;
  max-width: 600px;
  text-align: center; /* テキストを中央寄せに */
}

.about-embed .about-access__info p {
  margin: 4px 0;
  line-height: 1.8;
}


@media (min-width: 760px) {
  .about-embed .about-team {
    grid-template-columns: repeat(3, 1fr);
  }
}
.about-embed .about-member {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  align-items: flex-start;
}
.about-embed .about-avatar {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
}
.about-embed .about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-embed .about-role {
  font-size: 12px;
  color: #cfcfcf;
  margin: 0 0 2px;
}
.about-embed .about-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
}
.about-embed .about-bio {
  font-size: 12px;
  color: #ddd;
  margin: 0;
  line-height: 1.8;
}
.about-embed .about-access {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
@media (min-width: 820px) {
  .about-embed .about-access {
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
  }
}
.about-embed .about-map iframe {
  width: 100%;
  height: 300px;
  border-radius: 12px;
}
.about-embed .about-access__info {
  font-size: clamp(12px, 2vw, 14px);
  color: #ddd;
  line-height: 1.9;
}
.about-embed .about-cta {
  text-align: center;
  margin-top: 50px;
}
.about-embed .about-btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid #fff;
  border-radius: 9999px;
  color: #fff;
  text-decoration: none;
  font-size: clamp(14px, 2vw, 16px);
  transition: 0.25s;
}
.about-embed .about-btn:hover {
  background: #fff;
  color: #000;
}


/* CTA */
.faq-cta {
  text-align: center;
  margin-top: 26px;
  color: #eee;
  font-size: clamp(18px, 2vw, 22px);
}
/* ===== 最終セクション ===== */
.final-section {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 160px 20px;
  overflow: hidden;
}

.final-inner {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(40px);
}

.final-lead {
  font-size: clamp(14px, 2vw, 16px);
  color: #ccc;
  line-height: 2;
  margin-bottom: 40px;
}

.final-quote {
  font-size: clamp(18px, 3vw, 16px);
  font-weight: 500;
  margin-bottom: 80px;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.final-link {
  display: inline-block;
  font-size: clamp(16px, 2vw, 20px);
  padding: 14px 36px;
  border: 1px solid #fff;
  border-radius: 9999px;
  color: #fff;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
}

.final-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.final-link:hover {
  background: #fff;
  color: #000;
}
.final-link:hover::after {
  opacity: 1;
}

/* 背景の光粒 */
#final-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ===== フッター ===== */
footer {
  background: #000;
  text-align: center;
  padding: 2rem 0;
  color: #888;
  font-size: 0.9rem;
}

/* ===== SPは .wrap だけ見せる（<=700px） ===== */
@media (max-width: 700px) {
  /* ← video は残す */
  .video-background .bg-left,
  .video-background .logo,   /* ← これを追加！ */
  .fixed-links,
  .fixed-message,
  .seam-cover {
    display: none !important;
  }

  /* video 背景は残す */
  .video-background .bg-video {
    display: block !important;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
  }

  body {
    background: #000;
  }
  .wrap {
    width: var(--wrapW);
    margin: 0 auto;
  }
  .lawyer-box {
    width: 100vw;
    margin-left: calc(50% - 50vw); /* 画面端まで広げる定番テク */
    margin-right: calc(50% - 50vw);
    margin-top: 28px;
    margin-bottom: 28px;
  }

  /* 2カラム・均一なタイル、隙間は小さめ */
  .lawyer-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 12px; /* 端がピタッとしないよう内側余白 */
    box-sizing: border-box; /* 100vw 内で完結させる */
  }

  /* 各カードの高さを統一（比率指定）＆段差演出をオフ */
  .lawyer-item {
    aspect-ratio: 3 / 4; /* ここを好みで 4/5, 1/1 などに変更可 */
    border-radius: 12px;
    overflow: hidden;
    transform: none !important; /* nth-child の上下ズレを打ち消す */
  }

  /* 画像はタイルいっぱいにフィット */
  .lawyer-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 中央トリミングで統一 */
    object-position: center;
    border-radius: 0; /* 親が角丸なのでここは不要 */
  }

  /* 中央の重ねテキストもスマホ用に少し小さめ */
  .lawyer-overlay {
    padding: 0 16px;
    font-size: clamp(13px, 3.8vw, 15px);
  }

  /* ===== Hamburger ===== */
  .hamburger {
    position: fixed;
    top: clamp(12px, 3vw, 18px);
    right: clamp(12px, 3vw, 18px);
    width: 42px;
    height: 42px;
    border: 0;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 9999px;
    z-index: 1100; /* 背景動画より上 */
    display: grid;
    place-items: center;
    backdrop-filter: blur(4px);
    cursor: pointer;
  }
  .hamburger span,
  .hamburger span::before,
  .hamburger span::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    position: relative;
    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }
  .hamburger span::before {
    position: absolute;
    top: -6px;
  }
  .hamburger span::after {
    position: absolute;
    top: 6px;
  }

  /* ドロワー */
  .drawer {
    position: fixed;
    inset: 0;
    width: 78vw; /* 画像の雰囲気に近い幅 */
    margin-left: auto; /* 右寄せ */
    height: 100svh;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 1200;
    /* 半透明パープル＋ぼかし */
    background: linear-gradient(180deg, rgba(181, 109, 206, 0.6), rgba(118, 39, 158, 0.6));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-inline: 24px;
  }
  .drawer.open {
    transform: translateX(0);
  }

  .drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1190;
  }
  .drawer-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: clamp(180px, 25vw, 240px);
    height: auto;
    object-fit: contain;
  }

  /* 閉じる(X) */
  .drawer-close {
    position: absolute;
    top: clamp(14px, 3vw, 20px);
    right: clamp(14px, 3vw, 20px);
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .drawer-close::before,
  .drawer-close::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
  }
  .drawer-close::before {
    transform: rotate(45deg);
  }
  .drawer-close::after {
    transform: rotate(-45deg);
  }

  /* メニュー */
  .drawer-list {
    list-style: none;
    padding: 0 24px;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    text-align: left;
  }
  .drawer-list a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(16px, 4.6vw, 18px);
    letter-spacing: 0.02em;
  }
  .drawer-list a:active {
    opacity: 0.8;
  }

  /* 開いている間はハンバーガーを隠す＆ボディスクロール停止 */
  body.menu-open .hamburger {
    opacity: 0;
    pointer-events: none;
  }
  body.menu-open {
    overflow: hidden;
    height: 100svh;
  }
}

/* PCでも使えます。スマホだけにしたい場合はこのボタンを非表示に */
@media (min-width: 700px) {
  .hamburger {
    display: none;
  }
  .drawer,
  .drawer-backdrop {
    display: none !important;
  }
}

/* ===== LINE 友だち追加ボタン ===== */
.line-float {
  position: fixed;
  bottom: 50px;
  right: 50px;
  z-index: 2000;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #4cc764;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  overflow: visible;
  opacity: 0;
  transform: scale(0.8);
  animation: lineFadeIn 1s ease-out 0.5s forwards, lineFloat 3s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.line-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* アイコン中央配置 */
.line-icon {
  position: absolute;
  width: 70%;
  height: auto;
  z-index: 2;
}

/* 円周テキスト */
.line-circle-text {
  position: absolute;
  width: 100%;
  height: 100%;
  font-weight: 600;
  transform: rotate(0deg);
  animation: spinCircle 15s linear infinite;
  z-index: 1;
}

/* 円周テキストがゆっくり回転 */
@keyframes spinCircle {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 出現アニメーション */
@keyframes lineFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ゆらゆらアニメーション */
@keyframes lineFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.03);
  }
}

/* スマホ対応（位置・サイズアップ） */
@media (max-width: 700px) {
  .line-float {
    bottom: 16px;
    right: 16px;
    width: 80px;
    height: 80px;
  }
  .line-icon {
    width: 54%;
  }
  .line-circle-text text {
    font-size: 9px;
  }
}

/* === 横スクロール予防・メインページ版 ===================== */

/* 1) まずは全要素を border-box に統一 */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2) はみ出しがちな大枠をガード */
.wrap,
.top-image-container,
.top-catch-container,
.top-woman-container,
.lawyer-box,
.lawyer-row,
.lawyer-item,
.lawyer-overlay,
.troubles,
.troubles-list,
.problem-block,
.problem-image,
.problem-bottom,
.feature-sticky,
.fs-inner,
.fs-left,
.fs-right,
.fs-line,
.support-section,
.support-title,
.support-table,
.voices-section,
.voice-list,
.voice,
.faq-section,
.faq-list,
.final-section,
.final-inner {
  max-width: 100%;
}

/* 3) 埋め込みメディアは常に親幅以内に */
img, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 4) グリッドや内側余白で親幅を超えないよう保険 */
.lawyer-row,
.troubles-list,
.voice-list,
.faq-list,
.support-table {
  width: 100%;
  overflow-x: hidden;
}

/* 5) 背景レイヤは画面内で固定（はみ出し抑止） */
.video-background,
.video-background .bg-video,
.video-background .bg-left,
.logo {
  max-width: 100vw;
}

/* 6) モバイル時に特に影響出やすい所をもう一押し */
@media (max-width: 700px) {
  .wrap,
  .problem-image,
  .support-section,
  .voices-section,
  .faq-section,
  .final-section {
    padding-left: max(env(safe-area-inset-left), 0);
    padding-right: max(env(safe-area-inset-right), 0);
  }
}
/* ▼ lawyer・troubles・faq-section 内に縦スクロールが出ないようにする */
.lawyer-box,
.lawyer-row,
.troubles,
.faq-section {
  overflow: visible !important;   /* 内部スクロールを無効化 */
  max-height: none;               /* 不要な高さ制限を解除 */
  height: auto;                   /* 明示しておく（保険） */
}

/* 画像や要素の段差ではみ出してもスクロールを作らない */
.lawyer-item,
.troubles,
.faq-section {
  overflow: hidden;               /* 枠内で完結させる */
}

/* もし環境によってまだバーが出る場合（見た目だけ非表示） */
.lawyer-row,
.troubles,
.faq-section {
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge レガシー */
}

.lawyer-row::-webkit-scrollbar,
.troubles::-webkit-scrollbar,
.faq-section::-webkit-scrollbar {
  display: none;                  /* Chrome/Safari */
}
/* ▼ troubles / faq でも内側スクロールを出さない */
.troubles,
.troubles-list,
.trouble,
.faq-section,
.faq-list,
.faq-item {
  overflow: visible !important;   /* 内部スクロール禁止 */
  max-height: none !important;    /* どこかで付いた上限を無効化 */
  height: auto !important;        /* 念のため明示 */
}

/* 角丸ピルは切り抜きのためだけに overflow:hidden を維持 */
.trouble { overflow: hidden !important; }

/* まだ出る環境向けにスクロールバー自体を非表示（見た目対策） */
.troubles,
.troubles-list,
.trouble,
.faq-section,
.faq-list,
.faq-item {
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* 旧 Edge/IE */
}
.troubles::-webkit-scrollbar,
.troubles-list::-webkit-scrollbar,
.trouble::-webkit-scrollbar,
.faq-section::-webkit-scrollbar,
.faq-list::-webkit-scrollbar,
.faq-item::-webkit-scrollbar {
  display: none;                    /* Chrome/Safari */
}

/* すでに入れている lawyer の対策はそのままでOK */

/* 会社概要の前後にある final-section（上下の余白を完全にコンパクト化） */
.about-embed .final-section.final--about-top,
.about-embed .final-section.final--about-bottom {
  padding: clamp(32px, 6vw, 56px) 16px; /* 上下均等だけど少し浅め */
  margin: clamp(20px, 4vw, 32px) auto;
}

/* 内部テキストの間隔をさらに調整 */
.about-embed .final-section .final-lead {
  margin-bottom: clamp(8px, 1.6vw, 12px);
}
.about-embed .final-section .final-quote {
  margin-bottom: clamp(16px, 2.4vw, 20px);
}

/* final-link（ボタン）の下余白を縮める */
.about-embed .final-section .final-link {
  margin-bottom: 0; /* デフォルト余白をリセット */
}
.about-embed .final-section .final-inner {
  margin-bottom: 0; /* 内側全体の余白もリセット */
  padding-bottom: 0;
}

/* モバイルでも統一 */
@media (max-width:700px){
  .about-embed .final-section.final--about-top,
  .about-embed .final-section.final--about-bottom {
    padding: 24px 14px;
    margin: 14px auto;
  }
}
