/*
Font size rule (10px-scale rem):
- rem is treated as px / 10
- 2.9rem = 29px, 1.8rem = 18px
- html font-size is NOT modified
- use 0.1rem steps only
*/

/* ====================== base ====================== */
/* ===== ベースフォントサイズ（レスポンシブ対応） ===== */
* {
  box-sizing: border-box;
}

html {
  font-size: 10px; /* 固定 */
}

body {
  margin: 0;
  font-family:
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
  color: #111;
  letter-spacing: 0.1em;
  line-height: 1.9;
  font-weight: 400;

  font-size: 1.6rem; /* 16px */
  line-height: 1.9;
}

/* ===== 見出し：締まりを出す ===== */
h1,
h2,
h3 {
  line-height: 1.3;
  font-weight: 700;
}
h1 {
  font-size: 3.2rem;
} /* 32px */
h2 {
  font-size: 2.9rem;
} /* 29px */
h3 {
  font-size: 2.2rem;
} /* 22px */
h4 {
  font-size: 1.8rem;
} /* 18px */
h5 {
  font-size: 1.6rem;
} /* 16px */
h6 {
  font-size: 1.4rem;
} /* 14px */

.small {
  font-size: 1.4rem;
} /* 14px */

/* ===== 英字：軽さと品 ===== */
.en {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 1.1rem; /* 11px */
  letter-spacing: 0.16em;
}

/* CTA（行動喚起）ボタン：少しだけ強調 */
.cta-button {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

@media (max-width: 767px) {
  /* ===== SP：本文の行間をわずかに詰める ===== */
  body {
    line-height: 1.8;
  }
  /* SP：段落の上下余白を調整 */
  p {
    margin-bottom: 1.1em;
  }
  /* SP：英字の字間を少し戻す */
  .en {
    letter-spacing: 0.14em;
  }
  h1 {
    font-size: 3rem;
  } /* 30px */
  h2 {
    font-size: 2.6rem;
  } /* 26px */
  h3 {
    font-size: 2rem;
  } /* 20px */
  h4 {
    font-size: 1.7rem;
  } /* 17px */
  /* h5, h6 は変更なし */
}

/* ====================== /base ====================== */

/* ====================== アニメーション ====================== */
/* スクロールフェードイン（セクション用） */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}

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

/* スクロールフェードイン（個別要素用） */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

/* 遅延用クラス */
.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}
.delay-5 {
  transition-delay: 0.5s;
}

/* ヒーローテキストアニメーション（1文字ずつ） */
.hero__title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: charFadeIn 0.6s ease forwards;
}

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

/* ヒーロータイトル行 */
.hero__title .en,
.hero__title .jp {
  display: block;
  overflow: hidden;
}

/* ====================== /アニメーション ====================== */

/* placeholder */
.ph {
  background: #ddd;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

/* ===== ヘッダー：FVの上に重ねる（透過） ===== */
.header {
  position: absolute; /* FVの上に乗せる */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* heroより前に */
  background: transparent;
  color: #fff;
}

/* ===== ヘッダー内だけにグラデーション暗幕をかける ===== */
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* ← 改行させない */
  padding: 18px 16px;
  position: relative; /* ::before 用 */
  z-index: 1;
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  width: calc(100% - 40px); /* left: 20px + right: 20px を考慮 */
  overflow: hidden; /* 疑似要素のはみ出しを防ぐ */
  contain: layout style paint; /* レイアウトとスタイルを親要素内に制限 */
  background: transparent; /* 初期状態は透明 */
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease;
  transition: 2s;
}

.header__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* テキストの背面 */
  pointer-events: none;
  background: linear-gradient(to right, rgba(51, 113, 199, 0.8) 0%, /* #3371c7 / 80% */ rgba(51, 113, 199, 0.8) 10%, /* 切替を左10%寄せ */ rgba(51, 59, 106, 0.8) 100% /* #333b6a / 80% */);
  opacity: 1; /* 初期状態で表示 */
  transition: opacity 0.4s ease;
  clip-path: inset(0); /* 親要素の範囲内に制限 */
}

/* 単色背景用の疑似要素 */
.header__inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -2; /* グラデーションより後ろ */
  pointer-events: none;
  background: #205293;
  opacity: 0; /* 初期状態では非表示 */
  transition: opacity 0.4s ease;
  clip-path: inset(0); /* 親要素の範囲内に制限 */
}

/* ===== スクロール時：ヘッダーに単色背景と影を付ける ===== */
.is-header-solid .header__inner {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 10px 16px;
  transition: 2s ease;
}

.is-header-solid .header__inner::before {
  opacity: 0; /* グラデーション背景をフェードアウト */
}

.is-header-solid .header__inner::after {
  opacity: 1; /* 単色背景をフェードイン */
}

/* ===== ヘッダーロゴ：幅固定で押し出し防止 ===== */
.header__logo {
  flex-shrink: 0; /* 縮まない */
  white-space: nowrap; /* ロゴ内で改行しない */
}

.header__logo img {
  width: 50%; /* Retina用2倍画像を50%で表示 */
  height: auto;
  display: block;
}

.header__inner .global-nav {
  margin-right: 0;
  margin-left: auto;
}

.global-nav__list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* ===== 1000px以下：ヘッダーナビのgap・ロゴを縮小（iPad対応） ===== */
@media (max-width: 1000px) {
  .header__logo {
    flex-shrink: 1; /* 縮小可能に */
  }
  .header__logo img {
    width: clamp(200px, 40vw, 300px); /* 200px〜300pxで可変 */
  }
  .global-nav__list {
    gap: clamp(8px, 1.5vw, 16px);
  }
}
/* ===== ヘッダーリンク：FV上のため白系 ===== */
.global-nav__list a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  position: relative;
}

.global-nav__list a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.95);
  transition: width 0.3s ease;
}

.global-nav__list a:hover,
.global-nav__list a.on {
  color: rgba(255, 255, 255, 1);
}

.global-nav__list a:hover::after,
.global-nav__list a.on::after {
  width: 100%;
}

/* ===== SPメニュー：ハンバーガーボタン ===== */
.nav-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: none; /* PCでは非表示、SPで表示 */
  position: relative;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.95);
  margin: 6px auto;
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* 開いている時（×にする） */
.is-nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.is-nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.is-nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== SPメニュー：右上の×ボタン（SPのみ表示） ===== */
.nav-close {
  display: none; /* PCでは非表示 */
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-close__bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2px;
  transform-origin: center;
}

.nav-close__bar:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav-close__bar:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}
/* ===== 表示制御クラス ===== */
/* SPのみ表示（PCでは非表示） */
.only-sp,
.notpc {
  display: none; /* PCでは非表示 */
}

/* PCのみ表示（SPでは非表示） */
.notsp {
  display: block; /* PCでは表示 */
}

/* ===== CTAボタン：ブランドカラー寄せ（上書き） ===== */
.cta-button {
  background: linear-gradient(135deg, #3371c7 0%, #333b6a 100%);
  color: #ffffff;
  text-align: center;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ホバー：少しだけ明るく・浮かせる */
.cta-button:hover {
  filter: brightness(1.08);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 押下：沈み込み */
.cta-button:active {
  transform: scale(0.97);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-arrow {
  font-weight: 700;
}

/* ===== FV：iOS Safari対策込み 高さ制御 ===== */
.hero {
  /* 後勝ちなので順番は変えないこと！ */
  position: relative;
  height: 80vh; /* フォールバック（古いブラウザ用） */
  height: 80svh; /* iOS Safari 安定値 */
  height: 80dvh; /* 対応ブラウザでは最優先 */
  min-height: 520px; /* PC最低保証 */
  overflow: hidden;
}

.hero__slider,
.hero__slide {
  height: 100%;
}

.hero__bg {
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* ===== FV：全体用オーバーレイ（写真コントラスト調整のみ） ===== */
.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.15); /* もしくは無しでもOK */
}

/* ===== hero: slick dots を「線」にする ===== */
.hero .slick-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex !important;
  gap: 10px;
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 5;
}

.hero .slick-dots li {
  margin: 0;
  width: auto;
  height: auto;
}

.hero .slick-dots button {
  font-size: 0; /* 数字を消す */
  line-height: 0;
  width: 38px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
/* ===== FV(slick)：dots下の「・」(疑似要素)を消す ===== */
.hero .slick-dots button:before {
  content: none !important; /* slick-theme.cssの黒丸を無効化 */
}

.hero .slick-dots li.slick-active button {
  background: rgba(255, 255, 255, 0.95);
}
/* ===== FV(slick)：高さが0になるケース対策（必須セット） ===== */
.hero .slick-list,
.hero .slick-track {
  height: 100%;
}

.hero .slick-slide {
  height: 100%;
}

.hero .slick-slide > div {
  height: 100%;
}
/* ===== FV：背景画像（PC用） ===== */
.hero__bg--1 {
  background-image: url("../img/fv1_pc_v2.webp");
}
.hero__bg--2 {
  background-image: url("../img/fv2_pc.webp");
}
.hero__bg--3 {
  background-image: url("../img/fv3_pc.webp");
}

/* SP */
@media (max-width: 767px) {
  /* ===== FV：SP時は縦を少し大きめに ===== */
  .hero {
    height: 82vh; /* フォールバック */
    height: 82svh;
    height: 82dvh;
    min-height: 420px; /* SP最低保証 */
  }

  /* ===== FV：背景画像（SP用に差し替え） ===== */
  .hero__bg--1 {
    background-image: url("../img/fv1_sp_v2.webp");
  }
  .hero__bg--2 {
    background-image: url("../img/fv2_sp.webp");
  }
  .hero__bg--3 {
    background-image: url("../img/fv3_sp.webp");
  }
}

/* ===== hero--business（下層ページ用） ===== */
.hero--business {
  height: auto;
  min-height: auto;
  overflow: visible;
}

.hero__topside {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translateY(50%);
  z-index: 3;
  pointer-events: none;
  /* 初期状態：左に隠す */
  opacity: 0;
  animation: topsideSlideIn 1.2s ease 1s forwards;
}

/* スライドイン後に浮遊アニメーション */
.hero__topside.is-floating {
  opacity: 1;
  animation: topsideFloat 4s ease-in-out infinite;
}

/* 左からスライドインアニメーション */
@keyframes topsideSlideIn {
  0% {
    opacity: 0;
    transform: translateY(50%) translateX(-80px);
  }
  100% {
    opacity: 1;
    transform: translateY(50%) translateX(0);
  }
}

/* ゆっくり浮遊アニメーション */
@keyframes topsideFloat {
  0%,
  100% {
    transform: translateY(50%) translateX(0);
  }
  50% {
    transform: translateY(calc(50% - 12px)) translateX(0);
  }
}

.hero__topside-img {
  display: block;
  width: 462.5px;
  height: auto;
}
.hero__topside-img_business {
  width: 462.5px;
}

.hero__topside-img_about,
.hero__topside-img_recruit,
.hero__topside-img_contact {
  width: 618px;
}

.hero__picture {
  display: block;
  width: 100%;
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.hero__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.hero__title .en {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: #fff;
  margin-bottom: 8px;
}

.hero__title .jp {
  display: block;
  font-size: 2.8rem;
  letter-spacing: 0.18em;
  font-weight: 100;
  color: #fff;
}

@media (max-width: 767px) {
  .hero__image {
    max-height: 320px;
  }
  .hero__title .en {
    font-size: 0.95rem;
  }
  .hero__title .jp {
    font-size: 2.2rem;
  }
  .hero__topside-img {
    width: 50vw;
  }
}

/* ===== business-tabs（タブ切り替え） ===== */
.business-tabs {
  padding-top: 100px;
  padding-bottom: 0px;
}

/* アニメーション完了後はtransformを削除（position:fixed対策） */
.business-tabs.is-visible {
  transform: none !important;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
  transition:
    gap 0.5s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease;
  z-index: 100;
}

/* タブナビゲーション固定時のスタイル */
.tabs-nav.is-sticky {
  position: fixed;
  top: 73px;
  left: 20px;
  right: 20px;
  max-width: calc(100% - 40px);
  gap: 15px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  padding: 12px 20px;
  backdrop-filter: blur(8px);
}

/* 固定時のplaceholder（レイアウト崩れ防止） */
.tabs-nav-placeholder {
  display: none;
  height: 0;
}

.tabs-nav-placeholder.is-active {
  display: block;
}

.tabs-nav__btn {
  position: relative;
  background: none;
  border: none;
  font-size: 22px;
  color: #001d75;
  font-weight: 100;
  cursor: pointer;
  padding: 0 0 16px;
  transition: color 0.3s ease;
  flex: 1;
  min-width: 150px;
  text-align: center;
}

/* バー（通常時：白塗り + ボーダー） */
.tabs-nav__btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 150px;
  height: 5px;
  background: linear-gradient(90deg, #000873, #0092a2);
  border: none;
  border-radius: 3px;
  transition: transform 0.4s ease;
}

/* 通常時のバー（別の疑似要素で表示） */
.tabs-nav__btn::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 5px;
  background: #fff;
  border: 1px solid #b2dee3;
  border-radius: 3px;
  transition: opacity 0.3s ease;
}

/* ホバー時：中央から広がる */
.tabs-nav__btn:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.tabs-nav__btn:hover::before {
  opacity: 0;
}

/* アクティブ時：グラデーション + シャインエフェクト */
.tabs-nav__btn.is-active::after {
  transform: translateX(-50%) scaleX(1);
}

.tabs-nav__btn.is-active::before {
  opacity: 0;
}

/* シャインエフェクト用の追加要素 */
.tabs-nav__btn.is-active {
  overflow: visible;
}

.tabs-nav__btn.is-active::after {
  background: linear-gradient(90deg, #000873, #0092a2);
  animation: tabBarShine 2s ease-in-out infinite;
}

@keyframes tabBarShine {
  0% {
    background: linear-gradient(90deg, #000873 0%, #0092a2 50%, #000873 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
  }
  50% {
    background-position: 0% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

/* tab5のみPCでバーの幅を300pxにする */
@media (min-width: 768px) {
  .tabs-nav__btn[data-tab="tab5"]::after,
  .tabs-nav__btn[data-tab="tab5"]::before {
    width: 300px;
  }
}

/* コンテンツエリア */
.tabs-content {
  position: relative;
  margin-top: 40px;
}

.tabs-panel {
  width: 100%;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  overflow: hidden;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  transform: translateY(20px);
}

.tabs-panel.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
  height: auto;
  overflow: visible;
  transform: translateY(0);
}

/* タブパネル内コンテンツ */
.tabs-panel__inner {
  text-align: center;
}

.tabs-panel__inner,
.merit-section {
  padding-bottom: 100px !important;
}

.tabs-panel__img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.tabs-panel__title {
  font-size: 2.9rem;
  color: #001d75;
  margin: 40px 0 24px;
  letter-spacing: 0.18em;
  font-weight: 100;
}

.tabs-panel__text {
  text-align: left;
  font-size: 1.6rem;
  color: #001d75;
  line-height: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.tabs-panel__sign {
  text-align: right;
  font-size: 1.8rem;
  color: #001d75;
  line-height: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  margin-top: 20px;
}

/* MERIT セクション */
.merit-section {
  background: linear-gradient(135deg, #004eb9 0%, #000a45 100%);
  padding: 60px 40px;
  margin-top: 60px;
}

.merit-section__title {
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
}

.merit-section__title .en {
  display: block;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.merit-section__title .jp {
  display: block;
  font-size: 2.6rem;
  font-weight: 400;
  margin-top: 8px;
}

.merit-section__images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 880px;
  margin: 0 auto;
}

.merit-section__images img {
  width: 266px;
  height: auto;
}

/* FLOW セクション */
.flow-section {
  background-image: url("../img/busi-tab1-3bg.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  padding: 100px 0px;
}

.flow-section__title {
  text-align: center;
  color: #001d75;
  margin-bottom: 40px;
}

.flow-section__title .en {
  display: block;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.flow-section__title .jp {
  display: block;
  font-size: 2.6rem;
  font-weight: 400;
  margin-top: 8px;
}

.flow-section__image {
  display: block;
  text-align: center;
}

.flow-section__image img {
  max-width: 1056px;
  height: auto;
}

/* TAB2 画像3枚セクション */
.tab2-images-section,
.tab3-images-section {
  background-image: url("../img/busi-tab2-2bg.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  padding: 60px 40px;
}

.tab2-images-section__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.tab2-images-section__grid img {
  width: calc(50% - 15px);
  height: auto;
  margin: 50px auto;
}

.tab2-images-section__grid img:nth-child(3) {
  width: calc(50% - 15px);
}

.tabs-panel__text_tab3,
.tabs-panel__text_tab4 {
  font-size: 1.6rem;
  color: #dfffff;
  line-height: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* SP対応 */
@media (max-width: 767px) {
  .tabs-nav {
    gap: 20px 30px;
  }

  /* SP: タブナビゲーション固定時 */
  .tabs-nav.is-sticky {
    gap: 10px 30px;
    padding: 8px 16px;
    left: 16px;
    right: 16px;
    max-width: calc(100% - 32px);
  }

  .tabs-nav__btn {
    font-size: 18px;
    width: calc(50% - 15px);
    text-align: center;
  }

  /* SP: 固定時もボタンの幅を維持 */
  .tabs-nav.is-sticky .tabs-nav__btn {
    width: calc(50% - 15px);
    min-width: 120px;
    font-size: 16px;
  }
  .tabs-nav__btn::after,
  .tabs-nav__btn::before {
    width: 100%;
    max-width: 120px;
  }
  .tabs-nav__btn[data-tab="tab5"]::after,
  .tabs-nav__btn[data-tab="tab5"]::before {
    max-width: 240px;
  }
  .tabs-panel__title {
    font-size: 2.2rem;
    margin: 30px 0 20px;
  }
  .tabs-panel__text {
    font-size: 1.4rem;
    padding: 0 16px;
  }
  /* MERIT セクション SP */
  .merit-section {
    padding: 40px 16px;
    margin-top: 40px;
  }
  .merit-section__title .en,
  .merit-section__title .jp {
    font-size: 2rem;
  }
  .merit-section__images {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .merit-section__images img {
    width: 70%;
  }
  .merit-section__images img:nth-child(odd) {
    align-self: flex-end;
    /* margin-right: 10%; */
  }
  .merit-section__images img:nth-child(even) {
    align-self: flex-start;
    /* margin-left: 10%; */
  }
  /* FLOW セクション SP */
  .flow-section {
    padding: 40px 16px;
    margin-top: 40px;
  }
  .flow-section__title .en,
  .flow-section__title .jp {
    font-size: 2rem;
  }
  .flow-section__image img {
    width: 100%;
    max-width: none;
  }
  /* TAB2 画像3枚セクション SP */
  .tab2-images-section,
  .tab3-images-section {
    background-image: url("../img/busi-tab2bg_sp.webp");
    padding: 40px 16px;
  }
  .tab2-images-section__grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .tab2-images-section__grid img,
  .tab2-images-section__grid img:nth-child(3) {
    width: 80%;
  }
}

/* ===============================  ここから事業内容のスタイル =============================== */
/* business lead */
.business-lead {
  font-size: 1.9rem;
  padding-top: 100px;
  padding-bottom: 100px;
  margin: 0;
  position: relative;
  text-align: center;
  height: 400px;
}
/* リード文（p）だけに適用 */
.business-lead p.business-lead {
  line-height: 2;
  color: #2b3b55;
  font-size: 1.9rem;
  padding-top: 0;
  padding-bottom: 50px;
  margin: 0;
}

/* ===== 右側の幾何学背景（businessbg.webp） ===== */
.business-lead__bg {
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/businessbg.webp");
  background-position-y: 100px;
  background-size: 55vw auto;
  background-repeat: no-repeat;
  background-position: right center;
  pointer-events: none;
}

.business-lead__intro {
  text-align: center;
}

.business-lead__title .en {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: rgba(51, 59, 106, 0.85);
  margin-bottom: 8px;
}

.business-lead__title .jp {
  display: block;
  font-size: 2.8rem;
  letter-spacing: 0.06em;
  color: #2b3b55;
  font-weight: 700;
}

/* 外枠 */
.business-lead__title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(51, 113, 199, 0.3);
  clip-path: polygon(6% 18%, 82% 0%, 100% 38%, 90% 100%, 18% 92%, 0% 56%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  z-index: -1;
}

/* 内側線 */
.business-lead__title::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(51, 59, 106, 0.16);
  clip-path: polygon(8% 22%, 80% 4%, 96% 40%, 88% 96%, 20% 88%, 2% 58%);
  z-index: -1;
}

/* business list */
.business-item {
  display: flex;
  gap: 40px;
  padding: 80px 16px;
  align-items: center;
}
.business-item--reverse {
  flex-direction: row-reverse;
}
.business-item__image {
  flex: 1;
}
.business-item__content {
  flex: 1;
}

/* ===== 事業ブロック：中心アンカー配置（画像とテキストが離れない） ===== */
.business-list {
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 0 16px; */
}

/* 1ブロック：中央を基準に、画像とテキストをtransformで配置 */
.business-item {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(54px, 8vw, 96px) 0;
  overflow: visible;

  /* デフォ（あとで nth-child で上書き） */
  --shift-x: clamp(140px, 18vw, 260px); /* 左右の離れ量（可変） */
  --img-x: calc(var(--shift-x) * -1); /* 画像を左へ（1ブロック目の基準） */
  --text-x: var(--shift-x); /* テキストを右へ */
  --img-y: 0px;
  --text-y: 0px;
}

/* 画像：自然サイズWebPを「最大幅で収める」 */
.business-item__image {
  grid-area: 1 / 1;
  transform: translate(var(--img-x), var(--img-y));
  width: clamp(280px, 42vw, 560px); /* 2x書き出しでも大きすぎない */
  max-width: 100%;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.14));
}

/* img：自然な見え方（透明WebP前提） */
.business-item__img {
  width: 100%;
  height: auto;
  display: block;
}

/* テキスト：中心アンカーから移動 */
.business-item__content {
  grid-area: 1 / 1;
  transform: translate(var(--text-x), var(--text-y));
  max-width: 600px;
}

/* テキスト：読みやすさ（必要最低限） */
.business-item__en {
  display: inline-block;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  color: rgba(51, 59, 106, 0.78);
  margin-bottom: 10px;
}

.business-item__title {
  font-size: 2.9rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: #2b3b55;
  margin: 0 0 0.6em;
  font-weight: 400;
}

.business-item__text {
  line-height: 2.9;
  color: rgba(43, 59, 85, 0.92);
  margin: 0;
}
/* ===== PC：左右交互（基本） ===== */
/* 1,3：画像右 / テキスト左（デフォのまま） */

/* 2,4：画像左 / テキスト右 */
.business-item:nth-child(even) {
  --img-x: var(--shift-x); /* 偶数は画像右 */
  --text-x: calc(var(--shift-x) * -1); /* 偶数はテキスト左 */
}

/* ===== PC：変則微調整（カンプ寄せ） ===== */
/* 1枚目：少し上＆画像を少し強めに右へ（例） */
.business-item:nth-child(1) {
  --img-y: -18px;
  --text-y: 18px;
}

/* 2枚目：画像を少し下げる（例） */
.business-item:nth-child(2) {
  --img-y: 22px;
  --text-y: -10px;
}

/* 3枚目：画像を少し上げる（例） */
.business-item:nth-child(3) {
  --img-y: -8px;
  --text-y: 10px;
}

/* 4枚目：画像を下げて余白感（例） */
.business-item:nth-child(4) {
  --img-y: 26px;
  --text-y: -6px;
}

@media (max-width: 767px) {
  /* ===== SP：事業内容リード＆タイトル ===== */
  .business-lead {
    padding: 36px 0 18px;
  }

  .business-lead__intro {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .business-lead p.business-lead {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .business-lead__title .jp {
    font-size: 2.4rem;
  }

  .business-lead__bg.ph--geo {
    right: -180px;
    top: 60px;
    opacity: 0.35;
  }

  .business-item__text {
    line-height: 2.4;
  }
}

/* ===== 1200px未満：重なりを解除して読みやすくする ===== */
@media (max-width: 1199px) {
  /* SP：上下レイアウトだが、中心アンカーのまま重ねる */
  .business-item {
    padding: 44px 0;
    --shift-x: clamp(26px, 10vw, 56px); /* SPは左右の振り幅を小さく */
    --img-y: -22px; /* 画像を少し上 */
    --text-y: 86px; /* テキストを下へ（重なり演出） */
    --text-x: 0px; /* テキストは中央基準 */
    /* ===== SP：事業ブロック（カンプ寄せ：右寄せ画像＋重なり＋左揃えテキスト） ===== */
    display: block; /* ← SPはgridをやめる */
    overflow: hidden; /* ← 右に少し見切れさせるため */
    position: relative;
    --overlap: clamp(90px, 18vw, 140px); /* テキストを画像に食い込ませる量 */
  }

  /* ===== SP：画像を画面端まで表示（右の余白を消す） ===== */
  .business-item__image img {
    margin-left: auto;
    margin-right: calc(-1 * 16px); /* ← business-list の padding 分を打ち消す */
    width: min(100vw, 560px); /* ← viewport 基準にする */
    max-width: 100vw;

    /* 見切れ演出 */
    translate: 10vw -10px; /* 右へ押し出す */
  }
  /* SP：奇数は右寄せ、偶数は左寄せ（カンプのリズム） */
  .business-item:nth-child(odd) {
    --img-x: var(--shift-x);
  }
  .business-item:nth-child(even) {
    --img-x: calc(var(--shift-x) * -1);
  }

  /* SP：テキスト幅は読みやすく */
  .business-item__content {
    max-width: 560px;
    padding: 0 10px;
  }

  /* img：そのまま（透明WebP想定） */
  .business-item__img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* テキスト：画像の下側1/3付近から始まるように“上へ食い込ませる” */
  .business-item__content {
    transform: none; /* ← PC用transformを無効化 */
    max-width: 560px;
    margin-top: calc(-1 * var(--overlap)); /* ← ここが重なりの要 */
    padding: 0 16px;
    text-align: left; /* ← 左揃え */
    position: relative;
    z-index: 2; /* ← 画像より前に */
  }
}
@media (max-width: 767px) {
  /* SP：英字は間延び防止 */
  .business-item__en {
    letter-spacing: 0.12em;
  }

  .business-item__title {
    font-size: 2.2rem;
  }
}

/* ===============================  ここからのスタイル =============================== */
.about-tab1 {
  background-image: url(../img/aboutbg1.webp);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}
.about-tab2 {
  background-image: url(../img/aboutbg2.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}
.about-tab2_text {
  color: #fff;
}
/* 沿革リスト */
.history-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}
.history-list dt {
  font-size: 1.4rem;
  padding: 12px 0 4px;
  min-width: 140px;
  float: left;
  clear: left;
}
/* Google マップリンク */
.map-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 29, 117, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-link:hover {
  border-color: rgba(0, 29, 117, 0.6);
}

/* Google マップアイコン */
.map-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ea4335'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.history-list dd {
  font-size: 1.4rem;
  margin-left: 200px;
  padding: 12px 0 4px;
}

.about-tab3 {
  background-image: url(../img/aboutbg3.webp);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.about-tab4 {
  background-image: url(../img/aboutbg4.webp);
  background-size: 503px auto;
  background-position: right top;
  background-repeat: no-repeat;
  text-align: center;
}

.tabs-panel__inner_about {
  padding: 100px 0 200px;
}

.about-tab1.tabs_panel_text,
.about-tab3.tabs_panel_text {
  max-width: 800px;
}

@media (max-width: 767px) {
  .about-tab2 {
    background-image: url(../img/aboutbg2_sp.webp);
  }
  .about-tab4 {
    background-image: url(../img/aboutbg4_sp.webp);
    background-size: 50vw auto;
  }
  .tabs-panel__inner_about {
    padding: 0px 0 100px;
  }
  .history-list dt {
    float: none;
    font-size: 1.2rem;
    padding: 16px 0 4px;
  }
  .history-list dd {
    margin-left: 0;
    font-size: 1.3rem;
    padding: 4px 0 12px;
  }
}

/* ===============================  ここからrecruitのスタイル =============================== */
/* recruit セクション */

/* recruit 内側コンテナ（ブロック1） */
.recruit__inner_block1 {
  padding: 100px 20px 200px;
  width: 100%;
  background-image: url(../img/recruit-block1bg.webp);
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

/* recruit 見出し */
.recruit__subtitle {
  font-size: 3.2rem;
  color: #001d75;
  margin: 40px 0 24px;
  letter-spacing: 0.18em;
  font-weight: 100;
  text-align: center;
}

/* recruit テキスト */
.recruit__text {
  text-align: left;
  font-size: 1.6rem;
  color: #001d75;
  line-height: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* recruit SP対応 */
@media (max-width: 767px) {
  .recruit__inner_block1 {
    padding: 0px 0 100px;
    background-image: url(../img/recruit-block1bg_sp.webp);
    margin-top: 100px;
  }
  .recruit__subtitle {
    font-size: 2.2rem;
    margin: 30px 0 20px;
  }
  .recruit__text {
    font-size: 1.4rem;
    padding: 0 16px;
  }
}

/* recruit 内側コンテナ（ブロック2：先輩の声） */
.recruit__inner_block2 {
  padding: 60px 20px 100px;
  width: 100%;
  background-image: url(../img/recruit-block2bg.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 先輩の声タイルコンテナ */
.recruit__voice {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 先輩の声タイル */
.recruit__voice-item {
  width: calc((100% - 100px) / 3); /* PC: 3列 (gap 24px × 2 = 48px) */
  background-color: #edf4fb;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* タイル内コンテンツ */
.recruit__voice-item-image {
  display: flex;
  flex-direction: column;
}

/* タイル内画像 */
.recruit__voice-item-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* タイル内テキスト */
.recruit__voice-item-text {
  padding: 10px;
  font-size: 1.4rem;
  line-height: 1.8;
  text-align: left;
  flex-grow: 1; /* 高さ揃え用 */
}

/* recruit block2 SP対応 */
@media (max-width: 767px) {
  .recruit__inner_block2 {
    padding: 40px 16px 60px;
    background-image: url(../img/recruit-block2bg_sp.webp);
  }
  .recruit__voice {
    gap: 16px;
  }
  .recruit__voice-item {
    width: calc((100% - 16px) / 2); /* SP: 2列 (gap 16px × 1 = 16px) */
  }
  .recruit__voice-item-text {
    padding: 10px;
    font-size: 1.2rem;
  }
}

/* recruit 内側コンテナ（ブロック3：仕事の内容） */
.recruit__inner_block3 {
  padding: 60px 20px 100px;
  width: 100%;
  background-image: url(../img/recruit-block3bg.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* block3 見出しの色 */
.recruit__inner_block3 .recruit__subtitle {
  color: #46acec;
}

/* 仕事の内容コンテナ */
.recruit__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 仕事の内容アイテム */
.recruit__content-item {
  display: flex;
  align-items: flex-start;
  gap: 45px;
}

/* 仕事の内容 画像 */
.recruit__content-item-image {
  flex-shrink: 0;
  width: 310px;
}

.recruit__content-item-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* 仕事の内容 テキストエリア */
.recruit__content-item-body {
  flex: 1;
}

/* 仕事の内容 タイトル */
.recruit__content-item-title {
  font-size: 3.2rem;
  color: #46acec;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* 仕事の内容 テキスト */
.recruit__content-item-text {
  font-size: 1.6rem;
  color: #111;
  line-height: 1.9;
}

/* recruit block3 SP対応 */
@media (max-width: 767px) {
  .recruit__inner_block3 {
    padding: 40px 16px 60px;
    background-image: url(../img/recruit-block3bg_sp.webp);
  }
  .recruit__content {
    gap: 30px;
  }
  .recruit__content-item {
    flex-direction: column;
    gap: 20px;
  }
  .recruit__content-item-image {
    width: 100%;
  }
  .recruit__content-item-title {
    font-size: 2.4rem;
    margin-bottom: 12px;
  }
  .recruit__content-item-text {
    font-size: 1.4rem;
  }
}

/* recruit 内側コンテナ（ブロック4：採用要項） */
.recruit__inner_block4 {
  padding: 60px 20px 100px;
  width: 100%;
  background-image: url(../img/recruit-block4a.webp);
  background-size: 50%;
  background-position: left top;
  background-repeat: no-repeat;
}

/* 採用要項リスト */
.recruit-info-list {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

.recruit-info-list dt {
  color: #001d75;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 16px 0 8px;
  min-width: 120px;
  float: left;
  clear: left;
}

.recruit-info-list dd {
  color: #001d75;
  font-size: 1.4rem;
  margin-left: 140px;
  padding: 16px 0 8px;
  line-height: 1.8;
}

/* エントリーボタン */
.recruit-entry-btn-wrap {
  text-align: center;
  margin-top: 40px;
}

.recruit-entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 550px;
  height: 70px;
  background: linear-gradient(90deg, #004eb8 0%, #000a45 100%);
  color: #fff;
  font-size: 3rem;
  font-weight: 100;
  text-decoration: none;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* シャインエフェクト */
.recruit-entry-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  transition: left 0.6s ease;
}

.recruit-entry-btn:hover::before {
  left: 100%;
}

.recruit-entry-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 78, 184, 0.4);
}

/* recruit 内側コンテナ（ブロック5） */
.recruit__inner_block5 {
  padding: 60px 20px 100px;
  width: 100%;
  background-image: url(../img/recruit-block5a.webp);
  background-size: 40%;
  background-position: right top;
  background-repeat: no-repeat;
}

/* recruit block4・block5 SP対応 */
@media (max-width: 767px) {
  .recruit__inner_block4 {
    padding: 40px 16px 60px;
    background-image: url(../img/recruit-block4a_sp.webp);
  }
  .recruit__inner_block5 {
    padding: 40px 16px 60px;
    background-image: url(../img/recruit-block5a_sp.webp);
  }
  .recruit-info-list dt {
    float: none;
    font-size: 1.6rem;
    padding: 16px 0 4px;
  }
  .recruit-info-list dd {
    margin-left: 0;
    font-size: 1.3rem;
    padding: 4px 0 12px;
  }
  /* エントリーボタン SP */
  .recruit-entry-btn {
    width: 100%;
    max-width: 320px;
    height: 48px;
    font-size: 2rem;
  }
}

/* ===============================  ここからフッターのスタイル =============================== */
/* footer */
.footer {
  background: linear-gradient(to right, #004eb9 0%, #000f4e 50%, #000a45 100%);
  color: #fff;
  text-align: center;
  padding: 40px 16px;
  padding-top: 30px;
  position: relative;
  overflow: hidden;
}

/* フッターシャインエフェクト */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  animation: footerShine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes footerShine {
  0% {
    left: -100%;
  }
  50% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

.footer__inner {
  position: unset !important;
  background: unset !important;
  box-shadow: unset !important;
}
.footer__inner::after {
  background: unset !important;
}

/* ===== SP：フッター専用レイアウト（ロゴ上・nav下の2段センター揃え） ===== */
@media (max-width: 767px) {
  .footer .footer__inner {
    flex-direction: column;
    align-items: center;
    /* gap: 20px; */
    margin: auto;
  }

  .footer .header__logo {
    text-align: center;
  }

  .footer .header__logo img {
    margin: 0 auto;
  }

  .footer .global-nav {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    opacity: 1;
    box-shadow: none;
    z-index: 10;
    margin: 0 auto;
  }

  .footer .global-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 15px;
  }

  .footer .global-nav__list li {
    opacity: 1;
    transform: none;
    padding: 0;
    border-bottom: none;
  }

  .footer .global-nav__list a {
    font-size: 1.4rem;
  }
}

/* responsive */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }
  /* ×ボタン：ホバー/タップ感 */
  .nav-close {
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }
  .is-nav-open .nav-close {
    opacity: 1;
  }
  .nav-close:active {
    transform: scale(0.96);
  }

  /* ===== SP：ヘッダーロゴの幅制限 ===== */
  .header__logo {
    flex-shrink: 1; /* SPでは縮小可能にする */
  }

  .header__logo img {
    width: 80%; /* SPでは親要素の100%に */
    margin-left: 10px;
  }

  .header__inner {
    gap: 12px; /* SPでは間隔を小さく */
    padding: 12px 16px; /* SPではパディングを小さく */
  }

  /* SPだけ×ボタンを表示 */
  .nav-close {
    display: block;
  }
  /* ===== SP：header__innerのcontainを無効化（メニューが全画面表示されるように） ===== */
  .header__inner {
    contain: none; /* SPではcontainを無効化 */
  }

  /* ===== SP：疑似要素の背景を非表示（画面全体に広がるのを防ぐ） ===== */
  .header__inner::before,
  .header__inner::after {
    display: none; /* SPでは疑似要素を非表示 */
  }

  /* ===== SP：ヘッダーに直接背景を設定 ===== */
  .header__inner {
    background: linear-gradient(to right, rgba(51, 113, 199, 0.8) 0%, rgba(51, 113, 199, 0.8) 10%, rgba(51, 59, 106, 0.8) 100%);
  }

  .is-header-solid .header__inner {
    background: linear-gradient(to right, #205293 0%, #1a3a6a 50%, #0c2c55 100%);
    padding: 0;
  }

  /* ===== SPメニュー：オーバーレイ ===== */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1000;
  }
  .is-nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
  }

  /* ===== SPメニュー：ドロワー（global-navを変形して使う） ===== */
  .global-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 320px);
    height: 100vh;
    background: #0c2c55;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1001;
    padding: 72px 18px 24px; /* 上はヘッダー分の余白 */
    padding-top: 88px; /* 上に余白を足す（×ボタンとの距離） */
    display: block; /* 重要：display:none をしない */

    /* SPメニュー：動きをリッチに（奥行き感） */
    transform: translateX(100%) scale(0.98);
    transform-origin: right center;
    opacity: 0;
    transition:
      transform 0.38s cubic-bezier(0.2, 0.9, 0.2, 1),
      opacity 0.25s ease;
    will-change: transform, opacity;
  }
  /* ===== SPドロワー：メニュー項目 ===== */
  .global-nav__list li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .global-nav__list li:last-child {
    border-bottom: none;
  }

  .global-nav__list a {
    font-size: 1.6rem;
    letter-spacing: 0.04em;
  }
  /* ===== SPメニュー：タップフィードバック ===== */
  .global-nav__list a {
    position: relative;
  }

  .global-nav__list a::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.95);
    transition: width 0.3s ease;
  }

  .global-nav__list a:hover::after {
    width: 100%;
  }

  .global-nav__list a:active {
    opacity: 0.7;
  }
  .global-nav {
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.35);
  }

  .is-nav-open .global-nav {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  /* SPメニュー：項目を順番に出す */
  .global-nav__list li {
    opacity: 0;
    transform: translateX(10px);
    transition:
      transform 0.36s ease,
      opacity 0.36s ease;
  }

  /* 開いたら表示 */
  .is-nav-open .global-nav__list li {
    opacity: 1;
    transform: translateX(0);
  }

  /* ディレイ（4項目想定。増えるなら追記） */
  .is-nav-open .global-nav__list li:nth-child(1) {
    transition-delay: 0.06s;
  }
  .is-nav-open .global-nav__list li:nth-child(2) {
    transition-delay: 0.12s;
  }
  .is-nav-open .global-nav__list li:nth-child(3) {
    transition-delay: 0.18s;
  }
  .is-nav-open .global-nav__list li:nth-child(4) {
    transition-delay: 0.24s;
  }

  /* 縦並びに */
  .global-nav__list {
    flex-direction: column;
    gap: 16px;
  }
  .global-nav__list a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px 0;
  }

  /* SPのみ表示：ドロワー内で表示 */
  .only-sp,
  .notpc {
    display: list-item; /* SPでは表示 */
  }

  /* PCのみ表示：SPでは非表示 */
  .notsp {
    display: none; /* SPでは非表示 */
  }

  /* メニュー開いてる時はスクロール禁止 */
  .is-nav-open {
    overflow: hidden;
  }

  /* 既存のレイアウト（事業ブロック縦積み）はそのまま */
  .business-item,
  .business-item--reverse {
    flex-direction: column;
  }
}

/* =======================================================================
   上に戻るボタン（Back to Top）
   ======================================================================= */
/* シャドウ用ラッパー */
.back-to-top-wrap {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 57px;
  height: 57px;
  /* 歪な6角形（シャドウ用・少し大きめ） */
  clip-path: polygon(20% 0%, 90% 5%, 100% 55%, 75% 100%, 8% 90%, 0% 35%);
  background: rgba(255, 255, 255, 0.65);
  z-index: 998;
  /* 初期状態：非表示 */
  opacity: 0;
  transform: translateX(100px);
  pointer-events: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

.back-to-top {
  position: fixed;
  bottom: 23px;
  right: 23px;
  width: 56px;
  height: 56px;
  border: none;
  cursor: pointer;
  z-index: 999;
  /* 歪な6角形（ポリゴン） */
  clip-path: polygon(20% 0%, 90% 5%, 100% 55%, 75% 100%, 8% 90%, 0% 35%);
  /* フッターのグラデーションを逆向き */
  background: linear-gradient(to left, #004eb9 0%, #000f4e 50%, #000a45 100%);
  /* 初期状態：非表示（右にスライドアウト） */
  opacity: 0;
  transform: translateX(100px);
  pointer-events: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  /* flexで中央配置 */
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.back-to-top:hover {
  transform: translateX(0) scale(1.08);
}

/* 矢印 */
.back-to-top__arrow {
  display: block;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: rotate(45deg);
  margin-top: 9px;
  /* 上下アニメーション */
  animation: arrowBounce 1.2s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%,
  100% {
    margin-top: 9px;
  }
  50% {
    margin-top: 3px;
  }
}

/* SP対応 */
@media (max-width: 767px) {
  .back-to-top {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }
  .back-to-top-wrap {
    width: 48px;
    height: 48px;
    bottom: 15px;
    right: 15px;
  }
  .back-to-top__arrow {
    width: 10px;
    height: 10px;
    border-width: 2px;
    margin-top: 8px;
  }
  @keyframes arrowBounce {
    0%,
    100% {
      margin-top: 8px;
    }
    50% {
      margin-top: 2px;
    }
  }
}
