/* ============================================================
   TSHD採用LP 案A v2「エレクトリック・ポップ（ブラッシュアップ版）」
   白基調 × エレクトリックブルー ＋ ライムはアクセント限定
   v1からの変更（先方フィードバック反映）：
   ①「安っぽい」解消 … ハードシャドウ→多層ソフトシャドウ、
     太ボーダー→細罫線、装飾バッジを1箇所に厳選、余白を拡大
   ② 写真多め … ヒーローに写真コラージュ、働く環境に写真グリッド
   ③ 黒背景の圧迫感排除 … マーキー帯を黒地→白地×青文字に変更
   ④ ネオン文字禁止 … 暗い地にライム文字を置かない（フッター含む）
   モバイルファースト（375px〜1440px超対応）
   ============================================================ */

/* ---------- デザイントークン ---------- */
:root {
  --color-white: #FFFFFF;
  --color-bg-soft: #F5F7FF;   /* うっすら青みの背景 */
  --color-blue: #0038FF;      /* エレクトリックブルー（白地で 7:1 相当・AA可） */
  --color-blue-dark: #0029BD; /* ホバー等の濃い青 */
  --color-lime: #D8FF3E;      /* ライム（面・下線・CTAのみ。この上の文字は必ず濃紺墨） */
  --color-ink: #0B0E1A;       /* 濃紺墨（本文・見出し） */
  --color-line: rgba(11, 14, 26, 0.12);  /* 細罫線 */
  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Archivo Black", "Arial Black", sans-serif;
  /* 多層ソフトシャドウ（v1のハードシャドウを置き換え、上質さを出す） */
  --shadow-soft: 0 8px 24px rgba(0, 56, 255, 0.08), 0 2px 6px rgba(11, 14, 26, 0.06);
  --shadow-lift: 0 18px 40px rgba(0, 56, 255, 0.16), 0 4px 12px rgba(11, 14, 26, 0.08);
  --radius-card: 20px;
  --radius-pill: 999px;
  --header-height: 68px;
  --section-pad: clamp(72px, 11vw, 136px);
}

/* ---------- リセット・ベース ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* 固定ヘッダー分だけアンカー着地位置を下げる */
  scroll-padding-top: calc(var(--header-height) + 16px);
  /* iOS Safariはbody側のoverflow-x:hiddenだけでは横パンを防げないため、html側でも遮断する */
  overflow-x: clip;
}

body {
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* マーキーのはみ出し対策 */
}

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

ul,
ol {
  list-style: none;
}

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

/* キーボード操作時のフォーカスリングをはっきり見せる */
:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- スキップリンク ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 20px;
  background: var(--color-ink);
  color: var(--color-white);
  border-radius: 0 0 8px 8px;
  font-weight: 700;
}

.skip-link:focus-visible {
  top: 0;
}

/* ---------- 汎用ボタン ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-pill);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}

/* ホバーでふわっと持ち上がる（v1の「影が伸びる」より上品に） */
.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 17px 40px;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: var(--color-blue-dark);
}

/* ライム地には濃紺墨文字（白文字はコントラスト不足のため禁止） */
.btn--accent {
  background: var(--color-lime);
  color: var(--color-ink);
  padding: 17px 40px;
  box-shadow: var(--shadow-soft);
}

.btn--header {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 10px 24px;
  font-size: 0.875rem;
  box-shadow: var(--shadow-soft);
}

.btn--header:hover {
  background: var(--color-blue-dark);
}

.btn--card {
  background: var(--color-white);
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
  padding: 12px 36px;
}

.btn--card:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

.btn--entry {
  background: var(--color-lime);
  color: var(--color-ink);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  padding: 22px 64px;
  box-shadow: 0 12px 32px rgba(11, 14, 26, 0.25);
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}

.site-logo__main {
  font-family: var(--font-en);
  font-size: 1.5rem;
  color: var(--color-blue);
  letter-spacing: 0.02em;
}

.site-logo__sub {
  font-family: var(--font-en);
  font-size: 0.625rem;
  color: var(--color-blue);
  letter-spacing: 0.14em;
  padding: 3px 0;
  border-bottom: 2px solid var(--color-lime); /* ライムは下線アクセントとして使用 */
}

/* ナビ：スマホでは非表示、タブレット以上で表示（1ページLPのため許容） */
.global-nav {
  display: none;
}

.global-nav__list {
  display: flex;
  gap: 32px;
}

.global-nav__list a {
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 8px 2px;
  position: relative;
}

/* ホバーで下線がにゅっと伸びる */
.global-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 3px;
  background: var(--color-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

@media (min-width: 900px) {
  .global-nav {
    display: block;
  }
}

/* ---------- ヒーロー（v2：テキスト×写真コラージュの2カラム） ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-height) + clamp(48px, 9vw, 96px)) 20px clamp(64px, 10vw, 120px);
  background:
    radial-gradient(circle at 88% 10%, rgba(216, 255, 62, 0.30) 0%, rgba(216, 255, 62, 0) 42%),
    radial-gradient(circle at 6% 90%, rgba(0, 56, 255, 0.08) 0%, rgba(0, 56, 255, 0) 45%),
    var(--color-bg-soft);
  overflow: hidden;
}

/* 3D風パーティクル背景（コンテンツの下層に敷く） */
.hero-bg3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* reduced-motion時は背景装飾ごと非表示 */
@media (prefers-reduced-motion: reduce) {
  .hero-bg3d {
    display: none;
  }
}

.hero__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero__inner {
    grid-template-columns: 1.1fr 1fr;
  }
}

.hero__eyebrow {
  font-family: var(--font-en);
  font-size: clamp(0.75rem, 1.5vw, 0.9375rem);
  color: var(--color-blue);
  letter-spacing: 0.16em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* eyebrowの前に短い罫線を添えて編集的な品を出す */
.hero__eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--color-blue);
}

/* 大型タイポ（v1よりわずかに抑えて品位を確保） */
.hero__title {
  font-weight: 900;
  font-size: clamp(2.375rem, 6.5vw, 5.25rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.hero__title-line {
  display: block;
  white-space: nowrap; /* フレーズの途中で折り返さない（「つくる 側」のような語中改行を防ぐ） */
}

/* 2カラムになる中間幅では列が狭いため、はみ出さないよう見出しを一段絞る */
@media (min-width: 1000px) and (max-width: 1220px) {
  .hero__title {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
  }
}

.hero__title-line--em {
  color: var(--color-blue);
  /* ライムのマーカー風下地（文字は青なので白・ライムどちらの下地でもAA確保） */
  background: linear-gradient(transparent 66%, var(--color-lime) 66%, var(--color-lime) 94%, transparent 94%);
  width: fit-content;
  padding-right: 0.1em;
}

.hero__lead {
  margin-top: 28px;
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  font-weight: 500;
  max-width: 34em;
}

.hero__cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* 写真コラージュ（メイン大判＋サブ2枚を重ねる） */
.hero__visual {
  position: relative;
  padding-bottom: 48px; /* サブ写真のはみ出し分の余白 */
}

.hero__photo {
  border-radius: var(--radius-card);
  object-fit: cover;
  box-shadow: var(--shadow-lift);
}

.hero__photo--main {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.hero__photo--sub1,
.hero__photo--sub2 {
  position: absolute;
  width: 38%;
  aspect-ratio: 4 / 3;
  border: 4px solid var(--color-white); /* 写真の重なりを白フチで区切る */
}

.hero__photo--sub1 {
  left: -4%;
  bottom: 0;
}

.hero__photo--sub2 {
  right: -3%;
  top: -6%;
}

/* スマホでは写真を画面内に収める（左右のはみ出しによる横ズレ防止） */
@media (max-width: 767px) {
  .hero__photo--sub1 { left: 0; }
  .hero__photo--sub2 { right: 0; }
}

/* 写真上のチップ（未経験歓迎／20代活躍中） */
.hero__chips {
  position: absolute;
  left: 6%;
  top: 6%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}

.chip {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-ink);
  box-shadow: var(--shadow-soft);
}

.chip--blue {
  background: var(--color-blue);
  color: var(--color-white);
}

/* ---------- 英字マーキー（v2：白地×青文字。黒帯の圧迫感を排除） ---------- */
.marquee {
  background: var(--color-white);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  overflow: hidden;
  padding: 16px 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}

.marquee__text {
  font-family: var(--font-en);
  font-size: clamp(1.125rem, 2.5vw, 1.625rem);
  color: var(--color-blue);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* 同一テキスト2連結なので半分でループが繋がる */
}

/* ---------- セクション共通 ---------- */
.section {
  padding: var(--section-pad) 20px;
}

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section__eyebrow {
  font-family: var(--font-en);
  font-size: clamp(0.75rem, 1.5vw, 0.9375rem);
  color: var(--color-blue);
  letter-spacing: 0.16em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section__eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--color-blue);
}

.section__eyebrow--onblue {
  color: var(--color-white);
}

.section__eyebrow--onblue::before {
  background: var(--color-lime);
}

.section__title {
  font-size: clamp(1.75rem, 4.2vw, 2.875rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin-bottom: clamp(40px, 6vw, 72px);
  position: relative;
  padding-bottom: 20px;
}

/* 見出し下のブルー＋ライムの2段バー（v1の意匠を細くして継承） */
.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 76px;
  height: 5px;
  border-radius: 3px;
  background: var(--color-blue);
  box-shadow: 84px 0 0 var(--color-lime);
}

.section__title--onblue {
  color: var(--color-white);
}

.section__title--onblue::after {
  background: var(--color-lime);
  box-shadow: 84px 0 0 var(--color-white);
}

/* ---------- 2. 数字で見るTSHD ---------- */
.section--numbers {
  background: var(--color-white);
}

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

@media (min-width: 900px) {
  .numbers-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.numbers-note-top {
  font-size: 0.8125rem;
  font-weight: 500;
  margin: -28px 0 28px;
}

.number-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 30px 16px;
  text-align: center;
}

/* アクセントカードは青（v1のライム面→青面＋白文字で引き締める） */
.number-card--accent {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
}

.number-card__label {
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.number-card__value {
  font-family: var(--font-en);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--color-blue);
  line-height: 1.1;
}

.number-card--accent .number-card__value {
  color: var(--color-white);
}

/* 文字系の値（最長1年など）も数値と同じサイズに統一（先方要望 2026-10-02） */
.number-card__value--text {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.number-card__unit {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: 0.55em;
  margin-left: 2px;
}

.number-card__note {
  margin-top: 10px;
  font-size: 0.6875rem;
  line-height: 1.6;
}

/* ---------- 3. 事業内容（斜めの青帯） ---------- */
.section--business {
  background: linear-gradient(135deg, var(--color-blue) 0%, #0030DB 100%);
  color: var(--color-white);
}

/* 斜めのセクション切り替え */
.section--diagonal {
  clip-path: polygon(0 0, 100% clamp(24px, 4vw, 56px), 100% 100%, 0 calc(100% - clamp(24px, 4vw, 56px)));
  padding-top: calc(var(--section-pad) + clamp(24px, 4vw, 56px));
  padding-bottom: calc(var(--section-pad) + clamp(24px, 4vw, 56px));
}

.business-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

/* 4本柱になったため、幅に応じて2列→4列に流し込む */
@media (min-width: 640px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .business-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.business-card {
  background: var(--color-white);
  color: var(--color-ink);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 36px rgba(0, 15, 80, 0.30);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.business-card:hover {
  transform: translateY(-6px);
}

.business-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.business-card__title {
  font-size: 1.25rem;
  font-weight: 900;
  padding: 22px 24px 8px;
  position: relative;
}

/* タイトル左のライムアクセント（小さく効かせる） */
.business-card__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  width: 6px;
  height: 22px;
  background: var(--color-lime);
  border-radius: 0 3px 3px 0;
}

.business-card__text {
  font-size: 0.9375rem;
  padding: 0 24px 28px;
}

/* ---------- 4. 働く環境・カルチャー ---------- */
.section--culture {
  background: var(--color-bg-soft);
}

.culture-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .culture-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

.culture-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 30px 26px 30px 92px;
  position: relative;
}

.culture-card__num {
  position: absolute;
  top: 26px;
  left: 24px;
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--color-white);
  background: var(--color-blue);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}

.culture-card__title {
  font-size: 1.1875rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.culture-card__text {
  font-size: 0.9375rem;
}

/* 写真グリッド（v2追加） */
.culture-photos {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 768px) {
  .culture-photos {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.culture-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

/* 偶数枚目を少し下げてリズムを付ける（PGのみ） */
@media (min-width: 768px) {
  .culture-photos li:nth-child(even) {
    transform: translateY(18px);
  }
}

/* ---------- 4.5 代表メッセージ ---------- */
.section--message {
  background: var(--color-white);
}

.message-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 900px) {
  .message-grid {
    grid-template-columns: 2fr 3fr;
  }
}

.message-photo {
  margin: 0;
}

.message-photo img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
}

.message-copy {
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 20px;
  /* ライムのマーカー風下地（ヒーローと同じ意匠） */
  background: linear-gradient(transparent 70%, var(--color-lime) 70%, var(--color-lime) 96%, transparent 96%);
  width: fit-content;
}

.message-text {
  font-size: 0.9875rem;
  max-width: 38em;
}

.message-text + .message-text {
  margin-top: 14px;
}

/* 挨拶文中の取り組み4項目 */
.message-list {
  margin: 18px 0;
  display: grid;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.message-list li {
  position: relative;
  padding-left: 22px;
}

.message-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-lime);
}

.message-sign {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.message-sign__role {
  font-size: 0.8125rem;
  color: var(--color-blue);
  font-weight: 700;
}

/* 署名は現行サイトと同じ筆文字フォント（Yuji Mai） */
.message-sign__name {
  font-family: "Yuji Mai", "Zen Kaku Gothic New", serif;
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  font-weight: 400; /* 筆文字フォントは太字化すると滲むため標準ウェイトで使う */
  line-height: 1.3;
}

/* ---------- 5. 募集職種 ---------- */
.section--jobs {
  background: var(--color-white);
}

.jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* カードを追加してもこのグリッドが自動で受ける（職種追加拡張用） */
@media (min-width: 768px) {
  .jobs-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
  }
}

.job-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.job-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.job-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.job-card__body {
  padding: 28px 28px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.job-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* タグ（v1の回転を廃止し、すっきりしたピルに） */
.tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-lime);
  color: var(--color-ink); /* ライム地×濃紺墨 */
}

.tag--blue {
  background: var(--color-blue);
  color: var(--color-white);
}

.job-card__title {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 900;
}

.job-card__text {
  font-size: 0.9375rem;
}

/* 仕事内容／こんな人におすすめ（担当者要望で情報量を拡充） */
.job-card__detail {
  width: 100%;
  flex: 1;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  background: var(--color-bg-soft);
  border-radius: 14px;
}

.job-card__subhead {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-card__subhead::before {
  content: "";
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-lime);
}

.job-card__subhead + .job-card__list {
  margin-bottom: 10px;
}

.job-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.875rem;
}

.job-card__list li {
  position: relative;
  padding-left: 18px;
}

.job-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-blue);
  font-weight: 700;
}

.job-card__list--reco li::before {
  content: "♥";
  font-size: 0.75rem;
}

/* ---------- 6. 募集要項 ---------- */
.section--requirements {
  background: var(--color-bg-soft);
}

.requirements-note {
  font-size: 0.8125rem;
  font-weight: 500;
  margin: -28px 0 28px;
}

.requirements-table-wrap,
.company-table-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.requirements-table,
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.requirements-table th,
.company-table th {
  text-align: left;
  font-weight: 700;
  background: var(--color-bg-soft);
  padding: 18px;
  width: 32%;
  min-width: 7em;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}

.requirements-table td,
.company-table td {
  padding: 18px;
  border-bottom: 1px solid var(--color-line);
}

.requirements-table tr:last-child th,
.requirements-table tr:last-child td,
.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

@media (min-width: 768px) {
  .requirements-table th,
  .company-table th {
    width: 22%;
    padding: 20px 28px;
  }
  .requirements-table td,
  .company-table td {
    padding: 20px 28px;
  }
}

/* 選考フロー（4ステップ） */
.flow-title {
  font-size: 1.25rem;
  font-weight: 900;
  margin: clamp(44px, 6vw, 64px) 0 26px;
}

.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .flow {
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
  }
}

.flow__step {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 20px 16px 20px 62px;
  font-weight: 700;
  font-size: 0.9375rem;
}

.flow__step--goal {
  background: var(--color-lime); /* ゴールはライムで強調（文字は濃紺墨） */
  border-color: var(--color-lime);
}

.flow__num {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  font-family: var(--font-en);
  font-size: 0.9375rem;
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}

/* ステップ間の矢印（モバイル＝下向き / PC＝右向き） */
.flow__step:not(:last-child)::after {
  content: "▼";
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  color: var(--color-blue);
  font-size: 0.875rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .flow__step:not(:last-child)::after {
    content: "▶";
    left: auto;
    right: -28px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* ---------- 7. エントリーCTA ---------- */
.section--entry {
  background: linear-gradient(135deg, var(--color-blue) 0%, #0030DB 100%);
  clip-path: polygon(0 clamp(24px, 4vw, 56px), 100% 0, 100% 100%, 0 100%); /* 逆方向の斜め切り替え */
  padding-top: calc(var(--section-pad) + clamp(24px, 4vw, 56px));
}

.section__inner--entry {
  text-align: center;
}

.section__inner--entry .section__eyebrow {
  justify-content: center;
  margin-bottom: 18px;
}

.entry-copy {
  color: var(--color-white);
  font-size: clamp(1.625rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: clamp(36px, 5vw, 52px);
}

/* ---------- 8. 会社概要 ---------- */
.section--company {
  background: var(--color-white);
}

/* ---------- 9. フッター ---------- */
.site-footer {
  background: var(--color-ink);
  color: var(--color-white);
  padding: 56px 20px 36px;
  text-align: center;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

/* ロゴは白（暗い地にライム文字は置かない） */
.site-footer__logo {
  font-family: var(--font-en);
  font-size: 2rem;
  color: var(--color-white);
  line-height: 1;
}

/* ヘッダーの公式SNSアイコン（ナビとエントリーの間。PC表示のみ） */
.site-header__sns {
  display: none;
}

@media (min-width: 900px) {
  .site-header__sns {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto; /* ナビとの間を広げ、エントリーボタン側に寄せる */
  }
}

/* ブランドカラーのアイコンを薄灰の円バッジに載せて視認性を上げる */
.site-header__sns a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--color-ink); /* TikTokは公式どおり黒 */
  background: var(--color-bg-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-header__sns a:hover,
.site-header__sns a:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* 公式SNSアイコン（Instagram / TikTok） */
.site-footer__sns {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 4px 0;
}

.site-footer__sns a {
  display: grid;
  place-items: center;
  width: 44px;  /* タップしやすい44pxターゲットを確保 */
  height: 44px;
  border-radius: 50%;
  color: var(--color-white);
  opacity: 0.85;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.site-footer__sns a:hover,
.site-footer__sns a:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.site-footer__link {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0.9;
}

.site-footer__link:hover {
  opacity: 1;
}

.site-footer__note {
  font-size: 0.75rem;
  opacity: 0.7;
}

.site-footer__copy {
  font-size: 0.8125rem;
  opacity: 0.85;
}

/* ---------- スクロールreveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* グループ内で少しずつ時間差をつける */
.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- ユーティリティ ---------- */
.sp-only {
  display: inline;
}

@media (min-width: 768px) {
  .sp-only {
    display: none;
  }
}

/* ============================================================
   v2.1 演出パック（120%版）
   html要素に .anim が付く（=reduced-motionでない）ときだけ
   「初期非表示→登場」の演出が有効になる。付かない場合は最初から
   すべて表示されるため、動きのない環境でも情報は欠けない。
   ============================================================ */

/* ---------- スクロール進捗バー ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 150;
  background: linear-gradient(90deg, var(--color-blue), var(--color-lime));
  pointer-events: none;
}

/* ---------- ヒーロー登場シークエンス ---------- */
/* 見出しは行ごとのマスクから下→上に現れる */
.hero__title-line {
  overflow: hidden;
}

.hero__title-inner {
  display: block;
}

html.anim .hero__title-inner {
  transform: translateY(110%);
  transition: transform 0.8s cubic-bezier(0.22, 0.9, 0.28, 1);
}

html.anim .hero__title-line:nth-child(1) .hero__title-inner { transition-delay: 0.2s; }
html.anim .hero__title-line:nth-child(2) .hero__title-inner { transition-delay: 0.38s; }

html.anim.is-loaded .hero__title-inner {
  transform: translateY(0);
}

/* ライムのマーカーが左から「引かれる」 */
html.anim .hero__title-line--em {
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.7s cubic-bezier(0.65, 0, 0.35, 1) 1.0s;
}

html.anim.is-loaded .hero__title-line--em {
  background-size: 100% 100%;
}

/* まわりのテキスト・ボタンは時間差でふわっと */
html.anim .hero__eyebrow,
html.anim .hero__lead,
html.anim .hero__cta {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.anim .hero__eyebrow { transition-delay: 0.1s; }
html.anim .hero__lead    { transition-delay: 0.75s; }
html.anim .hero__cta     { transition-delay: 0.9s; }

html.anim.is-loaded .hero__eyebrow,
html.anim.is-loaded .hero__lead,
html.anim.is-loaded .hero__cta {
  opacity: 1;
  transform: translateY(0);
}

/* 写真コラージュは奥→手前の順に着地する */
html.anim .hero__photo--main {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition: opacity 0.8s ease 0.35s, transform 0.8s cubic-bezier(0.22, 0.9, 0.28, 1) 0.35s;
}

html.anim .hero__photo--sub2 {
  opacity: 0;
  transform: translate(16px, -16px) rotate(3deg);
  transition: opacity 0.7s ease 0.7s, transform 0.7s cubic-bezier(0.22, 0.9, 0.28, 1) 0.7s;
}

html.anim .hero__photo--sub1 {
  opacity: 0;
  transform: translate(-16px, 20px) rotate(-3deg);
  transition: opacity 0.7s ease 0.85s, transform 0.7s cubic-bezier(0.22, 0.9, 0.28, 1) 0.85s;
}

html.anim .hero__chips {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease 1.05s, transform 0.6s ease 1.05s;
}

html.anim.is-loaded .hero__photo--main,
html.anim.is-loaded .hero__photo--sub1,
html.anim.is-loaded .hero__photo--sub2,
html.anim.is-loaded .hero__chips {
  opacity: 1;
  transform: none;
}

/* ---------- ヒーロー写真のマウス追従パララックス ---------- */
.hero__visual {
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 0.3s ease-out;
  will-change: transform;
}

/* ---------- 見出し下線のペイントアニメ ---------- */
html.anim .section__title::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.15s;
}

html.anim .section__title.is-inview::after {
  transform: scaleX(1);
}

/* ---------- 追従エントリーボタン ---------- */
.float-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 32px rgba(0, 56, 255, 0.35);
  opacity: 0;
  transform: translateY(140%);
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.3, 1.35), opacity 0.3s ease, background-color 0.25s ease;
}

.float-cta.is-shown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.float-cta:hover {
  background: var(--color-blue-dark);
}

.float-cta__arrow {
  transition: transform 0.25s ease;
}

.float-cta:hover .float-cta__arrow {
  transform: translateX(4px);
}

/* 表示中は外側にリングが脈打つ（目線を引く） */
html.anim .float-cta.is-shown::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--color-blue);
  animation: cta-ping 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes cta-ping {
  0%        { opacity: 0.7; transform: scale(1); }
  70%, 100% { opacity: 0;   transform: scale(1.3); }
}

/* ---------- エントリーCTAの浮遊シェイプ＆シャイン ---------- */
.section--entry {
  position: relative;
  /* 流れる背景文字と浮遊シェイプのはみ出しを遮断する。
     clip-pathは描画を切るだけでレイアウト幅（scrollWidth）は切らないため、
     これが無いとスマホでページが横に広がり「右にずれる」原因になる */
  overflow: hidden;
}

.entry-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.entry-orbs span:nth-child(1) {
  width: 220px;
  height: 220px;
  top: -30px;
  left: 6%;
  background: rgba(216, 255, 62, 0.18);
  animation: orb-float 9s ease-in-out infinite alternate;
}

.entry-orbs span:nth-child(2) {
  width: 140px;
  height: 140px;
  right: 10%;
  bottom: 12%;
  background: rgba(255, 255, 255, 0.14);
  animation: orb-float 12s ease-in-out infinite alternate-reverse;
}

.entry-orbs span:nth-child(3) {
  width: 90px;
  height: 90px;
  top: 34%;
  right: 32%;
  background: rgba(255, 255, 255, 0.10);
  animation: orb-float 7s ease-in-out infinite alternate;
}

@keyframes orb-float {
  from { transform: translateY(-14px); }
  to   { transform: translateY(18px); }
}

/* エントリーボタンに数秒おきに光が走る */
.btn--entry {
  position: relative;
  overflow: hidden;
}

html.anim .btn--entry::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: skewX(-18deg);
  animation: btn-shine 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes btn-shine {
  0%        { left: -60%; }
  45%, 100% { left: 130%; }
}

/* ---------- 職種カード：写真ズーム＆矢印 ---------- */
.job-card__img {
  transition: transform 0.6s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.job-card:hover .job-card__img {
  transform: scale(1.05);
}

.btn--card::after {
  content: "→";
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.25s ease;
}

.btn--card:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   v2.2 演出パック（本気版）
   ============================================================ */

/* ---------- 見出しの1文字ステップイン ---------- */
html.anim .section__title .tchar {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(5deg);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 0.9, 0.28, 1);
  transition-delay: calc(var(--ci) * 45ms);
}

html.anim .section__title.is-inview .tchar {
  opacity: 1;
  transform: none;
}

/* 下線は文字が出そろった後に引かれる */
html.anim .section__title::after {
  transition-delay: 0.55s;
}

/* ---------- ヒーローのスクロールパララックス補助 ---------- */
/* マウス追従（--px/--py）とスクロール（--sy）を合成する */
.hero__visual {
  transform: translate3d(var(--px, 0px), calc(var(--py, 0px) + var(--sy, 0px)), 0);
}

/* サブ写真は登場後もずっと微かに浮遊する */
html.anim.is-loaded .hero__photo--sub1 {
  animation: photo-bob 7s ease-in-out 2s infinite alternate;
}

html.anim.is-loaded .hero__photo--sub2 {
  animation: photo-bob 8.5s ease-in-out 2.4s infinite alternate-reverse;
}

@keyframes photo-bob {
  from { transform: translateY(0); }
  to   { transform: translateY(-9px); }
}

/* ---------- スクロール誘導（SCROLLの線が流れ落ちる） ---------- */
.scroll-cue {
  position: absolute;
  left: 24px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  color: var(--color-blue);
  pointer-events: none;
}

.scroll-cue__line {
  width: 2px;
  height: 44px;
  background: rgba(0, 56, 255, 0.18);
  position: relative;
  overflow: hidden;
}

html.anim .scroll-cue__line::before {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-blue);
  animation: cue-drop 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes cue-drop {
  0%   { top: -100%; }
  55%  { top: 0; }
  100% { top: 100%; }
}

/* ---------- マーキーの「しなり」＆スマートヘッダー ---------- */
.marquee {
  transition: transform 0.4s ease;
}

.site-header {
  transition: transform 0.35s ease, background-color 0.25s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

/* 職種カードの3Dチルト＆グレアは先方要望（2026-09-29）で削除
   （ホバーの浮き上がり＋写真ズームは既存定義のまま継続） */

/* ---------- エントリー背景の流れるアウトライン文字 ---------- */
.entry-bgtext {
  position: absolute;
  top: 7%;
  left: 0;
  display: flex;
  width: max-content;
  font-family: var(--font-en);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

html.anim .entry-bgtext {
  animation: bgtext-flow 26s linear infinite;
}

@keyframes bgtext-flow {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* 同一テキスト2連結なので半分でループが繋がる */
}

.section__inner--entry {
  position: relative; /* 背景文字より手前に置く */
}

/* ---------- 働く環境の写真：下からワイプで現れる ---------- */
/* 偶数枚目を下げるリズム（li側のtransform）を保つため、ワイプはimgに掛ける */
html.anim .culture-photos .reveal img {
  clip-path: inset(100% 0 0 0 round 16px);
  transition: clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  transition-delay: inherit;
}

html.anim .culture-photos .reveal.is-visible img {
  clip-path: inset(0 0 0 0 round 16px);
}

/* ---------- オープニング演出（ワードフラッシュ→幕が上がる） ---------- */
/* 動きなし環境（.animなし）ではオープニング自体を出さない */
html:not(.anim) .intro {
  display: none;
}

/* 演出中はスクロールを止める */
html.intro-lock {
  overflow: hidden;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--color-blue) 0%, #0030DB 100%);
  animation: intro-up 0.55s cubic-bezier(0.65, 0, 0.35, 1) 1.55s forwards;
}

/* 幕の下端にライムのライン（上がるときのアクセント） */
.intro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--color-lime);
}

.intro__words {
  position: relative;
  width: 100%;
  height: 1.4em;
  font-family: var(--font-en);
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.4;
  color: var(--color-white);
  text-align: center;
}

.intro__words span {
  position: absolute;
  inset: 0;
  opacity: 0;
}

/* 英単語が0.22秒間隔で点滅していく */
.intro__words span:nth-child(1) { animation: intro-word 0.26s linear 0.10s forwards; }
.intro__words span:nth-child(2) { animation: intro-word 0.26s linear 0.32s forwards; }
.intro__words span:nth-child(3) { animation: intro-word 0.26s linear 0.54s forwards; }
.intro__words span:nth-child(4) { animation: intro-word 0.26s linear 0.76s forwards; }

@keyframes intro-word {
  0%, 100% { opacity: 0; }
  12%, 88% { opacity: 1; }
}

/* 最後の日本語コピーは現れて留まり、幕と一緒に上がっていく */
.intro__words-jp {
  font-family: var(--font-jp);
  font-weight: 900;
  animation: intro-word-last 0.45s cubic-bezier(0.22, 0.9, 0.28, 1) 1.02s forwards !important;
}

@keyframes intro-word-last {
  from { opacity: 0; transform: translateY(0.35em); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes intro-up {
  to { transform: translateY(-101%); }
}

/* ---------- カスタムカーソル（ドット＋追従リング） ---------- */
/* JSが有効化したときだけ .has-cursor が付き、標準カーソルを隠す */
html.has-cursor,
html.has-cursor * {
  cursor: none !important;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  border-radius: 50%;
  pointer-events: none;
  /* differenceで下の色を反転させる＝白地でも青地でも必ず見える */
  mix-blend-mode: difference;
  opacity: 1;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: #FFFFFF;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1.5px solid #FFFFFF;
  background: transparent;
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, background-color 0.25s ease, opacity 0.2s ease;
}

/* リンク・ボタンの上：リングが拡大して白く満ちる（下の色が反転する） */
html.cursor-hover .cursor-ring {
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  background: #FFFFFF;
}

html.cursor-hover .cursor-dot {
  transform: scale(0);
}

/* クリック中はキュッと縮む */
html.cursor-down .cursor-ring {
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
}

/* 画面外に出たら消える */
html.cursor-out .cursor-dot,
html.cursor-out .cursor-ring {
  opacity: 0;
}

/* ---------- reduced-motion：すべての動きを止める ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .marquee__track {
    animation: none !important; /* マーキー停止 */
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
