/* ========================================
   サイドバーの誘導カード（2026-10-13 に作り直し）
   資料は表紙の写真を、無料相談は代表の写真を見せて、カード全体をリンクにする
======================================== */
.vg-side-dl,
.vg-side-cv {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  color: #fff !important;
  text-decoration: none !important;
}

/* --- 資料ダウンロード --- */
.vg-side-dl {
  position: relative;
  padding: 22px 20px 20px;
  background: linear-gradient(135deg, #0b4f9c 0%, #00377f 52%, #002146 100%);
  text-align: center;
}


/* 表紙と中面の3枚を少しずつずらして重ね、中身が想像できるようにする */
.vg-side-dl__covers {
  display: block;
  position: relative;
  width: 52%;
  /* 傾けたぶん枠からはみ出すので、下に余白を取って見出しと重ならないようにする */
  margin: 6px auto 34px;
  aspect-ratio: 849 / 1200;
}

.vg-side-dl__covers img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 10px 24px rgba(0, 10, 30, .4);
}

/* 奥の4枚は表紙より小さく。外側へいくほど小さくして奥行きを出す */
.vg-side-dl__covers .is-l2    { transform: rotate(-16deg) translate(-36%, 6%) scale(.8); }
.vg-side-dl__covers .is-r2    { transform: rotate(15deg) translate(36%, 5%) scale(.8); }
.vg-side-dl__covers .is-l1    { transform: rotate(-8deg) translate(-20%, 3%) scale(.88); }
.vg-side-dl__covers .is-r1    { transform: rotate(7deg) translate(20%, 2%) scale(.88); }
.vg-side-dl__covers .is-front { transform: rotate(-2deg); z-index: 1; }


.vg-side-dl__title {
  display: block;
  margin-top: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.vg-side-dl__text {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .86);
  text-align: left;
}

/* --- 無料相談（代表の写真） --- */
.vg-side-cv {
  background: linear-gradient(135deg, #00377f 0%, #002146 100%);
}

.vg-side-cv__photo {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.vg-side-cv__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.vg-side-cv__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 名前が読めるぶんだけ。写真をできるだけそのまま見せる */
  background: linear-gradient(to top, rgba(0, 33, 70, .72) 0%, rgba(0, 33, 70, .2) 34%, rgba(0, 33, 70, 0) 58%);
}

/* 肩書きと氏名は、写真の右下に重ねる */
.vg-side-cv__cap {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 1;
  display: block;
  text-align: right;
}

.vg-side-cv__role {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 6px rgba(0, 20, 50, .5);
}

.vg-side-cv__name {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  text-shadow: 0 1px 6px rgba(0, 20, 50, .5);
}

.vg-side-cv__body {
  display: block;
  padding: 18px 20px 20px;
}

.vg-side-cv__title {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.vg-side-cv__text {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .86);
}

/* --- 2つ共通のボタン風の見た目（中身はリンクの一部） --- */
.vg-side-dl__btn,
.vg-side-cv__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  margin-top: 16px;
  padding: 0 16px;
  border-radius: 4px;
  background: #fff;
  color: #00377f;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  transition: background .2s;
}

.vg-side-dl__btn svg,
.vg-side-cv__btn svg {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform .2s;
}

.vg-side-dl:hover .vg-side-dl__btn,
.vg-side-cv:hover .vg-side-cv__btn {
  background: #e6eef8;
}

.vg-side-dl:hover .vg-side-dl__btn svg { transform: translateY(2px); }
.vg-side-cv:hover .vg-side-cv__btn svg { transform: translateX(3px); }

/* ========================================
   サイドバーの誘導カード（無料相談・資料ダウンロード）
   無料相談（上部）・資料ダウンロード（追尾）
======================================== */
.vg-side-cta {
  padding: 24px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00377f 0%, #0b6aa8 55%, #10b0cd 100%);
  color: #fff;
  text-align: center;
}
.vg-side-cta--dl { background: linear-gradient(135deg, #0b4f9c 0%, #10b0cd 60%, #1fc6b5 100%); }
.vg-side-cta__en { margin: 0; font-family: "Poppins", var(--vg-font); font-size: 12px; letter-spacing: .18em; opacity: .85; }
.vg-side-cta__title { margin: 6px 0 0; font-size: 19px; line-height: 1.5; font-weight: 700; }
.vg-side-cta__text { margin: 10px 0 0; font-size: 13px; line-height: 1.7; text-align: left; opacity: .95; }
.vg-side-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin-top: 16px;
  padding: 0 20px;
  border: 1px solid #fff;
  border-radius: 4px;
  background: #fff;
  color: var(--vgf-brand) !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none !important;
  transition: background .2s, color .2s, border-color .2s;
}
.vg-side-cta__btn:hover,
.vg-side-cta__btn:focus-visible {
  background: var(--vgf-tint);
  border-color: var(--vgf-tint);
  color: var(--vgf-brand) !important;
  opacity: 1;
  box-shadow: none;
  transform: none;
}
.vg-side-cta__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.vg-side-cta__btn > span[aria-hidden="true"],
.vg-side-cta__btn > .vgf-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform .2s;
}
.vg-side-cta__btn:hover > span[aria-hidden="true"],
.vg-side-cta__btn:focus-visible > span[aria-hidden="true"],
.vg-side-cta__btn:hover > .vgf-arrow,
.vg-side-cta__btn:focus-visible > .vgf-arrow { transform: translateX(3px); }

/* ========================================
   メディアトップ（value gate 版。2026-09-15）
   value gate のアイコン・イラストを使う
======================================== */
/* ファーストビューのスライド（アイキャッチがない記事の背景） */
.vg-top-fv__slide { pointer-events: none; }
.vg-top-fv__slide.is-active { pointer-events: auto; }
.vg-top-fv__slide-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #00377f 0%, #0b6aa8 55%, #10b0cd 100%);
}
.vg-top-fv__slide-art--2 { background: linear-gradient(135deg, #0b4f9c 0%, #10b0cd 60%, #1fc6b5 100%); }
.vg-top-fv__slide-art--3 { background: linear-gradient(135deg, #002a61 0%, #00377f 45%, #10b0cd 100%); }
.vg-top-fv__slide img.vg-top-fv__slide-mark {
  position: absolute;
  right: -8%;
  top: -12%;
  width: 70%;
  height: auto;
  object-fit: contain;
  opacity: .16;
}
.vg-top-fv__slide-link { position: absolute; inset: 0; z-index: 3; }
.vg-top-fv__slide-link .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 採用支援の流れ（アイコン） */
.vg-flow__image--icon { background: #fafcfd; }
.vg-flow__image--icon .material-icons-round { font-size: 52px; color: #00377f; }
.vg-flow__step--final .vg-flow__image--icon { background: linear-gradient(135deg, #00377f 0%, #10b0cd 100%); border-color: transparent; }
.vg-flow__step--final .vg-flow__image--icon .material-icons-round { color: #fff; }

/* 強みの見出し帯（製品写真 → VG マークとイラスト） */
.vg-top-strength__banner-image--vg { background: linear-gradient(120deg, #00377f 0%, #0b6aa8 55%, #10b0cd 100%); }
.vg-top-strength__banner-image--vg img.vg-top-strength__banner-mark {
  position: absolute;
  left: -4%;
  top: -30%;
  width: 52%;
  height: auto;
  opacity: .14;
  object-fit: contain;
}
.vg-top-strength__banner-image--vg img.vg-top-strength__banner-illust {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: auto;
  height: 96%;
  object-fit: contain;
}
@media (max-width: 767px) {
  .vg-top-strength__banner-image--vg img.vg-top-strength__banner-illust { right: -6%; height: 80%; opacity: .95; }
}

/* 記事内の相談ブロックの画像（value gate のイラスト。切り抜かずに全体を表示） */
/* 記事内CTAの写真（2026-10-02：イラストをやめて代表の写真に。
   お問い合わせページと同じく、下から紺のグラデーションを敷いて名前を白文字で重ねる） */
.vg-before-toc-cta__ceo {
  position: relative;
  margin: 0;
  overflow: hidden;
}
.vg-before-toc-cta__ceo .vg-before-toc-cta__image {
  object-fit: cover;
  object-position: center 30%;
}
.vg-before-toc-cta__ceo-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 18px 14px;
  background: linear-gradient(to top, rgba(0, 42, 97, .92) 0%, rgba(0, 42, 97, .7) 44%, rgba(0, 42, 97, 0) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.vg-before-toc-cta__ceo-cap span {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .86);
}
@media (max-width: 767px) {
  .vg-before-toc-cta__ceo-cap { padding: 36px 16px 12px; font-size: 14px; }
}
body :where(#body_wrap):not(.page-template-page-vg-top) .post_content .vg-after-content-cta__image--illust {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  padding: 12px;
  background: #fafcfd;
}

/* 最後の相談ブロックの資料ダウンロードへのリンク（2026-09-15） */
.vg-top-final__note a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }

/* 強みセクションを非表示にしているとき（page-media.php の $vg_show_strength）：最後の相談ブロックだけをカードいっぱいに */
.vg-top-strength-final--cta-only .vg-top-strength-final__card {
  padding: 0;
  overflow: hidden;
}

.vg-top-strength-final--cta-only .vg-top-strength-final__card .vg-top-final {
  margin: 0;
  border-radius: var(--vg-top-radius-lg);
}

/* ===== メディアトップ FV：おすすめ記事のスライダー（2026-09-16。タグ「おすすめ」の記事5件） =====
   一度に見せる件数は --per-view（PC 3件／タブレット 2件／スマホ 1件＋次の記事の端）。page-media.php の script が読む */
.vg-top-fv.vg-top-fv--slider {
  padding: 32px 0 28px;
  overflow: hidden;
}
.vg-top-fv--slider .vg-top-fv__inner {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.vg-top-fv__sr-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.vg-fv-slider {
  /* 3件＋次の記事の半分を見せる（2026-10-26）。JS は整数部分で送り位置を計算する */
  --per-view: 3.5;
  --gap: 16px;
  position: relative;
}

.vg-fv-slider__viewport {
  overflow: hidden;
  border-radius: 0;
  /* 左だけ余白を空けて始める（右は画面端まで流す）。2026-10-26 */
  padding-left: var(--vg-fv-gutter, 40px);
}

.vg-fv-slider__track {
  position: relative;
  display: flex;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.vg-fv-slider__item {
  flex: 0 0 calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view));
  margin: 0;
  padding: 0;
}

.vg-fv-slider__item::before {
  content: none;
}

.vg-fv-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--vg-top-radius-md);
  background: #002a61;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(0, 20, 60, 0.28);
}

.vg-fv-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.vg-fv-card__img--none {
  background: linear-gradient(135deg, #00377f 0%, #0b6aa8 55%, #10b0cd 100%);
}

.vg-fv-card::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 黒ではなくブランドの紺。文字が乗る下half だけに掛け、上は写真をそのまま見せる */
  background: linear-gradient(to top, rgba(0, 42, 97, 0.82) 0%, rgba(0, 42, 97, 0.46) 34%, rgba(0, 42, 97, 0) 62%);
}

.vg-fv-card:hover .vg-fv-card__img {
  transform: scale(1.04);
}

.vg-fv-card:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.vg-fv-card__body {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.vg-fv-card__cat {
  padding: 2px 9px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.vg-fv-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vg-fv-card__date {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  font-variant-numeric: tabular-nums;
}

/* 操作部分：前へ・インジケーター・次へ・一時停止 */
.vg-fv-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.vg-fv-slider__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vg-top-fv__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.2s ease;
}

.vg-top-fv__dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.vg-top-fv__dot.is-active {
  width: 22px;
  background: #ffffff;
  transform: none;
}

.vg-top-fv__arrow,
.vg-top-fv__play {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.vg-top-fv__arrow {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #ffffff;
}

.vg-top-fv__arrow:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: #00377f;
}

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

.vg-top-fv__play {
  margin-left: 4px;
  border: 1px solid #ffffff;
  background: #ffffff;
  color: #00377f;
}

.vg-top-fv__play .material-icons-round {
  font-size: 20px;
}

.vg-top-fv__play:hover {
  border-color: #e8eff9;
  background: #e8eff9;
  color: #00377f;
}

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

/* 小さめの PC：2件＋半分 */
@media (max-width: 1279px) {
  .vg-fv-slider { --per-view: 2.5; }
}

/* タブレット：1件＋半分 */
@media (max-width: 1023px) {
  .vg-fv-slider { --per-view: 1.5; --gap: 14px; --vg-fv-gutter: 24px; }
  .vg-fv-card__body { left: 14px; right: 14px; bottom: 12px; }
}

@media (max-width: 639px) {
  .vg-top-fv.vg-top-fv--slider { padding: 20px 0 22px; }
  /* 1件＋次の記事の端を見せて、横に動かせることが分かるように */
  .vg-fv-slider { --per-view: 1; --gap: 12px; --vg-fv-gutter: 16px; }
  .vg-fv-slider__viewport { border-radius: 0; overflow: visible; }
  .vg-fv-slider__item { flex-basis: 86%; }
  .vg-fv-card__body { left: 14px; right: 14px; bottom: 12px; }
  .vg-fv-card__title { font-size: 15px; }
  .vg-fv-slider__controls { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .vg-fv-slider__track,
  .vg-fv-card__img { transition: none; }
}

