:root {
  /* USGM側で必要ならここで色を上書き（全ページへは影響させない） */
}

/* USGMページだけに効かせる */
body.usgm {
  /* 既存のミント背景を少しだけ“ジム”寄りに（暗くせず、清潔感） */
  --bg: #5ed6cf;
  --bg2: #5ed6cf;
}

body.usgm .usgm-brand {
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.6px;
}

body.usgm .usgm-brand-mark {
  display: inline-flex;
  align-items: baseline;
  font-size: 18px;
  line-height: 1;
  color: rgba(11, 18, 32, 0.92);
}

body.usgm .usgm-brand-sub {
  display: inline-flex;
  align-items: baseline;
  font-size: 12px;
  line-height: 1;
  color: rgba(11, 18, 32, 0.58);
  font-weight: 800;
}

body.usgm .usgm-pill {
  border-color: rgba(11, 18, 32, 0.18);
}

/* メニュー/上部CTAの文言が長いので、USGMだけ少しだけ詰める */
body.usgm .topbar-pill {
  padding: 12px 14px;
}

body.usgm .topbar-pill-full {
  font-size: 12px;
}

/* ヒーロー画像 */
body.usgm .usgm-hero-photo {
  position: relative;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(255, 255, 255, 0.92);
  /* 既定(520px)から上下15%ずつ相当（合計30%）狭くする */
  height: 364px;
}

body.usgm .usgm-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 520px at 65% 25%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.38) 68%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.06), rgba(11, 18, 32, 0.62));
  z-index: 1;
}

body.usgm .usgm-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* モノクロ寄りの“おしゃれ”トーン */
  filter: grayscale(0.45) contrast(1.14) brightness(0.9) saturate(0.75);
  transform: scale(1.03);
}

/* ヒーロー内テキスト（画像の上に“かっこよく”配置） */
body.usgm .usgm-hero-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 44px);
  max-width: 440px;
  bottom: auto;
  z-index: 2;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  /* 四角い枠は使わず、文字だけで見せる */
  padding: 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

body.usgm .usgm-hero-title {
  margin: 0;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  font-size: 36px;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

body.usgm .usgm-hero-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.25;
  font-size: 15px;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

body.usgm .usgm-hero-lead-strong {
  font-weight: 900;
}

body.usgm .usgm-hero-cta {
  width: min(360px, 100%);
  justify-content: center;
}

body.usgm .usgm-hero-cta:hover {
  transform: translateY(-1px);
}

/* うっすら“粒子感” */
body.usgm .usgm-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2; /* 文字より上にしない */
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.035) 0px,
      rgba(255, 255, 255, 0.035) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.02) 0px,
      rgba(0, 0, 0, 0.02) 1px,
      rgba(0, 0, 0, 0) 1px,
      rgba(0, 0, 0, 0) 6px
    );
  opacity: 0.25;
  mix-blend-mode: overlay;
}

/* 画像セクション（公式ページのように“写真だけ”を差し込む） */
body.usgm .usgm-photo-section {
  padding: 0;
  background: transparent;
}

body.usgm .usgm-photo {
  width: 100%;
  /* 既定(520px)から上下15%ずつ相当（合計30%）狭くする */
  height: 364px;
  overflow: hidden;
  border-top: 1px solid rgba(11, 18, 32, 0.08);
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
  position: relative;
}

body.usgm .usgm-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.38) contrast(1.12) brightness(0.93) saturate(0.78);
  transform: scale(1.02);
}

body.usgm .usgm-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 5px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.015) 0px,
      rgba(0, 0, 0, 0.015) 1px,
      rgba(0, 0, 0, 0) 1px,
      rgba(0, 0, 0, 0) 7px
    );
  opacity: 0.22;
  mix-blend-mode: overlay;
}

/* “おしゃれに加工”の軽い陰影 */
body.usgm .usgm-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 70% 30%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.22) 70%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.06), rgba(11, 18, 32, 0.08));
}

@media (max-width: 980px) {
  body.usgm .usgm-photo {
    height: 294px;
  }
  body.usgm .usgm-hero-photo {
    height: 294px;
  }
}

@media (max-width: 520px) {
  body.usgm .usgm-hero-content {
    max-width: 100%;
  }
  body.usgm .usgm-hero-title {
    font-size: 32px;
  }

  body.usgm .usgm-photo {
    height: 224px;
  }
  body.usgm .usgm-hero-photo {
    height: 224px;
  }
}

/* 右下固定：公式LINE */
body.usgm .usgm-line-fab {
  position: fixed;
  right: calc(14px + env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
}

/* “タワー内”に収まる右下位置（デスクトップの左レール/シフト込み） */
@media (min-width: 1100px) {
  body.usgm .usgm-line-fab {
    right: calc((100vw - var(--leftRailW) - var(--towerW)) / 2 - var(--towerShiftPx) + 14px);
  }
}

body.usgm .usgm-line-fab:hover {
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
}

body.usgm .usgm-line-fab:focus-visible {
  outline: 3px solid rgba(243, 222, 0, 0.55);
  outline-offset: 2px;
}

body.usgm .usgm-line-fab-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: block;
}

body.usgm .usgm-line-fab-text {
  font-weight: 900;
  letter-spacing: -0.2px;
  color: rgba(11, 18, 32, 0.92);
  font-size: 14px;
  white-space: nowrap;
}

/* LIGHTをおすすめ表示（BASICから移動） */
body.usgm .pricing-card--recommended {
  border-color: rgba(243, 222, 0, 0.65);
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

/* USGMはストリップの背景色を少し濃く */
body.usgm .usgm-strip {
  background: rgba(11, 18, 32, 0.88);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

body.usgm .usgm-strip .hero-accent {
  color: #f3de00;
}

body.usgm .usgm-callout {
  border-color: rgba(11, 18, 32, 0.14);
  background: rgba(255, 255, 255, 0.82);
}

body.usgm .usgm-footer-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  font-weight: 900;
  letter-spacing: -0.5px;
}

@media (max-width: 520px) {
  body.usgm .usgm-strip.line2 {
    font-size: 22px;
    white-space: normal;
  }
}

