@charset "UTF-8";

/* ============================================================
   TOSHIN CHEMICAL INDUSTRY - Recruit Site
   Common Styles & Design Tokens
   リファレンス: JR西日本電気テック採用サイト（e-TEC）
   https://www.wj-etec.co.jp/recruitment/
   ============================================================ */

/* --- Fonts --- */
/* フォント:
   - Bodoni Moda — カンプ「Bodoni Moda SemiBold Italic」準拠（英大見出し / 数字）
   - Montserrat — カンプ「Century Gothic Pro Bold/Regular」相当の幾何学サンセリフ（英ラベル・ボタン）
   - Noto Sans JP — カンプ「Yu Go Medium」相当のゴシック（ティザー動画・リード文・ニュース）
   - Shippori Mincho — 和文本文・見出し（明朝、A1Mincho Std対応） */
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&family=Montserrat:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&family=Shippori+Mincho:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens (リファレンス方式に刷新) --- */
:root {
  /* レスポンシブベース（リファレンス踏襲） */
  --base-vw: 375;

  /* フォント — CLAUDE.md design-spec.json準拠 */
  --en-font: 'Bodoni Moda', 'Georgia', serif;                        /* 英大見出し（Italic: Bodoni Moda Italic SemiBold） */
  --en-font-sans: 'Montserrat', 'Century Gothic', sans-serif;        /* 英ラベル・ボタン（Century Gothic Pro → Montserrat） */
  --en-font-cond: 'Montserrat', 'Century Gothic', sans-serif;        /* 旧Barlow Condensed → Montserrat統一 */
  --jp-font: 'Shippori Mincho', 'Hiragino Mincho ProN', '游明朝', serif; /* 和文（明朝: A1Mincho Std → Shippori Mincho） */
  --jp-font-sans: 'Noto Sans JP', 'Yu Gothic', sans-serif;           /* ゴシック和文（Yu Go Medium → Noto Sans JP） */
  --num-font: 'Bodoni Moda', 'Georgia', serif;

  /* カラー（カンプから実測したパレット）
     ---------------------------------------------------------
     カンプ画像をピクセルサンプリングして得た正確な色値。
     --blue-pale が主要な背景色（ABOUT/MESSAGE/メッセージ全体）
     --blue-entry がENTRYボタン/フッター/見出しのビビッドブルー
     --gray-hero が MESSAGE のヒーロー単独グレー
     --navy-deep が MV の暗い背景
     --------------------------------------------------------- */
  --black: #000;
  --white: #fff;
  --gray: #ededed;
  --gray-hero: #b3b3b3;            /* MESSAGE ヒーロー単独グレー（カンプ実測） */
  --alt-blend-mode: #aca09f;
  --blue-pale: #dce9ef;            /* メイン基調 淡ブルー（カンプ実測） */
  --blue-gray: #dce9ef;            /* 旧名エイリアス（同色） */
  --blue-entry: #0063ae;           /* ENTRY 青 / フッター / 見出し（カンプ実測） */
  --blue-entry-dark: #004e88;      /* ENTRY hover */
  --blue-staff: #becfdb;
  --navy: #0063ae;                 /* 旧navy → 実はビビッドブルーと同一 */
  --navy-deep: #07101e;            /* MV 深ネイビー */
  --footer-gray: #535f60;
  --text-body: #231815;            /* 本文用テキスト — design-spec #231815（赤みのある黒） */
  --text-muted: #606060;           /* サブテキスト — design-spec color-08 */

  /* WORKSTYLE 5項目テーマ色（リファレンスそのまま） */
  --crosstalk: #dee9ed;
  --crosstalk-dark: #c2d0d1;
  --workstyle: #d3d5e5;
  --workstyle-dark: #b9bdd5;
  --careerdesign: #bfcfe2;
  --careerdesign-dark: #a4b5c9;
  --environment: #e3e3d4;
  --environment-dark: #ccccb5;
  --education: #ede2df;
  --education-dark: #ddc8c2;

  /* イージング（リファレンスそのまま） */
  --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-in-out: cubic-bezier(0.445, 0.05, 0.55, 0.95);

  /* z-index 層（リファレンス踏襲） */
  --z-base: 0;
  --z-menu: 100;
  --z-header: 1000;   /* 既存コード互換のため 1000 維持 */
  --z-menu-btn: 102;
  --z-modal: 1100;    /* 既存コード互換のため 1100 維持 */

  /* ========================================================
     既存コード互換エイリアス（既存ページを壊さないため残置）
     今後の新規実装では上記トークン（--blue-gray 等）を使うこと
     ======================================================== */
  --color-bg: var(--white);
  --color-bg-light: var(--blue-pale);
  --color-bg-section: #e8eef0;
  --color-text: var(--text-body);
  --color-text-light: var(--white);
  --color-muted: var(--text-muted);
  --color-primary: var(--blue-entry);
  --color-primary-light: var(--blue-pale);
  --color-primary-dark: var(--blue-entry-dark);
  --color-accent: #c8a96a;
  --color-border: #cdd8de;
  --color-border-dark: var(--blue-entry);
  --color-placeholder: #cdd8de;
  --color-placeholder-text: #6b7a85;
  --color-required: var(--blue-entry);
  --color-overlay: rgba(0, 99, 174, 0.92);
  --color-nav-overlay: var(--z-menu); /* 旧 --z-nav-overlay 互換 */

  /* 旧フォントエイリアス（既存コード互換） */
  --font-en: var(--en-font);
  --font-en-sans: var(--en-font-sans);
  --font-ja: var(--jp-font);
  --font-ja-serif: var(--jp-font);
  --font-ja-sans: var(--jp-font-sans);
  --font-mono: 'SF Mono', 'Consolas', monospace;

  /* スペーシング（既存互換） */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.5rem;
  --fs-5xl: 4.5rem;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  --leading-tight: 1.4;
  --leading-normal: 1.8;
  --leading-loose: 2.2;

  --tracking-tight: 0.02em;
  --tracking-normal: 0.05em;
  --tracking-wide: 0.1em;
  --tracking-wider: 0.15em;
  --tracking-widest: 0.2em;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --space-5xl: 10rem;
  --space-section: 8rem;

  --container-max: 1200px;
  --container-narrow: 900px;
  --container-wide: 1400px;

  --header-height: 80px;

  --radius-sm: 2px;
  --radius-md: 4px;

  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;

  --z-nav-overlay: 1050; /* sub-header(1000)より上 */
}

/* レスポンシブ base-vw 切り替え（リファレンス踏襲） */
@media screen and (min-width: 768px) {
  :root {
    --base-vw: 1366;
  }
}

/*
  【px → rem 変換ルール】
  リファレンス（e-TEC）は calc(Xrem / 16) 記法を使用。
  html { font-size: 16px; } を基準に、全要素が html フォントサイズに連動してスケール。
  新規コンポーネントは calc(Npx * 1rem / 16) または calc(Nrem / 16) で記述すること。
*/

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-ja);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-base);
}

a:hover {
  opacity: 0.7;
}

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

ul, ol {
  list-style: none;
}

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

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Image Placeholder --- */
.img-placeholder {
  background: var(--color-placeholder);
  position: relative;
  width: 100%;
  overflow: hidden;
}

.img-placeholder::after {
  content: attr(data-filename);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--color-placeholder-text);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  text-align: center;
  padding: var(--space-sm);
}

/* --- Section Title (English + Japanese) --- */
.section-title {
  margin-bottom: var(--space-xl);
}

.section-title__en {
  font-family: var(--font-en);
  font-size: var(--fs-4xl);
  font-weight: 600;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-primary);
  display: block;
}

.section-title__ja {
  font-family: var(--font-ja);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  letter-spacing: var(--tracking-wider);
  color: var(--color-muted);
  display: block;
  margin-top: var(--space-xs);
}

/* White variant */
.section-title--white .section-title__en {
  color: var(--color-text-light);
}

.section-title--white .section-title__ja {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Section Label (small English heading) --- */
.section-label {
  font-family: var(--font-en-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-xs);
}

.section-label--white {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ja);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  padding: 0.875rem 2.5rem;
  border: 1px solid;
  transition: all var(--transition-base);
  text-transform: uppercase;
  min-width: 180px;
}

.btn--primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-light);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  opacity: 1;
}

.btn--outline {
  background-color: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn--outline:hover {
  background-color: var(--color-text);
  color: var(--color-text-light);
  opacity: 1;
}

.btn--outline-white {
  background-color: transparent;
  border-color: var(--color-text-light);
  color: var(--color-text-light);
}

.btn--outline-white:hover {
  background-color: var(--color-text-light);
  color: var(--color-primary);
  opacity: 1;
}

/* --- View More Link --- */
.view-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.25rem;
  transition: all var(--transition-base);
}

.view-more::after {
  content: '';
  width: 20px;
  height: 1px;
  background-color: currentColor;
  transition: width var(--transition-base);
}

.view-more:hover {
  opacity: 1;
}

.view-more:hover::after {
  width: 30px;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  z-index: var(--z-header);
  transition: background-color var(--transition-base);
}

.header--scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-border);
}

.header--scrolled .header__logo-white {
  display: none;
}

.header--scrolled .header__logo-dark {
  display: block;
}

.header--scrolled .header__menu-btn span {
  background-color: var(--color-text);
}

.header--scrolled .header__menu-label {
  color: var(--color-text);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__logo img {
  height: 36px;
  width: auto;
}

.header__logo-dark {
  display: none;
}

.header__logo-text {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-light);
  line-height: 1.3;
}

.header__logo-text small {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.header--scrolled .header__logo-text {
  color: var(--color-text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 2rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  border: 1px solid var(--color-text-light);
  color: var(--color-text-light);
  transition: all var(--transition-base);
}

.header--scrolled .header__entry-btn {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.header__entry-btn:hover {
  opacity: 0.8;
}

.header__menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  padding: 0.5rem;
}

.header__menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.header__menu-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-text-light);
  transition: all var(--transition-base);
}

.header__menu-label {
  font-size: 10px;
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* Menu open state */
.header.nav-open .header__menu-btn span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.header.nav-open .header__menu-btn span:nth-child(2) {
  opacity: 0;
}

.header.nav-open .header__menu-btn span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --- News Ticker --- */
.news-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 0.5rem var(--space-lg);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-normal);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.news-ticker__date {
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.news-ticker__text {
  white-space: nowrap;
}

/* --- Global Navigation Overlay --- */
.gnav-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-overlay);
  z-index: var(--z-nav-overlay);
  display: flex;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.gnav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.gnav-overlay__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gnav-overlay__bg .img-placeholder {
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.gnav-overlay__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
}

.gnav-overlay__menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl) var(--space-4xl);
  max-width: 800px;
}

.gnav-overlay__item a {
  display: block;
  color: var(--color-text-light);
}

.gnav-overlay__item-en {
  display: block;
  font-family: var(--font-en);
  font-size: var(--fs-xl);
  font-weight: 600;
  font-style: italic;
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  margin-bottom: calc(8rem / 16);
}

.gnav-overlay__item-ja {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wider);
  color: rgba(255, 255, 255, 0.7);
}

.gnav-overlay__sub {
  margin-top: var(--space-sm);
  padding-left: var(--space-sm);
}

.gnav-overlay__sub li {
  margin-bottom: 0.375rem;
}

.gnav-overlay__sub a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
}

.gnav-overlay__sub a:hover {
  color: var(--color-text-light);
  opacity: 1;
}

/* --- Page Hero (写真背景ヒーロー共通) --- */
.page-hero {
  position: relative;
  height: clamp(360px, 33.85vw, 650px);
  min-height: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* z-index 0 — 背景写真（sub-kv-reveal の z-index:3 上書きを防ぐ） */
.page-hero .page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* z-index 1 — 青オーバーレイ（::before を使用、::after は sub-kv-reveal アニメーション用） */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /*background: rgba(0, 65, 138, 0.55);*/
  z-index: 1;
}

/* z-index 4 — テキスト（sub-kv-reveal の ::after z-index:2 より上） */
.page-hero__inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: calc(44rem / 16) clamp(48px, 5.9vw, 112px) 0;
}

.page-hero__title {
  display: flex;
  flex-direction: column;
  gap: calc(10rem / 16);
}

.page-hero__en {
  font-family: var(--en-font);
  font-size: clamp(calc(41rem / 16), 3.23vw, calc(62rem / 16));
  font-style: italic;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  display: block;
}

.page-hero__ja {
  font-family: var(--jp-font);
  font-size: clamp(calc(14rem / 16), 1.25vw, calc(24rem / 16));
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #fff;
  display: block;
  margin-top: calc(8rem / 16);
}

/* --- Next Page Navigation (ct-next) --- */
.ct-next {
  background-color: #0063ae;
  padding: calc(60rem / 16) calc(76rem / 16);
}

.ct-next__card {
  position: relative;
  display: block;
  max-width: calc(1128rem / 16);
  margin: 0 auto;
  background-color: #0063ae;
  padding: calc(40rem / 16) calc(60rem / 16) calc(56rem / 16);
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.ct-next__card:hover {
  background-color: #004f8a;
}

.ct-next__label {
  display: block;
  font-family: var(--en-font);
  font-size: calc(17rem / 16);
  font-weight: 600;
  font-style: italic;
  color: #ffffff;
  line-height: 1;
  margin-bottom: calc(28rem / 16);
}

.ct-next__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(8rem / 16);
}

.ct-next__category {
  font-family: var(--en-font-sans);
  font-size: calc(11rem / 16);
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #ffffff;
  display: block;
}

.ct-next__title {
  font-family: var(--jp-font);
  font-size: calc(19rem / 16);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #ffffff;
  display: block;
}

.ct-next__chevron {
  position: absolute;
  right: calc(40rem / 16);
  top: 50%;
  transform: translateY(-50%);
  display: block;
}

.ct-next__view-more {
  display: block;
  text-align: center;
  margin-top: calc(28rem / 16);
  font-family: var(--en-font-sans);
  font-size: calc(9rem / 16);
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #ffffff;
}

.ct-next__view-more::after {
  content: '';
  display: block;
  width: calc(140rem / 16);
  margin: calc(6rem / 16) auto 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .ct-next {
    padding: calc(40rem / 16) calc(24rem / 16);
  }
  .ct-next__card {
    padding: calc(32rem / 16) calc(40rem / 16) calc(40rem / 16);
  }
  .ct-next__chevron {
    right: calc(20rem / 16);
  }
}

/* --- RECRUIT Footer Bar --- */
.recruit-bar {
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) var(--space-lg);
}

.recruit-bar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.recruit-bar__brand {
  font-family: var(--font-en);
  font-size: var(--fs-4xl);
  font-weight: 600;
  font-style: italic;
  letter-spacing: var(--tracking-tight);
  color: var(--color-primary);
}

.recruit-bar__links {
  display: flex;
  gap: var(--space-3xl);
}

.recruit-bar__link-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.recruit-bar__link-label {
  font-family: var(--font-en-sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: var(--fw-medium);
}

.recruit-bar__link-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
}

@media (max-width: 768px) {
  .recruit-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xl);
  }
  .recruit-bar__links {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* --- Footer --- */
.footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2xl);
}

.footer__brand {
  display: flex;
  align-items: center;
}

.footer__brand img {
  height: calc(40rem / 16);
  width: auto;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: calc(12rem / 16) calc(32rem / 16);
}

.footer__nav-link {
  font-size: calc(12rem / 16);
  letter-spacing: var(--tracking-normal);
}

.footer__nav-link:hover {
  opacity: 0.7;
}

.footer__bottom {
  max-width: var(--container-max);
  margin: var(--space-2xl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copyright {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: var(--tracking-normal);
}

.footer__links {
  display: flex;
  gap: var(--space-md);
}

.footer__links a {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* --- Video Modal --- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal__inner {
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  position: relative;
}

.video-modal__inner iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem;
  transition: opacity var(--transition-base);
}

.video-modal__close:hover {
  opacity: 0.7;
}

/* --- Video Thumbnail --- */
.video-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.video-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: background var(--transition-base);
}

.video-thumb:hover::before {
  background: rgba(0, 0, 0, 0.15);
}

.video-thumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px;
  height: 64px;
  border: 2px solid var(--color-text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb__play::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 16px solid var(--color-text-light);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.video-thumb__text {
  position: absolute;
  bottom: var(--space-lg);
  left: 0;
  right: 0;
  text-align: center;
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  letter-spacing: var(--tracking-wide);
  z-index: 2;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-light);
}

.scroll-indicator__text {
  font-size: 10px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-indicator__line {
  width: 1px;
  height: 40px;
  background: var(--color-text-light);
  position: relative;
  overflow: hidden;
}

.scroll-indicator__line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-text-light);
  animation: scrollLine 1.5s ease infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root {
    --space-section: 6rem;
    --header-height: 70px;
  }

  .page-hero {
    height: clamp(300px, 42vw, 430px);
  }
  .page-hero__inner {
    padding: calc(40rem / 16) calc(40rem / 16) 0;
  }

  .section-title__en {
    font-size: var(--fs-3xl);
  }

  .gnav-overlay__menu {
    grid-template-columns: 1fr;
    gap: calc(20rem / 16);
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  :root {
    --space-section: 4rem;
    --header-height: 60px;
    --fs-4xl: 2.5rem;
    --fs-3xl: 2rem;
    --fs-2xl: 1.75rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .header {
    padding: 0 var(--space-md);
  }

  .section-title__en {
    font-size: var(--fs-2xl);
  }

  .footer__nav {
    gap: calc(8rem / 16) calc(20rem / 16);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .gnav-overlay__inner {
    align-items: center;
    padding: calc(72rem / 16) calc(24rem / 16) calc(32rem / 16);
  }

  .gnav-overlay__menu {
    gap: calc(14rem / 16);
    width: 100%;
    max-width: calc(360rem / 16);
  }

  .gnav-overlay__item-en {
    font-size: clamp(calc(22rem / 16), 7vw, calc(30rem / 16));
    line-height: 1;
    margin-bottom: calc(7rem / 16);
  }

  .gnav-overlay__item-ja {
    font-size: calc(11rem / 16);
    line-height: 1.5;
  }

  .page-hero {
    height: calc(340rem / 16);
  }
  .page-hero__inner {
    padding: calc(56rem / 16) calc(24rem / 16) 0;
  }

}

/* ============================================================
   リファレンス（e-TEC）から取り込み共通コンポーネント
   新規ページはこれらのクラスを使用すること
   ============================================================ */

/* --- .cViewMore — VIEW MORE ボタン（hover アニメーション付き） --- */
/* リファレンス（e-TEC）から取り込み */
.cViewMore {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 150px;
  padding-bottom: calc(5rem / 16);
  overflow: hidden;
}

.cViewMore::before,
.cViewMore::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background-color: currentcolor;
}

.cViewMore::before {
  transition: transform .56s var(--ease-out);
  transform: scaleX(0);
  transform-origin: left;
}

.cViewMore::after {
  left: 0;
  transition: transform .56s var(--ease-out) .28s;
  transform: scaleX(1);
  transform-origin: right;
}

.cViewMore__inner {
  display: flex;
  height: calc(10rem / 16);
  margin-right: -1px;
  overflow: hidden;
}

.cViewMore__text {
  position: relative;
  display: inline-block;
  height: 100%;
  font-family: var(--en-font);
  font-size: calc(10rem / 16);
  line-height: 1;
  letter-spacing: .15em;
  transition: transform .8s var(--ease-out);
}

.cViewMore__text::after {
  position: absolute;
  bottom: -100%;
  left: 0;
  content: "VIEW MORE";
}

@media screen and (min-width: 768px) {
  a:hover .cViewMore::before {
    transition: transform .56s var(--ease-out) .28s;
    transform: scaleX(1);
  }

  a:hover .cViewMore::after {
    transition: transform .56s var(--ease-out);
    transform: scaleX(0);
  }

  a:hover .cViewMore__text {
    transform: translateY(-101%);
  }
}

/* --- .cFooterRecruit — RECRUIT フッターバー --- */
/* リファレンス（e-TEC）から取り込み。既存 .recruit-bar は当面残置 */
.cFooterRecruit {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(36rem / 16);
  padding: calc(19rem / 16) 10px calc(31rem / 16);
  margin-bottom: calc(65rem / 16);
  color: var(--alt-blend-mode);
}

.cFooterRecruit::before,
.cFooterRecruit::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  content: "";
  background-color: currentcolor;
  transition: transform .8s var(--ease-out);
  transform: scaleX(0);
}

.cFooterRecruit::before {
  top: 0;
  transform-origin: left;
}

.cFooterRecruit::after {
  bottom: 0;
  transform-origin: right;
}

.cFooterRecruit__headline {
  position: relative;
  width: fit-content;
  font-size: calc(45rem / 16);
  line-height: 1.15;
}

.cFooterRecruit__headline::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  content: "";
  background-color: currentcolor;
  transition: transform .8s var(--ease-out) .2s;
  transform: scaleX(0);
  transform-origin: left;
}

.cFooterRecruit__headline.is-active::after {
  transform: scaleX(1);
}

.cFooterRecruit__links {
  display: flex;
  flex-direction: column;
  gap: calc(30rem / 16);
  margin-left: 3px;
}

.cFooterRecruit__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(7rem / 16);
  width: fit-content;
  min-width: 249px;
  padding-right: 30px;
  padding-bottom: calc(5rem / 16);
}

.cFooterRecruit__link::before,
.cFooterRecruit__link::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background-color: currentcolor;
}

.cFooterRecruit__link::before {
  transition: transform .56s var(--ease-out);
  transform: scaleX(0);
  transform-origin: left;
}

.cFooterRecruit__link::after {
  left: 0;
  transition: transform .56s var(--ease-out) .28s;
  transform: scaleX(1);
  transform-origin: right;
}

.cFooterRecruit__link_entitle {
  font-family: var(--en-font);
  font-size: calc(10rem / 16);
  line-height: 1.7;
  letter-spacing: .15em;
}

.cFooterRecruit__link_title {
  overflow: hidden;
  font-size: calc(20rem / 16);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .05em;
}

.cFooterRecruit__link_titleText {
  position: relative;
  display: inline-block;
}

.cFooterRecruit__link_titleText::after {
  position: absolute;
  bottom: -100%;
  left: 0;
  content: attr(data-txt);
}

.cFooterRecruit.is-active::before,
.cFooterRecruit.is-active::after {
  transform: scaleX(1);
}

@media screen and (min-width: 768px) {
  .cFooterRecruit {
    flex-direction: row;
    gap: min(66px, 4.83vw);
    align-items: flex-start;
    width: 100%;
    width: min(1167px, 85.43vw);
    padding: calc(43rem / 16) 0 calc(54rem / 16);
    margin: 0 auto;
  }

  .cFooterRecruit__headline {
    flex-shrink: 0;
    font-size: calc(56rem / 16);
    line-height: 1.14;
  }

  .cFooterRecruit__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: min(39px, 2.86vw);
    margin-top: calc(14rem / 16);
    margin-bottom: 2px;
    margin-left: 0;
  }

  .cFooterRecruit__link {
    padding-right: min(30px, 2.2vw);
  }

  .cFooterRecruit__link_titleText {
    transition: transform .8s var(--ease-out);
  }

  .cFooterRecruit__link:hover::before {
    transition: transform .56s var(--ease-out) .28s;
    transform: scaleX(1);
  }

  .cFooterRecruit__link:hover::after {
    transition: transform .56s var(--ease-out);
    transform: scaleX(0);
  }

  .cFooterRecruit__link:hover .cFooterRecruit__link_titleText {
    transform: translateY(-101%);
  }
}

/* --- .cFooterRecruit-wrap — RECRUIT フッターバー（全ページ統一） ---
   青背景 + 上下白線 + 横並びレイアウト。
   TOPと下層ページですべて同じ見た目に統一。 */
.cFooterRecruit-wrap {
  position: relative;
  background-color: var(--blue-entry);
  padding: 0;
}

.cFooterRecruit-wrap .cFooterRecruit {
  color: var(--white);
  margin-bottom: 0;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  padding: calc(48rem / 16) calc(40rem / 16);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* 上下の白線（カンプ準拠：常時表示） */
.cFooterRecruit-wrap .cFooterRecruit::before,
.cFooterRecruit-wrap .cFooterRecruit::after {
  background-color: rgba(255, 255, 255, 0.35);
  transform: scaleX(1);
  height: 1px;
}

.cFooterRecruit-wrap .cFooterRecruit__headline {
  color: var(--white);
  font-family: var(--en-font);
  font-style: italic;
  font-weight: 600;
  font-size: 48px;
  letter-spacing: 0;
  line-height: 1.06;
  flex-shrink: 0;
  margin-right: calc(60rem / 16);
}

.cFooterRecruit-wrap .cFooterRecruit__headline::after {
  display: none;
}

/* ============================================================
   sub-header ロゴ：ユーザー提供 logo_bk.svg は
   「マーク + 東信化学工業株式会社」一体型のため、
   HTML内 .sub-header__logo-text は非表示にしてSVGのみ表示
   ============================================================ */
.sub-header__logo-mark {
  width: 180px !important;
  height: auto !important;
  flex-shrink: 0;
}

.sub-header__logo-text {
  display: none !important;
}

/* MV内 wh ロゴも同様（テキストはSVG内蔵） */
.mv__logo-mark {
  width: 220px;
  height: auto;
  flex-shrink: 0;
}

.mv__logo-mark svg {
  width: 100%;
  height: auto;
  display: none; /* インラインSVGは隠す、imgベースに移行 */
}

.mv__logo-text {
  display: none;
}

.cFooterRecruit-wrap .cFooterRecruit__links {
  flex-direction: row;
  gap: calc(80rem / 16);
  margin-left: 0;
  flex-wrap: nowrap;
}

.cFooterRecruit-wrap .cFooterRecruit__link {
  min-width: auto;
  padding-right: 0;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cFooterRecruit-wrap .cFooterRecruit__link::before,
.cFooterRecruit-wrap .cFooterRecruit__link::after {
  background-color: rgba(255, 255, 255, 0.4);
}

.cFooterRecruit-wrap .cFooterRecruit__link::after {
  transform: scaleX(1);
}

.cFooterRecruit-wrap .cFooterRecruit__link_entitle {
  color: #ffffff;
  font-family: var(--en-font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4em;
  line-height: 1.75;
  text-transform: uppercase;
}

.cFooterRecruit-wrap .cFooterRecruit__link_title {
  color: var(--white);
  font-family: var(--jp-font);
  font-size: calc(19rem / 16);
  font-weight: 500;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .cFooterRecruit-wrap .cFooterRecruit {
    padding: calc(40rem / 16) calc(60rem / 16);
  }

  .cFooterRecruit-wrap .cFooterRecruit__headline {
    font-size: calc(40rem / 16);
  }

  .cFooterRecruit-wrap .cFooterRecruit__links {
    gap: calc(60rem / 16);
  }
}

@media (max-width: 768px) {
  .cFooterRecruit-wrap .cFooterRecruit {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(24rem / 16);
    padding: calc(40rem / 16) calc(24rem / 16);
  }

  .cFooterRecruit-wrap .cFooterRecruit__headline {
    font-size: calc(36rem / 16);
    min-width: auto;
    margin-right: 0;
  }

  .cFooterRecruit-wrap .cFooterRecruit__links {
    flex-direction: column;
    gap: calc(24rem / 16);
  }

  .cFooterRecruit-wrap .cFooterRecruit__link_title {
    font-size: calc(18rem / 16);
  }
}

/* --- 下層ページの共通ヒーロー（色とタイポグラフィのみ統一） ---
   サイズ・余白は各ページCSSで個別に管理。色とフォントだけグローバルに統一。 */

/* 英文タイトル（Bodoni Moda Italic SemiBold） */
.message-hero__en,
.about-hero__title,
.pPerson__hero-en,
.pDetail__hero-en,
.pCrosstalk__hero-en,
.pWorkstyle__hero-en,
.pSystem__hero-en,
.pRecruit__heroTitleEn,
.pEntry__heroTitleEn {
  font-family: var(--en-font);
  font-size: calc(80rem / 16);
  font-weight: 600;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-body);
  display: block;
}

/* 和文サブテキスト */
.message-hero__ja,
.about-hero__subtitle,
.pPerson__hero-ja,
.pDetail__hero-ja,
.pCrosstalk__hero-ja,
.pWorkstyle__hero-ja,
.pSystem__hero-ja,
.pRecruit__heroTitleJa,
.pEntry__heroTitleJa {
  font-family: var(--jp-font);
  font-size: calc(14rem / 16);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-body);
  display: block;
  margin-top: calc(12rem / 16);
}

/* ============================================================
   cHoverShutter — リファレンスサイト準拠
   デスクトップのみ。::after でスキューした色面がホバーで出現。
   --shutter-color カスタムプロパティで色を指定。
   ============================================================ */
@media screen and (min-width: 768px) {
  .cHoverShutter {
    position: relative;
    z-index: 1;
    overflow: hidden;
  }

  .cHoverShutter::after {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 200%;
    height: 100%;
    content: "";
    background-color: var(--shutter-color);
    transition: transform 0.24s cubic-bezier(0.47, 0, 0.745, 0.715);
    transform: translateX(110%);
  }

  .cHoverShutter:hover::after {
    transition: transform 0.36s var(--ease-out);
    transform: translateX(-10%) skewX(-5deg);
  }
}

/* ============================================================
   KV Reveal Animation — cStory skew-reveal 準拠
   IntersectionObserver → .is-active トリガー
   ::after = 覆いかぶさるオーバーレイがスキューして退場
   画像は scale(1.06) → scale(1)
   ============================================================ */

/* --- 共通変数 --- */
:root {
  --kv-overlay-color: #cdd8d9; /* reference blue-gray */
  --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- KV画像ラッパー（各ページで適用） --- */
.kv-reveal {
  position: relative;
  overflow: hidden;
}

.kv-reveal::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--kv-overlay-color);
  z-index: 2;
  transition: transform 0.68s var(--ease-out);
  transform: translateX(0);
}

.kv-reveal__inner {
  width: 100%;
  height: 100%;
  transition: transform 1.6s var(--ease-out);
  transform: scale(1.06);
}

.kv-reveal__inner img,
.kv-reveal__inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* is-active: overlay skews away, image un-scales */
.kv-reveal.is-active::after {
  transform: skewX(-26deg) translateX(-130%);
}

.kv-reveal.is-active .kv-reveal__inner {
  transform: scale(1);
}

/* --- 下層ページ KV 用（背景色ベースのヒーロー）--- */
.sub-kv-reveal {
  position: relative;
  overflow: hidden;
}

.sub-kv-reveal::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--kv-overlay-color);
  z-index: 2;
  transition: transform 0.68s var(--ease-out);
  transform: translateX(0);
}

.sub-kv-reveal.is-active::after {
  transform: skewX(-26deg) translateX(-130%);
}

/* ヒーロー内コンテンツをオーバーレイより上に */
.sub-kv-reveal > *:not(style) {
  position: relative;
  z-index: 3;
}

/* ヒーロー内テキストの出現アニメーション */
.sub-kv-reveal .kv-text {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease-out) 0.4s, transform 0.8s var(--ease-out) 0.4s;
}

.sub-kv-reveal.is-active .kv-text {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   sub-header — 白スティッキーヘッダー（全ページ共通）
   ============================================================ */
.sub-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: var(--z-header);
  box-shadow: none;
  border-bottom: 1px solid #e8e7e7;
}

.sub-header__logo {
  display: flex;
  align-items: center;
  gap: calc(8rem / 16);
  color: var(--text-body);
  text-decoration: none;
}

.sub-header__logo:hover {
  opacity: 0.75;
}

.sub-header__logo-mark {
  flex-shrink: 0;
}

.sub-header__logo-text {
  display: none;
}

.sub-header__logo-company {
  display: block;
  font-family: var(--jp-font);
  font-size: calc(13rem / 16);
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.3;
  color: var(--text-body);
}

.sub-header__logo-sub {
  display: block;
  font-family: var(--en-font-sans);
  font-size: calc(9rem / 16);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sub-header__actions {
  display: flex;
  align-items: center;
  gap: calc(4rem / 16);
}

.sub-header__entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(10rem / 16) calc(28rem / 16);
  font-family: var(--en-font-sans);
  font-size: calc(12rem / 16);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  background-color: var(--blue-entry);
  color: var(--white);
  border: none;
  text-decoration: none;
  transition: background-color var(--transition-base);
}

.sub-header__entry-btn:hover {
  background-color: var(--blue-entry-dark);
  opacity: 1;
}

.sub-header__menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(3rem / 16);
  cursor: pointer;
  padding: calc(8rem / 16) calc(12rem / 16);
  background: none;
  border: none;
}

.sub-header__menu-btn {
  display: flex;
  flex-direction: column;
  gap: calc(5rem / 16);
  width: calc(22rem / 16);
}

.sub-header__menu-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-body);
  transition: all var(--transition-base);
}

.sub-header__menu-label {
  font-family: var(--en-font-sans);
  font-size: calc(9rem / 16);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-body);
}

/* nav-open 時：ヘッダーをオーバーレイ(1050)より上に配置し、
   背景を透過にしてXボタンだけ見せる */
.sub-header.nav-open {
  z-index: 1060;
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
.sub-header.nav-open .sub-header__logo {
  opacity: 0;
  pointer-events: none;
}
.sub-header.nav-open .sub-header__entry-btn {
  opacity: 0;
  pointer-events: none;
}
.sub-header.nav-open .sub-header__menu-btn span {
  background-color: #fff !important;
}
.sub-header.nav-open .sub-header__menu-label {
  color: #fff !important;
}
.sub-header.nav-open .sub-header__menu-btn span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.sub-header.nav-open .sub-header__menu-btn span:nth-child(2) {
  opacity: 0;
}
.sub-header.nav-open .sub-header__menu-btn span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .sub-header {
    padding: 0 calc(16rem / 16);
    height: calc(56rem / 16);
  }

  .sub-header__logo-company {
    font-size: calc(11rem / 16);
  }

  .sub-header__entry-btn {
    display: none;
  }

  .sub-header__logo-sub {
    font-size: calc(8rem / 16);
  }
}

/* ============================================================
   下層ヒーロー重ねヘッダー（ABOUT以外）
   ============================================================ */
.page-hero-overlay .sub-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  transition: background-color 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
}

.page-hero-overlay .sub-header__logo {
  color: #0b2b3d;
}

.page-hero-overlay .sub-header__menu-btn span,
.page-hero-overlay .sub-header.nav-open .sub-header__menu-btn span {
  background-color: rgba(255, 255, 255, 0.78);
}

.page-hero-overlay .sub-header__menu-label {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero-overlay .sub-header.sub-header--scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e8e7e7;
}

.page-hero-overlay .sub-header.sub-header--scrolled .sub-header__menu-btn span {
  background-color: var(--text-body);
}

.page-hero-overlay .sub-header.sub-header--scrolled .sub-header__menu-label {
  color: var(--text-body);
}

.page-hero-overlay .sub-kv-reveal > :is(.page-hero__bg, .message-hero__bg, .pi-hero__bg, .pd-hero__bg) {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-overlay .sub-kv-reveal > :is(.page-hero__inner, .message-hero__inner, .pi-hero__inner, .pd-hero__inner, .pEntry__heroInner) {
  position: relative;
  z-index: 4;
}

@media (max-width: 768px) {
  .page-hero-overlay .sub-header {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #e8e7e7;
  }

  .page-hero-overlay .sub-header__logo {
    min-width: 0;
  }

  .page-hero-overlay .sub-header__logo-mark {
    width: min(150px, calc(100vw - 108px)) !important;
  }

  .page-hero-overlay .sub-header__actions {
    display: block;
    margin-left: auto;
  }

  .page-hero-overlay .sub-header__entry-btn {
    display: none;
  }

  .page-hero-overlay .sub-header__menu {
    position: absolute;
    top: 50%;
    right: calc(12rem / 16);
    transform: translateY(-50%);
    padding: calc(6rem / 16);
  }

  .page-hero-overlay .sub-header__menu-btn span,
  .page-hero-overlay .sub-header .header__menu-btn span {
    background-color: var(--text-body);
  }

  .page-hero-overlay .sub-header__menu-label,
  .page-hero-overlay .sub-header .header__menu-label {
    color: var(--text-body);
  }
}

/* --- .cTextAnime — テキスト 1 文字ずつアニメーション --- */
/* リファレンス（e-TEC）から取り込み */
.cTextAnime {
  --text-anime-delay: 0s;
}

.cTextAnime .char {
  display: inline-block;
  opacity: 0;
  transition: transform 1.2s var(--ease-out), opacity 1.2s var(--ease-out);
  transform: translateX(0.3em) scaleX(2);
}

.cTextAnime.is-active .char {
  opacity: 1;
  transform: translateX(0) scaleX(1);
}

.is-active .cTextAnime .char {
  opacity: 1;
  transform: translateX(0) scaleX(1);
}

/* ----------------------------------------------------------------
   PAGE TRANSITION OVERLAY
   ---------------------------------------------------------------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #0063ae;
  pointer-events: none;
  animation: pt-reveal 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}

@keyframes pt-reveal {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}

@keyframes pt-exit {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition {
    display: none;
  }
}
