@charset "utf-8";
/*
 * Mech-Station™ シリーズ 製品ページ専用
 * テンプレート: product-mech-station-series.php
 *
 * - すべてのセレクタを .p-mss 配下に限定（既存ページへ干渉しない）
 * - 既存サイトは html { font-size: 62.5% }（SP は 3.125vw）のため、rem は使わず px で指定
 * - Gulp を使わない手書きファイル（非圧縮）
 * - ブレークポイント: 640px / 768px / 1024px（参考ページの sm / md / lg に合わせる）
 */

.p-mss {
  --mss-navy: #00164b;
  --mss-blue: #409ad6;
  --mss-blue-light: #5caee0;
  --mss-blue-10: rgba(64, 154, 214, 0.1);
  --mss-blue-40: rgba(64, 154, 214, 0.4);
  --mss-blue-pale: #e8f2fb;
  --mss-text: #1e293b;
  --mss-text-muted: #64748b;
  --mss-text-dim: #94a3b8;
  --mss-border: #e2e8f0;
  --mss-bg-elevated: #f8fafc;
  --mss-gray-100: #f3f4f6;
  --mss-shadow-blue: 0 4px 16px rgba(64, 154, 214, 0.3);
  --mss-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color: var(--mss-text);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.p-mss *,
.p-mss *::before,
.p-mss *::after {
  box-sizing: border-box;
}

/* 既存の共通スタイル（h2,h3 / figure / figcaption / ul / img / button など）を打ち消す */
.p-mss :where(h2, h3) {
  margin: 0;
  color: var(--mss-navy);
  font-weight: 700;
  line-height: 1.4;
}

.p-mss :where(p) {
  margin: 0;
}

.p-mss :where(figure) {
  position: static;
  margin: 0;
}

.p-mss :where(figcaption) {
  width: auto;
  margin: 0;
}

.p-mss :where(ul, ol, dl, dd) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-mss :where(img) {
  display: block;
  max-width: 100%;
  height: auto;
}

.p-mss :where(button) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.p-mss [hidden] {
  display: none !important;
}

.p-mss a:focus-visible,
.p-mss button:focus-visible,
.p-mss [tabindex]:focus-visible {
  outline: 2px solid var(--mss-blue);
  outline-offset: 2px;
}

/* ---------- 共通レイアウト ---------- */

.p-mss-container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 1024px) {
  .p-mss-container {
    max-width: 1024px;
    padding-inline: 24px;
  }
}

@media (min-width: 1280px) {
  .p-mss-container {
    max-width: 1200px;
  }
}

.p-mss-section {
  padding-top: 56px;
}

.p-mss-section--last {
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .p-mss-section {
    padding-top: 92px;
  }

  .p-mss-section--last {
    padding-bottom: 130px;
  }
}

.p-mss-br-pc {
  display: none;
}

@media (min-width: 768px) {
  .p-mss-br-pc {
    display: inline;
  }
}

/* 見出し */
.p-mss-heading {
  margin-bottom: 32px;
  text-align: center;
}

.p-mss-heading__label {
  margin-bottom: 4px;
  color: var(--mss-text-muted);
  font-size: 15px;
  font-weight: 700;
}

.p-mss .p-mss-heading__title {
  color: var(--mss-navy);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
  text-wrap: balance;
  word-break: auto-phrase; /* 日本語の文節で改行（対応ブラウザのみ） */
}

@media (min-width: 768px) {
  .p-mss-heading {
    margin-bottom: 40px;
  }

  .p-mss-heading__label {
    font-size: 18px;
  }

  .p-mss .p-mss-heading__title {
    font-size: 32px;
  }
}

@media (min-width: 1024px) {
  .p-mss .p-mss-heading__title {
    font-size: 36px;
  }
}

/* ボタン */
.p-mss-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.p-mss-btns--center {
  justify-content: center;
}

.p-mss .p-mss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 32px;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.p-mss .p-mss-btn--primary {
  background: var(--mss-blue);
  color: #fff;
}

.p-mss .p-mss-btn--outline {
  border-color: var(--mss-blue-40);
  background: transparent;
  color: var(--mss-blue);
}

@media (hover: hover) {
  .p-mss .p-mss-btn--primary:hover {
    background: var(--mss-blue-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(64, 154, 214, 0.35);
  }

  .p-mss .p-mss-btn--outline:hover {
    background: var(--mss-blue);
    color: #fff;
    transform: translateY(-2px);
  }
}

/* ピル型タブ */
.p-mss-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.p-mss .p-mss-pill {
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--mss-bg-elevated);
  color: var(--mss-text-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.p-mss .p-mss-pill.is-active {
  background: var(--mss-blue);
  color: #fff;
  box-shadow: var(--mss-shadow-blue);
}

@media (hover: hover) {
  .p-mss .p-mss-pill:not(.is-active):hover {
    background: #fff;
    color: var(--mss-navy);
  }
}

@media (min-width: 640px) {
  .p-mss .p-mss-pill {
    padding: 12px 24px;
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  .p-mss-pills {
    margin-bottom: 40px;
  }

  .p-mss .p-mss-pill {
    padding-inline: 32px;
  }
}

/* タブパネル（白カード） */
.p-mss-panel {
  border: 1px solid var(--mss-border);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

@media (min-width: 640px) {
  .p-mss-panel {
    padding: 24px;
  }
}

@media (min-width: 768px) {
  .p-mss-panel {
    padding: 32px;
  }
}

/* タグ */
.p-mss-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p-mss-tags li {
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--mss-gray-100);
  color: var(--mss-text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .p-mss-tags li {
    padding: 6px 14px;
    font-size: 13px;
  }
}

/* ---------- Hero ---------- */

.p-mss-hero {
  padding-top: 40px;
}

@media (min-width: 768px) {
  .p-mss-hero {
    padding-top: 80px;
  }
}

.p-mss-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.p-mss-hero__visual {
  width: 100%;
}

.p-mss-hero__visual img {
  width: 100%;
  border-radius: 8px;
}

.p-mss-hero__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

@media (min-width: 768px) {
  .p-mss-hero__inner {
    flex-direction: row;
    gap: 48px;
  }

  .p-mss-hero__visual {
    flex: 3 1 0;
    min-width: 0;
  }

  .p-mss-hero__body {
    flex: 2 1 0;
    min-width: 0;
  }
}

.p-mss .p-mss-hero__title {
  margin-bottom: 12px;
  color: var(--mss-navy);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.p-mss-hero__sub {
  margin-bottom: 16px;
  word-break: auto-phrase;
  color: var(--mss-text);
  font-size: 18px;
  line-height: 1.6;
}

.p-mss-hero__catch {
  margin-bottom: 8px;
  color: var(--mss-blue);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.p-mss-hero__text {
  color: var(--mss-text-muted);
  font-size: 15px;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .p-mss .p-mss-hero__title {
    font-size: 36px;
  }

  .p-mss-hero__sub {
    font-size: 20px;
  }
}

/* 数値カード */
.p-mss-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .p-mss-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
  }
}

.p-mss-stats__item {
  padding: 24px;
  border: 1px solid var(--mss-border);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
  .p-mss-stats__item {
    padding: 32px;
  }
}

@media (hover: hover) {
  .p-mss-stats__item:hover {
    border-color: rgba(0, 22, 75, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 22, 75, 0.06);
  }
}

.p-mss-stats__label {
  margin-bottom: 12px;
  color: var(--mss-text-dim);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.p-mss-stats__value {
  color: rgba(0, 22, 75, 0.85);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

/* ---------- AI 能力フレームワーク ---------- */

.p-mss-framework {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
  padding: 32px 16px;
  border-radius: 16px;
  background: var(--mss-bg-elevated);
}

@media (min-width: 640px) {
  .p-mss-framework {
    grid-template-columns: repeat(2, 1fr);
    padding-inline: 24px;
  }
}

@media (min-width: 768px) {
  .p-mss-framework {
    display: flex;
    justify-content: space-evenly;
    gap: 0;
    margin-bottom: 48px;
  }
}

.p-mss-framework__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.p-mss-framework__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--mss-text);
  font-size: 16px;
}

.p-mss-framework__title img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.p-mss-framework__text {
  margin-top: 4px;
  font-size: 14px;
}

@media (min-width: 640px) {
  .p-mss-framework__title {
    font-size: 18px;
  }

  .p-mss-framework__title img {
    width: 24px;
    height: 24px;
  }

  .p-mss-framework__text {
    font-size: 16px;
  }
}

.p-mss-framework__visual img {
  margin-inline: auto;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .p-mss-framework__visual img {
    max-width: 80%;
  }
}

/* ---------- Mech-Station™ が選ばれる理由 ---------- */

.p-mss .p-mss-why__title {
  margin-bottom: 12px;
  color: var(--mss-navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.p-mss-why__sub,
.p-mss-why__sec {
  margin-bottom: 16px;
  color: var(--mss-navy);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.p-mss-why__sec {
  margin-top: 32px;
}

.p-mss-why__hero {
  margin-inline: auto;
  border-radius: 12px;
}

.p-mss-why__hero--deploy {
  width: 100%;
}

.p-mss-why__hero--hmi {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
}

@media (min-width: 640px) {
  .p-mss-why__hero--deploy {
    width: auto;
    height: 300px;
    object-fit: contain;
  }
}

@media (min-width: 768px) {
  .p-mss .p-mss-why__title {
    font-size: 32px;
  }

  .p-mss-why__sub,
  .p-mss-why__sec {
    font-size: 18px;
  }

  .p-mss-why__sec {
    margin-top: 40px;
  }
}

.p-mss-why__cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-mss-why__cards--2 {
  margin-top: 24px;
}

@media (min-width: 640px) {
  .p-mss-why__cards--2 {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .p-mss-why__cards--3 {
    flex-direction: row;
    gap: 16px;
  }
}

.p-mss-why__card {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.p-mss-why__cards--3 .p-mss-why__card img {
  width: auto;
  height: 200px;
  margin-inline: auto;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.p-mss-why__cards--2 .p-mss-why__card img {
  width: 70%;
  margin-inline: auto;
  border-radius: 12px;
}

.p-mss-why__card-text {
  margin-top: 12px;
  color: var(--mss-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.p-mss-why__card-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-bottom: 12px;
  color: var(--mss-navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- 製品ラインナップ（構成要素スポットライト） ---------- */

.p-mss-spot {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .p-mss-spot {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }

  .p-mss-spot__main {
    flex: 3 1 0;
    min-width: 0;
  }

  .p-mss-spot__side {
    position: sticky;
    top: 120px;
    flex: 2 1 0;
    min-width: 0;
    padding-top: 16px;
  }
}

.p-mss-spot__hint {
  color: var(--mss-text-muted);
  font-size: 13px;
}

.p-mss-spot__hint--pc {
  display: none;
  margin-bottom: 12px;
}

.p-mss-spot__hint--sp {
  margin-top: 8px;
  text-align: center;
}

@media (min-width: 768px) {
  .p-mss-spot__hint--pc {
    display: block;
  }

  .p-mss-spot__hint--sp {
    display: none;
  }
}

.p-mss-spot__stage {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: zoom-in;
}

.p-mss-spot__canvas {
  position: relative;
  transform-origin: center center;
  transition: transform 0.6s var(--mss-ease);
}

.p-mss-spot__canvas img {
  width: 100%;
}

/* マーカー（PC のみ表示） */
.p-mss-spot__dot {
  position: absolute;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

@media (min-width: 768px) {
  .p-mss-spot__dot {
    display: flex;
  }
}

.p-mss-spot__ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.25);
  animation: p-mss-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.p-mss-spot__ping--delay {
  background: rgba(59, 130, 246, 0.15);
  animation-delay: 1s;
}

.p-mss-spot__core {
  position: relative;
  z-index: 1;
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 8px rgba(64, 154, 214, 0.6), 0 0 16px rgba(64, 154, 214, 0.25);
  animation: p-mss-dot-pulse 1.5s ease-in-out infinite;
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.p-mss-spot__dot.is-active .p-mss-spot__ping {
  background: rgba(6, 182, 212, 0.45);
}

.p-mss-spot__dot.is-active .p-mss-spot__ping--delay {
  background: rgba(6, 182, 212, 0.3);
}

.p-mss-spot__dot.is-active .p-mss-spot__core {
  width: 14px;
  height: 14px;
  border-color: rgba(255, 255, 255, 0.95);
  background: transparent;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
  animation: none;
}

/* 拡大中はマーカーを縮小表示（拡大率で割り戻す） */
.p-mss-spot.is-zoomed .p-mss-spot__dot {
  width: 10px;
  height: 10px;
}

.p-mss-spot.is-zoomed .p-mss-spot__core {
  width: 5px;
  height: 5px;
  border-width: 1px;
}

@keyframes p-mss-ping {
  75%,
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

@keyframes p-mss-dot-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(64, 154, 214, 0.6), 0 0 16px rgba(64, 154, 214, 0.25);
  }

  50% {
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(64, 154, 214, 0.8), 0 0 20px rgba(64, 154, 214, 0.35);
  }
}

/* 構成リスト */
.p-mss-spot__side-title {
  margin-bottom: 12px;
  color: var(--mss-text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.p-mss-spot__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

@media (min-width: 768px) {
  .p-mss-spot__side-title {
    margin-bottom: 16px;
  }

  .p-mss-spot__list {
    grid-template-columns: 1fr;
  }
}

.p-mss .p-mss-spot__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--mss-text-muted);
  font-size: 13px;
  line-height: 1.5;
  transition: background-color 0.2s ease, color 0.2s ease;
}

@media (min-width: 768px) {
  .p-mss .p-mss-spot__item {
    padding: 10px 16px;
    font-size: 14px;
  }
}

.p-mss-spot__item-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(64, 154, 214, 0.3);
  border-radius: 50%;
  background: rgba(64, 154, 214, 0.3);
  transition: all 0.2s ease;
}

.p-mss .p-mss-spot__item.is-active {
  background: var(--mss-blue-10);
  color: var(--mss-blue);
  font-weight: 600;
}

.p-mss-spot__item.is-active .p-mss-spot__item-dot {
  width: 10px;
  height: 10px;
  border-color: var(--mss-blue);
  background: var(--mss-blue);
  box-shadow: 0 0 6px rgba(64, 154, 214, 0.6);
}

@media (hover: hover) {
  .p-mss .p-mss-spot__item:not(.is-active):hover {
    background: #f9fafb;
  }
}

/* SP ではリストは操作対象にしない（マーカーを表示しないため） */
@media (max-width: 767px) {
  .p-mss .p-mss-spot__item {
    pointer-events: none;
  }
}

.p-mss .p-mss-spot__full {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  border: 1px solid var(--mss-border);
  border-radius: 8px;
  background: #fff;
  color: var(--mss-text);
  font-size: 14px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .p-mss .p-mss-spot__full:hover {
    border-color: rgba(64, 154, 214, 0.3);
    color: var(--mss-blue);
  }
}

/* ---------- 代表的なアプリケーション ---------- */

.p-mss-app {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  border: 0;
  background: none;
}

@media (min-width: 768px) {
  .p-mss-app {
    flex-direction: row;
    gap: 24px;
    padding: 0;
  }
}

.p-mss-app__nav {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.p-mss-app__nav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .p-mss-app__nav {
    flex-direction: column;
    flex-shrink: 0;
    width: 220px;
    overflow: visible;
  }
}

.p-mss .p-mss-app__tab {
  flex-shrink: 0;
  max-width: 220px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--mss-text-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  text-wrap: pretty;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.p-mss .p-mss-app__tab.is-active {
  background: var(--mss-blue-pale);
  color: var(--mss-navy);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (hover: hover) {
  .p-mss .p-mss-app__tab:not(.is-active):hover {
    background: var(--mss-bg-elevated);
    color: var(--mss-navy);
  }
}

@media (max-width: 767px) {
  .p-mss .p-mss-app__tab {
    border: 1px solid var(--mss-border);
  }

  .p-mss .p-mss-app__tab.is-active {
    border-color: var(--mss-blue-pale);
  }
}

@media (min-width: 640px) {
  .p-mss .p-mss-app__tab {
    padding: 12px 16px;
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .p-mss .p-mss-app__tab {
    max-width: none;
  }
}

.p-mss-app__body {
  flex: 1 1 auto;
  min-width: 0;
}

.p-mss-app__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px;
  border: 1px solid var(--mss-border);
  border-radius: 16px;
  background: #fff;
}

@media (min-width: 640px) {
  .p-mss-app__card {
    padding: 24px;
  }
}

@media (min-width: 768px) {
  .p-mss-app__card {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 32px;
  }
}

.p-mss-app__text {
  display: flex;
  flex: 3 1 0;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.p-mss-app__visual {
  flex: 2 1 0;
  min-width: 0;
}

.p-mss-app__visual img {
  width: 100%;
  border-radius: 12px;
}

.p-mss .p-mss-app__title {
  color: var(--mss-navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .p-mss .p-mss-app__title {
    font-size: 19px;
  }
}

@media (min-width: 768px) {
  .p-mss-app__text {
    gap: 20px;
  }

  .p-mss .p-mss-app__title {
    font-size: 20px;
  }
}

.p-mss-app__caption {
  margin-bottom: -6px;
  color: var(--mss-text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

@media (min-width: 640px) {
  .p-mss-app__caption {
    font-size: 13px;
  }
}

/* ---------- 拡張構成オプション ---------- */

.p-mss-cfg__intro {
  margin-bottom: 32px;
  color: var(--mss-text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.p-mss-cfg__block + .p-mss-cfg__block {
  margin-top: 32px;
}

.p-mss .p-mss-cfg__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--mss-navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.p-mss .p-mss-cfg__title::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  height: 16px;
  border-radius: 9999px;
  background: var(--mss-blue);
}

@media (min-width: 768px) {
  .p-mss .p-mss-cfg__title {
    font-size: 16px;
  }
}

.p-mss-cfg__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 24px;
}

@media (min-width: 640px) {
  .p-mss-cfg__features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .p-mss-cfg__features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.p-mss-cfg__features li {
  position: relative;
  padding-left: 16px;
  color: var(--mss-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.p-mss-cfg__features li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(64, 154, 214, 0.7);
}

.p-mss-cfg__apps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .p-mss-cfg__apps {
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .p-mss-cfg__apps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.p-mss-cfg__apps--single {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .p-mss-cfg__apps--single {
    grid-template-columns: 1fr;
  }
}

.p-mss-cfg__app {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p-mss-cfg__app img {
  width: 100%;
  border-radius: 12px;
}

.p-mss .p-mss-cfg__app figcaption {
  color: var(--mss-text-muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

/* ---------- 機種比較表 ---------- */

.p-mss-table-hint {
  margin-bottom: 8px;
  color: var(--mss-text-muted);
  font-size: 12px;
  text-align: right;
}

@media (min-width: 1024px) {
  .p-mss-table-hint {
    display: none;
  }
}

.p-mss-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.p-mss-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
  color: var(--mss-text);
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 1024px) {
  .p-mss-table {
    min-width: 0;
    font-size: 15px;
  }
}

.p-mss-table th,
.p-mss-table td {
  padding: 8px;
  border: 1px solid #ccc;
  text-align: center;
  vertical-align: middle;
}

.p-mss-table thead th {
  background: var(--mss-bg-elevated);
  color: var(--mss-navy);
  font-weight: 700;
}

.p-mss-table tbody th {
  background: #fff;
  color: var(--mss-text);
  font-weight: 600;
  white-space: nowrap;
}

.p-mss-table td {
  height: 48px;
  white-space: nowrap;
}

/* SP では項目名の列を固定 */
@media (max-width: 1023px) {
  .p-mss-table__corner,
  .p-mss-table tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: 1px 0 0 #ccc;
  }
}

.p-mss-cta {
  margin-top: 0;
  padding-top: 64px;
}

@media (min-width: 768px) {
  .p-mss-cta {
    padding-top: 80px;
  }
}

/* ---------- 画像の拡大表示（ライトボックス） ---------- */

.p-mss-lightbox {
  width: auto;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: visible;
}

@media (min-width: 768px) {
  .p-mss-lightbox {
    padding: 16px;
  }
}

.p-mss-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.p-mss-lightbox__img {
  display: block;
  width: auto;
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 80px);
  object-fit: contain;
}

.p-mss .p-mss-lightbox__close {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: background-color 0.2s ease;
}

@media (hover: hover) {
  .p-mss .p-mss-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
  }
}

/* ---------- 動きを減らす設定 ---------- */

@media (prefers-reduced-motion: reduce) {
  .p-mss *,
  .p-mss *::before,
  .p-mss *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

/* ---------- 製品紹介バナー（お客様指定の画像。このページの KV のみ） ---------- */
/* 高さ・文字色・文字サイズ・位置・余白・レスポンシブは 2D AI Camera と同じく共通 KV の指定に従い、背景画像のみ差し替える */

.p-lower_kv-box.p-mss-kv:before {
  background: url(../images/mech-station-series/kv-banner.webp) no-repeat 75% center / cover;
}
