/* ============================================================
   style.css — あいネットホール 採用LP
   DESIGN_RULES.md 準拠
   ============================================================ */


/* ============================================================
   1. CSS カスタムプロパティ（デザイントークン）
   ============================================================ */
:root {
  /* --------------------------------------------------
     カラー
  -------------------------------------------------- */

  /* ブランドカラー */
  --color-primary:       #009471;
  --color-primary-dark:  #006e54;
  --color-primary-light: #e5f3f0;   /* section--bg-green-light */

  /* アクセント */
  --color-accent:        #ff502a;
  --color-accent-dark:   #d93a16;

  /* テキスト（真っ黒は使わない） */
  --color-text:          #2a2a2a;
  --color-text-sub:      #5c5857;
  --color-text-light:    #888888;
  --color-text-invert:   #ffffff;

  /* 背景 */
  --color-bg-white:      #ffffff;
  --color-bg-gray:       #f8f6f3;   /* ウォームグレー */
  --color-bg-primary:    #00a97a;   /* CTAセクション背景 */

  /* ボーダー */
  --color-border:        #e4e0db;
  --color-border-light:  #f0ede8;

  /* KVオーバーレイ（暗すぎない） */
  --color-overlay:       rgba(0, 0, 0, 0.30);

  /* --------------------------------------------------
     タイポグラフィ
  -------------------------------------------------- */
  --font-sans:   "Noto Sans JP", "游ゴシック", YuGothic, sans-serif;

  /* フォントサイズ */
  --text-xs:     12px;
  --text-sm:     13px;
  --text-base:   15px;
  --text-md:     16px;
  --text-lg:     20px;
  --text-xl:     24px;
  --text-2xl:    32px;
  --text-3xl:    40px;
  --text-4xl:    48px;
  --text-kv:     40px;   /* KVキャッチ */

  /* 行間 */
  --leading-tight:  1.4;
  --leading-normal: 1.7;
  --leading-loose:  1.95;

  /* レタースペーシング */
  --tracking-normal: 0.04em;
  --tracking-wide:   0.10em;
  --tracking-wider:  0.14em;

  /* --------------------------------------------------
     スペーシング
  -------------------------------------------------- */
  --section-py:       100px;   /* セクション上下パディング */
  --section-py-large: 140px;   /* KV近辺など余裕のあるセクション */
  --section-py-small:  64px;   /* フッター等コンパクトなセクション */

  --container-max:  1100px;
  --container-px:    40px;

  /* --------------------------------------------------
     デコレーション
  -------------------------------------------------- */
  --accent-line-color:  var(--color-primary);
  --accent-line-w:      40px;
  --accent-line-h:      2px;

  /* --------------------------------------------------
     ボーダーラジウス
  -------------------------------------------------- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:  16px;
  --radius-full: 9999px;

  /* --------------------------------------------------
     シャドウ
  -------------------------------------------------- */
  --shadow-sm:  0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.12);

  /* --------------------------------------------------
     トランジション
  -------------------------------------------------- */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --duration:   0.3s;

  /* --------------------------------------------------
     レイアウト
  -------------------------------------------------- */
  --header-h: 68px;
}


/* ============================================================
   2. リセット CSS
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-loose);
  color: var(--color-text);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--leading-tight);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* アクセシビリティ：フォーカスリング */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}


/* ============================================================
   3. レイアウト基礎
   ============================================================ */

/* コンテンツ幅制御 */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* セクション共通パディング */
.section--bg-white,
.section--bg-gray,
.section--bg-green-light,
.section--bg-primary,
.section--bg-dark-green {
  padding-block: var(--section-py);
}

/* 背景色バリエーション */
.section--bg-white       { background-color: var(--color-bg-white); }
.section--bg-gray        { background-color: var(--color-bg-gray); }
.section--bg-green-light { background-color: var(--color-primary-light); }
.section--bg-primary     { background-color: var(--color-bg-primary); }
.section--bg-dark-green  { background-color: var(--color-primary-dark); }

/* 緑背景セクション: テキスト全般を白に */
.section--bg-primary,
.section--bg-dark-green {
  color: #ffffff;
}


/* ============================================================
   4. セクション共通ヘッダー（.section-header）
   ============================================================ */
.section-header {
  margin-bottom: 64px;
  text-align: left;           /* 中央揃え禁止ルールより */
}

/* セクションラベル（小さな英字） */
.section-header__label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  color: var(--color-primary);
  text-transform: uppercase;
}

/* セクション見出し */
.section-header__title {
  font-family: var(--font-sans);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text);
  line-height: var(--leading-tight);
  /* アクセントライン（下） */
  padding-bottom: 20px;
  margin-bottom: 32px;
  position: relative;
}

.section-header__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--accent-line-w);
  height: var(--accent-line-h);
  background-color: var(--accent-line-color);
}

/* ライトテーマ（CTAセクションなど） */
.section-header--light .section-header__label {
  color: #ffffff;
}

.section-header--light .section-header__title {
  color: var(--color-text-invert);
}

.section-header--light .section-header__title::after {
  background-color: rgba(255, 255, 255, 0.6);
}

.section-header--light .section-header__desc {
  color: #ffffff;
}

/* サブ説明文 */
.section-header__desc {
  margin-top: 16px;
  font-size: var(--text-base);
  color: var(--color-text-sub);
  line-height: var(--leading-normal);
}


/* ============================================================
   5. ボタン
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-normal);
  border-radius: var(--radius-full);
  transition: background-color var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
  text-align: center;
  white-space: nowrap;
}

/* エントリーボタン（ヘッダー用） */
.btn-entry {
  padding: 8px 20px;
  font-size: var(--text-xs);
  background-color: var(--color-accent);
  color: var(--color-text-invert);
  border: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-entry:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-1px);
}


/* ============================================================
   6. ヘッダー
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background-color: transparent;
  transition: background-color 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

/* スクロール後: 白背景 + 影 */
.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* ハンバーガーメニュー展開中: 白背景（SP/タブレット） */
.site-header.menu-open {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  height: 45px;
  width: auto;
}

@media (max-width: 767px) {
  .header-logo img {
    height: 30px;
  }
}

.header-nav {
  margin-left: auto;   /* ロゴを左端に固定し、nav+ボタンを右寄せ */
}

.header-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-nav__link {
  display: block;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text);             /* 黒文字 */
  border-radius: 9999px;
  transition: color var(--duration), background-color var(--duration);
  white-space: nowrap;
}

.header-nav__link:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.header-nav__link.is-active {
  color: #ffffff;
  background-color: var(--color-primary);
}

/* スクロール後も同じ */
.site-header.is-scrolled .header-nav__link {
  color: var(--color-text);
}

.site-header.is-scrolled .header-nav__link:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.site-header.is-scrolled .header-nav__link.is-active {
  color: #ffffff;
  background-color: var(--color-primary);
}

/* ----------------------------------------
   ハンバーガーボタン（SP のみ）
   ---------------------------------------- */
.header-hamburger {
  display: none;               /* PC では非表示 */
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);    /* 常に黒 */
  transition: color var(--duration);
  flex-shrink: 0;
  margin-left: auto;           /* 右寄せ */
}

.header-hamburger__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  line-height: 1;
}

.header-hamburger__bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ×アイコン（開いた状態） */
.header-hamburger.is-open .header-hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header-hamburger.is-open .header-hamburger__bar:nth-child(2) {
  opacity: 0;
}
.header-hamburger.is-open .header-hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----------------------------------------
   モバイルメニュー（全画面オーバーレイ）
   ---------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background-color: var(--color-primary-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  isolation: isolate;
}

/* voices セクションと同じノイズテクスチャ */
.mobile-menu::after {
  content: '';
  position: absolute;
  inset: 0;
  filter: url(#voices-noise);
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu__link {
  display: block;
  padding: 12px 32px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: var(--tracking-wide);
  transition: color var(--duration);
}

.mobile-menu__link:hover {
  color: #fff;
}

.mobile-menu__entry {
  color: #fff;
  background-color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  padding: 12px 40px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
}

.mobile-menu__entry:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}


/* ============================================================
   7. KV（キービジュアル）
   ============================================================ */

/* ---- セクション外枠 ---------------------------------------- */
/* ---- KV 全体 ---------------------------------------------- */
.section-kv {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow-x: clip;
}

/* ---- 上部: モチーフ + テキスト ----------------------------- */
/* 100vh からヘッダー分を引いた高さでモチーフ+テキストを表示
   → スライダーは 100vh の外にはみ出てチラ見え */
.kv-upper {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  position: relative;
}

/* ---- クローバーモチーフ（装飾）: PCでは非表示 ------------- */
.kv-motif {
  display: none;
}

.kv-motif__img {
  width: 100%;
  max-width: 420px;
  height: auto;
  opacity: 0.4 !important;
}

/* ---- テキストエリア --------------------------------------- */
.kv-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 56px;
}

/* メインキャッチ */
.kv-catch {
  font-family: var(--font-sans);
  font-size: clamp(24px, 4.2vw, 64px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.08em;
  color: var(--color-text);
  white-space: nowrap;
  margin-bottom: 24px;
}

/* 各行 */
.kv-catch__line {
  display: block;
  font-style: normal;
}

/* キーワード強調（地域・人） */
.kv-catch__keyword {
  font-style: normal;
  color: var(--color-primary);
  font-size: 1.18em;
  letter-spacing: 0.12em;
}

/* サブキャッチ */
.kv-sub {
  font-family: var(--font-sans);
  font-size: var(--text-lg);           /* 20px */
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-text);
  letter-spacing: 0.06em;
}

/* ---- KV 丸型エントリーボタン -------------------------------- */
.kv-round-btn {
  position: absolute;
  bottom: 56px;
  right: 72px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kv-round-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.24);
}

.kv-round-btn__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: kv-spin 12s linear infinite;
}

.kv-round-btn__icon {
  width: 72px;
  height: auto;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 1;
}

@keyframes kv-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---- 下部: 自動スクロール画像 ----------------------------- */
.kv-slider {
  flex-shrink: 0;
  height: 380px;
  overflow: hidden;
  margin-top: -90px;        /* クローバーに少しかぶせる */
  position: relative;
  z-index: 1;
}

.kv-slider__track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  height: 100%;
  gap: 12px;
  animation: kv-scroll 40s linear infinite;
}

.kv-slider__slide {
  flex: 0 0 calc((100vw - 24px) / 3);  /* 3枚表示 + gap考慮 */
  height: 300px;                        /* 全スライド同じ高さ */
}

/* リズム：上下上下ジグザグ */
.kv-slider__slide:nth-child(odd)  { margin-top: 0; }
.kv-slider__slide:nth-child(even) { margin-top: 60px; }

.kv-slider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

@keyframes kv-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 6px)); }
}

@media (prefers-reduced-motion: reduce) {
  .kv-slider__track {
    animation: none;
  }
}

/* ---- スクロールインジケーター ------------------------------ */
.kv-scroll-indicator {
  position: absolute;
  bottom: 300px;    /* スライダー上 */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
}

.kv-scroll-indicator__text {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--color-text-light);
  text-transform: uppercase;
}

/* 下向き矢印 */
.kv-scroll-indicator__arrow {
  display: block;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--color-text-light);
  border-bottom: 2px solid var(--color-text-light);
  animation: kv-bounce 1.8s ease-in-out infinite;
}

@keyframes kv-bounce {
  0%, 100% {
    transform: translateY(0) rotate(45deg);
    opacity: 1;
  }
  50% {
    transform: translateY(7px) rotate(45deg);
    opacity: 0.45;
  }
}


/* ============================================================
   8. メッセージセクション
   KVから転換する「緩」のセクション — 余白と静けさが命
   ============================================================ */

/* セクション固有の上下パディング（共通100pxより広く） */
.section-message {
  padding-block: 120px;
}

/* ---- 2カラムグリッド（55% テキスト / 45% イラスト） ------- */
.message-inner {
  display: grid;
  grid-template-columns: 1fr 45%;
  grid-template-rows: auto auto auto;
  column-gap: 72px;
  align-items: start;
}

/* PC: 見出しを左列1行目に */
.message-header {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

/* PC: リード文を左列2行目に（HTML上は分離した .message-lead 要素） */
.message-lead {
  grid-column: 1;
  grid-row: 2;
}

/* PC: イラストを右列・全行にまたがる */
.message-photo {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  padding-top: 0;
}

.message-photo__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
}

/* PC: 本文を左列3行目に */
.message-text {
  grid-column: 1;
  grid-row: 3;
}

/* 小ラベル「求職者のみなさまへ」 */
.message-label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);    /* 13px */
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

/* リード文（メインキャッチ） */
.message-text__lead {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 36px;
}

/* 本文 */
.message-text__body {
  font-family: var(--font-sans);
  font-size: var(--text-base);   /* 15px */
  font-weight: 400;
  line-height: 2.0;
  color: var(--color-text-sub);
  margin-bottom: 22px;
}

.message-text__body:last-of-type {
  margin-bottom: 0;
}

/* ---- 署名 -------------------------------------------------- */
.message-sign {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border-light);
  text-align: right;
}

.message-sign__role {
  font-family: var(--font-sans);
  font-size: var(--text-xs);    /* 12px */
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-text-light);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.message-sign__name {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--color-text);
  line-height: 1;
}


/* ============================================================
   9. 先輩スタッフの声セクション
   写真が主役。左右交互・雑誌の特集ページのようなリズム
   ============================================================ */

/* ---- リスト外枠 -------------------------------------------- */
/* ============================================================
   9. 先輩スタッフの声（sticky左 + 右スクロール）
   ============================================================ */

/* セクション自体は full-bleed（container使わない） */
.section-voices {
  padding-block: 0;
  background-color: var(--color-primary);
  position: relative;
  isolation: isolate;
}

/* ざらっとしたテクスチャーオーバーレイ */
.section-voices::after {
  content: '';
  position: absolute;
  inset: 0;
  filter: url(#voices-noise);
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

/* 緑背景上のテキスト色 */
.section-voices .section-header__label {
  color: #ffffff;
}

.section-voices .voices-left__title {
  color: #ffffff;
}

.section-voices .voices-left__desc {
  color: #ffffff;
}

.section-voices .voices-right {
  border-left-color: rgba(255, 255, 255, 0.2);
}

.section-voices .voice-card {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.section-voices .voice-card__year {
  color: rgba(255, 255, 255, 0.9);
}

.section-voices .voice-card__dept {
  color: rgba(255, 255, 255, 0.75);
}

.section-voices .voice-card__name {
  color: #ffffff;
}

.section-voices .voice-card__heading {
  color: rgba(255, 255, 255, 0.95);
}

.section-voices .voice-card__quote {
  border-top-color: rgba(255, 255, 255, 0.35);
}

.section-voices .voice-card__quote::before {
  color: #ffffff;
  opacity: 0.25;
}

.section-voices .voice-card__quote p {
  color: #ffffff;
}

.section-voices .voice-card__num {
  color: #ffffff;
  opacity: 0.1;
}

.section-voices .voice-card__quote::before {
  color: #ffffff;
  opacity: 0.2;
}

/* 写真ボーダー: 白に */
.section-voices .voice-card__photo {
  border-color: #ffffff;
}

/* 影を緑に馴染む暗めのトーンに */
.section-voices .voice-card:nth-child(odd) .voice-card__photo {
  box-shadow: 6px 10px 24px rgba(0, 0, 0, 0.25);
}

.section-voices .voice-card:nth-child(even) .voice-card__photo {
  box-shadow: -6px 10px 24px rgba(0, 0, 0, 0.25);
}

/* バッジ: 白背景＋緑文字 */
.section-voices .voice-card__badge--new {
  background-color: #ffffff;
  color: var(--color-primary);
}

.section-voices .voice-card__badge--mid {
  background-color: #ffffff;
  color: var(--color-accent);
}

/* 2カラムラッパー */
.voices-sticky-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 340px 1fr;
  align-items: start;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* 左: sticky */
.voices-left {
  position: sticky;
  top: 120px;
  padding-top: 96px;
  padding-bottom: 96px;
  padding-right: 40px;
}

.voices-left__title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  margin-top: 12px;
  margin-bottom: 24px;
  color: var(--color-text);
}

.voices-left__desc {
  font-size: 14px;
  line-height: 2.0;
  color: var(--color-text-sub);
}


/* 右: 1列縦積み */
.voices-right {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-top: 96px;
  padding-bottom: 96px;
  padding-left: 56px;
  border-left: 1px solid var(--color-border);
}

/* ---- カード（左:写真、右:情報） --------------------------- */
.voice-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.voice-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}


/* ④ 写真: 傾き＋影 */
.voice-card__photo {
  order: 1;
  overflow: hidden;
  border-radius: 10px;
  border: 3px solid var(--color-primary);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.voice-card:nth-child(odd) .voice-card__photo {
  transform: rotate(-2deg);
  box-shadow: 6px 10px 24px rgba(0, 0, 0, 0.14);
}

.voice-card:nth-child(even) .voice-card__photo {
  transform: rotate(2deg);
  box-shadow: -6px 10px 24px rgba(0, 0, 0, 0.14);
}

.voice-card:hover .voice-card__photo {
  transform: rotate(0deg) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16) !important;
}

.voice-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s ease;
}

.voice-card:hover .voice-card__img {
  transform: scale(1.04);
}

/* 情報: 右側 */
.voice-card__body {
  order: 2;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.voice-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.voice-card__badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
}

.voice-card__badge--new {
  background-color: var(--color-primary);
  color: #ffffff;
}

.voice-card__badge--mid {
  background-color: var(--color-accent);
  color: #ffffff;
}

.voice-card__year {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
}

.voice-card__dept {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 4px;
}

/* ⑤ 名前: 大きく */
.voice-card__name {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: 20px;
}

/* ⑥-b 引用見出し */
.voice-card__heading {
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 12px;
}

/* ① 引用符デコレーション */
.voice-card__quote {
  position: relative;
  border-top: 2px solid var(--color-primary);
  padding-top: 24px;
  padding-left: 8px;
}

.voice-card__quote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: -4px;
  font-size: 80px;
  line-height: 1;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--color-primary);
  opacity: 0.18;
  pointer-events: none;
}

.voice-card__quote p {
  font-size: var(--text-sm);
  line-height: 2.0;
  color: var(--color-text-sub);
  position: relative;
  z-index: 1;
}

/* ⑥ 大きな背景ナンバー */
.voice-card__num {
  position: absolute;
  top: -10px;
  right: -4px;
  font-size: clamp(80px, 12vw, 130px);
  font-weight: 900;
  line-height: 0.85;
  color: var(--color-primary);
  opacity: 0.07;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  font-feature-settings: 'tnum';
}


/* ============================================================
   10. 職場ギャラリー（無限スクロールスライダー）
   ============================================================ */

/* ヘッダーのみ中央寄せ（ギャラリーセクション限定の例外） */
.gallery-header {
  text-align: center;
  margin-bottom: 48px;
}

.gallery-header .section-header__title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================================
   中央フォーカスカルーセル
   ============================================================ */

.gallery-carousel {
  overflow: hidden;
  padding-bottom: 56px;
}

.gallery-carousel__viewport {
  overflow: visible;
}

/* トラック: JS が translateX で制御 */
.gallery-carousel__track {
  display: flex;
  align-items: center;
  gap: 24px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  cursor: grab;
  user-select: none;
}

.gallery-carousel__track.is-dragging {
  cursor: grabbing;
  transition: none;
}

/* 各アイテム */
.gallery-item {
  flex-shrink: 0;
  width: 480px;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.55s ease,
              box-shadow 0.55s ease;
  transform: scale(0.80);
  opacity: 0.28;
  cursor: pointer;
}

.gallery-item.is-adjacent {
  transform: scale(0.88);
  opacity: 0.55;
}

.gallery-item.is-active {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
  cursor: default;
}

.gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  pointer-events: none;
}

.gallery-item.is-active:hover .gallery-item__img {
  transform: scale(1.04);
}

/* キャプション: 非アクティブ時は非表示、アクティブ時は常に表示 */
.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 14px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  letter-spacing: var(--tracking-normal);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item.is-active .gallery-item__caption {
  opacity: 1;
}

/* ナビ */
.gallery-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}

.gallery-carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.gallery-carousel__btn:hover:not(:disabled) {
  background: var(--color-primary);
  color: #ffffff;
}

.gallery-carousel__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.gallery-carousel__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gallery-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.gallery-carousel__dot.is-active {
  background: var(--color-primary);
  transform: scale(1.5);
}


/* ============================================================
   11. タイムライン（社員の一日）
   ============================================================ */

/* 社員プロフィール */
.timeline-profile {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 88px;
  padding: 48px 56px;
  background: #fff;
  border-radius: 4px;
}

.timeline-profile__figure {
  flex-shrink: 0;
}

.timeline-profile__img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.timeline-profile__dept {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  color: var(--color-primary);
  margin-bottom: 8px;
}

.timeline-profile__name {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text);
  margin-bottom: 6px;
}

.timeline-profile__note {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 20px;
}

.timeline-profile__comment {
  font-size: 14px;
  line-height: 2.0;
  color: var(--color-text-sub);
  border-left: 2px solid var(--color-primary);
  padding-left: 16px;
}

/* ----------------------------------------
   タイムライン本体
   ---------------------------------------- */
.timeline {
  position: relative;
}

/* 縦軸（左寄せ・上から伸びるアニメーション）*/
.timeline__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(148px + 24px - 1px); /* time-col(148px) + node-col中心(24px) */
  width: 2px;
  background-color: var(--color-primary);
  opacity: 0.2;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 2s ease-out;
}

.timeline__line.is-animating {
  transform: scaleY(1);
}

/* リスト */
.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 各アイテム: [時間(148px) | ノード(48px) | 本文(1fr)] */
.timeline-item {
  display: grid;
  grid-template-columns: 148px 48px 1fr;
  align-items: start;
  padding-block: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.timeline-item:last-child {
  border-bottom: none;
}

/* 時間列 */
.timeline-item__time-col {
  padding-top: 5px;
  text-align: right;
  padding-right: 4px;
}

/* 時間テキスト */
.timeline-item__time {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ノード列（中央） */
.timeline-item__node {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8px;
  position: relative;
  z-index: 1;
}

/* ドット（ポップイン） */
.timeline-item__dot {
  display: block;
  width: 14px;
  height: 14px;
  background-color: var(--color-primary);
  border-radius: 50%;
  border: 3px solid var(--color-bg-gray);
  box-shadow: 0 0 0 2px var(--color-primary);
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item__dot.is-visible {
  transform: scale(1);
}

/* 本文エリア */
.timeline-item__body {
  padding-left: 32px;
}

/* 仕事内容タイトル */
.timeline-item__title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text);
  margin-bottom: 12px;
}

/* 説明文 */
.timeline-item__desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-sub);
}

/* 写真（デフォルト） */
.timeline-item__photo {
  margin-block: 16px;
  max-width: 480px;
}

.timeline-item__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

/* 写真ありアイテム: body内を [写真 | タイトル+説明] の2カラムに */
.timeline-item--has-photo .timeline-item__body {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 32px;
  align-items: start;
}

.timeline-item--has-photo .timeline-item__photo {
  grid-column: 1;
  grid-row: 1 / 3; /* タイトル・説明の両行にまたがる */
  margin-block: 0;
  max-width: none;
}

.timeline-item--has-photo .timeline-item__title {
  grid-column: 2;
  grid-row: 1;
}

.timeline-item--has-photo .timeline-item__desc {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}


/* ============================================================
   12. 福利厚生・募集要項
   ============================================================ */

/* セクションのパディングをやや詰め気味に */
.section-benefits {
  padding-block: 80px;
}

/* セクションヘッダー: 中央寄せ（ギャラリーと同様の例外） */
.benefits-header {
  text-align: center;
  margin-bottom: 56px;
}

.benefits-header .section-header__title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---- 募集要項タブナビゲーション --------------------------- */
.benefits-tabs__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 16px;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--color-primary);
}

.benefits-tabs__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 16px 20px;
  background-color: var(--color-bg-gray);
  color: var(--color-text-sub);
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  font-family: var(--font-sans);
}

.benefits-tabs__btn:hover {
  background-color: #e8f5f0;
  color: var(--color-primary);
}

.benefits-tabs__btn.is-active {
  background-color: var(--color-primary);
  color: #fff;
  border-bottom-color: var(--color-primary);
  position: relative;
}

.benefits-tabs__btn.is-active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 8px 0 8px;
  border-color: var(--color-primary) transparent transparent transparent;
  z-index: 1;
}

.benefits-tabs__btn-en {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}

.benefits-tabs__btn-ja {
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1;
}

/* ---- タブパネル ------------------------------------------ */
.benefits-tabs__panel {
  display: none;
}

.benefits-tabs__panel.is-active {
  display: block;
  padding-top: 20px;
}

/* ---- 新卒/キャリア対象タグ -------------------------------- */
.benefit-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.06em;
  white-space: nowrap;
  background-color: var(--color-primary);
  color: #fff;
}

.benefit-tag--career {
  background-color: #d4a800;
}

.benefit-note {
  display: block;
  font-size: 11px;
  color: var(--color-text-sub);
  margin-top: 4px;
}

.benefits-course__grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.benefits-block__title {
  position: relative;
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text);
  margin-bottom: 1.75rem;
  padding: 4px 0 10px 32px;
  border-bottom: 2px solid var(--color-primary);
  background-color: transparent;
  border-left: none;
}

.benefits-block__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-60%);
  width: 22px;
  height: 21px;
  background-image: url('../img/motif.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

.benefits-table {
  width: 100%;
  border-collapse: collapse;
}

.benefits-table th,
.benefits-table td {
  padding: 11px 16px;
  font-size: 14px;
  line-height: var(--leading-normal);
  text-align: left;
  vertical-align: top;
}

/* ストライプ: 偶数行に薄いウォームグレー */
.benefits-table__row:nth-child(even) th,
.benefits-table__row:nth-child(even) td {
  background-color: var(--color-bg-gray);
}

.benefits-table__key {
  width: 34%;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.benefits-table__val {
  color: var(--color-text-sub);
}

/* 電話リンク: SPのみ有効 */
.tel-link {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

@media (max-width: 767px) {
  .tel-link {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    pointer-events: auto;
  }
}

/* 応募方法ボタン群 */
.req-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.req-contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.req-contact__btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.req-contact__btn--primary {
  background-color: var(--color-primary);
  color: #fff;
}

.req-contact__btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

/* 電話ボタンはPCでは見た目はそのまま、クリック不可 */
.req-contact__btn.tel-link {
  color: var(--color-primary);
  text-decoration: none;
  pointer-events: none;
  opacity: 0.7;
}

@media (max-width: 767px) {
  .req-contact__btn.tel-link {
    pointer-events: auto;
    opacity: 1;
  }
}

/* 応募方法：リード文 */
.req-contact__lead {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 12px;
  line-height: 1.7;
}

/* 応募方法：バナー群 */
.req-contact__banners {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.req-contact__banner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 16px;
  transition: opacity 0.2s, box-shadow 0.2s;
}

.req-contact__banner-link:hover {
  opacity: 0.85;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.req-contact__banner-img {
  display: block;
  height: 32px;
  width: auto;
}

/* 応募方法：ボタン内アイコン */
.req-contact__btn-icon {
  font-size: 15px;
  vertical-align: middle;
  margin-left: 6px;
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
  line-height: 1;
}

/* 応募方法：電話・メールアイコン */
.req-contact__icon {
  font-size: 17px;
  vertical-align: middle;
  margin-right: 4px;
  color: var(--color-primary);
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* 応募方法：エントリーボタン */
.req-contact__btn-wrap {
  margin-bottom: 14px;
}

/* 応募方法：電話・メール */
.req-contact__info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--color-text-sub);
}

.req-contact__info-item a {
  color: inherit;
  text-decoration: none;
}

.req-contact__info-item a[href^="mailto:"] {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .req-contact__banners {
    flex-direction: column;
    gap: 8px;
  }

  /* エントリーボタン：幅いっぱい・タップしやすく */
  .req-contact__btn-wrap {
    display: block;
  }

  .req-contact__btn-wrap .req-contact__btn {
    display: flex;
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    justify-content: center;
  }

  /* 電話・メール：縦並び・タップしやすく */
  .req-contact__info {
    flex-direction: column;
    gap: 0;
  }

  .req-contact__info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
  }

  .req-contact__info-item:last-child {
    border-bottom: none;
  }

  .req-contact__info-item a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* テーブル下のリンク */
.benefits-more {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-sub);
  margin-top: 56px;
}

.benefits-more__link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: color var(--duration);
}

.benefits-more__link:hover {
  color: var(--color-primary-dark);
}


/* ============================================================
   13. エントリーCTA
   ============================================================ */

/* ヘッダー: 中央寄せ + ライトテーマ */
.entry-header {
  text-align: center;
  margin-bottom: 56px;
}

.entry-header .section-header__title::after {
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.5);
}

/* エントリーセクション: グリーングラデーション + ノイズテクスチャ */
.section-entry {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-primary) !important;
  margin-inline: 40px;
  margin-bottom: 60px;
  border-radius: 24px;
  padding-block: 64px;
}

.section-entry::before {
  content: '';
  position: absolute;
  inset: 0;
  filter: url(#voices-noise);
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

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

/* セクションタイトルを少し大きく */
.section-entry .section-header__title {
  font-size: clamp(28px, 3.5vw, 40px);
}

.entry-banners {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* バナー1枚のラッパー（figure） */
.entry-banner-wrap {
  flex: 0 1 300px;          /* 最大300px・縮む方向には縮む・伸びない */
  text-align: center;
}

/* リンク（バナー画像を含む） */
.entry-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;             /* 両バナーの高さを揃える */
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}

.entry-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.entry-banner__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;      /* ロゴを歪めず・はみ出さず収める */
  padding: 14px 28px;       /* 画像とバナー枠の余白 */
}

/* サービス名（figcaption） */
.entry-banner__name {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: var(--tracking-wide);
}

/* 新卒・キャリアのグループ */
.entry-group {
  margin-bottom: 48px;
}

.entry-group:last-of-type {
  margin-bottom: 0;
}

.entry-group__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.entry-group__title-en {
  font-family: var(--font-en);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
}

.entry-group__title-ja {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
}

.entry-group__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

/* キャリア採用ボタン */
.entry-career {
  display: flex;
  justify-content: center;
}

.entry-career__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 48px;
  background: #fff;
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}


.entry-career__btn:hover {
  background: var(--color-primary-light, #e8f5f0);
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .entry-career__btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
    justify-content: center;
  }
}

.entry-note {
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-normal);
  margin-top: 40px;
}

.entry-note__link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-note__link:hover {
  color: #fff;
}


/* ============================================================
   14. フッター
   ============================================================ */
.site-footer {
  background-color: #1c1a18;
}

.footer-logo img {
  background-color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  height: 50px;
  width: auto;
}

.footer-logo__tagline {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: var(--tracking-normal);
}

.footer-inner {
  padding-block: 56px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 24px 48px;
  align-items: start;
}

.footer-logo {
  grid-row: 1 / 3;
}

.footer-nav {
  grid-column: 2;
  grid-row: 1;
}

.footer-links {
  grid-column: 2;
  grid-row: 2;
}

.footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  justify-content: flex-end;
}

.footer-nav__link {
  display: inline-block;
  padding: 4px 8px;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: var(--tracking-normal);
  transition: color var(--duration);
}

.footer-nav__link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
}

.footer-links__item {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: var(--tracking-normal);
  transition: color var(--duration);
}

.footer-links__item:hover {
  color: rgba(255, 255, 255, 0.75);
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 20px;
  text-align: center;
}

.footer-copy__text {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: var(--tracking-normal);
}


/* ============================================================
   15. ユーティリティ
   ============================================================ */

/* スクリーンリーダー専用テキスト */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   15b. ヘッダーfixed対応: セクション先頭がヘッダーに隠れないよう
   ============================================================ */

/* アンカーリンク先のスクロールマージン */
section[id],
main[id] {
  scroll-margin-top: var(--header-h);
}

/* KV は全画面表示のためマージン不要 */
#kv {
  scroll-margin-top: 0;
}


/* ============================================================
   16. スクロールアニメーション
   ============================================================ */

/* 初期非表示状態（JSが付与） */
.js-hidden {
  opacity: 0;
  transform: var(--_t, none);
  transition: opacity var(--_dur, 0.6s) ease-out var(--_delay, 0s),
              transform var(--_dur, 0.6s) ease-out var(--_delay, 0s);
}

/* 表示状態（JSが付与: js-hidden と共存） */
.js-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* モーション軽減: アニメーション無効 */
@media (prefers-reduced-motion: reduce) {
  .js-hidden {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}


/* ============================================================
   17. SP（max-width: 767px）
   ============================================================ */
@media (max-width: 767px) {

  /* ---- 本文テキスト基本14px --------------------------------- */
  .message-text__body,
  .voice-card__quote p,
  .timeline-item__desc,
  .benefits-table__val,
  .timeline-profile__comment {
    font-size: 14px;
  }

  /* ---- 先輩スタッフの声: 説明文の改行を非表示 --------------- */
  .voices-left__desc br {
    display: none;
  }

  /* ---- コンテナ -------------------------------------------- */
  .container {
    padding-inline: 20px;
  }

  /* ---- セクション共通パディング縮小 ------------------------- */
  .section--bg-white,
  .section--bg-gray,
  .section--bg-green-light,
  .section--bg-primary,
  .section--bg-dark-green {
    padding-block: 64px;
  }

  /* ---- セクションヘッダー ----------------------------------- */
  .section-header {
    margin-bottom: 40px;
  }

  .section-header__title {
    font-size: 26px;
  }

  /* ---- ヘッダー（SP固有） ----------------------------------- */
  /* hamburger 表示切り替えは max-width:1023px ブロックで管理 */

  /* ---- KV: SP レイアウト ------------------------------------ */

  /* 上部 */
  .kv-upper {
    min-height: calc(100vh - 500px);
    flex-direction: column;
    padding: 100px 24px 150px;
    gap: 0;
    position: relative;
    justify-content: center;
  }

  /* モチーフはSPでも非表示 */
  .kv-motif {
    display: none;
  }

  /* テキストを中央揃え */
  .kv-content {
    position: relative;
    z-index: 1;
    padding: 0;
    text-align: center;
    align-items: center;
  }

  .kv-catch {
    font-size: clamp(26px, 7.5vw, 34px);
    letter-spacing: 0.04em;
    white-space: normal;
  }

  /* SP: 根差しで改行 */
  .kv-catch__part {
    display: block;
  }

  .kv-sub {
    font-size: 14px;
  }

  /* 丸ボタン: SP では小さく右下 */
  .kv-round-btn {
    width: 110px;
    height: 110px;
    bottom: 32px;
    right: 20px;
    transform: none;
  }

  .kv-round-btn:hover {
    transform: scale(1.08);
  }

  .kv-round-btn__icon {
    width: 52px;
  }

  /* スライダー: SP */
  .kv-slider {
    height: 250px;
  }

  .kv-slider__slide {
    flex: 0 0 calc((100vw - 16px) / 2 * 0.9);
    height: 180px;               /* 全スライド同じ高さ */
  }

  /* SP ジグザグ */
  .kv-slider__slide:nth-child(odd)  { margin-top: 0; }
  .kv-slider__slide:nth-child(even) { margin-top: 50px; }

  .kv-slider__track {
    align-items: flex-start;
    gap: 8px;
  }

  .kv-slider {
    margin-top: -100px;
  }

  /* ---- メッセージ ------------------------------------------- */
  .section-message {
    padding-block: 60px;
  }

  .message-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* SP: 見出し→リード→イラスト→本文 の順 */
  .message-header {
    grid-column: auto;
    grid-row: auto;
    order: 1;
  }

  .message-lead {
    grid-column: auto;
    grid-row: auto;
    order: 2;
    margin-top: -22px; /* グリッドgap(32px) - message-labelのmargin-bottom(10px) */
  }

  .message-photo {
    grid-column: auto;
    grid-row: auto;
    order: 3;
    padding-top: 0;
  }

  .message-text {
    grid-column: auto;
    grid-row: auto;
    order: 4;
  }

  /* SP では縦長トリミング */
  .message-photo__img {
    aspect-ratio: 3 / 4;
  }

  .message-text__lead {
    font-size: 22px;
    line-height: 1.65;
  }

  /* ---- 先輩スタッフの声 ------------------------------------- */
  /* section--bg-primary が padding-block:64px を付与するのを上書き */
  .section-voices {
    padding-block-start: 0;
  }

  .voices-sticky-wrap {
    grid-template-columns: 1fr;
    padding-inline: 20px;
  }

  .voices-left {
    position: static;
    padding-top: 48px;
    padding-bottom: 0;
    padding-right: 0;
  }

  .voices-right {
    gap: 0;
    padding-top: 32px;
    padding-bottom: 48px;
    padding-left: 0;
    border-left: none;
    border-top: none;
  }

  /* SP: カードを縦積みに戻す */
  .voice-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 40px;
  }

  .voice-card__photo {
    order: 1;
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }

  .voice-card__body {
    order: 2;
  }

  .voice-card__img {
    aspect-ratio: 4 / 3;
  }

  .voice-card__num {
    font-size: 72px;
    opacity: 0.06;
  }

  .voice-card__name {
    font-size: clamp(22px, 5vw, 28px);
  }

/* ---- ギャラリーカルーセル SP -------------------------------- */
  .gallery-item {
    width: 320px;
    height: 224px;
  }

  .gallery-carousel {
    padding-bottom: 40px;
  }

  .gallery-carousel__nav {
    margin-top: 24px;
    gap: 14px;
  }

  .gallery-carousel__btn {
    width: 36px;
    height: 36px;
  }

  /* ---- タイムライン ----------------------------------------- */
  /* プロフィールカード: 縦積み */
  .timeline-profile {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
    margin-bottom: 56px;
  }

  .timeline-profile__comment {
    text-align: left;
  }

  /* 縦線: 左端（20px）に移動 */
  .timeline__line {
    left: 20px;
    transform: translateX(0) scaleY(0);
  }

  .timeline__line.is-animating {
    transform: translateX(0) scaleY(1);
  }

  /* タイムライン（SP）: [時間(72px) | ノード(36px) | 本文(1fr)] */
  .timeline__line {
    left: calc(72px + 18px - 1px);
  }

  .timeline-item {
    grid-template-columns: 72px 36px 1fr;
    padding-block: 28px;
    gap: 0;
  }

  .timeline-item__time-col {
    padding-top: 3px;
    padding-right: 2px;
  }

  .timeline-item__time {
    font-size: 14px;
    letter-spacing: -0.03em;
  }

  .timeline-item__node {
    padding-top: 5px;
  }

  .timeline-item__body {
    padding-left: 16px;
  }

  .timeline-item__photo {
    max-width: 100%;
  }

  /* SP: 写真ありアイテムは縦並び（画像上・テキスト下）に戻す */
  .timeline-item--has-photo .timeline-item__body {
    display: block;
  }

  .timeline-item--has-photo .timeline-item__photo {
    margin-block: 12px 0;
  }

  /* ---- benefits 見出し余白（SP） --------------------------- */
  .benefits-block__title {
    margin-bottom: 16px;
  }

  /* ---- テーブル: display: block で縦積み -------------------- */
  .benefits-table,
  .benefits-table tbody,
  .benefits-table tr,
  .benefits-table th,
  .benefits-table td {
    display: block;
    width: 100%;
  }

  /* tr ごとのカード区切りは廃止 — 連続したリストとして表示 */
  .benefits-table__row {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    overflow: visible;
  }

  /* テーブル全体を1つの枠で囲む */
  .benefits-table {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }

  .benefits-table__key {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 7px 14px;
    font-size: 12px;
    white-space: normal;
  }

  .benefits-table__val {
    padding: 10px 14px;
    font-size: 13px;
    background-color: #fff;
    border-bottom: 1px solid var(--color-border-light);
  }

  .benefits-table__row:last-child .benefits-table__val {
    border-bottom: none;
  }

  /* ストライプリセット（display:block 後は機能しないため） */
  .benefits-table__row:nth-child(even) th,
  .benefits-table__row:nth-child(even) td {
    background-color: initial;
  }

  .benefits-table__row:nth-child(even) .benefits-table__key {
    background-color: var(--color-primary-light);
  }

  .benefits-table__row:nth-child(even) .benefits-table__val {
    background-color: #fff;
  }


  /* ---- エントリー ------------------------------------------- */
  .section-entry {
    margin-inline: 16px;
    margin-bottom: 40px;
    border-radius: 16px;
    padding-block: 48px;
  }

  .entry-banners {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .entry-banner-wrap {
    flex: none;
    width: 100%;
    max-width: 320px;
  }

  /* ---- フッター --------------------------------------------- */
  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 24px;
    padding-block: 40px;
  }

  .footer-logo {
    grid-row: auto;
    display: flex;
    justify-content: center;
  }

  .footer-nav {
    grid-column: 1;
    grid-row: auto;
    text-align: center;
  }

  .footer-links {
    grid-column: 1;
    grid-row: auto;
    justify-content: center;
  }

  .footer-nav__list {
    gap: 2px 8px;
    justify-content: center;
  }

  /* ---- SP 固定エントリーバー -------------------------------- */

  .sp-entry-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
  }

  .sp-entry-bar__btn {
    display: block;
    background-color: var(--color-accent);
    color: #fff;
    text-align: center;
    padding: 14px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background-color var(--duration);
  }

  .sp-entry-bar__btn:hover {
    background-color: var(--color-accent-dark);
  }
}


/* ============================================================
   18. Tablet（768px – 1023px）
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {

  /* ---- コンテナ -------------------------------------------- */
  .container {
    padding-inline: 32px;
  }

  /* ---- セクション共通パディング ----------------------------- */
  .section--bg-white,
  .section--bg-gray,
  .section--bg-green-light,
  .section--bg-primary,
  .section--bg-dark-green {
    padding-block: 80px;
  }

  /* ---- セクションヘッダー ----------------------------------- */
  .section-header__title {
    font-size: 32px;
  }

  /* ---- KV: タブレット調整 ----------------------------------- */
  .kv-motif__img {
    max-width: 300px;
  }

  .kv-catch {
    font-size: 42px;
  }

  .kv-slider {
    height: 240px;
  }

  .kv-scroll-indicator {
    bottom: 260px;
  }

  /* ---- メッセージ ------------------------------------------- */
  .section-message {
    padding-block: 80px;
  }

  .message-inner {
    column-gap: 48px;
  }

  .message-text__lead {
    font-size: 20px;
  }

  /* ---- 先輩スタッフの声（タブレット） ------------------------ */
  .voices-sticky-wrap {
    grid-template-columns: 220px 1fr;
    padding-inline: 32px;
  }

  .voices-left {
    padding-right: 24px;
  }

  .voices-right {
    padding-left: 24px;
  }

  /* ---- タイムライン（タブレット） ----------------------------- */
  .timeline__line {
    left: calc(120px + 24px - 1px);
  }
  .timeline-item {
    grid-template-columns: 120px 48px 1fr;
    padding-block: 36px;
  }

  /* ---- 福利厚生 --------------------------------------------- */
  .benefits-layout {
    gap: 40px;
  }

  /* ---- フッター --------------------------------------------- */
  .footer-inner {
    gap: 20px 40px;
  }
}


/* ============================================================
   19. SP + Tablet 共通: ハンバーガーメニュー表示（～1023px）
   ============================================================ */
@media (max-width: 1023px) {
  .header-nav              { display: none; }
  .header-inner .btn-entry { display: none; }  /* ハンバーガー時は非表示 */
  .header-hamburger        { display: flex; }
  .header-inner            { padding-right: 20px; }

  /* SP固定バーはタブレットでは非表示（SPは後続ブロックで display:block） */
}


/* ============================================================
   20. トップへ戻るボタン
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 40px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s;
  z-index: 200;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-primary-dark);
}

.back-to-top__icon {
  display: block;
  width: 20px;
  height: 20px;
}

@media (max-width: 767px) {
  .back-to-top {
    right: 16px;
    bottom: 80px; /* SP固定バーの上に配置 */
    width: 56px;
    height: 56px;
  }
}


/* PC・タブレット（768px以上）ではSP固定バーを非表示 */
.sp-entry-bar { display: none; }
@media (min-width: 768px) and (max-width: 1023px) {
  .sp-entry-bar { display: none; }
}

/* ============================================================
   21. SP 横はみ出し防止
   ============================================================ */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
  }
}


/* ============================================================
   22. 求める人物像（メッセージセクション内）
   ============================================================ */
.persona-block {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border-light);
}

.persona-block__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 24px;
}

.persona-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.persona-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.6;
  border-bottom: 1px solid var(--color-border-light);
}

.persona-list__item:nth-child(odd) {
  padding-right: 24px;
}

.persona-list__item::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .persona-block {
    margin-top: 40px;
    padding-top: 36px;
  }
  .persona-list {
    grid-template-columns: 1fr;
  }
  .persona-list__item:nth-child(odd) {
    padding-right: 4px;
  }
}


/* ============================================================
   23. 仕事内容
   ============================================================ */
.section-work .section-header {
  text-align: center;
}

.section-work .section-header__title::after {
  left: 50%;
  transform: translateX(-50%);
}

.work-items {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-item {
  padding-block: 56px;
  border-top: 1px solid var(--color-border-light);
}

.work-item:first-child {
  padding-top: 0;
  border-top: none;
}

.work-item__inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: start;
}

.work-item__img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.work-item__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.work-item__dept {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.work-item__catch {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.65;
  margin-bottom: 20px;
}

.work-item__desc {
  font-size: var(--text-sm);
  line-height: 1.85;
  color: var(--color-text-main);
  margin-bottom: 20px;
}

.work-item__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.work-item__list li {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-sub);
  padding-left: 16px;
  position: relative;
}

.work-item__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

@media (max-width: 767px) {
  .work-items {
    margin-top: 32px;
  }
  .work-item {
    padding-block: 40px;
  }
  .work-item__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .work-item__catch {
    font-size: 17px;
  }
}


/* ============================================================
   24. ハンバーガーメニュー展開中
   ============================================================ */

/* スクロール禁止 */
body.menu-open {
  overflow: hidden;
}

/* TOPへ戻るボタン・固定エントリーバーをメニューのレイヤー下へ
   .mobile-menu の z-index: 90 より低い値を指定 */
body.menu-open .back-to-top,
body.menu-open .sp-entry-bar {
  z-index: 80;
}
