/* 約物半角フォント「YakuHanMP」（しっぽり明朝向け）。
   しっぽり明朝はOpenTypeのhalt機能に対応しておらずfont-feature-settingsでは
   句読点を半角にできないため、約物のグリフだけを半角字形で持つこのフォントを
   font-familyの先頭に割り込ませることで確実に半角にする。
   YakuHan JP v4.1.1 (SIL OFL 1.1 AND MIT, Noto Serif JPベース) by Qrac
   https://yakuhanjp.qranoko.jp/ をテーマ内にセルフホスト（assets/fonts/YakuHanMP/）。
   使用箇所の font-weight（300/400/500/700）ぶんだけ取り込んでいる */

@font-face {
  font-family: 'YakuHanMP';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/YakuHanMP/YakuHanMP-Light.woff2') format('woff2');
  unicode-range: U+3001,U+3002,U+3008,U+3009,U+300a,U+300b,U+300c,U+300d,U+300e,U+300f,U+3010,U+3011,U+3014,U+3015,U+30fb,U+ff01,U+ff08,U+ff09,U+ff1a,U+ff1b,U+ff1f,U+ff3b,U+ff3d,U+ff5b,U+ff5d;
}

@font-face {
  font-family: 'YakuHanMP';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/YakuHanMP/YakuHanMP-Regular.woff2') format('woff2');
  unicode-range: U+3001,U+3002,U+3008,U+3009,U+300a,U+300b,U+300c,U+300d,U+300e,U+300f,U+3010,U+3011,U+3014,U+3015,U+30fb,U+ff01,U+ff08,U+ff09,U+ff1a,U+ff1b,U+ff1f,U+ff3b,U+ff3d,U+ff5b,U+ff5d;
}

@font-face {
  font-family: 'YakuHanMP';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/YakuHanMP/YakuHanMP-Medium.woff2') format('woff2');
  unicode-range: U+3001,U+3002,U+3008,U+3009,U+300a,U+300b,U+300c,U+300d,U+300e,U+300f,U+3010,U+3011,U+3014,U+3015,U+30fb,U+ff01,U+ff08,U+ff09,U+ff1a,U+ff1b,U+ff1f,U+ff3b,U+ff3d,U+ff5b,U+ff5d;
}

@font-face {
  font-family: 'YakuHanMP';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/YakuHanMP/YakuHanMP-Bold.woff2') format('woff2');
  unicode-range: U+3001,U+3002,U+3008,U+3009,U+300a,U+300b,U+300c,U+300d,U+300e,U+300f,U+3010,U+3011,U+3014,U+3015,U+30fb,U+ff01,U+ff08,U+ff09,U+ff1a,U+ff1b,U+ff1f,U+ff3b,U+ff3d,U+ff5b,U+ff5d;
}

:root {
    --color-main: #009FE8;
    --color-main-dark: #0087C5; /* ENTRYボタン等、背景ホバーの明暗変化用 */
    --color-logo: #0095D9;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-light-blue: #EDF6FF;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'YakuHanMP', 'Shippori Mincho', serif;
    --font-en: 'Oswald', sans-serif;
    --font-header-en: 'Helvetica', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-black);
    font-size: 1rem;
    /* overflow-x: hidden; */
}

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

/* ===========================
   ホバー挙動はコンポーネントごとに個別定義する
   （全体一括のopacity変化は廃止済み）
=========================== */

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    z-index: 100;
}

/* 上段 */

.site-header__top {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  height: 50px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ロゴ */

.site-header__logo {
  /* flexコンテナにして、縦中央に配置する */
  display: flex;
  align-items: center;
  height: 100%;
}

.site-header__logo a {
  display: flex;
  align-items: center;
  /* gap: 12px; */
  text-decoration: none;
}

.site-header__logo img{
  width: 205px; /* %指定だと親.site-header__logo a自体の幅がこの画像サイズ依存で決まる循環参照になり、
                   ブラウザにより計算結果が変わっていた（Chrome/Safariで見え方に差）ため固定値にした */
  height: auto;
}

.site-header__logo-sub {
  font-family: var(--font-header-en);
  font-size: 1.25rem;
  color: var(--color-logo);
  font-weight: 200;
  letter-spacing: .05rem;
}

/* ENTRYボタン・ハンバーガー */

.site-header__actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

/* ENTRYボタン */

.site-header__entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center; /* pill化に伴い、上段の縦幅いっぱいではなく中央に配置 */
  flex-shrink: 0; /* 親flexコンテナが窮屈でもボタンが縮んで文字が折り返らないようにする */
  gap: 10px;
  background: var(--color-logo);
  color: var(--color-white);
  font-family: var(--font-en);
  font-size: 1.125rem;
  font-weight: 200;
  letter-spacing: 0.2em;
  text-decoration: none;
  white-space: nowrap;
  padding: 0 20px 0 40px;
  height: 38px;
  border: 2px solid var(--color-logo); /* .btn-fillのinsetは-1pxのままなので、2pxにして外側1px分がホバー時の塗りに覆われず見えるようにする */
  border-radius: 999px;
  position: relative;
  isolation: isolate; /* .btn-fillのz-index:-1を固定ヘッダーの重なり順に埋もれさせず、このボタン内だけに閉じ込める */

  /* ホバー：単純な暗色化ではなく.btn-fill（.more__btn等と共通）による色反転にする */
  --btn-fill: var(--color-white);
  --btn-hover-text: var(--color-logo);
  transition: color 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

/* 枠線(2px)の内側1px分だけ塗りを潜り込ませ、境界のズレが出ても隙間が見えないようにしつつ、
   外側1px分は覆わずに残してホバー中も枠線が見えるようにする（entry-panel__btn等と同じ考え方） */
.site-header__entry-btn .btn-fill {
  inset: -1px;
}

.site-header__entry-btn:focus-visible {
  color: var(--btn-hover-text);
}

.site-header__entry-btn:focus-visible .btn-fill {
  clip-path: polygon(0% 0%, 100% 0%, 104% 50%, 100% 100%, 0% 100%);
}

@media (hover: hover) and (pointer: fine) {
  .site-header__entry-btn:hover {
    color: var(--btn-hover-text);
    border: 2px solid var(--color-logo);
  }

  .site-header__entry-btn:hover .btn-fill {
    clip-path: polygon(0% 0%, 100% 0%, 104% 50%, 100% 100%, 0% 100%);
  }
}

/* 丸+矢印アイコンをCSSだけで色反転できるようにする：
   丸は単なる円なのでborder-radius+background-colorで再現し、矢印は矢印の形だけの
   マスク画像(btn_arr_mask.svg)を::afterに被せてbackground-colorで塗る。
   画像を2枚重ねてクロスフェードさせるより新規アセットが1枚で済み、
   ボタン本体と同じtransition: background-colorで色が同期して切り替わる */
.site-header__entry-btn-arr {
  display: block;
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--color-white);
  transition: background-color 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.site-header__entry-btn-arr::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-logo);
  -webkit-mask: url('../images/btn_arr_mask.svg') no-repeat center / contain;
  mask: url('../images/btn_arr_mask.svg') no-repeat center / contain;
  transition: background-color 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.site-header__entry-btn:focus-visible .site-header__entry-btn-arr {
  background-color: var(--color-logo);
}

.site-header__entry-btn:focus-visible .site-header__entry-btn-arr::after {
  background-color: var(--color-white);
}

@media (hover: hover) and (pointer: fine) {
  .site-header__entry-btn:hover .site-header__entry-btn-arr {
    background-color: var(--color-logo);
  }

  .site-header__entry-btn:hover .site-header__entry-btn-arr::after {
    background-color: var(--color-white);
  }
}

/* ハンバーガーメニュー */

.site-header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px; /* 2本線の間隔 */
  width: 30px; /* ボタンの横幅 */
  height: 100%; /* 縦幅いっぱいに広げる */
  background: var(--color-white);

  border: none;
  /* border-left: 2px solid var(--color-white); */

  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

/* .site-header__hamburger:hover,
.site-header__hamburger:focus-visible {
  background-color: var(--color-main-dark);
} */

/* ハンバーガーの2本線 */

.site-header__hamburger span {
  display: block;
  width: 28px; /* 線の長さ */
  height: 2px;  /* 線の太さ */
  background: var(--color-logo);
}

/* 下段ナビ */

.site-header__bottom {
  padding: 0 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.site-header__nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%; /* 横いっぱいに広げる */
}

.site-header__nav ul li {
  /* 文字数に応じて伸縮し、余ったスペースを等分に割り振る */
  flex: auto;
  text-align: center;
  position: relative;
}

/* 最初の要素の左線も疑似要素（::before）で作る */

.site-header__nav ul li:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px; /* 線の長さを指定 */
  background-color: #d9d9d9;
}

/* 全要素の右線を疑似要素（::after）で作る */

.site-header__nav ul li::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px; /* 線の長さを指定 */
  background-color: #d9d9d9;
}

.site-header__nav ul li a {
  display: block;
  font-size: 0.8125rem;
  text-decoration: none;
  color: var(--color-black);
  line-height: 2.75rem;
  white-space: nowrap;
  padding: 0 1rem;
  letter-spacing: 0.15rem;
  position: relative;
}

/* ホバー：下線が左から右へ伸びる（文字色は変えない）。
   文字幅ではなく、li a のボックス下端いっぱい（left:0〜right:0）に配置している */
.site-header__nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--color-main);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.site-header__nav ul li a:focus-visible::after {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .site-header__nav ul li a:hover::after {
    transform: scaleX(1);
  }
}

/* ==========================================================================
   ドロワーメニュー
   ========================================================================== */

/* オーバーレイ */

.menu-overlay {
  position: fixed;
  inset: 0;
  /* background: rgba(202, 227, 246, 0.9); */
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

/* ドロワー本体 */

.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 27.3vw; /* カンプ: 画面幅1100pxのときドロワー幅300px程度 */
  max-width: 400px;
  height: 100vh; /* dvh非対応の古いブラウザ向けフォールバック */
  height: 100dvh; /* iOS Safariのツールバー展開/格納に追従する実表示高さ。これがないとツールバー展開時に下端(ENTRYパネル)がツールバーの裏に沈む */
  background: var(--color-white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1); /* イージングをサイト標準に統一。尺はスライド量に合わせ0.4sのまま */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.menu-drawer.is-open {
  transform: translateX(0);
}

/* ドロワーヘッダー（ロゴ・サイトラベルはPC/SPともになし、×ボタンのみ） */

.menu-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 63px;
  padding-right: 20px;
  flex-shrink: 0;
}

/* ×閉じるボタン */

.close-btn {
  margin-left: auto;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.close-btn:focus-visible {
  transform: rotate(90deg);
}

@media (hover: hover) and (pointer: fine) {
  .close-btn:hover {
    transform: rotate(90deg);
  }
}

.close-btn span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background: var(--color-logo);
}

.close-btn span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ドロワーボディ（ナビ・バナー・ENTRYパネルまで1本の縦積み。全体が1つのスクロール領域） */

.menu-drawer__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 150px; /* 下部固定のミニENTRYパネル(.entry-panel-fixed)と重ならない余白 */
}

/* ナビエリア */

.menu-drawer__left {
  width: 100%;
  padding: 0px 20px 30px;
}

/* グローバルナビ */

.global-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.global-nav ul li a {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-black);
  text-decoration: none;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 35px;
  position: relative;
}

/* 下線をテキスト幅ぴったりに合わせるため、箱を文字幅に縮める（block→inline-block）。
   .externalLink（コーポレートサイトリンク）はdisplay:inline-flexでアイコンを
   横並びにしており、これもshrink-to-fitなので上書きせず除外している */
.global-nav ul li a:not(.externalLink) {
  display: inline-block;
}

.global-nav ul li:last-child a {
  margin-bottom: 0;
}

/* コーポレートサイトリンクの外部リンクアイコンは黒（PC/SP共通）。
   .externalLink::after のベース色はグレー(gaibu_link.svg)だが、ここだけ上書きする */
.global-nav__item-corporate .externalLink::after {
  background-image: url("../images/gaibu_link_black.svg");
}

/* ホバー：左揃え・テキスト幅ぴったりの下線が左から伸びる（文字色は変えない）。
   ::afterは.externalLink（コーポレートサイトリンク）のアイコンで使用済みのため::beforeを使う */
.global-nav ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.global-nav ul li a:focus-visible::before {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .global-nav ul li a:hover::before {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-nav ul li a::before,
  .site-header__entry-btn,
  .site-header__entry-btn-arr,
  .site-header__entry-btn-arr::after,
  .site-header__hamburger,
  .close-btn,
  .banner-list__item img,
  .site-footer__banner-item img,
  .join-section__card,
  .footer-logos__item img,
  .entry-panel__btn,
  .entry-panel__btn-arr,
  .entry-panel__btn-arr::after,
  .entry-panel-fixed__btn,
  .entry-panel-fixed__btn-arr,
  .entry-panel-fixed__btn-arr::after,
  .entry-modal__btn,
  .entry-modal__btn-arr,
  .entry-modal__btn-arr::after {
    transition: none;
  }
}

/* バナーリスト */

.banner-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}

.banner-list li {
  margin-bottom: 15px;
}

.banner-list li:last-child {
  margin-bottom: 0;
}

.banner-list__item {
  display: block;
  line-height: 0;
  overflow: hidden; /* ホバーズームした画像の角をクリップする */
}

.banner-list__item img {
  display: block;
  width: 100%;
  /* height: 50px; */
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.banner-list__item:focus-visible img {
  transform: scale(1.1);
}

@media (hover: hover) and (pointer: fine) {
  .banner-list__item:hover img {
    transform: scale(1.1);
  }
}

/* フッターロゴ */

.footer-logos {
  display: flex;
  gap: 8px;
  margin-top: 30px;
}

.footer-logos__item {
  display: block;
  width: 37px;
  height: 37px;
  line-height: 0;
  overflow: hidden; /* ホバーズームした画像の角をクリップする */
}

.footer-logos__item img {
  display: block;
  width: 37px;
  height: 37px;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.footer-logos__item:focus-visible img {
  transform: scale(1.1);
}

@media (hover: hover) and (pointer: fine) {
  .footer-logos__item:hover img {
    transform: scale(1.1);
  }
}

/* 右カラム（通常のフロー内、ナビ・バナーに続けて配置。ドロワー内でカード状に見せるための左右余白） */

.menu-drawer__right {
  padding: 0 20px 120px;
}

/* ENTRYパネル */

.entry-panel {
  background: var(--color-logo);
  border-radius: 16px;
  padding: 32px 20px 40px;
  display: flex;
  flex-direction: column;
}

/* ENTRY見出し */

.entry-panel__ttl {
  font-family: var(--font-en);
  font-size: 2.25rem; /* 36px */
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5); /* 白 + 不透明度50% → #80CFF3相当 */
  text-align: center;
  margin-bottom: 24px;
}

/* CTAグループ：ラベル＋ボタンを縦積み（PC/SP共通） */

.entry-panel__groups {
  display: flex;
  flex-direction: column;
}

.entry-panel__group {
  margin-bottom: 19px; /* ボタン下端から次ラベルまで */
}

.entry-panel__group:last-child {
  margin-bottom: 0;
}

.entry-panel__label {
  font-family: var(--font-sans);
  font-size: 0.75rem; /* 12px */
  color: var(--color-white);
  letter-spacing: 0.1em;
  margin-bottom: 10px; /* ラベルとボタンの間隔 */
}

/* CTAボタン */

.entry-panel__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
  color: var(--color-logo);
  text-decoration: none;
  padding: 0 16px;
  height: 52px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.8125rem; /* 13px */
  letter-spacing: 0.1em;
  border: 2px solid transparent; /* ホバー時に白枠を出してもレイアウトが動かないよう、あらかじめ同じ幅を透明で確保しておく。.btn-fillのinsetは-1pxのままなので、枠線を2pxにすることで外側1px分が塗りに覆われず白く見える */
  position: relative;
  isolation: isolate; /* .btn-fillのz-index:-1をこのボタン内だけに閉じ込める */

  /* ホバー：単純な暗色化ではなく.btn-fill（.more__btn等と共通）によるヤジリ型の塗り流し込みにする。
     塗り色は.entry-panel自体の背景と同じvar(--color-logo)にするため、
     ホバー時にボタンの輪郭が分かるよう白い枠線を併せて出す */
  --btn-fill: var(--color-logo);
  --btn-hover-text: var(--color-white);
  transition: color 0.3s cubic-bezier(0.65, 0, 0.35, 1), border-color 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

/* 枠線幅(1px)の下まで塗りを潜り込ませ、境界のズレが出ても隙間が見えないようにする */
.entry-panel__btn .btn-fill {
  inset: -1px;
}

.entry-panel__btn:focus-visible {
  color: var(--btn-hover-text);
  border-color: var(--color-white);
}

.entry-panel__btn:focus-visible .btn-fill {
  clip-path: polygon(0% 0%, 100% 0%, 104% 50%, 100% 100%, 0% 100%);
}

@media (hover: hover) and (pointer: fine) {
  .entry-panel__btn:hover {
    color: var(--btn-hover-text);
    border-color: var(--color-white);
  }

  .entry-panel__btn:hover .btn-fill {
    clip-path: polygon(0% 0%, 100% 0%, 104% 50%, 100% 100%, 0% 100%);
  }
}

/* ボタン右端の丸型矢印アイコン */

/* 丸+矢印をCSSだけで色反転させる（site-header__entry-btn-arrと同じ手法）。
   丸はborder-radius+background-colorで再現し、矢印は矢印の形だけのマスク画像(btn_arr_mask.svg)を
   ::afterに被せてbackground-colorで塗る。ボタン本体と同じtransitionで色が同期して切り替わる。
   以前はfilter: brightness(0) invert(1)で反転させていたが、2色とも同じ白に潰れて矢印が消える不具合があった */
.entry-panel__btn-arr {
  display: block;
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--color-main);
  transition: background-color 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.entry-panel__btn-arr::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-white);
  -webkit-mask: url('../images/btn_arr_mask.svg') no-repeat center / contain;
  mask: url('../images/btn_arr_mask.svg') no-repeat center / contain;
  transition: background-color 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.entry-panel__btn:focus-visible .entry-panel__btn-arr {
  background-color: var(--color-white);
}

.entry-panel__btn:focus-visible .entry-panel__btn-arr::after {
  background-color: var(--color-main-dark);
}

@media (hover: hover) and (pointer: fine) {
  .entry-panel__btn:hover .entry-panel__btn-arr {
    background-color: var(--color-white);
  }

  .entry-panel__btn:hover .entry-panel__btn-arr::after {
    background-color: var(--color-main-dark);
  }
}

/* ==========================================================================
   ミニENTRYパネル（ドロワー下部に常時固定表示）
   カンプ: _comps/menu_pc_260721.png（ドロワーを開いた直後に見える固定表示）
   .menu-drawerがtransformを持つため、これが子孫のposition:fixedの基準になる
   ========================================================================== */

.entry-panel-fixed {
  position: fixed;
  left: 0;
  bottom: 0; /* 祖先.menu-drawerがtransformを持つためドロワー下端が基準。ドロワー自体を100dvhにすることで下端＝実際に見えている画面下端になる */
  width: 100%;
  background: var(--color-logo);
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px));
}

.entry-panel-fixed__ttl {
  font-family: var(--font-en);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-bottom: 14px;
}

.entry-panel-fixed__groups {
  display: flex;
  gap: 7px;
}

.entry-panel-fixed__group {
  flex: 1;
  min-width: 0;
}

.entry-panel-fixed__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
  color: var(--color-logo);
  text-decoration: none;
  padding: 0 10px;
  height: 32px;
  border-radius: 999px;
  font-family: var(--font-en);
  /* PC最小幅(950px)ではMEETINGなどが折り返すため、950px〜1150pxで9px→12px(0.75rem, Oswald)まで滑らかに拡大し、それ以降は0.75remで頭打ちにする。
     (100vw - 950px)はpx単位の値になるため、係数もpx/px（3px差 ÷ 200px差 = 0.015）で計算する */
  font-size: clamp(9px, calc(9px + (100vw - 950px) * 0.015), 0.75rem);
  letter-spacing: 0.05em;
  border: 2px solid transparent; /* ホバー時に白枠を出してもレイアウトが動かないよう、あらかじめ同じ幅を透明で確保しておく。.btn-fillのinsetは-1pxのままなので、枠線を2pxにすることで外側1px分が塗りに覆われず白く見える */
  position: relative;
  isolation: isolate; /* .btn-fillのz-index:-1をこのボタン内だけに閉じ込める */

  /* ホバー：.entry-panel__btnと同じヤジリ型の塗り流し込み。塗り色は.entry-panel-fixed自体の
     背景と同じvar(--color-logo)にするため、ホバー時にボタンの輪郭が分かるよう白い枠線を併せて出す */
  --btn-fill: var(--color-logo);
  --btn-hover-text: var(--color-white);
  transition: color 0.3s cubic-bezier(0.65, 0, 0.35, 1), border-color 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.entry-panel-fixed__btn .btn-fill {
  inset: -1px;
}

.entry-panel-fixed__btn:focus-visible {
  color: var(--btn-hover-text);
  border-color: var(--color-white);
}

.entry-panel-fixed__btn:focus-visible .btn-fill {
  clip-path: polygon(0% 0%, 100% 0%, 104% 50%, 100% 100%, 0% 100%);
}

@media (hover: hover) and (pointer: fine) {
  .entry-panel-fixed__btn:hover {
    color: var(--btn-hover-text);
    border-color: var(--color-white);
  }

  .entry-panel-fixed__btn:hover .btn-fill {
    clip-path: polygon(0% 0%, 100% 0%, 104% 50%, 100% 100%, 0% 100%);
  }
}

/* 丸+矢印をCSSだけで色反転させる（.entry-panel__btn-arrと同様） */
.entry-panel-fixed__btn-arr {
  display: block;
  position: relative;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--color-main);
  transition: background-color 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.entry-panel-fixed__btn-arr::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-white);
  -webkit-mask: url('../images/btn_arr_mask.svg') no-repeat center / contain;
  mask: url('../images/btn_arr_mask.svg') no-repeat center / contain;
  transition: background-color 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.entry-panel-fixed__btn:focus-visible .entry-panel-fixed__btn-arr {
  background-color: var(--color-white);
}

.entry-panel-fixed__btn:focus-visible .entry-panel-fixed__btn-arr::after {
  background-color: var(--color-main-dark);
}

@media (hover: hover) and (pointer: fine) {
  .entry-panel-fixed__btn:hover .entry-panel-fixed__btn-arr {
    background-color: var(--color-white);
  }

  .entry-panel-fixed__btn:hover .entry-panel-fixed__btn-arr::after {
    background-color: var(--color-main-dark);
  }
}

/* bodyスクロールロック（ドロワーオープン時） */

body.drawer-is-open {
  overflow: hidden;
}

/* ==========================================================================
   共通コンポーネント: MOREボタン
   ========================================================================== */

.more__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  border: 2px solid var(--color-white);
  padding: 16px 40px;
  border-radius: 999px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  position: relative;
  isolation: isolate; /* .btn-fillのz-index:-1をこのボタン内だけに閉じ込める。
    isolationがないと、セクション自体に不透明な背景がある場合（mv-message等）
    z-indexがページ全体の重なり順に抜け出し、セクション背景の奥に隠れてしまう */

  /* 配色は各バリエーション（--outline-blueなど）が
     --btn-fill / --btn-hover-text を上書きして決める */
  --btn-fill: var(--color-white);
  --btn-hover-text: var(--color-main);
  transition: color 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ホバー：矢じり型の塗り（.btn-fill）が左から右へ流れ込む。
   テキスト・枠線・矢印を巻き込まないよう、塗りは専用のspan(.btn-fill)に
   分離している（::before/::afterはスペーサーと矢印アイコンで使用済みのため）。
   形はclip-pathの5点ポリゴンで表現し、休止時は左端に折りたたまれて
   見えない状態から、ホバーで右端を超える位置まで伸びて全面を覆う。
   ポリゴンの頂点数が同じなのでtransitionだけで滑らかに補間される。
   角丸は「親のoverflow:hidden」ではなくこの要素自身のborder-radiusで持たせる。
   クリップを親子2箇所に分けるとアンチエイリアスの継ぎ目が生まれ、
   ホバー時にうっすら白い縁が透けて見える不具合があったため。
   insetもborder幅ぶんマイナスにして枠線の下まで塗りを潜り込ませ、
   境界のズレが出ても隙間が見えないようにしている。 */
.btn-fill {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  z-index: -1; /* テキスト・矢印より背面、ボタン自体の背景よりは前面 */
  background: var(--btn-fill);
  /* 休止時のクリップ境界を0%(ボタン枠線のすぐ内側)ぎりぎりに置くと、
     高DPI環境でのアンチエイリアシングにより1px未満の塗りが常時うっすら透けて見える
     不具合があったため、境界をボタンの可視範囲から確実に離す(-3%/-5%) */
  clip-path: polygon(-3% 0%, -5% 0%, -3% 50%, -5% 100%, -3% 100%);
  transition: clip-path 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}

.more__btn:focus-visible .btn-fill,
.all__btn:focus-visible .btn-fill {
  clip-path: polygon(0% 0%, 100% 0%, 104% 50%, 100% 100%, 0% 100%);
}

.more__btn:focus-visible,
.all__btn:focus-visible {
  color: var(--btn-hover-text);
}

@media (hover: hover) and (pointer: fine) {
  .more__btn:hover .btn-fill,
  .all__btn:hover .btn-fill {
    clip-path: polygon(0% 0%, 100% 0%, 104% 50%, 100% 100%, 0% 100%);
  }

  .more__btn:hover,
  .all__btn:hover {
    color: var(--btn-hover-text);
  }
}

@media (prefers-reduced-motion: reduce) {
  .more__btn,
  .all__btn,
  .btn-fill {
    transition: none;
  }
}

/* テキストを光学的に中央へ：::afterと同サイズの不可視スペーサー */

.more__btn::before {
  content: '〉';
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: normal;
  text-indent: 0;
  margin-right: 16px;
  visibility: hidden;
}

/* 矢印（〉）の配置 */

.more__btn::after {
  content: '〉';
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: normal;
  text-indent: 0;
  margin-left: 16px;
}

/* バリエーション：水色枠＋水色文字（白背景上で使用） */

.more__btn--outline-blue {
  color: var(--color-main);
  border-color: var(--color-main);
  --btn-fill: var(--color-main);
  --btn-hover-text: var(--color-white);
}

/* バリエーション：外部リンク用（矢印〉を外部リンクアイコンに差し替え） */

.more__btn--external::before {
  content: '';
  width: 12px;
  height: 12px;
  margin-right: 8px;
  visibility: hidden;
}

.more__btn--external::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  letter-spacing: normal;
  text-indent: 0;
  margin-left: 8px;
  background-image: url("../images/gaibu_link_blue.svg");
  background-repeat: no-repeat;
  background-size: 12px;
  transition: filter 0.5s cubic-bezier(0.65, 0, 0.35, 1); /* 同じボタンの塗り(.btn-fill)が0.5sなので、アイコン反転も0.5sに揃えて同時に完了させる */
}

/* ホバーで塗りが青になるため、青い外部リンクアイコンを白に反転させる */
.more__btn--external:focus-visible::after {
  filter: brightness(0) invert(1);
}

@media (hover: hover) and (pointer: fine) {
  .more__btn--external:hover::after {
    filter: brightness(0) invert(1);
  }
}
/* ==========================================================================
   共通コンポーネント: ALLボタン
   ========================================================================== */

.all__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--color-main);
  text-decoration: none;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  border: 2px solid var(--color-main);
  padding: 16px 40px;
  border-radius: 999px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  position: relative;
  isolation: isolate; /* .btn-fillのz-index:-1をこのボタン内だけに閉じ込める */

  /* ホバー：MOREボタンと同じ矢じり型の塗り流し込み（.btn-fill）*/
  --btn-fill: var(--color-main);
  --btn-hover-text: var(--color-white);
  transition: color 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.all__btn::after {
  content: '〉';
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: normal;
  text-indent: 0;

  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 50%;
  margin-left: 3.5rem;
}

/* ===========================
   トグル（共通：+/-アコーディオン）
=========================== */

.toggle-item {
  background: var(--color-light-blue);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.toggle-item__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.5rem 2rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: var(--color-black);
  text-align: left;
}

.toggle-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.toggle-item__icon::before,
.toggle-item__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-main);
  transition: transform 0.25s ease;
}

/* 横線（常に表示） */

.toggle-item__icon::before {
  width: 100%;
  height: 2px;
  transform: translate(-50%, -50%);
}

/* 縦線（開いたときに回転して消える＝マイナスになる） */

.toggle-item__icon::after {
  width: 2px;
  height: 100%;
  transform: translate(-50%, -50%);
}

.toggle-item.is-open .toggle-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* 開閉のなめらかな動きはJS側でheightを実測してtransitionさせる(main.js参照)。
   displayではなくheight:0+overflow:hiddenを初期状態にする */
.toggle-item__body {
  height: 0;
  overflow: hidden;
  padding: 0 2rem;
  transition: height 0.35s ease;
}

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

.toggle-item__body-text {
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  line-height: 2;
  text-align: justify;
  border-top: #d9d9d9 1px solid;
  padding: 3rem;
}

/* 箇条書き主体・英単語が多く両端揃えだと単語間が開く本文は左揃えにする */

.toggle-item__body-text--left {
  text-align: left;
}

/* トグル本文内の「制度の詳細はこちら」等、別ページへのリンク（共通） */

.toggle-item__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--color-main);
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  font-weight: bold;
}

/* toggle-item__body-text の直後に続くリンクは、本文の左端に揃え、本文との間隔を詰める */

.toggle-item__body-text:has(+ .toggle-item__link) {
  padding-bottom: 0;
}

.toggle-item__body-text + .toggle-item__link {
  margin-top: 1rem;
  margin-left: 3rem;
  margin-bottom: 3rem;
}

.toggle-item__link::after {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 9px;
  height: 11px;
  background: url('../images/arr_blue.svg') no-repeat center center / contain;
  margin: 1px 0 0 5px;
}

/* バリエーション：外部リンク用（矢印を外部リンクアイコンに差し替え） */

.toggle-item__link--external::after {
  width: 12px;
  height: 12px;
  background-image: url('../images/gaibu_link_blue.svg');
}

/* ==========================================================================
   詳細ページ 共通レイアウト（hero / toc / section / intro / box）
   ENVIRONMENT・CAREER など、構成が共通する「○○を知る」系の詳細ページで使用。
   今後、新しい詳細ページを追加する場合もこのクラス群を再利用してください。
   ========================================================================== */

.detail-page {
  padding-top: 84px; /* 固定ヘッダー分のオフセット */
}

/* ===========================
   HERO
=========================== */

.detail-hero__text {
  text-align: center;
  padding: 60px 0 0;
}

.detail-hero__en {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  margin-bottom: 1rem;
}

.detail-hero__ja {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  margin-bottom: 2.5rem;
}

.detail-hero__img img {
  width: 100%;
  height: 38vw;
  object-fit: cover;
}


/* ===========================
   目次（アンカーリンク）
=========================== */

.detail-toc {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 40px;
}

.detail-toc__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
}

.detail-toc__item {
  flex: 0 1 calc(50% - 1.5rem);
}

.detail-toc__link {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.5rem;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid #b9b9b9;
  text-decoration: none;
  color: var(--color-black);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.2em;
}

/* シェブロンアイコン：CSSのみで再現 */

.detail-toc__link::after {
  content: '';
  flex-shrink: 0;
  margin-left: auto;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--color-main);
  border-right: 2px solid var(--color-main);
  transform: rotate(135deg);
}

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

.detail-section {
  padding: 80px 0 0;
  scroll-margin-top: 84px;
}

/* 最後の .detail-section だけ下の余白を広げる（共通） */

.detail-section:last-of-type {
  padding-bottom: 240px;
}

.detail-section__inner {
  max-width: 1200px;
  width: 85%;
  margin: 0 auto;
  /* padding: 0 0 80px; */
}

.detail-section__title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--color-black);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-black);
  margin-bottom: 3.5rem;
}

.detail-section__container {
  width: 93%;
  max-width: 1200px;
  margin: 0 auto;
}

/* セクション冒頭：テキスト（左）／画像（右、縦に通し配置） */

.detail-section__top {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  margin-bottom: 3.5rem;
}

.detail-section__top-text {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
}

.detail-section__top-img {
  flex: 1 1 50%;
}

.detail-section__top-img img {
  width: 100%;
  height: 85%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

/* ===========================
   イントロ（見出し＋本文）
=========================== */

.detail-intro {
  display: flex;
  flex-direction: column;
  gap: 2.5rem 3rem;
  margin-bottom: 3.5rem;
}

.detail-intro__heading,
.detail-intro__body {
  flex: 1 1 auto;
}

.detail-intro__lead {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 2.2;
  color: var(--color-black);
}

.detail-intro__body p {
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  line-height: 2;
  text-align: justify;
  color: var(--color-black);
}

.detail-intro--sub {
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 6rem;
}

.detail-intro--sub .detail-intro__heading,
.detail-intro--sub .detail-intro__body {
  flex: 1 1 260px;
}

/* ===========================
   ステップ（番号付きリスト：キャリア実現のステップ等）
=========================== */

.detail-steps {
  margin-bottom: 4rem;
}

.detail-steps__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
}

/* キャリア実現のステップ：タイトル直後のリード文だけ下の余白を空ける */

.detail-steps__title + .detail-intro__body {
  margin-bottom: 2rem;
}

.detail-steps__list {
  display: block;
}

/* ===========================
   中見出しを持つボックス（アコーディオン一覧等）
=========================== */

.detail-box {
  margin-bottom: 4rem;
}

.detail-box--card {
  background: var(--color-light-blue);
  border-radius: 24px;
  padding: 90px;
}

.detail-box--card .toggle-item {
  background: var(--color-white);
}

.detail-box__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-black);
  margin-bottom: 2.5rem;
  font-weight: normal;
}


/* 本文・FAQ回答中の文中リンク（下線のみ、矢印なし） */

.inline-link {
  text-decoration: underline;
}

/* バリエーション：外部リンク用（末尾に外部リンクアイコンを付ける） */

.inline-link--external {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 5px;
}

.inline-link--external::after {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 12px;
  height: 11px;
  background: url('../images/gaibu_link_black.svg') no-repeat center center / contain;
}

/* ===========================
   SPECIAL TALK
   トップとわたしたちが目指す未来で共用
=========================== */

.special-talk__hero {
  position: relative;
  width: 100%;
  height: 50vw;
  max-height: 700px;
  overflow: hidden;
}

.special-talk__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.special-talk__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 10px 10px;
  z-index: 1;
}

.special-talk__content {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  z-index: 2;
  text-align: left;
}

.special-talk__en {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.25em;
  margin-bottom: 1rem;
}

.special-talk__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: 0.4em;
  margin-bottom: 2rem;
}

.special-talk__text {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  color: var(--color-white);
  line-height: 1.8;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  font-weight: 500;
}



/* =========================================================
   キャリア採用情報ページ＆新卒採用情報ページ共通クラス
========================================================= */

/* 採用担当者メッセージ：写真下の所属・氏名キャプション */

.midcareer-caption {
  text-align: right;
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 0.975rem;
  letter-spacing: 0.2rem;
  line-height: 2;

  & span{
    font-size: 1.25rem;
  }
}


/* ==========================================================================
   SP対応（max-width: 768px）
   ========================================================================== */

@media (max-width: 767px) {
  .midcareer-caption {
    text-align: left;
  }
}


/* ===========================
   JOIN OUR TEAM!
=========================== */

.join-section {
  background: var(--color-main);
  padding: 100px 0;
  text-align: center;
  width: 100%;
  margin-top: -110px;
  position: relative;
  border-radius: 40px 40px 0 0;
  z-index: 2;
}

.join-section__inner {
  padding: 0 40px;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

.join-section__en {
  font-family: var(--font-en);
    font-size: 5.0rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-white);
    transform: scaleX(1.1);
    letter-spacing: 0.15em;
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 3rem;
}

.join-section__title {
  font-family: var(--font-en);
    font-size: 3.0rem;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 0.25em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.join-section__title-ja {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: 0.4em;
  margin-bottom: 3rem;
  text-indent: 0.4em; /* センターを完璧に合わせる */
}

.join-section__text {
  font-size: 0.9375rem;
  color: var(--color-white);
  line-height: 2.2;
  margin-bottom: 3rem;
  font-weight: 400;
}

/* ==========================================
   カードレイアウト
   ========================================== */

.join-section__cards {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.join-section__card {
  display: block;
  background: var(--color-white);
  border-radius: 24px;
  overflow: hidden;
  flex: 1;
  min-width: 0; /* ←これを追加 */
  /* max-width: 340px; */
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1), box-shadow 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ホバー：カード全体を少し持ち上げる（画像ズームと合わせて使う） */
.join-section__card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

@media (hover: hover) and (pointer: fine) {
  .join-section__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  }
}

/* 白い額縁を作るための余白（下側のpaddingを少し多めに取る） */

.join-section__card-img-wrap {
  width: 100%;
  padding: 16px 16px 8px 16px; /* 👈 下の余白を少し調整 */
}

/* 写真自体の角丸 */

.join-section__card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.join-section__card-tag {
  display: inline-block;
  background: #00a0e9;
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 400;
  padding: 4px 14px;
  border-radius: 4px;
  letter-spacing: 0.15em;

  margin-top: -16px;     /* 👈 ネガティブマージンで写真の下端に少しだけ重ねる */
  position: relative;    /* 重なりの順序（z-index）を有効にするため */
  z-index: 2;            /* 写真より上にする */
}

/* テキストエリアの上の余白を調整 */

.join-section__card-body {
  padding: 8px 16px 16px 16px;
}

.join-section__card-title {
  font-size: 1.125rem;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-black);
  margin: 0.8rem 0;
  letter-spacing: 0.15em;
}

.join-section__card-more {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-en);
  font-size: 1.25rem;
  color: var(--color-main);
  font-weight: 200;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.join-section__card-more::after {
  content: "";
  display: inline-block;

  background: url('../images/btn_arr_blue.svg') no-repeat center center / contain;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  position: relative;
  top: 1px;
}

/* ===========================
   PAGE TOP
=========================== */

.page-top {
  background: #202124;
  text-align: right;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.page-top__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-items: center;
  font-family: var(--font-en);
  font-size: 1.25rem;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.1em;
  font-weight: 200;
  width: 80%;
  margin-inline: auto;
  padding: 20px 0;
  position: relative;
}

.page-top__btn::after {
  content: "";
  display: inline-block;

  background: url('../images/btn_arr_top.svg') no-repeat center center / contain;
  width: 30px;
  height: 30px;
  margin-left: 8px;
  position: relative;
  top: 1px;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.page-top__btn:focus-visible::after {
  transform: translateY(-4px);
}

@media (hover: hover) and (pointer: fine) {
  .page-top__btn:hover::after {
    transform: translateY(-4px);
  }
}

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

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

.site-footer {
  background: #202124;
  color: var(--color-white);
}

/* ナビゲーション */

.site-footer__nav {
  background: var(--color-black);
  padding: 80px 0px;
  width: 100%;
}

.site-footer__nav-inner {
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.site-footer__nav-col {
  list-style: none;
}

.site-footer__nav-col li a {
  font-size: 0.875rem;
  color: var(--color-white);
  text-decoration: none;
  position: relative;
  letter-spacing: 0.1em;
}

/* 下線をテキスト幅ぴったりに合わせるため、箱を文字幅に縮める（block→inline-block）。
   .externalLinkはdisplay:inline-flexでアイコンを横並びにしているため除外している */
.site-footer__nav-col li a:not(.externalLink) {
  display: inline-block;
}

/* ホバー：ヘッダーと同じ「動きは左から・収まりは中央」の下線（文字色は変えない）。
   ::afterは.externalLinkの外部リンクアイコンで使用済みのため::beforeを使う */
.site-footer__nav-col li a::before {
  content: '';
  position: absolute;
  left: 0%;
  right: 0%;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.site-footer__nav-col li a:focus-visible::before {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__nav-col li a:hover::before {
    transform: scaleX(1);
  }
}

.site-footer__nav-col li {
  margin-bottom: 20px;
}

.site-footer__nav-col li.nav_thin a {
  color: #9e9e9f;
  text-decoration: none;
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  .site-header__nav ul li a::after,
  .site-footer__nav-col li a::before,
  .site-footer__copyright-nav li a::before {
    transition: none;
  }
}

/* タイトル見出し */

.site-footer__nav-col li.site-footer__nav-heading {
  font-size: 0.9375rem;
  color: var(--color-white);
  margin-bottom: 5px;
}

.site-footer__nav-col li.site-footer__nav-heading-sub {
  font-size: 0.9375rem;
  color: var(--color-white);
  margin-top: 2.5rem; /* その他との間隔 */
  margin-bottom: 5px;
}

/* 3列目の列（ul要素）自体の幅と配置の調整 */

.site-footer__nav-inner .site-footer__nav-col:nth-child(3) {
  min-width: 170px;  /* 文字幅（一番長いプライバシーポリシー＋アイコン）に合わせて、箱の幅を固定する */
}

/* 3列目の li は左揃えにして文字の頭を揃える */

.site-footer__nav-col li.nav_thin {
  display: block;
  text-align: left;
  width: auto;
  margin-bottom: 5px;
}

/* 外部リンクを持つ a タグの設定 */

.externalLink {
  display: inline-flex;
  align-items: center;
  width: auto;
}

/* 外部リンクの疑似要素アイコン */

.externalLink::after {
  display: block;
  width: 12px;
  height: 12px;
  content: "";
  background-image: url("../images/gaibu_link.svg");
  background-repeat: no-repeat;
  background-size: 12px;
  margin-left: 8px;
  flex-shrink: 0;
  position: relative;
  top: 0px;
}

/* バナーエリア */

.site-footer__banner {
  background: #202124;
  padding: 60px 0;
}

.site-footer__banner-inner {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.site-footer__banner-item {
  display: block;
  overflow: hidden; /* ホバーズームした画像の角をクリップする */
}

.site-footer__banner-item img {
  display: block;
  width: auto;
  height: 55px; /* バナー・Wantedly/Qiitaアイコンを一列の高さで揃える */
  max-width: 100%;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.site-footer__banner-item:focus-visible img {
  transform: scale(1.1);
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__banner-item:hover img {
    transform: scale(1.1);
  }
}

/* ロゴエリア */

.site-footer__logo-area {
  background: #202124;
  padding: 0 0 50px;
}

.site-footer__logo-area-inner {
  width: 80%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 250px;
}

.site-footer__logo-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* グレーのバッジ（インフラエンジニア新卒・キャリア採用） */

.site-footer__badge {
    /* background: #747474; */
    color: var(--color-white);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
    padding: 10px 20px;
    text-align: center;
    letter-spacing: 0.05em;
    border: #fff solid 1px;
    margin-top: -10px;
}

.site-footer__logo {
  display: block; /* 縦並び構造にする */
}

.logo-main-wrap {
  width: 190px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: -7px;
}


.site-footer__logo-sub {
  display: block;
  font-family: var(--font-header-en);
  font-size: 1.8rem;
  color: var(--color-white);
  letter-spacing: 0.1em;
  font-weight: 200;
  margin-top: 4px;
}

/* コピーライト */

.site-footer__copyright {
  background: #202124;
  padding: 0px 0 50px;
  width: 80%;
  margin: 0 auto;
}

.site-footer__copyright-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.site-footer__copyright-nav {
  list-style: none;
  display: flex;
  gap: 0;
}

.site-footer__copyright-nav li {
  font-size: 0.8125rem;
  color: #9e9e9f;
  display: flex;
  align-items: center;
}

/* 各要素の右側に縦線を入れる */

.site-footer__copyright-nav li::after {
  content: "|";
  margin: 0 12px;
  color: var(--color-white);
}

/* 最初の要素の左側にも縦線を入れる（カンプの | お問い合わせ... ルール） */

.site-footer__copyright-nav li:first-child::before {
  content: "|";
  margin-right: 12px;
  color: var(--color-white);
}

.site-footer__copyright-nav li a {
  color: #9e9e9f;
  text-decoration: none;
  letter-spacing: 0.05em;
  position: relative;
}

/* 下線をテキスト幅ぴったりに合わせるため、箱を文字幅に縮める（block→inline-block）。
   .externalLinkはdisplay:inline-flexでアイコンを横並びにしているため除外している */
.site-footer__copyright-nav li a:not(.externalLink) {
  display: inline-block;
}

/* ホバー：他のヘッダー/フッターリンクと同じ「動きは左から・収まりは中央80%」の下線。
   ::afterは.externalLinkの外部リンクアイコンで使用済みのため::beforeを使う */
.site-footer__copyright-nav li a::before {
  content: '';
  position: absolute;
  left: 0%;
  right: 0%;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.site-footer__copyright-nav li a:focus-visible::before {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__copyright-nav li a:hover::before {
    transform: scaleX(1);
  }
}

.site-footer__copyright p {
  font-family: var(--font-en);
  font-size: 0.9375rem;
  color: #9e9e9f;
  text-align: center;
  letter-spacing: 0.1em;
  font-weight: lighter;
}

/* ==========================================================================
   共通：Podcastモーダル
   ========================================================================== */

.podcast-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.podcast-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.podcast-modal {
  position: relative;
  background: var(--color-white);
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  padding: 48px 40px 40px;
  text-align: center;
  transform: translateY(16px);
  transition: transform 0.3s ease;
}

.podcast-modal-overlay.is-open .podcast-modal {
  transform: translateY(0);
}

.podcast-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.podcast-modal__close span {
  position: absolute;
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-black);
  transition: background 0.3s cubic-bezier(0.65, 0, 0.35, 1); /* 尺・イージングをサイト標準に統一 */
}

.podcast-modal__close span:first-child {
  transform: rotate(45deg);
}

.podcast-modal__close span:last-child {
  transform: rotate(-45deg);
}

.podcast-modal__close:focus-visible span {
  background: var(--color-main);
}

@media (hover: hover) and (pointer: fine) {
  .podcast-modal__close:hover span {
    background: var(--color-main);
  }
}

.podcast-modal__eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: var(--color-main);
  margin-bottom: 8px;
}

.podcast-modal__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.5;
}

.podcast-modal__desc {
  font-size: 0.8125rem;
  color: #9e9e9f;
  margin-bottom: 28px;
}

.podcast-modal__platforms {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.podcast-modal__platform-link {
  display: block;
  padding: 14px 20px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.3s cubic-bezier(0.65, 0, 0.35, 1), color 0.3s cubic-bezier(0.65, 0, 0.35, 1), background 0.3s cubic-bezier(0.65, 0, 0.35, 1); /* 尺・イージングをサイト標準に統一 */
}

.podcast-modal__platform-link:focus-visible {
  border-color: var(--color-main);
  color: var(--color-main);
  background: #f0faff;
}

@media (hover: hover) and (pointer: fine) {
  .podcast-modal__platform-link:hover {
    border-color: var(--color-main);
    color: var(--color-main);
    background: #f0faff;
  }
}

/* ==========================================================================
   共通：ENTRYモーダル（ヘッダーENTRYボタン押下時）
   カンプ: _comps/entry_modal_pc_260721_k.pdf / entry_modal_sp_260721_k.pdf
   ========================================================================== */

.entry-modal-overlay {
  position: fixed;
  inset: 0;
  /* background: rgba(0, 0, 0, 0.6); */
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.entry-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.entry-modal {
  position: relative;
  background: var(--color-logo);
  width: 100%;
  max-width: 900px;
  border-radius: 24px;
  padding: 56px 64px;
  transform: translateY(16px);
  transition: transform 0.3s ease;
}

.entry-modal-overlay.is-open .entry-modal {
  transform: translateY(0);
}

.entry-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-modal__close span {
  position: absolute;
  display: block;
  width: 30px;
  height: 2px;
  background: var(--color-white);
  transition: background 0.3s cubic-bezier(0.65, 0, 0.35, 1); /* 尺・イージングをサイト標準に統一 */
}

.entry-modal__close span:first-child {
  transform: rotate(45deg);
}

.entry-modal__close span:last-child {
  transform: rotate(-45deg);
}

.entry-modal__close:focus-visible span {
  background: rgba(255, 255, 255, 0.7);
}

@media (hover: hover) and (pointer: fine) {
  .entry-modal__close:hover span {
    background: rgba(255, 255, 255, 0.7);
  }
}

.entry-modal__ttl {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-bottom: 32px;
}

.entry-modal__groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.entry-modal__label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-white);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.entry-modal__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
  color: var(--color-logo);
  text-decoration: none;
  padding: 0 20px;
  height: 58px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border: 2px solid transparent; /* ホバー時に白枠を出してもレイアウトが動かないよう、あらかじめ同じ幅を透明で確保しておく。.btn-fillのinsetは-1pxのままなので、枠線を2pxにすることで外側1px分が塗りに覆われず白く見える */
  position: relative;
  isolation: isolate; /* .btn-fillのz-index:-1をこのボタン内だけに閉じ込める */

  /* ホバー：.entry-panel__btnと同じヤジリ型の塗り流し込み。塗り色は.entry-modal自体の
     背景と同じvar(--color-logo)にするため、ホバー時にボタンの輪郭が分かるよう白い枠線を併せて出す */
  --btn-fill: var(--color-logo);
  --btn-hover-text: var(--color-white);
  transition: color 0.3s cubic-bezier(0.65, 0, 0.35, 1), border-color 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.entry-modal__btn .btn-fill {
  inset: -1px;
}

.entry-modal__btn:focus-visible {
  color: var(--btn-hover-text);
  border-color: var(--color-white);
}

.entry-modal__btn:focus-visible .btn-fill {
  clip-path: polygon(0% 0%, 100% 0%, 104% 50%, 100% 100%, 0% 100%);
}

@media (hover: hover) and (pointer: fine) {
  .entry-modal__btn:hover {
    color: var(--btn-hover-text);
    border-color: var(--color-white);
  }

  .entry-modal__btn:hover .btn-fill {
    clip-path: polygon(0% 0%, 100% 0%, 104% 50%, 100% 100%, 0% 100%);
  }
}

/* 丸+矢印をCSSだけで色反転させる（.entry-panel__btn-arrと同様） */
.entry-modal__btn-arr {
  display: block;
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--color-main);
  transition: background-color 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.entry-modal__btn-arr::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-white);
  -webkit-mask: url('../images/btn_arr_mask.svg') no-repeat center / contain;
  mask: url('../images/btn_arr_mask.svg') no-repeat center / contain;
  transition: background-color 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.entry-modal__btn:focus-visible .entry-modal__btn-arr {
  background-color: var(--color-white);
}

.entry-modal__btn:focus-visible .entry-modal__btn-arr::after {
  background-color: var(--color-main-dark);
}

@media (hover: hover) and (pointer: fine) {
  .entry-modal__btn:hover .entry-modal__btn-arr {
    background-color: var(--color-white);
  }

  .entry-modal__btn:hover .entry-modal__btn-arr::after {
    background-color: var(--color-main-dark);
  }
}

/* banner-list__item / site-footer__banner-item をbutton要素で使う場合のリセット */

button.banner-list__item {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  display: block;
}

button.site-footer__banner-item {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
}

/* site-header__entry-btn をbutton要素で使う場合のリセット（元はa要素）。
   枠線は.site-header__entry-btn側で意図的に指定しているため、ここではブラウザ標準のbutton見た目のうち
   枠線以外（font等の継承されない項目）だけを想定していたが、実質cursor以外は不要なため縮小 */
button.site-header__entry-btn {
  cursor: pointer;
}

/* バグの調査用アウトライン（デバッグ用、完成後は削除してください） */

/* * {
  outline: 1px solid red !important;
} */

/* ==========================================================================
   ユーティリティ: 表示切り替え改行
   <br class="sp-only"> … SP（768px以下）のときだけ改行する
   <br class="pc-only"> … PC（769px以上）のときだけ改行する
   ========================================================================== */

.sp-only {
  display: none;
}

.pc-only {
  display: inline;
}

/* ==========================================================================
   ユーティリティ: 約物半角（、。「」（）など）
   要素全体に付ければその中の約物だけ半角幅になる。
   一部の文字だけ変えたい場合は <span class="yaku-half">、</span> のように囲む。
   ========================================================================== */

.yaku-half {
  font-feature-settings: "halt" 1;
}

/* ==========================================================================
   SP対応（max-width: 768px）
   カンプ: _comps/top_sp_260703_k.pdf を基準
   ========================================================================== */

@media (max-width: 767px) {

  .sp-only {
    display: inline;
  }

  .pc-only {
    display: none;
  }

    /* ===========================
     共通コンポーネント: MOREボタン
  =========================== */

  .more__btn {
    padding: 10px 40px;
  }

  /* ===========================
     共通コンポーネント: ALLボタン
  =========================== */

  .all__btn {
    padding: 10px 40px;
  }

  /* ===========================
     SPECIAL TALK ヒーロー（共通部品）
  =========================== */

  /* SP用書き出し画像（top_specialtalk_bg_sp.webp / 4:5）の比率に合わせる */

  .special-talk__hero {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .special-talk__content {
    left: 6%;
    right: 6%;
    top: 47%;
  }

  .special-talk__dot{
    background-size: 5px 5px;
  }

  .special-talk__en {
    font-size: 2.5rem;
        letter-spacing: 0.2em;
  }

  .special-talk__title {
    font-size: 1.45rem;
  }

  .special-talk__text {
    font-size: 1.125rem;
    margin-bottom: 35px;
  }

  .special-talk__content .more__btn {
    padding: 10px 40px;
  }

  /* ===========================
     JOIN OUR TEAM!
  =========================== */

  .join-section {
    padding: 60px 0;
    /* PCの-110pxのままだとSPでは.creatingのリンク下線を覆ってしまうため浅くする */
    margin-top: -20px;
    border-radius: 20px 20px 0 0;
  }

  .join-section__inner {
    padding: 0 25px;
  }

  .join-section__en {
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 2rem;
  }

  .join-section__title {
    font-size: 2.2rem;
  }

  .join-section__title-ja {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .join-section__text {
    margin-bottom: 2.5rem;
  }

  .join-section__cards {
    flex-direction: column;
    gap: 24px;
  }

  .join-section__card img {
    height: 220px;
  }

  /* ===========================
     PAGE TOP
  =========================== */

  .page-top__btn {
    width: 88%;
    font-size: 1.5rem;
  }

  .page-top__btn::after {
    width: 24px;
    height: 24px;
  }

  /* ===========================
     詳細ページ共通：HERO
  =========================== */

  .detail-hero__text {
    padding: 20px 0 0;
  }

  .detail-hero__en {
    font-size: 2rem;
    letter-spacing: 0.2em;
    margin-bottom: 3px;
}

.detail-hero__ja{
  font-size: 1.125rem;
  margin-bottom: 30px;
  letter-spacing: 0.2em;
  text-indent: 0;
}

  .detail-hero__img img {
    height: 230px;
  }

  /* ===========================
     詳細ページ共通：+/- アコーディオン
  =========================== */

  .toggle-item__head {
    padding: 22px 25px;
    font-size: 1rem;
    line-height: 1.8;
  }

  .toggle-item__body {
    padding: 0 20px;
  }

  .toggle-item__body-text {
    font-size: 0.875rem;
    padding: 24px 0 40px;
  }

  .toggle-item__icon::before{
    height: 3px;
  }
  .toggle-item__icon::after{
    width: 3px;
  }

  .toggle-item__body-text + .toggle-item__link{
    margin-left: 0;
  }

  /* ===========================
     詳細ページ共通：目次（アンカーリンク）
     カンプ: _comps/ENVIRONMENT_SP__260703_k.pdf
  =========================== */

  /* SPは1項目1行の縦積み */

  .detail-toc {
    padding: 40px 25px 10px;
  }

  .detail-toc__item {
    flex: 0 0 100%;
  }

  .detail-toc__link {
    font-size: 1.125rem;
    padding: 1rem 0.25rem;
  }

  .detail-toc__link::after {
    width: 12px;
    height: 12px;
  }

  /* ===========================
     詳細ページ共通：セクション
  =========================== */

  .detail-section {
    padding: 60px 0 0;
    scroll-margin-top: 68px;
  }

  .detail-section:last-of-type {
    padding-bottom: 100px;
  }

  .detail-section__inner {
    width: 90%;
  }

  .detail-section__title {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    padding-bottom: 10px;
  }

  .detail-section__container {
    width: 90%;
  }

  /* セクション冒頭のテキスト／画像は縦積み（テキスト→画像の順） */

  .detail-section__top {
    flex-direction: column;
    gap: 0rem;
    margin-bottom: 2.5rem;
  }

  .detail-section__top-img img {
    height: auto;
  }

  /* ===========================
     詳細ページ共通：イントロ・ステップ・カード
  =========================== */

  .detail-intro {
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .detail-intro__lead {
    font-size: 1.125rem;
  }

  .detail-intro--sub {
    margin-bottom: 3rem;
  }

  .detail-intro__body p{
    font-size: 0.875rem;
  }

  .detail-steps {
    margin-bottom: 2.5rem;
  }

  .detail-steps__title {
    font-size: 1.125rem;
  }

  .detail-box {
    margin-bottom: 2.5rem;
  }

  .detail-box--card {
    border-radius: 20px;
    padding: 50px 20px;
  }

  .detail-box__title {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    padding-bottom: 15px;
  }
}


/* ==========================================================================
   ヘッダー・フッター・ドロワー（〜949px）
   タブレット縦持ち（iPad mini 768 / iPad 810 / Air 820 / Pro11 834）では
   PCヘッダーよりSP版の方が収まりが良いため、コンテンツの境界（767px）とは
   別に949pxまでSP版を使う。950px以上はナビ6項目が自然に収まる。
   ※固定ヘッダー高さ52pxに伴う各ページ先頭のオフセットも、各ページCSSの
     同じ949px帯で52pxに合わせている
   ========================================================================== */

@media (max-width: 949px) {

  /* ===========================
     Header（SP: 上段のみ・下段ナビ非表示）
  =========================== */

  .site-header__top {
    height: 52px;
    padding: 0 8px;
    border-bottom: 2px solid var(--color-white);
  }

  .site-header__logo a {
    gap: 2px;
  }

  .site-header__logo img {
    width: 132px;
    height: auto;
  }

  .site-header__logo-sub {
    font-size: 0.75rem;
  }

  .site-header__actions {
    gap: 3px;
  }

  .site-header__entry-btn {
    height: 28px;
    padding: 0 16px;
    font-size: 1rem;
    gap: 0;
  }

  /* SPカンプではアイコンなしのシンプルなpillボタン */
  .site-header__entry-btn-arr {
    display: none;
  }

  .site-header__hamburger {
    width: 40px;
  }

  .site-header__bottom {
    display: none;
  }

  /* 固定ヘッダー高さの変更に合わせて詳細ページのオフセットも縮める */

  .detail-page {
    padding-top: 52px;
  }

  /* ===========================
     ドロワーメニュー（SP: 全画面・縦積み）
     カンプ: _comps/menu_sp_260629_k.pdf
  =========================== */

  .menu-drawer {
    width: 100%;
    max-width: none;
  }

  .menu-header {
    height: 52px;
    padding-right: 12px;
  }

  .close-btn {
    width: 32px;
    height: 32px;
  }

  .close-btn span {
    width: 32px;
  }

  .menu-drawer__body {
    flex-direction: column;
  }

  .menu-drawer__left {
    width: 100%;
    padding: 0px 16px 40px;
  }

  /* SPはPCのカード余白を解除し、画面幅いっぱいの帯にする */

  .menu-drawer__right {
    padding: 0;
  }

  /* ENTRYパネル: 全幅の青帯にする */

  .entry-panel {
    border-radius: 0;
    padding: 32px 30px 48px;
  }

  .entry-panel__ttl {
    font-size: 3rem;
    margin-bottom: 24px;
  }

  .entry-panel__label {
    font-size: 1rem;
  }

  .entry-panel__btn-arr {
    width: 25px;
    height: 25px;
  }

  .entry-panel__btn {
    height: 75px;
    font-size: 1.125rem;
    padding: 0 20px;
  }

  /* ミニENTRYパネル（下部固定）: SP幅に合わせて縮小 */

  /* dvh非対応の古いブラウザ向け: ツールバーに隠れる最悪ケースを想定した保険の余白 */
  .menu-drawer__body {
    padding-bottom: 232px;
  }

  .entry-panel-fixed {
    padding: 14px 16px max(140px, calc(18px + env(safe-area-inset-bottom, 0px)));
  }

  /* dvh対応ブラウザはドロワー高さが実表示領域に一致し保険が不要なため本来の値に戻す */
  @supports (height: 100dvh) {
    .menu-drawer__body {
      padding-bottom: 110px;
    }

    .entry-panel-fixed {
      padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    }
  }

  .entry-panel-fixed__ttl {
    font-size: 1.375rem;
    margin-bottom: 10px;
  }

  .entry-panel-fixed__groups {
    gap: 6px;
  }

  .entry-panel-fixed__btn {
    height: 40px;
    padding: 0 10px;
    font-size: 1rem;
  }

  .entry-panel-fixed__btn-arr {
    width: 13px;
    height: 13px;
  }

  /* コーポレートサイトはナビ2列目の最終項目として表示 */

  .global-nav__item-corporate {
    display: block;
  }

  .global-nav ul li.global-nav__item-corporate a {
    display: inline-flex;
    align-items: center;
  }

  /* グローバルナビ: 1列縦積み（新SPカンプ: menu_sp_260716_k.pdf） */

  .global-nav ul {
    margin-bottom: 50px;
  }

  .global-nav ul li a {
    font-size: 1.125rem;
    letter-spacing: 0.01em;
    margin-bottom: 34px;
  }

  /* バナー: 2列グリッド（カンプの並び順に合わせ 広報⇔techblog を入れ替え） */

  .banner-list__item img {
    width: 100%;
    height: auto;
    aspect-ratio: 181 / 50;
    object-fit: cover;
  }

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

  .join-section__inner{
    padding: 0 20px;
  }
  .join-section__cards{
    gap: 8px;
  }
  .join-section__card-title{
    font-size: 1rem;
  }


  .site-footer__nav {
    padding: 60px 0;
  }

  /* SPは2カラム: 左=ナビ2列を縦積み / 右=その他・関連サイト */

  .site-footer__nav-inner {
    width: 92%;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 8px;
  }

  .site-footer__nav-inner .site-footer__nav-col:nth-child(1) {
    grid-column: 1;
  }

  .site-footer__nav-inner .site-footer__nav-col:nth-child(2) {
    grid-column: 1;
  }

  .site-footer__nav-inner .site-footer__nav-col:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
  }

  .site-footer__nav-col li a {
    letter-spacing: 0;
    font-size: 0.875rem;
  }

  .site-footer__nav-col li.site-footer__nav-heading,
  .site-footer__nav-col li.nav_thin {
    margin-bottom: 9px;
  }

  .site-footer__nav-col li.site-footer__nav-heading-sub{
    margin-bottom: 9px;
  }

  .site-footer__banner {
    padding: 40px 0 20px;
  }

  /* タブレット帯（768〜949px）はバナーを横並びのまま維持し、
     カラム化はSP（〜767px）だけに適用する（下部の @media max-width:767px 参照） */

  .site-footer__logo-area {
    padding: 40px 0;
  }

  .site-footer__banner-inner{
    width: 90%;
  }

  .site-footer__banner-item img {
    display: block;
    width: auto;
    height: 70px;
    max-width: 100%;
  }

  /* カンプはSNSアイコンが上・バッジ+ロゴが下 */

  .site-footer__logo-area-inner {
    width: max-content;
    flex-direction: column-reverse;
    align-items: center;
    gap: 40px;
  }

  .site-footer__logo-left {
    gap: 15px;
  }

  .site-footer__badge {
    font-size: 0.625rem;
  }

  .logo-main-wrap {
    width: 140px;
    margin-left: -4px;
  }
  .site-footer__logo-sub {
    font-size: 1.55rem;
    letter-spacing: 0.02em;
    margin-top: -5px;
}

  .site-footer__copyright {
    width: 90%;
    padding: 0px 0 30px;
  }

  .site-footer__copyright-inner {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  /* リンクは縦並び・12px相当（縦並びのため「|」区切りは非表示） */

  .site-footer__copyright-nav {
    flex-direction: column;
    gap: 10px;
  }

  .site-footer__copyright-nav li {
    font-size: 0.75rem; /* 12px */
    justify-content: space-around;
  }

  .site-footer__copyright-nav li::after,
  .site-footer__copyright-nav li:first-child::before {
    content: none;
  }

  /* ©表記だけ右詰 */

  .site-footer__copyright p {
    font-size: 0.75rem; /* 12px */
    align-self: center;
  }

  .externalLink::after{
    margin-left: 4px;
  }

  /* 固定ヘッダー52pxに合わせたアンカーのオフセット */

  .detail-section {
    scroll-margin-top: 68px;
  }

  /* ENTRYモーダル: 縦積み・カード幅を画面幅に合わせる。
     アキ・文字サイズ・ボタンサイズ感はドロワー内ENTRYパネル(.entry-panel)に合わせる。
     角丸・閉じるボタンはモーダル独自のデザインのまま */

  .entry-modal {
    padding: 40px 30px 32px;
    border-radius: 24px;
  }

  .entry-modal__close {
    top: 16px;
    right: 16px;
  }

  .entry-modal__ttl {
    font-size: 3rem;
    margin-bottom: 24px;
  }

  .entry-modal__groups {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  .entry-modal__label {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .entry-modal__btn {
    height: 75px;
    font-size: 1.125rem;
    padding: 0 20px;
  }

  .entry-modal__btn-arr {
    width: 25px;
    height: 25px;
  }
}


/* ==========================================================================
   縦持ちタブレット帯（768px〜949px）の微調整
   ========================================================================== */

@media (min-width: 768px) and (max-width: 949px) {

  /* ドロワー: 949px以下共通ルールのwidth:100%をタブレット帯だけ50%に上書き */

  .menu-drawer {
    width: 50%;
    max-width: none;
  }

  /* Footer: 1fr autoのままだと左右カラムが離れすぎるため均等寄せにする */

  .site-footer__nav-inner {
    grid-template-columns: max-content max-content;
    justify-content: space-evenly;
    column-gap: 60px;
  }

  /* カード型ボックス: 左右90pxは広すぎるため詰める */

  .detail-box--card {
    padding: 60px 40px;
  }

  .special-talk__hero {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
  }

  .special-talk__content {
    position: absolute;
    top: 60%;
    right: 5%;
    transform: translateY(-50%);
    z-index: 2;
    text-align: left;
  }


}


/* ==========================================================================
   SP専用（〜767px）: ヘッダー、フッターバナーを縦積みにする
   （768〜949pxのタブレットは横並びのまま）
   ========================================================================== */

@media (max-width: 767px) {

  .site-footer__banner-inner {
    width: 88%;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
  }

  /* 横長バナー4つは1行専有で縦積み。中身のimgも中央に揃える。
     button.site-footer__banner-item（Podcast）はdisplay:block指定が詳細度で勝つため個別に上書き */

  .site-footer__banner-item,
  button.site-footer__banner-item {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
  }

  /* .site-footer__banner-item img {
    width: 280px;
  } */

  /* Wantedly/Qiitaは正方形アイコンとして横並び */

  .site-footer__banner-item--icon {
    flex: 0 0 auto;
  }

  .site-footer__banner-item--icon img {
    width: 55px;
    height: 55px;
  }

}
