/*
 * 下層の共通部品（福利厚生 /welfare/ の完成案から抜き出したもの）。
 * ページの本文を <div class="lk"> で包み、.lk- で始まる部品（見出し・本文・パネルなど）を組み合わせる。
 * 値の出典：Figma 福利厚生 PC 1018:1988 ／ SP 1025:2292 ／ 部品 1015:1982、ヒノデメディカルの魅力 511:4104。
 * 福利厚生ページ自体は welfare.css の同等の値を使っている（ここを変えても福利厚生は変わらない）。
 */

.lk {
  --pad: clamp(calc(64 * var(--pc-unit, 1px)), calc(13.541667 * var(--vw, 1vw)), calc(260 * var(--pc-unit, 1px)));
  --ink: #2b2a28;
  --muted: #5f5a50;
  --band: #fff8df;
  --pale-yellow: #ffeaa1;
  --pale-orange: #ffdcc6;
  color: #000;
}
.lk a {
  text-decoration: none;
}

/* 本文幅：PC 1920 で 1400px、左右 260px */
.lk-inset {
  width: min(calc(1400 * var(--pc-unit, 1px)), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

/* 本文：Medium 20／行間44（SP 15／28） */
.lk-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;
  line-break: strict;
}
.lk-prose > * + * {
  margin-top: 1em;
}

/* リード：Bold 36／行間60（SP 22／36） */
.lk-lead {
  font-weight: 700;
  font-size: calc(36 * var(--pc-unit, 1px));
  line-height: calc(60 * var(--pc-unit, 1px));
  letter-spacing: 0.05em;
  line-break: strict;
}
.lk-lead em {
  color: var(--orange);
  font-style: normal;
}

/* 小見出し：Bold 32（SP 20） */
.lk-subhead {
  font-weight: 700;
  font-size: calc(32 * var(--pc-unit, 1px));
  line-height: 1.5;
  letter-spacing: 0.05em;
}

/* 主要区間。地の色は全幅（DS 03 の 2026-10-08 改訂） */
.lk-section {
  position: relative;
  padding: calc(120 * var(--pc-unit, 1px)) 0 calc(160 * var(--pc-unit, 1px));
}
.lk-section.is-white {
  background: #fff;
}
.lk-section.is-cream {
  background: var(--band);
}
.lk-section.is-yellow {
  background: var(--yellow);
}
.lk-section.is-orange {
  background: var(--orange);
  color: #fff;
}
.lk-section.is-orange .lk-prose {
  color: #fff;
}

/* 英日見出し：日本語 Bold 64／字間25%、英字 Black 160 を背面に */
.lk-heading {
  position: relative;
  height: calc(220 * var(--pc-unit, 1px));
}
.lk-heading-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;
}
.lk-heading h2 {
  position: absolute;
  top: calc(143 * var(--pc-unit, 1px));
  left: 0;
  margin: 0;
  font-weight: 700;
  font-size: calc(64 * var(--pc-unit, 1px));
  line-height: normal;
  letter-spacing: 0.25em;
  white-space: nowrap;
}
.lk-heading.is-yellow .lk-heading-en,
.lk-heading.is-orange .lk-heading-en {
  color: #fff;
}
.lk-heading.is-yellow .lk-heading-en {
  opacity: 0.4;
}
.lk-heading.is-orange .lk-heading-en {
  opacity: 0.3;
}
.lk-heading.is-cream .lk-heading-en,
.lk-heading.is-white .lk-heading-en {
  color: var(--orange);
  opacity: 0.2;
}
.lk-heading.is-orange h2 {
  color: #fff;
}
.lk-heading:not(.is-orange) h2 {
  color: #000;
}
.lk-heading.is-sm {
  height: calc(110 * var(--pc-unit, 1px));
}
.lk-heading.is-sm .lk-heading-en {
  left: calc(-10.5 * var(--pc-unit, 1px));
  font-size: calc(80 * var(--pc-unit, 1px));
}
.lk-heading.is-sm h2 {
  top: calc(71.5 * var(--pc-unit, 1px));
  font-size: calc(32 * var(--pc-unit, 1px));
}

/* ページ内目次 */
.lk-anchor-nav {
  background: #fff;
  padding-top: calc(72 * var(--pc-unit, 1px));
}
.lk-anchor-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(18 * var(--pc-unit, 1px));
}
.lk-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;
}
.lk-anchor:focus-visible {
  outline: calc(2 * var(--pc-unit, 1px)) solid var(--orange);
  outline-offset: calc(3 * var(--pc-unit, 1px));
}
.lk-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);
}
.lk-anchor-icon svg {
  width: calc(22 * var(--pc-unit, 1px));
  height: calc(22 * var(--pc-unit, 1px));
}
/* PCは文を分けても幅が変わらないように、通常の文字の並びに戻す。 */
.lk-anchor .nb {
  display: inline;
}

/* 白丸アイコン（PC 円80・アイコン40、SP 円56・アイコン28） */
.lk-icon-circle {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(80 * var(--pc-unit, 1px));
  height: calc(80 * var(--pc-unit, 1px));
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
}
.lk-icon-circle svg {
  width: calc(40 * var(--pc-unit, 1px));
  height: calc(40 * var(--pc-unit, 1px));
}

/* 面をまたぐ写真：画面右端まで、左側だけ角丸50。背後に淡い黄の丸（DS 03 の02） */
.lk-bleed-photo {
  position: relative;
  margin: 0 calc(50% - calc(50 * var(--vw, 1vw))) 0 0;
}
.lk-bleed-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(50 * var(--pc-unit, 1px)) 0 0 calc(50 * var(--pc-unit, 1px));
  object-fit: cover;
}
.lk-bleed-photo.has-blob::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -12%;
  bottom: -18%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pale-yellow);
}

/* 白い面（区間の中の内容のまとまり） */
.lk-panel {
  border-radius: calc(40 * var(--pc-unit, 1px));
  background: #fff;
  padding: calc(56 * var(--pc-unit, 1px)) calc(64 * var(--pc-unit, 1px));
}
.lk-section.is-white .lk-panel {
  background: var(--band);
}

/* あわせて見る */
.lk-related {
  padding-block: calc(120 * var(--pc-unit, 1px));
  background: var(--yellow);
}
.lk-related.is-cream {
  background: var(--band);
}
.lk-related.is-yellow .lk-heading-en {
  color: var(--orange);
  opacity: 0.2;
}
.lk-related-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: calc(42 * var(--pc-unit, 1px)) 0 0;
  padding: 0;
  list-style: none;
}
.lk-related-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));
  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;
  white-space: nowrap;
}
.lk-related-symbol {
  display: grid;
  place-items: center;
  width: calc(36 * var(--pc-unit, 1px));
  height: calc(36 * var(--pc-unit, 1px));
  color: var(--orange);
}
.lk-related-arrow {
  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;
}
.lk-related-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) {
  .lk-related-arrow {
    transition: none;
  }
}

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

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

@media (max-width: 767.98px) {
  .lk-prose {
    font-size: 15px;
    line-height: 28px;
  }
  .lk-lead {
    font-size: 22px;
    line-height: 36px;
  }
  .lk-subhead {
    font-size: 20px;
  }
  .lk-section {
    padding: 64px 0 72px;
  }
  .lk-heading {
    height: 88px;
  }
  .lk-heading-en {
    left: -8px;
    font-size: 60px;
  }
  .lk-heading h2 {
    top: 52px;
    font-size: 30px;
    letter-spacing: 0.2em;
  }
  .lk-heading.is-sm {
    height: 64px;
  }
  .lk-heading.is-sm .lk-heading-en {
    left: 0;
    font-size: 44px;
  }
  .lk-heading.is-sm h2 {
    top: 38px;
    font-size: 22px;
    letter-spacing: 0.2em;
  }
  .lk-anchor-nav {
    padding: 32px var(--pad) 0;
  }
  .lk-anchor-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 10px;
  }
  .lk-anchor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    align-items: center;
    column-gap: 8px;
    min-width: 0;
    min-height: 44px;
    height: 100%;
    padding: 8px 6px 8px 16px;
    text-align: left;
    font-size: 14px;
    line-height: 21px;
    white-space: normal;
    word-break: keep-all;
    line-break: strict;
  }
  .lk-anchor > span:not(.lk-anchor-icon) {
    min-width: 0;
  }
  .lk-anchor .nb {
    display: inline-block;
    white-space: nowrap;
    vertical-align: top;
  }
  /* 2つ目の語が矢印に近づく幅だけ、字間を詰めて矢印の左に収める。文字サイズは変えない。 */
  .lk-anchor .nb + .nb {
    letter-spacing: -0.04em;
  }
  .lk-anchor-icon {
    justify-self: end;
    align-self: center;
    width: 28px;
    height: 28px;
  }
  .lk-anchor-icon svg {
    width: 18px;
    height: 18px;
  }
  .lk-icon-circle {
    width: 56px;
    height: 56px;
  }
  .lk-icon-circle svg {
    width: 28px;
    height: 28px;
  }
  .lk-bleed-photo img {
    border-radius: 24px 0 0 24px;
  }
  .lk-panel {
    border-radius: 24px;
    padding: 28px 20px;
  }
  .lk-related {
    padding-block: 64px;
  }
  .lk-related-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 24px;
  }
  .lk-related-link {
    grid-template-columns: 28px minmax(0, 1fr) 40px;
    gap: 14px;
    padding: 16px 16px 16px 18px;
    border-radius: 16px;
    font-size: 18px;
  }
  .lk-related-symbol,
  .lk-related-symbol svg {
    width: 28px;
    height: 28px;
  }
  .lk-related-arrow {
    width: 40px;
    height: 40px;
  }
}
/* 320幅では「フォームから」が1行に収まるよう、左右の余白と矢印との間だけ詰める。 */
@media (max-width: 359px) {
  .lk-anchor {
    padding-left: 10px;
    padding-right: 4px;
    column-gap: 4px;
  }
}
/* 372px未満では「ヒノデメディカル」が矢印に重なる。2つ目の語の字間だけさらに詰める。 */
@media (max-width: 371.98px) {
  .lk-anchor .nb + .nb {
    letter-spacing: -0.2em;
  }
}

/* PC中間幅の共通単位。対象は page-assets.json の pc_scale に unit があるページだけ。福利厚生は lower-kit を読まず welfare.css 側で同じ単位を持つ。 */
@media (min-width: 768px) and (max-width: 1919.98px) {
  body.pc-scale-unit {
    --pc-unit: min(1px, calc(0.0520833333333333 * var(--vw, 1vw)));
    --arc-height: calc(88 * var(--pc-unit));
  }
  /* 写真のない共通FV（hero-a）。ヘッダーは固定寸法。 */
  :where(body.pc-scale-hero-a) .l-hero {
    padding: calc(48 * var(--pc-unit)) 0;
  }
  :where(body.pc-scale-hero-a) .l-hero-en {
    gap: calc(12 * var(--pc-unit));
    font-size: calc(32 * var(--pc-unit));
  }
  :where(body.pc-scale-hero-a) .l-hero-en img {
    width: calc(41 * var(--pc-unit));
  }
  :where(body.pc-scale-hero-a) .l-hero h1 {
    margin-top: calc(14 * var(--pc-unit));
    font-size: calc(64 * var(--pc-unit));
  }
  :where(body.pc-scale-hero-a) .l-hero .l-wrap {
    width: calc(1200 * var(--pc-unit));
  }
}

/* フェーズ2のFV補正。共通単位は上の unit。TOP・SP・未指定ページには適用しない。 */
@media (min-width: 768px) and (max-width: 1919.98px) {
  :where(body.pc-scale-hero-b) .l-hero {
    padding: calc(40 * var(--pc-unit)) 0 calc(48 * var(--pc-unit));
  }
  :where(body.pc-scale-hero-b) .l-hero.l-hero--no-crumbs {
    padding-top: calc(48 * var(--pc-unit));
  }
  :where(body.pc-scale-hero-b) .l-hero .l-wrap {
    width: min(calc(100% - 80 * var(--pc-unit)), calc(1200 * var(--pc-unit)));
  }
  :where(body.pc-scale-hero-b) .l-hero-en {
    gap: calc(12 * var(--pc-unit));
    margin-top: calc(22 * var(--pc-unit));
    font-size: calc(32 * var(--pc-unit));
  }
  :where(body.pc-scale-hero-plain) .l-hero--no-crumbs .l-hero-en {
    margin-top: 0;
  }
  :where(body.pc-scale-hero-b) .l-hero-en img {
    width: calc(41 * var(--pc-unit));
  }
  :where(body.pc-scale-hero-b) .l-hero h1 {
    margin-top: calc(14 * var(--pc-unit));
    font-size: calc(64 * var(--pc-unit));
  }
  :where(body.pc-scale-crumbs) .l-crumbs ol {
    gap: 0 calc(10 * var(--pc-unit));
  }
  :where(body.pc-scale-crumbs) .l-crumbs li + li::before {
    margin-right: calc(10 * var(--pc-unit));
  }
}

/* PC比率フェーズ2：固定属性・折り返しの補正。 */
@media (min-width: 768px) and (max-width: 1919.98px) {
  :where(body.pc-scale-arrows) main .lk-related-symbol svg {
    width: calc(36 * var(--pc-unit));
    height: calc(36 * var(--pc-unit));
  }
  /* global.cssの40px上限も元の矢印とホバー時の複製を同じ比率にする。 */
  :where(body.pc-scale-arrows) main :is(.lk-related-arrow, .photo-instagram-arrow, .environment-link-icon, .hs-more > span, .hs-series-button > span, .hs-button-arrow, .photo-more > span, .voice-arrow, .lk-anchor-icon, .anchor-icon, .privacy-toc-arrow) > svg.hinode-arrow,
  :where(body.pc-scale-arrows) main :is(.lk-related-arrow, .photo-instagram-arrow, .environment-link-icon, .hs-more > span, .hs-series-button > span, .hs-button-arrow, .photo-more > span, .voice-arrow, .lk-anchor-icon, .anchor-icon, .privacy-toc-arrow):has(> svg.hinode-arrow--right)::after {
    max-width: calc(40 * var(--pc-unit));
    max-height: calc(40 * var(--pc-unit));
  }
}
