:root {
  --ink: #071722;
  --ink-2: #0b2030;
  --steel: #40505e;
  --muted: #6f7c86;
  --line: rgba(64, 80, 94, 0.16);
  --lime: #0a6eff;
  --lime-dark: #0a6eff;
  --pale: #eef2f4;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(7, 23, 34, 0.22);
  --motion: 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--steel);
  background: var(--white);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif;
  line-height: 1.75;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 80px;
  padding: 0 38px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(64, 80, 94, 0.1);
  transition: min-height 0.22s ease, box-shadow 0.22s ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  box-shadow: 0 12px 34px rgba(7, 23, 34, 0.11);
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.brand-logo {
  width: clamp(168px, 18vw, 232px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--steel);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  position: relative;
  padding: 28px 0;
  transition: color 0.2s ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 21px;
  left: 0;
  height: 2px;
  background: var(--lime);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(10, 110, 255, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(10, 110, 255, 0.32);
}

@media (max-width: 1120px) {
  .site-header {
    gap: 20px;
    padding: 0 28px;
  }

  .site-nav {
    gap: 14px;
    font-size: 13px;
  }

  .header-cta {
    padding: 0 18px;
  }
}

.nav-toggle {
  display: none;
}

.section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 48px));
}

.section-dark {
  color: var(--white);
  background: var(--ink);
}

.section-pale {
  background: var(--pale);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: inherit;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(46px, 5vw, 64px);
}

h2 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(30px, 3.3vw, 48px);
}

.nowrap {
  white-space: nowrap;
}

/* --- 日本語レスポンシブ改行ベースライン --- */
/* 見出し: 行の長さを自動で均等化して読みやすく(日本語は通常どおりどこでも折り返せる) */
h1,
h2,
h3 {
  text-wrap: balance;
  line-break: strict;
}

/* 本文: 行末のポツン残り(オーファン)を防ぐ */
p {
  text-wrap: pretty;
  line-break: strict;
}

/* PC専用の改行ユーティリティ。SPでは非表示にして自動折り返しに任せる */
.br-pc {
  display: inline;
}

@media (max-width: 640px) {
  .br-pc {
    display: none;
  }
}

/* SP専用の改行ユーティリティ。PC・タブレットでは非表示、SPでのみ改行する */
.br-sp {
  display: none;
}

@media (max-width: 640px) {
  .br-sp {
    display: inline;
  }
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

h3 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
}

.lead {
  width: min(760px, 100%);
  margin: 0 auto 42px;
  color: var(--steel);
  font-size: 18px;
  text-align: center;
}

.section-tag,
.case-card span {
  display: inline-flex;
  color: var(--lime);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: 2px solid var(--lime);
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn::after {
  width: 16px;
  height: 12px;
  margin-left: 12px;
  background: currentColor;
  clip-path: polygon(0 42%, 72% 42%, 72% 0, 100% 50%, 72% 100%, 72% 58%, 0 58%);
  content: "";
  transition: transform 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(7, 23, 34, 0.22);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(4px);
}

.btn:active {
  transform: translateY(0);
}

.btn-fill,
.btn-dark {
  background: var(--lime);
  color: var(--white);
}

.btn-dark {
  border-color: var(--lime);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.42);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  min-height: 790px;
  overflow: hidden;
  background: var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 23, 34, 0.99) 0%, rgba(7, 23, 34, 0.98) 24%, rgba(7, 23, 34, 0.88) 42%, rgba(7, 23, 34, 0.48) 58%, rgba(7, 23, 34, 0.08) 72%, rgba(7, 23, 34, 0) 100%),
    linear-gradient(90deg, rgba(7, 23, 34, 0.36) 0%, rgba(7, 23, 34, 0.18) 50%, rgba(7, 23, 34, 0) 100%),
    linear-gradient(180deg, rgba(7, 23, 34, 0.18) 0%, rgba(7, 23, 34, 0.38) 100%);
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 190px;
  content: "";
  background: linear-gradient(0deg, rgba(6, 16, 25, 0.6), rgba(6, 16, 25, 0));
  pointer-events: none;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / 2;
  /* ヒーロー内で下寄りに配置し、一番下のボタンを下辺に近づける（高さは変えず余白を使う） */
  align-self: center;
  padding: 116px 0 86px 64px;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.32);
}

.hero-copy p {
  max-width: 640px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
}

.hero-copy h1 {
  margin-bottom: 18px;
}

/* 上段は細く・字間広めの kicker */
.hero-eyebrow {
  display: block;
  font-size: clamp(14px, 1.9vw, 20px);
  font-weight: 600;
  letter-spacing: 0.16em;
  opacity: 0.88;
}

/* 「メタトレ」を白文字＋青→ピンクのグラデ四角で囲んで主役感を出す */
.hero-name {
  display: inline-flex;
  align-items: center; /* 縦：上下中央 */
  margin-top: 14px;
  padding: 0.1em 0.18em;
  background: linear-gradient(100deg, rgba(10, 110, 255, 0.5) 0%, rgba(138, 95, 224, 0.5) 50%, rgba(255, 111, 181, 0.5) 100%);
  color: #fff;
  text-align: left; /* 横：左寄せ */
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 900;
  line-height: 1.1;
}

.hero-points {
  display: grid;
  gap: 6px;
  max-width: 520px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.4;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-points li::before {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
  box-shadow: 0 0 0 4px rgba(10, 110, 255, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-media {
  position: relative;
  z-index: 1;
  display: grid;
  align-self: stretch;
  place-items: center;
  min-height: 790px;
  padding: 96px 56px 86px 0;
}

.hero-media::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(circle at 66% 44%, rgba(10, 110, 255, 0.18), transparent 34%),
    linear-gradient(90deg, var(--ink) 0%, rgba(7, 23, 34, 0.34) 28%, rgba(7, 23, 34, 0) 78%);
  pointer-events: none;
}

.hero-media img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 32px 78px rgba(0, 0, 0, 0.34);
}

.problem,
.cases,
.use-cases {
  padding: 104px 0;
}

.problem h2,
.use-cases h2 {
  text-align: center;
}

.machine-showcase {
  position: relative;
  overflow: hidden;
  padding: 86px 0 78px;
  background: #fff;
}

.machine-showcase::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.62)),
    url("assets/images/scenario-bg-mountain.png") center / cover;
  content: "";
  opacity: 0.9;
}

.machine-showcase::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(10, 110, 255, 0.09), transparent 35%),
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0) 84%, #fff 100%);
  content: "";
  pointer-events: none;
}

.machine-stage {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 42px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.machine-message {
  position: relative;
  width: min(760px, 82vw);
  margin: 0 auto;
  text-align: center;
}

.machine-message h2 {
  margin-bottom: 20px;
  color: var(--steel);
  font-size: clamp(26px, 3vw, 41px);
  line-height: 1.15;
}

.machine-message p {
  margin: 0 auto 24px;
  color: var(--steel);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.75;
}

.icon-marquee {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(30px, 5vw, 68px);
  animation: icon-flow-left 56s linear infinite;
  will-change: transform;
}

.marquee-bottom .marquee-track {
  animation-name: icon-flow-right;
  animation-duration: 64s;
}

.circle-object {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  width: clamp(42px, 4.8vw, 68px);
  height: clamp(42px, 4.8vw, 68px);
  filter: drop-shadow(0 14px 18px rgba(7, 23, 34, 0.13));
  transition: transform 0.24s ease, filter 0.24s ease;
}

.circle-object:hover {
  filter: drop-shadow(0 20px 22px rgba(7, 23, 34, 0.18));
  transform: translateY(-4px);
}

.circle-object img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes icon-flow-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes icon-flow-right {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.benefit-list article {
  padding: 14px 12px;
  border: 1px solid rgba(64, 80, 94, 0.14);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(7, 23, 34, 0.06);
}

.benefit-list strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
}

.benefit-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.problem-grid span,
.flow-steps p,
.partners p,
.copy-block p {
  color: var(--muted);
}

.about .copy-block h2 {
  font-size: clamp(24px, 2.64vw, 38px);
}

.video-band,
.flow {
  padding: 116px 0;
  background:
    linear-gradient(90deg, rgba(7, 23, 34, 0.98), rgba(18, 42, 58, 0.94)),
    #0b2030;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.split > div > p {
  max-width: 620px;
  color: inherit;
  opacity: 0.86;
  font-size: 18px;
}

.video-card {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #0a1a27;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.video-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(135deg, rgba(7, 23, 34, 0.2), rgba(7, 23, 34, 0.72));
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.video-card:hover img {
  transform: scale(1.06);
}

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border: 3px solid var(--lime);
  border-radius: 50%;
  background: rgba(7, 23, 34, 0.72);
  transform: translate(-50%, -50%);
}

.play-mark::after {
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(10, 110, 255, 0.34);
  border-radius: 50%;
  content: "";
  opacity: 0.8;
}

.play-mark::before {
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid var(--white);
  content: "";
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-grid article {
  overflow: hidden;
  min-height: 430px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(7, 23, 34, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.problem-grid article:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 62px rgba(7, 23, 34, 0.14);
}

.problem-grid img {
  display: block;
  width: 100%;
  height: 215px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.problem-grid article:hover img {
  transform: scale(1.05);
}

.problem-grid article div {
  padding: 28px;
}

.problem-grid strong {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.35;
}

.problem-grid span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.about,
.news,
.faq {
  padding: 108px 0;
}

.framed-image {
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.framed-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 46px;
}

.section-heading p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.cases {
  background: linear-gradient(180deg, #071722 0%, #0b2030 100%);
}

.cases h2 {
  color: var(--white);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.case-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: #0b2030;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
  isolation: isolate;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.case-card:hover,
.case-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 32px 78px rgba(0, 0, 0, 0.36);
}

.case-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.case-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(7, 23, 34, 0.94) 0%, rgba(7, 23, 34, 0.58) 48%, rgba(7, 23, 34, 0.08) 100%),
    linear-gradient(90deg, rgba(7, 23, 34, 0.48), rgba(7, 23, 34, 0));
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease;
}

.case-card:hover .case-media img {
  transform: scale(1.07);
}

.case-card > div:not(.case-media) {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 32px;
}

.case-card h3 {
  max-width: 440px;
  margin: 10px 0 12px;
  color: var(--white);
  font-size: 25px;
}

.case-card p {
  max-width: 510px;
  color: rgba(255, 255, 255, 0.82);
}

.case-card a {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: var(--lime);
  font-weight: 900;
}

.case-card a::after {
  width: 15px;
  height: 11px;
  margin-left: 10px;
  background: currentColor;
  clip-path: polygon(0 42%, 72% 42%, 72% 0, 100% 50%, 72% 100%, 72% 58%, 0 58%);
  content: "";
  transition: transform 0.18s ease;
}

.case-card a:hover::after,
.case-card a:focus-visible::after {
  transform: translateX(5px);
}

.training {
  padding: 100px 0;
  background:
    linear-gradient(90deg, rgba(7, 23, 34, 0.98), rgba(18, 42, 58, 0.94)),
    #0b2030;
}

.training-list {
  display: grid;
  gap: 18px;
}

.training-list article {
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

.training-list h3 {
  margin-bottom: 8px;
  color: var(--white);
}

.training-list p {
  margin-bottom: 0;
}

.immersive-feature {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.immersive-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.immersive-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 23, 34, 0.78), rgba(7, 23, 34, 0.22) 52%, rgba(7, 23, 34, 0.72)),
    linear-gradient(0deg, rgba(7, 23, 34, 0.38), rgba(7, 23, 34, 0));
}

.immersive-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.immersive-soil .immersive-image img {
  object-position: center;
}

.immersive-learning .immersive-image img {
  object-position: center;
  filter: saturate(0.9) contrast(1.05);
}

.immersive-panel {
  position: relative;
  /* テキストが伸びても、絶対配置の scenario-strip の下にボタンが埋もれないよう前面に置く */
  z-index: 1;
  width: min(520px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1120px) / 2));
  padding: 34px 32px 36px;
  background: rgba(9, 31, 46, 0.78);
  backdrop-filter: blur(2px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  transform: translateY(118px);
}

.immersive-panel.align-right {
  margin-right: max(24px, calc((100vw - 1120px) / 2));
  margin-left: auto;
}

.immersive-panel h2 {
  margin: 8px 0 16px;
  color: var(--white);
  font-size: clamp(29px, 3.68vw, 50px);
  text-transform: none;
}

#scenario {
  min-height: 880px;
}

#scenario .immersive-panel {
  transform: translateY(64px);
}

.immersive-panel p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  font-weight: 700;
}

.scene-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.scene-pills span {
  padding: 7px 12px;
  border: 1px solid rgba(10, 110, 255, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 900;
}

.scenario-strip {
  position: absolute;
  right: max(24px, calc((100vw - 1120px) / 2));
  bottom: 48px;
  left: max(24px, calc((100vw - 1120px) / 2));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.scenario-strip article {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  background: #0b2030;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.scenario-strip img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.55s ease;
}

.scenario-strip article:hover img {
  transform: scale(1.06);
}

.scenario-strip strong {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  color: var(--white);
  font-size: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.use-grid,
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.use-grid article {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #0b2030;
  color: var(--white);
  isolation: isolate;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.use-grid article:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 58px rgba(7, 23, 34, 0.18);
}

.use-grid article::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(0deg, rgba(7, 23, 34, 0.88), rgba(7, 23, 34, 0.26) 62%, rgba(7, 23, 34, 0.04));
}

.use-grid img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.use-grid article:hover img {
  transform: scale(1.06);
}

.use-grid article div {
  position: absolute;
  right: 22px;
  bottom: 24px;
  left: 22px;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.use-grid strong {
  display: block;
  color: var(--white);
  font-size: 25px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.use-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.flow-steps article {
  padding: 30px 24px;
  background: rgba(255, 255, 255, 0.08);
}

.flow-steps span {
  display: block;
  margin-bottom: 18px;
  color: var(--lime);
  font-size: 34px;
  font-weight: 900;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

.partners {
  position: relative;
  overflow: hidden;
  padding: 118px 0;
  background: #f4f7f8;
  text-align: center;
}

.partners-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(244, 247, 248, 0.7), rgba(244, 247, 248, 0.5)),
    url("assets/images/cta-construction.jpg");
  background-position: center, center;
  background-size: cover, cover;
  opacity: 0.95;
}

.partner-copy {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

.partner-copy h2 {
  color: var(--ink);
}

.partner-copy p {
  margin: 0 auto 28px;
  color: var(--steel);
  font-size: 18px;
  font-weight: 700;
}

.news {
  background: var(--white);
}

.news .section-heading {
  display: block;
  width: min(720px, 100%);
  margin: 0 auto 46px;
  text-align: center;
}

.news .section-heading p {
  color: var(--steel);
  font-weight: 700;
  line-height: 1.75;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-grid article {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fafb 100%);
  box-shadow: 0 18px 44px rgba(7, 23, 34, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.news-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 58px rgba(7, 23, 34, 0.13);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.news-meta span {
  padding: 5px 9px;
  background: rgba(10, 110, 255, 0.16);
  color: var(--lime-dark);
}

.news-grid h3 {
  margin-bottom: 14px;
  font-size: 24px;
}

.news-grid p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.75;
}

.news-grid a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  padding-top: 22px;
  color: var(--lime-dark);
  font-weight: 900;
}

.news-grid a::after {
  width: 15px;
  height: 11px;
  margin-left: 10px;
  background: currentColor;
  clip-path: polygon(0 42%, 72% 42%, 72% 0, 100% 50%, 72% 100%, 72% 58%, 0 58%);
  content: "";
  transition: transform 0.18s ease;
}

.news-grid a:hover::after,
.news-grid a:focus-visible::after {
  transform: translateX(5px);
}

.faq h2 {
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(7, 23, 34, 0.06);
}

.faq-item button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-item button::after {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background: var(--lime-dark);
  clip-path: polygon(45% 0, 55% 0, 55% 45%, 100% 45%, 100% 55%, 55% 55%, 55% 100%, 45% 100%, 45% 55%, 0 55%, 0 45%, 45% 45%);
  content: "";
  transition: transform 0.24s ease;
}

.faq-item.is-open button::after {
  transform: rotate(45deg);
}

.faq-item p {
  max-height: 0;
  margin: 0;
  padding: 0 28px;
  color: var(--muted);
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.28s ease;
}

.faq-item.is-open p {
  max-height: 220px;
  padding: 0 28px 26px;
  opacity: 1;
}

.contact {
  position: relative;
  display: grid;
  min-height: 790px;
  place-items: center;
  overflow: hidden;
  padding: 120px 24px;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(7, 23, 34, 0.9), rgba(7, 23, 34, 0.7)),
    url("assets/images/cta-construction.jpg");
  background-position: center, center;
  background-size: cover, cover;
}

.contact-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  padding: 46px 42px;
  border-radius: 8px;
  background: var(--white);
  color: var(--steel);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  color: var(--steel);
  text-align: center;
}

.contact-card > p {
  text-align: center;
}

form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--steel);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 0;
  background: #edf0f2;
  color: var(--ink);
  padding: 15px 16px;
  border-radius: 6px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-result {
  min-height: 1.5em;
  margin: 0;
  color: var(--lime-dark);
  font-weight: 800;
  text-align: center;
}

.contact-embed {
  margin-top: 26px;
}

.contact-embed iframe {
  width: 100%;
  border: 0;
}

.site-footer {
  display: grid;
  gap: 18px;
  padding: 70px 8vw;
  background: var(--steel);
  color: var(--white);
}

.footer-brand {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

/* 企業ロゴのリンク。クリック範囲をロゴの形に収める */
.footer-logo-link {
  justify-self: start;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.footer-logo-link:hover {
  opacity: 0.8;
}

/* 企業ロゴ（横型・白）。画面幅に応じて伸縮 */
.footer-logo {
  width: clamp(150px, 20vw, 210px);
  height: auto;
}

/* 会社名テキストは控えめに小さく。ロゴ↔企業名の間だけ詰める（grid gapを打ち消す） */
.site-footer p {
  margin-top: -12px;
  font-size: 13px;
}

/* 住所。会社名の直下に寄せて、同じく控えめなサイズに */
.footer-address {
  margin-top: -12px;
  font-size: 13px;
  font-style: normal;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 23, 34, 0.84);
}

.video-modal-content {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  aspect-ratio: 16 / 9;
  background: #0b1c2a;
  box-shadow: var(--shadow);
  transform: scale(0.96);
  transition: transform 0.24s ease;
}

.video-modal.is-open .video-modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: -52px;
  right: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 42px;
  cursor: pointer;
}

.video-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--motion), transform var(--motion);
}

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

@media (max-width: 980px) {
  .site-header {
    padding: 0 20px;
  }

  .nav-toggle {
    position: relative;
    display: grid;
    gap: 5px;
    width: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 3px;
    background: var(--steel);
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: 0 18px 40px rgba(7, 23, 34, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .site-nav a {
    padding: 16px 24px;
    border-top: 1px solid rgba(64, 80, 94, 0.12);
  }

  .site-nav a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .benefit-list,
  .problem-grid,
  .news-grid,
  .use-grid,
  .flow-steps,
  .case-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy {
    padding-left: 44px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .hero-points {
    font-size: 15px;
  }

  .btn {
    min-height: 54px;
    padding: 0 24px;
    font-size: 16px;
  }

  .immersive-feature {
    min-height: 760px;
  }

  #scenario {
    min-height: 860px;
  }

  #scenario .immersive-panel {
    transform: translateY(64px);
  }

  .immersive-panel {
    transform: translateY(92px);
  }

  .scenario-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    bottom: 48px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
  }

  .site-header.is-scrolled {
    min-height: 60px;
  }

  .brand-logo {
    width: 168px;
  }

  .site-nav {
    top: 64px;
  }

  .section-inner,
  .narrow {
    width: min(100% - 32px, 1120px);
  }

  .hero,
  .split,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 720px;
  }

  .hero-copy {
    padding: 58px 24px 72px;
  }

  .benefits,
  .problem,
  .cases,
  .use-cases,
  .partners,
  .about,
  .news,
  .faq,
  .video-band,
  .flow,
  .training {
    padding: 70px 0;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 31px;
  }

  /* SPでは見出しが画面外に見切れないよう、改行後の行も折り返せるようにする */
  .partner-copy h2 .nowrap {
    white-space: normal;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .benefit-list,
  .problem-grid,
  .news-grid,
  .use-grid,
  .flow-steps,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .machine-showcase {
    min-height: auto;
    padding: 70px 0 64px;
  }

  .machine-stage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
  }

  .machine-message {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    padding: 0 8px;
    transform: none;
  }

  .machine-message h2 {
    font-size: 26px;
  }

  .icon-marquee {
    width: calc(100% + 32px);
    margin: 0 -16px;
  }

  .marquee-track {
    gap: 24px;
    animation-duration: 44s;
  }

  .marquee-bottom .marquee-track {
    animation-duration: 50s;
  }

  .circle-object {
    position: relative;
    width: 48px;
    height: 48px;
    transform: none;
  }

  .circle-object:hover {
    transform: translateY(-4px);
  }

  .case-card {
    min-height: 460px;
  }

  .case-card > div:not(.case-media) {
    padding: 26px;
  }

  .video-card {
    min-height: 230px;
  }

  .immersive-feature {
    min-height: auto;
    padding: 58px 0 24px;
  }

  .immersive-image {
    position: absolute;
  }

  .immersive-panel,
  .immersive-panel.align-right {
    width: min(100% - 32px, 1120px);
    margin: 0 auto;
    padding: 28px 24px;
    transform: none;
  }

  .immersive-panel h2 {
    font-size: 27px;
  }

  #scenario {
    min-height: auto;
  }

  #scenario .immersive-panel {
    transform: none;
  }

  .scenario-strip {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr;
    width: min(100% - 32px, 1120px);
    margin: 28px auto 0;
  }

  .scenario-strip article {
    min-height: 128px;
  }

  .contact-card {
    padding: 34px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .marquee-track {
    animation-duration: 56s !important;
    animation-play-state: running !important;
  }

  .marquee-bottom .marquee-track {
    animation-duration: 64s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
