@charset "UTF-8";
/* ==========================================================================
   component.css ― どのページでも使える共通パーツ
   --------------------------------------------------------------------------
   1. c-heading      英字ラベル＋短い線＋見出し
   2. c-button       メインボタン（右端に丸い飛行機アイコン）
   3. c-entry-button ENTRY 用の小さいボタン（右端に矢印）
   4. c-entry-card   エントリー導線のカード（ENTRY セクション）
   5. c-tag          お知らせの種別
   6. c-news         お知らせの一覧
   ― ここから下は、おもに下層ページで使う ―
   7. c-page-hero    英字のページ名（ページの一番上）
   8. c-breadcrumb   パンくず
   9. c-section-title / c-block-title   本文の見出し（大・中）
   10. c-prose       本文（段落のまとまり）
   11. c-list        箇条書き
   12. c-table       表（左に項目名、右に内容）
   13. c-label       四角い小さなラベル
   14. c-bar-title   左に主色の縦線が付く見出し
   15. c-num-title   番号つきの見出し（01 ＋ 見出し）
   16. c-side-layout 左にページ内メニュー、右に本文の2列
   17. c-anchor-nav  ページ内メニュー（番号＋項目名が縦に並ぶ）
   18. c-card        白い角丸のカード
   19. c-pill        丸い小さなラベル（職種区分など）
   20. c-back-link   一覧へ戻るなどの文字リンク（← 付き）
   21. 本文の両端揃え ふつうの文章（段落・箇条書き）の行の右端をそろえる
   ========================================================================== */

/* 1. c-heading ------------------------------------------------------------ */
.c-heading {
  --heading-accent: var(--color-main);
  --heading-color: var(--color-text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.c-heading__en {
  /* 文字の高さ 12px ＋ 線までの間 12px ＋ 線 2px */
  height: 1.625rem;
  background: linear-gradient(var(--heading-accent), var(--heading-accent)) left bottom / 1.75rem 2px no-repeat;
  color: var(--heading-accent);
  font-family: var(--font-en);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: 0.75rem;
  letter-spacing: var(--ls-none);
  white-space: nowrap;
}

.c-heading__title {
  --lh: var(--lh-title);
  color: var(--heading-color);
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-title);
}

.c-heading--center {
  align-items: center;
  text-align: center;
}

.c-heading--center .c-heading__en {
  background-position: center bottom;
}

.c-heading--sub {
  --heading-accent: var(--color-sub);
}

.c-heading--white {
  --heading-accent: var(--color-white);
  --heading-color: var(--color-white);
}

@media (max-width: 767px) {
  .c-heading--sp-center {
    align-items: center;
    text-align: center;
  }

  .c-heading--sp-center .c-heading__en {
    background-position: center bottom;
  }
}

/* 2. c-button ------------------------------------------------------------- */
.c-button {
  --btn-bg: var(--color-main);
  --btn-color: var(--color-white);
  --btn-circle: var(--color-white);
  --btn-icon: url("../img/common/icon_plane_main.svg");
  --btn-circle-size: 3.25rem;       /* 右端の丸の大きさ（ボタンの高さ − 上下の余白） */
  /* 文字はボタン全体（丸を含めた幅）の中央に置く */
  display: grid;
  grid-template-columns: minmax(0.75rem, 1fr) auto minmax(var(--btn-circle-size), 1fr);
  align-items: center;
  column-gap: 0.5rem;
  width: 22.5rem;
  max-width: 100%;
  height: 3.75rem;
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-none);
  letter-spacing: var(--ls-wide);
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease);
}

/* 左の空き（中身は無い。列を1つ使うためだけに置く） */
.c-button::before {
  content: "";
}

.c-button::after {
  content: "";
  justify-self: end;
  width: var(--btn-circle-size);
  height: var(--btn-circle-size);
  border-radius: 50%;
  background: var(--btn-circle) var(--btn-icon) center / 1.5rem 1.3125rem no-repeat;
}

/* ホバー：地色を少し明るくし、飛行機が右へ飛び出して左から戻ってくる（0.5 秒・1回） */
a.c-button:hover {
  background: color-mix(in srgb, var(--btn-bg) 86%, #fff);
}

a.c-button:hover::after {
  animation: c-button-fly 0.5s both;
}

/* 飛行機は丸の背景画像なので、位置を動かすと丸の外に出たぶんは自然に隠れる */
@keyframes c-button-fly {
  0% {
    background-position: center;
    animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
  }

  50% {
    background-position: calc(100% + 1.5rem) center;
    animation-timing-function: step-end;
  }

  50.01% {
    background-position: -1.5rem center;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }

  100% {
    background-position: center;
  }
}

.c-button--sub {
  --btn-bg: var(--color-sub);
  --btn-icon: url("../img/common/icon_plane_sub.svg");
}

.c-button--dark {
  --btn-bg: var(--color-dark);
  --btn-icon: url("../img/common/icon_plane_dark.svg");
}

.c-button--white {
  --btn-bg: var(--color-white);
  --btn-color: var(--color-main);
  --btn-circle: var(--color-main);
  --btn-icon: url("../img/common/icon_plane_white.svg");
}

a.c-button--white:hover {
  background: var(--color-main-pale);
}

.c-button--disabled {
  --btn-bg: #000;
  --btn-icon: url("../img/common/icon_plane_black.svg");
  opacity: 0.25;
}

.c-button--s {
  --btn-circle-size: 2.5rem;
  height: 3rem;
  font-size: var(--fs-small);
}

.c-button--s::after {
  background-size: 1rem 0.875rem;
}

.c-button--full {
  width: 100%;
}

/* 3. c-entry-button ------------------------------------------------------- */
.c-entry-button {
  --entry-bg: var(--color-white);
  --entry-color: var(--color-main);
  --entry-circle: var(--color-main);
  --entry-icon: url("../img/common/icon_arrow_white.svg");
  --entry-size: 1.75rem; /* 28px */
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 2px 2px 2px 1.125rem;
  border-radius: var(--radius-pill);
  background: var(--entry-bg);
  color: var(--entry-color);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: var(--lh-none);
  letter-spacing: var(--ls-none);
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease);
}

.c-entry-button::after {
  content: "";
  flex-shrink: 0;
  width: var(--entry-size);
  height: var(--entry-size);
  border-radius: 50%;
  background: var(--entry-circle) var(--entry-icon) center / 0.75rem 0.5rem no-repeat;
}

a.c-entry-button:hover {
  background: var(--color-main-pale);
}

.c-entry-button--block {
  --entry-size: 2rem; /* 32px */
  display: flex;
  justify-content: space-between;
  gap: 0;
  width: 100%;
}

/* 文字を「左の余白〜丸」の中央に置くための、幅ゼロの目印 */
.c-entry-button--block::before {
  content: "";
}

.c-entry-button--block::after {
  background-size: 0.8125rem auto;
}

.c-entry-button--ghost {
  --entry-bg: rgba(255, 255, 255, 0.1);
  --entry-color: var(--color-white);
  --entry-circle: var(--color-white);
  --entry-icon: url("../img/common/icon_arrow_main.svg");
  padding: 1px 1px 1px 1.0625rem;
  border: 1px solid var(--color-white);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

a.c-entry-button--ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

.c-entry-button--closed {
  --entry-color: var(--color-gray);
  --entry-circle: var(--color-gray);
  font-weight: var(--fw-medium);
}

/* 4. c-entry-card --------------------------------------------------------- */
.c-entry-card {
  --card-bg: rgba(0, 175, 213, 0.8);
  --card-color: var(--color-white);
  --card-en: rgba(255, 255, 255, 0.7);
  --card-photo: 0.3;
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  min-width: 0;
  padding: 2rem 0.75rem 0.75rem;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  color: var(--card-color);
}

.c-entry-card__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--card-photo);
}

.c-entry-card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.c-entry-card__en {
  color: var(--card-en);
  font-family: var(--font-en);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-bold);
  line-height: var(--lh-none);
  letter-spacing: var(--ls-none);
  white-space: nowrap;
}

.c-entry-card__title {
  --lh: var(--lh-title);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-title);
  white-space: nowrap;
}

/* （総合職）などの補足は一回り小さく、かっこの空きを詰める */
.c-entry-card__title small {
  font-size: var(--fs-h3);
  font-feature-settings: "halt";
}

.c-entry-card--light {
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-color: var(--color-text);
  --card-en: var(--color-main);
  --card-photo: 0.16;
  padding: 2rem 0.5rem 0.5rem;
}

.c-entry-card.is-closed {
  --card-en: var(--color-gray);
}

.c-entry-card--outline {
  --card-bg: rgba(0, 0, 0, 0.2);
  --card-en: var(--color-white);
  justify-content: center;
  padding: 2rem 1.75rem;
  border: 2px solid var(--color-white);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color var(--dur) var(--ease);
}

a.c-entry-card--outline:hover {
  background: rgba(0, 0, 0, 0.36);
}

/* 募集要項カードの「募集要項を見る →」 */
.c-entry-card__more {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0 0.5rem 0.625rem;
  border-bottom: 1px solid currentColor;
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  line-height: var(--lh-none);
  letter-spacing: var(--ls-none);
}

.c-entry-card__more::after {
  content: "";
  width: 0.75rem;
  height: 0.5rem;
  background: url("../img/common/icon_arrow_white.svg") center / contain no-repeat;
}

/* SP：見出しを一回り小さくし、余白を詰める */
@media (max-width: 767px) {
  .c-entry-card {
    gap: 1.25rem;
    padding: 1.25rem 0.75rem 0.75rem;
  }

  .c-entry-card__title {
    font-size: 1.5rem;
  }

  .c-entry-card__title small {
    font-size: var(--fs-body);
  }

  .c-entry-card--light {
    gap: 1.75rem;
    padding: 2rem 0.5rem 0.5rem;
  }

  .c-entry-card--outline {
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
  }

  .c-entry-card--outline .c-entry-card__en {
    margin-bottom: -0.5rem;
  }

  .c-entry-card--outline .c-entry-card__title {
    font-size: var(--fs-h2);
  }
}

/* 5. c-tag ---------------------------------------------------------------- */
.c-tag {
  --tag-color: var(--color-gray);
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  height: 1.25rem;
  padding-inline: 0.625rem;
  border: 1px solid var(--tag-color);
  border-radius: var(--radius-pill);
  color: var(--tag-color);
  font-size: var(--fs-micro);
  font-weight: var(--fw-medium);
  line-height: var(--lh-none);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.c-tag--event {
  --tag-color: var(--color-sub);
}

/* 6. c-news --------------------------------------------------------------- */
.c-news {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.c-news__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.3125rem;
  padding: 0 1.25rem;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  line-height: var(--lh-none);
  transition: background-color var(--dur) var(--ease);
}

.c-news__item::after {
  content: "";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.3125rem;
  margin-left: 0.5rem;
  background: url("../img/common/icon_plane_sub.svg") center / contain no-repeat;
}

.c-news__item:hover {
  background: var(--color-main-pale);
}

.c-news__date {
  flex-shrink: 0;
  width: 6.25rem;
  margin-right: 0.5rem;
  color: var(--color-text-sub);
}

/* 日付と「NEW」を1組にする枠（トップのお知らせで使う。お知らせ一覧は page/news.css の p-news-list__when） */
.c-news__when {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.25rem;
  min-width: 8.125rem;              /* 日付＋NEW の幅 */
}

.c-news__when .c-news__date {
  width: auto;
  margin-right: 0;
}

/* 「NEW」：主色の四角いラベル（高さ 20px。お知らせ一覧と同じ見た目） */
.c-news__new {
  display: inline-flex;
  align-items: center;
  height: 1.25rem;
  padding-inline: 0.375rem;
  background: var(--color-main);
  color: var(--color-white);
  font-size: var(--fs-micro);
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: 0.03em;
}

.c-news__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  /* 文字の上下が切れないよう、行の高さぶんの余白を確保してから省略する */
  padding-block: 0.4em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* SP：1段目に日付・種別・飛行機、2段目にタイトル（折り返して全文を出す） */
@media (max-width: 767px) {
  .c-news__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "date tag plane"
      "title title title";
    gap: 0.75rem;
    min-height: 0;
    padding: 1.5rem 1.25rem;
    font-size: var(--fs-small);
  }

  .c-news__item::after {
    grid-area: plane;
    margin-left: 0;
  }

  .c-news__date,
  .c-news__when {
    grid-area: date;
    min-width: 0;
    margin-right: 0;
  }

  .c-news__item .c-tag {
    grid-area: tag;
    justify-self: start;
  }

  /* 行間 1.5 で折り返す */
  .c-news__title {
    grid-area: title;
    margin-block: calc((var(--trim-top) - 0.75) * 1em) calc((var(--trim-bottom) - 0.75) * 1em);
    padding-block: 0;
    overflow: visible;
    line-height: var(--lh-snug);
    white-space: normal;
  }
}

/* 7. c-page-hero ---------------------------------------------------------- */
.c-page-hero {
  padding: 12.4375rem var(--gutter) 5.625rem;
  color: var(--color-white);
  text-align: center;
}

.c-page-hero__en {
  --lh: var(--lh-title);
  font-family: var(--font-en);
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-none);
  text-wrap: balance;             /* 2行になるとき、最後の行に1語だけ残さない（対応ブラウザのみ） */
}

/* 説明文（15px・行間 1.8） */
.c-page-hero__lead {
  --lh: var(--lh-relaxed);
  margin-top: 1.75rem;
  font-size: var(--fs-body-s);
  letter-spacing: var(--ls-none);
}

/* 説明文があるときは、下の余白を 8px 足す（切り詰めたぶん） */
.c-page-hero:has(.c-page-hero__lead) {
  padding-bottom: 6.125rem;
}

@media (max-width: 767px) {
  .c-page-hero {
    padding-block: 3.5rem 3.25rem;
  }

  .c-page-hero__en {
    font-size: 2.5rem;
  }

  .c-page-hero__lead {
    margin-top: 1.25rem;
    font-size: var(--fs-small);
    letter-spacing: 0.04em;
  }

  .c-page-hero:has(.c-page-hero__lead) {
    padding-bottom: 3.25rem;
  }
}

/* 8. c-breadcrumb --------------------------------------------------------- */
.c-breadcrumb {
  margin-right: var(--page-side, 0rem);
  padding: 1.125rem var(--gutter) 1.125rem var(--page-pad, var(--gutter));
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-body);
  line-height: var(--lh-none);
  letter-spacing: var(--ls-body);
}

.c-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.c-breadcrumb__list li {
  display: flex;
  gap: 0.5rem;
}

.c-breadcrumb__list li + li::before {
  content: "≫";
  color: rgba(255, 255, 255, 0.4);
  font-weight: var(--fw-medium);
}

.c-breadcrumb__list a {
  color: var(--color-white);
  font-weight: var(--fw-bold);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.c-breadcrumb__list a:hover {
  text-decoration: none;
}

@media (max-width: 767px) {
  .c-breadcrumb {
    padding-block: 0.875rem;
    font-size: var(--fs-caption);
    line-height: 1.4;
  }
}

/* 9. c-section-title / c-block-title -------------------------------------- */
.c-section-title {
  --lh: var(--lh-title);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-gray);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-title);
}

.c-block-title {
  --lh: 1.3;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
}

@media (max-width: 767px) {
  .c-section-title {
    padding-bottom: 1rem;
    font-size: 1.375rem;
  }

  .c-block-title {
    --lh: 1.45;
    font-size: 1.125rem;
  }
}

/* 10. c-prose ------------------------------------------------------------- */
.c-prose {
  font-size: var(--fs-prose);
  letter-spacing: var(--ls-wide);
}

.c-prose > p {
  --lh: 1.75;
}

.c-prose > * + * {
  margin-top: 1.25rem;
}

.c-prose--lead > p {
  --lh: 1.85;
}

.c-prose--lead > * + * {
  margin-top: 1.625rem;
}

/* 11. c-list -------------------------------------------------------------- */
.c-list {
  --lh: 1.75;
  margin-block: calc((var(--trim-top) - var(--lh) / 2) * 1em) calc((var(--trim-bottom) - var(--lh) / 2) * 1em);
  padding-left: 0.5rem;
  font-size: var(--fs-prose);
  line-height: var(--lh);
  letter-spacing: var(--ls-wide);
}

.c-list > li {
  position: relative;
  padding-left: 1.125rem;
}

.c-list > li + li {
  margin-top: calc(1.125rem + (var(--trim-top) + var(--trim-bottom) - var(--lh)) * 1em);
}

/* 行頭の丸（1行目の文字の高さの中央に置く） */
.c-list > li::before {
  content: "";
  position: absolute;
  top: calc(var(--lh) * 0.5em - 0.1875rem);
  left: 0;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--color-main);
}

/* 12. c-table ------------------------------------------------------------- */
.c-table {
  width: 100%;
  border: 1px solid var(--color-line);
  border-collapse: collapse;
  text-align: left;
}

.c-table th,
.c-table td {
  border: 1px solid var(--color-line);
  vertical-align: top;
}

.c-table th {
  --lh: 1.65;
  width: 16.25rem;
  /* 上下の余白は 28px（文字の上下の余白を切り詰めた前提の値） */
  padding: calc(1.75rem + (var(--trim-top) - var(--lh) / 2) * 1em) 1.5rem calc(1.75rem + (var(--trim-bottom) - var(--lh) / 2) * 1em);
  background: var(--color-bg-dim);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  line-height: var(--lh);
  letter-spacing: var(--ls-title);
}

.c-table td {
  padding: 1.75rem;
  background: var(--color-white);
}

@media (max-width: 767px) {
  .c-table,
  .c-table tbody,
  .c-table tr,
  .c-table th,
  .c-table td {
    display: block;
  }

  .c-table th,
  .c-table td {
    width: auto;
    border-width: 0;
  }

  .c-table tr + tr {
    border-top: 1px solid var(--color-line);
  }

  .c-table th {
    padding: calc(1rem + (var(--trim-top) - var(--lh) / 2) * 1em) 1.25rem calc(1rem + (var(--trim-bottom) - var(--lh) / 2) * 1em);
  }

  .c-table td {
    padding: 1.25rem;
  }
}

/* 13. c-label ------------------------------------------------------------- */
.c-label {
  display: inline-flex;
  flex-shrink: 0;
  padding: 0.5rem 0.625rem;
  background: var(--color-main);
  color: var(--color-white);
  font-size: var(--fs-note);
  font-weight: var(--fw-bold);
  line-height: var(--lh-none);
  letter-spacing: var(--ls-title);
  white-space: nowrap;
}

/* 14. c-bar-title --------------------------------------------------------- */
.c-bar-title {
  --lh: 1.3;
  --bar-h: 2rem;                   /* 縦線の高さ */
  --bar-pad: calc((var(--bar-h) - (var(--trim-top) + var(--trim-bottom)) * 1em) / 2);
  padding: var(--bar-pad) 0 var(--bar-pad) 1.375rem;   /* 左：線 6px ＋ 間 16px */
  background: linear-gradient(var(--color-main), var(--color-main)) left top / 0.375rem 100% no-repeat;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-none);
}

@media (max-width: 767px) {
  .c-bar-title {
    --lh: 1.45;
    --bar-h: 1.625rem;
    padding-left: 1rem;
    background-size: 0.25rem 100%;
    font-size: 1.25rem;
  }
}

/* 15. c-num-title --------------------------------------------------------- */
.c-num-title {
  --num-size: var(--fs-h2);
  --text-size: var(--fs-h3);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.c-num-title__num {
  --lh: 1;
  --trim-top: 0.3;                 /* 英字書体（Barlow）の切り詰め量 */
  --trim-bottom: 0.4;
  flex: none;
  /* 番号の上下の余白を、u-trim と同じ計算で切り詰める */
  margin-block: calc((var(--trim-top) - var(--lh) / 2) * 1em) calc((var(--trim-bottom) - var(--lh) / 2) * 1em);
  color: var(--color-main);
  font-family: var(--font-en);
  font-size: var(--num-size);
  font-weight: var(--fw-bold);
  line-height: var(--lh);
  letter-spacing: var(--ls-none);
}

.c-num-title__text {
  --lh: 1.4;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-size);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-none);
}

@media (max-width: 767px) {
  .c-num-title {
    --num-size: 1.5rem;
    --text-size: 1.125rem;
    gap: 0.75rem;
  }

  /* SP で2行になる見出しは、行の長さをそろえる（最後の行に1文字だけ残るのを避ける。対応ブラウザのみ） */
  .c-num-title__text {
    text-wrap: balance;
  }
}

/* 16. c-side-layout ------------------------------------------------------- */
.c-side-layout {
  display: grid;
  grid-template-columns: 17.5rem minmax(0, 1fr);
  gap: 2.5rem;
  width: 100%;
}

.c-side-layout__side > * {
  position: sticky;
  top: var(--header-offset);
}

.c-side-layout__main {
  min-width: 0;
}

@media (max-width: 767px) {
  .c-side-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .c-side-layout__side > * {
    position: static;
  }
}

/* 17. c-anchor-nav -------------------------------------------------------- */
.c-anchor-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.c-anchor-nav__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  line-height: var(--lh-none);
  letter-spacing: var(--ls-none);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.c-anchor-nav__link:hover {
  background: var(--color-main-pale);
  color: var(--color-main);
}

.c-anchor-nav__num {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-main);
  font-family: var(--font-en);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
}

.c-anchor-nav__prefix {
  font-size: var(--fs-note);
}

.c-anchor-nav__label {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
}

@media (max-width: 767px) {
  .c-anchor-nav__link {
    padding: 0.875rem 1.25rem;
  }

  .c-anchor-nav__num {
    font-size: var(--fs-lead);
  }

  .c-anchor-nav__label {
    font-size: var(--fs-body-s);
  }
}

/* 18. c-card -------------------------------------------------------------- */
.c-card {
  border-radius: var(--radius-panel);
  background: var(--color-white);
}

@media (max-width: 767px) {
  .c-card {
    border-radius: 1.5rem;
  }
}

/* 19. c-pill -------------------------------------------------------------- */
.c-pill {
  --pill-bg: var(--color-orange);
  --pill-color: var(--color-white);
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  height: 1.3125rem;
  padding-inline: 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--pill-bg);
  color: var(--pill-color);
  font-family: var(--font-ja);
  font-size: var(--fs-note);
  font-weight: var(--fw-medium);
  line-height: var(--lh-none);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* 専従職：黄色の地に濃い文字（白文字だと読みにくいため） */
.c-pill--sub {
  --pill-bg: var(--color-yellow);
  --pill-color: var(--color-text);
}

/* 20. c-back-link --------------------------------------------------------- */
.c-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  align-self: center;
  padding: 0 0.5rem 0.5rem;
  border-bottom: 1px solid var(--color-main);
  color: var(--color-main);
  font-size: var(--fs-caption);
  line-height: var(--lh-none);
  letter-spacing: var(--ls-none);
  transition: background-color var(--dur) var(--ease);
}

.c-back-link::before {
  content: "";
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
  background: url("../img/common/icon_arrow_main.svg") center / 0.75rem 0.5rem no-repeat;
  transform: scaleX(-1);           /* 右向きの矢印を左右反転 */
}

.c-back-link:hover {
  background: var(--color-main-pale);
}

/* 21. 本文の両端揃え ------------------------------------------------------- */
:where(
  .c-prose p,
  .c-prose li,
  .c-list li,
  .p-business-text,
  .p-business-card__list li,
  .p-business-legend dd,
  .p-people-head__lead,
  .p-people-card__quote,
  .p-people-qa__text p,
  .p-numbers-lead,
  .p-numbers-featured__text,
  .p-system-sec__catch,
  .p-system-rotation-note__text,
  .p-benefits-head__lead,
  .p-benefits-spot__text,
  .p-jobs-lead,
  .p-jobs-card__text,
  .p-jobs-intro__text,
  .p-faq-item__text,
  .p-faq-message__text,
  .p-news-overview__list dd,
  .p-project-intro__lead,
  .p-project-intro__desc,
  .p-project-process__text,
  .p-project-comment__body,
  .p-project-next__desc
) {
  text-align: justify;
}

/* c-division-diagram -------------------------------------------------------- */
.c-division-diagram {
  position: relative;
  width: 42.1875em;   /* 675px */
  height: 26.8125em;  /* 429px */
  font-size: 1rem;
}

/* 線（灰色の弧3本） */
.c-division-diagram__lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: #d7d7d7;
  stroke-width: 0.4613;
  stroke-linecap: round;
}

/* 部門の丸（直径 252px） */
.c-division-diagram__unit {
  --unit-color: var(--color-main);
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  width: 15.75em;
  height: 15.75em;
  padding: 1.75em 2.5em 2.5em;
  border-radius: 50%;
  background: var(--unit-color);
  color: var(--color-white);
  text-align: center;
}

.c-division-diagram__unit--operation {
  top: 0;
  left: 13.25em;
}

.c-division-diagram__unit--promotion {
  --unit-color: #0085c1;
  top: 11.0625em;
  left: 0;
}

.c-division-diagram__unit--corporate {
  --unit-color: var(--color-sub);
  top: 11.0625em;
  left: 26.4375em;
}

.c-division-diagram__icon {
  flex-shrink: 0;
  max-width: none;
  margin: -0.125em;
}

.c-division-diagram__unit--operation .c-division-diagram__icon {
  width: 4.2842em;
  height: 4.0837em;
}

.c-division-diagram__unit--promotion .c-division-diagram__icon {
  width: 5.4256em;
  height: 4.0879em;
}

.c-division-diagram__unit--corporate .c-division-diagram__icon {
  width: 5.2154em;
  height: 3.6328em;
  margin-inline: 0;
}

/* 部門名（白い札） */
.c-division-diagram__name {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.25em;
  border-radius: 0.5em;
  background: var(--color-white);
  color: var(--unit-color);
  font-size: 1em;
  font-weight: var(--fw-bold);
  line-height: var(--lh-none);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.c-division-diagram__name span {
  font-size: 0.9738em;  /* 15.58px */
}

/* 部門に含まれる業務 */
.c-division-diagram__jobs {
  --lh: 1.5;
  font-size: 0.7175em;  /* 11.48px */
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* 中央の「3部門が連携」 */
.c-division-diagram__center {
  position: absolute;
  top: 17.8125em;
  left: 18.3125em;
  width: 5.625em;
}

.c-division-diagram__center p {
  --lh: 1.35;
  color: #163560;
  font-family: var(--font-display);
  font-size: 1.5em;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

/* SP：図全体を画面の幅（380px）に合わせて縮める */
@media (max-width: 767px) {
  .c-division-diagram {
    font-size: calc(var(--diagram-width, 23.75rem) / 42.1875);
  }

  .c-division-diagram__name span {
    font-size: 1.3em;
  }

  .c-division-diagram__jobs {
    font-size: 0.95em;
    letter-spacing: 0;
  }
}

/* --rotation：ジョブローテーションの図 */
.c-division-diagram--rotation .c-division-diagram__center {
  top: 18.1875em;
  left: 15.75em;
  width: 10.6875em;
}

.c-division-diagram--rotation .c-division-diagram__center p {
  font-size: 1.125em;
}

.c-division-diagram__badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.5em 1em;
  border-radius: 0.375em;
  background: #163560;   /* 中央の文字と同じ濃い青 */
  color: var(--color-white);
  font-size: 0.8125em;
  font-weight: var(--fw-bold);
  line-height: var(--lh-none);
  letter-spacing: 0.04em;
}

@media (max-width: 767px) {
  .c-division-diagram__badge {
    font-size: 1.2em;
  }
}
