@charset "utf-8";

/* =========================================================
   SUGAKICO RECRUIT - 採用サイト 全ページ共通スタイル（完全調整版）
   ========================================================= */

/* ----- 1. 崩れ・巨大化防止のセーフガード（再発防止策） ----- */
svg {
  max-width: 100%;
  height: auto;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* ----- 2. 変数（採用サイト パレット） ----- */
:root {
  /* ブランドカラー */
  --orange:      #E8512B; /* 採用サイト プライマリ */
  --orange-deep: #D9461F; /* ホバー等のアクセント */
  --red:         #E34529; /* 赤はこれに統一 */

  /* 背景・中性色 */
  --cream:       #F2F2F2;
  --bg:          #FFFFFF;
  --white:       #FFFFFF;
  --gray:        #ACACAC;
  --gray-dark:   #707070;
  --gray-line:   #DDDDDD;
  --black:       #1A1A1A;
  --ink:         #000000;

  /* セマンティック */
  --text:        #282828;
  --text-mute:   #888888;
  --line:        #DDDDDD;

  /* レイアウト */
  --header-h-pc: 80px;
  --header-h-sp: 64px;

  /* ----- フォント ----- */
  --font-sans: "Noto Sans JP", "游ゴシック体", YuGothic, "游ゴシック Medium",
    "Yu Gothic Medium", "游ゴシック", "Yu Gothic", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", "ヒラギノ角ゴ Pro W3",
    "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;
  --font-mincho: "Zen Old Mincho", "游明朝", "Yu Mincho", "ヒラギノ明朝 Pro",
    "Hiragino Mincho Pro", "MS P明朝", serif;
  --font-en: "Josefin Sans", "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ----- 3. ベース ----- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-pc);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
}

.font-mincho { font-family: var(--font-mincho); }
.font-en { font-family: var(--font-en); }

main {
  margin-top: var(--header-h-pc);
  background: var(--bg);
}

@media (max-width: 1024px) {
  html { scroll-padding-top: var(--header-h-sp); }
  main { margin-top: var(--header-h-sp); }
}
@media (max-width: 768px) {
  body { font-size: 14px; }
}

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 4%;
  box-sizing: border-box;
}

.sp-only { display: none; }
.pc-only { display: block; }
@media (max-width: 1024px) {
  .sp-only { display: block; }
  .pc-only { display: none !important; }
}

/* ===== プレースホルダ ===== */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gray);
  background-image:
    linear-gradient(135deg, transparent 49%, rgba(0,0,0,.06) 49%, rgba(0,0,0,.06) 51%, transparent 51%),
    linear-gradient(45deg, transparent 49%, rgba(0,0,0,.06) 49%, rgba(0,0,0,.06) 51%, transparent 51%);
  background-size: 20px 20px;
  color: #222;
  font-size: 12px;
  letter-spacing: .04em;
  border: 1px dashed var(--gray-dark);
  overflow: hidden;
  min-height: 60px;
  max-width: 100%; /* aspect-ratio等で横に膨らみ、はみ出すのを防ぐセーフガード */
}
.ph::after {
  content: attr(data-label);
  display: block;
  padding: 6px 10px;
  background: rgba(255,255,255,.75);
  border-radius: 4px;
  font-weight: 700;
  color: #222;
  white-space: pre-line;
}
.ph.dark { background-color: #333; color: #fff; }
.ph.dark::after { background: rgba(0,0,0,.5); color: #fff; }
.ph.square { aspect-ratio: 1/1; }
.ph.portrait { aspect-ratio: 4/5; }
.ph.wide { aspect-ratio: 16/9; }

/* ===========================================================
   共通ページヘッダー（下層ページのタイトル＋パンくず）
   - environment / interview など全下層ページで共通のデザイン
   - タイトル英字は白抜きSVG画像（h1>img・altでテキスト保持）
   - パンくずは 14px・黒文字・右寄せ・「>」区切り
   =========================================================== */
.page-hdr {
  background: var(--white);
  padding: 80px 0 12px;
  text-align: center;
  position: relative;
}
.page-hdr__title .en { line-height: 1; }
/* タイトル英字SVGは全ページ高さ約49〜50pxで作成されているため、
   高さ基準で表示して各ページのタイトルの文字サイズを統一する（幅は単語長に応じて可変） */
.page-hdr__title .en img {
  display: inline-block;
  height: clamp(30px, 6.4vw, 50px);
  width: auto;
  max-width: 100%;
  vertical-align: middle;
}
.page-hdr__title .ja {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-top: 5px;
}
.page-hdr__breadcrumb {
  margin-top: 40px;
  text-align: right;
}
.page-hdr__breadcrumb ol {
  display: inline-flex;
  gap: 8px;
  font-size: 14px;
  color: var(--black);
}
.page-hdr__breadcrumb li::after {
  content: ">";
  margin-left: 8px;
}
.page-hdr__breadcrumb li:last-child::after { content: none; }
.page-hdr__breadcrumb a { color: var(--black); text-decoration: underline; }
.page-hdr__breadcrumb a:hover { color: #E34529; }

@media (max-width: 768px) {
  .page-hdr { padding: 40px 0 15px; }
  .page-hdr__breadcrumb { text-align: left; margin-top: 24px; }
  /* SP：名前が長い場合のみ、項目をまるごと次行に折り返す（短い名前は1行のまま） */
  .page-hdr__breadcrumb ol { flex-wrap: wrap; row-gap: 4px; }
  .page-hdr__breadcrumb li { white-space: nowrap; }
}

/* ===========================================================
   ★★ 共通ENTRYセクション（フッター直前・全ページ共通化）
   - 背景色を部署紹介と同色（#F2F2F2）に統一
   - ボタン構造をPCプルダウンと完全共通化
   - カムバック等の現在地アクティブ（.is-active）スタイルを内包
   =========================================================== */
.entry-section {
  padding: 160px 0;
  background: #F2F2F2;
}
.entry-block {
  background: #E34529;
  color: #fff;
  border-radius: 24px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.entry-block .entry-lead .en {
  font-family: var(--font-en);
  font-size: 130px;
  font-weight: 900;
  line-height: 0.5;
  letter-spacing: -0.08em;
  font-style: italic;
  /* line-height:0.5 で文字が下にはみ出し、下の .ja/.desc メッセージに被るのを防ぐための余白 */
  padding-bottom: 0.32em;
}
.entry-block .entry-lead .ja {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  margin: 8px 0 40px;
}
.entry-block .entry-lead p {
  line-height: 2;
}

/* 共通ボタン（カプセルデザインをヘッダープルダウンと完全連動） */
.entry-block .entry-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.entry-block .entry-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  color: var(--black);
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 24px;
  transition: transform .15s, box-shadow .15s, background .25s, color .25s;
  text-decoration: none;
}
.entry-block .entry-list a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}

/* ★ 移設：現在地アクティブ（.is-active）スタイル */
/* カムバックエントリーページを開いている時は、自動で白背景のカプセルから「黒丸白矢印」のアクティブ表示になります */
.entry-block .entry-list a.is-active {
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  cursor: default;
  pointer-events: none; /* 現在地なのでクリック不可に */
}
.entry-block .entry-list a.is-active:hover {
  transform: none;
  box-shadow: none;
}
.entry-block .entry-list a.is-active .gh-pill__ico--fill circle {
  fill: #1a1a1a;
}
.entry-block .entry-list a.is-active .gh-pill__ico--fill path {
  stroke: #fff;
}

@media (max-width: 880px) {
  .entry-block {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 30px 14px;
  }
  .entry-block .entry-lead .en { font-size: 72px; }
  .entry-block .entry-lead .ja { font-size: 20px; margin: -8px 0 30px; }
  .entry-block .entry-list a { padding: 14px 10px; gap: 0px; font-size: 16px; }
  .entry-section { padding: 48px 0; }
}

/* ===========================================================
   フッター (画像連動・微調整版)
   =========================================================== */
.site-footer {
  background: var(--black);
  color: var(--white);
}
.footer-main { padding: 64px 0 48px; }

.footer-logo {
  display: inline-block;
  margin-bottom: 40px;
}
.footer-logo__img {
  display: block;
  height: 44px;
  width: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: start;
}

.footer-col__sub-section {
  margin-top: 32px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 14px;
  border-bottom: none;
  padding-bottom: 0;
}
.footer-col h4 a {
  color: #fff;
  text-decoration: underline;
}
.footer-col h4 a:hover {
  color: var(--orange);
}

.footer-col ul li {
  font-size: 13px;
  line-height: 2.2;
}
.footer-col ul li a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
}
.footer-col ul li a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom .links {
  display: flex;
  gap: 32px;
}
.footer-bottom .links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.footer-bottom .links .link-ico {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
}
.footer-bottom .links .link-ico svg { width: 100%; height: 100%; }
.footer-bottom .links a:hover { color: var(--orange); }
.footer-bottom .copy {
  font-family: var(--font-en);
  font-size: 11px;
  color: rgba(255,255,255,.7);
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
  .footer-logo__img { height: 38px; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .footer-main { padding: 40px 0 32px; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom .links { flex-direction: column; gap: 12px; }
}

/* ===========================================================
   PageTop (旧)
   =========================================================== */
.page-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
body.is-scrolled .page-top { opacity: 1; visibility: visible; }
.page-top::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-45deg) translateY(2px);
}
@media (max-width: 768px) {
  .page-top { right: 12px; bottom: 16px; width: 46px; height: 46px; }
}


/* =========================================================
   共通ヘッダー（全ページ共通）
   ========================================================= */
.gh {
  position: fixed;
  inset: 0 0 auto 0;
  height: 80px;
  background: transparent; /* 初期状態は透明 */
  box-shadow: none; /* 初期状態は影なし */
  z-index: 1000;
  transition: background .3s, box-shadow .3s;
}
body.gh-stuck .gh { 
  background: #fff; 
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08); 
}
body.gh-open .gh { background: transparent; box-shadow: none; }

.gh__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 70px;
}

/* ロゴ */
.gh__logo { display: block; }
.gh__logo img { display: block; height: 40px; width: auto; }
.gh__logo--dark { display: block; }
.gh__logo--white { display: none; }
body.gh-open .gh__logo--dark { display: none; }
body.gh-open .gh__logo--white { display: block; }

.gh__actions { display: flex; align-items: center; gap: 12px; }

/* ↓ position は付けない（パネルはヘッダー .gh 基準で配置。SPで全幅にするため） */
.gh-entry { display: flex; }
.gh-entry__btn {
  height: 48px;
  padding: 0 28px;
  background: var(--black);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .06em;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.gh-entry__caret {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #fff;
}
.gh-entry.is-open .gh-entry__caret { border-top: 0; border-bottom: 7px solid #fff; }

/* ハンバーガー */
.gh-burger {
  height: 60px;
  width: 112px;
  background: #E34529;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .25s, border-radius .25s;
}
.gh-burger span {
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s, opacity .2s, background .25s;
}
body.gh-open .gh-burger { background: #fff; }
body.gh-open .gh-burger span { background: #E34529; }
body.gh-open .gh-burger span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
body.gh-open .gh-burger span:nth-child(2) { opacity: 0; }
body.gh-open .gh-burger span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* ===== ENTRY プルダウン ===== */
.gh-entry__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  width: 392px;
  background: #E34529;
  border-radius: 18px;
  padding: 26px 24px 28px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 1010; /* ヘッダー(1000)より前面に配置 */
}
.gh-entry.is-open .gh-entry__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.gh-entry__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #fff;
  margin-bottom: 18px;
}
.gh-entry__title .en {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .04em;
}
.gh-entry__title .ja { font-size: 14px; font-weight: 700; }

.gh-pills { display: flex; flex-direction: column; gap: 14px; }
.gh-pills a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  color: var(--black);
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 16px;
  transition: transform .15s, box-shadow .15s;
}
.gh-pills a:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0, 0, 0, .15); }
.gh-pill__ico { flex-shrink: 0; width: 30px; height: 30px; color: var(--black); display: inline-flex; }
.gh-pill__ico svg { width: 100%; height: 100%; }
.gh-pill__ico--fill { width: 30px; height: 30px; }
.gh-pill__t { flex: 1; text-align: center; }

/* ===== 全画面メニュー ===== */
.gh-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  max-height: 100vh;
  background: #E34529;
  z-index: 990;
  padding: 104px 5% 56px;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
body.gh-open .gh-menu { opacity: 1; visibility: visible; }
.gh-menu__inner { max-width: 1200px; margin: 0 auto; }

.gh-menu__entry { display: none; }

.gh-menu__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8%; }
.gh-nav-item { margin-bottom: 36px; }
.gh-nav-head { display: block; color: #fff; }
.gh-nav-head .en {
  display: block;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(24px, 4.5vw, 34px);
  line-height: 1.1;
  letter-spacing: .02em;
  word-break: break-word;
  white-space: normal;
}
.gh-nav-head .ja { display: block; font-size: 14px; font-weight: 700; margin-top: 4px; }
a.gh-nav-head:hover { opacity: .85; }

.gh-subs { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 769px) {
  .gh-subs--indent { margin-left: 40px; }
}
.gh-subs a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.gh-subs a:hover { opacity: .85; }
.gh-sub__ico { flex-shrink: 0; width: 24px; height: 24px; display: inline-flex; }
.gh-sub__ico svg { width: 100%; height: 100%; }
.gh-sub__ico circle { fill: #fff; }
.gh-sub__ico path { stroke: #E34529; }

/* ===== TOPへ戻る ===== */
.gh-pagetop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #E34529;
  color: #E34529;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  z-index: 1900;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.gh-pagetop .ar {
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 9px solid #E34529;
  margin-bottom: 3px;
}
body.gh-stuck .gh-pagetop { opacity: 1; visibility: visible; }
body.gh-open .gh-pagetop { opacity: 0; visibility: hidden; }

/* ===== ヘッダー SP ===== */
@media (max-width: 768px) {
  .gh { height: 64px; }
  .gh__inner { padding: 0 10px 0 16px; }
  .gh__logo picture, .gh__logo img { height: 38px; }

  .gh__actions { gap: 10px; }
  /* SP：エントリーはハンバーガーメニュー内に含むため、ヘッダーのENTRYボタン＋プルダウンは非表示 */
  .gh-entry { display: none; }
  .gh-entry__btn { height: 44px; padding: 0 16px; font-size: 16px; gap: 8px; }
  .gh-burger { height: 48px; width: 78px; border-radius: 26px; gap: 6px; }
  .gh-burger span { width: 34px; height: 2.5px; }
  body.gh-open .gh-burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  body.gh-open .gh-burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

  .gh-entry__panel { right: 3%; left: 3%; width: auto; padding: 24px 20px; }
  .gh-entry__title .en { font-size: 24px; }
  .gh-pills a { padding: 14px 10px; gap: 0; }

  .gh-menu { padding: 92px 6% 56px; }
  .gh-menu__entry {
    display: none; /* SPでもハンバーガー上部のENTRYエリアは非表示（下部ENTRYナビは表示） */
  }
  .gh-menu__nav { grid-template-columns: 1fr; gap: 0; }
  .gh-nav-item { margin-bottom: 0; padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, .45); }
  .gh-nav-item:last-child { border-bottom: 0; }
  .gh-nav-head .en { font-size: clamp(20px, 6vw, 26px); }

  .gh-pagetop { right: 16px; bottom: 16px; width: 66px; height: 66px; font-size: 12px; }
}