@charset "UTF-8";

/* =========================================================
   common.css … 全ページ共通（土台・ヘッダー・共通ボタン）
   ※ フォントサイズは custom.css の :root 変数のみ使用
   ========================================================= */

/* =========================================================
   土台（全ページ共通）
   ========================================================= */
html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: #fbf5ee;
  color: #5b534d;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: var(--main-text);
  /* line-height: 1.8; */
  overflow-x: clip;
}

img {
  display: block;
  height: auto;
}

ul,
p,
h1 {
  margin: 0;
  padding: 0;
}

.pc-only {
  display: none;
}

/* 画像など block 要素の出し分け */
.pc-only-img {
  display: none;
}

/* 英字の小見出し（各セクション共通） */
.en-ttl {
  color: #6b5f58;
  font-family: "Inter", sans-serif;
  font-size: var(--sub-heading);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* =========================================================
   ヘッダー（SP）
   ========================================================= */
/* スクロールしても画面上部に固定 */
/* ページ内リンクの飛び先（id を持つ要素）は、固定ヘッダーに隠れない位置で止める（全ページ共通。数値は custom.css の --scroll-margin） */
[id] {
  scroll-margin-top: var(--scroll-margin);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #fbf5ee;
  /* 下の内容が透けないよう body と同じ色 */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 25px;
}

/* トップページでロゴを囲む h1（見た目は中のテキストのクラスで指定） */
.header-title {
  margin: 0;
  font-size: var(--main-text);
  font-weight: normal;
  line-height: 1;
}

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

.header-logo {
  width: 90px;
}

.header-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-company {
  font-family: "Noto Serif JP", serif;
  color: #5b534d;
  font-size: var(--main-text);
  font-weight: 700;
  line-height: 1.3;
}

.header-label {
  display: block;
  width: 136px;
  background-color: #c96e86;
  color: #fff;
  font-size: calc(var(--main-text) * 0.8125);
  /* 16px × 0.8125 ＝ 13px */
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  letter-spacing: 0.1em;
}

/* ハンバーガーボタン */
.header-menu-btn {
  position: relative;
  width: 34px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.header-menu-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background-color: #c96e86;
  transition: transform 0.3s, opacity 0.3s, top 0.3s;
}

.header-menu-line:nth-child(1) {
  top: 0;
}

.header-menu-line:nth-child(2) {
  top: 12px;
  /* (28−3)÷2 ≒ 12px */
}

.header-menu-line:nth-child(3) {
  top: 25px;
  /* 28−3 ＝ 25px */
}

.header.is-open .header-menu-line:nth-child(1) {
  top: 12px;
  transform: rotate(45deg);
}

.header.is-open .header-menu-line:nth-child(2) {
  opacity: 0;
}

.header.is-open .header-menu-line:nth-child(3) {
  top: 12px;
  transform: rotate(-45deg);
}

/* SPメニュー（ボタンで開閉） */
.header-nav {
  position: absolute;
  top: 100%;
  /* ヘッダーのすぐ下（.header-inner の高さを変えても自動で合う） */
  left: 0;
  width: 100%;
  padding: 24px 25px 32px;
  background-color: #fbf5ee;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.header.is-open .header-nav {
  opacity: 1;
  visibility: visible;
}

.header-nav-list {
  display: flex;
  flex-direction: column;
}

.header-nav-link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #e8ddd2;
  color: #5b534d;
  font-size: var(--main-text);
  font-weight: 500;
}

.header-btn-list {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 48px;
  color: #fff;
  font-size: var(--main-text);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.15);
  /* 内側の細い枠線（ボタンの内側 5px の位置。outline なのでボタンの大きさは変わらない） */
  outline: 1px solid rgba(255, 255, 255, 0.6);
  outline-offset: -5px;
  transition: opacity 0.3s;
}

.header-btn:hover {
  opacity: 0.8;
}

.header-btn-brown {
  background-color: #6b5c55;
}

/* 職場見学会ボタン（ヘッダー） … Joining Bonus の「職場見学会」と同じ色 */
.header-btn-green {
  background-color: #7f9f83;
  color: #fdfdfd;
  transition: background-color 0.3s, color 0.3s;
}

.header-btn-green:hover {
  opacity: 1;
  /* 共通の .header-btn:hover（半透明）を打ち消す */
  background-color: #afc7b3;
  color: #5b534d;
  text-shadow: none;
  outline-color: #fff;
  /* 明るい背景でも枠線が見えるように */
}

/* =========================================================
   共通ボタン .more-btn（枠線＋矢印）
   SPは「↗」、PCは枠からはみ出す長い「→」
   矢印は currentColor なので、文字色を変えると矢印も同じ色になる
   ホバー：塗り＋白い太字＋影。塗りの色は custom.css の :root（--hover-〇〇）で指定し、リンク先ごとのクラス（.hover-〇〇）で切り替え
   枠の外にはみ出す長い矢印は茶色のまま
   ========================================================= */
.more-btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 264px;
  height: 54px;
  padding-left: 38px;
  border: 1px solid #6b5f58;
  color: #5b534d;
  font-size: var(--main-text);
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
  --hover-color: var(--hover-default);
  /* ホバー後の塗り色（下の .hover-〇〇 で上書き） */
}

.more-btn:hover {
  border-color: var(--hover-color);
  background-color: var(--hover-color);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

/* ---------- ホバー後の背景色（リンク先ごと） ----------
   色そのものは custom.css の :root（--hover-〇〇）で変更する。ここはクラスと色の紐づけだけ */
.more-btn.hover-philosophy {
  --hover-color: var(--hover-philosophy);
}

.more-btn.hover-features {
  --hover-color: var(--hover-features);
}

.more-btn.hover-interview {
  --hover-color: var(--hover-interview);
}

.more-btn.hover-support {
  --hover-color: var(--hover-support);
}

.more-btn.hover-campaign {
  --hover-color: var(--hover-campaign);
}

.more-btn.hover-job-tour {
  --hover-color: var(--hover-job-tour);
}

.more-btn.hover-faq {
  --hover-color: var(--hover-faq);
}

/* SPの矢印「↗」 … ::before が斜線、::after が角 */
.more-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 15px;
  height: 1.5px;
  background-color: currentColor;
  transform: translateY(-50%) rotate(-45deg);
  transition: right 0.3s;
}

.more-btn::after {
  content: "";
  position: absolute;
  top: calc(50% - 6px);
  /* 角の位置を斜線の右上端に合わせる */
  right: 25px;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transition: right 0.3s;
}

/* 矢印を SP でも PC と同じ「枠からはみ出す長い →」にする（お問い合わせページなど） */
.more-btn-line::before {
  top: 50%;
  right: -19px;
  width: 47px;
  height: 1px;
  transform: none;
}

.more-btn-line::after {
  top: 50%;
  right: -19px;
  width: 10px;
  height: 1px;
  border: none;
  background-color: currentColor;
  transform: rotate(30deg);
  transform-origin: right center;
}

/* 長い矢印は枠の外にはみ出すので、ホバーで文字が白になっても茶色のまま。ホバーで右へ10px動く */
.more-btn-line:hover::before,
.more-btn-line:hover::after {
  right: -29px;
  background-color: #6b5f58;
}

/* =========================================================
   ヘッダー PC（1024px〜）
   ========================================================= */
@media screen and (min-width: 1024px) {

  /* ---------- 出し分け・英字小見出し ---------- */
  .pc-only {
    display: inline;
  }

  .sp-only {
    display: none;
  }

  .sp-only-img {
    display: none;
  }

  .pc-only-img {
    display: block;
  }

  .en-ttl {
    font-size: var(--middle-heading);
  }

  /* ---------- ヘッダー ---------- */
  .header-inner {
    height: 90px;
    padding: 0 40px;
    /* 左右の最低余白40px（中身はこの内側で左右中央に配置） */
  }

  .header-logo {
    width: 116px;
  }

  .header-brand {
    gap: 14px;
  }

  .header-label {
    width: 192px;
    font-size: calc(var(--main-text) * 0.88);
    /* 17px × 0.88 ≒ 15px */
    line-height: 24px;
  }


  /* ---------- 共通ボタン ---------- */
  .more-btn {
    width: 271px;
    height: 59px;
  }

  /* PCの矢印「→」 … 枠の右端から外にはみ出す長い線 */
  .more-btn::before {
    top: 50%;
    right: -19px;
    width: 47px;
    height: 1px;
    transform: none;
  }

  .more-btn::after {
    top: 50%;
    right: -19px;
    width: 10px;
    height: 1px;
    border: none;
    background-color: currentColor;
    transform: rotate(30deg);
    transform-origin: right center;
  }

  /* PCの長い矢印はホバー後も茶色のまま（枠の外にはみ出すため）。ホバーで右へ10px動く */
  .more-btn:hover::before,
  .more-btn:hover::after {
    right: -29px;
    background-color: #6b5f58;
  }

}

/* =========================================================
   PC ヘッダーナビ（1024px〜）  ※1023px以下はハンバーガー
   ========================================================= */
@media screen and (min-width: 1024px) {

  /* ロゴ〜ボタンをひとかたまりにして左右中央に配置 */
  .header-inner {
    justify-content: center;
  }

  .header-menu-btn {
    display: none;
  }

  .header-nav {
    position: static;
    top: auto;
    display: flex;
    align-items: center;
    width: auto;
    margin-left: min(62px, 4.3vw);
    /* 62÷1440 */
    padding: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }

  .header-nav-list {
    flex-direction: row;
    gap: min(52px, 3.6vw);
    /* 52÷1440 */
  }

  .header-nav-link {
    padding: 0;
    border-bottom: none;
    white-space: nowrap;
    transition: color 0.3s;
  }

  .header-nav-link:hover {
    color: #c96e86;
  }

  .header-btn-list {
    gap: min(24px, 1.67vw);
    margin-top: 0;
    margin-left: min(52px, 3.6vw);
  }

  .header-btn {
    flex: none;
    white-space: nowrap;
    width: min(152px, 10.5vw);
    height: 42px;
  }

}


/* =========================================================
   ヘッダー 1024〜1279px（文字・ロゴ・ボタンの大きさはそのまま、余白と間隔だけ詰める）
   ※主にナビ同士の間隔（header-nav-list の gap）を詰め、ほかの余白は1280px以上の見た目に近づける
   ※1280px以上はカンプ（w1440）どおり
   ※各余白は「1024pxのときの値 ＋ (画面幅 − 1024px) × 係数」で、1280pxの値に近づくように広がる
   ========================================================= */
@media screen and (min-width: 1024px) and (max-width: 1279px) {

  .header-inner {
    padding: 0 20px;
    /* 狭い幅でも入りきるよう左右の最低余白を20pxに（中身は左右中央） */
  }

  .header-nav {
    margin-left: calc(24px + (100vw - 1024px) * 0.121);
    /* 24px → 約55px */
  }

  .header-nav-list {
    gap: calc(10px + (100vw - 1024px) * 0.14);
    /* 10px → 約46px（ここをいちばん詰める） */
  }

  .header-btn-list {
    gap: calc(12px + (100vw - 1024px) * 0.035);
    /* 12px → 約21px */
    margin-left: calc(22px + (100vw - 1024px) * 0.094);
    /* 22px → 約46px */
  }

}


/* =========================================================
   フッター（SP）
   SP：メニューはアコーディオン（＋で開閉）→ ボタン → ロゴ・住所・公式HP・SNS
   ========================================================= */
.footer {
  margin-top: 0;
  background-color: #fbf5ee;
  color: #5b534d;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  padding: 60px 55px 65px;
}

/* SPでは列の囲みを外して、中身を order で並べ替える */
.footer-col {
  display: contents;
}

.footer-nav-about {
  order: 1;
}

.footer-nav-work {
  order: 2;
}

.footer-nav-recruit {
  order: 3;
}

.footer-nav-other {
  order: 4;
}

.footer-btn-recruit {
  order: 5;
}

.footer-btn-job-tour {
  order: 6;
}

.footer-brand {
  order: 7;
}

/* ---------- メニュー（見出し＋リンク） ---------- */
.footer-nav-heading {
  margin: 0;
}

/* 見出し（SPは開閉ボタン） */
.footer-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 0;
  border: none;
  border-bottom: 1px solid #a99f97;
  background: none;
  color: #5b534d;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

/* 左の縦棒＋見出し文字 */
.footer-nav-title {
  padding-left: 13px;
  border-left: 5px solid #6b5f58;
  font-size: var(--main-text);
  font-weight: 700;
  line-height: 26px;
  letter-spacing: 0.05em;
}

/* 「＋」（開くと縦線が回って「－」に） */
.footer-nav-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.footer-nav-icon::before,
.footer-nav-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: #5b534d;
  transform: translateY(-50%);
  transition: transform 0.3s;
}

.footer-nav-icon::after {
  transform: translateY(-50%) rotate(90deg);
}

.footer-nav-group.is-open .footer-nav-icon::after {
  transform: translateY(-50%) rotate(0deg);
}

/* 開閉する中身（高さ0 ⇔ 中身の高さ をアニメーション） */
.footer-nav-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.3s, visibility 0.3s;
}

.footer-nav-group.is-open .footer-nav-panel {
  grid-template-rows: 1fr;
  visibility: visible;
}

.footer-nav-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.footer-nav-list {
  margin: 0;
  padding: 14px 0 18px 18px;
}

.footer-nav-link {
  display: inline-block;
  color: #5b534d;
  font-size: var(--main-text);
  line-height: 2.2;
  transition: color 0.3s;
}

.footer-nav-link::before {
  content: ">";
  margin-right: 6px;
}

.footer-nav-link:hover {
  color: #c96e86;
}

/* ---------- 求人一覧・職場見学会ボタン ---------- */
.footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 255px;
  height: 55px;
  margin: 0 auto;
  font-family: "Noto Serif JP", serif;
  font-size: var(--main-text);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  /* 内側の細い枠線（ヘッダーのボタンと同じ） */
  outline: 1px solid rgba(255, 255, 255, 0.6);
  outline-offset: -5px;
}

/* 求人一覧 … ヘッダーの求人一覧と同じ茶色 → ホバーでトップページのボタンと同じ茶色（#c6aa91） */
.footer-btn-recruit {
  margin-top: 52px;
  background-color: #6b5c55;
  color: #fff;
  transition: background-color 0.3s;
}

.footer-btn-recruit:hover {
  background-color: #c6aa91;
}

/* 職場見学会 … ヘッダーの職場見学会ボタンと同じ色 */
.footer-btn-job-tour {
  margin-top: 25px;
  background-color: #7f9f83;
  color: #fdfdfd;
  transition: background-color 0.3s, color 0.3s;
}

.footer-btn-job-tour:hover {
  background-color: #afc7b3;
  color: #5b534d;
  text-shadow: none;
  outline-color: #fff;
  /* 明るい背景でも枠線が見えるように */
}

/* ---------- ロゴ・住所・公式HP・SNS ---------- */
/* SPは中央寄せ（中の文字は左揃え） */
.footer-brand {
  width: fit-content;
  margin: 61px auto 0;
}

.footer-logo-link {
  display: block;
  width: 107px;
  margin: 0 auto;
}

/* 会社名はPCのみ */
.footer-company {
  display: none;
}

.footer-address {
  margin-top: 22px;
  font-family: "Noto Serif JP", serif;
  font-size: var(--main-text);
  font-style: normal;
  line-height: 1.6;
}

/* 株式会社エムズコーポレートサイト（SPは矢印が文字の左「→」、PCは右「↗」）… ホバーで色が変わり、矢印が動く */
.footer-corporate-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 26px;
  color: #5b534d;
  font-family: "Noto Serif JP", serif;
  font-size: var(--sub-heading);
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.3s;
}

.footer-corporate-link:hover {
  color: #c96e86;
}

.footer-corporate-pc {
  display: none;
}

.footer-corporate-sp {
  word-break: keep-all;
  font-size: 14px;
  /* 幅が足りないときは「株式会社エムズ／コーポレートサイト」で改行（HTMLの <wbr> の位置） */
}

/* SPの矢印「→」（文字の左） */
.footer-corporate-icon {
  position: relative;
  flex-shrink: 0;
  order: -1;
  width: 19px;
  height: 10px;
  transition: translate 0.3s;
}

.footer-corporate-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: currentColor;
}

.footer-corporate-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.footer-corporate-link:hover .footer-corporate-icon {
  translate: 4px 0;
}

/* SNS */
.footer-sns {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 44px 0 0;
  padding: 0;
}

.footer-sns-link {
  display: block;
  width: 50px;
  transition: opacity 0.3s;
}

.footer-sns-link:hover {
  opacity: 0.8;
}

/* ---------- コピーライト ---------- */
.footer-copyright {
  margin: 0;
  padding: 10px 20px;
  background-color: #c96e86;
  color: #fff;
  font-size: calc(var(--main-text) * 0.875);
  /* 16px × 0.875 ＝ 14px */
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

.footer-copyright small {
  font-size: inherit;
}

/* =========================================================
   PAGE TOP（全ページ共通・右下に固定。FVより下へスクロールしたら表示）
   ========================================================= */
.page-top {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 15;
  display: block;
  width: 18px;
  height: 130px;
  color: #c96e86;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.page-top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* 文字（下から上へ読む縦書き） */
.page-top-text {
  position: absolute;
  bottom: 0;
  left: 0;
  font-family: "Noto Serif JP", serif;
  font-size: calc(var(--main-text) * 0.75);
  /* 16px × 0.75 ＝ 12px */
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* 右の縦線＋上の矢じり … ホバーで上へ動く */
.page-top::before,
.page-top::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  background-color: currentColor;
  transition: translate 0.3s;
}

.page-top::before {
  height: 100%;
}

.page-top::after {
  height: 10px;
  transform: rotate(30deg);
  transform-origin: top center;
}

.page-top:hover::before,
.page-top:hover::after {
  translate: 0 -6px;
}

/* =========================================================
   フッター・PAGE TOP（PC 1024px〜）  ※カンプ w1440 基準
   ========================================================= */
@media screen and (min-width: 1024px) {

  /* 左：会社情報／右：メニュー3列（ボタンは2・3列目の下） */
  .footer-inner {
    display: grid;
    grid-template-columns: 343fr 280fr 299fr 248fr;
    max-width: 1440px;
    margin: 0 auto;
    padding: 100px min(169px, calc(70px + (100vw - 1024px) * 0.238)) 92px min(101px, calc(40px + (100vw - 1024px) * 0.147));
    /* 1024pxで左40px・右70px → 1440pxで左101px・右169px（右は固定表示のPAGE TOPと重ならない幅） */
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
  }

  /* 一番右の列は右余白なし（ボタンを列幅いっぱいに） */
  .footer-col:last-child {
    padding-right: 0;
  }

  .footer-col-about {
    gap: 56px;
  }

  .footer-brand {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    margin: 0;
    padding-right: 20px;
  }

  /* 見出しは開閉しない */
  .footer-nav-toggle {
    max-width: 226px;
    padding: 0 0 16px;
    pointer-events: none;
    cursor: default;
  }

  .footer-nav-title {
    padding-left: 15px;
    font-size: var(--main-text);
    line-height: 28px;
  }

  .footer-nav-icon {
    display: none;
  }

  .footer-nav-panel {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: none;
  }

  .footer-nav-list {
    padding: 20px 0 0;
  }

  .footer-nav-link {
    font-size: calc(var(--main-text) * 0.88);
    /* 17px × 0.88 ≒ 15px */
    line-height: 30px;
  }

  /* ボタンは列の一番下（「その他」の下端とそろう） */
  .footer-btn {
    width: 100%;
    max-width: 248px;
    height: 59px;
    margin: auto 0 0;
    font-size: var(--sub-heading);
  }

  .footer-nav-work,
  .footer-nav-recruit {
    margin-bottom: 40px;
  }

  /* ---------- 会社情報 ---------- */
  .footer-logo-link {
    width: 161px;
    margin: 0;
  }

  .footer-company {
    display: block;
    margin-top: 24px;
    font-family: "Noto Serif JP", serif;
    font-size: var(--sub-heading);
    font-weight: 600;
    line-height: 1.4;
  }

  .footer-address {
    margin-top: 14px;
    font-size: var(--main-text);
    line-height: 1.45;
  }

  .footer-corporate-link {
    gap: 8px;
    margin-top: 50px;
    font-family: inherit;
    font-size: var(--main-text);
    font-weight: 500;
  }

  .footer-corporate-sp {
    display: none;
  }

  .footer-corporate-pc {
    display: inline;
    word-break: auto-phrase;
    /* 幅が狭いときは「株式会社エムズ／コーポレートサイト」で改行 */
  }

  /* PCの矢印「↗」（文字の右・緑） */
  .footer-corporate-icon {
    order: 0;
    width: 11px;
    height: 11px;
    color: #7f9f83;
    transition: translate 0.3s, color 0.3s;
  }

  .footer-corporate-icon::before {
    width: 14px;
    height: 1px;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .footer-corporate-icon::after {
    top: 0;
    width: 6px;
    height: 6px;
    border-width: 1px;
    transform: none;
  }

  .footer-corporate-link:hover .footer-corporate-icon {
    color: #c96e86;
    translate: 3px -3px;
  }

  .footer-sns {
    justify-content: flex-start;
    gap: 35px;
    margin-top: 40px;
  }

  .footer-sns-link {
    width: 67px;
  }

  .footer-copyright {
    padding: 31px 20px;
    font-size: calc(var(--main-text) * 0.88);
    /* 17px × 0.88 ≒ 15px */
  }

  /* ---------- PAGE TOP ---------- */
  .page-top {
    right: 2.4vw;
    /* 入社お祝い金の丸（右から4.9vw）と重ならない位置 */
    bottom: 40px;
    width: 24px;
    height: 219px;
  }

  .page-top-text {
    font-size: var(--sub-heading);
  }

  .page-top::after {
    height: 14px;
  }

}


/* =========================================================
   入社お祝い金キャンペーン（固定表示・SP／PC共通の見た目）※トップ・お知らせ・エムズの想い・働く魅力ページで使用
   ========================================================= */
/* 外枠：固定表示と表示切替（丸の見た目は .campaign-badge-link） */
.campaign-badge {
  position: fixed;
  top: 390px;
  /* 読み込み時、カンプと同じくスライダー右下に重なる位置 */
  right: 25px;
  z-index: 15;
  width: 134px;
  height: 134px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s, visibility 0.4s;
}

/* 下層ページ（ページ見出し .page-hero があるページ）のSP … 写真の右下に少し重なる位置まで下げる
   写真の下端（約666px）から93px上 ＝ トップページのMVと同じ重なり方。画面が低いときは画面下から150px上で止める */
body:has(.page-hero) .campaign-badge {
  top: min(573px, 100svh - 150px);
}

.campaign-badge.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* ×で閉じたあとは表示しない */
.campaign-badge.is-closed {
  display: none;
}

/* オレンジの丸（SP・PC共通） */
.campaign-badge-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #f29a38;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s;
}

.campaign-badge-link:hover {
  opacity: 0.85;
}

/* 閉じるボタン：丸の枠外・右上（外枠の四角の角は丸の外になる） */
.campaign-badge-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: #5b534d;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* ×の線 */
.campaign-badge-close::before,
.campaign-badge-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background-color: #fff;
}

.campaign-badge-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.campaign-badge-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.campaign-badge-sub {
  position: relative;
  padding-bottom: 9px;
  font-size: calc(var(--main-text) * 0.6875);
  /* 16px × 0.6875 ＝ 11px */
  font-weight: 700;
  line-height: 1.3;
}

/* 区切り線 */
.campaign-badge-sub::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 56px;
  height: 1px;
  background-color: #fff;
  transform: translateX(-50%);
}

.campaign-badge-main {
  margin-top: 8px;
  font-size: calc(var(--main-text) * 0.8125);
  /* 16px × 0.8125 ＝ 13px */
  font-weight: 700;
  line-height: 1.4;
}

@media screen and (min-width: 1024px) {

  /* ---------- 入社お祝い金（PC） ----------
     SPと同じく画面に固定・スクロールが止まったら表示。位置はMV写真の右下（カンプ 1440×900 基準） */
  .campaign-badge,
  body:has(.page-hero) .campaign-badge {
    top: auto;
    right: min(70px, 4.9vw);
    /* 70÷1440 ≒ 4.9vw */
    bottom: 24px;
    width: 255px;
    height: 255px;
  }

  .campaign-badge-close {
    top: 4px;
    right: 4px;
    width: 36px;
    height: 36px;
  }

  .campaign-badge-close::before,
  .campaign-badge-close::after {
    width: 16px;
  }

  .campaign-badge-sub {
    padding-bottom: 16px;
    font-size: var(--main-text);
  }

  .campaign-badge-sub::after {
    width: 81px;
  }

  .campaign-badge-main {
    margin-top: 14px;
    font-size: var(--middle-heading);
    line-height: 1.35;
  }

  /* 「キャンペーン」は少し小さく */
  .campaign-badge-main-small {
    font-size: var(--sub-heading);
  }

}


/* =========================================================
   メインビジュアルのスライダー（トップ・お知らせページ共通）
   PC：.mv-fade（ふわっと切り替え）／SP：.mv-slider（中央を大きく、前後を小さく）
   動きは common.js。大きさ（高さ・スライドの幅・角丸）は各ページのCSSで指定
   スライドの間隔・前後の縮小率は HTML の data-step／data-scale で指定
   ========================================================= */
/* PC用フェードはSPでは非表示 */
.mv-fade {
  display: none;
}

.mv-slider {
  position: relative;
}

.mv-slider-track {
  position: relative;
  height: 100%;
}

/* 位置と大きさは JS で transform を指定 */
.mv-slide {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  transition: transform 0.8s ease;
}

.mv-slide.is-jump {
  transition: none;
}

.mv-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (min-width: 1024px) {

  .mv-slider {
    display: none;
  }

  /* SVG形状で切り抜いた画像エリア（カンプ：左270px・幅1354px・高さ827px）
     形は assets/img/fv-mask.svg（マスク）。SVGは preserveAspectRatio="none" なので、箱の大きさに合わせて伸び縮みする
     1440px より広い画面：w1440 の配置のまま中央に寄せ（左に (画面幅 − 1440px) ÷ 2 の余白）、
     写真だけは右の画面端の外まで届くよう、左の余白と同じ分だけ幅を足す（形の右側のカーブは、w1440と同じく画面の外に隠れる） */
  .mv-fade {
    position: relative;
    display: block;
    width: calc(min(94%, 1354px) + max(0px, (100% - 1440px) / 2));
    /* 1354÷1440 ≒ 94% */
    height: min(calc(100svh - 114px), calc(94vw * 827 / 1354), 827px);
    /* 写真の高さは「画面の高さ − 写真より上（ヘッダー90px＋余白24px）」→ 画面の下端に写真の下のラインがくる。
       縦長の画面では大きくなりすぎないよう、カンプと同じ比率の高さ（最大827px）が上限（トップ・下層ページ共通） */
    min-height: 480px;
    margin-left: calc(max(0px, (100% - 1440px) / 2) + min(18.75%, 270px));
    /* 270÷1440 ＝ 18.75% */
    -webkit-mask-image: url(/assets/img/fv-mask.svg);
    mask-image: url(/assets/img/fv-mask.svg);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  .mv-fade-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 2s ease, transform 7s ease-out;
  }

  .mv-fade-img.is-active {
    opacity: 1;
    transform: scale(1);
  }

}



/* =========================================================
   下層ページの見出し .page-hero（お知らせ・エムズの想い など共通）
   SP：英字ラベル＋下線、中央の見出し、角丸のスライダー（.mv-slider）
   PC：トップのMVと同じ形の写真（.mv-fade）に、丸い見出しと飾りの輪を重ねる
   HTML：div.page-hero > div.page-hero-head（p.page-hero-label＋h1.page-hero-title）
         ＋ span.page-hero-circle.page-hero-circle-large／-small ＋ div.page-hero-img（.mv-fade／.mv-slider）
   ========================================================= */
.page-hero-label {
  padding: 0 8px 14px;
  border-bottom: 1px solid #cfc4bb;
}

.page-hero-title {
  margin-top: 36px;
  color: #5b534d;
  font-size: var(--main-heading);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-align: center;
}

/* 写真（SPは角丸のスライダー。飾りは各ページのCSSで） */
.page-hero-img {
  position: relative;
  margin-top: 18px;
}


/* ---------- SPスライダー（動き・共通部分は common.css の .mv-slider。ここは下層ページ用の大きさ） ---------- */
.page-hero .mv-slider {
  height: 420px;
  margin: 0 -12px;
  /* 画面の端まで広げ、はみ出した前後の写真は切る（横スクロール防止） */
  overflow: hidden;
}

.page-hero .mv-slide {
  width: 315px;
  /* カンプ実測 */
  margin-left: -157.5px;
  /* 315÷2 */
}

.page-hero .mv-slide-img {
  border-radius: 24px;
}

@media screen and (min-width: 1024px) {

  /* ---------- ページ見出し：トップのMVと同じ形の写真＋丸い見出し＋飾りの輪 ----------
     写真の形・大きさ・フェードは common.css の .mv-fade（トップと共通）
     丸・輪の位置と大きさは 1440px 基準の比率（写真の高さ 827px ／ 画面幅 1440px）。1440px以上は固定 */
  /* パンくずは高さを取らずに写真の上に重ねる（写真の上端をトップのMVと同じ位置にそろえるため）
     位置はヘッダー（高さ 90px）のすぐ下 */
  body:has(.page-hero) .breadcrumb {
    position: absolute;
    top: 90px;
    right: 0;
    left: 0;
    z-index: 3;
  }

  .page-hero {
    position: relative;
    margin-top: 24px;
    /* トップの .mv-fade と同じ（ヘッダーの下 24px に写真の上端） */
    overflow: hidden;
    /* 写真は右端の外まで広がるので切る（トップの .mv と同じ） */
  }

  /* 丸い見出し（緑〜黄色のグラデーションの輪） */
  .page-hero-head {
    position: absolute;
    top: 10.5%;
    /* 87÷827 */
    left: calc(max(0px, (100% - 1440px) / 2) + min(141px, 9.8vw));
    /* 1440pxより広い画面では w1440 の配置のまま中央へ */
    /* 141÷1440 */
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(309px, 21.5vw);
    /* 309÷1440 */
    aspect-ratio: 1;
    border: 10px solid transparent;
    border-radius: 50%;
    background:
      linear-gradient(#fbf5ee, #fbf5ee) padding-box,
      linear-gradient(90deg, #f1e89a, #7f9f83) border-box;
  }

  .page-hero-label {
    padding: 0;
    border-bottom: none;
    color: #7f9f83;
    font-size: calc(var(--main-text) * 0.88);
    /* 17px × 0.88 ≒ 15px */
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .page-hero-title {
    margin-top: min(26px, 1.8vw);
    font-family: "Noto Serif JP", serif;
    font-size: min(calc(var(--main-heading) * 1.25), 2.78vw);
    /* 32px × 1.25 ＝ 40px（w1440〜）。丸（幅 21.5vw）に合わせて画面幅で縮める（40 ÷ 1440 ≒ 2.78vw。w1032 の iPad Pro 13 で約29px）
       固定の 40px だと、丸が小さくなる w1024〜1300 くらいで文字が丸からはみ出す */
    letter-spacing: 0.05em;
  }

  /* 飾りの輪（中は透明。グラデーションの枠だけ残す） */
  .page-hero-circle {
    position: absolute;
    z-index: 2;
    display: block;
    aspect-ratio: 1;
    border: solid transparent;
    border-radius: 50%;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
  }

  .page-hero-circle-large {
    top: 56.6%;
    /* 468÷827 */
    left: calc(max(0px, (100% - 1440px) / 2) + min(66px, 4.6vw));
    /* 1440pxより広い画面では w1440 の配置のまま中央へ */
    /* 66÷1440 */
    width: min(267px, 18.5vw);
    /* 267÷1440 */
    border-width: 12px;
    background: linear-gradient(100deg, #fbd87a, #d26f87) border-box;
  }

  .page-hero-circle-small {
    top: 74%;
    /* 612÷827 */
    left: calc(max(0px, (100% - 1440px) / 2) + min(255px, 17.7vw));
    /* 1440pxより広い画面では w1440 の配置のまま中央へ */
    /* 255÷1440 */
    width: min(156px, 10.8vw);
    /* 156÷1440 */
    border-width: 8px;
    background: linear-gradient(100deg, #e79bb5, #a9a6dc) border-box;
  }

  .page-hero-img {
    margin: 0;
  }


}

@media screen and (min-width: 1440px) {

  /* ---------- MVの写真（w1440以上・トップ／下層ページ共通）：形を縦横比そのまま（伸ばさない）で見せる ----------
     写真の高さは「画面の高さ − 114px（ヘッダー 90px ＋ 余白 24px）」→ どの画面でも写真の下のラインが画面の下端にそろう（最小 480px）
     写真の幅 --fv-w は高さ × 1354.25 ÷ 827（形がゆがまない）
     写真の左端 --fv-left は、左側の要素（204px分）＋写真を中央に置いた位置。最小は w1440 のカンプと同じ 270px
     （画面に収まらない幅や縦に長い画面では、右のカーブが画面の外に隠れる）
     トップのコピー・丸、下層の丸い見出し・輪は --fv-left からの距離で置くので、トップと下層で写真の位置は同じ
     ※ 写真は 4:3 の横長を想定。枠（約 1.64:1）より縦が長いので、横幅いっぱいに合わせて上下が少し切れる（各 約9%） */
  .mv,
  .page-hero {
    --fv-w: calc(max(480px, 100svh - 114px) * 1354.25 / 827);
    --fv-left: max(270px, calc((100% - var(--fv-w) + 204px) / 2));
  }

  .mv-fade {
    width: var(--fv-w);
    height: auto;
    min-height: 0;
    margin-left: var(--fv-left);
    aspect-ratio: 1354.25 / 827;
  }

  /* 丸い見出し・輪は大きさそのまま、写真に合わせて横の位置だけ中央へ（w1440のカンプと同じ位置関係） */
  .page-hero-head {
    left: calc(var(--fv-left) - 129px);
    /* 270 − 141 */
  }

  .page-hero-circle-large {
    left: calc(var(--fv-left) - 204px);
    /* 270 − 66 */
  }

  .page-hero-circle-small {
    left: calc(var(--fv-left) - 15px);
    /* 270 − 255 */
  }

}

/* =========================================================
   円グラフ .data-chart（全ページ共通の部品。トップの DATA、今後のグラフページで使う）
   HTML：div.data-chart > svg.data-chart-svg（g.data-chart-slices > path.data-chart-slice ×件数 ＋ g.data-chart-lines）
         ＋ div.data-chart-center（中央の白い円）＋ p.data-chart-label（ラベル）
   扇形の割合は path の data-value（%）に書くだけ。区切り線と描画の動きは common.js が作る（ID不要なので1ページに何個でも置ける）
   置き場所・大きさ・ラベルの位置（top / left の％）は各ページのCSSで指定
   ========================================================= */
.data-chart {
  position: relative;
  aspect-ratio: 1 / 1;
}

.data-chart-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.16));
}

/* 扇形（形 d は common.js が data-value から作る） */
/* 扇形の色（グラフごとに増やしてOK） */
.data-chart-slice-great {
  fill: #de7886;
}

.data-chart-slice-good {
  fill: #f2c2c5;
}

.data-chart-slice-other {
  fill: #e9e3da;
}

/* 区切りの白線 */
.data-chart-lines line {
  stroke: #fff;
  stroke-width: 0.6;
}

/* 中央の白い円 */
.data-chart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: #fdfbf9;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  transform: translate(-50%, -50%);
}

.data-chart-center-label {
  color: #5b534d;
  font-size: var(--middle-heading);
  font-weight: 700;
  line-height: 1.2;
}

.data-chart-center-num {
  color: #d96b80;
  font-family: "Noto Serif JP", serif;
  font-size: calc(var(--main-heading) * 2.15);
  /* 28px × 2.15 ≒ 60px */
  font-weight: 600;
  line-height: 1;
}

.data-chart-unit {
  font-size: 0.5em;
  font-family: "Inter", sans-serif;
}

/* ラベル（位置は各ページのCSSで top / left を円グラフの幅に対する％で指定） */
.data-chart-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #5b534d;
  font-size: calc(var(--main-text) * 0.8);
  /* 16px × 0.8 ≒ 13px */
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.data-chart-label-num {
  font-family: "Inter", sans-serif;
  font-size: var(--main-heading);
  font-weight: 600;
  line-height: 1.1;
}

.data-chart-label-num .data-chart-unit {
  font-size: 0.6em;
}

/* ---------- 描画の演出（.data-chart に js-scroll を付けたとき）----------
   扇形は common.js が12時から時計回りに1.6秒で描き、そのあと区切り線・中央・ラベルを表示 */
.data-chart.is-ready .data-chart-lines,
.data-chart.is-ready .data-chart-center,
.data-chart.is-ready .data-chart-label {
  opacity: 0;
  transition: opacity 0.6s ease 1.6s;
}

.data-chart.is-visible .data-chart-lines,
.data-chart.is-visible .data-chart-center,
.data-chart.is-visible .data-chart-label {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {

  .data-chart.is-ready .data-chart-lines,
  .data-chart.is-ready .data-chart-center,
  .data-chart.is-ready .data-chart-label {
    transition: none;
  }
}

@media screen and (min-width: 1024px) {

  .data-chart-center-label {
    font-size: var(--middle-heading);
  }

  .data-chart-center-num {
    font-size: calc(var(--main-heading) * 2.6);
    /* 32px × 2.6 ≒ 83px */
    font-weight: 900;
  }

  .data-chart-label {
    font-size: var(--main-text);
  }

}