/* =========================================================
   SKYGAUGE — style.css
   Variant C（採用デザイン）を Vanilla CSS へ移植したもの。
   ========================================================= */

/* ---------- 1. CSS変数（トークン） ---------- */
:root {
  /* カラー */
  --color-primary: #0b5fff;
  --color-accent: #00c2a8;
  --color-heading: #0a2540;
  --color-text: #0e1726;
  --color-text-muted: #5b6675;
  --color-background: #ffffff;
  --color-background-subtle: #f4f7fa;
  --color-border: #e3e8ee;

  /* 補助トーン（画像オーバーレイ・グラデーション用の深色） */
  --color-overlay-deep: #0a1726;
  --color-overlay-deep-2: #13325f;
  --color-scrim: #060f1c;

  /* フォント */
  --font-display: "Space Grotesk", "Inter", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --font-sans: "Inter", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 角丸 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* 余白（PC基準） */
  --section-padding-y: 120px;
  --section-padding-x: 80px;
  --section-max-width: 1280px;
  --nav-max-width: 1440px;
  --card-gap-sm: 16px;
  --card-gap-md: 24px;
  --card-gap-lg: 32px;

  /* ヘッダー基準オフセット（アンカースクロール用） */
  --header-offset: 72px;

  /* シャドウ */
  --shadow-card: 0 4px 20px rgba(10, 37, 64, 0.04);
  --shadow-card-lg: 0 4px 24px rgba(10, 37, 64, 0.04);
  --shadow-btn-primary: 0 10px 30px rgba(11, 95, 255, 0.4);
  --shadow-btn-accent: 0 10px 30px rgba(0, 194, 168, 0.4);
}

/* ---------- 2. リセット / 基本設定 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* JSでオフセット付きスクロールを行うため既定はauto */
}

body {
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

/* 上記のリセットが [hidden] より優先されてしまうため、明示的に上書きする */
[hidden] {
  display: none;
}

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--color-heading);
  line-height: 1.2;
}

/* ---------- 3. 共通レイアウト ---------- */
.sg-section {
  padding: var(--section-padding-y) var(--section-padding-x);
  background: var(--color-background);
}

.sg-section--soft {
  background: var(--color-background-subtle);
}

.sg-section__inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
}

.sg-section__header {
  text-align: center;
  margin: 0 auto 64px;
}

.sg-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(11, 95, 255, 0.08);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.sg-section__title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

/* 2026-08-24 会社概要の見出しをロゴ画像に置き換えたときの表示調整。
   ロゴは白背景のJPGのため、mix-blend-mode で薄いグレーの背景になじませる。 */
.sg-section__title--logo {
  line-height: 0;
}

.sg-company__logo {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  mix-blend-mode: multiply;
}

.sg-section__lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 24px auto 0;
}

#product .sg-section__lead {
  max-width: 900px;
}

#software .sg-section__lead {
  max-width: 960px;
}

/* スクロールフェードイン（JS有効時のみ非表示から開始） */
.reveal {
  opacity: 1;
  transform: none;
}

html.js-enabled .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

html.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 4. ボタン ---------- */
.sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  white-space: nowrap;
}

.sg-btn--primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(11, 95, 255, 0.3);
}

.sg-btn--accent {
  background: var(--color-accent);
  color: var(--color-heading);
  font-weight: 700;
}

.sg-btn--lg {
  padding: 16px 28px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.sg-btn--primary.sg-btn--lg {
  box-shadow: var(--shadow-btn-primary);
}

.sg-btn--accent.sg-btn--lg {
  box-shadow: var(--shadow-btn-accent);
}

.sg-check {
  font-weight: 700;
  color: var(--color-accent);
}

/* ---------- 5. お知らせバー ---------- */
.sg-notice {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 51;
  background: linear-gradient(90deg, var(--color-overlay-deep), var(--color-overlay-deep-2));
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
}

.sg-notice__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
}

.sg-notice__tag {
  flex-shrink: 0;
  padding: 4px 10px;
  background: var(--color-accent);
  color: var(--color-heading);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-radius: var(--radius-pill);
}

.sg-notice__text {
  flex: 1;
  line-height: 1.5;
}

.sg-notice__text strong {
  font-weight: 700;
}

.sg-notice__text span {
  opacity: 0.85;
  margin-left: 12px;
}

.sg-notice__link {
  flex-shrink: 0;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
}

.sg-notice__close {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1;
  padding: 4px;
}

.sg-notice[hidden] {
  display: none;
}

/* ---------- 6. 固定ヘッダー / ナビゲーション ---------- */
/* ヘッダーはHero上に透過オーバーレイとして重なる仕様のため、
   main側で確保するのはお知らせバーの高さ分のみとする。
   （ヘッダー分まで確保すると、Hero先頭が白い本文背景の上に
   浮いてしまい、透過時の白文字ナビが見えなくなる） */
main {
  padding-top: var(--notice-height, 0px);
}

.sg-header {
  position: fixed;
  top: var(--notice-height, 0px);
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, top 0.3s ease;
}

.sg-header.is-solid {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
}

.sg-nav {
  max-width: var(--nav-max-width);
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.sg-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sg-nav__partner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sg-nav__partner-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  transition: color 0.35s ease;
}

.sg-header.is-solid .sg-nav__partner-name {
  color: var(--color-heading);
}

.sg-nav__divider {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  transition: color 0.35s ease;
}

.sg-header.is-solid .sg-nav__divider {
  color: var(--color-border);
}

/* 2026-08-27 顧客指摘: 日鉄物産・SKYGAUGE ともに正式なアイコンマーク画像へ差し替え。
   以前は CSS で作った代用マーク（4分割の白い菱形／"S"のグラデーション角丸）だった。 */
/* 2026-08-27 顧客指摘: 2つのマークは同じ表示サイズに揃える（ヘッダー30px／フッター24px）。 */
.sg-partner-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.sg-partner-mark--sm {
  width: 24px;
  height: 24px;
}

.sg-nav__logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* 2026-09-08 顧客指摘: 日鉄物産ロゴに対しSKYGAUGEロゴが極端に大きく見えるため、
   マーク・ワードマークを一段小さくして両社ロゴの見た目のサイズを揃える。 */
.sg-nav__mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-right: -2px;
}

.sg-nav__logo--wordmark {
  width: auto;
  height: 12px;
  filter: brightness(0) invert(1);
  transition: filter 0.35s ease;
}

.sg-header.is-solid .sg-nav__logo--wordmark {
  filter: none;
}

.sg-nav__name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.35s ease;
}

.sg-header.is-solid .sg-nav__name {
  color: var(--color-heading);
}

.sg-nav__menu {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
}

.sg-nav__link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease, background 0.3s ease;
  white-space: nowrap;
}

.sg-header.is-solid .sg-nav__link {
  color: var(--color-text-muted);
}

.sg-nav__link.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.sg-header.is-solid .sg-nav__link.is-active {
  background: rgba(11, 95, 255, 0.08);
  color: var(--color-primary);
}

.sg-nav__cta {
  flex-shrink: 0;
}

/* 2026-08-28 1366x768（〜1439px）でもヘッダーを1列に収める。
   ナビ項目11個＋ブランド＋CTAは既定サイズだと834px枠にわずかに収まらず
   「お問い合わせ」が2行目に折り返すため、この幅帯だけ余白・文字サイズを詰める。
   1140px未満は詰めても入り切らないため、従来通り折り返させる。 */
@media (max-width: 1439px) and (min-width: 1140px) {
  .sg-nav {
    padding: 14px 24px;
    gap: 16px;
    flex-wrap: nowrap;
  }

  .sg-nav__brand {
    gap: 8px;
    flex-shrink: 0;
  }

  .sg-nav__partner {
    gap: 6px;
  }

  .sg-nav__partner-name {
    font-size: 14px;
  }

  .sg-nav__name {
    font-size: 17px;
    letter-spacing: 0.06em;
  }

  .sg-nav__logo:not(.sg-nav__logo--wordmark),
  .sg-nav__brand .sg-partner-mark {
    width: 26px;
    height: 26px;
  }

  .sg-nav__mark {
    width: 20px;
    height: 20px;
  }

  .sg-nav__logo--wordmark {
    height: 11px;
  }

  .sg-nav__menu {
    flex-wrap: nowrap;
    gap: 0;
  }

  .sg-nav__link {
    padding: 8px 9px;
    font-size: 12.5px;
  }

  .sg-nav__cta {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* ---------- 7. Hero ---------- */
.sg-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  background: var(--color-heading);
}

.sg-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sg-hero__video,
.sg-hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-heading);
}

/* 2026-08-24 Hero動画のクロスフェード。
   2枚のvideoを重ね、再生中の1枚だけに .is-active を付けて不透明にする。
   切り替え時間は js/main.js の CROSSFADE_SEC と揃えること。 */
.sg-hero__video {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  will-change: opacity;
}

.sg-hero__video.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .sg-hero__video {
    transition-duration: 0.2s;
  }
}

.sg-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sg-hero__overlay--diagonal {
  background: linear-gradient(
    100deg,
    rgba(6, 15, 28, 0.86) 0%,
    rgba(6, 15, 28, 0.62) 34%,
    rgba(6, 15, 28, 0.28) 60%,
    rgba(6, 15, 28, 0.05) 100%
  );
}

.sg-hero__overlay--vertical {
  background: linear-gradient(
    180deg,
    rgba(6, 15, 28, 0.4) 0%,
    transparent 22%,
    transparent 55%,
    rgba(6, 15, 28, 0.5) 100%
  );
}

.sg-hero__inner {
  position: relative;
  height: 100%;
  max-width: var(--nav-max-width);
  margin: 0 auto;
  padding: 120px 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 2026-08-27 顧客指摘: PCで見出しが収まらず「安全に」が3行目にこぼれていたため、
   見出し行の幅を広げ、文字サイズをビューポート幅に追従させて2行に収める。 */
.sg-hero__content {
  max-width: min(1000px, 100%);
}

.sg-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(10, 20, 34, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 26px;
}

.sg-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(0, 194, 168, 0.27);
}

.sg-hero__title {
  font-size: clamp(40px, 6.4vw, 82px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
  color: #ffffff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.sg-hero__title-highlight {
  background: linear-gradient(120deg, #5aa0ff, var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sg-hero__lead {
  display: inline-block;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 34px;
  max-width: 580px;
  padding: 16px 20px;
  background: rgba(8, 16, 28, 0.45);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 2026-08-24 Hero右上の総代理店表記。
   広い画面ではHero右側（見出しと重ならない位置）に絶対配置し、
   1024px以下では本文の下に通常のブロックとして回り込ませる。
   1行で見せる指定のため white-space: nowrap を維持し、
   はみ出さないよう文字サイズを clamp() でビューポート幅に追従させる。 */
/* 2026-08-27 顧客指摘: 青いボックス（背景・枠線・グロー）を廃止して文字のみとし、
   位置もヘッダー直下の右上へ寄せる。明るい映像の上でも読めるよう影だけ残す。 */
.sg-hero__note {
  position: absolute;
  top: 84px;
  right: 80px;
  z-index: 1;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  font-size: clamp(14px, 1.2vw, 19px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 0, 0, 0.45);
}

/* 1440px未満は本文カラムと横位置が近づくため、右余白を本文に合わせる。 */
@media (max-width: 1439px) and (min-width: 1025px) {
  .sg-hero__note {
    right: 40px;
  }
}

.sg-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- 7.5. 導入・課題認識 ----------
   出典: SKYGAUGE HP.dc.html（顧客確認済みデザイン修正案）。
   3課題カードは .sg-feature-card（9章）を再利用し、既存デザインと統一する。 */
.sg-challenge__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap-md);
  margin-bottom: var(--card-gap-lg);
}

.sg-challenge__banner {
  position: relative;
  display: flex;
  /* 2026-08-24 見出しを画像下部から画像の中央へ移動 */
  align-items: center;
  justify-content: center;
  min-height: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-heading);
}

.sg-challenge__banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-challenge__banner-overlay {
  position: absolute;
  inset: 0;
  /* 見出しが中央に来るため、中央部にも暗さを足して文字の可読性を確保する。 */
  background:
    radial-gradient(ellipse at center, rgba(6, 15, 28, 0.55) 0%, rgba(6, 15, 28, 0.15) 65%, rgba(6, 15, 28, 0) 100%),
    linear-gradient(180deg, rgba(6, 15, 28, 0.15) 0%, rgba(6, 15, 28, 0.35) 55%, rgba(6, 15, 28, 0.88) 100%);
}

.sg-challenge__banner-title {
  position: relative;
  z-index: 1;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-align: center;
  margin: 0;
  padding: 0 40px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

/* 2026-08-27 顧客指摘: グラデーション文字をやめ、白＋一回り大きい字で強調する。 */
.sg-challenge__banner-highlight {
  color: #ffffff;
  font-size: 1.3em;
  letter-spacing: 0.01em;
}

/* ---------- 8. 製品概要 ---------- */
.sg-product__top {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--card-gap-lg);
  align-items: stretch;
  margin-bottom: var(--card-gap-md);
}

.sg-product__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-background-subtle);
  min-height: 440px;
  border: 1px solid var(--color-border);
}

.sg-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-product__points {
  display: grid;
  gap: var(--card-gap-sm);
  align-content: start;
}

.sg-point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: var(--card-gap-md);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.sg-point__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(11, 95, 255, 0.13), rgba(0, 194, 168, 0.13));
  color: var(--color-primary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sg-point__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.sg-point__desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0;
}

.sg-payload-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 32px;
}

.sg-payload-header__title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.sg-payload-header__lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin: 0;
}

.sg-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sg-detail-grid + .sg-detail-grid {
  margin-top: 20px;
}

.sg-detail-grid--centered {
  display: flex;
  justify-content: center;
}

.sg-detail-grid--centered .sg-detail-card {
  flex: 0 1 calc((100% - 40px) / 3);
}

.sg-detail-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-background);
}

.sg-detail-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-background-subtle);
  min-height: 140px;
}

.sg-detail-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-reduction img {
  width: fit-content;
  justify-self: center;
}

.sg-detail-card__body {
  padding: var(--card-gap-md);
}

/* 2026-08-27 顧客指摘: 「錆除去・表面処理用ブラシペイロード」がPC幅で2行に折り返すため、
   カード幅（＝ビューポート幅）に追従して1行に収まるサイズへ。 */
.sg-detail-card__title {
  font-size: clamp(12px, calc((100vw - 200px) / 54 - 3px), 19px);
  font-weight: 700;
  margin: 0 0 8px;
}

.sg-detail-card__desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- 9. 特徴・機能 ---------- */
.sg-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap-md);
}

.sg-feature-card {
  position: relative;
  padding: var(--card-gap-lg);
  background: var(--color-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.sg-feature-card__metric {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  line-height: 1.3;
}

.sg-feature-card__metric-sub {
  font-size: 26px;
}

/* 2026-08-27 顧客指摘: 右列カードの見出しがPC幅で中途半端に2行へ折り返すため、
   カード内側の実幅に比例させて1行に収める。 */
.sg-feature-card__title {
  font-size: clamp(12px, calc((100vw - 208px) / 50 - 4px), 19px);
  font-weight: 700;
  margin: 16px 0 10px;
}

.sg-feature-card__desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0;
}

/* 2026-08-24 特徴・機能セクションのカードのみ、販売・サポートの
   「リース」カード（.sg-plan-card--featured）と同じ濃紺グラデーション背景にする。
   同じ .sg-feature-card を使う課題セクションのカードは白背景のまま。
   背景が暗くなるぶん、文字色もリースカードと同じ扱い（白／不透明度で階調）に揃える。 */
.sg-features__grid .sg-feature-card {
  background: linear-gradient(160deg, var(--color-heading), var(--color-overlay-deep-2));
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(10, 37, 64, 0.2);
}

.sg-features__grid .sg-feature-card__metric,
.sg-features__grid .sg-feature-card__title {
  color: #ffffff;
}

.sg-features__grid .sg-feature-card__desc {
  color: rgba(255, 255, 255, 0.7);
}

/* 2026-08-27 顧客指摘: 「6つの理由」のタイトルセンテンスは
   強調語だけ大きい混在サイズをやめ、6枚とも同じ大きさ（かつ従来より大きく）に揃える。 */
/* サイズはカード内側の実幅（=（ビューポート幅-余白）/3-パディング）に比例させる。
   単純な vw 指定だと「360° 自由自在にコンタクト」だけが2行に折り返すため。 */
.sg-features__grid .sg-feature-card__metric,
.sg-features__grid .sg-feature-card__metric-sub {
  font-size: clamp(16px, calc((100vw - 208px) / 42 - 4px), 26px);
}

/* ---------- 10. 用途・活用シーン ---------- */
/* 2026-08-27 顧客指摘: 2列・5:4だと1枚あたりが大きくスクロールが必要だったため、
   PCでは4枚を1行に並べ、セクション全体が1画面に収まる大きさにする。 */
.sg-usecases__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap-sm);
}

.sg-usecase-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-heading);
  aspect-ratio: 4 / 5;
}

/* 2026-08-24 カード枠（5:4）に対して画像を高さいっぱいに合わせ、
   画像ごとの縦横比の差で下部に紺色の余白が出ないようにする。
   ※ 以前は一部の img に .sg-usecase-card__media--zoom という
      CSS未定義のクラスが付いており、この指定が効いていなかった。 */
.sg-usecase-card__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* タイトルの下地となる帯。写真の明暗にかかわらず白文字が読めるよう、
   下端に向かってはっきり暗くなるグラデーションを敷く。 */
.sg-usecase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 23, 38, 0.94) 0,
    rgba(10, 23, 38, 0.78) 96px,
    rgba(10, 23, 38, 0) 210px
  );
  pointer-events: none;
}

.sg-usecase-card__tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 6px 12px;
  background: var(--color-accent);
  color: var(--color-heading);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
}

.sg-usecase-card__body {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
}

.sg-usecase-card__title {
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 700;
  margin: 0 0 6px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.sg-usecase-card__desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* ---------- 11. 仕様・スペック ---------- */
.sg-specs__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  /* 2026-08-25 右カラム（映像＋主要数値）を仕様表と同じ高さに揃える */
  align-items: stretch;
  background: var(--color-background);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card-lg);
  padding: 48px;
}

/* 2026-08-25 メーカー/モデルはパネル上部のタイトル扱い（2カラムをまたいで中央寄せ） */
.sg-specs__model {
  grid-column: 1 / -1;
  text-align: center;
  padding-bottom: 28px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--color-border);
}

.sg-specs__model-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--color-primary);
  margin: 0 0 10px;
}

.sg-specs__model-name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  margin: 0;
}

.sg-specs__table {
  margin: 0;
}

.sg-specs__row {
  display: grid;
  grid-template-columns: 170px 1fr;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.sg-specs__row--last {
  border-bottom: 0;
}

.sg-specs__key {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.sg-specs__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--color-heading);
  font-weight: 600;
}

/* 2026-08-25 仕様セクションの右カラム。
   仕様表と同じ高さの1枚のパネルとして構成し、上段に実機映像、下段に主要数値を置く。
   スクロール追従（sticky）はやめ、高さが揃うことで余白を作らない。
   映像は studio 撮影の明るい背景を持つため、
   ・brightness/contrast で背景をほぼ白に寄せる
   ・mix-blend-mode: multiply で白いパネル面に背景を溶かす
   ・さらに四辺を mask でフェード
   の3段構えで「枠のない、機体だけが浮いている」見え方にする。 */
.sg-specs__media {
  display: flex;
  flex-direction: column;
  gap: 24px;
  /* 余った高さは映像と下段の間に置く。ステージ自身は映像とぴったり同じ箱にして、
     背景（＝映像の地を広げた面）との位置関係を画面サイズによらず一定に保つ。 */
  justify-content: space-between;
  min-height: 100%;
}

.sg-specs__stage {
  position: relative;
  flex: none;
  display: block;
  isolation: isolate;
}

/* 映像の“地”を外側へ広げる面。
   映像から切り出した1フレームを強くぼかした画像を、映像より一回り大きい範囲に敷く。
   映像の縁の内側と外側が同じ色になるため、縁そのものが見えなくなる。
   （動画の背景は30秒間ほぼ一定＝各端点の輝度変動は±3以内。静止画で十分に一致する） */
.sg-specs__stage::before {
  content: "";
  position: absolute;
  /* 映像の外へはみ出す量。パネルの内側余白（48px）と列間（48px）に収まる比率にして、
     どの画面幅でも表やタイトルの罫線へはみ出さないようにする。 */
  inset: -7%;
  z-index: 0;
  /* 画像は「映像フレームの外周をエッジ複製で 左右+14% / 上下+12% ぶん広げたもの」。
     背景箱と同じ比率なので 100% 100% で貼れば映像の縁とピクセル位置が一致し、
     縁の内外がまったく同じ色になる（＝縁が消える）。 */
  background: url("../images/specs-stage-backdrop.jpg") center / 100% 100% no-repeat;
  filter: blur(10px);
  /* 映像が乗る中央部は不透明のまま、外周だけをパネル背景へ向けて減衰させる。
     矩形に沿ってフェードさせたいので、縦横2本のグラデーションを掛け合わせる。 */
  /* 映像が乗る範囲（背景箱の 6.1%〜93.9%）は不透明のまま、その外側だけを減衰させる。 */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 5.5%, #000 94.5%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5.5%, #000 94.5%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 5.5%, #000 94.5%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5.5%, #000 94.5%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
}

/* 映像の器。映像を上下左右1%ずつ大きく描いてここでクリップする。
   等倍だとサブピクセルの端数で縁に1pxの隙間が生じ、そこに黒い線が見えることがある。 */
.sg-specs__frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* 映像はシャープなまま（上に白いベールを重ねないので機体が白く飛ばない）。 */
.sg-specs__frame img,
.sg-specs__video {
  position: absolute;
  top: -1%;
  left: -1%;
  width: 102%;
  height: 102%;
  display: block;
  object-fit: cover;
  background: transparent;
}

/* 下段：仕様表からあふれた主要項目。表と同じ行レイアウト・同じ数値表記に揃える。 */
.sg-specs__highlights {
  margin: 0;
  border-top: 1px solid var(--color-border);
  padding-top: 4px;
}

/* ---------- 12. ソフトウェア ---------- */
/* 2026-08-24 画像を画面の右半分に収まるサイズまで縮小し、
   左の01〜04の説明カラムを広げる。高さは align-items: stretch により
   説明カラムの高さに画像を合わせる（min-height での固定はやめる）。 */
.sg-software__top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: stretch;
  margin-bottom: var(--card-gap-lg);
}

.sg-software__list {
  display: grid;
  gap: var(--card-gap-sm);
  align-content: start;
}

.sg-software-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--color-background-subtle);
  border-radius: var(--radius-md);
}

.sg-software-item__index {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.06);
}

.sg-software-item__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}

.sg-software-item__desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0;
}

.sg-software__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-heading);
  border: 1px solid var(--color-border);
}

/* 画像を absolute にして、画像本来の高さが行の高さを押し広げないようにする。
   これにより行の高さは左の説明カラムだけで決まり、画像はその高さに合わせて伸縮する
   （通常フローのままだと画像の実寸比率で行が高くなり、説明カラムの下に余白ができる）。 */
.sg-software__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-software__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 23, 38, 0.35) 0%, transparent 30%, transparent 55%, rgba(10, 23, 38, 0.82) 100%);
  pointer-events: none;
}

.sg-software__media-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
}

.sg-software__media-caption h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.sg-software__media-caption p {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* 2026-08-24 レポート画像を大きく見せるため、画像と説明を1:1幅に変更 */
.sg-report {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card-lg);
}

.sg-report__media {
  width: 100%;
  aspect-ratio: 1200 / 1263;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-background);
  box-shadow: 0 16px 44px rgba(10, 37, 64, 0.16);
  border: 1px solid var(--color-border);
}

.sg-report__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sg-report__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}

.sg-report__title {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.sg-report__desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-muted);
  margin: 0 0 24px;
  max-width: 560px;
}

.sg-report__checklist {
  display: grid;
  gap: 10px;
}

.sg-report__checklist li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  color: var(--color-heading);
}

/* 2026-08-27 顧客指摘: 「用途」「主な仕様」は1画面に収まる高さへ調整する。 */
#usecases.sg-section,
#specs.sg-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

#usecases .sg-section__header,
#specs .sg-section__header {
  margin-bottom: 40px;
}

#specs .sg-specs__panel {
  gap: 48px;
  padding: 44px;
}

/* 2026-08-27 顧客指摘: 映像の“地”を広げる背景（.sg-specs__stage::before は映像の
   外側7%まではみ出す）がパネルの内側余白と列間に収まらず、仕様表側へにじんでいた。
   映像自体を左右24pxぶん内側に寄せ、はみ出し量（幅の7%）が
   「余白24px + 列間の半分24px」以内に収まるようにする。 */
#specs .sg-specs__stage {
  margin-inline: 24px;
}

#specs .sg-specs__model {
  padding-bottom: 14px;
}

#specs .sg-specs__model-label {
  margin-bottom: 6px;
}

#specs .sg-specs__model-name {
  font-size: 22px;
}

#specs .sg-specs__row {
  padding: 8px 0;
}

/* 2026-08-27 顧客指摘: 仕様表（左カラム）の行を上に詰めていたため、
   右カラム（映像＋主要数値）より背が低くなり左下に余白ができていた。
   表を縦フレックスにして各行に余った高さを均等配分し、
   最終行の下端が右カラムと揃うようにする。 */
#specs .sg-specs__table {
  display: flex;
  flex-direction: column;
}

#specs .sg-specs__table .sg-specs__row {
  flex: 1 1 auto;
  align-items: center;
}

/* 販売プランのサブタイトルが2行になるため、1行に収まる幅を与える。 */
#plans .sg-section__lead {
  max-width: 1000px;
}

/* ---------- 13. 導入の流れ ---------- */
.sg-process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap-sm);
}

.sg-process-step {
  position: relative;
  padding: var(--card-gap-md);
  background: var(--color-background);
  border-radius: var(--radius-md);
}

.sg-process-step__index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

.sg-process-step__title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
}

.sg-process-step__desc {
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- 14. 販売・サポート ---------- */
.sg-plans__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 2026-08-24 3プランともCTAをアクセント色に統一したのに合わせ、
   カード背景も「リース」の濃紺グラデーションをベースに揃える。
   購入・デモは明度をわずかに上げた同系グラデーション、
   リース（おすすめ）はアクセント色を差したグラデーションで差別化する。 */
/* 2026-08-24 3プランに優劣はないため、カードごとの装飾差はつけず、
   3枚が並んだときに左から右へ「薄い紺 → 紺 → 濃い紺」の1本のグラデーションに
   見えるよう、各カードにその区間だけを割り当てる（#1e4d85 → #0a2540）。 */
.sg-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--card-gap-lg);
  border-radius: 18px;
  background: linear-gradient(90deg, #17406e, #113257);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.16);
}

.sg-plan-card:nth-child(1) {
  background: linear-gradient(90deg, #1e4d85, #17406e);
}

.sg-plan-card:nth-child(2) {
  background: linear-gradient(90deg, #17406e, #113257);
}

.sg-plan-card:nth-child(3) {
  background: linear-gradient(90deg, #113257, #0a2540);
}

.sg-plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: var(--color-accent);
  color: var(--color-heading);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.sg-plan-card__name {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  /* h3 のグローバル指定（濃紺）が効くと暗い背景で読めなくなるため上書きする。 */
  color: #ffffff;
}

.sg-plan-card__tagline {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 24px;
  line-height: 1.5;
}

.sg-plan-card__points {
  margin: 0 0 28px;
}

.sg-plan-card__points li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.6;
}

/* 暗い背景では青のチェックは沈むため、3プランともアクセント色に揃える。 */
.sg-plan-card .sg-check {
  color: var(--color-accent);
}

.sg-plan-card__cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* ---------- 15. 会社概要 ---------- */
.sg-company__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
  background: var(--color-background);
  padding: 48px;
  border-radius: var(--radius-xl);
}

.sg-company__blurb {
  font-size: 15px;
  line-height: 1.95;
  color: var(--color-text-muted);
  margin: 0 0 28px;
}

.sg-company__link {
  text-decoration: none;
}

.sg-company__table {
  margin: 0;
}

.sg-company__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
}

.sg-company__row:first-child {
  border-top: 0;
}

.sg-company__term {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.sg-company__desc {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.sg-company__desc a {
  color: inherit;
}

/* ---------- 16. お問い合わせ ---------- */
.sg-contact__form {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px;
  background: var(--color-background-subtle);
  border-radius: var(--radius-xl);
  display: grid;
  gap: 20px;
}

.sg-form-group {
  display: block;
}

.sg-form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-heading);
  margin-bottom: 8px;
  font-weight: 600;
}

.sg-form-required {
  color: var(--color-primary);
  margin-left: 4px;
}

.sg-form-note {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-left: 10px;
}

.sg-form-input,
.sg-form-textarea,
.sg-form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  color: var(--color-heading);
  font-family: var(--font-sans);
  font-size: 14px;
  border-radius: var(--radius-sm);
  outline: none;
}

.sg-form-input:focus,
.sg-form-textarea:focus,
.sg-form-select:focus {
  border-color: var(--color-primary);
}

.sg-form-input.is-invalid,
.sg-form-textarea.is-invalid,
.sg-form-select.is-invalid {
  border-color: #d3242f;
}

.sg-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sg-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-heading);
  border-radius: var(--radius-sm);
}

.sg-checkbox input {
  accent-color: var(--color-primary);
}

/* 「ご依頼内容」用のトグルボタン表現（元デザイン準拠：選択すると青に反転） */
.sg-checkbox--toggle {
  padding: 10px 18px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sg-checkbox--toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.sg-checkbox--toggle.is-selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.cf-turnstile {
  margin-top: 4px;
}

.sg-form-error-text {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #d3242f;
}

/* 2026-09-08 顧客指摘: 個人情報の取り扱いに関する説明と同意チェック。 */
.sg-form-consent {
  padding: 20px 22px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.sg-form-consent__title {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-heading);
}

.sg-form-consent__text {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-text);
}

.sg-form-consent__text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.sg-form-consent__check {
  display: inline-flex;
  background: #ffffff;
}

.sg-form-consent__check input.is-invalid {
  outline: 2px solid #d3242f;
  outline-offset: 2px;
}

.sg-form-submit {
  margin-top: 8px;
  padding: 16px 28px;
  box-shadow: 0 8px 24px rgba(11, 95, 255, 0.25);
}

.sg-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sg-form-result {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.sg-form-result--success {
  background: rgba(0, 194, 168, 0.12);
  color: #067a68;
}

.sg-form-result--error {
  background: rgba(211, 36, 47, 0.1);
  color: #d3242f;
}

/* ---------- 17. フッター ---------- */
.sg-footer {
  padding: 40px 80px;
  background: var(--color-heading);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-sans);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sg-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sg-footer__logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.sg-footer__note {
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  font-size: 11px;
}

/* ---------- 18. フォームのエラー表示 ---------- */
.sg-checkbox-group.is-invalid {
  outline: 1px solid #d3242f;
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* =========================================================
   レスポンシブ
   PC: 1025px以上（上記が基準値）
   タブレット: 641px〜1024px
   スマートフォン: 640px以下
   ========================================================= */

/* ---------- タブレット ---------- */
@media (max-width: 1024px) {
  .sg-section {
    padding-left: 40px;
    padding-right: 40px;
  }

  .sg-nav {
    padding-left: 24px;
    padding-right: 24px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .sg-nav__menu {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .sg-hero__inner {
    padding: 200px 40px 56px;
    justify-content: flex-start;
  }

  .sg-hero__note {
    position: static;
    align-self: flex-start;
    margin-top: 28px;
  }

  .sg-section__title {
    font-size: 40px;
  }

  .sg-challenge__cards,
  .sg-features__grid,
  .sg-usecases__grid,
  .sg-plans__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sg-usecase-card {
    aspect-ratio: 5 / 4;
  }

  .sg-usecase-card__title {
    font-size: 20px;
  }

  .sg-process__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sg-specs__panel,
  .sg-software__top,
  .sg-contact__form,
  .sg-company__grid {
    grid-template-columns: 1fr;
  }

  /* 2026-08-26 縦積みでは「映像 → モデル名 → 仕様表 → 主要3項目」の順に並べる。
     display: contents で右カラムの中身をパネル直下の要素として扱い、order で入れ替える。 */
  .sg-specs__media {
    display: contents;
  }

  .sg-specs__stage {
    order: -1;
  }

  /* 縦積みでは映像がパネル幅いっぱいになるため、はみ出し量を内側余白（48px）に
     収まる比率へ落とす。マスクの不透明域も 4.55%〜95.45%（映像の縁）を覆う値に合わせる。 */
  .sg-specs__stage::before {
    inset: -5%;
    -webkit-mask-image:
      linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%);
  }

  .sg-specs__highlights {
    order: 1;
  }

  .sg-specs__media {
    min-height: 0;
  }

  /* 縦積みになると高さを合わせる相手がいないため、画像枠に縦横比を与える
     （元画像は縦長のため、そのまま流すと画面を占有しすぎる）。 */
  .sg-software__media {
    aspect-ratio: 4 / 3;
  }

  .sg-product__top {
    grid-template-columns: 1fr;
  }

  .sg-software__top,
  .sg-report {
    grid-template-columns: 1fr;
  }

  .sg-report__media {
    width: 100%;
    max-width: 340px;
  }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 640px) {
  .sg-section {
    padding: 64px 20px;
  }

  .sg-nav {
    padding: 12px 16px;
  }

  .sg-nav__cta {
    display: none;
  }

  .sg-hero {
    min-height: 620px;
  }

  .sg-hero__inner {
    padding: 150px 20px 48px;
    justify-content: flex-start;
  }

  .sg-hero__title {
    font-size: 42px;
    line-height: 1.1;
  }

  .sg-hero__lead {
    font-size: 16px;
  }

  .sg-hero__note {
    font-size: clamp(12px, 3.7vw, 18px);
    padding: 14px 14px;
    margin-top: 20px;
  }

  .sg-section__title {
    font-size: 30px;
    line-height: 1.2;
  }

  .sg-point__title,
  .sg-detail-card__title {
    font-size: 18px;
  }

  .sg-challenge__cards,
  .sg-features__grid,
  .sg-usecases__grid,
  .sg-plans__grid,
  .sg-process__grid,
  .sg-product__top,
  .sg-detail-grid,
  .sg-software__top,
  .sg-report {
    grid-template-columns: 1fr;
  }

  .sg-challenge__banner-title {
    font-size: 28px;
  }

  .sg-detail-grid--centered {
    flex-direction: column;
  }

  .sg-detail-grid--centered .sg-detail-card {
    flex-basis: auto;
  }

  .sg-report__media {
    width: 100%;
    max-width: 300px;
  }

  .sg-company__grid {
    padding: 24px;
  }

  .sg-company__row {
    grid-template-columns: 100px 1fr;
    gap: 12px;
  }

  .sg-contact__form {
    padding: 20px;
  }

  .sg-specs__panel,
  #specs .sg-specs__panel {
    padding: 24px;
  }

  /* 縦積みでは映像がパネル幅いっぱいでも背景のはみ出しが内側余白に収まるため、
     PC用に付けた左右の逃げは戻す。 */
  #specs .sg-specs__stage {
    margin-inline: 0;
  }

  .sg-specs__model-name {
    font-size: 22px;
  }

  .sg-specs__model {
    padding-bottom: 20px;
  }

  /* 2026-08-24 スマホ幅では項目名（170px固定）を引いた値側の幅が
     70px程度しか残らず値が細かく折り返すため、上下2段に積む。 */
  .sg-specs__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .sg-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 32px 20px;
  }

  .sg-notice__inner {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .sg-notice__text span {
    display: block;
    margin: 4px 0 0 0;
    font-size: 12px;
  }
}
