.vgc-contact { padding-top: 56px; }
.vgc-contact__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; }
.vgc-contact__side { position: sticky; top: 116px; }
.vgc-contact__logo img { display: block; width: 148px; height: auto; }
.vgc-contact__title { margin-top: 30px; font-size: clamp(26px, 1.6vw + 16px, 36px); font-weight: 700; line-height: 1.35; white-space: nowrap; }
.vgc-contact__lead { margin-top: 18px; font-size: 15px; line-height: 1.95; color: var(--vgf-muted); }
.vgc-ceo { position: relative; margin: 26px 0 0; overflow: hidden; border-radius: var(--vgf-radius); background: var(--vgf-bg-subtle); }
.vgc-ceo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 32%; display: block; }
.vgc-ceo__cap {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 46px 22px 18px;
	background: linear-gradient(to top, rgba(0, 42, 97, .92) 0%, rgba(0, 42, 97, .72) 42%, rgba(0, 42, 97, 0) 100%);
	color: #fff; font-size: 20px; font-weight: 700; line-height: 1.4;
}
.vgc-ceo__cap span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .86); }
.vgc-stats {
	display: flex; justify-content: center; gap: 20px;
	margin-top: 20px; padding: 0;
}
.vgc-stats li { display: grid; place-items: center; }
.vgc-stats img { width: 122px; height: auto; display: block; }
.vgc-clients { margin-top: 26px; }
.vgc-clients__title { font-size: 13px; font-weight: 700; color: var(--vgf-muted); }
.vgc-clients__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.vgc-clients__list li { display: grid; place-items: center; height: 84px; padding: 12px; background: #fff; border: 1px solid var(--vgf-line); border-radius: 8px; }
.vgc-clients__list img { max-width: 100%; max-height: 48px; width: auto; height: auto; object-fit: contain; }
.vgc-chat { --cw: #f03748; margin-top: 30px; padding: 26px 28px 28px; background: rgba(223, 28, 19, .05); border: 0; border-radius: var(--vgf-radius); }
.vgc-chat__note { font-size: 13px; font-weight: 700; color: var(--cw); }
.vgc-chat__title { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 22px; font-weight: 700; }
.vgc-chat .vgf-btn { background: var(--cw); border-color: var(--cw); }
.vgc-chat .vgf-btn:hover { background: #d92a3a; border-color: #d92a3a; }
.vgc-chat__text { margin: 10px 0 18px; font-size: 14px; line-height: 1.85; color: var(--vgf-muted); }
.vgc-contact__hint { margin-top: 16px; font-size: 13px; line-height: 1.8; color: var(--vgf-muted); }
/* HubSpot のフォームは iframe 内に左右の余白を持つ（変更不可）ので、見出しや注記も同じだけ内側に寄せる */
.vgc-form { --vgc-hs-pad: 40px; padding: 40px 20px 44px; background: var(--vgf-bg-subtle); border: 1px solid var(--vgf-line); border-radius: var(--vgf-radius); }
.vgc-form__title { padding-inline: var(--vgc-hs-pad); font-size: 24px; font-weight: 700; }
.vgc-form__lead { padding-inline: var(--vgc-hs-pad); margin-top: 8px; font-size: 14px; color: var(--vgf-muted); }
.vgc-form__agree { padding-inline: var(--vgc-hs-pad); margin-top: 20px; font-size: 13.5px; line-height: 1.9; color: var(--vgf-muted); }
.vgc-form__agree a { color: var(--vgf-brand); text-decoration: underline; text-underline-offset: 3px; }

/* 768pxまでは2カラムを維持（余白だけ詰める） */
@media (max-width: 1080px) {
	.vgc-contact__inner { gap: 32px; }
}
@media (max-width: 767px) {
	.vgc-contact__inner { grid-template-columns: 1fr; gap: 40px; }
	.vgc-contact__side { position: static; }
}
@media (max-width: 600px) {
	.vgc-contact { padding-top: 40px; }
	.vgc-form { --vgc-hs-pad: 16px; padding: 28px 6px 32px; }
	
	
}

/* スマートフォンのみHubSpotの左右余白を相殺 */
@media (max-width: 600px) {
  .vgc-form { --vgc-hs-pad: 0px; min-width: 0; padding-inline: 16px; }
  .vgc-form .hs-form-frame { width: 100%; overflow: hidden; }
  .vgc-form .hs-form-frame > iframe { display: block; width: calc(100% + 80px) !important; max-width: none !important; margin-inline: -40px; }
}

/* スマートフォンでは代表者名を写真の下へ配置し、顔を隠さない */
@media (max-width: 600px) {
  .vgc-ceo img { aspect-ratio: 16 / 9; object-position: center 32%; }
  .vgc-ceo__cap {
    position: static;
    padding: 14px 18px 16px;
    background: linear-gradient(135deg, #0b4f9c 0%, #00377f 55%, #002a61 100%);
    font-size: 20px;
  }
  .vgc-ceo__cap span { font-size: 12px; line-height: 1.6; }
}

/* 1カラムになる幅（767px以下）では並び順を入れ替え、フォームを上に出す */
@media (max-width: 767px) {
  .vgc-contact__inner { display: flex; flex-direction: column; gap: 0; }
  .vgc-contact__side { display: contents; }
  .vgc-contact__logo { order: 1; }
  .vgc-contact__title { order: 2; }
  .vgc-contact__lead { order: 3; }
  .vgc-form { order: 4; margin-top: 24px; }
  .vgc-ceo { order: 5; margin-top: 48px; }
  .vgc-stats { order: 6; }
  .vgc-chat { order: 7; }
  .vgc-clients { order: 8; }
  .vgc-contact__hint { display: none; }
}

/* スマホ：Chatworkボタンの文字を1行に収める */
@media (max-width: 600px) {
  .vgc-chat { padding: 22px 20px 24px; }
  .vgc-chat .vgf-btn { gap: 8px; padding: 0 16px; font-size: 14px; letter-spacing: 0; white-space: nowrap; }
}

/* タブレット（768〜1080px）：2カラムのまま狭い幅に合わせる */
@media (min-width: 768px) and (max-width: 1080px) {
  .vgc-form { --vgc-hs-pad: 0px; min-width: 0; padding: 32px 16px 36px; }
  .vgc-form .hs-form-frame { width: 100%; overflow: hidden; }
  .vgc-form .hs-form-frame > iframe { display: block; width: calc(100% + 80px) !important; max-width: none !important; margin-inline: -40px; }
  .vgc-form__title { font-size: 20px; }
  .vgc-chat { padding: 22px 20px 24px; }
  .vgc-chat .vgf-btn { gap: 8px; padding: 0 16px; font-size: 14px; letter-spacing: 0; white-space: nowrap; }
}
