/* =========================================================
   株式会社ネクスト  style.css
   ---------------------------------------------------------
   1. Tokens   2. Base   3. Layout   4. Header / Nav
   5. Hero     6. Sections  7. Components  8. Forms
   9. Footer   10. Utilities / Motion
   ========================================================= */

/* 1. Tokens ------------------------------------------------ */
:root {
  --navy: #0F1E2E;
  --navy-2: #182B3F;
  --cyan: #3DB2DA;          /* ブランドカラー（現サイト継承） */
  --cyan-ink: #17739A;      /* 白背景上の文字リンク用（コントラスト確保） */
  --cyan-soft: #E6F4FA;
  --signal: #F2B705;        /* 安全色。フックなどごく小さな箇所のみ */
  --paper: #F8F7F6;
  --white: #FFFFFF;
  --line: #E3E1DE;
  --ink: #22282F;
  --mute: #5F6873;

  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Montserrat", "Noto Sans JP", sans-serif;

  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
  --fs-xl: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
  --fs-hero: clamp(3.25rem, 1.6rem + 7vw, 7.5rem);

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --header-h: 76px;
}

/* 2. Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: var(--fs-base);
  line-height: 1.9;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan-ink); text-underline-offset: .2em; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-weight: 700; letter-spacing: .02em; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 8px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3. Layout ------------------------------------------------ */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: #DCE3EA; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a:not(.btn) { color: var(--cyan); }

.grid-2 { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 5fr 7fr; align-items: start; } }

.prose { max-width: 38em; }
.prose p { line-height: 2; }

/* セクション見出し：英字の小見出し＋日本語見出し */
.head { margin-bottom: clamp(36px, 5vw, 64px); }
.head__en {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-weight: 600; font-size: var(--fs-sm);
  letter-spacing: .08em; color: var(--cyan-ink); margin-bottom: 14px;
}
.head__en::before { content: ""; width: 28px; height: 2px; background: var(--cyan); }
.section--navy .head__en { color: var(--cyan); }
.head__ja { font-size: var(--fs-xl); line-height: 1.35; }
.grid-2 .head__ja { font-size: var(--fs-lg); line-height: 1.5; }
.head__lead { margin-top: 20px; color: var(--mute); max-width: 36em; }
.section--navy .head__lead { color: #AEBBC8; }

/* 4. Header / Nav ------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.logo:hover { color: var(--navy); }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__en { font-family: var(--font-en); font-weight: 700; font-size: 1.25rem; letter-spacing: .14em; }
.logo__ja { font-size: .6875rem; letter-spacing: .12em; color: var(--mute); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { list-style: none; display: flex; gap: 28px; }
.nav__list a {
  position: relative; display: block; padding: 6px 0;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__tel {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2;
  color: var(--navy); text-decoration: none;
}
.nav__tel-num { font-family: var(--font-en); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; }
.nav__tel-note { font-size: .6875rem; color: var(--mute); }
.nav-toggle { display: none; }

@media (max-width: 959px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: var(--navy);
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .25s ease, background .25s;
  }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -7px; }
  .nav-toggle__bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 24px var(--gutter) 40px;
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .25s ease, transform .25s ease; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { color: #fff; font-size: 1.125rem; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav__list a::after { display: none; }
  .nav__tel { align-items: flex-start; margin-top: 32px; color: #fff; }
  .nav__tel-num { font-size: 1.75rem; }
  .nav__tel-note { color: #AEBBC8; }
  body.menu-open { overflow: hidden; }
}

/* 5. Hero -------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  min-height: min(calc(100svh - var(--header-h)), 860px);
  display: flex; align-items: center;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(15,30,46,.94) 0%, rgba(15,30,46,.80) 55%, rgba(15,30,46,.55) 100%);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(64px, 9vw, 120px); }
.hero__title {
  font-size: var(--fs-hero); font-weight: 700; line-height: 1.12; letter-spacing: .04em;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.hero__title span { display: block; }
.hero__lead { font-size: clamp(1rem, .9rem + .4vw, 1.1875rem); line-height: 2; color: #C9D3DD; max-width: 26em; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: clamp(48px, 6vw, 72px);
  font-size: var(--fs-sm); color: #AEBBC8;
}
.hero__meta strong { font-family: var(--font-en); font-weight: 600; color: #fff; letter-spacing: .06em; margin-right: 8px; }

/* クレーンのジブとフック：ページで唯一の“見せ場” */
.hero__crane {
  display: none;
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(52vw, 640px); pointer-events: none;
}
.hero__crane svg { width: 100%; height: 100%; }
.crane-line { stroke: rgba(255,255,255,.55); stroke-width: 2; fill: none; }
.crane-thin { stroke: rgba(255,255,255,.22); stroke-width: 1; fill: none; }
.crane-cable { stroke: var(--cyan); stroke-width: 2; }
.crane-tick { stroke: var(--cyan); stroke-width: 1; opacity: .8; }
.crane-tick-label { fill: var(--cyan); font-family: var(--font-en); font-size: 11px; letter-spacing: .06em; }
.crane-hook { fill: none; stroke: var(--signal); stroke-width: 6; stroke-linecap: round; }
.crane-hook-block { fill: var(--signal); }

.crane-drop { animation: crane-drop 2.2s cubic-bezier(.22,.8,.26,1) .3s both; }
.crane-cable-grow { transform-box: fill-box; transform-origin: top; animation: cable-grow 2.2s cubic-bezier(.22,.8,.26,1) .3s both; }
@keyframes crane-drop { from { transform: translateY(-340px); } to { transform: none; } }
@keyframes cable-grow { from { transform: scaleY(.18); } to { transform: none; } }

@media (max-width: 899px) {
  .hero__crane { width: 70vw; right: -18vw; opacity: .45; }
}

/* 下層ページのタイトル */
.page-head {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px);
}
.page-head::after {
  content: ""; position: absolute; right: clamp(24px, 10vw, 160px); top: 0; width: 2px; height: 62%;
  background: var(--cyan);
}
.page-head::before {
  content: ""; position: absolute; right: calc(clamp(24px, 10vw, 160px) - 9px); top: 62%;
  width: 20px; height: 20px; border: 5px solid var(--signal); border-top-color: transparent; border-radius: 0 0 50% 50%;
}
.page-head__en { font-family: var(--font-en); font-weight: 600; font-size: var(--fs-sm); letter-spacing: .08em; color: var(--cyan); margin-bottom: 10px; }
.page-head__title { font-size: var(--fs-xl); }
.page-head__lead { margin-top: 20px; color: #C9D3DD; max-width: 34em; }

.breadcrumb { background: var(--paper); border-bottom: 1px solid var(--line); font-size: .8125rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding-block: 12px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #A8AFB7; }
.breadcrumb a { color: var(--mute); }

/* 6. Sections ---------------------------------------------- */
/* 事業（トップ・事業内容ページ共通） */
.svc { display: grid; gap: clamp(48px, 7vw, 96px); }
.svc__item { display: grid; gap: clamp(24px, 4vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) {
  .svc__item { grid-template-columns: 6fr 5fr; }
  .svc__item:nth-child(even) { grid-template-columns: 5fr 6fr; }
  .svc__item:nth-child(even) .svc__media { order: 2; }
}
.svc__title { font-size: var(--fs-lg); margin-bottom: 18px; }
.svc__en { font-family: var(--font-en); font-weight: 600; font-size: var(--fs-sm); color: var(--cyan-ink); letter-spacing: .06em; margin-bottom: 8px; }
.svc__points { list-style: none; margin-top: 20px; border-top: 1px solid var(--line); }
.svc__points li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.svc__points li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 8px; height: 2px; background: var(--cyan); }
.svc__more { margin-top: 24px; }

/* トップ：事業の一覧（横並び） */
.svc-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 760px) { .svc-list { grid-template-columns: repeat(3, 1fr); } }
.svc-list__item { background: var(--white); display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.svc-list__item .photo { aspect-ratio: 4 / 3; }
.svc-list__body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc-list__title { font-size: 1.25rem; color: var(--navy); }
.svc-list__text { font-size: .9375rem; color: var(--mute); line-height: 1.85; }
.svc-list__link { margin-top: auto; padding-top: 12px; font-weight: 500; font-size: .875rem; color: var(--cyan-ink); display: inline-flex; align-items: center; gap: 8px; }
.svc-list__link::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .25s ease; }
.svc-list__item:hover .svc-list__link::after { width: 30px; }
.svc-list__item:hover .svc-list__title { color: var(--cyan-ink); }

/* 安全 */
.safety { display: grid; gap: 1px; background: rgba(255,255,255,.12); grid-template-columns: 1fr; }
@media (min-width: 760px) { .safety { grid-template-columns: repeat(3, 1fr); } }
.safety__item { background: var(--navy); padding: 32px 28px 8px 0; }
@media (min-width: 760px) { .safety__item { padding: 8px 32px; } .safety__item:first-child { padding-left: 0; } }
.safety__icon { width: 40px; height: 40px; color: var(--cyan); margin-bottom: 18px; }
.safety__title { font-size: 1.125rem; margin-bottom: 10px; }
.safety__item p { font-size: .9375rem; color: #AEBBC8; }

/* 採用バナー */
.recruit-band { display: grid; grid-template-columns: 1fr; background: var(--cyan-soft); }
@media (min-width: 900px) { .recruit-band { grid-template-columns: 1fr 1fr; } }
.recruit-band .photo { min-height: 280px; aspect-ratio: auto; }
.recruit-band__body { padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px); }
.recruit-band__title { font-size: var(--fs-lg); margin-bottom: 18px; color: var(--navy); }

/* 問い合わせ帯 */
.cta { background: var(--navy); color: #fff; }
.cta .wrap { display: grid; gap: 32px; padding-block: clamp(56px, 7vw, 96px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .cta .wrap { grid-template-columns: 1.1fr 1fr; } }
.cta__title { font-size: var(--fs-lg); margin-bottom: 10px; }
.cta__text { color: #AEBBC8; font-size: .9375rem; }
.cta__actions { display: grid; gap: 14px; }
@media (min-width: 560px) { .cta__actions { grid-template-columns: 1fr 1fr; } }
.cta__tel {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 18px 24px; border: 1px solid rgba(255,255,255,.3); color: #fff; text-decoration: none; min-height: 88px;
}
.cta__tel:hover { border-color: var(--cyan); color: #fff; }
.cta__tel-label { font-size: .75rem; color: #AEBBC8; }
.cta__tel-num { font-family: var(--font-en); font-weight: 700; font-size: 1.5rem; letter-spacing: .04em; }

/* 会社概要の表 */
.data { border-top: 2px solid var(--navy); }
.data__row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .data__row { grid-template-columns: 10em 1fr; gap: 24px; } }
.data dt { font-weight: 700; color: var(--navy); font-size: .9375rem; }
.data dd { margin: 0; }
.data dd ul { list-style: none; }

/* 代表メッセージ */
.message { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .message { grid-template-columns: 4fr 7fr; } }
.message .photo { aspect-ratio: 4 / 5; }
.message__title { font-size: var(--fs-lg); margin-bottom: 28px; line-height: 1.6; }
.message__sign { margin-top: 32px; text-align: right; font-size: .9375rem; }
.message__sign strong { display: inline-block; margin-left: 12px; font-size: 1.25rem; letter-spacing: .1em; }

.map { margin-top: 32px; aspect-ratio: 16 / 9; width: 100%; border: 0; background: var(--paper); }
@media (max-width: 640px) { .map { aspect-ratio: 4 / 3; } }

/* 施工の流れ・応募の流れ（順序があるので番号を使う） */
.steps { list-style: none; display: grid; gap: 0; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.steps li { position: relative; padding: 28px 24px 28px 0; border-top: 2px solid var(--line); counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-en); font-weight: 700; font-size: 1.75rem; color: var(--cyan-ink); line-height: 1; margin-bottom: 14px;
}
.steps li::after { content: ""; position: absolute; left: 0; top: -2px; width: 48px; height: 2px; background: var(--cyan); }
.steps h3 { font-size: 1.0625rem; margin-bottom: 6px; color: var(--navy); }
.steps p { font-size: .9375rem; color: var(--mute); line-height: 1.8; }

/* 職種 */
.roles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 760px) { .roles { grid-template-columns: 1fr 1fr; } }
.role { background: var(--white); padding: clamp(24px, 3.5vw, 40px); }
.role__title { font-size: 1.25rem; color: var(--navy); margin-bottom: 14px; }
.role__req { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; list-style: none; }
.role__req li { font-size: .8125rem; padding: 2px 10px; background: var(--cyan-soft); color: var(--navy); }
.role__req-label { font-size: .8125rem; color: var(--mute); margin-bottom: 6px; }
.role p { font-size: .9375rem; }

.points { display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .points { grid-template-columns: repeat(3, 1fr); } }
.points__item { border-left: 2px solid var(--cyan); padding-left: 20px; }
.points__item h3 { font-size: 1.125rem; margin-bottom: 8px; color: var(--navy); }
.points__item p { font-size: .9375rem; color: var(--mute); }

.callout {
  border: 1px solid var(--line); background: var(--white);
  padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; align-items: center; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .callout { grid-template-columns: 1fr auto; } }
.callout h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 6px; }
.callout p { color: var(--mute); font-size: .9375rem; }

/* 7. Components -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 14px 28px;
  font-weight: 700; font-size: .9375rem; letter-spacing: .04em; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
  font-family: inherit;
}
.btn--primary { background: var(--cyan); color: var(--navy); }
.btn--primary:hover { background: #fff; color: var(--navy); }
.section:not(.section--navy) .btn--primary:hover, .callout .btn--primary:hover, .recruit-band .btn--primary:hover, .form .btn--primary:hover { background: var(--navy); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--line { border-color: var(--navy); color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn__arrow { width: 16px; height: 10px; flex: none; }

.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--navy); border-bottom: 2px solid var(--cyan); padding-bottom: 4px; }
.text-link:hover { color: var(--cyan-ink); }

/* 写真枠：写真が届いたら <img> に差し替える */
.photo { position: relative; overflow: hidden; background: #DCE2E8; aspect-ratio: 3 / 2; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(15,30,46,.06) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #D5DDE5, #C3CED9);
  display: flex; align-items: flex-end;
}
.photo--placeholder::after {
  content: attr(data-label);
  margin: 14px; padding: 4px 10px; font-size: .75rem; color: var(--navy); background: rgba(255,255,255,.85);
}

/* 要確認：お客様確認後に差し替える箇所（公開前に必ず消す） */
.todo { background: #FFF2C4; color: #6B4E00; padding: 0 .3em; font-size: .9em; }

/* 8. Forms ------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 80px); grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 4fr 7fr; } }
.contact-aside__tel { display: block; font-family: var(--font-en); font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); color: var(--navy); text-decoration: none; letter-spacing: .03em; line-height: 1.3; }
.contact-aside dl { margin: 24px 0 0; font-size: .9375rem; }
.contact-aside dt { color: var(--mute); font-size: .8125rem; margin-top: 14px; }
.contact-aside dd { margin: 0; }
.contact-aside .note { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--mute); }

.form { display: grid; gap: 28px; }
.field { display: grid; gap: 8px; }
.field__label { font-weight: 700; font-size: .9375rem; display: flex; align-items: center; gap: 10px; }
.req, .opt { font-size: .6875rem; font-weight: 700; padding: 1px 8px; letter-spacing: .04em; }
.req { background: var(--navy); color: #fff; }
.opt { background: var(--paper); color: var(--mute); border: 1px solid var(--line); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border: 1px solid #C9CED4; background: #fff; border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 200px; resize: vertical; line-height: 1.8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan-ink); box-shadow: 0 0 0 3px rgba(61,178,218,.25); }
.field [aria-invalid="true"] { border-color: #C0392B; background: #FFF8F7; }
.field__hint { font-size: .8125rem; color: var(--mute); }
.field__error { font-size: .8125rem; color: #B03A2E; font-weight: 500; min-height: 0; }
.field__error:empty { display: none; }

.choice { display: flex; flex-wrap: wrap; gap: 10px; border: 0; margin: 0; padding: 0; }
.choice legend { padding: 0; margin-bottom: 8px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice label span { display: block; padding: 10px 18px; border: 1px solid #C9CED4; font-size: .9375rem; background: #fff; transition: all .15s; }
.choice label input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice label input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }

.agree { display: flex; align-items: flex-start; gap: 12px; font-size: .9375rem; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--navy); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: 14px 18px; font-size: .9375rem; }
.form__status:empty { display: none; }
.form__status.is-error { background: #FFF1EF; color: #8E2B20; border-left: 3px solid #C0392B; }
.form .btn { width: 100%; }
@media (min-width: 640px) { .form .btn { width: auto; min-width: 280px; } }
.btn[disabled] { opacity: .6; cursor: wait; }

/* 本文ページ（プライバシーポリシー等） */
.doc { max-width: 46em; }
.doc h2 { font-size: 1.25rem; margin: 48px 0 14px; padding-left: 14px; border-left: 3px solid var(--cyan); color: var(--navy); }
.doc ol, .doc ul { padding-left: 1.4em; margin-bottom: 1.2em; }

/* 9. Footer ------------------------------------------------ */
.site-footer { background: #0A1622; color: #AEBBC8; font-size: .875rem; }
.site-footer .wrap { padding-block: 64px 32px; }
.footer__top { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.2fr 1fr; } }
.site-footer .logo { color: #fff; margin-bottom: 20px; }
.site-footer .logo__ja { color: #AEBBC8; }
.footer__info { font-style: normal; line-height: 2; }
.footer__info a { color: #fff; text-decoration: none; }
.footer__nav { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; align-content: start; }
.footer__nav a { color: #DCE3EA; text-decoration: none; display: inline-block; padding: 6px 0; }
.footer__nav a:hover { color: var(--cyan); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .75rem; }
.footer__bottom a { color: #AEBBC8; }

/* 10. Utilities / Motion ----------------------------------- */
.mt-l { margin-top: clamp(40px, 5vw, 64px); }
.mt-m { margin-top: 32px; }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Motion（動き）— main の motion.js が <html class="motion"> を付けたときだけ有効。
   JS が無い／動きを減らす設定のときは、すべて静止した通常表示になります。
   ========================================================== */

/* 見せ場：スクロールに合わせて降りてくるフック（右端のケーブル） */
.hookline { position: fixed; top: 0; right: 7px; width: 22px; height: 100vh; z-index: 90; pointer-events: none; display: none; }
.motion .hookline { display: block; }
.hookline__rig { position: absolute; top: 0; left: 50%; width: 0; transform-origin: 50% 0; will-change: transform; }
.hookline__cable { position: absolute; top: 0; left: -1px; width: 2px; height: var(--hook-y, 40px); background: var(--cyan); }
.hookline__hook { position: absolute; left: -11px; top: var(--hook-y, 40px); width: 22px; }
.hookline__hook svg { display: block; width: 22px; height: 44px; overflow: visible; }
.hookline__hook .hl-block { fill: #F2B705; }
.hookline__hook .hl-hook { fill: none; stroke: #F2B705; stroke-width: 2.4; stroke-linecap: round; }
@media (max-width: 600px) { .hookline { right: 3px; transform: scale(.8); transform-origin: top right; } }

/* ヒーロー：写真がゆっくり引き、見出しが一行ずつ上がる（読み込み時の一度だけ） */
.hero__bg { inset: -8% 0; height: 116%; }
.motion .hero__bg { animation: hero-settle 2.6s cubic-bezier(.16,.7,.2,1) both; }
@keyframes hero-settle { from { transform: scale(1.16); } to { transform: none; } }
.motion .hero__title span { animation: line-rise 1.05s cubic-bezier(.16,.8,.2,1) both; }
.motion .hero__title span:nth-child(1) { animation-delay: .25s; }
.motion .hero__title span:nth-child(2) { animation-delay: .5s; }
@keyframes line-rise { from { transform: translateY(70%); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(0 0 -20% 0); } }
.motion .hero__lead, .motion .hero__actions, .motion .hero__meta { animation: soft-in .9s ease both; }
.motion .hero__lead { animation-delay: .95s; }
.motion .hero__actions { animation-delay: 1.1s; }
.motion .hero__meta { animation-delay: 1.3s; }
@keyframes soft-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 流れる文字：スクロールに連動して横に動く（止まっているときは静止） */
.marquee { overflow: hidden; background: var(--white); padding-block: clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.marquee__track { display: flex; gap: .6em; width: max-content; will-change: transform; font-weight: 700; font-size: clamp(3rem, 9vw, 8rem); line-height: 1.1; letter-spacing: .04em; white-space: nowrap; }
.marquee__track span { color: transparent; -webkit-text-stroke: 1.5px var(--navy); }
.marquee__track span:nth-child(3n+2) { color: var(--cyan); -webkit-text-stroke: 0; }

/* 見出し：下から切り上がるように現れる */
.motion [data-reveal="title"] { clip-path: inset(0 0 100% 0); transform: translateY(.5em); }
.motion [data-reveal="title"].is-in { clip-path: inset(0 0 -20% 0); transform: none; transition: clip-path .9s cubic-bezier(.16,.8,.2,1), transform .9s cubic-bezier(.16,.8,.2,1); }
.motion .head__en[data-reveal="en"]::before { transform: scaleX(0); transform-origin: left; }
.motion .head__en.is-in::before { transform: none; transition: transform .8s cubic-bezier(.16,.8,.2,1) .1s; }
.motion [data-reveal="fade"] { opacity: 0; }
.motion [data-reveal="fade"].is-in { opacity: 1; transition: opacity .9s ease .2s; }

/* 写真：下から持ち上がるように現れ、ゆっくり落ち着く */
.motion [data-reveal="photo"] { clip-path: inset(100% 0 0 0); }
.motion [data-reveal="photo"] img { transform: scale(1.28); }
.motion [data-reveal="photo"].is-in { clip-path: inset(0); transition: clip-path 1.1s cubic-bezier(.16,.8,.2,1) calc(var(--i, 0) * .14s); }
.motion [data-reveal="photo"].is-in img { transform: none; transition: transform 1.6s cubic-bezier(.16,.8,.2,1) calc(var(--i, 0) * .14s); }

/* 項目：順に立ち上がる（安全への取り組みなど） */
.motion [data-reveal="item"] { opacity: 0; transform: translateY(26px); }
.motion [data-reveal="item"].is-in { opacity: 1; transform: none; transition: opacity .8s ease calc(var(--i, 0) * .12s), transform .8s cubic-bezier(.16,.8,.2,1) calc(var(--i, 0) * .12s); }

/* ホバー：写真がゆっくり寄り、カードがわずかに浮く */
.svc-list__item .photo img { transition: transform .9s cubic-bezier(.16,.8,.2,1); }
.svc-list__item:hover .photo img { transform: scale(1.07); }
.svc-list__item { transition: transform .35s ease; }
.svc-list__item:hover { transform: translateY(-6px); }
.svc-list__item:hover .svc-list__link::after { width: 36px; }
.btn--primary .btn__arrow { transition: transform .25s ease; }
.btn--primary:hover .btn__arrow { transform: translateX(5px); }

/* 濃紺セクションの上辺を斜めに：ブームの角度を思わせる切り口 */
.section--navy { --slant: clamp(24px, 4vw, 56px); clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); padding-top: calc(var(--section) + var(--slant)); margin-top: calc(var(--slant) * -1); }
