.welfare-page {
  --pad: clamp(calc(64 * var(--pc-unit, 1px)), calc(13.541667 * var(--vw, 1vw)), calc(260 * var(--pc-unit, 1px)));
  --ink: #2b2a28;
  --muted: #5f5a50;
  --dash: #efd98c;
  --row: #f0e6c6;
  color: #000;
  --band: #fff8df;
  --pale-yellow: #ffeaa1;
  --pale-orange: #ffdcc6;
}
/* 移植元の本文表示をページ内で保つ。共通部品へは適用しない。 */
.welfare-page a {
  text-decoration: none;
}
.welfare-page :is(p, li, dd, td) {
  text-wrap: wrap;
}
/* 本文の禁則と短い文末を整える。字間・本文サイズは既存値を維持する。 */
.welfare-page
  :is(
    .prose,
    .prose p,
    .message p,
    .program-card p,
    .perk-description,
    .course-lead,
    .course-note,
    .maternity-flow-step p,
    .holiday-detail,
    .trip-lead
  ) {
  line-break: strict;
}
.welfare-page .nb,
.welfare-page .intro-title-line {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.welfare-page .intro-lead .intro-title-line {
  color: #000;
}
/* 旅行リードのオレンジは既存の「全力で！」だけに保つ。 */
.welfare-page .trip-lead .nb {
  color: inherit;
}
.welfare-page .course-sp-only {
  display: none;
}
.welfare-page :is(h1, h2, h3) {
  word-break: normal;
}
.welfare-page :is(#benefits, #course, #programs, #trip) {
  scroll-margin-top: 16px;
}
@media (min-width: 768px) {
  .welfare-page :is(#benefits, #course, #programs, #trip) {
    scroll-margin-top: 104px;
  }
}
/* 共通帯の手前に写真を重ねる。文字・余白・幅は PageHero の共通値を使う。 */
.l-hero.welfare-hero {
  position: relative;
  z-index: 0;
}

.welfare-page .inset {
  width: min(calc(1400 * var(--pc-unit, 1px)), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
  padding-right: 0;
  padding-left: 0;
}

.welfare-page .intro {
  padding: 0;
  text-align: left;
}

.welfare-page :is(p, h1, h2, h3, blockquote, figure, ul, table) {
  margin: 0;
}

.welfare-page ul {
  padding: 0;
  list-style: none;
}

:where(.welfare-page) .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:where(.welfare-page) .prose {
  color: var(--ink);
  font-weight: 500;
  font-size: max(14px, calc(20 * var(--pc-unit, 1px)));
  line-height: max(30.8px, calc(44 * var(--pc-unit, 1px)));
  letter-spacing: 0;
}

:where(.welfare-page) .intro-sp-only,
:where(.welfare-page) .message-sp-only {
  display: none;
}

/* 導入本文の改行（Figma 1920 基準）は、列が狭い幅では1文字だけ残る行を作るため外し、文節で折り返す */

:where(.welfare-page) .bi {
  position: relative;
  height: calc(220 * var(--pc-unit, 1px));
}

:where(.welfare-page) .bi-en {
  position: absolute;
  top: 0;
  left: calc(-21 * var(--pc-unit, 1px));
  margin: 0;
  font-weight: 900;
  font-size: calc(160 * var(--pc-unit, 1px));
  line-height: normal;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
}

:where(.welfare-page) .bi h2 {
  position: absolute;
  top: calc(143 * var(--pc-unit, 1px));
  left: 0;
  font-weight: 700;
  font-size: calc(64 * var(--pc-unit, 1px));
  line-height: normal;
  letter-spacing: 0.25em;
  white-space: nowrap;
}

:where(.welfare-page) .bi.is-yellow .bi-en,
:where(.welfare-page) .bi.is-orange .bi-en {
  color: #fff;
}

:where(.welfare-page) .bi.is-yellow .bi-en {
  opacity: 0.4;
}
:where(.welfare-page) .bi.is-orange .bi-en {
  opacity: 0.3;
}
:where(.welfare-page) .bi.is-cream .bi-en,
:where(.welfare-page) .bi.is-white .bi-en {
  color: var(--orange);
  opacity: 0.2;
}

:where(.welfare-page) .bi.is-orange h2 {
  color: #fff;
}
:where(.welfare-page) .bi.is-yellow h2,
:where(.welfare-page) .bi.is-cream h2,
:where(.welfare-page) .bi.is-white h2 {
  color: #000;
}

:where(.welfare-page) .intro {
  --intro-photo-width: min(calc(920 * var(--pc-unit, 1px)), calc(47.9167 * var(--vw, 1vw)));
  position: relative;
  height: calc(538 * var(--pc-unit, 1px));
  background: var(--band);
}

:where(.welfare-page) .intro-blob {
  position: absolute;
  z-index: 0;
  top: calc(240 * var(--pc-unit, 1px));
  right: calc(var(--intro-photo-width) - calc(220 * var(--pc-unit, 1px)));
  width: calc(280 * var(--pc-unit, 1px));
  height: calc(280 * var(--pc-unit, 1px));
  border-radius: 50%;
  background: var(--pale-yellow);
}

:where(.welfare-page) .intro-photo {
  position: absolute;
  z-index: 1;
  top: calc(-110 * var(--pc-unit, 1px));
  right: 0;
  width: var(--intro-photo-width);
  height: min(calc(613 * var(--pc-unit, 1px)), calc(31.9271 * var(--vw, 1vw)));
  max-width: none;
  object-fit: cover;
  object-position: center 20%;
  border-radius: calc(50 * var(--pc-unit, 1px)) 0 0 calc(50 * var(--pc-unit, 1px));
}

:where(.welfare-page) .intro-copy {
  position: relative;
  z-index: 1;
  padding-top: calc(88 * var(--pc-unit, 1px));
  padding-bottom: calc(150 * var(--pc-unit, 1px));
}

:where(.welfare-page) .intro-lead {
  max-width: calc(560 * var(--pc-unit, 1px));
  color: #000;
  font-weight: 700;
  font-size: calc(40 * var(--pc-unit, 1px));
  line-height: calc(68 * var(--pc-unit, 1px));
  letter-spacing: 0.05em;
}

:where(.welfare-page) .intro-lead span {
  color: var(--orange);
}

:where(.welfare-page) .intro-copy .prose {
  max-width: calc(680 * var(--pc-unit, 1px));
  margin-top: calc(32 * var(--pc-unit, 1px));
}

/* 写真の左端から48px空ける。1920pxでは既存の列幅・改行を維持する。 */
@media (min-width: 768px) {
  :where(.welfare-page) .intro-copy {
    --intro-text-width: calc(
      calc(100 * var(--vw, 1vw)) - var(--intro-photo-width) - max(var(--pad), (calc(100 * var(--vw, 1vw)) - calc(1400 * var(--pc-unit, 1px))) / 2) - calc(48 * var(--pc-unit, 1px))
    );
  }
  :where(.welfare-page) .intro-lead {
    max-width: min(calc(560 * var(--pc-unit, 1px)), var(--intro-text-width));
  }
  :where(.welfare-page) .intro-copy .prose {
    max-width: min(calc(680 * var(--pc-unit, 1px)), var(--intro-text-width));
  }
}

/* 狭いPC幅は本文→写真の縦積みにして、文字の大きさを保つ。 */

:where(.welfare-page) .anchor-nav {
  height: calc(122 * var(--pc-unit, 1px));
  box-sizing: border-box;
  background: #fff;
  padding-top: calc(72 * var(--pc-unit, 1px));
}

:where(.welfare-page) .anchor-row {
  display: flex;
  justify-content: center;
  gap: calc(18 * var(--pc-unit, 1px));
}

:where(.welfare-page) .anchor {
  display: inline-flex;
  align-items: center;
  gap: calc(14 * var(--pc-unit, 1px));
  height: calc(50 * var(--pc-unit, 1px));
  padding: 0 calc(8 * var(--pc-unit, 1px)) 0 calc(26 * var(--pc-unit, 1px));
  border-radius: calc(50 * var(--pc-unit, 1px));
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: max(14px, calc(17 * var(--pc-unit, 1px)));
  line-height: normal;
  white-space: nowrap;
}

:where(.welfare-page) .anchor:focus-visible {
  outline: calc(2 * var(--pc-unit, 1px)) solid var(--orange);
  outline-offset: calc(3 * var(--pc-unit, 1px));
}

:where(.welfare-page) .anchor-icon {
  display: grid;
  place-items: center;
  width: calc(35 * var(--pc-unit, 1px));
  height: calc(35 * var(--pc-unit, 1px));
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
}

:where(.welfare-page) .anchor-icon svg {
  width: calc(22 * var(--pc-unit, 1px));
  height: calc(22 * var(--pc-unit, 1px));
}

:where(.welfare-page) .message {
  position: relative;
  overflow: hidden;
  height: calc(821 * var(--pc-unit, 1px));
  box-sizing: border-box;
  padding: calc(120 * var(--pc-unit, 1px)) 0 calc(150 * var(--pc-unit, 1px));
  background: #fff;
}

:where(.welfare-page) .message-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

:where(.welfare-page) .message .dot,
:where(.welfare-page) .message .ring {
  position: absolute;
  border-radius: 50%;
}

:where(.welfare-page) .message .pale-yellow {
  top: calc(150 * var(--pc-unit, 1px));
  left: calc(15 * var(--pc-unit, 1px));
  width: calc(64 * var(--pc-unit, 1px));
  height: calc(64 * var(--pc-unit, 1px));
  background: var(--pale-yellow);
}

:where(.welfare-page) .message .pale-orange {
  top: calc(420 * var(--pc-unit, 1px));
  left: calc(-40 * var(--pc-unit, 1px));
  width: calc(120 * var(--pc-unit, 1px));
  height: calc(120 * var(--pc-unit, 1px));
  background: var(--pale-orange);
}

:where(.welfare-page) .message .ring.orange {
  top: calc(455 * var(--pc-unit, 1px));
  left: calc(50 * var(--pc-unit, 1px));
  width: calc(70 * var(--pc-unit, 1px));
  height: calc(70 * var(--pc-unit, 1px));
  border: calc(8 * var(--pc-unit, 1px)) solid var(--orange);
}

:where(.welfare-page) .message .ring.yellow {
  top: calc(40 * var(--pc-unit, 1px));
  right: calc(-37 * var(--pc-unit, 1px));
  width: calc(157 * var(--pc-unit, 1px));
  height: calc(157 * var(--pc-unit, 1px));
  border: calc(14 * var(--pc-unit, 1px)) solid var(--yellow);
}

:where(.welfare-page) .message .pale-orange.right {
  top: calc(10 * var(--pc-unit, 1px));
  right: calc(66 * var(--pc-unit, 1px));
  left: auto;
  width: calc(105 * var(--pc-unit, 1px));
  height: calc(105 * var(--pc-unit, 1px));
}

/* 1920pxの区間左上を基準にした、右側の3つの装飾。 */
:where(.welfare-page) .message .message-disc {
  top: calc(250 * var(--pc-unit, 1px));
  left: calc(50% + calc(370 * var(--pc-unit, 1px)));
  width: calc(360 * var(--pc-unit, 1px));
  height: calc(360 * var(--pc-unit, 1px));
  background: var(--pale-yellow);
}

:where(.welfare-page) .message .message-orbit {
  top: calc(200 * var(--pc-unit, 1px));
  left: calc(50% + calc(620 * var(--pc-unit, 1px)));
  width: calc(150 * var(--pc-unit, 1px));
  height: calc(150 * var(--pc-unit, 1px));
  border: calc(10 * var(--pc-unit, 1px)) solid var(--orange);
}

:where(.welfare-page) .message .message-small-disc {
  top: calc(540 * var(--pc-unit, 1px));
  left: calc(50% + calc(330 * var(--pc-unit, 1px)));
  width: calc(96 * var(--pc-unit, 1px));
  height: calc(96 * var(--pc-unit, 1px));
  background: var(--pale-orange);
}

@media (max-width: 767.98px) {
  :where(.welfare-page) .message :is(.message-disc, .message-orbit, .message-small-disc) {
    display: none;
  }
}

:where(.welfare-page) .message h2 {
  position: relative;
  z-index: 1;
  max-width: calc(920 * var(--pc-unit, 1px));
  font-weight: 700;
  font-size: calc(48 * var(--pc-unit, 1px));
  line-height: calc(65 * var(--pc-unit, 1px));
  letter-spacing: 0.05em;
}

:where(.welfare-page) .message h2 span {
  color: var(--orange);
}

:where(.welfare-page) .message h2 .br-sp {
  display: none;
}

:where(.welfare-page) .message-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(calc(880 * var(--pc-unit, 1px)), 100%);
  gap: calc(28 * var(--pc-unit, 1px));
  margin-top: calc(56 * var(--pc-unit, 1px));
}

:where(.welfare-page) .message blockquote {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

:where(.welfare-page) .message blockquote p:first-child {
  color: var(--orange);
  font-weight: 900;
  font-size: calc(28 * var(--pc-unit, 1px));
  line-height: 1.75;
  letter-spacing: 0.04em;
}

:where(.welfare-page) .message blockquote p:last-child {
  margin-top: calc(12 * var(--pc-unit, 1px));
}

:where(.welfare-page) .message blockquote p:last-child,
:where(.welfare-page) .message-body {
  color: var(--ink);
  font-weight: 500;
  font-size: max(14px, calc(20 * var(--pc-unit, 1px)));
  line-height: 2.7;
  letter-spacing: 0.04em;
}

:where(.welfare-page) .benefits,
:where(.welfare-page) .course {
  position: relative;
  padding: calc(120 * var(--pc-unit, 1px)) 0 calc(160 * var(--pc-unit, 1px));
}

.welfare-page .course {
  margin-top: 0;
}

:where(.welfare-page) .benefits {
  background: var(--yellow);
}
:where(.welfare-page) .course {
  background: var(--orange);
  color: #fff;
}

:where(.welfare-page) .subhead,
:where(.welfare-page) .perk-block h3,
:where(.welfare-page) .maternity-copy h3 {
  font-weight: 700;
  font-size: calc(32 * var(--pc-unit, 1px));
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.welfare-page .subhead {
  margin: calc(56 * var(--pc-unit, 1px)) 0 calc(32 * var(--pc-unit, 1px));
}

:where(.welfare-page) .pay-panels {
  display: grid;
  grid-template-columns: minmax(0, 840fr) minmax(0, 536fr);
  gap: calc(24 * var(--pc-unit, 1px));
  align-items: stretch;
}

:where(.welfare-page) .pay-panel {
  position: relative;
  container-type: inline-size;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: calc(32 * var(--pc-unit, 1px));
  min-width: 0;
  padding: calc(56 * var(--pc-unit, 1px)) calc(64 * var(--pc-unit, 1px));
  overflow: hidden;
  border-radius: calc(40 * var(--pc-unit, 1px));
  background: #fff;
  color: #000;
}

:where(.welfare-page) .pay-panel > :not(.pay-panel-deco) {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

:where(.welfare-page) .pay-panel-deco {
  position: absolute;
  z-index: 0;
  top: calc(-40 * var(--pc-unit, 1px));
  right: calc(-40 * var(--pc-unit, 1px));
  color: var(--orange);
  opacity: 0.07;
  pointer-events: none;
}

:where(.welfare-page) .pay-panel-holidays .pay-panel-deco {
  top: calc(-30 * var(--pc-unit, 1px));
  right: calc(-70 * var(--pc-unit, 1px));
}

:where(.welfare-page) .pay-kicker {
  align-self: flex-start;
  padding: calc(6 * var(--pc-unit, 1px)) calc(20 * var(--pc-unit, 1px));
  border-radius: calc(50 * var(--pc-unit, 1px));
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: max(14px, calc(20 * var(--pc-unit, 1px)));
  line-height: max(16.8px, calc(24 * var(--pc-unit, 1px)));
  letter-spacing: 0.05em;
}

:where(.welfare-page) .pay-main {
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--pc-unit, 1px));
}

:where(.welfare-page) .pay-figure {
  /* インラインの数字が占めていた行全体の高さを保ち、修正04の面・タイル位置を維持する。 */
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  min-height: calc(174 * var(--pc-unit, 1px));
  font-weight: 700;
  font-size: 0;
  line-height: 0;
  white-space: nowrap;
}

/* 行の高さは正本の文字枠に合わせる（PC 154px / SP 67px）。 */
:where(.welfare-page) .pay-figure .num {
  flex: none;
  color: var(--orange);
  font-size: calc(128 * var(--pc-unit, 1px));
  line-height: calc(154 * var(--pc-unit, 1px));
  letter-spacing: -0.02em;
}

:where(.welfare-page) .pay-figure .unit {
  flex: none;
  font-size: calc(34 * var(--pc-unit, 1px));
  line-height: calc(41 * var(--pc-unit, 1px));
  letter-spacing: 0.02em;
}

:where(.welfare-page) .breakdown-label {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--pc-unit, 1px));
  font-weight: 700;
  font-size: max(14px, calc(18 * var(--pc-unit, 1px)));
  line-height: max(17.11111111px, calc(22 * var(--pc-unit, 1px)));
  letter-spacing: 0.05em;
}

:where(.welfare-page) .breakdown-label i {
  flex: 1;
  height: calc(2 * var(--pc-unit, 1px));
  background: var(--dash);
}

:where(.welfare-page) .pay-money {
  display: flex;
  align-items: stretch;
  gap: calc(16 * var(--pc-unit, 1px));
}

:where(.welfare-page) .pay-money .tile {
  flex: 1;
  min-width: 0;
}

.welfare-page .plus {
  display: block;
  align-self: center;
  flex: none;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--orange);
  font-weight: 700;
  font-size: calc(32 * var(--pc-unit, 1px));
  line-height: 1;
}

:where(.welfare-page) .tile {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--pc-unit, 1px));
  padding: calc(18 * var(--pc-unit, 1px)) calc(28 * var(--pc-unit, 1px)) calc(20 * var(--pc-unit, 1px));
  border-radius: calc(16 * var(--pc-unit, 1px));
  background: var(--band);
}

:where(.welfare-page) .tile > span {
  align-self: flex-start;
  padding: calc(4 * var(--pc-unit, 1px)) calc(14 * var(--pc-unit, 1px));
  border-radius: calc(50 * var(--pc-unit, 1px));
  background: #fff;
  color: var(--orange);
  font-weight: 700;
  font-size: max(14px, calc(14 * var(--pc-unit, 1px)));
  line-height: max(17px, calc(17 * var(--pc-unit, 1px)));
  letter-spacing: 0.05em;
}

:where(.welfare-page) .tile strong {
  color: #000;
  font-weight: 700;
  font-size: calc(28 * var(--pc-unit, 1px));
  line-height: calc(41 * var(--pc-unit, 1px));
  letter-spacing: 0.03em;
  white-space: nowrap;
}

:where(.welfare-page) .tile-holidays strong {
  white-space: normal;
}

/* 改行保護用のspanを、タイルの白い見出しラベルと区別する。 */
.welfare-page .tile-holidays strong .nb {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

:where(.welfare-page) .tile-bonus {
  flex-direction: row;
  align-items: center;
  gap: calc(8 * var(--pc-unit, 1px));
  padding-block: calc(18 * var(--pc-unit, 1px));
}

:where(.welfare-page) .tile-bonus span {
  align-self: center;
  flex: none;
}

:where(.welfare-page) .pay-panel-holidays .tile-holidays {
  flex: 1 1 auto;
  justify-content: center;
}

:where(.welfare-page) .perk-block {
  margin-top: calc(120 * var(--pc-unit, 1px));
}

.welfare-page .perk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: calc(24 * var(--pc-unit, 1px));
  margin-top: calc(48 * var(--pc-unit, 1px));
  padding: 0;
  background: transparent;
}

.welfare-page .perk-grid li,
.welfare-page .perk {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: calc(16 * var(--pc-unit, 1px));
  min-width: 0;
  padding: calc(28 * var(--pc-unit, 1px));
  border-radius: calc(24 * var(--pc-unit, 1px));
  background: #fff;
  font-weight: 400;
  font-size: inherit;
  letter-spacing: 0;
}

:where(.welfare-page) .perk-header {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--pc-unit, 1px));
  min-width: 0;
}

:where(.welfare-page) .perk-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(56 * var(--pc-unit, 1px));
  height: calc(56 * var(--pc-unit, 1px));
  border-radius: 50%;
  background: var(--band);
  color: var(--orange);
}

:where(.welfare-page) .perk-icon svg {
  width: calc(28 * var(--pc-unit, 1px));
  height: calc(28 * var(--pc-unit, 1px));
}

:where(.welfare-page) .perk-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

:where(.welfare-page) .perk-name {
  color: #000;
  font-weight: 700;
  font-size: max(14px, calc(20 * var(--pc-unit, 1px)));
  line-height: 1.35;
  text-wrap: balance;
}

/* 長い項目名はカード幅に合わせ、指定の語句は既存の折り返し位置を保つ。 */
.welfare-page .perk-name:not(.perk-name-phrase) > .nb {
  white-space: normal;
}

/* 項目名は短いまとまりを保護し、「|」の位置で折り返す。 */
:where(.welfare-page) .perk-name-phrase {
  word-break: keep-all;
}

:where(.welfare-page) .perk-note {
  color: var(--orange);
  font-weight: 700;
  font-size: max(14px, calc(14 * var(--pc-unit, 1px)));
  line-height: 1.4;
  white-space: nowrap;
}

:where(.welfare-page) .perk-description {
  display: block;
  margin: 0;
  padding-top: calc(16 * var(--pc-unit, 1px));
  border-top: calc(1 * var(--pc-unit, 1px)) solid var(--dash);
  color: var(--muted);
  font-weight: 400;
  font-size: max(14px, calc(15 * var(--pc-unit, 1px)));
  line-height: 1.8;
}

/* 狭いPC幅でも、保護した語句に必要な幅を確保する。 */

:where(.welfare-page) .maternity {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: calc(88 * var(--pc-unit, 1px));
  margin-top: calc(64 * var(--pc-unit, 1px));
  padding: calc(64 * var(--pc-unit, 1px)) calc(96 * var(--pc-unit, 1px));
  overflow: hidden;
  border-radius: calc(40 * var(--pc-unit, 1px));
  background: #fff;
  color: #000;
}

:where(.welfare-page) .maternity-deco {
  position: absolute;
  z-index: 0;
  top: calc(-40 * var(--pc-unit, 1px));
  right: calc(-40 * var(--pc-unit, 1px));
  color: var(--orange);
  opacity: 0.07;
  pointer-events: none;
}

:where(.welfare-page) .rate-visual {
  position: relative;
  z-index: 1;
  flex: none;
  width: calc(280 * var(--pc-unit, 1px));
  height: calc(280 * var(--pc-unit, 1px));
}

:where(.welfare-page) .rate-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

:where(.welfare-page) .rate-deco-orange {
  left: calc(-48 * var(--pc-unit, 1px));
  bottom: calc(-12 * var(--pc-unit, 1px));
  width: calc(120 * var(--pc-unit, 1px));
  height: calc(120 * var(--pc-unit, 1px));
  background: var(--pale-orange);
}

:where(.welfare-page) .rate-deco-ring {
  top: calc(-22 * var(--pc-unit, 1px));
  right: calc(-26 * var(--pc-unit, 1px));
  width: calc(84 * var(--pc-unit, 1px));
  height: calc(84 * var(--pc-unit, 1px));
  border: calc(8 * var(--pc-unit, 1px)) solid var(--yellow);
}

:where(.welfare-page) .rate-deco-yellow {
  right: calc(-8 * var(--pc-unit, 1px));
  bottom: calc(16 * var(--pc-unit, 1px));
  width: calc(36 * var(--pc-unit, 1px));
  height: calc(36 * var(--pc-unit, 1px));
  background: var(--pale-yellow);
}

:where(.welfare-page) .rate-circle {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  width: calc(280 * var(--pc-unit, 1px));
  height: calc(280 * var(--pc-unit, 1px));
  border: calc(6 * var(--pc-unit, 1px)) solid var(--orange);
  border-radius: 50%;
  background: #fff;
}

:where(.welfare-page) .rate-label {
  font-weight: 700;
  font-size: max(14px, calc(18 * var(--pc-unit, 1px)));
  line-height: 1.4;
  letter-spacing: 0.05em;
}

:where(.welfare-page) .rate-num {
  color: var(--orange);
  font-weight: 700;
  font-size: calc(104 * var(--pc-unit, 1px));
  line-height: 1;
  letter-spacing: -0.03em;
}

:where(.welfare-page) .rate-num > .rate-unit {
  font-size: calc(48 * var(--pc-unit, 1px));
  letter-spacing: 0;
}

:where(.welfare-page) .maternity-copy {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  max-width: calc(780 * var(--pc-unit, 1px));
  container-type: inline-size;
}

/* 元の数字自身に行ボックスを持たせ、複製も同じ高さ・基準線で重ねる。 */
:where(.welfare-page) [data-count-up] {
  position: relative;
  display: inline-block;
  line-height: 1;
}

:where(.welfare-page) [data-count-up] > .count-up-display {
  display: block;
  position: absolute;
  inset: 0;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-align: center;
}

:where(.welfare-page) .maternity-copy .prose {
  margin-top: calc(20 * var(--pc-unit, 1px));
}

/* 修正17：案3。小さな休業段階から、復帰後の主役カードへ進む。 */
:where(.welfare-page) .maternity-flow {
  display: grid;
  grid-template-columns: calc(88 * var(--pc-unit, 1px)) minmax(0, 1fr);
  align-items: center;
  gap: calc(130 * var(--pc-unit, 1px));
  margin: calc(24 * var(--pc-unit, 1px)) 0 0;
  padding: 0;
  list-style: none;
}

.welfare-page .maternity-flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--pc-unit, 1px));
  min-width: 0;
  letter-spacing: 0;
}

.welfare-page .maternity-flow-step h4 {
  margin: 0;
  font-weight: 700;
}

.welfare-page .maternity-flow-leave {
  align-items: center;
  color: var(--orange);
}

.welfare-page .maternity-flow-leave h4 {
  font-size: calc(17 * var(--pc-unit, 1px));
  line-height: 1.5;
  white-space: nowrap;
}

.welfare-page .maternity-flow-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(88 * var(--pc-unit, 1px));
  height: calc(88 * var(--pc-unit, 1px));
  border-radius: 50%;
  background: var(--band);
}

.welfare-page .maternity-flow-icon svg {
  width: calc(44 * var(--pc-unit, 1px));
  height: calc(44 * var(--pc-unit, 1px));
}

.welfare-page .maternity-flow-return {
  padding: calc(24 * var(--pc-unit, 1px)) calc(32 * var(--pc-unit, 1px));
  border: calc(3 * var(--pc-unit, 1px)) solid var(--yellow);
  border-radius: calc(20 * var(--pc-unit, 1px));
  background: var(--band);
}

.welfare-page .maternity-flow-tag {
  align-self: flex-start;
  padding: calc(4 * var(--pc-unit, 1px)) calc(14 * var(--pc-unit, 1px));
  border-radius: calc(50 * var(--pc-unit, 1px));
  background: var(--orange);
  color: #fff;
  font-size: calc(14 * var(--pc-unit, 1px));
  line-height: calc(18 * var(--pc-unit, 1px));
}

.welfare-page .maternity-flow-course {
  color: #000;
  font-weight: 700;
  font-size: calc(26 * var(--pc-unit, 1px));
  line-height: 1.2;
}

.welfare-page .maternity-flow-hours {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(8 * var(--pc-unit, 1px));
  font-weight: 500;
  font-size: max(14px, calc(16 * var(--pc-unit, 1px)));
  line-height: 1.5;
}

.welfare-page .maternity-flow-time {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--pc-unit, 1px));
  color: var(--orange);
  font-weight: 700;
  font-size: calc(30 * var(--pc-unit, 1px));
  line-height: 1.2;
  white-space: nowrap;
}

.welfare-page .maternity-flow-time svg {
  flex: none;
  width: calc(24 * var(--pc-unit, 1px));
  height: calc(24 * var(--pc-unit, 1px));
}

.welfare-page .maternity-flow-arrow {
  position: absolute;
  top: 50%;
  left: calc(-113 * var(--pc-unit, 1px));
  width: calc(90 * var(--pc-unit, 1px));
  height: calc(20 * var(--pc-unit, 1px));
  color: var(--orange);
  transform: translateY(-50%);
}

.welfare-page .maternity-flow-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(3 * var(--pc-unit, 1px));
  left: 0;
  border-top: calc(3 * var(--pc-unit, 1px)) dotted currentColor;
  transform: translateY(-50%);
}

.welfare-page .maternity-flow-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(1 * var(--pc-unit, 1px));
  width: calc(10 * var(--pc-unit, 1px));
  height: calc(10 * var(--pc-unit, 1px));
  border-top: calc(3 * var(--pc-unit, 1px)) solid currentColor;
  border-right: calc(3 * var(--pc-unit, 1px)) solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* 本文列が狭いPC幅でもカードを圧縮しない。SPと同じ縦の流れへ切り替える。 */
@container (max-width: 600px) {
  .welfare-page .maternity-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
  }
  .welfare-page .maternity-flow-leave {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }
  .welfare-page .maternity-flow-arrow {
    top: -34px;
    left: 50%;
    width: 40px;
    transform: translate(-50%, -50%) rotate(90deg);
  }
}

.welfare-page .course-lead {
  margin-top: calc(40 * var(--pc-unit, 1px));
  font-weight: 500;
  font-size: max(14px, calc(20 * var(--pc-unit, 1px)));
  line-height: max(30.8px, calc(44 * var(--pc-unit, 1px)));
}

:where(.welfare-page) .course-wrap {
  container-type: inline-size;
  /* 表の見出しセルが枠の上端より 20px 下にあるので、余白 28px で帯まで 48px になる */
  margin-top: calc(28 * var(--pc-unit, 1px));
}

:where(.welfare-page) .course-table {
  --circle: min(calc(168 * var(--pc-unit, 1px)), 12cqw);
  --num: min(calc(72 * var(--pc-unit, 1px)), 5.142cqw);
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 calc(16 * var(--pc-unit, 1px));
  margin-top: calc(-16 * var(--pc-unit, 1px));
  margin-bottom: calc(-16 * var(--pc-unit, 1px));
  table-layout: fixed;
}

:where(.welfare-page) .col-style {
  width: 17.142857%;
}
:where(.welfare-page) .col-pay {
  width: 24.285714%;
}
:where(.welfare-page) .col-hours {
  width: 37.142857%;
}
:where(.welfare-page) .col-days {
  width: 21.428572%;
}

.welfare-page .course-table th,
.welfare-page .course-table td {
  padding: 0;
  border: 0;
  vertical-align: middle;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0;
}

:where(.welfare-page) .course-table thead th {
  position: relative;
  top: calc(4 * var(--pc-unit, 1px));
  height: calc(64 * var(--pc-unit, 1px));
  background: var(--yellow);
  color: #000;
  font-size: max(14px, calc(18 * var(--pc-unit, 1px)));
  letter-spacing: 0.04em;
}

:where(.welfare-page) .course-table thead th:first-child {
  border-radius: calc(32 * var(--pc-unit, 1px)) 0 0 calc(32 * var(--pc-unit, 1px));
}
:where(.welfare-page) .course-table thead th:last-child {
  border-radius: 0 calc(32 * var(--pc-unit, 1px)) calc(32 * var(--pc-unit, 1px)) 0;
}

:where(.welfare-page) .col-style-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--circle);
}

:where(.welfare-page) .col-label {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--pc-unit, 1px));
  padding-left: min(calc(48 * var(--pc-unit, 1px)), 3.43cqw);
}

:where(.welfare-page) .col-label svg {
  width: calc(24 * var(--pc-unit, 1px));
  height: calc(24 * var(--pc-unit, 1px));
  color: #000;
}

:where(.welfare-page) .course-table thead th:first-child::after,
:where(.welfare-page) .course-table thead th:nth-child(2)::after,
:where(.welfare-page) .course-table thead th:nth-child(3)::after {
  content: '';
  position: absolute;
  top: calc(14 * var(--pc-unit, 1px));
  bottom: calc(14 * var(--pc-unit, 1px));
  right: 0;
  border-right: calc(2 * var(--pc-unit, 1px)) dashed #fff;
}

:where(.welfare-page) .course-table tbody th,
:where(.welfare-page) .course-table tbody td {
  height: var(--circle);
  background: #fff;
  color: #000;
}

:where(.welfare-page) .course-table tbody th {
  border-radius: calc(var(--circle) / 2) 0 0 calc(var(--circle) / 2);
}

:where(.welfare-page) .course-table tbody td:last-child {
  border-radius: 0 calc(var(--circle) / 2) calc(var(--circle) / 2) 0;
}

:where(.welfare-page) .course-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: var(--circle);
  height: var(--circle);
  border-radius: 50%;
  background: var(--yellow);
  font-size: calc(24 * var(--pc-unit, 1px));
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-align: center;
}

:where(.welfare-page) .course-table tbody th,
:where(.welfare-page) .cell-pay,
:where(.welfare-page) .cell-hours {
  position: relative;
}

:where(.welfare-page) .course-table tbody th::after,
:where(.welfare-page) .cell-pay::after,
:where(.welfare-page) .cell-hours::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  height: min(calc(104 * var(--pc-unit, 1px)), 7.43cqw);
  border-right: calc(2 * var(--pc-unit, 1px)) dashed var(--dash);
  transform: translateY(-50%);
}

:where(.welfare-page) .cell-value,
:where(.welfare-page) .hours {
  display: block;
  padding-left: min(calc(48 * var(--pc-unit, 1px)), 3.43cqw);
}

:where(.welfare-page) .cell-value {
  white-space: nowrap;
}

/* 修正20：左右を等幅にして、単位を除いた数字そのものを給与列の中央に置く。 */
:where(.welfare-page) .cell-pay .cell-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  align-items: baseline;
  column-gap: calc(2 * var(--pc-unit, 1px));
  padding-left: 0;
}

:where(.welfare-page) .cell-pay .num {
  grid-column: 2;
}

:where(.welfare-page) .cell-pay .unit {
  grid-column: 3;
  min-width: 0;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  text-align: left;
}

:where(.welfare-page) .cell-pay .unit-period {
  /* 右半分に収まらない幅だけ「 / 月」を次の行へ送り、点線手前の空きを保つ。 */
  display: inline-block;
  white-space: pre;
}

:where(.welfare-page) .cell-days .cell-value {
  display: inline-flex;
  align-items: baseline;
  gap: calc(2 * var(--pc-unit, 1px));
}

:where(.welfare-page) .course-table .cell-value .num {
  /* 9も10も同じ2桁幅の中央に置き、3コースとカウントアップ中の軸をそろえる。 */
  width: 2ch;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* 960px超は円と3列の帯を分け、内容の中央そろえを保つ。SPのカードは変更しない。 */
@media (min-width: 768px) {
  :where(.welfare-page) .course-table {
    --num: clamp(calc(52 * var(--pc-unit, 1px)), 5.142cqw, calc(72 * var(--pc-unit, 1px)));
  }

  :where(.welfare-page) .col-style {
    width: calc(168 * var(--pc-unit, 1px)); /* 円152px＋帯までの間16px */
  }

  :where(.welfare-page) .col-pay,
  :where(.welfare-page) .col-hours,
  :where(.welfare-page) .col-days {
    /* 円と間隔を除いた帯の幅を、見出し・本文とも3等分する。 */
    width: calc((100% - calc(168 * var(--pc-unit, 1px))) / 3);
  }

  :where(.welfare-page) .course-table thead th:first-child,
  :where(.welfare-page) .course-table tbody th {
    border-radius: 0;
    background: transparent;
  }

  :where(.welfare-page) .col-style-label {
    width: calc(152 * var(--pc-unit, 1px));
    height: calc(64 * var(--pc-unit, 1px));
    border-radius: calc(32 * var(--pc-unit, 1px));
    background: var(--yellow);
  }

  :where(.welfare-page) .course-circle {
    width: calc(152 * var(--pc-unit, 1px));
    height: calc(152 * var(--pc-unit, 1px));
  }

  :where(.welfare-page) .course-table thead th:nth-child(2) {
    border-radius: calc(32 * var(--pc-unit, 1px)) 0 0 calc(32 * var(--pc-unit, 1px));
  }

  :where(.welfare-page) .course-table tbody td:first-of-type {
    border-radius: calc(999 * var(--pc-unit, 1px)) 0 0 calc(999 * var(--pc-unit, 1px));
  }

  :where(.welfare-page) .course-table tbody td:last-child {
    border-radius: 0 calc(999 * var(--pc-unit, 1px)) calc(999 * var(--pc-unit, 1px)) 0;
  }

  .welfare-page .course-table tbody td {
    box-sizing: border-box;
    /* 表のセルのheightは下限。勤務時間が増えた行だけ、上下28pxを残して伸ばす。 */
    height: calc(168 * var(--pc-unit, 1px));
    padding-block: calc(28 * var(--pc-unit, 1px));
  }

  :where(.welfare-page) .course-table thead th:first-child::after,
  :where(.welfare-page) .course-table tbody th::after {
    display: none;
  }

  .welfare-page .course-table thead th:not(:first-child),
  .welfare-page .course-table tbody td {
    text-align: center;
  }

  :where(.welfare-page) .col-label,
  :where(.welfare-page) .cell-value,
  :where(.welfare-page) .hours {
    padding-left: 0;
  }

  :where(.welfare-page) .hours {
    display: inline-block;
    max-width: 100%;
    text-align: left;
  }

  .welfare-page .course-table thead th:not(:first-child),
  .welfare-page .course-table tbody td {
    padding-inline: calc(26 * var(--pc-unit, 1px)); /* 点線の2pxを除いても、文字との間に24pxを残す。 */
  }

  :where(.welfare-page) .hours-line {
    white-space: normal;
  }

  :where(.welfare-page) .course-table .hours-time {
    display: inline-block;
    white-space: nowrap;
    font-size: clamp(calc(18 * var(--pc-unit, 1px)), calc(3cqw - calc(3 * var(--pc-unit, 1px))), calc(26 * var(--pc-unit, 1px)));
  }

  :where(.welfare-page) .course-table .hours-break {
    /* 時刻と休憩をそれぞれ一塊にし、列内に収まらないときだけ自然に折り返す。 */
    display: inline-block;
    white-space: nowrap;
    font-size: max(14px, calc(16 * var(--pc-unit, 1px)));
  }

  .welfare-page .course-table .unit {
    /* 最も狭いPC列でも、52pxの2桁の数字と給与の単位を余白内に収める。 */
    font-size: max(14px, clamp(calc(16 * var(--pc-unit, 1px)), 2.2cqw, calc(22 * var(--pc-unit, 1px))));
  }
}

:where(.welfare-page) .cell-value .num,
:where(.welfare-page) .pay-figure .num {
  vertical-align: baseline;
}

:where(.welfare-page) .course-table .num {
  color: var(--orange);
  font-size: var(--num);
  line-height: normal;
  letter-spacing: -0.02em;
}

:where(.welfare-page) .course-table .unit {
  font-size: max(14px, calc(22 * var(--pc-unit, 1px)));
  line-height: normal;
}

:where(.welfare-page) .hours-shift {
  display: block;
  font-size: max(14px, calc(14 * var(--pc-unit, 1px)));
  line-height: 1.4;
}

:where(.welfare-page) .hours-line {
  display: block;
}

:where(.welfare-page) .hours-time {
  font-size: calc(26 * var(--pc-unit, 1px));
  line-height: 1.5;
  letter-spacing: 0.02em;
}

:where(.welfare-page) .hours-break {
  color: var(--orange);
  font-size: max(14px, calc(22 * var(--pc-unit, 1px)));
  line-height: 1.5;
}

:where(.welfare-page) .sp-label {
  display: none;
}

:where(.welfare-page) .course-note {
  margin-top: calc(24 * var(--pc-unit, 1px));
  font-weight: 500;
  font-size: max(14px, calc(16 * var(--pc-unit, 1px)));
  line-height: 1.7;
}

:where(.welfare-page) .programs {
  padding: calc(120 * var(--pc-unit, 1px)) 0 calc(160 * var(--pc-unit, 1px));
  background: var(--band);
}

:where(.welfare-page) .program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(80 * var(--pc-unit, 1px)) calc(40 * var(--pc-unit, 1px));
  align-items: start;
  margin-top: calc(64 * var(--pc-unit, 1px));
}

:where(.welfare-page) .program-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(24 * var(--pc-unit, 1px));
}

:where(.welfare-page) .program-card h3 {
  margin-top: calc(20 * var(--pc-unit, 1px));
  font-weight: 700;
  font-size: calc(28 * var(--pc-unit, 1px));
  line-height: 1.45;
}

:where(.welfare-page) .program-card p {
  margin-top: calc(10 * var(--pc-unit, 1px));
  color: var(--ink);
  font-weight: 500;
  font-size: max(14px, calc(18 * var(--pc-unit, 1px)));
  line-height: 1.9;
  letter-spacing: 0.02em;
}

:where(.welfare-page) .trip {
  position: relative;
  overflow: hidden;
  padding: calc(120 * var(--pc-unit, 1px)) 0 calc(160 * var(--pc-unit, 1px));
  background: #fff;
}

:where(.welfare-page) .trip-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, calc(640 * var(--pc-unit, 1px))) minmax(0, 1fr);
  column-gap: clamp(calc(24 * var(--pc-unit, 1px)), calc(7.14 * var(--vw, 1vw)), calc(100 * var(--pc-unit, 1px)));
  align-items: start;
}

:where(.welfare-page) .trip .bi {
  grid-column: 1;
  grid-row: 1;
}
:where(.welfare-page) .trip-lead {
  grid-column: 1;
  grid-row: 2;
}
:where(.welfare-page) .trip-body {
  grid-column: 1;
  grid-row: 3;
}
:where(.welfare-page) .trip-hero {
  grid-column: 2;
  grid-row: 1 / span 3;
}
:where(.welfare-page) .trip-pair {
  grid-column: 1 / -1;
  grid-row: 4;
}

.welfare-page .trip-lead {
  margin-top: calc(48 * var(--pc-unit, 1px));
  font-weight: 700;
  font-size: calc(36 * var(--pc-unit, 1px));
  line-height: calc(60 * var(--pc-unit, 1px));
  letter-spacing: 0.05em;
}

:where(.welfare-page) .trip-lead span {
  color: var(--orange);
}

:where(.welfare-page) .trip-body {
  margin-top: calc(32 * var(--pc-unit, 1px));
  max-width: calc(640 * var(--pc-unit, 1px));
}

:where(.welfare-page) .trip-body p + p {
  margin-top: calc(16 * var(--pc-unit, 1px));
}

:where(.welfare-page) .trip-blob {
  position: absolute;
  z-index: 0;
  top: calc(480 * var(--pc-unit, 1px));
  left: max(var(--pad), calc(calc(50 * var(--vw, 1vw)) - calc(30 * var(--pc-unit, 1px))));
  width: calc(330 * var(--pc-unit, 1px));
  height: calc(330 * var(--pc-unit, 1px));
  border-radius: 50%;
  background: var(--pale-yellow);
}

:where(.welfare-page) .trip-hero {
  margin-right: calc(var(--pad) * -1);
  width: calc(100% + var(--pad));
}

:where(.welfare-page) .trip-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 920 / 518;
  max-width: none;
  object-fit: cover;
  object-position: center 30%;
  border-radius: calc(50 * var(--pc-unit, 1px)) 0 0 calc(50 * var(--pc-unit, 1px));
}

:where(.welfare-page) .trip figcaption {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--pc-unit, 1px));
  margin-top: calc(16 * var(--pc-unit, 1px));
  font-weight: 700;
  font-size: max(14px, calc(22 * var(--pc-unit, 1px)));
  line-height: 1.2;
}

:where(.welfare-page) .trip figcaption::before {
  content: '';
  width: calc(10 * var(--pc-unit, 1px));
  height: calc(10 * var(--pc-unit, 1px));
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

:where(.welfare-page) .trip-hero figcaption {
  padding-left: calc(40 * var(--pc-unit, 1px));
}

:where(.welfare-page) .trip-pair {
  display: grid;
  grid-template-columns: minmax(0, 800fr) minmax(0, 560fr);
  gap: calc(40 * var(--pc-unit, 1px));
  margin-top: calc(96 * var(--pc-unit, 1px));
}

:where(.welfare-page) .trip-event img,
:where(.welfare-page) .trip-group img {
  width: 100%;
  object-fit: cover;
  border-radius: calc(24 * var(--pc-unit, 1px));
}

:where(.welfare-page) .trip-event img {
  aspect-ratio: 800 / 450;
  object-position: 50% 80%;
}

:where(.welfare-page) .trip-group img {
  aspect-ratio: 560 / 450;
  object-position: center 40%;
}

@media (max-width: 767.98px) {
  .welfare-page {
    --pad: 32px;
  }
}

@media (max-width: 767.98px) {
  :where(.welfare-page) .bi {
    height: 88px;
  }
  :where(.welfare-page) .bi-en {
    left: -8px;
    font-size: 60px;
  }
  :where(.welfare-page) .bi h2 {
    top: 52px;
    font-size: 30px;
    letter-spacing: 0.2em;
  }

  :where(.welfare-page) .prose {
    font-size: 15px;
    line-height: 28px;
  }

  :where(.welfare-page) .anchor-nav {
    padding: 32px var(--pad) 0;
  }
  :where(.welfare-page) .anchor-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  :where(.welfare-page) .anchor {
    justify-content: space-between;
    height: 44px;
    gap: 8px;
    padding: 0 6px 0 16px;
    font-size: 14px;
  }
  :where(.welfare-page) .anchor-icon {
    width: 28px;
    height: 28px;
  }
  :where(.welfare-page) .anchor-icon svg {
    width: 18px;
    height: 18px;
  }

  :where(.welfare-page) .benefits,
  :where(.welfare-page) .course,
  :where(.welfare-page) .programs,
  :where(.welfare-page) .trip {
    padding: 64px 0 72px;
  }

  :where(.welfare-page) .subhead,
  :where(.welfare-page) .perk-block h3,
  :where(.welfare-page) .maternity-copy h3 {
    font-size: 20px;
    letter-spacing: 0.04em;
  }
  .welfare-page .subhead {
    margin: 28px 0 16px;
  }

  :where(.welfare-page) .pay-panels {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  :where(.welfare-page) .pay-panel {
    gap: 18px;
    padding: 28px 20px;
    border-radius: 24px;
  }
  :where(.welfare-page) .pay-panel-deco {
    top: -24px;
    right: -50px;
  }
  :where(.welfare-page) .pay-panel-deco svg {
    width: 170px;
    height: 170px;
  }
  :where(.welfare-page) .pay-panel-holidays .pay-panel-deco {
    top: -20px;
    right: -48px;
  }
  :where(.welfare-page) .pay-panel-holidays .pay-panel-deco svg {
    width: 160px;
    height: 160px;
  }
  :where(.welfare-page) .pay-kicker {
    padding: 4px 14px;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 0.03em;
  }
  :where(.welfare-page) .pay-main {
    gap: 8px;
  }
  :where(.welfare-page) .pay-figure {
    min-height: 82px;
  }
  :where(.welfare-page) .pay-figure .num {
    font-size: 56px;
    line-height: 67px;
  }
  :where(.welfare-page) .pay-figure .unit {
    font-size: 15px;
    line-height: 18px;
    letter-spacing: 0;
  }
  :where(.welfare-page) .pay-money {
    gap: 8px;
  }
  .welfare-page .plus {
    font-size: 18px;
    text-align: center;
  }
  :where(.welfare-page) .breakdown-label {
    gap: 10px;
    font-size: 14px;
    line-height: 17px;
    letter-spacing: 0.03em;
  }
  :where(.welfare-page) .tile {
    gap: 6px;
    padding: 10px 12px 12px;
    border-radius: 12px;
  }
  :where(.welfare-page) .tile > span {
    padding-inline: 10px;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0.03em;
  }
  :where(.welfare-page) .tile strong {
    font-size: 15px;
    line-height: 22px;
    letter-spacing: 0;
  }
  :where(.welfare-page) .tile-bonus {
    gap: 6px;
  }
  :where(.welfare-page) .pay-panel-holidays .tile-holidays {
    flex: none;
  }

  :where(.welfare-page) .perk-block {
    margin-top: 56px;
  }
  .welfare-page .perk-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 20px;
  }
  .welfare-page .perk-grid li,
  .welfare-page .perk {
    gap: 12px;
    padding: 20px;
    border-radius: 20px;
    text-align: left;
  }
  :where(.welfare-page) .perk-header {
    gap: 12px;
  }
  :where(.welfare-page) .perk-icon {
    width: 48px;
    height: 48px;
  }
  :where(.welfare-page) .perk-icon svg {
    width: 24px;
    height: 24px;
  }
  :where(.welfare-page) .perk-name {
    font-size: 17px;
  }
  :where(.welfare-page) .perk-note {
    font-size: 13px;
  }
  :where(.welfare-page) .perk-description {
    padding-top: 12px;
    font-size: 14px;
  }

  .welfare-page .maternity-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
    margin-top: 24px;
  }
  .welfare-page .maternity-flow-leave {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }
  .welfare-page .maternity-flow-leave h4 {
    font-size: 15px;
  }
  .welfare-page .maternity-flow-icon {
    width: 56px;
    height: 56px;
  }
  .welfare-page .maternity-flow-icon svg {
    width: 30px;
    height: 30px;
  }
  .welfare-page .maternity-flow-return {
    padding: 18px 20px;
    border-radius: 16px;
  }
  .welfare-page .maternity-flow-tag {
    font-size: 12px;
    line-height: 16px;
  }
  .welfare-page .maternity-flow-course {
    font-size: 20px;
  }
  .welfare-page .maternity-flow-hours {
    font-size: 14px;
  }
  .welfare-page .maternity-flow-time {
    font-size: 24px;
  }
  .welfare-page .maternity-flow-time svg {
    width: 18px;
    height: 18px;
  }
  .welfare-page .maternity-flow-arrow {
    top: -34px;
    left: 50%;
    width: 40px;
    transform: translate(-50%, -50%) rotate(90deg);
  }

  :where(.welfare-page) .maternity {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    margin-top: 40px;
    padding: 36px 20px 32px;
    border-radius: 24px;
  }
  :where(.welfare-page) .maternity-deco {
    top: auto;
    right: -30px;
    bottom: 60px;
  }
  :where(.welfare-page) .maternity-deco svg {
    width: 180px;
    height: 180px;
  }
  :where(.welfare-page) .rate-visual {
    width: 200px;
    height: 200px;
    margin-inline: auto;
  }
  :where(.welfare-page) .rate-deco-orange {
    left: -36px;
    bottom: -6px;
    width: 84px;
    height: 84px;
  }
  :where(.welfare-page) .rate-deco-ring {
    top: -16px;
    right: -20px;
    width: 60px;
    height: 60px;
    border-width: 6px;
  }
  :where(.welfare-page) .rate-deco-yellow {
    right: -8px;
    bottom: 10px;
    width: 26px;
    height: 26px;
  }
  :where(.welfare-page) .maternity-pc-only {
    display: none;
  }
  :where(.welfare-page) .rate-circle {
    width: 200px;
    height: 200px;
    margin-inline: auto;
    border-width: 5px;
  }
  :where(.welfare-page) .rate-label {
    font-size: 14px;
  }
  :where(.welfare-page) .rate-num {
    font-size: 64px;
  }
  :where(.welfare-page) .rate-num > .rate-unit {
    font-size: 32px;
  }
  :where(.welfare-page) .maternity-copy .prose {
    margin-top: 10px;
  }

  .welfare-page .course-lead {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.9;
  }
  :where(.welfare-page) .course-wrap {
    margin-top: 28px;
  }
  .welfare-page .course-table,
  .welfare-page .course-table tbody,
  .welfare-page .course-table tr {
    display: block;
    width: auto;
    height: auto;
  }
  :where(.welfare-page) .course-table {
    margin: 0;
    border-spacing: 0;
  }
  :where(.welfare-page) .course-table thead {
    display: none;
  }
  .welfare-page .course-table tbody td {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 0;
    padding: 14px 20px;
    position: relative;
  }
  .welfare-page .course-table tbody td:not(:last-child)::after {
    content: '';
    display: block;
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 1.5px;
    border: 0;
    transform: none;
  }
  .welfare-page .course-table tbody th {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    padding: 12px 20px;
  }
  :where(.welfare-page) .course-table colgroup {
    display: none;
  }
  :where(.welfare-page) .course-table tr {
    margin-bottom: 16px;
    padding-bottom: 8px;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    color: #000;
  }
  :where(.welfare-page) .course-table tbody th {
    display: flex;
    align-items: center;
    height: auto;
    padding: 12px 20px;
    border-radius: 0;
    background: var(--yellow);
  }
  :where(.welfare-page) .course-table tbody th::after {
    display: none;
  }
  :where(.welfare-page) .course-circle {
    flex-direction: row;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    font-size: 18px;
    letter-spacing: 0;
  }
  :where(.welfare-page) .course-circle::before {
    content: '';
    width: 10px;
    height: 10px;
    margin-right: 10px;
    border-radius: 50%;
    background: #fff;
  }
  :where(.welfare-page) .course-table tbody td {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 0;
    background-image: none;
  }
  :where(.welfare-page) .course-table tbody td::after {
    display: none;
  }
  :where(.welfare-page) .sp-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    width: 86px;
    font-weight: 700;
    font-size: 14px;
  }
  :where(.welfare-page) .sp-label svg {
    width: 18px;
    height: 18px;
    color: var(--orange);
  }
  :where(.welfare-page) .cell-value,
  :where(.welfare-page) .hours {
    padding-left: 0;
  }
  :where(.welfare-page) .cell-pay .cell-value {
    flex: 1;
    min-width: 0;
  }
  :where(.welfare-page) .course-table .num {
    font-size: 40px;
  }
  :where(.welfare-page) .course-table .unit {
    font-size: 16px;
  }
  :where(.welfare-page) .hours-shift {
    font-size: 13px;
  }
  :where(.welfare-page) .hours-time {
    font-size: 15px;
  }
  :where(.welfare-page) .hours-break {
    display: block;
    font-size: 13px;
  }
  :where(.welfare-page) .course-note {
    margin-top: 16px;
    font-size: 13px;
  }

  :where(.welfare-page) .program-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    margin-top: 32px;
  }
  :where(.welfare-page) .program-card img {
    height: 224px;
    aspect-ratio: auto;
    border-radius: 16px;
  }
  :where(.welfare-page) .program-card h3 {
    margin-top: 16px;
    font-size: 22px;
  }
  :where(.welfare-page) .program-card p {
    font-size: 15px;
  }

  :where(.welfare-page) .trip-grid {
    display: flex;
    flex-direction: column;
  }
  .welfare-page .trip-lead {
    order: 1;
    margin-top: 24px;
    font-size: 20px;
    line-height: 35px;
    letter-spacing: 0.02em;
  }
  :where(.welfare-page) .trip .bi {
    order: 0;
  }
  :where(.welfare-page) .trip-hero {
    order: 2;
    width: calc(100% + var(--pad));
    margin-top: 28px;
  }
  :where(.welfare-page) .trip-body {
    order: 3;
    max-width: none;
    margin-top: 28px;
  }
  :where(.welfare-page) .trip-pair {
    order: 4;
  }
  :where(.welfare-page) .trip-blob {
    display: none;
  }
  :where(.welfare-page) .trip-hero img {
    height: 200px;
    aspect-ratio: auto;
    border-radius: 28px 0 0 28px;
  }
  :where(.welfare-page) .trip figcaption {
    gap: 8px;
    margin-top: 10px;
    font-size: 16px;
  }
  :where(.welfare-page) .trip figcaption::before {
    width: 8px;
    height: 8px;
  }
  :where(.welfare-page) .trip-hero figcaption {
    padding-left: 16px;
  }
  :where(.welfare-page) .trip-pair {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
  }
  :where(.welfare-page) .trip-event img,
  :where(.welfare-page) .trip-group img {
    height: 224px;
    aspect-ratio: auto;
    border-radius: 16px;
  }
}

/* 導入・メッセージだけは指定どおり960px以下をSP表示にする。 */
@media (max-width: 767.98px) {
  :where(.welfare-page) .intro {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  :where(.welfare-page) .intro-blob {
    display: none;
  }
  :where(.welfare-page) .intro-photo {
    position: relative;
    top: auto;
    order: -1;
    width: calc(100% - var(--pad));
    height: auto;
    max-height: 420px;
    margin-left: var(--pad);
    aspect-ratio: 355 / 237;
    border-radius: 28px 0 0 28px;
  }
  :where(.welfare-page) .intro-copy {
    padding: 32px 0 48px;
  }
  :where(.welfare-page) .intro-lead {
    font-size: 24px;
    line-height: 38px;
  }
  :where(.welfare-page) .intro-copy .prose {
    margin-top: 16px;
    font-size: 15px;
    line-height: 28px;
  }

  :where(.welfare-page) .intro-pc-only,
  :where(.welfare-page) .message-pc-only {
    display: none;
  }

  :where(.welfare-page) .intro-sp-only,
  :where(.welfare-page) .message-sp-only {
    display: inline;
  }

  :where(.welfare-page) .message {
    height: auto;
    min-height: 645px;
    padding: 64px 0 56px;
  }
  :where(.welfare-page) .message .pale-yellow,
  :where(.welfare-page) .message .pale-orange,
  :where(.welfare-page) .message .ring.orange {
    display: none;
  }
  :where(.welfare-page) .message .ring.yellow {
    top: 6px;
    right: -37px;
    width: 90px;
    height: 90px;
    border-width: 10px;
  }
  :where(.welfare-page) .message .pale-orange.right {
    display: block;
    top: 42px;
    right: 19px;
    width: 56px;
    height: 56px;
  }
  :where(.welfare-page) .message h2 {
    font-size: 22px;
    line-height: 35px;
  }
  :where(.welfare-page) .message h2 .br-sp {
    display: inline;
  }
  :where(.welfare-page) .message-grid {
    display: block;
    margin-top: 28px;
  }
  :where(.welfare-page) .message blockquote p:first-child {
    font-size: 19px;
  }
  :where(.welfare-page) .message blockquote p:last-child {
    margin-top: 8px;
  }
  :where(.welfare-page) .message-body {
    margin-top: 28px;
  }
  :where(.welfare-page) .message blockquote p:last-child,
  :where(.welfare-page) .message-body {
    font-size: 15px;
    line-height: 2.2;
  }
  :where(.welfare-page) .message-body br {
    display: none;
  }
  :where(.welfare-page) .message .message-body br:first-of-type,
  :where(.welfare-page) .message .message-body br.message-sp-only {
    display: inline;
  }
}

@media (min-width: 768px) {
  :where(.welfare-page) .course-table tbody {
    position: relative;
    top: calc(-16 * var(--pc-unit, 1px));
  }

  :where(.welfare-page) .course-note {
    margin-top: calc(16 * var(--pc-unit, 1px));
  }

  :where(.welfare-page) .program-card:nth-child(-n + 3) {
    min-height: calc(513 * var(--pc-unit, 1px));
  }

  :where(.welfare-page) .program-card:nth-child(n + 4) {
    min-height: calc(554 * var(--pc-unit, 1px));
  }

  :where(.welfare-page) .trip figcaption {
    line-height: max(19.09090909px, calc(30 * var(--pc-unit, 1px)));
  }

  :where(.welfare-page) .benefits {
    min-height: calc(1861 * var(--pc-unit, 1px));
    box-sizing: border-box;
  }

  :where(.welfare-page) .course {
    min-height: calc(1787 * var(--pc-unit, 1px));
    box-sizing: border-box;
  }

  :where(.welfare-page) .programs {
    min-height: calc(1711 * var(--pc-unit, 1px));
    box-sizing: border-box;
  }

  :where(.welfare-page) .trip {
    min-height: calc(1676 * var(--pc-unit, 1px));
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {
  .welfare-page {
    --pad: 20px;
  }

  :where(.welfare-page) .intro {
    min-height: 549px;
    box-sizing: border-box;
  }

  :where(.welfare-page) .anchor-nav {
    min-height: 130px;
  }

  :where(.welfare-page) .message {
    min-height: 645px;
    box-sizing: border-box;
    padding-bottom: 80px;
  }

  :where(.welfare-page) .benefits {
    min-height: 1728px;
    box-sizing: border-box;
    padding-bottom: 80px;
  }

  :where(.welfare-page) .course {
    min-height: 1828px;
    box-sizing: border-box;
  }

  :where(.welfare-page) .programs {
    min-height: 2598px;
    box-sizing: border-box;
  }

  :where(.welfare-page) .trip {
    min-height: 1470px;
    box-sizing: border-box;
  }
}

/* 関連ページへのリンク。内容に合わせて区間が伸びるよう固定高さを設けない。 */
:where(.welfare-page) .environment {
  min-height: calc(462 * var(--pc-unit, 1px));
  padding-block: calc(120 * var(--pc-unit, 1px));
  box-sizing: border-box;
  background: var(--yellow);
}

:where(.welfare-page) .environment .bi {
  height: calc(110 * var(--pc-unit, 1px));
}

:where(.welfare-page) .environment .bi.is-yellow .bi-en {
  color: var(--orange);
  opacity: 0.2;
}

:where(.welfare-page) .environment .bi-en {
  left: calc(-10.5 * var(--pc-unit, 1px));
  font-size: calc(80 * var(--pc-unit, 1px));
}

:where(.welfare-page) .environment .bi h2 {
  top: calc(71.5 * var(--pc-unit, 1px));
  font-size: calc(32 * var(--pc-unit, 1px));
}

.welfare-page .environment-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(16 * var(--pc-unit, 1px)) calc(24 * var(--pc-unit, 1px));
  margin-top: calc(42 * var(--pc-unit, 1px));
}

:where(.welfare-page) .environment-link {
  display: grid;
  grid-template-columns: calc(36 * var(--pc-unit, 1px)) minmax(0, 1fr) calc(48 * var(--pc-unit, 1px));
  align-items: center;
  gap: calc(20 * var(--pc-unit, 1px));
  padding: calc(24 * var(--pc-unit, 1px)) calc(24 * var(--pc-unit, 1px)) calc(24 * var(--pc-unit, 1px)) calc(28 * var(--pc-unit, 1px));
  box-sizing: border-box;
  border-radius: calc(20 * var(--pc-unit, 1px));
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: clamp(calc(18 * var(--pc-unit, 1px)), calc(2.2 * var(--vw, 1vw)), calc(24 * var(--pc-unit, 1px)));
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-align: left;
  white-space: nowrap;
}

:where(.welfare-page) .environment-link-symbol {
  display: grid;
  place-items: center;
  width: calc(36 * var(--pc-unit, 1px));
  height: calc(36 * var(--pc-unit, 1px));
  color: var(--orange);
}

:where(.welfare-page) .environment-link-label {
  white-space: nowrap;
}

:where(.welfare-page) .environment-link-icon {
  display: grid;
  place-items: center;
  width: calc(48 * var(--pc-unit, 1px));
  height: calc(48 * var(--pc-unit, 1px));
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  transition: transform 180ms ease;
}

:where(.welfare-page) .environment-link:focus-visible {
  outline: calc(3 * var(--pc-unit, 1px)) solid var(--orange);
  outline-offset: calc(4 * var(--pc-unit, 1px));
}

@media (prefers-reduced-motion: reduce) {
  :where(.welfare-page) .environment-link-icon {
    transition: none;
  }
}

@media (max-width: 767.98px) {
  :where(.welfare-page) .environment {
    min-height: 344px;
    padding-block: 64px;
  }
  :where(.welfare-page) .environment .bi {
    height: 64px;
  }
  :where(.welfare-page) .environment .bi-en {
    left: 0;
    font-size: 44px;
  }
  :where(.welfare-page) .environment .bi h2 {
    top: 38px;
    font-size: 22px;
    letter-spacing: 0.2em;
  }
  .welfare-page .environment-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 24px;
  }
  :where(.welfare-page) .environment-link {
    grid-template-columns: 28px minmax(0, 1fr) 40px;
    gap: 14px;
    padding: 16px 16px 16px 18px;
    border-radius: 16px;
    font-size: 18px;
  }
  :where(.welfare-page) .environment-link-symbol,
  :where(.welfare-page) .environment-link-symbol svg {
    width: 28px;
    height: 28px;
  }
  :where(.welfare-page) .environment-link-icon {
    width: 40px;
    height: 40px;
  }
}

/* 修正15：短いまとまりの必要幅を確保。既存の面の高さは維持する。 */
@media (min-width: 768px) {
  :where(.welfare-page) .pay-figure .num {
    font-size: clamp(calc(80 * var(--pc-unit, 1px)), 48cqw, calc(128 * var(--pc-unit, 1px)));
  }
}

@media (max-width: 767.98px) {
  .welfare-page .course-sp-only {
    display: inline;
  }
  .welfare-page .course-lead-choice {
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  :where(.welfare-page) .intro-sp-only {
    display: none;
  }
  :where(.welfare-page) .intro-lead {
    font-size: 22px;
  }
  :where(.welfare-page) .trip-lead {
    font-size: 18px;
  }
}

/* P06 古根FIX：完成案 1018:1988 のPC差分。SPの既存表示を維持する。 */
.welfare-page .environment-link-pc {
  display: none;
}

/* 導入のSP表示は既存どおり960px以下。共通の弧の960px境界を閉じる。 */
@media (max-width: 767.98px) {
  .welfare-page .course.has-arc-top::before {
    display: none;
  }
}

@media (min-width: 768px) {
  .welfare-page .intro-photo {
    z-index: 2;
  }

  .welfare-page .perk-name {
    line-height: 1.4;
  }

  .welfare-page .perk-note {
    line-height: 1.5;
  }

  .welfare-page .environment-link-original {
    display: none;
  }

  .welfare-page .environment-link-pc {
    display: grid;
  }
}

@media (min-width: 768px) {
  .welfare-page .benefits {
    min-height: calc(1883 * var(--pc-unit, 1px));
  }

  .welfare-page .course {
    min-height: calc(1832 * var(--pc-unit, 1px));
  }
}

/* SP 1025:2292: compact benefit list and left-aligned course values. */
@media (max-width: 767.98px) {
  .welfare-page .pay-figure { min-height: 67px; }
  .welfare-page .course-table tbody td { gap: 12px; }
  .welfare-page .sp-label { width: 86px; }
  .welfare-page .cell-pay .cell-value { flex: none; }
  .welfare-page .course-table .cell-value { justify-content: flex-start; }
  .welfare-page .cell-value .unit { margin-left: 0; }
  .welfare-page .course-table tbody td:not(:last-child)::after { background: repeating-linear-gradient(to right,#efd98c 0 4px,transparent 4px 8px); }
  .welfare-page .trip-hero { margin-top: 28px; }
  .welfare-page .trip-grid { gap: 0; }
  .welfare-page .program-card p { font-weight: 500; }
}

/* 福利厚生カードの区切り線と説明文は、PC・SP共通で非表示。 */
.welfare-page .perk-description { display: none; }
.welfare-page .perk { gap: 0; }
/* 2026-10-15 PC・SP：給与・休日の数字と値を中央に寄せる（白い見出しラベルは左のまま）。 */
.welfare-page .pay-figure {
  justify-content: center;
}
.welfare-page .tile strong {
  text-align: center;
}
.welfare-page .tile-bonus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
.welfare-page .tile-bonus > span {
  justify-self: start;
}
/* 2026-10-15 PC：コース表の「万円 / 月」は折り返さない。右側に収まらない幅だけ、数字を中央から左へずらす。 */
@media (min-width: 768px) {
  .welfare-page .cell-pay .cell-value {
    grid-template-columns: minmax(0, 1fr) max-content minmax(max-content, 1fr);
  }
  .welfare-page .cell-pay .unit {
    white-space: nowrap;
  }
}
/* 2026-10-15 SP：コースカードは、見出し（給与など）の右のエリアの中で値を左右中央に置く。勤務時間は左揃えのまま、かたまりごと中央に置く。 */
@media (max-width: 767.98px) {
  .welfare-page .course-table td > .cell-value,
  .welfare-page .course-table td > .hours {
    flex: 1 1 auto;
    min-width: 0;
  }
  .welfare-page .course-table .cell-pay .cell-value,
  .welfare-page .course-table .cell-days .cell-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
  }
  .welfare-page .course-table .hours {
    display: grid;
    justify-content: center;
    text-align: left;
  }
}
/* 2026-10-15 SP：休日のタイルも賞与と同じく、札と値を1行に並べる（値はタイルの中央）。PCは縦長の枠なので札の下に値のまま。 */
@media (max-width: 767.98px) {
  .welfare-page .tile-holidays {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .welfare-page .tile-holidays > span {
    justify-self: start;
    white-space: nowrap;
  }
  .welfare-page .tile-holidays .tile-note {
    grid-column: 1 / -1;
  }
}

/* PC比率フェーズ2：固定属性・折り返しの補正。 */
@media (min-width: 768px) and (max-width: 1919.98px) {
  /* このページはlower-kit.cssを読まない。共通単位とFVは body.pc-scale-welfare（page-assets.json の pc_scale）で定義する。 */
  body.pc-scale-welfare {
    --pc-unit: min(1px, calc(0.0520833333333333 * var(--vw, 1vw)));
    --arc-height: calc(88 * var(--pc-unit));
  }
  /* 後から読むpage-layout.cssより詳細度を上げ、パンくずなしの帯にも適用する。 */
  body.pc-scale-welfare .l-hero {
    padding: calc(40 * var(--pc-unit)) 0 calc(48 * var(--pc-unit));
  }
  body.pc-scale-welfare .l-hero.l-hero--no-crumbs {
    padding-top: calc(48 * var(--pc-unit));
  }
  body.pc-scale-welfare .l-hero .l-wrap {
    width: min(calc(100% - 80 * var(--pc-unit)), calc(1400 * var(--pc-unit)));
  }
  body.pc-scale-welfare .l-hero-en {
    gap: calc(12 * var(--pc-unit));
    margin-top: calc(22 * var(--pc-unit));
    font-size: calc(32 * var(--pc-unit));
  }
  body.pc-scale-welfare .l-hero--no-crumbs .l-hero-en {
    margin-top: 0;
  }
  body.pc-scale-welfare .l-hero-en img {
    width: calc(41 * var(--pc-unit));
  }
  body.pc-scale-welfare .l-hero h1 {
    margin-top: calc(14 * var(--pc-unit));
    font-size: calc(64 * var(--pc-unit));
  }
  /* 本文の14px下限で増える行は、区間の高さを伸ばして収める。 */
  .welfare-page .intro {
    height: auto;
    min-height: calc(538 * var(--pc-unit));
  }
  .welfare-page .message {
    height: auto;
    min-height: calc(821 * var(--pc-unit));
  }
  /* HTML属性だけで寸法を持つ装飾も、周囲のカードと同じ比率にする。 */
  .welfare-page .pay-panel-deco svg {
    width: calc(300 * var(--pc-unit));
    height: calc(300 * var(--pc-unit));
  }
  .welfare-page .pay-panel-holidays .pay-panel-deco svg {
    width: calc(280 * var(--pc-unit));
    height: calc(280 * var(--pc-unit));
  }
  .welfare-page .maternity-deco svg {
    width: calc(340 * var(--pc-unit));
    height: calc(340 * var(--pc-unit));
  }
  /* 780pxの本文列も比例するため、600pxの固定クエリによる縦積みをPCだけ戻す。 */
  .welfare-page .maternity-flow {
    grid-template-columns: calc(88 * var(--pc-unit)) minmax(0, 1fr);
    gap: calc(130 * var(--pc-unit));
  }
  .welfare-page .maternity-flow-leave {
    flex-direction: column;
    justify-content: normal;
    gap: calc(8 * var(--pc-unit));
  }
  .welfare-page .maternity-flow-arrow {
    top: 50%;
    left: calc(-113 * var(--pc-unit));
    width: calc(90 * var(--pc-unit));
    transform: translateY(-50%);
  }
  .welfare-page .environment-link-symbol svg {
    width: calc(36 * var(--pc-unit));
    height: calc(36 * var(--pc-unit));
  }
  /* global.cssの40px上限とホバー時の複製も比例させる。 */
  .welfare-page :is(.environment-link-icon, .anchor-icon) > svg.hinode-arrow,
  .welfare-page :is(.environment-link-icon, .anchor-icon):has(> svg.hinode-arrow--right)::after {
    max-width: calc(40 * var(--pc-unit));
    max-height: calc(40 * var(--pc-unit));
  }
}

/* 2026-10-23 住宅手当は家賃の30%・上限2万円。月給と住宅手当に「最大」、住宅手当タイルに「家賃の30%」を添える。 */
.welfare-page .pay-figure .pay-max {
  margin-right: calc(8 * var(--pc-unit, 1px));
}
.welfare-page .tile strong .tile-max {
  margin-right: 0.15em;
  font-size: 0.64em;
  letter-spacing: 0;
}
.welfare-page .tile-note {
  color: var(--ink);
  font-weight: 500;
  font-size: max(12px, calc(14 * var(--pc-unit, 1px)));
  line-height: 1.4;
  text-align: center;
}
@media (max-width: 767.98px) {
  .welfare-page .pay-figure .pay-max { margin-right: 4px; }
  .welfare-page .tile-note { font-size: 11px; }
}
@media (max-width: 359.98px) {
  .welfare-page .pay-money .tile { padding-inline: 8px; }
  .welfare-page .tile strong .tile-max { margin-right: 0.05em; font-size: 0.6em; }
}

/* 2026-10-26 最終チェック：1920px以上もFVの見出しを本文の1400px列にそろえる。 */
@media (min-width: 1920px) {
  body.pc-scale-welfare .l-hero .l-wrap {
    width: min(calc(100% - 80px), 1400px);
  }
}

/* 2026-10-26 最終チェック：SPは完成案どおり、黄色の帯を写真の上部の裏まで伸ばし、導入の上端に弧を出す。 */
@media (max-width: 767.98px) {
  body.pc-scale-welfare .l-hero.l-hero--no-crumbs {
    padding-bottom: 77px;
  }
  .welfare-page .intro-photo {
    margin-top: -34px;
    z-index: 2;
  }
}

/* 2026-10-27 SP：本文の途中の改行と文節の折り返し止めで行の右が大きく空くので、SPでは幅いっぱいまで流す。 */
@media (max-width: 767.98px) {
  .welfare-page .intro .prose br.intro-sp-only,
  .welfare-page .message-body br.message-sp-only,
  .welfare-page .course-lead br.course-sp-only {
    display: none;
  }
  .welfare-page :is(.intro .prose, .message-body, .course-note, .maternity-copy .prose, .program-card p) .nb {
    display: inline;
    white-space: normal;
  }
  .welfare-page .course-lead-choice {
    white-space: normal;
  }
}
