/* ============================================
   CONSTRUCTION MOTION TEMPLATE
   建築・内装・設備の会社 — 白 × 深いブルー × 電気的なシアン
   流れる英字・画像のワイプ・横に流れる施工実績
============================================ */

:root {
  --white: #f6f7f9; /* 地の白（ほんの少しだけ青み） */
  --paper: #ffffff;
  --navy: #0a1a3a; /* 深いブルー（文字・暗いセクション） */
  --navy-2: #102552;
  --blue: #1846e6; /* メインの青（ボタン・強調） */
  --cyan: #19d3f2; /* 電気的なシアン（差し色） */
  --ink: #0a1a3a;
  --muted: #5a6683;
  --line: rgba(10, 26, 58, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);
  --font-en: "Unbounded", "Zen Kaku Gothic New", sans-serif; /* 幅広の英字 */
  --font-body: "Zen Kaku Gothic New", sans-serif; /* 和文 */
  --font-mono: "DM Mono", monospace; /* 番号・ラベル */
  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(0.65, 0, 0.15, 1); /* ワイプ用のキレのあるイージング */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 1;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

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

[hidden] {
  display: none !important;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  position: relative;
  padding: 140px 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- 共通: ラベルと見出し ---------- */
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.label span {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--muted);
}

.label span::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-left: 12px;
}

.label--light {
  color: var(--cyan);
}

.label--light span {
  color: rgba(255, 255, 255, 0.6);
}

.title {
  font-weight: 900;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.4;
  letter-spacing: 0.04em;
  word-break: keep-all;
}

.title--light {
  color: #fff;
}

.sec-top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 0 48px;
  margin-bottom: 64px;
}

.sec-top .label {
  grid-column: 1 / -1;
}

.sec-top__desc {
  justify-self: end;
  max-width: 400px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- ボタン ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 34px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: color 0.4s var(--ease);
}

/* ホバーで下から色が満ちる */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}

.btn:hover::before {
  transform: none;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

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

.btn--ghost {
  border-color: var(--navy);
  color: var(--navy);
}

.btn--ghost:hover {
  color: #fff;
}

.btn--cyan {
  background: var(--cyan);
  color: var(--navy);
}

.btn--cyan::before {
  background: #fff;
}

/* ============================================
   HEADER
============================================ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--header-h);
}

/* 背景は擬似要素に（ヘッダー本体に効果を付けると、中の固定メニューが閉じ込められるため） */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}

.header.is-scrolled::before {
  transform: none;
}

.header__inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
}

.logo__mark {
  position: relative;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--navy);
}

/* ロゴの点（シアン） */
.logo__mark i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--cyan);
}

.logo__ja {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__list {
  display: flex;
  gap: 4px;
}

.nav__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
}

/* 下線が左から伸びる */
.nav__list a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav__list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.3s;
}

.nav__cta:hover {
  background: var(--blue);
}

.nav__tel {
  display: none;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  cursor: pointer;
  z-index: 210;
}

.nav-toggle span {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform 0.4s var(--ease);
}

.nav-toggle span:nth-child(1) {
  top: 21px;
}
.nav-toggle span:nth-child(2) {
  top: 29px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 32px 80px;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 28px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(25, 211, 242, 0.2);
}

.hero__title {
  font-weight: 900;
  font-size: clamp(54px, 8.2vw, 124px);
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin-bottom: 36px;
}

/* 行の枠（文字は少し下から静かに出る） */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.line--blue {
  color: var(--blue);
}

.char {
  display: inline-block;
}

html.js [data-split] .char {
  transform: translateY(12px);
  opacity: 0;
  transition:
    transform 0.8s var(--ease-out),
    opacity 0.8s var(--ease-out);
  transition-delay: calc(var(--i) * 30ms + 0.1s);
}

html.js [data-split].is-in .char {
  transform: none;
  opacity: 1;
}

.hero__lead {
  font-size: 17px;
  font-weight: 500;
  line-height: 2;
  margin-bottom: 40px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__visual {
  position: relative;
  height: min(76vh, 760px);
}

.hero__visual .wipe__inner {
  border-radius: 0 0 0 160px;
}

.hero__caption {
  position: absolute;
  left: -28px;
  bottom: 36px;
  z-index: 2;
  max-width: 300px;
  padding: 14px 18px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  box-shadow: 0 10px 30px rgba(10, 26, 58, 0.12);
}

.hero__caption span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.hero__scroll {
  position: absolute;
  left: 32px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.hero__scroll::after {
  content: "";
  width: 64px;
  height: 1px;
  background: var(--line);
  background-image: linear-gradient(90deg, var(--blue), var(--blue));
  background-size: 30% 100%;
  background-repeat: no-repeat;
}

/* ============================================
   WIPE（clip-path で画像が左から現れる）
   ※監視するのは外側の [data-wipe]。隠すのは中の .wipe__inner
============================================ */
.wipe {
  position: relative;
}

.wipe__inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.wipe__inner img {
  width: 100%;
  height: 112%; /* パララックスで動かす分の余白 */
  object-fit: cover;
  will-change: transform;
}

html.js .wipe .wipe__inner {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease-out);
}

html.js .wipe .wipe__inner img {
  scale: 1.04;
  transition: scale 1.6s var(--ease-out);
}

html.js .wipe.is-in .wipe__inner {
  clip-path: inset(0 0 0 0);
}

html.js .wipe.is-in .wipe__inner img {
  scale: 1;
}

/* ============================================
   MARQUEE（大きな英字の帯。流さずに置くだけ）
============================================ */
.marquee {
  background: var(--navy);
  color: #fff;
  padding: 28px 0;
  overflow: hidden;
}

.marquee__row {
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
}

/* 2段目は少し左にずらして、段違いに見せる */
.marquee__row--rev .marquee__track {
  transform: translateX(-12%);
}

.marquee__track span {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 116px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  padding-right: 0.5em;
  white-space: nowrap;
}

/* 白抜き（アウトライン）の語 */
.marquee__track .o {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan);
}


/* ============================================
   ABOUT
============================================ */
.about__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 40px 80px;
}

.about__body p {
  margin-bottom: 1.4em;
}

.about__img {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  aspect-ratio: 10 / 7;
  margin-top: -40px;
}

.about__body {
  grid-row: 1 / 3;
  grid-column: 2;
  padding-top: 52px;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.numbers div {
  padding: 22px 0 0;
}

.numbers div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.numbers dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.numbers dd {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.num {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.2;
  color: var(--blue);
}

.unit {
  font-weight: 700;
}

/* ============================================
   SERVICE（行リスト。ホバーで写真がワイプ）
============================================ */
.service {
  background: var(--paper);
}

.svc-list {
  border-top: 1px solid var(--navy);
}

.svc {
  border-bottom: 1px solid var(--line);
}

.svc__link {
  position: relative;
  display: grid;
  grid-template-columns: 80px 300px 1fr;
  align-items: center;
  gap: 24px;
  padding: 36px 8px;
  transition:
    padding 0.5s var(--ease),
    color 0.3s;
}

/* 背景が左から満ちる */
.svc__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--navy);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.6s var(--ease);
}

.svc__link > * {
  position: relative;
  z-index: 1;
}

.svc__no {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}

.svc__name {
  display: flex;
  flex-direction: column;
}

.svc__ja {
  font-weight: 900;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.3;
}

.svc__en {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.svc__text {
  max-width: 460px;
  font-size: 15px;
  color: var(--muted);
}

/* ホバー時に右端へ写真が現れる */
.svc__img {
  position: absolute;
  right: 24px;
  top: 50%;
  width: 260px;
  aspect-ratio: 64 / 44;
  translate: 0 -50%;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.6s var(--ease);
  pointer-events: none;
}

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

@media (hover: hover) {
  .svc__link:hover {
    padding-left: 28px;
    color: #fff;
  }

  .svc__link:hover::before {
    clip-path: inset(0 0 0 0);
  }

  .svc__link:hover .svc__text,
  .svc__link:hover .svc__no {
    color: rgba(255, 255, 255, 0.75);
  }

  .svc__link:hover .svc__en {
    color: var(--cyan);
  }

  .svc__link:hover .svc__img {
    clip-path: inset(0 0 0 0);
  }
}

/* ============================================
   WORKS（横に流れる施工実績）
   既定（スマホ・JSなし）: 横スワイプできる枠。ページ全体は横に広がらない
   PC（JSが .is-pinned を付けたとき）: 縦スクロールで横に進む
============================================ */
.works {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 120px 0 100px;
}

.works__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}

.works__hint {
  text-align: right;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.works__hint-pc {
  display: none;
}

.works__count {
  display: block;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

.works__count b {
  font-family: var(--font-en);
  font-size: 36px;
  color: var(--cyan);
  margin-right: 6px;
}

.works__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.works__viewport::-webkit-scrollbar {
  display: none;
}

.works__viewport:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.works__track {
  display: flex;
  gap: 32px;
  width: max-content;
  padding: 0 max(40px, calc((100vw - var(--container)) / 2 + 40px));
}

.work {
  width: 360px;
  flex-shrink: 0;
  scroll-snap-align: center;
}

/* 1枚ごとに高さをずらして、流れに段差をつける */
.work:nth-child(even) {
  margin-top: 56px;
}

.work__img {
  aspect-ratio: 9 / 11;
  overflow: hidden;
  margin-bottom: 18px;
}

.work__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.work:hover .work__img img {
  transform: scale(1.03);
}

.work__type {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 1px 10px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 999px;
  margin-bottom: 8px;
}

.work__title {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.55;
  margin-bottom: 10px;
}

.work__meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.work__meta div {
  display: grid;
  grid-template-columns: 44px 1fr;
}

.work--more {
  display: flex;
  align-items: center;
}

.work__more {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  aspect-ratio: 9 / 11;
  padding: 32px;
  border: 1px solid var(--line-light);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.6;
  transition:
    background-color 0.4s,
    color 0.4s;
}

.work__more svg {
  align-self: flex-end;
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.work__more:hover {
  background: var(--cyan);
  color: var(--navy);
}

.works__progress {
  margin-top: 40px;
}

.works__progress span {
  display: block;
  height: 2px;
  background: var(--line-light);
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-size: calc(var(--p, 0) * 100%) 100%;
  background-repeat: no-repeat;
}

/* PC：縦スクロールを横の動きに変える */
.works.is-pinned {
  padding: 0;
}

.works.is-pinned .works__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.works.is-pinned .works__viewport {
  overflow: visible;
  scroll-snap-type: none;
}

.works.is-pinned .works__track {
  will-change: transform;
}

.works.is-pinned .work {
  width: clamp(260px, 22vw, 320px);
}

/* 画面の高さに収まるよう、写真の高さを画面基準に */
.works.is-pinned .work__img {
  aspect-ratio: auto;
  height: min(36vh, 380px);
}

.works.is-pinned .work:nth-child(even) {
  margin-top: 32px;
}

.works.is-pinned .works__head,
.works.is-pinned .works__progress {
  width: 100%;
}

.works.is-pinned .works__head {
  margin-bottom: 28px;
}

.works.is-pinned .work__more {
  aspect-ratio: auto;
  height: min(36vh, 380px);
}

.works.is-pinned .works__progress {
  margin-top: 24px;
}

.works.is-pinned .works__hint-pc {
  display: inline;
}

.works.is-pinned .works__hint-sp {
  display: none;
}

/* ============================================
   QUALITY（パララックスの背景写真）
============================================ */
.quality {
  position: relative;
  padding: 160px 0;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.quality__bg {
  position: absolute;
  inset: -12% 0;
  z-index: -1;
}

.quality__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.quality__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 58, 0.86);
}

.quality__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: start;
}

/* 見出しは追従させる */
.quality__head {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.record {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

.record__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
}

.record__num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1.1;
}

.record__num small {
  font-size: 18px;
  font-weight: 400;
  margin-left: 8px;
  color: var(--cyan);
}

.record__note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.quality__list li {
  position: relative;
  padding: 40px 0 40px 88px;
  border-bottom: 1px solid var(--line-light);
}

.quality__list li:first-child {
  border-top: 1px solid var(--line-light);
}

.quality__no {
  position: absolute;
  left: 0;
  top: 40px;
  font-family: var(--font-en);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--cyan);
}

.quality__list h3 {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 8px;
}

.quality__list p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
}

/* ============================================
   COMPANY
============================================ */
.company__grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 64px;
  align-items: start;
}

.info div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.info div:first-child {
  border-top: 1px solid var(--navy);
}

.info dt {
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}

.info dd {
  font-size: 15px;
}

.company__img {
  aspect-ratio: 9 / 7;
  margin-bottom: 24px;
}

.company__msg {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.9;
}

.company__msg span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* 沿革 — 左の線がスクロールに合わせて伸びる */
.history {
  margin-top: 120px;
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 40px;
}

.history__title {
  font-weight: 900;
  font-size: 28px;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.history__list {
  position: relative;
  padding-left: 40px;
}

.history__list::before,
.history__list::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.history__list::after {
  background: var(--blue);
  transform-origin: top;
  transform: scaleY(var(--progress, 1));
}

html.js .history__list::after {
  transform: scaleY(var(--progress, 0));
}

.history__list li {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 18px 0;
}

.history__list li::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 30px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: var(--white);
}

.history__year {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.5;
  color: var(--blue);
}

.history__list p {
  font-size: 15px;
  padding-top: 6px;
}

/* ============================================
   RECRUIT
============================================ */
.recruit {
  background: var(--paper);
  padding-top: 0;
  overflow: hidden;
}

.recruit__marquee {
  overflow: hidden;
  padding: 36px 0;
  margin-bottom: 100px;
  border-bottom: 1px solid var(--line);
}


.recruit__marquee span {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 84px);
  padding-right: 0.5em;
  white-space: nowrap;
  color: var(--blue);
}

.recruit__marquee .o {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--navy);
}

.recruit__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 96px;
}

.recruit__lead {
  margin-top: 24px;
}

.recruit__img {
  aspect-ratio: 9 / 7;
}

.recruit__img .wipe__inner {
  border-radius: 120px 0 0 0;
}

.positions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--navy);
  margin-bottom: 72px;
}

.position {
  padding: 32px 32px 36px 0;
  display: flex;
  flex-direction: column;
}

.position + .position {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.position__tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue);
}

.position h3 {
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 10px;
}

.position p {
  font-size: 15px;
  color: var(--muted);
  flex: 1;
}

.position .position__tag {
  flex: none;
}

.position__pay {
  margin-top: 18px;
  flex: none !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px !important;
  color: var(--navy) !important;
}

.recruit__grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 120px;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.terms {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.terms caption {
  text-align: left;
  font-weight: 900;
  font-size: 20px;
  padding-bottom: 14px;
}

.terms th,
.terms td {
  padding: 16px 0;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.terms th {
  width: 120px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  padding-right: 20px;
}

.day {
  background: var(--navy);
  color: #fff;
  padding: 32px 30px;
  border-radius: 0 0 0 64px;
}

.day__title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

.day__list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line-light);
}

.day__list time {
  font-family: var(--font-mono);
  color: var(--cyan);
}

/* 先輩の声 — 左右に互い違い */
.voices {
  max-width: 980px;
  margin: 0 auto 120px;
}

.voices__title {
  font-weight: 900;
  font-size: 28px;
  margin-bottom: 40px;
}

.voice {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}

.voice--rev {
  grid-template-columns: 1fr 240px;
  margin-left: 80px;
}

.voice--rev .voice__img {
  order: 2;
}

.voice__img {
  aspect-ratio: 1;
}

.voice__img .wipe__inner {
  border-radius: 50%;
}

.voice__who {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue);
}

.voice__name {
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 8px;
}

.voice__text {
  font-size: 15px;
}

/* ============================================
   FORM
============================================ */
.form {
  background: var(--white);
  padding: 56px;
  border-radius: 0 0 0 80px;
}

.form__head {
  margin-bottom: 32px;
}

.form__title {
  font-weight: 900;
  font-size: clamp(26px, 3vw, 36px);
}

.form__note {
  font-size: 15px;
  color: var(--muted);
}

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

.form__grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  border: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 14px;
  font-weight: 700;
}

.field__label em {
  font-style: normal;
  font-size: 11px;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  vertical-align: 2px;
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form input[type="number"],
.form input[type="date"],
.form select,
.form textarea {
  width: 100%;
  min-height: 52px;
  padding: 10px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--navy);
  border-radius: 0;
  font-size: 16px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-bottom-color: var(--blue);
  box-shadow: 0 2px 0 var(--cyan);
}

.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 52%,
    calc(100% - 9px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

.form select option {
  color: var(--navy);
}

.form textarea {
  resize: vertical;
  line-height: 1.7;
}

.form ::placeholder {
  color: #9aa3b8;
}

.form .is-invalid {
  border-bottom-color: #e0364a !important;
}

.choices {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.choices legend {
  width: 100%;
  margin-bottom: 6px;
}

.choices label {
  position: relative;
  cursor: pointer;
}

.choices input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choices span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.choices input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.choices input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.form__msg {
  margin-top: 16px;
  min-height: 1.5em;
  font-weight: 700;
  color: var(--blue);
}

/* 暗い面のフォーム */
.form--dark {
  background: var(--navy-2);
  color: #fff;
}

.form--dark input[type="text"],
.form--dark input[type="tel"],
.form--dark input[type="email"],
.form--dark select,
.form--dark textarea {
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.form--dark input:focus,
.form--dark select:focus,
.form--dark textarea:focus {
  border-bottom-color: var(--cyan);
}

.form--dark .field__label em {
  background: var(--cyan);
  color: var(--navy);
}

.form--dark ::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form--dark .choices span {
  border-color: var(--line-light);
}

.form--dark .choices input:checked + span {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy);
}

.form--dark .form__msg {
  color: var(--cyan);
}

/* ============================================
   CONTACT
============================================ */
.contact {
  background: var(--navy);
  color: #fff;
}

.contact__grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 72px;
  align-items: start;
}

.contact__lead {
  margin: 28px 0 32px;
  color: rgba(255, 255, 255, 0.82);
}

.contact__tel {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-height: 44px;
  white-space: nowrap;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 32px);
  color: var(--cyan);
}

.contact__tel span {
  font-size: 14px;
  color: #fff;
}

.contact__hours {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

/* ============================================
   ACCESS
============================================ */
.access {
  padding: 120px 0;
}

.access__grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 64px;
  align-items: center;
}

.access__title {
  font-weight: 900;
  font-size: 28px;
  margin-bottom: 24px;
}

.access__list div {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.access__list dt {
  font-weight: 700;
  color: var(--muted);
}

.access__map {
  height: 440px;
}

.access__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.9) contrast(1.05);
}

.access__map .wipe__inner {
  border-radius: 0 120px 0 0;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--navy);
  color: #fff;
  padding: 72px 0 32px;
  overflow: hidden;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__name {
  font-weight: 900;
  font-size: 20px;
}

.footer__addr {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 14px;
}

.footer__nav a:hover {
  color: var(--cyan);
}

/* 画面幅いっぱいの社名 */
.footer__big {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(44px, 11.5vw, 168px);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin: 56px 0 24px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   REVEAL（JSがあるときだけ隠す）
============================================ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1180px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 205;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 100px 40px 40px;
    background: var(--navy);
    color: #fff;
    opacity: 0;
    transform: translateY(-16px);
    visibility: hidden;
    transition:
      opacity 0.3s var(--ease-out),
      transform 0.3s var(--ease-out),
      visibility 0.3s;
    overflow-y: auto;
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav__list a {
    min-height: 58px;
    font-size: 22px;
    padding: 0;
    width: 100%;
    border-bottom: 1px solid var(--line-light);
  }

  .nav__list a::after {
    left: 0;
    right: auto;
    width: 40px;
  }

  .nav__cta {
    background: var(--cyan);
    color: var(--navy);
    min-height: 54px;
    padding: 0 32px;
    font-size: 16px;
  }

  .nav__tel {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
  }

  .nav__tel a {
    font-family: var(--font-en);
    font-size: 24px;
    color: var(--cyan);
  }

  /* メニューが開いたら、ボタンを白丸に */
  .nav-toggle[aria-expanded="true"] {
    background: #fff;
  }

  .nav-toggle[aria-expanded="true"] span {
    background: var(--navy);
  }
}

@media (max-width: 1023px) {
  .container {
    padding: 0 28px;
  }

  .section {
    padding: 104px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: calc(var(--header-h) + 32px) 28px 72px;
  }

  .hero__visual {
    height: 56vh;
    min-height: 340px;
    margin-left: 28px;
  }

  .hero__scroll {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__body,
  .about__img {
    grid-column: auto;
    grid-row: auto;
    padding-top: 0;
    margin-top: 0;
  }

  .sec-top {
    grid-template-columns: 1fr;
  }

  .sec-top__desc {
    justify-self: start;
    margin-top: 12px;
  }

  .svc__link {
    grid-template-columns: 56px 1fr;
    gap: 6px 20px;
    padding: 28px 0;
  }

  .svc__text {
    grid-column: 2;
  }

  /* タブレット以下は写真を行の右上に小さく常時表示 */
  .svc__img {
    position: static;
    grid-column: 2;
    width: 100%;
    max-width: 420px;
    translate: none;
    clip-path: none;
    margin-top: 10px;
  }

  .quality__grid,
  .company__grid,
  .history,
  .recruit__intro,
  .recruit__grid,
  .contact__grid,
  .access__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .quality__head,
  .history__title {
    position: static;
  }

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

  .company__img {
    margin: 0;
  }

  .history {
    margin-top: 88px;
    gap: 20px;
  }

  .positions {
    grid-template-columns: 1fr;
  }

  .position,
  .position + .position {
    padding: 28px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .voice--rev {
    margin-left: 0;
  }

  .form {
    padding: 40px 32px;
  }

  .form__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 88px 0;
  }

  .header__inner {
    padding: 0 12px 0 20px;
  }

  .logo__ja {
    display: none;
  }

  .hero {
    padding: calc(var(--header-h) + 24px) 20px 64px;
    gap: 32px;
  }

  .hero__kicker {
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  .hero__title {
    font-size: clamp(48px, 15vw, 72px);
    margin-bottom: 24px;
  }

  .hero__lead {
    font-size: 15px;
  }

  .hero__lead br {
    display: none;
  }

  .hero__cta .btn {
    flex: 1 1 100%;
  }

  .hero__visual {
    height: 420px;
    min-height: 0;
    margin-left: 20px;
  }

  .hero__visual .wipe__inner {
    border-radius: 0 0 0 80px;
  }

  .hero__caption {
    left: -20px;
    bottom: 20px;
    max-width: 240px;
    font-size: 12px;
  }

  .marquee {
    padding: 18px 0;
  }

  .numbers {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .numbers div + div {
    padding-left: 12px;
  }

  .numbers dt {
    font-size: 12px;
    line-height: 1.5;
  }

  .num {
    font-size: 28px;
  }

  .svc__link {
    grid-template-columns: 1fr;
  }

  .svc__no {
    font-size: 13px;
  }

  .svc__text,
  .svc__img {
    grid-column: auto;
  }

  .works {
    padding: 88px 0 72px;
  }

  .works__head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .works__hint {
    text-align: left;
  }

  .works__track {
    gap: 18px;
    padding: 0 20px;
  }

  .work {
    width: 76vw;
    max-width: 320px;
    scroll-snap-align: start;
  }

  .work:nth-child(even) {
    margin-top: 0;
  }

  .quality {
    padding: 104px 0;
  }

  .quality__list li {
    padding: 28px 0 28px 60px;
  }

  .quality__no {
    top: 30px;
    font-size: 26px;
  }

  .quality__list h3 {
    font-size: 19px;
  }

  .info div {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 14px 0;
  }

  .info dt {
    font-size: 13px;
  }

  .company__side {
    grid-template-columns: 1fr;
  }

  .history__list {
    padding-left: 32px;
  }

  .history__list li {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px 0;
  }

  .history__list li::before {
    left: -32px;
    top: 24px;
  }

  .history__year {
    font-size: 22px;
  }

  .recruit__marquee {
    padding: 24px 0;
    margin-bottom: 72px;
  }

  .recruit__intro {
    margin-bottom: 64px;
  }

  /* 募集要項はスマホで縦積み */
  .terms,
  .terms tbody,
  .terms tr,
  .terms th,
  .terms td {
    display: block;
    width: 100%;
  }

  .terms caption {
    display: block;
  }

  .terms th {
    padding: 14px 0 2px;
    font-size: 13px;
  }

  .terms td {
    border-top: 0;
    padding: 0 0 14px;
  }

  .voice,
  .voice--rev {
    grid-template-columns: 96px 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 36px;
  }

  .voice--rev .voice__img {
    order: 0;
  }

  .voice__name {
    font-size: 19px;
  }

  .voice__text {
    font-size: 14px;
  }

  .form {
    padding: 36px 20px;
    border-radius: 0 0 0 40px;
    margin: 0 -4px;
  }

  .form__grid,
  .form__grid--2 {
    grid-template-columns: 1fr;
  }

  .form .btn {
    width: 100%;
  }

  .access {
    padding: 88px 0;
  }

  .access__map {
    height: 320px;
  }

  .access__list div {
    grid-template-columns: 72px 1fr;
  }

  .footer__top {
    flex-direction: column;
  }
}

/* ============================================
   REDUCED MOTION — 動きをすべて止める
============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  html.js [data-reveal],
  html.js [data-split] .char {
    opacity: 1;
    transform: none;
  }

  html.js .wipe .wipe__inner {
    clip-path: none;
  }

  html.js .wipe .wipe__inner img {
    scale: 1;
  }

  html.js .history__list::after {
    transform: scaleY(1);
  }

}
