/* ========================================
   FOL コーポレートサイト
======================================== */

:root {
  /* ── 基本カラー ── */
  --ink: #0A1628;
  --ink-soft: #1A2A42;
  --blue: #0F4F9C;
  --blue-bright: #2D7CD9;
  /* 見出し用アクセント：ロゴ「L」の青 #0073DB を明るめに調整 */
  --blue-heading: #003E86;
  --blue-heading-bright: #3D97F2;
  --gold: #B89858;
  --cream: #FAF7F0;
  --white: #FFFFFF;
  --soft: #F4F5F8;
  --line: #E5E8ED;
  --mid: #4E5A70;
  --alert-red: #B3261E;

  /* ── セクション背景用ティント ── */
  --bg-white: #FFFFFF;
  --bg-mist: #F7F9FC;
  --bg-cream: #FAF7F0;
  --bg-pearl: #F2F4F8;
  --bg-deep: #0A1628;
  --bg-blue-tint: #EBF1F9;

  /* ── アニメーション用イージング ── */
  --ease-shiseido: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* ── タイポグラフィ ── */
  --font-jp: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  --font-jp-display: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --font-en: "Fraunces", Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* body ではなく .site-main に付与する。
   .reveal--left/.reveal--right の初期状態（transform: translateX(±32px)）は
   コンテナ端に接した要素をビューポート外へわずかにはみ出させ、横方向の
   スクロール可能領域を生む。body に overflow-x: hidden を置くと、実際に
   はみ出しが発生したページ（/process/ や /career/ など、この2クラスを
   多用する箇所がある）で、固定ヘッダー（position: fixed）がスクロールに
   追従してしまう挙動が一部ブラウザで起きるため、header/mobile-nav の外側
   にあたる .site-main 側でクリップする。 */
.site-main { overflow-x: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ========================================
   セクション共通
======================================== */

section { padding: clamp(56px, 8vw, 100px) 0; position: relative; }
section.bg-white  { background: var(--bg-white); color: var(--ink); }
section.bg-mist   { background: var(--bg-mist); color: var(--ink); }
section.bg-cream  { background: var(--bg-cream); color: var(--ink); }
section.bg-pearl  { background: var(--bg-pearl); color: var(--ink); }
section.bg-blue   { background: var(--bg-blue-tint); color: var(--ink); }
section.bg-deep   { background: var(--bg-deep); color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-heading);
  margin-bottom: 18px;
  position: relative;
  padding-left: 32px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--blue-heading);
}
.bg-deep .eyebrow { color: var(--gold); }
.bg-deep .eyebrow::before { background: var(--gold); }

.h2 {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(28px, 4.8vw, 52px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  color: var(--blue-heading);
}
.h2 .en {
  display: block;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--blue-heading);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.bg-deep .h2 { color: var(--white); } /* 暗色セクションの見出しは可読性優先で白のまま */
.bg-deep .h2 .en { color: var(--gold); }

.h3 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.4;
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(15.5px, 1.8vw, 17px);
  line-height: 1.95;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
/* リード文の句点区切り改行：SPでは改行せず、PCでのみ改行する */
.u-pc-only { display: none; }
@media (min-width: 721px) {
  .u-pc-only { display: inline; }
}
.bg-deep .lead { color: rgba(255,255,255,0.85); }

.en-sub {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: 0.03em;
  color: var(--blue-heading);
}
.bg-deep .en-sub { color: var(--gold); }

.section-header {
  margin-bottom: clamp(30px, 4.5vw, 46px);
}

/* ========================================
   アニメーション（資生堂インスパイア）
======================================== */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 1000ms var(--ease-shiseido),
    transform 1000ms var(--ease-shiseido);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger > .reveal:nth-child(2) { transition-delay: 100ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 200ms; }
.stagger > .reveal:nth-child(4) { transition-delay: 300ms; }
.stagger > .reveal:nth-child(5) { transition-delay: 400ms; }
.stagger > .reveal:nth-child(6) { transition-delay: 500ms; }

.reveal--left  {
  opacity: 0;
  transform: translate(-32px, 0);
  transition:
    opacity 1000ms var(--ease-shiseido),
    transform 1000ms var(--ease-shiseido);
}
.reveal--right {
  opacity: 0;
  transform: translate(32px, 0);
  transition:
    opacity 1000ms var(--ease-shiseido),
    transform 1000ms var(--ease-shiseido);
}
.reveal--left.is-visible,
.reveal--right.is-visible { opacity: 1; transform: translate(0, 0); }

.reveal--scale {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 1100ms var(--ease-shiseido),
    transform 1100ms var(--ease-shiseido);
}
.reveal--scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--scale, .reveal--left, .reveal--right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero .reveal-on-load { animation: none !important; opacity: 1 !important; transform: none !important; }
}

@media (max-width: 720px) {
  .reveal, .reveal--left, .reveal--right { transform: translateY(24px); }
  .reveal--left { transform: translate(-24px, 0); }
  .reveal--right { transform: translate(24px, 0); }
}

/* ========================================
   Header
======================================== */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120; /* モバイルナビ(105)より前面に。バーガー(×)を常に操作可能に保つ */
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: border-color 300ms var(--ease-smooth), background 300ms var(--ease-smooth);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.1;
}
.logo__img {
  height: 58px;
  width: auto;
  display: block;
  transition: opacity 240ms var(--ease-smooth);
}
.logo:hover .logo__img { opacity: 0.8; }
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 12px;
  color: var(--mid);
}
.logo__text strong {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}@media (max-width: 720px) {
  .logo__img { height: 58px; }
  .logo__text { display: none; }
}

.nav {
  display: none;
  align-items: center;
  gap: clamp(20px, 2.6vw, 24px);
}
.nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  transition: color 220ms var(--ease-smooth);
}
.nav a:hover { color: var(--blue); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-smooth);
}
.nav a:hover::after { transform: scaleX(1); }

/* .nav a より詳細度を上げ、左右パディングが .nav a の指定で潰されないようにする */
.nav a.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--blue-heading);
  color: var(--white) !important;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 220ms var(--ease-smooth), transform 220ms var(--ease-smooth);
}
.nav__cta:hover { background: var(--blue-heading-bright); }
.nav__cta::after { display: none; }

.burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 110;
}
.burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 320ms var(--ease-smooth), opacity 220ms var(--ease-smooth);
}
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg-white);
  z-index: 105;
  padding: 96px 24px 48px;
  transform: translateX(100%);
  transition: transform 400ms var(--ease-shiseido);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-nav > ul > li:last-child > a { border-bottom: 0; }
.mobile-nav__en {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: 12px;
  color: var(--blue-heading);
  margin-left: 12px;
}
/* ========================================
   モバイルナビ：カテゴリーの開閉（アコーディオン）
   下層項目が多いカテゴリーを <details>/<summary> で折りたたむ。
   開閉アニメーションは FAQ（.faq__item）と同じ仕組みを JS 側で流用する。
======================================== */
.mobile-nav__group-item { margin-bottom: 4px; }
.mobile-nav__group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.mobile-nav__group-toggle::-webkit-details-marker { display: none; }
.mobile-nav__group-toggle::after {
  content: "+";
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--blue);
  transition: transform 320ms var(--ease-shiseido);
  flex-shrink: 0;
}
.mobile-nav__group.is-open .mobile-nav__group-toggle::after { transform: rotate(45deg); }
.mobile-nav ul.mobile-nav__submenu {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0 8px 16px;
  background: var(--bg-mist);
}
.mobile-nav__submenu-item a {
  padding: 9px 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.mobile-nav__submenu-item:last-child a { border-bottom: 0; }

/* お問い合わせをボタン風に。.mobile-nav a より詳細度を上げて基本スタイルを打ち消す */
.mobile-nav a.mobile-nav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--blue-heading);
  color: var(--white);
  border: none;
  border-radius: 3px;
  text-align: center;
}
.mobile-nav a.mobile-nav__cta .mobile-nav__en {
  color: var(--white);
  opacity: 0.8;
}

@media (min-width: 1140px) {
  .nav { display: flex; }
  .burger { display: none; }
  .mobile-nav { display: none; }
}

/* ========================================
   Hero
======================================== */

.hero {
  background: var(--bg-white);
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  /* トップページは背景画像を全面表示 */
  background-image: url("../img/hero/hero-bg-top.webp");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: heroBgIn 1600ms 200ms var(--ease-shiseido) forwards;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 左側はキャッチコピーの可読性を保つため、白のグラデーションで画像を少し薄く見せる */
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.6) 45%,
    rgba(255, 255, 255, 0) 82%
  );
}
@keyframes heroBgIn {
  to { opacity: 1; }
}
.hero__inner {
  /* 左右パディングを .container 同等＋左に余裕を持たせてバランスを取る */
  /* 上下は画面の高さに応じて詰め、リード文が増えてもボタンが1画面に収まるようにする */
  padding: clamp(104px, 15vh, 140px) clamp(20px, 5vw, 48px) clamp(56px, 9vh, 80px) clamp(24px, 6vw, 88px);
  width: 100%;
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) {
  /* モバイルは画面全体にテキストが重なるため、白のグラデーションを強めて可読性を確保 */
  .hero__bg::after {
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.75) 55%,
      rgba(255, 255, 255, 0.4) 100%
    );
  }
}
.hero__eyebrow {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: 0.12em;
  color: var(--blue-heading);
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(34px, min(6.8vw, 8.4vh), 72px);
  line-height: 1.18;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero__title span {
  display: block;
}
.hero__title .accent {
  color: var(--blue-heading);
}
.hero__sub {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 1.8vw, 20px);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: clamp(20px, 3.5vh, 32px);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: background 240ms var(--ease-smooth), transform 240ms var(--ease-smooth), border-color 240ms var(--ease-smooth);
}
.btn--primary {
  background: var(--blue-heading);
  color: var(--white);
}
.btn--primary:hover { background: var(--blue-heading-bright); }
.btn--ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn__arrow {
  width: 14px; height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 240ms var(--ease-smooth);
}
.btn__arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.hero .reveal-on-load {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1200ms var(--ease-shiseido) forwards;
}
.hero .reveal-on-load:nth-child(1) { animation-delay: 200ms; }
.hero .reveal-on-load:nth-child(2) { animation-delay: 400ms; }
.hero .reveal-on-load:nth-child(3) { animation-delay: 600ms; }
.hero .reveal-on-load:nth-child(4) { animation-delay: 750ms; }
.hero .reveal-on-load:nth-child(5) { animation-delay: 900ms; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--mid);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  padding-top: 40px;
  z-index: 2;
}
/* SPはボタンと重なるため表示しない */
@media (max-width: 720px) {
  .hero__scroll { display: none; }
}
.hero__scroll::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 28px;
  background: var(--mid);
  animation: scrollLine 2.2s var(--ease-smooth) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================
   About
======================================== */

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (min-width: 880px) {
  .about__grid { grid-template-columns: 1fr 1fr; }
}

.about__visual {
  background: linear-gradient(160deg, var(--white) 0%, var(--bg-mist) 100%);
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.about__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 800ms var(--ease-shiseido);
}
.about__visual:hover img { transform: scale(1.02); }
.about__visual svg { width: 100%; height: auto; }

.about__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}
.about__points li {
  display: flex;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.about__points li:last-child { border-bottom: 0; }
.about__points .num {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--blue-heading);
  min-width: 36px;
  padding-top: 2px;
}
.about__points strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
}
.about__points p { font-size: 14.5px; color: var(--mid); line-height: 1.8; }

/* ========================================
   Philosophy（FOLの組織理念）
======================================== */
.philosophy__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 56px);
  align-items: start;
}
@media (min-width: 880px) {
  .philosophy__grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .philosophy__detail {
    padding-left: clamp(36px, 4vw, 56px);
    border-left: 1px solid var(--line);
  }
}
.philosophy__en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.philosophy__en span {
  display: block;
  font-style: italic;
  font-weight: 400;
  margin-top: 0.15em;
}
/* F・O・L の頭文字を社名として強調する */
.philosophy__initial {
  font-style: inherit;
  color: var(--blue-heading);
}
.philosophy__catch {
  margin-top: clamp(28px, 4vw, 40px);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.9;
  color: var(--ink);
}
.philosophy__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  font-size: 12px;
  color: var(--mid);
  margin-bottom: 14px;
}
.philosophy__label .en {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-heading);
}
.philosophy__list { list-style: none; border-top: 1px solid var(--line); }
.philosophy__list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.philosophy__attitude {
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--bg-mist);
  border-left: 3px solid var(--blue-heading);
}
.philosophy__attitude .philosophy__label { margin-bottom: 6px; }
.philosophy__attitude-text {
  font-weight: 900;
  font-size: clamp(20px, 2.2vw, 24px);
  color: var(--blue-heading);
  line-height: 1.5;
}

/* ========================================
   Era
======================================== */

#era {
  position: relative;
  overflow: hidden;
}
.era__bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/deco/wave-divider.png");
  background-repeat: no-repeat;
  background-position: center 56%;
  background-size: 130% auto;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1600ms var(--ease-shiseido);
}
.era__bg.is-visible { opacity: 0.65; }
.era__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.35) 35%,
    rgba(255, 255, 255, 0.35) 65%,
    rgba(255, 255, 255, 0.85) 100%
  );
}
#era .container { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .era__bg { background-size: 220% auto; background-position: center 60%; }
  .era__bg.is-visible { opacity: 0.5; }
}

.era__big {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(26px, 4.6vw, 48px);
  line-height: 1.4;
  letter-spacing: 0.005em;
  max-width: 1010px;
  margin: 0;
  text-align: left;
}
.era__big .phrase { display: inline-block; }
.era__big .accent { color: var(--blue-heading); }
.era__sub {
  text-align: left;
  margin-top: 40px;
  margin-left: 0;
  margin-right: 0;
  color: var(--ink-soft);
  line-height: 2;
}
/* ========================================
   Process
======================================== */

/* 写真とテキストを左右交互に配置し、視線に動きを出すレイアウト */
.opsflow {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 88px);
}
.opsflow__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.opsflow__row--reverse .opsflow__media { order: 2; }
.opsflow__media {
  margin: 0;
  position: relative;
}
/* 写真左上の工程名ラベル（写真には文字を焼き込まず、見出しと同じ文言をここで重ねる） */
.opsflow__label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.45em 1em 0.5em;
  background: rgba(10, 22, 40, 0.72);
  color: var(--white);
  font-weight: 700;
  font-size: clamp(14px, 1.8vw, 22px);
  letter-spacing: 0.06em;
  line-height: 1.3;
  border-radius: 4px 0 4px 0;
}
.opsflow__media img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 20px 44px -18px rgba(15, 79, 156, 0.28);
}
.opsflow__body .h3 { margin-bottom: 6px; }
.opsflow__body .en {
  display: block;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.opsflow__body .desc {
  color: var(--ink-soft);
  max-width: 480px;
}
@media (max-width: 780px) {
  /* モバイルは縦積み（写真→テキストの順で統一）。
     ステップ内（写真↔テキスト）は詰め、ステップ間（01→02など）は広げて
     どこまでが1ステップかを分かりやすくする */
  .opsflow { gap: 64px; }
  .opsflow__row { grid-template-columns: 1fr; gap: 12px; }
  .opsflow__row--reverse .opsflow__media { order: 0; }
}
.process__step {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--blue-heading);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.process__step .dot {
  width: 6px; height: 6px;
  background: var(--blue-heading);
  border-radius: 50%;
}
/* ========================================
   Principles
======================================== */

.principles__intro {
  margin-bottom: clamp(32px, 5vw, 52px);
  color: var(--ink-soft);
  line-height: 2;
}

.principles__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.5vw, 24px);
}
@media (min-width: 880px) {
  .principles__list { grid-template-columns: repeat(2, 1fr); }
}
.principle {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  align-items: start;
}
@media (min-width: 720px) {
  .principle {
    grid-template-columns: 72px 1fr;
    gap: clamp(20px, 3vw, 32px);
    align-items: baseline;
  }
}
.principle__num {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
  color: var(--blue-heading);
  letter-spacing: 0;
}
.principle__body h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
}
.principle__body h3 .en {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: 0.6em;
  color: var(--blue-heading);
  letter-spacing: 0.03em;
}
.principle__body p {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: 720px;
}

/* ========================================
   Message
======================================== */

/* ========================================
   トップ「FOLについて」（MV直下）
   上段：搬送ラインの写真に左から斜めの白いグラデーションをかけて文章を重ねる
   下段：写真3枚を斜めの白い隙間で区切って並べる
======================================== */
section.fol-about { padding: 0; background: var(--white); }
.fol-about__main {
  position: relative;
  overflow: hidden;
}
.fol-about__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  display: block;
}
.fol-about__inner { position: relative; z-index: 1; }
.fol-about__content .section-header { margin-bottom: 0; }
.fol-about__content .lead { margin-bottom: 0; color: var(--ink-soft); word-break: auto-phrase; }
.fol-about__content::after {
  /* デザインにある文章下の縦線 */
  content: "";
  display: block;
  width: 2px;
  height: 56px;
  margin-top: clamp(28px, 4vw, 44px);
  background: var(--blue-heading);
}
@media (min-width: 880px) {
  .fol-about__main { min-height: clamp(520px, 48vw, 720px); display: flex; align-items: center; }
  .fol-about__bg { position: absolute; inset: 0; }
  .fol-about__main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(112deg, transparent 56%, rgba(45, 124, 217, 0.16) 56%, rgba(45, 124, 217, 0.16) 64%, transparent 64%),
      linear-gradient(112deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.95) 46%, rgba(255, 255, 255, 0.6) 55%, rgba(255, 255, 255, 0) 66%);
  }
  .fol-about__inner { z-index: 2; padding-block: clamp(64px, 7vw, 96px); }
  .fol-about__content { max-width: min(540px, 42%); }
}
@media (max-width: 879px) {
  /* SPは文章を白地に置き、写真はその下に横長で見せる */
  .fol-about__inner { padding-block: clamp(56px, 12vw, 72px) 32px; }
  .fol-about__main { display: flex; flex-direction: column; }
  .fol-about__bg { order: 2; }
  .fol-about__bg img { aspect-ratio: 16 / 9; height: auto; }
  .fol-about__content::after { height: 40px; }
}

.fol-about__strip {
  --slant: clamp(18px, 3.2vw, 48px);
  --gap: clamp(6px, 0.6vw, 10px);
  display: flex;
  margin-top: var(--gap);
  height: clamp(150px, 21.5vw, 320px);
}
.fol-about__photo {
  flex: 1 1 0;
  min-width: 0;
  margin-left: calc(var(--gap) - var(--slant));
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}
.fol-about__photo:first-child {
  margin-left: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}
.fol-about__photo:last-child {
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}
.fol-about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.message__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: start;
}
/* 代表写真：PCは左に固定幅の正方形、SPは本文の上に横長の枠で置く */
@media (min-width: 960px) {
  .message__inner { grid-template-columns: 300px 1fr; }
}

.message__portrait {
  background: linear-gradient(135deg, var(--bg-mist), var(--white));
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.message__portrait::before {
  content: "代表者";
  font-family: var(--font-en);
  font-style: italic;
  color: var(--mid);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.message__portrait::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 80%; height: 80%;
  background: var(--blue);
  opacity: 0.08;
  border-radius: 50%;
}
/* 写真の背景グレー（左右端の平均色）。SPの横長枠では写真の左右をこの色で埋める */
.message__portrait.has-photo {
  background: #cdcccc;
}
.message__portrait.has-photo::before,
.message__portrait.has-photo::after {
  display: none;
}
.message__portrait.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 959px) {
  .message__portrait.has-photo { aspect-ratio: 16 / 10; max-width: 480px; }
  /* 写真は枠の高さを基準に中央に置き（下端のスーツが少し切れる程度に112%）、
     左右の余りは背景色で埋める。枠は aspect-ratio で高さが決まるため、
     img の height:100% が効くよう absolute で配置する。
     写真の端と背景色のわずかな色差が線に見えないよう、左右端をぼかす */
  .message__portrait.has-photo img {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    height: 112%;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  }
}

.message__body p {
  font-family: var(--font-jp-display);
  font-weight: 400;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 2.1;
  color: var(--ink);
  margin-bottom: 24px;
}
.message__signature {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.message__signature .role {
  font-family: var(--font-jp-display);
  font-size: 12px;
  color: var(--mid);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.message__signature .name {
  font-family: var(--font-jp-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.message__signature .name-en {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--mid);
  margin-left: 12px;
}

/* ========================================
   Career (blue tint)
======================================== */

.career-chart {
  width: 100%;
  height: auto;
}
.career-chart .axis {
  stroke: var(--line);
  stroke-width: 1;
}
.career-chart .axis-label {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 11px;
  fill: var(--mid);
  letter-spacing: 0.08em;
}
.career-chart .axis-label-jp {
  font-family: var(--font-jp);
  font-size: 11px;
  fill: var(--mid);
  letter-spacing: 0.04em;
}
.career-chart .grow-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2200ms var(--ease-shiseido);
}
.career-chart.is-visible .grow-line { stroke-dashoffset: 0; }
.career-chart .grow-area {
  fill: url(#career-gradient);
  opacity: 0;
  transition: opacity 1400ms 1200ms var(--ease-shiseido);
}
.career-chart.is-visible .grow-area { opacity: 0.6; }
.career-chart .stage-marker {
  fill: var(--blue);
  opacity: 0;
  transition: opacity 600ms var(--ease-shiseido);
}
.career-chart.is-visible .stage-marker { opacity: 1; }
.career-chart.is-visible .stage-marker.s1 { transition-delay: 800ms; }
.career-chart.is-visible .stage-marker.s2 { transition-delay: 1400ms; }
.career-chart.is-visible .stage-marker.s3 { transition-delay: 2000ms; }
.career-chart .stage-marker-ring {
  fill: none;
  stroke: var(--blue-bright);
  stroke-width: 1.5;
  opacity: 0;
  transition: opacity 600ms var(--ease-shiseido);
}
.career-chart.is-visible .stage-marker-ring { opacity: 0.5; }
.career-chart .stage-label {
  font-family: var(--font-jp);
  font-size: 12px;
  font-weight: 700;
  fill: var(--ink);
  opacity: 0;
  transition: opacity 800ms var(--ease-shiseido);
}
.career-chart.is-visible .stage-label { opacity: 1; }
.career-chart.is-visible .stage-label.s1 { transition-delay: 900ms; }
.career-chart.is-visible .stage-label.s2 { transition-delay: 1500ms; }
.career-chart.is-visible .stage-label.s3 { transition-delay: 2100ms; }

.pattern__line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pattern__dot {
  fill: var(--white);
  stroke: var(--blue);
  stroke-width: 2.5;
}
/* ステップアップ図のラベル */
.pattern__val {
  fill: var(--blue);
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 15px;
  text-anchor: middle;
}
.pattern__yr {
  fill: var(--mid);
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 11px;
  text-anchor: middle;
}
.pattern__stages {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: stage;
}
.pattern__stages li {
  position: relative;
  padding: 0 0 16px 26px;
  margin-bottom: 14px;
  border-left: 2px solid var(--line);
}
.pattern__stages li:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-left-color: transparent;
}
.pattern__stages li::before {
  counter-increment: stage;
  content: counter(stage);
  position: absolute;
  left: -11px;
  top: -2px;
  width: 20px;
  height: 20px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 11px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pattern__role {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 4px;
}
.pattern__task {
  display: block;
  font-size: 13px;
  line-height: 1.85;
  color: var(--mid);
}

/* 受け入れと育成の仕組み：派遣スタッフ向けステップアップ */
.career__quote {
  max-width: 860px;
  margin: 0 0 32px;
  padding: 26px 30px;
  background: var(--white);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  box-shadow: 0 14px 36px -26px rgba(15, 79, 156, 0.4);
}
.career__quote p {
  font-size: clamp(16px, 2.1vw, 20px);
  font-weight: 700;
  line-height: 2;
  color: var(--ink);
  margin: 0;
}
.career__path {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 48px);
}
.career__path-chart {
  width: 100%;
  height: auto;
  display: block;
  max-width: 860px;
  margin: 0 auto 40px;
  overflow: visible;
}
/* ワイドviewBox(760)のため、チャート内文字は画面幅に応じてSVG単位で拡大する */
.career__path-chart .pattern__val { font-size: 17px; }
.career__path-chart .pattern__yr { font-size: 13px; }
@media (max-width: 720px) {
  .career__path-chart .pattern__val { font-size: 34px; }
  .career__path-chart .pattern__yr { font-size: 28px; }
}
.career__path-stages {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .career__path-stages { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .career__path-stages li {
    padding-bottom: 0;
    margin-bottom: 0;
    border-left: 2px solid var(--line);
  }
}

/* ========================================
   Training
======================================== */

.training__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: stretch; /* 2枚のパネルの高さをそろえる */
}
@media (min-width: 880px) {
  .training__grid { grid-template-columns: 1fr 1fr; }
}
.training__panel {
  background: var(--bg-mist);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
  border-radius: 4px;
}
.training__panel h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.training__panel .en {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  color: var(--blue-heading);
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}
.training__panel p {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-soft);
}
.training__panel ul {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.training__panel li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
  line-height: 1.7;
}
.training__panel li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 12px; height: 1px;
  background: var(--blue);
}

/* ========================================
   Partner Agencies
======================================== */

.partners__lead {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.partners__benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(48px, 7vw, 72px);
}
@media (min-width: 720px) { .partners__benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .partners__benefits { grid-template-columns: repeat(4, 1fr); } }

.partners__benefit {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 24px;
  border-radius: 4px;
}
.partners__benefit .icon {
  width: 36px; height: 36px;
  color: var(--blue);
  margin-bottom: 20px;
}
.partners__benefit h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
}
.partners__benefit p {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.partners__cta {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(32px, 5vw, 56px);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 880px) {
  .partners__cta { grid-template-columns: 1.4fr 1fr; }
}
.partners__cta h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  margin-bottom: 10px;
}
.partners__cta p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.85;
}
.partners__cta .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}
@media (min-width: 880px) {
  .partners__cta .buttons { justify-content: flex-end; }
}

/* ========================================
   Locations
======================================== */

.locations__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) { .locations__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .locations__grid { grid-template-columns: repeat(3, 1fr); } }
/* 写真つき（上段）と写真なし（下段）を別グリッドにして、2列表示のときも
   写真の有無が同じ行に混ざらないようにしている */
.locations__grid + .locations__grid { margin-top: 20px; }

.location {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 4px;
  transition: transform 360ms var(--ease-smooth);
}
.location:hover { transform: translateY(-3px); }
.location .tag {
  display: inline-block;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--blue-heading);
  margin-bottom: 12px;
  padding: 3px 10px;
  border: 1px solid var(--blue);
  border-radius: 2px;
}
.location h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.location .en {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: 12px;
  color: var(--mid);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.location address {
  font-style: normal;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.8;
}
.location__map {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(15, 79, 156, 0.4);
  transition: text-decoration-color 220ms var(--ease-smooth);
}
.location__map:hover { text-decoration-color: currentColor; }
.location .meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--mid);
  line-height: 1.7;
}

/* ========================================
   Profile
======================================== */

.profile__table {
  width: 100%;
  border-collapse: collapse;
  max-width: 880px;
  margin: 0 auto;
}
.profile__table th,
.profile__table td {
  text-align: left;
  padding: 22px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.85;
  font-size: 15px;
}
.profile__table th {
  width: 30%;
  font-weight: 700;
  color: var(--blue-heading);
  letter-spacing: 0.04em;
  font-size: 14px;
}
.profile__table td { color: var(--ink-soft); }
@media (max-width: 720px) {
  .profile__table th, .profile__table td { display: block; padding: 12px 0; border-bottom: 0; }
  .profile__table th { padding-top: 16px; padding-bottom: 0; font-size: 14px; }
  .profile__table tr { border-bottom: 1px solid var(--line); }
  .profile__table tr:last-child { border-bottom: 0; }
}

/* ========================================
   会社組織図（タップ／クリックで拡大）
======================================== */
.orgchart {
  max-width: 1080px;
  margin: clamp(48px, 7vw, 80px) auto 0;
}
.orgchart__link {
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  overflow: hidden;
  cursor: zoom-in;
}
.orgchart__link img { width: 100%; height: auto; }
.orgchart__hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--mid);
  text-align: center;
}
@media (min-width: 880px) {
  .orgchart__hint { display: none; }
}

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.lightbox::backdrop { background: rgba(10, 22, 40, 0.92); }
/* 中央寄せは img 側の margin:auto で行う。justify-content:center だと
   画像が画面より広いときに左端がスクロールで届かなくなるため */
.lightbox__body {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 64px 16px 24px;
}
.lightbox__body img {
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  background: var(--white);
  border-radius: 4px;
}
/* スマホでは画面幅に縮めると文字が読めないため、実寸に近い幅で表示して
   横スクロール（＋ピンチ操作）で見てもらう */
@media (max-width: 879px) {
  .lightbox__body img { width: 1200px; max-width: none; max-height: none; }
}
.lightbox__close {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  z-index: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.lightbox__close::before,
.lightbox__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1.5px;
  background: var(--white);
}
.lightbox__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ========================================
   Contact
======================================== */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
@media (min-width: 880px) {
  .contact__grid { grid-template-columns: 1.1fr 1fr; }
}

.contact__phone {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
  border-radius: 4px;
}
.contact__phone .label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-bottom: 8px;
}
.contact__phone .tel {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 42px);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  display: inline-block;
}
.contact__phone .tel:hover { color: var(--blue); }
.contact__hours {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.contact__hours .biz {
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.contact__hours .closed {
  font-size: 13px;
  color: var(--mid);
}

.contact__form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 40px);
  border-radius: 4px;
}
.contact__form h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 22px;
}

/* ========================================
   お問い合わせフォーム：対象別タブ切り替え
======================================== */
.form-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.form-tabs__btn {
  flex: 1;
  padding: 14px 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--mid);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 240ms var(--ease-smooth), border-color 240ms var(--ease-smooth);
}
.form-tabs__btn:hover { color: var(--blue); }
.form-tabs__btn.is-active {
  color: var(--blue-heading);
  border-bottom-color: var(--blue-heading);
}
.form-tabs__panel[hidden] { display: none; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-mist);
  transition: border-color 240ms var(--ease-smooth), background 240ms var(--ease-smooth);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 100px; }
.contact__form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* ========================================
   Footer
======================================== */

.footer {
  background: var(--bg-white);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding: clamp(64px, 9vw, 100px) 0 32px;
  font-size: 13px;
  line-height: 1.85;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}
/* 各カラムは中身の幅（auto）で並べ、残りの幅をカラム間の余白に振り分ける。
   社名（nowrap）を含む左カラムが他カラムに押し潰されて折り返さないようにするため。
   880〜1199px は6カラムが収まらないので、ブランド欄だけ1行目に全幅で置く。 */
@media (min-width: 880px) {
  .footer__top {
    grid-template-columns: repeat(5, auto);
    justify-content: space-between;
    column-gap: 32px;
  }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  .footer__top { grid-template-columns: repeat(6, auto); }
  .footer__brand { grid-column: auto; }
}

.footer__brand .logo { color: var(--ink); margin-bottom: 24px; }
.footer__brand .logo__img {
  height: 56px;
}
.footer__brand .logo__text strong { color: var(--ink); }
.footer__brand p {
  color: var(--mid);
  max-width: 360px;
  font-size: 13px;
  line-height: 1.4;
}

.footer__col h4 {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--blue-heading);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--ink-soft); transition: color 220ms var(--ease-smooth); }
.footer__col a:hover { color: var(--blue-heading); }
@media (min-width: 880px) {
  .footer__col a { font-size: 14px; }
}

.footer__bottom {
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 11px;
  color: var(--mid);
  letter-spacing: 0.04em;
}
@media (min-width: 720px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer__bottom .en {
  font-family: var(--font-en);
  font-style: italic;
}

/* ========================================
   フォーカススタイル
======================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ========================================
   セレクション
======================================== */
::selection { background: var(--blue); color: var(--white); }

/* ========================================
   下層ページ上部の余白
======================================== */
/* 固定ヘッダー分のオフセット（サブセクションへのスクロール時） */
section[id] { scroll-margin-top: 88px; }

/* ページ途中のアンカー（モバイルメニューのサブ項目など）で直接ジャンプする見出しは、
   section 自体の上下余白（padding: clamp(56px,8vw,100px)）がヘッダーの下にそのまま
   乗ってしまい、見出しまでの空白が二重に広がって見える。88px からその余白ぶんを
   差し引くことで、通常スクロール時と同じ見え方に揃える。 */
#message, #philosophy, #era, #profile, #principles, #training, #voices, #workday {
  scroll-margin-top: calc(88px - clamp(56px, 8vw, 100px));
}

.site-main.is-subpage > section:first-of-type {
  /* section の基本余白（clamp(56px,8vw,100px)）は狭い画面で56pxまで縮み、
     固定ヘッダー（72px）より小さくなって見出しが隠れるため、
     ヘッダー高+余白を下回らないよう底上げする */
  padding-top: max(72px + 24px, clamp(56px, 8vw, 100px));
}

/* アクティブなナビ項目 */
.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta[aria-current="page"] { background: var(--blue-heading-bright); }
.mobile-nav a[aria-current="page"] { color: var(--blue); }
/* CTAボタン（青背景）は現在地でも白文字のまま。背景を少し明るくして現在地を示す */
.mobile-nav a.mobile-nav__cta[aria-current="page"] {
  color: var(--white);
  background: var(--blue-heading-bright);
}

/* ========================================
   FAQ（よくある質問）
======================================== */
.faq__list { max-width: 860px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 4px;
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 700;
  color: var(--ink);
  transition: color 220ms var(--ease-smooth);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--blue);
  transition: transform 320ms var(--ease-shiseido);
  flex-shrink: 0;
}
.faq__item.is-open .faq__q::after { transform: rotate(45deg); }
.faq__q:hover { color: var(--blue); }
.faq__a {
  padding: 0 4px 26px;
  color: var(--ink-soft);
  max-width: 720px;
}
/* JS無効時のフォールバック（開いた項目は常に表示） */
.faq__item[open] .faq__a { display: block; }

/* ========================================
   個人情報保護方針
======================================== */
.policy { max-width: 860px; }
.policy__list {
  list-style: none;
  counter-reset: policy;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 34px);
}
.policy__item {
  counter-increment: policy;
  position: relative;
  padding-left: 56px;
}
.policy__item::before {
  content: counter(policy);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--blue);
}
.policy__title { font-size: clamp(16px, 2vw, 19px); margin-bottom: 8px; }
.policy__item p { color: var(--ink-soft); }
.policy__item p + p { margin-top: 0.6em; }
.policy__intro {
  margin-bottom: clamp(36px, 5vw, 52px);
  color: var(--ink-soft);
}
.policy__intro p + p { margin-top: 1em; }
.policy__meta {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--mid);
  font-size: 14px;
  line-height: 1.95;
}
.policy__meta p + p { margin-top: 12px; }

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

.career__catch {
  font-weight: 900;
  font-size: clamp(22px, 3.4vw, 36px);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 18px;
}
.career__catch .accent { color: var(--blue-heading); }

@media (min-width: 880px) {
  /* :last-child も併記して、.pattern__stages li:last-child（縦並び用に下余白0・
     左線を透明にする指定）に詳細度で負けないようにする */
  .career__path-stages li,
  .career__path-stages li:last-child {
    background: var(--bg-mist);
    border-radius: 4px;
    border-left-color: var(--line);
    padding: 22px 20px 28px 48px;
  }
  .career__path-stages li::before { left: 16px; top: 22px; }
  /* カラム間（gap: 32px）の中央に置く。四角の上・右辺を45°回転させた「＞」は
     見た目が箱の右に寄るため、その分（5.5px）左へ戻す */
  .career__path-stages li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(100% + 16px);
    top: 50%;
    width: 14px;
    height: 14px;
    border-top: 3px solid var(--blue);
    border-right: 3px solid var(--blue);
    transform: translate(calc(-50% - 5.5px), -50%) rotate(45deg);
  }
}

.location__photo {
  margin: -28px -28px 18px;
}
.location__photo img {
  width: 100%;
  height: auto; /* HTML の height 属性が効くと aspect-ratio が無視されるため */
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
  display: block;
}

.partners__audiences {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
@media (min-width: 880px) {
  .partners__audiences { grid-template-columns: repeat(2, 1fr); }
}
.partners__audience {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-heading);
  border-radius: 4px;
  padding: clamp(24px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.partners__audience .aud-tag {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue-heading);
  margin-bottom: 10px;
}
.partners__audience h3 {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.partners__audience p {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.partners__audience .btn { margin-top: auto; }

.voices__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 960px) {
  .voices__grid { grid-template-columns: repeat(3, 1fr); }
}
.voice {
  /* 背景に人物のシルエット（本文の読みやすさを優先してごく薄く） */
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240'%3E%3Cg fill='%23003E86' fill-opacity='0.07'%3E%3Ccircle cx='100' cy='72' r='46'/%3E%3Cpath d='M8 240c0-72 40-110 92-110s92 38 92 110z'/%3E%3C/g%3E%3C/svg%3E") no-repeat right 16px bottom 0 / auto 68%;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
}
.voice__text {
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink);
  margin-bottom: 16px;
}
.voice__meta {
  margin-top: auto;
  font-size: 12.5px;
  color: var(--mid);
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.workday__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 880px) {
  .workday__grid { grid-template-columns: repeat(2, 1fr); }
}
.workday__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(24px, 3.5vw, 36px);
}
.workday__card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.workday__card .en {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  color: var(--blue-heading);
  margin-bottom: 18px;
  display: block;
  letter-spacing: 0.03em;
}
.workday__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.workday__timeline li {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.workday__timeline li:last-child { border-bottom: 0; }
.workday__timeline .time {
  flex: 0 0 56px;
  font-weight: 700;
  color: var(--blue);
}

/* ========================================
   重要なお知らせ（サイトアラート）
======================================== */
.site-alert {
  position: relative;
  z-index: 110;
  margin-top: 72px; /* 固定ヘッダー分のオフセット */
  padding: 16px 0;
  color: var(--white);
}
body.admin-bar .site-alert { margin-top: 104px; }
@media (max-width: 782px) {
  body.admin-bar .site-alert { margin-top: 118px; }
}
.site-alert--alert { background: var(--alert-red); }
.site-alert--notice { background: var(--gold); }
.site-alert__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.site-alert__badge {
  flex-shrink: 0;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 2px;
}
.site-alert__body { flex: 1 1 320px; }
.site-alert__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
}
.site-alert__text {
  font-size: 14px;
  line-height: 1.7;
}
.site-alert__text p { margin: 0; }
.site-alert__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.has-site-alert .hero { min-height: calc(100vh - var(--alert-h, 0px)); }

/* ========================================
   お知らせ（News）
======================================== */
.news__list { max-width: 860px; }
.news__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.news__list .news__item:first-child { border-top: 1px solid var(--line); }
.news__date {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 13px;
  color: var(--mid);
  width: 110px;
}
.news__cat {
  flex-shrink: 0;
  display: inline-block;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--blue-heading);
  padding: 3px 10px;
  border: 1px solid var(--blue);
  border-radius: 2px;
}
.news__title {
  flex: 1 1 260px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color 220ms var(--ease-smooth);
}
.news__item:hover .news__title { color: var(--blue); }
.news__empty {
  color: var(--mid);
  font-size: 14px;
}
.news__more { margin-top: clamp(28px, 4vw, 40px); }

/* ========================================
   本文（投稿・固定ページの WYSIWYG コンテンツ）
======================================== */
.entry-content {
  max-width: 780px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink-soft);
}
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-jp);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-top: 1.8em;
}
.entry-content h2 { font-size: clamp(22px, 3vw, 28px); }
.entry-content h3 { font-size: clamp(18px, 2.4vw, 22px); }
.entry-content h4 { font-size: 16px; }
.entry-content p:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child { margin-top: 0; }
.entry-content a,
.policy a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover,
.policy a:hover { color: var(--blue-heading); }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content blockquote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--blue);
  color: var(--mid);
  font-style: italic;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.entry-content figcaption {
  font-size: 12px;
  color: var(--mid);
  margin-top: 8px;
  text-align: center;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.entry-content th,
.entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
}
.entry-content th { background: var(--bg-mist); font-weight: 700; }
.entry-content hr {
  border: none;
  border-top: 1px solid var(--line);
}

/* ========================================
   ページネーション
======================================== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(32px, 5vw, 48px);
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  font-size: 14px;
  font-family: var(--font-en);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-soft);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ========================================
   FAQ カテゴリー見出し
======================================== */
.faq__cat {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue-heading);
  margin: clamp(36px, 5vw, 52px) 0 4px;
}
.faq__cat:first-child { margin-top: 0; }

/* ========================================
   Fluent Forms（テンプレートの .field 相当に外観を統一）
======================================== */
.contact__form .fluentform,
.contact__form .ff-el-form-control { font: inherit; }
.contact__form .ff-el-group { margin-bottom: 20px; }
.contact__form .ff-custom_html {
  margin-top: 32px;
}
.contact__form .ff-custom_html p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.8;
}
.contact__form .ff-custom_html a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.contact__form .ff-el-input--label label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.contact__form .ff-el-form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-mist);
  transition: border-color 240ms var(--ease-smooth), background 240ms var(--ease-smooth);
}
.contact__form .ff-el-form-control:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
.contact__form textarea.ff-el-form-control { resize: vertical; min-height: 100px; }
.contact__form .ff-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 28px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--blue-heading);
  border: none;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 240ms var(--ease-smooth);
}
.contact__form .ff-btn-submit:not(:disabled):hover { background: var(--blue-heading-bright); }
.contact__form .ff-btn-submit:disabled {
  background: var(--line);
  color: var(--mid);
  cursor: not-allowed;
}
/* JSの実行タイミング（Fluent Forms側の初期化順）に左右されないよう、
   チェックボックスの :checked 状態を直接見て色を切り替える（JS不要） */
.contact__form form:not(:has(input[name="privacy_agree"]:checked)) .ff-btn-submit {
  background: var(--line);
  color: var(--mid);
  cursor: not-allowed;
}
.contact__form form:not(:has(input[name="privacy_agree"]:checked)) .ff-btn-submit:hover {
  background: var(--line);
}
.contact__form .ff-errors-in-stack,
.contact__form .error {
  color: var(--alert-red);
  font-size: 12.5px;
  margin-top: 6px;
}
.contact__form .ff_success_message {
  color: var(--blue);
  font-weight: 700;
}

/* ========================================
   管理バー対応
======================================== */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
}
