/* ============================================================
   株式会社サガキザイ 採用サイト
   Design: 赤い足場 × モダン採用ブランディング
   Colors: Red #D7222A / Black #0F0F11 / Paper #F5F3EF
   ============================================================ */

:root {
  --red: #d7222a;
  --red-dark: #b01820;
  --black: #0f0f11;
  --ink: #1a1a1c;
  --paper: #f5f3ef;
  --white: #ffffff;
  --gray: #6d6d72;
  --line: rgba(15, 15, 17, 0.12);
  --font-display: "Bebas Neue", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

/* 粒状テクスチャ（全体に薄く） */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--red); color: #fff; }

/* ============================================================
   ローディング（足場が組み上がるアニメーション）
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-scaffold {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  grid-template-rows: repeat(3, 34px);
  gap: 6px;
}
.loader-scaffold span {
  border: 2px solid var(--red);
  opacity: 0;
  transform: scale(0.4);
  animation: buildCell 0.5s var(--ease-out) forwards;
}
.loader-scaffold span:nth-child(1) { animation-delay: 0.05s; }
.loader-scaffold span:nth-child(2) { animation-delay: 0.15s; }
.loader-scaffold span:nth-child(3) { animation-delay: 0.25s; }
.loader-scaffold span:nth-child(4) { animation-delay: 0.2s; }
.loader-scaffold span:nth-child(5) { animation-delay: 0.3s; }
.loader-scaffold span:nth-child(6) { animation-delay: 0.4s; }
.loader-scaffold span:nth-child(7) { animation-delay: 0.35s; }
.loader-scaffold span:nth-child(8) { animation-delay: 0.45s; }
.loader-scaffold span:nth-child(9) { animation-delay: 0.55s; }
@keyframes buildCell { to { opacity: 1; transform: scale(1); } }
.loader-text {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.5em;
  color: #fff;
  text-indent: 0.5em;
  animation: loaderPulse 1.4s ease-in-out infinite;
}
.loader-text em { color: var(--red); font-style: normal; }
@keyframes loaderPulse { 50% { opacity: 0.45; } }

/* ============================================================
   ヘッダー
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.header.is-scrolled {
  background: rgba(15, 15, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-logo { display: flex; align-items: center; gap: 10px; }
.header-logo img { height: 26px; width: auto; transition: opacity 0.3s; }
.header-logo:hover img { opacity: 0.7; }
.gnav { display: flex; align-items: center; gap: 4px; }
.gnav a {
  position: relative;
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.gnav a .en {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--red);
  line-height: 1;
  margin-top: 2px;
}
.gnav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.gnav a:hover::after, .gnav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 12px 22px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.3s, transform 0.3s;
}
.header-cta:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ハンバーガー */
.menu-btn {
  display: none;
  position: relative;
  z-index: 1102;
  width: 48px; height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.menu-btn span {
  display: block;
  width: 26px; height: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.menu-btn.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 32px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu::before {
  content: "SAGAKIZAI";
  position: absolute;
  bottom: 8px; left: -4px;
  font-family: var(--font-display);
  font-size: clamp(64px, 18vw, 140px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.mobile-menu a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.mobile-menu.is-open a { opacity: 1; transform: translateY(0); }
.mobile-menu a .en {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--red);
}
.mobile-menu a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu a:nth-child(6) { transition-delay: 0.38s; }
.mobile-menu .mobile-tel {
  margin-top: 28px;
  border: 0;
  justify-content: center;
  background: var(--red);
  padding: 16px;
  font-size: 22px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  transition-delay: 0.44s;
}

/* ============================================================
   共通パーツ
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1380px; margin: 0 auto; padding: 0 24px; }

.sec { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.sec-black { background: var(--black); color: #fff; }
.sec-paper { background: var(--paper); }

/* セクション見出し */
.sec-head { margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head.is-center { text-align: center; }
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.35em;
  color: var(--red);
  text-transform: uppercase;
}
.sec-label::before { content: ""; width: 32px; height: 2px; background: var(--red); }
.sec-head.is-center .sec-label::after { content: ""; width: 32px; height: 2px; background: var(--red); }
.sec-title {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-top: 12px;
}
.sec-lead { margin-top: 16px; color: var(--gray); max-width: 640px; }
.sec-head.is-center .sec-lead { margin-left: auto; margin-right: auto; }
.sec-black .sec-lead { color: rgba(255, 255, 255, 0.65); }

/* 巨大アウトライン英字（背景装飾） */
.bg-word {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(90px, 16vw, 220px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(15, 15, 17, 0.1);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}
.sec-black .bg-word { -webkit-text-stroke-color: rgba(255, 255, 255, 0.07); }

/* ボタン */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 40px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.12em;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s, transform 0.3s, box-shadow 0.35s;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(6px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-out);
  z-index: -1;
}
.btn-red:hover::before { transform: translateX(0); }
.btn-red:hover { box-shadow: 0 10px 30px rgba(215, 34, 42, 0.35); transform: translateY(-2px); }
.btn-ghost { border: 2px solid currentColor; color: #fff; clip-path: none; }
.btn-ghost:hover { background: #fff; color: var(--black); }
.btn-ghost-dark { border: 2px solid var(--black); color: var(--black); clip-path: none; }
.btn-ghost-dark:hover { background: var(--black); color: #fff; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.1em;
  font-size: 15px;
}
.link-more .arrow { transition: transform 0.3s var(--ease-out); }
.link-more:hover .arrow { transform: translateX(8px); }

/* 斜めストライプ帯（足場モチーフ） */
.stripe {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 14px, transparent 14px 28px);
  opacity: 0.9;
}

/* ============================================================
   スクロールリビール
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal-left { transform: translateX(-56px); }
.reveal-right { transform: translateX(56px); }
.reveal-zoom { transform: scale(0.92); }
.reveal.is-shown { opacity: 1; transform: none; }

/* 見出しクリップリビール */
.clip-line { display: block; overflow: hidden; }
.clip-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.is-shown .clip-line > span, .hero.is-ready .clip-line > span { transform: translateY(0); }

/* 画像ワイプリビール */
.img-wipe { position: relative; overflow: hidden; }
.img-wipe::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateX(0);
  transition: transform 0.9s var(--ease-out) 0.15s;
  z-index: 2;
}
.img-wipe.is-shown::after { transform: translateX(101%); }
.img-wipe img { transform: scale(1.12); transition: transform 1.4s var(--ease-out) 0.15s; }
.img-wipe.is-shown img { transform: scale(1); }

/* ============================================================
   ヒーロー（トップ）
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}
.hero-bg {
  position: absolute;
  inset: -6% 0;
  background-size: cover;
  background-position: center;
  animation: kenburns 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 10, 12, 0.88) 0%, rgba(10, 10, 12, 0.55) 48%, rgba(10, 10, 12, 0.2) 100%),
    linear-gradient(to top, rgba(10, 10, 12, 0.75), transparent 42%);
}
.hero-word {
  position: absolute;
  right: -0.06em;
  top: 12vh;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: clamp(72px, 14vh, 150px);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  letter-spacing: 0.06em;
  pointer-events: none;
  z-index: 2;
}
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 24px 100px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s var(--ease-out) 0.2s, transform 0.7s var(--ease-out) 0.2s;
}
.hero.is-ready .hero-tag { opacity: 1; transform: none; }
.hero-tag::before { content: ""; width: 40px; height: 2px; background: var(--red); }
.hero-title {
  color: #fff;
  font-size: clamp(46px, 9vw, 104px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0.02em;
}
.hero-title .accent { color: var(--red); }
.hero-title .clip-line:nth-child(1) > span { transition-delay: 0.35s; }
.hero-title .clip-line:nth-child(2) > span { transition-delay: 0.5s; }
.hero-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(15px, 2vw, 19px);
  max-width: 560px;
  margin: 28px 0 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out) 0.75s, transform 0.8s var(--ease-out) 0.75s;
}
.hero.is-ready .hero-lead { opacity: 1; transform: none; }
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out) 0.95s, transform 0.8s var(--ease-out) 0.95s;
}
.hero.is-ready .hero-btns { opacity: 1; transform: none; }
.hero-scroll {
  position: absolute;
  bottom: 88px;
  left: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.4em;
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 下層ページヒーロー */
.page-hero {
  position: relative;
  min-height: clamp(320px, 52vh, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}
.page-hero .hero-bg { animation-duration: 24s; }
.page-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 24px 52px;
}
.page-hero-label {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.4em;
  color: var(--red);
  text-transform: uppercase;
}
.page-hero-title {
  color: #fff;
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 900;
  line-height: 1.2;
  margin-top: 6px;
}
.page-hero-lead { color: rgba(255, 255, 255, 0.75); margin-top: 14px; max-width: 620px; }

/* ============================================================
   マーキー
   ============================================================ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  user-select: none;
}
.marquee-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 100%;
  animation: marquee var(--speed, 28s) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee-red {
  background: var(--red);
  color: #fff;
  padding: 14px 0;
  transform: rotate(0.001deg);
}
.marquee-red .marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 0 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 15px;
}
.marquee-red .marquee-item::after { content: "／"; opacity: 0.5; font-weight: 400; }
.marquee-outline {
  padding: 8px 0;
}
.marquee-outline .marquee-item {
  font-family: var(--font-display);
  font-size: clamp(64px, 11vw, 140px);
  line-height: 1;
  padding: 0 24px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
}
.marquee-outline .marquee-item.fill { color: var(--red); -webkit-text-stroke: 0; }

/* フォトマーキー（現場ギャラリー） */
.photo-marquee { display: grid; gap: 12px; }
.photo-marquee .marquee-track { gap: 12px; padding-right: 12px; }
.photo-marquee .marquee-track img {
  height: clamp(150px, 22vw, 240px);
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
  filter: saturate(1.05);
  transition: transform 0.4s var(--ease-out), filter 0.4s;
}
.photo-marquee .marquee-track img:hover { transform: scale(1.04); filter: saturate(1.2); }
.photo-marquee .is-reverse { animation-direction: reverse; }

/* ============================================================
   数字カウンター
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.stat {
  background: var(--black);
  text-align: center;
  padding: clamp(28px, 4vw, 48px) 12px;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.8s var(--ease-out) 0.3s;
}
.stat.is-shown::before { transform: scaleX(1); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  color: var(--red);
}
.stat-num .suffix { font-size: 0.45em; margin-left: 2px; }
.stat-label { color: rgba(255, 255, 255, 0.6); font-size: 13px; letter-spacing: 0.14em; margin-top: 10px; }

/* ============================================================
   2カラム（画像＋テキスト）
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.split-img { position: relative; }
.split-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-img .caption-box {
  position: absolute;
  right: -16px; bottom: -20px;
  background: var(--red);
  color: #fff;
  padding: 20px 26px;
  font-weight: 900;
  line-height: 1.5;
  box-shadow: 0 16px 40px rgba(215, 34, 42, 0.35);
}
.split-img .caption-box .big { font-size: 24px; display: block; }
.split-body p { color: var(--gray); margin-bottom: 18px; }
.sec-black .split-body p { color: rgba(255, 255, 255, 0.7); }
.check-list { display: grid; gap: 12px; margin: 4px 0 28px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  font-weight: 500;
}
.check-list .tick {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 4px;
  background: var(--red);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* ============================================================
   ベネフィットカード
   ============================================================ */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.b-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 30px 26px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, background 0.35s;
}
.b-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--red) 50%, transparent 50.5%);
  opacity: 0;
  transition: opacity 0.35s;
}
.b-card:hover {
  transform: translateY(-6px);
  border-color: rgba(215, 34, 42, 0.6);
  background: rgba(215, 34, 42, 0.08);
}
.b-card:hover::before { opacity: 1; }
.b-card .icon { color: var(--red); margin-bottom: 16px; }
.b-card .icon svg { width: 32px; height: 32px; }
.b-card h3 { color: #fff; font-size: 18px; font-weight: 900; letter-spacing: 0.06em; margin-bottom: 10px; }
.b-card p { color: rgba(255, 255, 255, 0.62); font-size: 13.5px; line-height: 1.9; }
.b-card .num {
  position: absolute;
  right: 14px; top: 8px;
  font-family: var(--font-display);
  font-size: 44px;
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
}

/* ============================================================
   実績カード
   ============================================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.w-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}
.w-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 20px 44px rgba(15, 15, 17, 0.12);
}
.w-card-img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.w-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.w-card:hover .w-card-img img { transform: scale(1.07); }
.w-card-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 5px 12px;
}
.w-card-body { padding: 22px 24px 26px; }
.w-card-body .place { color: #9a9aa0; font-size: 12px; letter-spacing: 0.1em; margin-bottom: 6px; }
.w-card-body h3 { font-size: 17px; font-weight: 900; line-height: 1.5; margin-bottom: 8px; transition: color 0.3s; }
.w-card:hover .w-card-body h3 { color: var(--red); }
.w-card-body p { color: var(--gray); font-size: 13.5px; line-height: 1.9; }

/* ============================================================
   VOICE（先輩の声）3Dチルトカード
   ============================================================ */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
.v-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px 34px 34px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.35s;
}
.v-card .shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, 0.9) 0%, transparent 55%);
  mix-blend-mode: soft-light;
}
.v-card:hover .shine { opacity: 0.9; }
.v-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
}
.v-card .v-num {
  position: absolute;
  right: 20px; top: 12px;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  color: rgba(215, 34, 42, 0.1);
}
.v-card .v-role {
  display: inline-block;
  background: var(--black);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.v-card .v-quote {
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 900;
  line-height: 1.55;
  margin-bottom: 16px;
}
.v-card .v-quote .q { color: var(--red); font-family: var(--font-display); font-size: 1.4em; line-height: 0; margin-right: 6px; }
.v-card .v-text { color: var(--gray); font-size: 14px; line-height: 2; }
.v-card .v-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.v-card .v-tags span {
  background: var(--paper);
  color: var(--gray);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
}

/* ============================================================
   テーブル（会社概要・募集要項）
   ============================================================ */
.info-table {
  width: 100%;
  border: 1px solid var(--line);
  border-collapse: collapse;
  background: #fff;
  position: relative;
  z-index: 1;
}
.info-table th, .info-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14.5px;
  line-height: 1.9;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th {
  width: 220px;
  background: var(--paper);
  font-weight: 900;
  letter-spacing: 0.08em;
  border-right: 1px solid var(--line);
  position: relative;
}
.info-table th::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  background: var(--red);
}
.info-table td { color: #3c3c40; }
.info-table td .tel-link { color: var(--red); font-weight: 900; }
.table-note { margin-top: 12px; color: #9a9aa0; font-size: 12.5px; }

/* 沿革タイムライン */
.timeline { position: relative; padding-left: 28px; z-index: 1; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), rgba(215, 34, 42, 0.15));
}
.timeline li { position: relative; padding: 0 0 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -28px; top: 8px;
  width: 12px; height: 12px;
  background: var(--red);
  transform: rotate(45deg);
}
.timeline .t-year {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--red);
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.timeline .t-year small { font-family: var(--font-body); font-size: 12px; color: #9a9aa0; margin-left: 10px; font-weight: 700; }
.timeline .t-body { font-weight: 500; margin-top: 2px; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--black);
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0.4;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 10, 12, 0.92) 20%, rgba(215, 34, 42, 0.42) 100%);
}
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) 24px;
}
.cta-title {
  color: #fff;
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
}
.cta-title .accent { color: var(--red); }
.cta-lead { color: rgba(255, 255, 255, 0.75); max-width: 560px; margin-bottom: 36px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cta-tel {
  display: inline-flex;
  flex-direction: column;
  color: #fff;
}
.cta-tel .num {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: 0.06em;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cta-tel .num svg { width: 26px; height: 26px; color: var(--red); }
.cta-tel .note { font-size: 12px; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.08em; }

/* ============================================================
   フッター
   ============================================================ */
.footer { background: var(--black); color: #fff; position: relative; overflow: hidden; }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 88px) 24px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.footer-logo img { height: 30px; width: auto; }
.footer-addr { margin-top: 20px; color: rgba(255, 255, 255, 0.6); font-size: 13.5px; line-height: 2.1; }
.footer-addr .tel {
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
  letter-spacing: 0.06em;
}
.footer-addr .tel:hover { color: var(--red); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; align-content: start; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: color 0.3s, transform 0.3s;
}
.footer-nav a::before { content: ""; width: 12px; height: 1.5px; background: var(--red); }
.footer-nav a:hover { color: #fff; transform: translateX(4px); }
.footer-word {
  position: absolute;
  right: -10px; bottom: 30px;
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 180px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11.5px;
  letter-spacing: 0.1em;
}

/* 固定CTA（モバイル） */
.fixed-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  display: none;
  grid-template-columns: 1fr 1fr;
  transform: translateY(110%);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}
.fixed-cta.is-shown { transform: translateY(0); }
.fixed-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 8px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
}
.fixed-cta .f-tel { background: var(--black); }
.fixed-cta .f-recruit { background: var(--red); }

/* ============================================================
   フォーム
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 72px);
  position: relative;
  z-index: 1;
}
.c-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.c-info-item .ico {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-info-item .ico svg { width: 20px; height: 20px; }
.c-info-item h3 { font-size: 13px; font-weight: 900; letter-spacing: 0.14em; margin-bottom: 4px; }
.c-info-item p { color: var(--gray); font-size: 14px; }
.c-info-item .big-tel { font-family: var(--font-display); font-size: 30px; color: var(--red); letter-spacing: 0.04em; line-height: 1.2; }
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}
.map-link:hover { text-decoration: underline; }

.form-grid { display: grid; gap: 22px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.form-field label .req {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  border: 1px solid #d5d3cd;
  background: #fff;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 34, 42, 0.12);
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-note { font-size: 12.5px; color: #9a9aa0; }
.form-msg {
  display: none;
  padding: 16px 20px;
  background: rgba(215, 34, 42, 0.08);
  border-left: 4px solid var(--red);
  font-weight: 700;
  font-size: 14px;
}
.form-msg.is-shown { display: block; }
/* ハニーポット（スパム対策・非表示） */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ============================================================
   SNS（Instagram）
   ============================================================ */
.sns-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.insta-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.insta-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.4); }
.insta-card .ig-ico {
  width: 52px; height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.insta-card .ig-ico svg { width: 26px; height: 26px; }
.insta-card .ig-name { color: #fff; font-weight: 900; font-size: 17px; letter-spacing: 0.06em; line-height: 1.4; }
.insta-card .ig-id { color: rgba(255, 255, 255, 0.55); font-size: 13px; }
.insta-card .ig-follow {
  margin-left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 9px 18px;
  white-space: nowrap;
  transition: background 0.3s;
}
.insta-card:hover .ig-follow { background: var(--red-dark); }
.insta-embed-frame {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.insta-embed-frame::before {
  content: "";
  position: absolute;
  inset: -10px 10px auto -10px;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 10px, transparent 10px 20px);
}
.insta-embed-frame iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}
.insta-fallback {
  display: block;
  text-align: center;
  padding: 10px;
  background: #fff;
  color: var(--red);
  font-size: 12.5px;
  font-weight: 700;
  border-top: 1px solid var(--line);
}
.insta-fallback:hover { text-decoration: underline; }

/* フッターSNS */
.footer-sns { display: flex; gap: 12px; margin-top: 18px; }
.footer-sns a {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.footer-sns a:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  transform: translateY(-3px);
}
.footer-sns svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .sns-grid { grid-template-columns: 1fr; }
  .insta-card { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}

/* ============================================================
   その他ユーティリティ
   ============================================================ */
.mt-40 { margin-top: 40px; }
.ta-center { text-align: center; }
.gallery-note { text-align: center; color: #9a9aa0; font-size: 12.5px; margin-top: 14px; letter-spacing: 0.06em; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1024px) {
  .gnav { display: none; }
  .header .header-cta { display: none; }
  .menu-btn { display: flex; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  :root { --header-h: 64px; }
  .header-logo img { height: 22px; }
  .split { grid-template-columns: 1fr; }
  .split.is-flip .split-img { order: -1; }
  .split-img .caption-box { right: 8px; bottom: -16px; padding: 14px 18px; }
  .split-img .caption-box .big { font-size: 19px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .voice-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .info-table th { width: 120px; padding: 16px 14px; font-size: 13px; }
  .info-table td { padding: 16px 14px; font-size: 13.5px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .fixed-cta { display: grid; }
  .footer-bottom { padding-bottom: 78px; }
  .hero-scroll { display: none; }
  .hero-word { display: none; }
  .hero-btns .btn { width: 100%; }
  .cta-btns { flex-direction: column; align-items: flex-start; }
}

/* モーション低減設定を尊重 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .clip-line > span, .img-wipe::after { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
