/* ==================================================
   0. ローディング（使っていなければ消してOK）
================================================== */
#splash {
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100%;
  background: #ffc0cb;
  text-align: center;
  color: #fff;
}

#splash_text {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 999;
  width: 100%;
  transform: translate(-50%, -50%);
  color: #fff;
}

/* ==================================================
   1. グローバルナビ（アンダーラインアニメーション）
================================================== */
.gnavi {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 50px 0;
  list-style: none;
}

.gnavi li {
  margin-bottom: 20px;
}

.gnavi li a {
  display: block;
  padding: 10px 25px;
  text-decoration: none;
  color: #333;
  position: relative;          /* 線アニメ基点 */
  transition: all 0.7s;
}

/* 下線のベース */
.gnavi li a::after {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #ff0000;
  opacity: 0;
}

/* hover & current */
.gnavi li.current a::after,
.gnavi li a:hover::after {
  width: 100%;
  opacity: 1;
  animation: bgappear 0.5s forwards;
}

@keyframes bgappear {
  0% {
    width: 0%;
    height: 1px;
  }
  50% {
    width: 100%;
    height: 1px;
  }
  100% {
    width: 100%;
    height: 100%;
    background: #ffc0cb;
  }
}

.gnavi li.current a,
.gnavi li a:hover {
  color: #000;
  z-index: 1;
}

/* ==================================================
   2. 「働く環境を知る」 ヒーローエリア
================================================== */

.work-environment-hero {
  position: relative;
  margin-top: 5vw;
}

.work-env-img {
  width: 100%;
  height: auto;
  display: block;
}

.work-env-title-group {
  position: absolute;
  top: 50%;
  left: 18%;
  transform: translate(-50%, -50%);
  text-align: left;
}

.work-env-title-en {
  color: #d40000;
  font-size: 0.9rem;
  font-weight: bold;
}

.work-env-title {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 10px;
}

/* --------------------------------------------------
   メニュー ①②③
-------------------------------------------------- */
.work-env-menu ul {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 60px auto;
  font-weight: bold;
  list-style: none;
}

.work-env-menu ul li a {
  color: #000;
  text-decoration: none;
  font-size: 1.1rem;
}

.work-env-menu ul li a:hover {
  color: #e60012;
  text-decoration: underline;
}

/* --------------------------------------------------
   セクション共通
-------------------------------------------------- */
.work-env-content {
  width: 85%;
  margin: 60px auto;
  padding-bottom: 60px;
  border-bottom: 1px solid #eee;
}

/* ==================================================
   3. 数字で見るエス・ビルド
================================================== */

.num-block {
      font-weight: 600;
  padding-top: 80px;
}

/* 見出し「01 数字で見るエス・ビルド」 */
.num-section-header {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.num-index {
  display: block;
  color: #e60012;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.num-section-header h3 {
  font-size: 2rem;
  font-weight: bold;
}

/* --------------------------------------------------
   3-1. カード共通
-------------------------------------------------- */

.num-card {
  border: 2px solid #ff4b5c;
  border-radius: 16px;
  padding: 18px 22px 20px;
  background: #fff;
  box-sizing: border-box;
}

.num-card-header {
  display: flex;
  align-items: baseline;   /* タイトルと※のベースラインを揃える */
  justify-content: space-between;
  margin-bottom: 6px;
}

.num-card-title {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
  color: #e60012;
}

.num-card-caption {
  font-size: 0.72rem;
  color: #666;
  white-space: nowrap;
}

.num-card-image img {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==================================================
   4. 1段目：円グラフ 2枚（年齢構成比 / 職種別構成比）
================================================== */

.num-grid {                /* 1段目 2列 */
  width: 88%;
  max-width: 1100px;
  margin: 0 auto 3vw;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

/* ==================================================
   5. 2段目：3枚カード
      （新卒・中途割合 / 有給休暇の平均消化率 / 育児休業取得率）
================================================== */

.num-grid-3 {              /* 2段目 3列 */
  width: 88%;
  max-width: 1100px;
  margin: 20px auto 3vw;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.num-card-small {
  padding: 16px 18px 18px;
}

/* アイコン＋文字の横並び */
.num-small-body {
  display: flex;
  align-items: center;
  gap: 4vw;
  margin-top: 6px;
}

.num-small-icon img {
  width: 70px;
  height: auto;
  display: block;
}

.num-small-text p {
  margin: 2px 0;
  font-size: 0.9rem;
}

/* 73% 表示 */
.num-percent {
  font-size: 3.6rem;   /* ここで大きさ＆太さを調整 */
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.num-percent span {
  font-size: 3rem;
  font-weight: inherit;  /* % も同じ太さに */
}

/* ==================================================
   6. 3段目：2枚カード
      （新卒社員の定着率 / 業績）
================================================== */

/* ▼ 3段目：サイズ比率 1 : 2 */
.num-grid-bottom {
  width: 88%;
  max-width: 1100px;
  margin: 20px auto 3vw;
  display: grid;
  grid-template-columns: 1fr 2fr;  /* ← ここを変更 */
  gap: 40px;
}


.num-card-large {
  padding: 18px 26px 10px;
}

/* ---- 新卒社員の定着率 ---- */

.num-retention-body {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

.num-retention-list p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0;
  font-size: 0.95rem;
}

.num-year {
  width: 45%;
}

.num-rate {
  font-weight: bold;
}

/* アイコンサイズ少しUP */
.num-grid-bottom .num-small-icon img {
  width: 8vw;
}

.num-business-img {
  width: 12vw!important;
}
/* ---- 業績 ---- */

.num-performance-body {
  display: flex;
  align-items: center;
  gap: 2vw;
  margin-top: 8px;
}

.num-performance-table {
  flex: 1;
}

/* 年度ヘッダー（35期 / 34期） */
.num-perf-head {
  display: flex;
  justify-content: flex-end;
  gap: 40px;
  font-size: 0.75rem;
  margin-bottom: 6px;
}

/* 行部分：左ラベル＋右に数値2列 */
.num-performance-table p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0;
  padding: 6px 0;
  font-size: 0.95rem;
  /* アンダーバー */
}

.num-performance-table p:last-child {
  border-bottom: none;     /* 最後の行だけ線を消す */
}

.num-perf-label {
  flex: 0 0 40%;
}

.num-perf-value {
  flex: 0 0 25%;
  text-align: right;
  font-weight: bold;
}

/* 新卒社員の定着率：年と割合のメリハリ */
.num-retention-list p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 4px 0;
  font-size: 0.9rem;      /* ベースは少し小さめ */
}

.num-year {
  flex: 0 0 6vw;
  font-size: 0.9rem;
}

.num-rate {
  flex: 0 0 auto;
  font-size: 1.3rem;      /* 右の％だけ大きく */
  font-weight: 700;       /* 太字 */
}

/* 業績：行レイアウト＆アンダーバー */
.result-table-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 2px solid #e4002b;  /* 横線 */
  font-size: 0.9rem;
}

.result-table-row:last-child {
  border-bottom: none;               /* 最後の行だけ線なし */
}

/* 行内の<p>共通リセット */
.result-table-row p {
  margin: 0;
}

/* 左の項目名（年間物件数／仕入れ先数／顧客数） */
.result-table-row p:first-child {
  flex: 0 0 40%;
  font-size: 0.9rem;
}

/* 右側 35期・34期の数値 */
.result-table-row p:nth-child(2),
.result-table-row p:nth-child(3) {
  flex: 0 0 25%;
  text-align: right;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ==================================================
   7. レスポンシブ
================================================== */

@media (max-width: 1024px) {
  .work-env-content {
    width: 90%;
  }

  .num-grid,
  .num-grid-bottom {
    width: 90%;
  }

  .num-grid-3 {
    width: 90%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 500px) {
  .work-env-title-group {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }

  .work-env-content,
  .num-grid,
  .num-grid-3,
  .num-grid-bottom {
    width: 90%;
    gap: 10vw;
            padding-top: 0;
            padding-bottom: 0;
            margin-bottom: 0;
  }

  .num-grid,
  .num-grid-3,
  .num-grid-bottom {
    grid-template-columns: 1fr;
    margin-bottom: 10vw;
  }

  .num-section-header h3 {
    font-size: 6vw;
  }

  .num-card {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .work-env-menu ul {
    flex-direction: column;
    gap: 0vw;
  }
}
@media (max-width: 500px) {
  .num-grid-bottom {
    grid-template-columns: 1fr; /* SPでは通常どおり1列 */
  }
}


/* ▼ 4段目：資格保有人数・専攻（2列） */
.num-grid-qual-major {
  width: 88%;
  max-width: 1100px;
  margin: 0 auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

/* ベースは3段目と同じ大きめカード */
.num-card-qual,
.num-card-major {
  padding: 18px 26px 24px;
}

/* 資格保有人数レイアウト */
.num-qual-body {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}

.num-qual-list p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 4px 0;
  font-size: 1rem;
}

.num-qual-label {
  flex: 0 0 100%;
}

.num-qual-value {
  flex: 0 0 auto;
  font-size: 1.3rem;
  font-weight: 700;
}

/* 専攻レイアウト */
.num-major-body {
  display: flex;
  align-items: center;
  gap: 4vw;
  margin-top: 8px;
}

.num-major-list p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 4px 0;
  font-size: 1rem;
}

.num-major-label {
  flex: 0 0 100%;
}

.num-major-value {
  flex: 0 0 auto;
  font-size: 1.4rem;
  font-weight: 700;
}

/* 4段目のアイコン少し大きめに */
.num-grid-qual-major .num-small-icon img {
  width: 70px;
  height: auto;
}

/* SP時は1列表示にする */
@media (max-width: 500px) {
  .num-grid-qual-major {
    width: 90%;
    grid-template-columns: 1fr;
    margin-bottom: 80px;
  }
}

/* ==================================================
   6. 福利厚生
   -------------------------------------------------- */

.benefit-block {
  font-weight: 600;
  padding-top: 80px;
}

/* 見出し「02 / 福利厚生」 */
.benefit-section-header {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto 60px;
  text-align: left;
}

.benefit-index {
  display: block;
  color: #e60012;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.benefit-section-header h3 {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 1vw;
}

/* 3カラム本体 */
.benefit-grid {
  width: 75%;
  max-width: 1100px;
  margin: 0 auto 3vw;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  text-align: center;
}

.benefit-item {
  text-align: left;
  flex: 1 1 0;
}

/* アイコン */
.benefit-icon img {
  width: 140px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

/* タイトル + アンダーライン */
.benefit-title {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.benefit-title-line {
  width: 100%;
  max-width: 200px;
  height: 2px;
  background: #e60012;
    margin: 6px auto 14px auto;
}

/* 説明文 */
.benefit-text {
  font-size: 0.8rem;
  line-height: 1.8;
}
.benefit-item h4 {
  text-align: center;
}

.benefit-desc {
  text-align: left;
  margin: 0 auto;
  width: 80%;
  max-width: 260px; /* テキスト幅を少し狭くして見本っぽく */
}
/* SPレイアウト（縦並び） */
@media (max-width: 768px) {
  .benefit-grid {
    flex-direction: column;
    gap: 5vw;
    width: 90%;
    margin-bottom: 5vw;
  }
}

.benefit-extra-link {
  padding: 0!important;
  color: #e60012;
      line-height: normal;
      display: contents;
    text-decoration: underline;
}

/* 教育制度セクション */
.education-block {
  background: #ffffff;
}

.education-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.education-title-wrap {
  margin-bottom: 3vw;
}

.education-title-main {
  display: inline-block;
  background: #e60012;
  color: #fff;
  font-size: 2vw;
  font-weight: 700;
  padding: 5px 56px;
  letter-spacing: 0.1em;
}

.education-sub {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
}

.education-sub-square {
  width: 14px;
  height: 14px;
  background: #e60012;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 32px 40px;
  margin-bottom: 5vw;
}

.education-card {
  border: 2px solid #333;
  border-radius: 20px;
  padding: 5px 32px;
  box-sizing: border-box;
  background: #fff;
}

.education-card-title {
  font-size: 1.4rem;
  margin-top: 1vw;
  margin-bottom: 3px;
}

.education-card-text {
  font-size: 1vw;
  line-height: 1.9;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .education-block {
    padding: 56px 1% 80px;
  }

  .education-title-main {
    font-size: 5vw;
    padding: 10px 32px;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .education-card {
    padding: 20px 18px;
  }
}


/* ==================================================
   追加：SP最適化（追記）
================================================== */

/* アンカー移動で見出しがヘッダーに隠れないように */
html {
  scroll-padding-top: 90px;
}

/* 768px以下：全体の“詰まり”を解消 */
@media (max-width: 500px) {
  /* 空のbenefit-itemが1枠分スペースを食うのを防ぐ（後述HTMLとセット推奨） */
  .benefit-item.is-empty {
    display: none;
  }
  .num-small-body {
    gap: 12vw;
  }
  .num-small-icon img {
    width: 25vw;
  }
  .num-small-text p {
        font-size: 5vw;
  }
  .num-grid-bottom .num-small-icon img {
    width: 25vw;
  }
  .num-year {
        flex: 0 0 21vw;
  }
  .num-retention-body {
    gap: 8vw;
  }
  .num-performance-body {
    display: block;
  }
  .num-business-img {
    width: 50vw!important;
  }
  .num-small-icon {
    text-align: -webkit-center;
  }
  .result-table-row p:nth-child(2), .result-table-row p:nth-child(3) {
    font-size: 4vw;
  }
  .result-table-row p:first-child {
    font-size: 4vw;
  }
  .num-grid-qual-major .num-small-icon img {
    width: 21vw;
  }
  .num-qual-list p {
    font-size: 4vw;
  }
  .num-qual-body {
    gap: 2vw;
  }
  .num-qual-value {
    font-size: 4vw;
  }
  .num-major-label {
        flex: 0 0 80%;
  }
  .num-major-list p {
    font-size: 4vw;
  }
  .num-major-value {
    font-size: 4vw;
  }
  .num-major-body {
        gap: 9vw;
  }
  .work-environment-hero {
    margin-top: 21vw;
  }
  .work-env-title {
    font-size: 6vw;
  }
  .work-env-menu ul {
        margin: 4vw auto;
  }
  .work-env-menu ul li a {
    height: 15vw;
  }
  .num-grid {
    gap: 10vw;
  }
  .benefit-block {
    margin-top: 0;
  }
  .benefit-section-header h3 {
    font-size: 6vw;
  }
  .education-card-title {
    font-size: 4vw;
  }
  .education-card-text {
    font-size: 3.5vw;
  }