/* ============================================================
   トップページテンプレート (page-vg-top.php)
============================================================ */

.vg-top {
  --vg-top-c-primary: #00377f;
  --vg-top-c-primary-dark: #002a61;
  --vg-top-c-primary-light: #10b0cd;
  --vg-top-c-accent: #00377f;
  --vg-top-c-accent-dark: #002a61;
  --vg-top-c-text: #333;
  --vg-top-c-muted: #666;
  --vg-top-c-line: #d4d4d4;
  --vg-top-c-line-strong: #9e9e9e;
  --vg-top-c-bg-soft: #ffffff;
  --vg-top-c-bg-alt: #ffffff;
  --vg-top-c-box: #ffffff;
  --vg-top-radius-sm: 6px;
  --vg-top-radius-md: 12px;
  --vg-top-radius-lg: 16px;
  /* 2026-10-01：ボタンの形をトップ（.vgf-btn）に合わせて角丸4pxに。
     ピル型のままにしたいもの（番号バッジなど）は各所で個別に指定する */
  --vg-top-radius-pill: 4px;
  --vg-top-c-cta: #ffffff;
  --vg-top-c-cta-hover: #e8eff9;
  --vg-top-c-cta-text: #00377f;
  --vg-top-c-tint: #d6e2f3;

  /* 文字サイズ：調和数列ベース (N=8, 基準=1.125rem=18px / 全体を12.5%拡大)
     L4=4rem(64px・H1強調用にスケール外で拡大) / L3=1.8rem(28.8) / L2=1.5rem(24) / L1=1.286rem(20.6)
     M=1.125rem(18) / S1=1rem(16) / S2=0.9rem(14.4) / S3=0.818rem(13.1) / S4=0.75rem(12) */
  --fs-l4: 4rem;
  --fs-l3: 1.8rem;
  --fs-l2: 1.5rem;
  --fs-l1: 1.2857rem;
  --fs-m:  1.125rem;
  --fs-s1: 1rem;
  --fs-s2: 0.9rem;
  --fs-s3: 0.8182rem;
  --fs-s4: 0.75rem;

  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--vg-top-c-text);
  line-height: 1.7;
  font-size: var(--fs-s1);
}

.vg-top a { transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.vg-top img { max-width: 100%; height: auto; display: block; }

/* ===== FV (First View) — 左:テキスト+ロゴ背景 / 右:写真カルーセル / 下:強み3項目 ===== */
.vg-top-fv {
  position: relative;
  background-image:
    linear-gradient(120deg, #00377f 0%, #0b4f9c 60%, #0b6aa8 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--vg-top-c-line-strong);
  padding: 32px 0;
}

/* ネイビー背景に乗るFVテキストは白に */
.vg-top-fv__kicker,
.vg-top-fv__title,
.vg-top-fv__lead {
  color: #ffffff !important;
}

.vg-top-fv__inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === 上段：2カラム === */
.vg-top-fv__row-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

/* --- 左：テキスト --- */
.vg-top-fv__left {
  min-height: 280px;
  padding: 24px 0;
  overflow: hidden;
}

/* テキスト本体 */
.vg-top-fv__copy {
  position: relative;
  z-index: 1;
}

.vg-top-fv__kicker {
  font-size: var(--fs-s2);
  letter-spacing: 0.08em;
  color: var(--vg-top-c-muted);
  margin: 0 0 12px;
}

.vg-top-fv__title {
  font-size: var(--fs-l4);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: #00377f;
}

.vg-top-fv__lead {
  margin: 18px 0 0;
  font-size: var(--fs-m);
  line-height: 1.85;
  color: #333;
}


.vg-top-fv__lead-br {
  display: inline;
}

@media (max-width: 1180px) {
  .vg-top-fv__lead-br { display: none; }
}

.vg-top-fv__buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.vg-top-fv__btn {
  min-height: 64px;
  padding: 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: var(--fs-m);
  letter-spacing: 0.04em;
  font-weight: 700;
  transition: all 0.25s ease;
}

.vg-top-fv__btn--primary {
  background: var(--vg-top-c-cta);
  color: var(--vg-top-c-cta-text);
  border: 1px solid #ffffff;
}

.vg-top-fv__btn--primary:hover {
  background: var(--vg-top-c-cta-hover);
  border-color: var(--vg-top-c-cta-hover);
  color: var(--vg-top-c-cta-text);
  box-shadow: 0 8px 20px rgba(0, 20, 60, 0.3);
}

.vg-top-fv__btn--line {
  border: 1px solid #333;
  color: #222;
  background: rgba(255, 255, 255, 0.4);
}

.vg-top-fv__btn--line:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #fff;
  border-color: var(--vg-top-c-primary);
}

/* --- 右：写真カルーセル（4枚自動切替） --- */
.vg-top-fv__right {
  display: flex;
  align-items: stretch;
}

.vg-top-fv__carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1950 / 1176;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: var(--vg-top-radius-md);
}

.vg-top-fv__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
  border-radius: var(--vg-top-radius-md);
  transition: opacity 0.8s ease;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.vg-top-fv__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.36) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.52) 100%);
  z-index: 1;
}

.vg-top-fv__slide.is-active {
  opacity: 1;
}

.vg-top-fv__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 参考UIに合わせた右下テキスト */
.vg-top-fv__slide-copy {
  position: absolute;
  right: 24px;
  bottom: 26px;
  z-index: 2;
  max-width: min(560px, 82%);
  color: #fff;
  text-align: right;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.38);
}

.vg-top-fv__slide-label {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: var(--fs-s4);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.vg-top-fv__slide-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: var(--fs-m);
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
}

.vg-top-fv__slide-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-s3);
  line-height: 1.55;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ドットページネーション（画像下中央） */
.vg-top-fv__dots {
  position: absolute;
  left: 50%;
  bottom: -34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 3;
  transform: translateX(-50%);
  width: max-content;
}

.vg-top-fv__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: #d8d8d8;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: none;
}

.vg-top-fv__dot:hover {
  background: #9f9f9f;
}

.vg-top-fv__dot.is-active {
  background: #222;
  transform: scale(1.05);
}

.vg-top-fv__dot:focus-visible,
.vg-top-fv__play:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.vg-top-fv__play {
  width: 22px;
  height: 22px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  background: #fff;
  color: #111;
  line-height: 1;
  cursor: pointer;
}

.vg-top-fv__play .material-icons-round {
  font-size: 15px;
  line-height: 1;
}

.vg-top-fv__play:hover {
  border-color: #d8d8d8;
  color: var(--vg-top-c-primary);
}

@media (max-width: 767px) {
  .vg-top-fv__carousel { aspect-ratio: 4 / 5; margin-bottom: 38px; }
  .vg-top-fv__slide-copy {
    left: 16px;
    right: 16px;
    bottom: 18px;
    max-width: none;
    text-align: left;
  }
  .vg-top-fv__slide-title { font-size: var(--fs-s1); white-space: normal; }
  .vg-top-fv__slide-desc {
    font-size: var(--fs-s3);
    -webkit-line-clamp: 4;
  }
  .vg-top-fv__dots { bottom: -30px; gap: 10px; }
}


/* ===== セクション共通 ===== */
.vg-top-sec {
  margin: 56px auto 0;
  max-width: 1600px;
  padding: 0 24px;
}

.vg-top-sec-head {
  margin: 0 0 22px;
}

.vg-top-sec-head__lab {
  font-size: var(--fs-s3);
  color: var(--vg-top-c-accent);
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0;
}

.vg-top-sec-head__title {
  font-size: var(--fs-l3);
  color: var(--vg-top-c-primary);
  margin: 4px 0 0;
  font-weight: 700;
  line-height: 1.4;
}

.vg-top-sec-head__sub {
  font-size: var(--fs-s1);
  color: var(--vg-top-c-muted);
  margin: 8px 0 0;
}

.vg-top-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--vg-top-c-muted);
  padding: 40px 16px;
  font-size: var(--fs-s1);
  margin: 0;
}

/* ===== 新着記事＋サイドCTA ===== */
.vg-top-news-wrap {
  display: grid;
  /* 相談案内とカテゴリーを読みやすい幅で表示する */
  grid-template-columns: minmax(0, 1fr) clamp(340px, 26.4vw, 380px);
  gap: 40px;
}

/* === 新着記事：混合グリッド（1 Big + 2 Mid + 3 Sm 均等） === */
.vg-top-magazine {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr auto;
  grid-template-areas:
    "big big mid1"
    "big big mid2"
    "sm1 sm2 sm3";
  gap: 20px;
}

/* 位置割り当て（投稿順で自動配置） */
.vg-top-mag-card:nth-child(1) { grid-area: big; }
.vg-top-mag-card:nth-child(2) { grid-area: mid1; }
.vg-top-mag-card:nth-child(3) { grid-area: mid2; }
.vg-top-mag-card:nth-child(4) { grid-area: sm1; }
.vg-top-mag-card:nth-child(5) { grid-area: sm2; }
.vg-top-mag-card:nth-child(6) { grid-area: sm3; }

/* === 共通カード（背景なし・サムネのみ角丸） === */
.vg-top-mag-card {
  background: transparent;
  display: flex;
  flex-direction: column;
}

.vg-top-mag-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vg-top-mag-card__thumb {
  position: relative;
  background: var(--vg-top-c-box);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--vg-top-radius-md);
}

.vg-top-mag-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.vg-top-mag-card:hover .vg-top-mag-card__thumb img {
  transform: scale(1.04);
}

.vg-top-mag-card__cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 55, 127, 0.7);
  border: none;
  border-radius: var(--vg-top-radius-sm);
  font-size: var(--fs-s3);
  padding: 3px 10px;
  color: #ffffff;
  font-weight: 600;
  z-index: 1;
}

.vg-top-mag-card__body {
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.vg-top-mag-card__meta {
  font-size: var(--fs-s3);
  color: var(--vg-top-c-muted);
  margin: 0;
}

.vg-top-mag-card__title {
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
  color: var(--vg-top-c-text);
}

.vg-top-mag-card__link:hover .vg-top-mag-card__title {
  color: var(--vg-top-c-primary);
}

/* === サイズ別タイトル === */
/* Big は2行分の高さを占めるので、サムネはグリッドが決めた残スペースを埋める */
.vg-top-mag-card--big .vg-top-mag-card__link {
  height: 100%;
}

.vg-top-mag-card--big .vg-top-mag-card__thumb {
  aspect-ratio: auto;
  flex: 1 1 0;
  min-height: 0;
}

.vg-top-mag-card--big .vg-top-mag-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vg-top-mag-card--big .vg-top-mag-card__body {
  padding: 14px 0 0;
  flex: none;
}

.vg-top-mag-card--big .vg-top-mag-card__title {
  font-size: var(--fs-l1);
}

.vg-top-mag-card--mid .vg-top-mag-card__title {
  font-size: var(--fs-m);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vg-top-mag-card--sm .vg-top-mag-card__body {
  padding: 10px 0 0;
}

.vg-top-mag-card--sm .vg-top-mag-card__title {
  font-size: var(--fs-s1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* レスポンシブ */
@media (max-width: 900px) {
  .vg-top-magazine {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "big big"
      "mid1 mid2"
      "sm1 sm2"
      "sm3 sm3";
  }
}

@media (max-width: 600px) {
  .vg-top-magazine {
    grid-template-columns: 1fr;
    grid-template-areas:
      "big"
      "mid1"
      "mid2"
      "sm1"
      "sm2"
      "sm3";
  }
}

/* Featured */
/* 新着記事セクション専用：背景クリーム色 */
.vg-top-sec.vg-top-news-section {
  background: #fafcfd;
  max-width: none;
  padding: 56px 0;
  margin-top: 0;
}

.vg-top-news-section .vg-top-news-wrap,
.vg-top-news-section .vg-top-sec-head {
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
  box-sizing: border-box;
}

/* 個別記事カード（共通：白・角丸8px） */
.vg-top-feature {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--vg-top-radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* カード内の本文：内側に padding */
.vg-top-feature__meta,
.vg-top-feature__title {
  padding-left: 20px;
  padding-right: 20px;
}

.vg-top-feature__title {
  padding-bottom: 20px;
}

.vg-top-feature__ribbon {
  display: inline-block;
  background: var(--vg-top-c-accent);
  color: #fff;
  font-size: var(--fs-s3);
  padding: 4px 14px;
  letter-spacing: 0.12em;
  font-weight: 700;
  align-self: flex-start;
  margin-bottom: 12px;
}

.vg-top-feature__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.vg-top-feature__thumb {
  background: var(--vg-top-c-box);
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}

.vg-top-feature__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vg-top-feature__cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  border: 1px solid var(--vg-top-c-line);
  font-size: var(--fs-s3);
  padding: 3px 12px;
  color: var(--vg-top-c-primary);
  font-weight: 600;
}

.vg-top-feature__meta {
  font-size: var(--fs-s3);
  color: var(--vg-top-c-muted);
  margin: 14px 0 6px;
}

.vg-top-feature__title {
  font-size: var(--fs-l1);
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--vg-top-c-text);
}

.vg-top-feature__link:hover .vg-top-feature__title {
  color: var(--vg-top-c-primary);
}

.vg-top-feature__lead {
  font-size: var(--fs-s2);
  color: var(--vg-top-c-muted);
  line-height: 1.85;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article list（白カード化） */
.vg-top-articles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: none;
}

.vg-top-article {
  border-bottom: none;
  background: #ffffff;
  border-radius: var(--vg-top-radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vg-top-article__link {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.vg-top-article__link:hover .vg-top-article__title {
  color: var(--vg-top-c-primary);
}

.vg-top-article__thumb {
  background: var(--vg-top-c-box);
  width: 110px;
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: var(--vg-top-radius-sm);
  border: 1px solid var(--vg-top-c-line);
  overflow: hidden;
  flex-shrink: 0;
}

.vg-top-article__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vg-top-article__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.vg-top-article__meta {
  font-size: var(--fs-s4);
  color: var(--vg-top-c-muted);
  margin: 0 0 4px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.vg-top-article__cat {
  background: #fff;
  border: 1px solid var(--vg-top-c-line);
  padding: 1px 6px;
  font-size: var(--fs-s4);
  color: var(--vg-top-c-primary);
  font-weight: 600;
}

.vg-top-article__title {
  font-size: var(--fs-s2);
  font-weight: 700;
  line-height: 1.55;
  color: var(--vg-top-c-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* More link */
.vg-top-more {
  text-align: center;
  margin: 28px 0 0;
}

/* 形・色・ホバー・矢印はトップページの .vgf-btn（css/vgf-base.css）にそろえる。
   ここでは横幅だけ指定する */
.vg-top-more__link {
  min-width: 320px;
}

/* Side */
.vg-top-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vg-top-side-cv {
  background-image:
    linear-gradient(120deg, #00377f 0%, #0b4f9c 60%, #0b6aa8 100%);
  background-size: cover;
  background-position: center;
  border: none;
  border-radius: var(--vg-top-radius-md);
  padding: 24px 20px;
  text-align: center;
  overflow: hidden;
}

.vg-top-side-cv__title {
  display: block;
  font-size: var(--fs-s1);
  margin-bottom: 8px;
  line-height: 1.6;
  color: #fff;
  font-weight: 700;
}

.vg-top-side-cv__text {
  font-size: var(--fs-s3);
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
}

.vg-top-side-cv__btn {
  display: block;
  background: var(--vg-top-c-cta);
  color: var(--vg-top-c-cta-text);
  border: none !important;
  padding: 13px;
  font-size: var(--fs-s1);
  font-weight: 700;
  text-decoration: none;
}

.vg-top-side-cv__btn:hover {
  background: var(--vg-top-c-cta-hover);
  border-color: transparent;
  color: var(--vg-top-c-cta-text);
}

.vg-top-side-cat {
  background: var(--vg-top-c-bg-soft);
  border: 1px solid var(--vg-top-c-line);
  border-radius: var(--vg-top-radius-md);
  padding: 16px;
}

.vg-top-side-cat__lab {
  font-size: var(--fs-s3);
  color: var(--vg-top-c-muted);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: 0.05em;
}

.vg-top-side-cat__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vg-top-side-cat__list li {
  border-bottom: 1px dashed var(--vg-top-c-line);
}

.vg-top-side-cat__list li:last-child {
  border-bottom: none;
}

.vg-top-side-cat__list a {
  display: block;
  padding: 8px 0 8px 16px;
  color: var(--vg-top-c-text);
  text-decoration: none;
  font-size: var(--fs-s2);
  position: relative;
}

.vg-top-side-cat__list a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--vg-top-c-primary);
  font-weight: 700;
}

.vg-top-side-cat__list a:hover {
  color: var(--vg-top-c-primary);
}

/* ===== ABOUT（このメディアを運営する value gate） ===== */
/* セクション全幅：ネイビーのグラデーション（FVと同じ背景） */
.vg-top-about {
  margin: 0;
  max-width: none;
  background-image:
    linear-gradient(120deg, #00377f 0%, #0b4f9c 60%, #0b6aa8 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  padding: 72px 24px;
}

/* 内側の白カード：強みセクションと幅を統一 */
.vg-top-about__inner {
  display: block;
  background: #ffffff;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px;
  box-sizing: border-box;
  border-radius: var(--vg-top-radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.14);
}

.vg-top-about__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
  gap: 32px;
  align-items: start;
}

.vg-top-about__intro {
  min-width: 0;
}

.vg-top-about__visual {
  margin-top: 42px;
  background: #eef4f8;
  border: 1px solid rgba(0, 55, 127, 0.12);
  border-radius: var(--vg-top-radius-md);
  padding: 34px;
  overflow: hidden;
}

.vg-top-about__visual img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
  display: block;
}

.vg-top-about__lab {
  font-size: var(--fs-s3);
  color: var(--vg-top-c-accent);
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0 0 10px;
}

.vg-top-about__title {
  font-size: var(--fs-l3);
  margin: 0 0 18px;
  line-height: 1.45;
  color: var(--vg-top-c-primary);
  font-weight: 700;
}

.vg-top-about__lead {
  margin: 0;
  font-size: var(--fs-s1);
  color: var(--vg-top-c-text);
  line-height: 1.95;
}

.vg-top-about__lead + .vg-top-about__lead {
  margin-top: 12px;
}

.vg-top-about__lead strong {
  color: var(--vg-top-c-text);
  font-weight: 700;
}

.vg-top-about__lead .vg-top-em {
  color: var(--vg-top-c-primary);
}

.vg-top-about__features {
  width: 100%;
  max-width: 410px;
  justify-self: end;
  margin: 100px 0 0;
  padding: 0;
  border-top: 1px solid rgba(0, 55, 127, 0.22);
}

.vg-top-about__features ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vg-top-about__features li {
  position: relative;
  padding: 10px 0 10px 28px;
  margin: 0;
  border-bottom: 1px solid rgba(0, 55, 127, 0.16);
}

.vg-top-about__features li:last-child {
  border-bottom: 1px solid rgba(0, 55, 127, 0.16);
}

.vg-top-about__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--vg-top-c-primary);
}

.vg-top-about__features li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 19px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.vg-top-about__features strong {
  display: block;
  color: var(--vg-top-c-primary);
  font-size: var(--fs-s2);
  line-height: 1.45;
  margin: 0 0 2px;
}

.vg-top-about__features span {
  display: block;
  color: var(--vg-top-c-text);
  font-size: var(--fs-s3);
  line-height: 1.75;
}

/* ===== 採用支援の流れ：タイムライン ===== */
.vg-flow {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 20px;
  padding-top: 0;
  border-top: none;
}

.vg-flow__caption {
  grid-column: 1 / -1;
  position: static;
  transform: none;
  margin: 0 0 2px;
  color: var(--vg-top-c-primary);
  font-size: var(--fs-s2);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.vg-flow__step {
  position: relative;
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  min-height: 0;
}

.vg-flow__step::before {
  content: "";
  position: absolute;
  display: none;
}

.vg-flow__step:not(:last-of-type)::after {
  display: none;
}

.vg-flow__step--final::before {
  display: none;
}

.vg-flow__num {
  color: var(--vg-top-c-primary);
  font-size: var(--fs-s4);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  font-family: inherit;
  margin: 0 0 10px;
}

.vg-flow__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: none;
  margin: 0 0 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 55, 127, 0.12);
  border-radius: var(--vg-top-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vg-flow__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.vg-flow__step--07 .vg-flow__image img {
  transform: scale(1.22);
}

.vg-flow__image--text {
  background: #ffffff;
  color: var(--vg-top-c-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.vg-flow__image--text span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 48px;
  padding: 8px 14px;
  background: var(--vg-top-c-tint);
  border-radius: var(--vg-top-radius-sm);
  font-size: var(--fs-s3);
  line-height: 1.35;
}

.vg-flow__name {
  font-size: var(--fs-s1);
  font-weight: 700;
  color: var(--vg-top-c-primary);
  margin: 0 0 8px;
  line-height: 1.45;
  min-height: 1.45em;
}

.vg-flow__sub {
  margin: -4px 0 8px;
  font-size: var(--fs-s4);
  line-height: 1.5;
  color: var(--vg-top-c-primary);
  font-weight: 700;
}

.vg-flow__desc {
  font-size: var(--fs-s3);
  color: var(--vg-top-c-text);
  line-height: 1.75;
  margin: 0;
}

.vg-flow__arrow {
  display: none;
}

@media (max-width: 1100px) {
  .vg-top-about__inner { padding: 40px; }
  .vg-top-about__body { grid-template-columns: 1fr; gap: 24px; }
  .vg-top-about__features { max-width: none; justify-self: stretch; margin-top: 0; }
  .vg-top-about__visual { padding: 26px; }
  .vg-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }
  .vg-flow__step::before,
  .vg-flow__step:not(:last-of-type)::after { display: none; }
}

@media (max-width: 600px) {
  .vg-top-about { padding: 40px 16px; }
  .vg-top-about__inner { padding: 28px 22px; gap: 24px; }
  .vg-top-about__title { font-size: var(--fs-l1); }
  .vg-top-about__lead { font-size: var(--fs-s1); }
  .vg-top-pc-br { display: none; }
  .vg-top-about__visual { padding: 20px; }
  .vg-flow { grid-template-columns: 1fr; }
}

/* ===== 人気記事 ===== */
.vg-top-sec.vg-top-rank-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 56px 24px;
  background: #fafcfd;
}

.vg-top-rank-section > .vg-top-sec-head,
.vg-top-rank-section > .vg-top-rank-board,
.vg-top-rank-section > .vg-top-more,
.vg-top-rank-section > .vg-top-empty {
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

.vg-top-rank-board {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) repeat(2, minmax(230px, 0.82fr));
  grid-template-rows: repeat(2, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.vg-top-rank-card {
  min-width: 0;
}

.vg-top-rank-card--1 { grid-column: 1; grid-row: 1 / span 2; }
.vg-top-rank-card--2 { grid-column: 2; grid-row: 1; }
.vg-top-rank-card--3 { grid-column: 3; grid-row: 1; }
.vg-top-rank-card--4 { grid-column: 2; grid-row: 2; }
.vg-top-rank-card--5 { grid-column: 3; grid-row: 2; }
.vg-top-rank-card--6,
.vg-top-rank-card--7,
.vg-top-rank-card--8 { display: none !important; }

.vg-top-rank-card__link {
  position: relative;
  display: block;
  height: 100%;
  min-height: 240px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0, 55, 127, 0.16);
  border-radius: var(--vg-top-radius-md);
  box-shadow: 0 10px 28px rgba(32, 33, 31, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vg-top-rank-card__link:hover {
  border-color: rgba(0, 55, 127, 0.34);
}

.vg-top-rank-card--1 .vg-top-rank-card__link {
  min-height: 500px;
}

.vg-top-rank-card__thumb {
  position: relative;
  display: block;
  height: 100%;
  min-height: 240px;
  overflow: hidden;
  background: var(--vg-top-c-box);
}

.vg-top-rank-card--1 .vg-top-rank-card__thumb {
  min-height: 500px;
}

.vg-top-rank-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.35s ease;
}

.vg-top-rank-card__link:hover .vg-top-rank-card__thumb img {
  transform: scale(1.035);
}

.vg-top-rank-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 黒ではなくブランドの紺 */
  background: linear-gradient(to top, rgba(0, 42, 97, 0.86) 0%, rgba(0, 42, 97, 0.58) 38%, rgba(0, 42, 97, 0) 68%);
}

.vg-top-rank-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  color: #fff;
}

.vg-top-rank-card--1 .vg-top-rank-card__body {
  padding: 28px 30px;
}

.vg-top-rank-card__cat {
  width: fit-content;
  max-width: 100%;
  padding: 2px 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--vg-top-radius-sm);
  backdrop-filter: blur(6px);
  font-size: var(--fs-s4);
  font-weight: 700;
  line-height: 1.5;
}

.vg-top-rank-card__title {
  display: -webkit-box;
  margin: 0;
  color: #fff;
  font-size: var(--fs-s1);
  font-weight: 700;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vg-top-rank-card--1 .vg-top-rank-card__title {
  font-size: var(--fs-l2);
}

.vg-top-rank-card__meta {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.76);
  font-size: var(--fs-s4);
  line-height: 1.5;
}

.vg-top-rank-card__no {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff;
  font-family: inherit;
  font-size: var(--fs-s1);
  font-weight: 700;
  line-height: 1;
  border-radius: var(--vg-top-radius-sm);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.vg-top-rank-card--1 .vg-top-rank-card__no {
  top: 16px;
  left: 16px;
  width: 58px;
  height: 58px;
  font-size: var(--fs-l3);
}

.vg-top-rank-card__no--1 {
  background: linear-gradient(135deg, #fff4a3 0%, #e0bd3a 44%, #b98a16 100%);
}

.vg-top-rank-card__no--2 {
  background: linear-gradient(135deg, #f4f7f9 0%, #bec6cf 48%, #8e98a3 100%);
}

.vg-top-rank-card__no--3 {
  background: linear-gradient(135deg, #f4bf7b 0%, #cd7f32 48%, #94501e 100%);
}

.vg-top-rank-card__no--4,
.vg-top-rank-card__no--5 {
  background: linear-gradient(135deg, #d8dde3 0%, #aab2bd 100%);
}

@media (max-width: 1100px) {
  .vg-top-rank-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .vg-top-rank-card--1 {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .vg-top-rank-card--2,
  .vg-top-rank-card--3,
  .vg-top-rank-card--4,
  .vg-top-rank-card--5 {
    grid-column: auto;
    grid-row: auto;
  }

  .vg-top-rank-card--1 .vg-top-rank-card__link,
  .vg-top-rank-card--1 .vg-top-rank-card__thumb {
    min-height: 360px;
  }

  .vg-top-rank-card__link,
  .vg-top-rank-card__thumb {
    min-height: 220px;
  }
}

@media (max-width: 767px) {
  .vg-top-rank-section > .vg-top-sec-head,
  .vg-top-rank-section > .vg-top-rank-board,
  .vg-top-rank-section > .vg-top-more,
  .vg-top-rank-section > .vg-top-empty {
    padding-left: 18px;
    padding-right: 18px;
  }

  .vg-top-rank-board {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .vg-top-rank-card--1,
  .vg-top-rank-card--2,
  .vg-top-rank-card--3,
  .vg-top-rank-card--4,
  .vg-top-rank-card--5 {
    grid-column: auto;
    grid-row: auto;
  }

  .vg-top-rank-card__link,
  .vg-top-rank-card--1 .vg-top-rank-card__link {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    min-height: 128px;
    background: #fff;
    border: 1px solid rgba(0, 55, 127, 0.12);
  }

  .vg-top-rank-card__thumb,
  .vg-top-rank-card--1 .vg-top-rank-card__thumb {
    height: 100%;
    min-height: 128px;
  }

  .vg-top-rank-card__thumb::after {
    display: none;
  }

  .vg-top-rank-card__body,
  .vg-top-rank-card--1 .vg-top-rank-card__body {
    position: static;
    justify-content: flex-start;
    padding: 12px 13px;
    color: var(--vg-top-c-text);
    background: #fff;
  }

  .vg-top-rank-card__cat {
    display: none;
  }

  .vg-top-rank-card__title,
  .vg-top-rank-card--1 .vg-top-rank-card__title {
    color: var(--vg-top-c-text);
    font-size: var(--fs-s1);
    line-height: 1.5;
  }

  .vg-top-rank-card__meta,
  .vg-top-rank-card--1 .vg-top-rank-card__meta {
    color: var(--vg-top-c-muted);
  }

  .vg-top-rank-card__no,
  .vg-top-rank-card--1 .vg-top-rank-card__no {
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    font-size: var(--fs-s1);
  }
}

/* ===== 当社の強み ===== */
.vg-top-strength {
  margin: 56px auto 0;
  max-width: 1080px;
  background: transparent;
  border: none;
  padding: 0 24px;
}

.vg-top-strength__banner {
  position: relative;
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: var(--vg-top-radius-md);
  min-height: 360px;
  background: #111;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.vg-top-strength-final__card .vg-top-strength__banner {
  margin: -56px -56px 28px;
  border-radius: var(--vg-top-radius-lg) var(--vg-top-radius-lg) 0 0;
}

.vg-top-strength__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.24) 42%, rgba(0, 0, 0, 0.04) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.08) 100%);
  z-index: 1;
  pointer-events: none;
}

.vg-top-strength__banner-title {
  position: absolute;
  left: 34px;
  top: 30px;
  z-index: 2;
  width: min(460px, calc(100% - 68px));
  color: #fff;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  text-align: left;
}

.vg-top-strength__banner-title h2 {
  margin: 0;
  font-size: var(--fs-l3);
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
}

.vg-top-strength__banner-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #111;
}

.vg-top-strength__banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.vg-top-strength__sub {
  text-align: left;
  font-size: var(--fs-s1);
  color: var(--vg-top-c-muted);
  margin: 0 0 32px;
}

.vg-top-strength__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.vg-top-strength__item {
  grid-column: span 2;
  padding: 22px 24px;
  border: 1px solid rgba(0, 55, 127, 0.18);
  border-radius: var(--vg-top-radius-md);
  background: #f5f8fb;
}

.vg-top-strength__item:nth-child(4),
.vg-top-strength__item:nth-child(5) {
  grid-column: span 3;
}

.vg-top-strength__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
}

.vg-top-strength__num {
  min-width: 40px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px; /* ここは番号のバッジなので丸いまま */
  background: var(--vg-top-c-primary);
  color: #fff;
  font-size: var(--fs-s2);
  font-weight: 700;
  line-height: 1;
  font-family: inherit;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.vg-top-strength__name {
  font-size: var(--fs-s1);
  font-weight: 700;
  color: var(--vg-top-c-primary);
  line-height: 1.55;
}

.vg-top-strength__desc {
  margin: 0;
  font-size: var(--fs-s2);
  color: var(--vg-top-c-text);
  line-height: 1.85;
}

.vg-top-strength__note {
  font-size: var(--fs-s3);
  color: var(--vg-top-c-muted);
  margin: 8px 0 0;
}

/* レスポンシブ */
@media (max-width: 767px) {
  .vg-top-strength { padding: 0 16px; }
  .vg-top-strength__banner { min-height: 300px; margin-bottom: 24px; }
  .vg-top-strength-final__card .vg-top-strength__banner { margin: -28px -22px 24px; }
  .vg-top-strength__banner-title {
    left: 22px;
    top: 22px;
    width: min(300px, calc(100% - 44px));
  }
  .vg-top-strength__banner-title h2 { font-size: var(--fs-l2); }
  .vg-top-strength__list { grid-template-columns: 1fr; gap: 12px; }
  .vg-top-strength__item,
  .vg-top-strength__item:nth-child(4),
  .vg-top-strength__item:nth-child(5) { grid-column: auto; padding: 18px; }
  .vg-top-strength__head { gap: 10px; }
  .vg-top-strength__num { min-width: 36px; height: 26px; font-size: var(--fs-s3); }
  .vg-top-strength__name { font-size: var(--fs-s1); }

  .vg-top-strength-final { padding: 36px 14px; }
  .vg-top-strength-final__card { padding: 28px 22px; }
  .vg-top-strength-final__card .vg-top-strength { padding: 0; }
  .vg-top-strength-final__card .vg-top-final { margin: 32px -22px -28px; padding: 40px 20px; }
}

/* ===== 強み + 最終CTA ===== */
.vg-top-strength-final {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(214, 226, 243, 0.16) 0%, rgba(214, 226, 243, 0) 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(135deg, #0b4f9c 0%, #00377f 44%, #002a61 100%);
  padding: 64px 24px;
}

.vg-top-strength-final__card {
  max-width: 1080px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--vg-top-radius-lg);
  padding: 56px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.vg-top-strength-final__card .vg-top-strength {
  margin: 0;
  max-width: none;
  padding: 0;
  background: transparent;
}

.vg-top-strength-final__card .vg-top-final {
  margin: 48px -56px -56px;
  background-image:
    linear-gradient(120deg, #00377f 0%, #0b4f9c 60%, #0b6aa8 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 54px 32px;
  border: none;
  border-radius: 0 0 var(--vg-top-radius-lg) var(--vg-top-radius-lg);
  overflow: hidden;
}

.vg-top-strength-final__card .vg-top-final__inner {
  max-width: 720px;
}

.vg-top-strength-final__card .vg-top-final__title {
  color: #fff;
}

.vg-top-strength-final__card .vg-top-final__lead {
  color: rgba(255, 255, 255, 0.94);
}

.vg-top-strength-final__card .vg-top-final__note {
  color: rgba(255, 255, 255, 0.78);
}

.vg-top-strength-final__card .vg-top-final__btn {
  border: none !important;
}

.vg-top-final {
  margin: 56px 0 0;
  background: linear-gradient(135deg, var(--vg-top-c-primary) 0%, var(--vg-top-c-primary-light) 100%);
  color: #fff;
  padding: 56px 24px;
  text-align: center;
}

.vg-top-final__inner {
  max-width: 1600px;
  margin: 0 auto;
}

.vg-top-final__title {
  margin: 0 0 24px;
  font-size: var(--fs-l3);
  line-height: 1.5;
  color: #fff;
  font-weight: 700;
}

.vg-top-final__pains {
  list-style: none;
  margin: 0 auto 28px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-align: left;
  max-width: 640px;
}

.vg-top-final__pains li {
  font-size: var(--fs-s1);
  line-height: 1.95;
  color: #fff;
  padding-left: 24px;
  position: relative;
  margin: 0;
}

.vg-top-final__pains li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 14px;
  height: 1px;
  background: #fff;
}

.vg-top-final__lead {
  margin: 0 auto 28px;
  max-width: 640px;
  font-size: var(--fs-s1);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.95;
}

.vg-top-final__btn {
  display: inline-block;
  background: var(--vg-top-c-accent);
  color: #fff;
  padding: 18px 56px;
  font-size: var(--fs-m);
  font-weight: 700;
  border: 1px solid var(--vg-top-c-accent);
  text-decoration: none;
  min-width: 320px;
  letter-spacing: 0.04em;
}

.vg-top-final__btn:hover {
  background: var(--vg-top-c-accent-dark);
  border-color: var(--vg-top-c-accent-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.vg-top-final__note {
  font-size: var(--fs-s3);
  color: rgba(255, 255, 255, 0.7);
  margin: 18px 0 0;
  line-height: 1.7;
}

/* ===== 任意の追加コンテンツ ===== */
.vg-top-extra {
  margin: 56px auto 0;
  max-width: 1600px;
  padding: 0 24px;
}

.vg-top-extra__inner {
  font-size: var(--fs-s1);
  line-height: 1.85;
}

/* ===== 追従CTA（モバイルのみ） ===== */
/* 追従CTA（スマホのみ）。.vgf-btn は vgf-base.css が後勝ちするため、クラス2つ分で指定する */
.vg-top-sticky-cta {
  display: none;
  position: fixed;
  z-index: 1200;
  box-sizing: border-box;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 18%, rgba(16, 176, 205, .28) 0, rgba(16, 176, 205, 0) 36%),
    linear-gradient(135deg, #0b4f9c 0%, var(--vgf-brand, #00377f) 48%, var(--vgf-brand-dark, #00285c) 100%);
  box-shadow: 0 6px 20px rgba(10, 31, 68, .28);
}

.vg-top-sticky-cta .vgf-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  gap: 6px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 13.5px;
  letter-spacing: .02em;
  background: #fff;
  border-color: #fff;
  color: var(--vgf-brand) !important;
}

.vg-top-sticky-cta .vgf-btn:hover {
  background: var(--vgf-tint);
  border-color: var(--vgf-tint);
}

.vg-top-sticky-cta .vgf-btn--ghost {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .78);
  color: #fff !important;
}

.vg-top-sticky-cta .vgf-btn--ghost:hover {
  background: rgba(255, 255, 255, .24);
  border-color: #fff;
}

.vg-top-sticky-cta .vgf-arrow,
.vg-top-sticky-cta .vgf-dl { flex: none; width: 14px; height: 14px; }

/* ===== レスポンシブ：タブレット (768〜1099px) ===== */
@media (max-width: 1099px) {
  .vg-top-fv { padding: 24px 0; }
  .vg-top-fv__inner { padding: 0 24px; }
  .vg-top-fv__row-top { gap: 22px; }
  .vg-top-fv__left { min-height: 240px; padding: 16px 0; }
  .vg-top-fv__title { font-size: var(--fs-l2); }

  .vg-top-sec { margin: 40px 20px 0; padding: 0; }
  .vg-top-news-wrap { grid-template-columns: 1fr; gap: 32px; }
  .vg-top-magazine { gap: 14px; }
  .vg-top-feature__title { font-size: var(--fs-l1); }

  .vg-top-about { margin: 0; padding: 48px 20px; }
  .vg-top-about__inner { grid-template-columns: 1fr; gap: 22px; padding: 28px 22px; }


  .vg-top-strength { margin: 40px 20px 0; padding: 32px 22px; }
  .vg-top-final { padding: 48px 20px; }
  .vg-top-final__title { font-size: var(--fs-l2); }

  .vg-top-extra { margin: 40px 20px 0; padding: 0; }
}

/* ===== レスポンシブ：モバイル (〜767px) ===== */
@media (max-width: 767px) {
  .vg-top { font-size: var(--fs-s1); }

  .vg-top-fv { padding: 20px 0; }
  .vg-top-fv__inner { padding: 0 16px; }

  .vg-top-fv__row-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .vg-top-fv__left {
    min-height: auto;
    padding: 12px 0;
  }

  .vg-top-fv__kicker { font-size: var(--fs-s3); margin-bottom: 10px; }
  .vg-top-fv__title { font-size: var(--fs-l2); line-height: 1.4; }
  .vg-top-fv__lead { font-size: var(--fs-s1); margin-top: 14px; line-height: 1.75; }
  .vg-top-fv__buttons { flex-direction: column; gap: 10px; margin-top: 20px; }
  .vg-top-fv__btn { width: 100%; min-height: 44px; font-size: var(--fs-s1); padding: 0 20px; }


  .vg-top-sec { margin: 36px 16px 0; }
  .vg-top-sec-head__title { font-size: var(--fs-l1); }

  .vg-top-magazine { gap: 14px; }
  .vg-top-feature__ribbon { font-size: var(--fs-s4); padding: 3px 12px; }
  .vg-top-feature__title { font-size: var(--fs-m); }
  .vg-top-feature__lead { font-size: var(--fs-s2); }

  .vg-top-article__link { grid-template-columns: 80px 1fr; gap: 12px; padding: 12px 0; }
  .vg-top-article__thumb { width: 80px; height: 60px; }

  .vg-top-about { margin: 0; padding: 40px 16px; }
  .vg-top-about__inner { padding: 22px 18px; }
  .vg-top-about__title { font-size: var(--fs-l1); }
  .vg-top-about__lead { font-size: var(--fs-s1); }


  .vg-top-strength { margin: 36px 16px 0; padding: 28px 18px; }
  .vg-top-strength__title { font-size: var(--fs-l1); }
  .vg-top-strength__item { padding: 18px; grid-template-columns: 1fr; gap: 14px; }
  .vg-top-strength__icon { width: 60px; height: 60px; }
  .vg-top-strength__name { font-size: var(--fs-m); }
  .vg-top-strength__desc { font-size: var(--fs-s1); }

  .vg-top-final { padding: 36px 18px; }
  .vg-top-final__title { font-size: var(--fs-l2); }
  .vg-top-final__pains { padding: 18px 22px; }
  .vg-top-final__pains li { font-size: var(--fs-s1); }
  .vg-top-final__lead { font-size: var(--fs-s2); }
  .vg-top-final__btn {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 16px;
    font-size: var(--fs-m);
  }

  .vg-top-extra { margin: 36px 16px 0; }

  .vg-top-sticky-cta,
  .vg-top-sticky-cta.vgf-btn { display: flex; }
  body #body_wrap.single-post { padding-bottom: 96px; }
}

/* ===== レスポンシブ：スモールモバイル (〜380px) ===== */
@media (max-width: 380px) {
  .vg-top-fv__title { font-size: var(--fs-l1); }
  .vg-top-fv__inner { padding: 0 14px; }
  .vg-top-feature__title { font-size: var(--fs-m); }
  .vg-top-about__title { font-size: var(--fs-l1); }
  .vg-top-final__title { font-size: var(--fs-l1); }
}


/* ===== メディアトップ：レスポンシブの微調整 ===== */
@media (max-width: 1180px) {
  .vg-top-fv__lead-br { display: none; }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .vg-top-fv__row-top {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 24px;
  }

  .vg-top-fv__title { font-size: var(--fs-l3); }
  .vg-top-fv__lead { font-size: var(--fs-s1); line-height: 1.85; }
  .vg-top-fv__carousel { aspect-ratio: 16 / 10; }

  .vg-top-news-section .vg-top-news-wrap,
  .vg-top-news-section .vg-top-sec-head {
    padding: 0 24px;
  }

  .vg-top-news-wrap {
    grid-template-columns: 1fr;
  }

  .vg-top-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
  }

  .vg-top-magazine {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "big big"
      "mid1 mid2"
      "sm1 sm2"
      "sm3 sm3";
  }

  .vg-top-mag-card--big .vg-top-mag-card__thumb {
    aspect-ratio: 16 / 9;
    flex: none;
  }

  .vg-top-about__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .vg-top-about__features {
    max-width: none;
    justify-self: stretch;
    margin-top: 0;
  }

  .vg-top-about__features ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }

  .vg-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }

  .vg-top-strength-final__card {
    max-width: 920px;
    padding: 44px;
  }

  .vg-top-strength-final__card .vg-top-strength__banner {
    margin: -44px -44px 28px;
  }

  .vg-top-strength__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vg-top-strength__item,
  .vg-top-strength__item:nth-child(4),
  .vg-top-strength__item:nth-child(5) {
    grid-column: auto;
  }

  .vg-top-strength-final__card .vg-top-final {
    margin: 40px -44px -44px;
    padding: 48px 28px;
  }
}

@media (max-width: 767px) {
  .vg-top {
    --fs-l4: 2.4rem;
    --fs-l3: 1.65rem;
    --fs-l2: 1.36rem;
    --fs-l1: 1.15rem;
  }

  .vg-top-fv {
    padding: 28px 0 34px;
  }

  .vg-top-fv__inner,
  .vg-top-news-section .vg-top-news-wrap,
  .vg-top-news-section .vg-top-sec-head {
    padding-left: 18px;
    padding-right: 18px;
  }

  .vg-top-fv__row-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .vg-top-fv__left {
    padding: 6px 0 0;
  }

  .vg-top-fv__title {
    font-size: var(--fs-l3);
    line-height: 1.38;
  }

  .vg-top-fv__lead {
    font-size: var(--fs-s1);
    line-height: 1.8;
  }


  .vg-top-fv__carousel {
    aspect-ratio: 4 / 5;
    margin-bottom: 36px;
  }

  .vg-top-fv__slide-content {
    right: 18px;
    bottom: 20px;
    left: 18px;
    max-width: none;
  }

  .vg-top-fv__slide-title {
    white-space: normal;
    font-size: var(--fs-l1);
    line-height: 1.5;
  }

  .vg-top-sec.vg-top-news-section,
  .vg-top-sec.vg-top-rank-section {
    padding: 44px 0;
  }

  .vg-top-news-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .vg-top-magazine {
    grid-template-columns: 1fr;
    grid-template-areas:
      "big"
      "mid1"
      "mid2"
      "sm1"
      "sm2"
      "sm3";
    gap: 22px;
  }

  .vg-top-mag-card--big .vg-top-mag-card__thumb,
  .vg-top-mag-card__thumb {
    aspect-ratio: 16 / 10;
    flex: none;
  }

  .vg-top-side {
    gap: 18px;
  }

  .vg-top-more__link {
    min-width: 0;
    width: 100%;
    min-height: 56px;
    padding: 14px 20px;
    font-size: var(--fs-s1);
  }

  .vg-top-about {
    padding: 44px 16px;
  }

  .vg-top-about__inner {
    padding: 28px 20px;
  }

  .vg-top-about__body {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .vg-top-about__title {
    font-size: var(--fs-l2);
  }

  .vg-top-about__features {
    max-width: none;
    justify-self: stretch;
    margin-top: 0;
  }

  .vg-top-about__visual {
    margin-top: 30px;
    padding: 18px;
  }

  .vg-flow {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .vg-flow__image {
    aspect-ratio: 16 / 9;
  }

  .vg-top-strength-final {
    padding: 44px 16px;
  }

  .vg-top-strength-final__card {
    padding: 28px 20px;
    border-radius: var(--vg-top-radius-lg);
  }

  .vg-top-strength-final__card .vg-top-strength__banner {
    margin: -28px -20px 24px;
    min-height: 280px;
  }

  .vg-top-strength__banner-title {
    left: 20px;
    top: 20px;
    width: calc(100% - 40px);
  }

  .vg-top-strength__banner-title h2 {
    font-size: var(--fs-l2);
  }

  .vg-top-strength__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vg-top-strength__item,
  .vg-top-strength__item:nth-child(4),
  .vg-top-strength__item:nth-child(5) {
    grid-column: auto;
    padding: 18px;
  }

  .vg-top-strength-final__card .vg-top-final {
    margin: 32px -20px -28px;
    padding: 40px 20px;
  }

  .vg-top-final__title {
    font-size: var(--fs-l2);
  }

  .vg-top-final__lead br {
    display: none;
  }

  .vg-top-final__btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .vg-top-fv__title,
  .vg-top-about__title,
  .vg-top-final__title {
    font-size: var(--fs-l1);
  }

  .vg-top-fv__slide-title {
    font-size: var(--fs-s1);
  }

  .vg-flow__name,
  .vg-top-strength__name {
    font-size: var(--fs-s1);
  }
}


/* Tablet: new articles as uniform 2-column cards */
@media (min-width: 768px) and (max-width: 1099px) {
  .vg-top-magazine {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-template-areas: none;
    align-items: start;
    gap: 28px 18px;
  }

  .vg-top-mag-card,
  .vg-top-mag-card:nth-child(1),
  .vg-top-mag-card:nth-child(2),
  .vg-top-mag-card:nth-child(3),
  .vg-top-mag-card:nth-child(4),
  .vg-top-mag-card:nth-child(5),
  .vg-top-mag-card:nth-child(6) {
    grid-area: auto;
  }

  .vg-top-mag-card--big .vg-top-mag-card__link {
    height: auto;
  }

  .vg-top-mag-card--big .vg-top-mag-card__thumb,
  .vg-top-mag-card--mid .vg-top-mag-card__thumb,
  .vg-top-mag-card--sm .vg-top-mag-card__thumb,
  .vg-top-mag-card__thumb {
    aspect-ratio: 16 / 10;
    flex: none;
  }

  .vg-top-mag-card--big .vg-top-mag-card__title,
  .vg-top-mag-card--mid .vg-top-mag-card__title,
  .vg-top-mag-card--sm .vg-top-mag-card__title {
    font-size: var(--fs-m);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}


/* Mobile refinement: FV hierarchy and support flow columns */
@media (max-width: 767px) {
  .vg-top-fv {
    padding: 24px 0 36px;
  }

  .vg-top-fv__inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .vg-top-fv__title {
    font-size: clamp(2.35rem, calc(1.35rem + 7.2vw), 3.45rem);
    line-height: 1.2;
    letter-spacing: 0;
  }

  .vg-top-fv__lead {
    font-size: clamp(0.95rem, calc(0.86rem + 0.5vw), 1.08rem);
    line-height: 1.85;
  }


  .vg-top-fv__carousel {
    aspect-ratio: 1 / 1.16;
    margin-bottom: 34px;
  }

  .vg-top-fv__slide-copy {
    left: 16px;
    right: 16px;
    bottom: 18px;
    max-width: none;
    text-align: left;
  }

  .vg-top-fv__slide-title {
    white-space: normal;
    font-size: clamp(1rem, calc(0.9rem + 0.7vw), 1.15rem);
    line-height: 1.45;
  }

  .vg-top-fv__slide-desc {
    text-align: left;
    font-size: var(--fs-s4);
    line-height: 1.55;
  }

  .vg-top-fv__dots {
    bottom: -28px;
  }

  .vg-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .vg-flow__caption {
    grid-column: 1 / -1;
  }

  .vg-flow__image {
    aspect-ratio: 16 / 10;
    margin-bottom: 10px;
  }

  .vg-flow__image img {
    padding: 8px;
  }

  .vg-flow__num {
    margin-bottom: 8px;
    font-size: var(--fs-s4);
  }

  .vg-flow__name {
    margin-bottom: 6px;
    font-size: var(--fs-s2);
    line-height: 1.45;
  }

  .vg-flow__desc {
    font-size: var(--fs-s4);
    line-height: 1.6;
  }
}

@media (max-width: 420px) {
  .vg-top-fv__title {
    font-size: clamp(2.2rem, calc(1.2rem + 8vw), 3.15rem);
    line-height: 1.18;
  }
}

/* Mobile button width cap */
@media (max-width: 767px) {
  .vg-top-fv__btn,
  .vg-top-more__link,
  .vg-top-final__btn,
  .vg-header__cta,
  .vg-footer__cta {
    width: 100%;
    max-width: 400px;
  }

  .vg-top-fv__btn,
  .vg-top-more__link,
  .vg-top-final__btn {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile FV slider height tuning */
@media (max-width: 767px) {
  .vg-top-fv__carousel {
    aspect-ratio: 16 / 12;
    min-height: 0;
    margin-bottom: 30px;
  }

  .vg-top-fv__slide-copy {
    bottom: 16px;
  }

  .vg-top-fv__slide-title {
    margin-top: 5px;
    font-size: clamp(0.95rem, calc(0.86rem + 0.45vw), 1.08rem);
    line-height: 1.35;
  }

  .vg-top-fv__slide-desc {
    margin-top: 6px;
    font-size: clamp(0.74rem, calc(0.68rem + 0.35vw), 0.86rem);
    line-height: 1.45;
  }
}

@media (max-width: 420px) {
  .vg-top-fv__carousel {
    aspect-ratio: 16 / 12.5;
  }
}

/* Mobile CTA width alignment */
@media (max-width: 767px) {
  .vg-top-side-cv__btn {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile FV layout: slider first */
@media (max-width: 767px) {
  .vg-top-fv {
    padding-top: 16px;
  }

  .vg-top-fv__row-top {
    gap: 22px;
  }

  .vg-top-fv__right {
    order: -1;
  }

  .vg-top-fv__left {
    order: 0;
    padding-top: 0;
  }

  .vg-top-fv__carousel {
    aspect-ratio: 16 / 10.2;
    margin-bottom: 30px;
    border-radius: var(--vg-top-radius-md);
  }

  .vg-top-fv__slide {
    border-radius: var(--vg-top-radius-md);
  }

  .vg-top-fv__slide::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.58) 100%);
  }

  .vg-top-fv__slide-copy {
    bottom: 14px;
  }

  .vg-top-fv__slide-label {
    margin-bottom: 4px;
    font-size: var(--fs-s5);
  }

  .vg-top-fv__slide-title {
    margin-bottom: 4px;
  }

  .vg-top-fv__slide-desc {
    display: none;
  }

  .vg-top-fv__dots {
    bottom: -26px;
  }
}

@media (max-width: 420px) {
  .vg-top-fv__carousel {
    aspect-ratio: 16 / 10.8;
  }
}

/* Mobile FV CTA height alignment */
@media (max-width: 767px) {
  .vg-top-fv__btn {
    min-height: 56px;
    padding: 0 28px;
  }
}

/* Mobile FV headline overlay inside slider */
@media (max-width: 767px) {
  .vg-top-fv__row-top {
    position: relative;
  }

  .vg-top-fv__copy {
    position: static;
  }

  .vg-top-fv__kicker,
  .vg-top-fv__title {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 5;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.32);
  }

  .vg-top-fv__kicker {
    top: 18px;
    margin: 0;
    font-size: clamp(0.78rem, calc(0.66rem + 0.6vw), 0.92rem);
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .vg-top-fv__title {
    top: 46px;
    max-width: none;
    margin: 0;
    font-size: clamp(1.7rem, calc(1.18rem + 3.6vw), 2.28rem);
    line-height: 1.18;
    white-space: nowrap;
  }

  .vg-top-fv__lead {
    margin-top: 0;
  }

  .vg-top-fv__slide::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.62) 100%);
  }
}

@media (max-width: 420px) {
  .vg-top-fv__kicker {
    top: 16px;
    font-size: clamp(0.72rem, calc(0.62rem + 0.55vw), 0.82rem);
  }

  .vg-top-fv__title {
    top: 40px;
    font-size: clamp(1.58rem, calc(1.05rem + 3.9vw), 2rem);
  }
}

/* FV title fluid sizing: keep the intended two-line headline stable */
.vg-top-fv__title {
  font-size: clamp(2.25rem, calc(1.05rem + 3.4vw), 3.45rem);
  line-height: 1.22;
  letter-spacing: 0;
  max-width: 11em;
}

@media (min-width: 1440px) {
  .vg-top-fv__title {
    font-size: clamp(3.2rem, calc(2.1rem + 1.8vw), 4rem);
  }
}

@media (min-width: 768px) and (max-width: 1180px) {
  .vg-top-fv__title {
    font-size: clamp(2rem, calc(1.1rem + 3vw), 3.05rem);
    line-height: 1.24;
    max-width: 10.5em;
  }
}

@media (max-width: 767px) {
  .vg-top-fv__title {
    font-size: clamp(1.7rem, calc(1.18rem + 3.6vw), 2.28rem);
    line-height: 1.18;
    max-width: none;
    white-space: nowrap;
  }

  .vg-top-fv__kicker {
    font-size: clamp(0.78rem, calc(0.66rem + 0.6vw), 0.92rem);
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .vg-top-fv__title {
    font-size: clamp(1.58rem, calc(1.05rem + 3.9vw), 2rem);
    line-height: 1.18;
    max-width: none;
  }

  .vg-top-fv__kicker {
    font-size: clamp(0.72rem, calc(0.62rem + 0.55vw), 0.82rem);
  }
}

/* Header tablet overflow fix */
@media (max-width: 1100px) {
  .vg-header__inner {
    padding: 0 16px;
    gap: 0;
  }

  .vg-header__nav {
    display: none;
  }

  .vg-header__cta {
    margin-left: auto;
  }

  .vg-hamburger {
    display: flex;
    margin-left: 8px;
  }
}

@media (max-width: 520px) {
  .vg-header__logo img {
    width: 168px;
    height: auto;
  }

  .vg-header__btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Sticky CTA overflow fix */
@media (max-width: 1100px) {
  .vg-top-sticky-cta {
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: 440px;
    margin: 0 auto;
  }

  body #body_wrap.single-post {
    padding-bottom: 96px;
  }
}

@media (max-width: 767px) {
  .vg-top-sticky-cta {
    display: flex;
  }
}

@media (max-width: 420px) {
  .vg-top-sticky-cta {
    left: 12px;
    right: 12px;
    max-width: none;
  }

  .vg-top-sticky-cta .vgf-btn {
    font-size: 13px;
    padding: 0 6px;
  }
}

/* Footer responsive overflow fix */
.vg-footer {
  overflow: hidden;
}

.vg-footer__main,
.vg-footer__brand,
.vg-footer__nav,
.vg-footer__nav-col,
.vg-footer__contact {
  min-width: 0;
}

.vg-footer__btn {
  width: 100%;
  max-width: 400px;
  min-height: 56px;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
}

@media (max-width: 1280px) {
  .vg-footer__main {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .vg-footer__tagline {
    max-width: 640px;
  }

  .vg-footer__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
  }

  .vg-footer__contact {
    max-width: 400px;
  }
}

@media (max-width: 900px) {
  .vg-footer__nav {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .vg-footer__nav-col--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .vg-footer__btn {
    max-width: 400px;
  }
}

/* Mobile menu CTA width cap */
.vg-mobile-menu__cta .vg-header__btn {
  max-width: 400px;
  min-height: 56px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tablet FV balance: keep headline in two lines */
@media (min-width: 768px) and (max-width: 1180px) {
  .vg-top-fv__row-top {
    grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
    gap: 28px;
  }

  .vg-top-fv__right {
    width: 100%;
    max-width: 560px;
    justify-self: end;
  }

  .vg-top-fv__title {
    font-size: clamp(2.45rem, calc(1.55rem + 2vw), 3rem);
    line-height: 1.2;
    max-width: 12em;
  }

  .vg-top-fv__lead {
    max-width: 35em;
  }
}

@media (min-width: 768px) and (max-width: 960px) {
  .vg-top-fv__row-top {
    grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
    gap: 24px;
  }

  .vg-top-fv__right {
    max-width: 500px;
  }

  .vg-top-fv__title {
    font-size: clamp(2.25rem, calc(1.45rem + 2.3vw), 2.75rem);
    max-width: 12em;
  }
}

/* Mobile horizontal overflow guard */
/* overflow-x: hidden はスクロール領域をつくってしまい、中の position: sticky
   （ヘッダー下の帯）がビューポートに貼り付かなくなるため、clip を使う。
   clip 非対応のブラウザだけ下の @supports で hidden に戻す */
@media (max-width: 767px) {
  html,
  body,
  #body_wrap,
  .container,
  .vg-top {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .vg-header,
  .vg-header-band,
  .vg-top-fv,
  .vg-top-sec,
  .vg-top-news-section,
  .vg-top-rank-section,
  .vg-top-about,
  .vg-top-strength-final,
  .vg-footer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .vg-top-sec.vg-top-news-section,
  .vg-top-sec.vg-top-rank-section {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .vg-top-news-section .vg-top-sec-head,
  .vg-top-news-section .vg-top-news-wrap,
  .vg-top-rank-section > .vg-top-sec-head,
  .vg-top-rank-section > .vg-top-rank-board,
  .vg-top-rank-section > .vg-top-more,
  .vg-top-rank-section > .vg-top-empty {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Strength lead text color */
.vg-top-strength__sub {
  color: var(--vg-top-c-text);
}

/* 新着記事は同じ大きさで並べる */
@media (min-width: 768px) {
  .vg-top-magazine.vg-top-magazine--uniform {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-template-areas: none;
    gap: 28px 20px;
    align-items: start;
  }
  .vg-top-magazine--uniform > .vg-top-mag-card { grid-area: auto; min-width: 0; }
  .vg-top-magazine--uniform .vg-top-mag-card__thumb { aspect-ratio: 16 / 10; flex: none; }
  .vg-top-magazine--uniform .vg-top-mag-card__title { font-size: 18px; line-height: 1.6; }
}
@media (min-width: 1280px) {
  .vg-top-magazine.vg-top-magazine--uniform { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Mobile new articles: compact list like popular ranking */
@media (max-width: 767px) {
  .vg-top-news-wrap {
    gap: 24px;
  }

  .vg-top-magazine {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas: none;
    gap: 14px;
  }

  .vg-top-mag-card,
  .vg-top-mag-card:nth-child(1),
  .vg-top-mag-card:nth-child(2),
  .vg-top-mag-card:nth-child(3),
  .vg-top-mag-card:nth-child(4),
  .vg-top-mag-card:nth-child(5),
  .vg-top-mag-card:nth-child(6) {
    grid-area: auto;
  }

  .vg-top-mag-card__link,
  .vg-top-mag-card--big .vg-top-mag-card__link {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    min-height: 128px;
    height: auto;
    align-items: stretch;
    background: #fff;
    border: 1px solid rgba(0, 55, 127, 0.12);
    border-radius: var(--vg-top-radius-md);
    overflow: hidden;
  }

  .vg-top-mag-card__thumb,
  .vg-top-mag-card--big .vg-top-mag-card__thumb,
  .vg-top-mag-card--mid .vg-top-mag-card__thumb,
  .vg-top-mag-card--sm .vg-top-mag-card__thumb {
    height: 100%;
    min-height: 128px;
    aspect-ratio: auto;
    flex: none;
    border-radius: 0;
  }

  .vg-top-mag-card__body,
  .vg-top-mag-card--big .vg-top-mag-card__body,
  .vg-top-mag-card--mid .vg-top-mag-card__body,
  .vg-top-mag-card--sm .vg-top-mag-card__body {
    padding: 12px 13px;
    justify-content: center;
    gap: 6px;
  }

  .vg-top-mag-card__cat {
    display: none;
  }

  .vg-top-mag-card__meta {
    order: 2;
    font-size: var(--fs-s4);
  }

  .vg-top-mag-card__title,
  .vg-top-mag-card--big .vg-top-mag-card__title,
  .vg-top-mag-card--mid .vg-top-mag-card__title,
  .vg-top-mag-card--sm .vg-top-mag-card__title {
    order: 1;
    font-size: var(--fs-s1);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Mobile header: keep contact button and hamburger always visible */
@media (max-width: 1100px) {
  .vg-header__inner {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .vg-header__logo {
    min-width: 0;
    flex: 0 1 auto;
  }

  .vg-header__cta {
    width: auto;
    max-width: none;
    min-width: 0;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .vg-header__cta .vg-header__btn {
    width: auto;
    max-width: none;
    min-height: 42px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .vg-hamburger {
    display: flex !important;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-left: 8px;
  }
}

@media (max-width: 520px) {
  .vg-header__inner {
    padding: 0 12px;
  }

  .vg-header__logo img {
    width: clamp(142px, calc(6.8rem + 12vw), 168px);
    height: auto;
  }

  .vg-header__cta .vg-header__btn {
    min-height: 38px;
    padding: 7px 13px;
    font-size: var(--fs-s4);
  }

  .vg-hamburger {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    margin-left: 6px;
  }
}

@media (max-width: 380px) {
  .vg-header__logo img {
    width: 132px;
  }

  .vg-header__cta .vg-header__btn {
    padding-left: 11px;
    padding-right: 11px;
  }
}

/* Prevent desktop horizontal overflow from 100vw sections */
.vg-top-sec.vg-top-news-section,
.vg-top-sec.vg-top-rank-section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

html,
body {
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden;
  }

  @media (max-width: 767px) {
    #body_wrap,
    .container,
    .vg-top {
      overflow-x: hidden;
    }
  }
}

/* About feature headings keep original style */
.vg-top-about__features h3 {
  margin: 0;
  color: var(--vg-top-c-primary);
  font-size: var(--fs-s1);
  font-weight: 700;
  line-height: 1.6;
}

/* Strength heading structure: keep visual style after moving number outside h3 */
.vg-top-strength__name {
  margin: 0;
}

/* Support flow heading size */
.vg-flow__caption {
  font-size: var(--fs-s1);
}


/* メディアの記事タイトルは省略せず全文を表示 */
.vg-top .vg-top-mag-card__title,
.vg-top .vg-top-rank-card__title,
.vg-top .vg-top-article__title,
.vg-top .vg-fv-card__title {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  max-height: none;
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 767px) {
  .vg-top .vg-top-mag-card__title,
  .vg-top .vg-top-rank-card__title,
  .vg-top .vg-top-article__title,
  .vg-top .vg-fv-card__title { font-size: 13px; }
}
