/* ============================================================
   共通スタイル（全ページで読み込み）
   2026-07-15 デザインFIX: 全ページ ダークトンマナ（Obsidian × アクセント1色）
   含まれるもの: リセット / 共通パーツ（.en .section-head .wavy-link
   .pill-btn .reveal .wrap）/ ヘッダー / SPドロワー / Get in touch 帯 /
   post-card / ページャ / フッター
   ページ固有のスタイルは assets/css/{page}.css 側にある
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-jp);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  overflow-x: hidden;
  /* 日本語を文節単位で折り返す（語中での分断・1文字ぶら下がりを防ぐ）。
     Chrome 119+ / Safari 18.4+ が対応。非対応ブラウザは従来の折返しにフォールバックする */
  word-break: auto-phrase;
}
/* 本文・リストは最終行の孤立（1〜2文字だけの行）を抑える。Firefox は未対応だが無視されるだけ */
p, li, dd, blockquote, figcaption { text-wrap: pretty; }
/* 見出し・カードタイトルは行長を均等割りして、末尾1文字だけの行を作らない */
h1, h2, h3, h4, h5, h6,
.ccard__copy, .vcard__title, .n-row__title, .criteria-card__title { text-wrap: balance; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.en { font-family: var(--font-en); }
/* SP でだけ効かせる改行。PC の1行が SP で「起こす。」のような数文字のぶら下がりになる見出しで使う
   （ブラウザ任せの折返しに委ねると文節の途中で割れる） */
.br-sp { display: none; }
@media (max-width: 780px) { .br-sp { display: inline; } }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-title {
  font-family: var(--font-en);
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}
.section-title small {
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

/* セクション見出しのアイブロウ（英字小ラベル・アクセント色） */
.sec-eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* テキストリンク（旧 wavy-link。フラットな下線 + 矢印へ変更） */
.wavy-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}
.wavy-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
  transition: background-color 0.2s ease;
}
.wavy-link:hover { color: var(--accent); }
.wavy-link:hover::after { background: var(--accent); }
.wavy-link .arw { transition: transform 0.25s ease; }
.wavy-link:hover .arw { transform: translateX(4px); }
.wavy-link--white { color: var(--ink); }

/* ピルボタン（CTA面 = 濃紺 × ゴールド枠。2026-08-06 指示書 v2 パターン②）
   ゴールドの枠線は必須。面と背景の対比が 2.2:1 のため、枠を外すとボタンの輪郭が消える */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--cta);
  color: var(--cta-text);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 12px 22px 12px 30px;
  border: var(--cta-border-w) solid var(--cta-border);
  box-shadow: var(--cta-shadow);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.pill-btn:hover {
  background: var(--cta-hover);
  border-color: var(--cta-border-hover);
  transform: translateY(-2px);
  /* ホバーでゴールド枠の光をわずかに強める */
  box-shadow: 0 12px 30px -10px rgba(196, 152, 58, 0.65);
}
.pill-btn .arw { display: inline-flex; transition: transform 0.25s ease; }
.pill-btn:hover .arw { transform: translateX(4px); }
.pill-btn--frost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: none;   /* CTA のゴールドの光は主役ボタンだけに残す */
}
.pill-btn--frost:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.6); box-shadow: none; }
/* 旧: アクセント面の別名。CTA 統一（2026-08-06）により .pill-btn と同じ見た目にする */
.pill-btn--yellow { background: var(--cta); color: var(--cta-text); }
.pill-btn--yellow:hover { background: var(--cta-hover); }
/* 白ピル（ダーク面での第2ボタン） */
.pill-btn--white {
  background: #fff;
  border-color: #fff;
  color: #0C0E13;
}
.pill-btn--white:hover { background: rgba(255, 255, 255, 0.88); border-color: rgba(255, 255, 255, 0.88); }

.arw svg { display: block; }

/* スクロールリビール */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s cubic-bezier(0.2, 0.65, 0.25, 1), transform 0.9s cubic-bezier(0.2, 0.65, 0.25, 1); }
.reveal.on { opacity: 1; transform: translateY(0); }
.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.3s; }

/* ============ ヘッダー ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.header.is-solid {
  background: rgba(12, 14, 19, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.logo { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__mark img { width: 100%; height: 100%; object-fit: contain; }
.logo__text {
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
}
.logo__sub {
  font-family: var(--font-en);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  display: block;
  line-height: 1.2;
}

.gnav { display: flex; align-items: center; gap: 26px; }
.gnav a {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.gnav a:hover { opacity: 0.6; }

.header__biz {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.header__biz:hover { opacity: 0.6; }

/* ヘッダーCTA はアクセント連動 */
.header__cta { background: var(--cta); border-color: var(--cta-border); color: var(--cta-text); }
.header__cta:hover { background: var(--cta-hover); border-color: var(--cta-border-hover); }

/* 旧 theme-dark（白背景セクション用）。全ページダーク化により白文字のまま＝実質未使用で残置 */
.header.theme-dark .logo__text,
.header.theme-dark .gnav a { color: #fff; }
.header.theme-dark .logo__sub { color: rgba(255, 255, 255, 0.72); }
.header.theme-dark .header__biz { color: rgba(255, 255, 255, 0.82); }

/* SP ハンバーガー + ドロワー */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
  cursor: pointer;
  z-index: 210;
}
.menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s ease; }
body.drawer-open .menu-btn span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
body.drawer-open .menu-btn span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
/* ドロワーを開いている間はヘッダーごと最前面へ。
   .header が z-index:100 でスタッキングコンテキストを作るため、子の .menu-btn に z-index を積んでも
   ドロワー(200)の下に潜り込み、×ボタンを押せなくなる */
body.drawer-open .header { z-index: 210; }
body.drawer-open .menu-btn { background: rgba(255, 255, 255, 0.2); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 14, 19, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body.drawer-open .drawer { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer__nav { display: flex; flex-direction: column; gap: 22px; text-align: center; }
.drawer__nav a { color: #fff; font-size: 18px; font-weight: 700; }

/* ============ Get in touch 帯（全ページ下部共通・ダークエディトリアル） ============ */
.git { position: relative; background: var(--paper); padding: 26px 0 0; }
.git__card {
  position: relative;
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 96px 0 100px;
  overflow: hidden;
}
.git__track { display: flex; gap: 120px; width: max-content; animation: slide 22s linear infinite; }
.git__track span {
  font-family: var(--font-en);
  font-size: clamp(72px, 9.6vw, 138px);
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.22);
}
.git__body { position: relative; text-align: center; margin-top: 72px; padding: 0 24px; }
.git__eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.git__copy { font-size: 15px; font-weight: 700; line-height: 2.15; color: var(--ink); margin-bottom: 30px; }
.git__btn { font-size: 16px; padding: 15px 28px 15px 42px; }
/* 求職者用・企業用の2ボタン（2026-08-06 TOP-12） */
.git__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.git__btn--sub { font-size: 14px; padding: 13px 24px 13px 34px; box-shadow: none; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ 記事カード（TOP・一覧で使用） ============ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 26px 60px;
  min-height: 172px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.post-card:hover { border-color: var(--accent-line); background: var(--accent-dim); }
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}
.post-card__meta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.post-card__title { font-size: 15px; font-weight: 500; line-height: 1.75; color: var(--ink); }
.post-card__arrow {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 40px;
  height: 30px;
  border-radius: 4px;
  background: var(--accent-fill);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease;
}
.post-card:hover .post-card__arrow { background: var(--accent-fill-hover); }
.post-card__arrow svg path { stroke: currentColor; }

/* ============ ページャ ============ */
.pager { margin-top: 56px; }
.pager ul { display: flex; justify-content: center; gap: 8px; }
.pager a, .pager span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pager a:hover { border-color: var(--accent-line); color: var(--ink); background: var(--accent-dim); }
.pager .current { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }

/* ============ フッター ============ */
.footer { position: relative; overflow: hidden; background: var(--panel); border-top: 1px solid var(--line); }
.footer__bg { position: absolute; inset: 0; }
.footer__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7); }
.footer__bg::after { content: ""; position: absolute; inset: 0; background: rgba(9, 11, 15, 0.86); }
.footer__inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 84px 40px 40px;
  color: #fff;
}
.footer__cols { display: flex; flex-wrap: wrap; gap: 60px; }
.footer__info { font-size: 13.5px; line-height: 2.0; opacity: 0.92; min-width: 250px; margin-right: auto; }
.footer__info .lbl { opacity: 0.65; }
.footer__nav { display: flex; gap: 56px; }
.footer__nav ul li { margin-bottom: 12px; }
.footer__nav a { font-size: 14px; font-weight: 700; transition: opacity 0.2s ease; }
.footer__nav a:hover { opacity: 0.6; }
.footer__copy { margin-top: 48px; font-family: var(--font-en); font-size: 11.5px; font-weight: 400; opacity: 0.6; }

/* ============ レスポンシブ（共通分） ============ */
@media (max-width: 1180px) {
  /* ナビが5項目 + 企業様向けボタンになり、1000〜1180px で窮屈になるため詰める（2026-08-06 TOP-03） */
  .gnav { gap: 18px; }
  .gnav a { font-size: 13px; }
  .header__cta { font-size: 13px; padding: 11px 18px 11px 24px; }
}
@media (max-width: 1100px) {
  .header__biz { display: none; }
}
@media (max-width: 1000px) {
  .gnav { display: none; }
  .menu-btn { display: flex; }
  .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 22px; }
  .header__cta { display: none; }
  .footer__cols { gap: 36px; }
  /* フッターナビは SP では縦1列に。2列だと「プライバシーポリシー」等が画面右端からはみ出す */
  .footer__nav { flex-direction: column; gap: 12px; }
  .git__card { padding: 64px 0 70px; }
  .git__body { margin-top: 48px; }
}

/* ============ 公式アンバサダー（2026-08-06 TOP-08・新設）============
   右に写真、左に紹介文。写真の左端はマスクでフェードさせ、
   「貼ってある感」を消して背景に馴染ませる（打ち合わせでの要望） */
.ambx {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ambx__wrap {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 92px 40px 0;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 48px;
  align-items: end;
}
.ambx__body { padding-bottom: 92px; }
.ambx__title {
  font-family: var(--font-jp);
  font-size: clamp(26px, 3.0vw, 40px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 30px;
}
.ambx__name {
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.01em;
}
.ambx__name small {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.ambx__role {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.ambx__profile {
  margin-top: 26px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 2;
  color: var(--ink-soft);
}

/* メッセージ（TOP のみ。/about/ は経歴のままにする指示） */
.ambx__msghead {
  margin-top: 28px;
  font-family: var(--font-jp);
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #fff;
}
.ambx__message {
  margin: 18px 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 2;
  color: var(--ink-soft);
}
.ambx__message p + p { margin-top: 18px; }
.ambx__sign {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}
.ambx__photo {
  position: relative;
  margin: 0;
  align-self: end;
}
.ambx__photo::before {
  content: "";
  position: absolute;
  inset: 6% 0 0 6%;
  background: radial-gradient(ellipse at 58% 42%, rgba(0, 72, 156, 0.42), transparent 68%);
  filter: blur(26px);
}
.ambx__photo img {
  position: relative;
  display: block;
  width: 100%;
  max-height: 560px;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}

@media (max-width: 1000px) {
  .ambx__wrap { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 780px) {
  /* SP は縦積み。写真は上端をフェードさせて文章と馴染ませる */
  .ambx__wrap { padding: 76px 22px 0; }
  .ambx__body { padding-bottom: 40px; }
  .ambx__photo img {
    max-height: 400px;
    margin-inline: auto;
    /* 上からのフェード（0%→22%）は人物の頭にかかる。頭のてっぺんは画像の上端から約3%の位置にあり、
       「スマホだと頭が消えかけている」という指摘の原因はこれ（2026-08-10）。
       切り抜き画像で背景は透明なので、マスクを外しても縁が硬く出ることはない */
    -webkit-mask-image: none;
    mask-image: none;
  }
}




/* SP ドロワーの企業様向け入口（2026-08-06 TOP-03）。求職者向けメニューと視覚的に分ける */
.drawer__biz {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 15px !important;
  color: var(--accent) !important;
}
