/* ========================================
   Foundation — 採用情報トップ
======================================== */
:root {
  --works-color-orange: #e96600;
  --works-color-orange-sub: #f08300;
  --works-color-cream: #f2f0e9;
  --works-color-brown: #5a3a3a;
  --works-color-text: #333333;
  --works-color-white: #ffffff;
  --works-color-border: #d9d9d9;
  --works-color-stroke: #c4a574;
  --works-font: "Yu Gothic Pr6N", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --works-inner: 1200px;
  --works-gutter: 20px;
  --works-site-header-top: 46px;
}
/* 視覚非表示（読み上げ用）。CMS/works_index 側に無い場合があるため works で担保 */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.p-works .c-colorBalls[aria-hidden="true"],
.p-works .p-message__scroll[aria-hidden="true"],
.p-hero .scroll-cue__ring[aria-hidden="true"] {
  display: block;
}
.p-works {
  background-color: var(--works-color-cream);
  color: var(--works-color-text);
  font-family: var(--works-font);
  overflow: hidden;
}

.p-works *,
.p-works *::before,
.p-works *::after {
  box-sizing: border-box;
}

.p-works img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
}

.p-works a {
  color: inherit;
  text-decoration: none;
}

.p-works__inner {
  width: 100%;
  max-width: var(--works-inner);
  margin-inline: auto;
  padding-inline: var(--works-gutter);
}

.Main:has(.p-works) {
  background-color: var(--works-color-cream);
  --works-main-pad: 118px;
  padding-top: var(--works-main-pad);
}

@media (max-width: 767px) {
  .Main:has(.p-works .p-hero) {
    --works-main-pad: 10px;
    padding-top: var(--works-main-pad);
  }
}

.Main__inner:has(.p-works) {
  padding: 0;
  max-width: none;
}

.Main:has(.p-works) .Main__body > .Main__content {
  /* ガイドライン準拠ラップ: フルブリード制作物のため app.css の幅・余白を打ち消し */
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

.Main:has(.p-works) .inquiry-v2,
.Main:has(.p-works) .Main__assist {
  background-color: var(--works-color-white);
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}

/* inquiry は従来 Main__content 相当の内側余白のみ付与（白背景フルブリードは維持） */
.Main:has(.p-works) .Main__body > .Main__content > .inquiry-v2 {
  padding: 3.5rem 30px 13.2rem;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .p-works__inner.cmn-banner-link {
    padding-inline: 0;
  }

  .Main:has(.p-works) .Main__body > .Main__content > .inquiry-v2 {
    padding: 2.5em 15px 8rem;
  }
}

#other-recruit {
  scroll-margin-top: 100px;
}

/* ========================================
   Project — Works sub header
======================================== */
@media (min-width: 768px) {
  :root {
    --works-site-header-top: 91px;
  }
}

.p-worksHeader {
  /* brand はスクロールで流すため absolute（fixed にしない） */
  position: absolute;
  top: var(--works-site-header-top);
  left: 0;
  right: 0;
  z-index: 999;
  pointer-events: none;
  font-family: var(--works-font);
}

.p-worksHeader__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-inline: auto;
  padding: 8px 12px 0;
  pointer-events: auto;
}

.p-worksHeader__brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 4px;
}

.p-worksHeader__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--works-color-orange);
}

.p-worksHeader__sub {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--works-color-orange);
}

.p-worksHeader__actions {
  position: fixed;
  top: calc(var(--works-site-header-top) + 8px);
  right: 12px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  pointer-events: auto;
}

.p-worksHeader__entryWrap {
  position: relative;
}

.p-worksHeader__entryBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: none;
  border-radius: 20px;
  background: var(--works-color-orange);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  color: var(--works-color-white);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.p-worksHeader__entryBtn:hover,
.p-worksHeader__entryBtn[aria-expanded="true"] {
  background: var(--works-color-white);
  color: var(--works-color-orange);
}

.p-worksHeader__menuBtn {
  display: block;
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: none;
  background: var(--works-color-brown);
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.p-worksHeader__menuIcon {
  display: none;
}

.p-worksHeader__menuBtn::before,
.p-worksHeader__menuBtn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
}

/* 閉じているとき: 中央線 + box-shadow で上下2本（SVG: y=20/27/34, 間隔7px） */
.p-worksHeader__menuBtn::before {
  width: 20px;
  height: 2px;
  margin: -1px 0 0 -10px;
  border-radius: 1px;
  background: var(--works-color-white);
  box-shadow: 0 -7px 0 var(--works-color-white), 0 7px 0 var(--works-color-white);
}

.p-worksHeader__menuBtn::after {
  width: 24px;
  height: 3.75px;
  margin: -1.875px 0 0 -12px;
  border-radius: 999px;
  background: var(--works-color-brown);
  opacity: 0;
}

.p-worksHeader__menuBtn[aria-expanded="true"] {
  background: var(--works-color-white);
}

.p-worksHeader__menuBtn[aria-expanded="true"]::before {
  width: 24px;
  height: 3.75px;
  margin: -1.875px 0 0 -12px;
  border-radius: 999px;
  background: var(--works-color-brown);
  box-shadow: none;
  transform: rotate(45deg);
}

.p-worksHeader__menuBtn[aria-expanded="true"]::after {
  opacity: 1;
  transform: rotate(-45deg);
}

@media (hover: hover) {
  .p-worksHeader__menuBtn:hover:not([aria-expanded="true"])::before {
    background: var(--works-color-orange);
    box-shadow: 0 -7px 0 var(--works-color-orange), 0 7px 0 var(--works-color-orange);
  }

  .p-worksHeader__menuBtn[aria-expanded="true"]:hover {
    background: var(--works-color-brown);
  }

  .p-worksHeader__menuBtn[aria-expanded="true"]:hover::before,
  .p-worksHeader__menuBtn[aria-expanded="true"]:hover::after {
    background: var(--works-color-white);
  }
}

.p-worksEntry {
  position: absolute;
  top: calc(100% + 8px);
  /* 画面右端に隙間なく揃える（actions gap + menuBtn + header padding） */
  right: calc(-10px - 56px - 12px);
  width: 256px;
  overflow: hidden;
  background: var(--works-color-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.p-worksEntry[hidden] {
  display: none;
}

.p-worksEntry__block {
  min-height: 120px;
  padding: 16px 24px 20px;
  color: var(--works-color-white);
}

.p-worksEntry__block--27 {
  background: var(--works-color-orange);
}

.p-worksEntry__block--28 {
  background: var(--works-color-orange-sub);
}

.p-worksEntry__year {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.p-worksEntry__links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-worksEntry__links li{
  padding-left: 19px;
}
.p-worksEntry__links li .p-worksEntry__link{
  color: var(--works-color-white);
  text-decoration: none;
}

.p-worksEntry__link {
  display: block;
  padding: 4px 0;
  color: var(--works-color-white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.p-worksEntry__link.c-extIcon {
  display: inline-grid;
  grid-template-columns: 6.2em 22px;
  column-gap: 4px;
  align-items: center;
  width: max-content;
}

.p-worksEntry__link.c-extIcon::after {
  margin-left: 0;
}

.p-worksEntry__links li .p-worksEntry__link:hover {
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.p-worksEntry__career {
  display: flex;
  align-items: center;
  min-height: 47px;
  padding: 12px 24px;
  background: var(--works-color-white);
  color: var(--works-color-brown);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.p-worksEntry__career:hover {
  opacity: 0.7;
}

.p-worksMenu {
  position: fixed;
  top: var(--works-site-header-top);
  left: 0;
  right: 0;
  /* .p-worksHeader(999) より下に置き、閉じるボタンがメニューに隠れないようにする */
  z-index: 998;
  max-height: calc(100vh - var(--works-site-header-top));
  overflow-y: auto;
  background: var(--works-color-cream);
  font-family: var(--works-font);
  -webkit-overflow-scrolling: touch;
}

.p-worksMenu[hidden] {
  display: none;
}

.p-worksMenu__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1280px;
  margin-inline: auto;
  padding: 72px 20px 40px;
}

.p-worksMenu__col--main,
.p-worksMenu__col--side {
  min-width: 0;
}

.p-worksMenu__topLinks {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.p-worksMenu__topLinks li + li {
  margin-top: 16px;
}

.p-worksMenu__topLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--works-color-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.p-worksMenu__topLink img {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.p-worksMenu__topLink:hover {
  opacity: 0.7;
}

.p-worksMenu__section + .p-worksMenu__section {
  margin-top: 32px;
}

.p-worksMenu__sectionEn {
  margin: 0 0 8px;
  color: var(--works-color-orange);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
}

.p-worksMenu__sectionTitle {
  display: block;
  margin: 0 0 16px;
  color: var(--works-color-brown);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.p-worksMenu__sectionTitle img {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-left: 8px;
  vertical-align: middle;
}

.p-worksMenu__subLinks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-worksMenu__subLinks li + li {
  margin-top: 12px;
}

.p-worksMenu__subLink {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--works-color-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.p-worksMenu__subLink img {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.p-worksMenu__subLink:hover {
  opacity: 0.7;
}

.p-worksMenu__subRule {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--works-color-text);
  flex-shrink: 0;
}

.p-worksMenu__subLabel {
  min-width: 0;
  font-weight: 400;
}

.p-worksMenu__subLabel strong {
  font-weight: 700;
}

.p-worksMenu__subLabel span {
  font-size: 12px;
  font-weight: 500;
}

.p-worksMenu__specialLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--works-color-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.p-worksMenu__specialLink img {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.p-worksMenu__specialLink:hover {
  opacity: 0.7;
}

.p-worksMenu__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.p-worksMenu__card {
  padding: 16px 20px 20px;
  border-radius: 10px;
  color: var(--works-color-white);
}

.p-worksMenu__card--27 {
  background: var(--works-color-orange);
}

.p-worksMenu__card--28 {
  background: var(--works-color-orange-sub);
}

.p-worksMenu__cardYear {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.p-worksMenu__cardBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 240px;
  height: 32px;
  margin-top: 8px;
  border-radius: 20px;
  background: var(--works-color-white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

a.p-worksMenu__cardBtn--27:link,
a.p-worksMenu__cardBtn--27:visited,
a.p-worksMenu__cardBtn--27:hover,
a.p-worksMenu__cardBtn--27:active {
  color: var(--works-color-orange);
}

a.p-worksMenu__cardBtn--28:link,
a.p-worksMenu__cardBtn--28:visited,
a.p-worksMenu__cardBtn--28:hover,
a.p-worksMenu__cardBtn--28:active {
  color: var(--works-color-orange-sub);
}

.p-worksMenu__cardBtn:hover {
  opacity: 0.85;
}

.p-worksMenu__otherLinks {
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--works-color-border);
  list-style: none;
}

.p-worksMenu__otherLinks li + li {
  margin-top: 16px;
}

.p-worksMenu__otherLink {
  display: block;
  color: var(--works-color-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.p-worksMenu__otherLink:hover {
  opacity: 0.7;
}

#works-menu-panel a:link,
#works-menu-panel a:visited,
#works-menu-panel a:active {
  text-decoration: none;
}

#works-menu-panel a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

#works-menu-panel a.p-worksMenu__cardBtn:link,
#works-menu-panel a.p-worksMenu__cardBtn:visited,
#works-menu-panel a.p-worksMenu__cardBtn:hover,
#works-menu-panel a.p-worksMenu__cardBtn:active {
  text-decoration: none;
}

body.is-worksMenuOpen {
  overflow: hidden;
}

/* .p-worksHeader はサイトヘッダー(z-index:1000)より下(999)。
   スクロールで重なった .p-worksHeader__inner はロゴの下に隠れ、
   重なっていないときはメニュー(998)より前面に残る。 */

.p-worksHeader__menuBrand {
  display: none;
}

/* メニューを開いているあいだは、ページ側の左上表記を隠し、専用表記を出す */
body.is-worksMenuOpen .p-worksHeader__brand,
body.is-worksMenuOpen .p-storyDetail__heroHead {
  visibility: hidden;
}

body.is-worksMenuOpen .p-worksHeader__menuBrand {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: calc(var(--works-site-header-top) + 12px);
  left: 12px;
  z-index: 999;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  .p-worksHeader__inner {
    align-items: center;
    padding: 13px 25px 0;
  }

  .p-worksHeader__brand {
    flex-direction: row;
    align-items: baseline;
    gap: 0;
    padding-top: 0;
  }

  body.is-worksMenuOpen .p-worksHeader__menuBrand {
    flex-direction: row;
    align-items: baseline;
    top: calc(var(--works-site-header-top) + 13px);
    left: 25px;
  }

  .p-worksHeader__title {
    font-size: 18px;
    line-height: 1.5;
  }

  .p-worksHeader__sub {
    margin-left: 8px;
    font-size: 12px;
    line-height: 1.3;
  }

  .p-worksHeader__actions {
    top: calc(var(--works-site-header-top) + 13px);
    right: 25px;
    gap: 16px;
  }

  .p-worksHeader__entryBtn {
    font-size: 12px;
  }

  .p-worksEntry {
    top: calc(100% + 12px);
    right: calc(-16px - 56px - 40px);
  }

  .p-worksMenu {
    min-height: calc(100vh - var(--works-site-header-top));
    max-height: calc(100vh - var(--works-site-header-top));
    overflow-y: auto;
  }

  .p-worksMenu__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
    padding: 88px 40px 56px;
  }

  .p-worksMenu__col--main {
    flex: 1;
    max-width: 560px;
  }

  .p-worksMenu__col--side {
    flex: 1;
    max-width: 560px;
  }

  .p-worksMenu__cards {
    flex-direction: row;
    gap: 32px;
  }

  .p-worksMenu__card {
    flex: 1;
    min-height: 130px;
  }

  .p-worksMenu__otherLinks {
    padding-top: 32px;
  }
}

/* スマホ共通グローバルメニュー（Figma SP 390px） */
@media (max-width: 767px) {
  .p-worksMenu__inner {
    gap: 24px;
  }

  .p-worksMenu__col--main .p-worksMenu__topLinks li {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--works-color-border);
  }

  .p-worksMenu__col--main .p-worksMenu__topLinks li + li {
    margin-top: 24px;
  }

  .p-worksMenu__col--main .p-worksMenu__section {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--works-color-border);
  }

  .p-worksMenu__col--main .p-worksMenu__section + .p-worksMenu__section {
    margin-top: 24px;
  }

  .p-worksMenu__col--side .p-worksMenu__topLinks li:first-child {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--works-color-border);
  }

  .p-worksMenu__col--side .p-worksMenu__topLinks li + li {
    margin-top: 24px;
  }

  .p-worksMenu__otherLinks {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--works-color-border);
  }

  .p-worksMenu__cards {
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
  }

  .p-worksMenu__card {
    flex: 1;
    min-width: 0;
    padding: 16px 10px 12px;
  }

  .p-worksMenu__cardYear {
    margin: 0 0 4px;
    font-size: clamp(13px, 4.2vw, 15px);
    line-height: 1.2;
    white-space: nowrap;
  }

  .p-worksMenu__cardBtn {
    width: 100%;
    max-width: none;
    margin-top: 8px;
    font-size: 15px;
  }

  /* 挑戦ストーリー 01〜03。390px では 15px・左罫 40px。それより狭い幅は下のクエリで詰める */
  .p-worksMenu__col--main .p-worksMenu__section:first-of-type .p-worksMenu__subLink {
    gap: 4px;
    font-size: 15px;
    line-height: 18px;
    white-space: nowrap;
  }
}

@media (max-width: 389px) {
  .p-worksMenu__col--main .p-worksMenu__section:first-of-type .p-worksMenu__subLink {
    /* 罫線 28px・余白・矢印を除いた幅に合わせて 15px から縮める */
    font-size: clamp(12px, calc((100vw - 91px) / 18.2), 15px);
  }

  .p-worksMenu__col--main .p-worksMenu__section:first-of-type .p-worksMenu__subRule {
    width: 28px;
  }
}

/* Header / Menu は .p-works 外にあるため、ユーティリティはページ全体に適用 */
.u-pcOnly {
  display: none;
}

@media (min-width: 768px) {
  .u-pcOnly {
    display: block;
  }

  .u-spOnly {
    display: none;
  }

  .p-works__inner {
    padding-inline: 0;
  }
}

/* ========================================
   Component — MORE
======================================== */
.c-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  color: var(--works-color-brown);
  transition: color 0.3s ease;
}

.c-more__icon {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background-color: var(--works-color-brown);
  border-radius: 50%;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.c-more__icon img {
  width: 100%;
  height: 100%;
}

.c-more:hover {
  color: var(--works-color-orange);
}

.c-more:hover .c-more__icon {
  background-color: var(--works-color-orange);
}

.c-more--onDark {
  color: var(--works-color-brown);
}

.c-more--center {
  justify-content: center;
}

.c-more--white .c-more__label {
  color: var(--works-color-brown);
}

.c-navBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--works-color-brown);
  border-radius: 50%;
  background: var(--works-color-white);
  cursor: pointer;
  padding: 0;
}

.c-navBtn img {
  width: 14px;
  height: 14px;
}

.c-navBtn:hover {
  background: var(--works-color-cream);
}

.c-navBtn:disabled {
  opacity: 0.4;
  cursor: default;
}

.c-enHeading {
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px var(--works-color-stroke);
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.c-enHeading--light {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
}

/* ========================================
   Project — TOP FV後にヘッダーを上から表示
   対象: サイトヘッダー + 採用ヘッダー表記 + エントリー
   ハンバーガーはイントロ開始時から定位置に表示する
======================================== */
html.is-worksIntro:not(.is-worksChromeShown) #header,
html.is-worksIntro:not(.is-worksChromeShown) .p-worksHeader__brand,
html.is-worksIntro:not(.is-worksChromeShown) .p-worksHeader__entryWrap,
html.is-worksIntro:not(.is-worksChromeShown) .p-worksHeader__menuBrand,
html.is-worksIntro:not(.is-worksChromeShown) .p-worksMenu {
  transform: translate3d(0, calc(-1 * (var(--works-site-header-top) + 120px)), 0);
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

/* エントリー分の幅を空けず、ハンバーガーを右端の定位置に保つ */
html.is-worksIntro:not(.is-worksChromeShown) .p-worksHeader__entryWrap {
  position: absolute;
}

/* イントロ中にメニューを開いたときはパネルと表記を出す */
html.is-worksIntro:not(.is-worksChromeShown) body.is-worksMenuOpen .p-worksMenu,
html.is-worksIntro:not(.is-worksChromeShown) body.is-worksMenuOpen .p-worksHeader__menuBrand {
  transform: none;
  visibility: visible;
  pointer-events: auto;
}

html.is-worksIntro.is-worksChromeShown #header,
html.is-worksIntro.is-worksChromeShown .p-worksHeader__brand,
html.is-worksIntro.is-worksChromeShown .p-worksHeader__entryWrap,
html.is-worksIntro.is-worksChromeShown .p-worksHeader__menuBrand,
html.is-worksIntro.is-worksChromeShown .p-worksMenu {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.8s cubic-bezier(.16, .84, .3, 1);
}

html.is-worksIntro:not(.is-worksChromeShown) .Main:has(.p-works) {
  --works-main-pad: 0px;
  padding-top: 0;
  transition: none;
}

html.is-worksIntro.is-worksChromeShown .Main:has(.p-works) {
  transition: padding-top 0.8s cubic-bezier(.16, .84, .3, 1);
}

html.is-worksIntro.is-worksChromeShown .p-hero {
  transition: height 0.8s cubic-bezier(.16, .84, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  html.is-worksIntro.is-worksChromeShown #header,
  html.is-worksIntro.is-worksChromeShown .p-worksHeader__brand,
  html.is-worksIntro.is-worksChromeShown .p-worksHeader__entryWrap,
  html.is-worksIntro.is-worksChromeShown .p-worksHeader__menuBrand,
  html.is-worksIntro.is-worksChromeShown .p-worksMenu,
  html.is-worksIntro.is-worksChromeShown .Main:has(.p-works) {
    transition: none;
  }
}

/* ========================================
   Project — Hero (index first view animation)
   Scoped under .p-hero so other pages are unaffected
======================================== */
/* ============================================================
   採用サイト ファーストビュー(しょうゆ一滴スタート版・地球なし)
   0〜1秒: しょうゆ落下 / 1秒: カラフルな円形が弾ける
   1.55秒〜: オレンジの波紋 / 3.45秒〜: 写真
   6.05秒: 世界地図 / 7.45秒: コピー
   ============================================================ */

.p-hero {
  --bg: #f3efe6;
  --ink: #2b2521;
  --ripple-orange: #e8853c;
  --ripple-blue:   #5b9bd5;
  --ripple-pink:   #e0788f;
  --ripple-green:  #7bb98a;
  --soy: #8F0B05;
}


.p-hero {
  position:relative;
  width:100%;
  height:calc(100vh - var(--works-main-pad, 0px));
  height:calc(100svh - var(--works-main-pad, 0px));
  min-height:min(560px, calc(100svh - var(--works-main-pad, 0px)));
  overflow:hidden;
  background:#f3efe6;
  background:var(--bg);
}
/* works_index.css の [aria-hidden=true]{display:none} 打ち消し
   （装飾要素は読み上げ除外のまま、視覚的には表示する） */
.p-hero [aria-hidden="true"] {
  display:block;
}
.p-hero .pause-icon[aria-hidden="true"] {
  display:flex;
}
.p-hero .play-icon[aria-hidden="true"] {
  display:none;
}
.p-hero .pause-toggle[aria-pressed="true"] .play-icon[aria-hidden="true"] {
  display:block;
}
.p-hero .after-hero-anchor {
  position:absolute;
  left:0;
  bottom:0;
  width:1px;
  height:1px;
  pointer-events:none;
}

/* ============================================================
   Scene 1〜3 : しょうゆ一滴 + 着弾で弾ける円形
   ============================================================ */
.p-hero .drop-path {
  position:absolute;
  z-index:3;
  left:50%;
  top:-24px;
  width:16px;
  height:calc(50% + 24px);
  margin-left:-8px;
  pointer-events:none;
}
.p-hero .drop {
  position:absolute;
  left:0;
  top:0;
  width:16px;
  height:24px;
  opacity:0;
  overflow:visible;
  transform:translateY(-50%);
}
.p-hero .drop__body {
  fill:var(--soy,#8F0B05);
}
.p-hero .drop__shine {
  fill:rgba(255,255,255,.14);
}
.p-hero.play .drop {
  animation:soyDropFall 1s cubic-bezier(.55,0,.85,.4) forwards;
}
@keyframes soyDropFall{
  0%  { top:0; opacity:0; transform:translateY(-50%) scale(1); }
  8%  { opacity:1; }
  92% { top:100%; opacity:1; transform:translateY(-50%) scale(.9,1.15); }
  100%{ top:100%; opacity:0; transform:translateY(-50%) scale(1.6,.4); }
}

/* --- 波紋(共通・一回だけ広がる) --- */
.p-hero .ring {
  position:absolute;
  left:50%; top:50%;
  width:100%;
  width:var(--size,100%);
  height:100%;
  height:var(--size,100%);
  aspect-ratio:1/1;
  border:1.5px solid #e8853c;
  border:1.5px solid var(--c,var(--ripple-orange));
  border-radius:50%;
  transform:translate(-50%,-50%) scale(0);
  opacity:0;
  will-change:transform,opacity;
}
@keyframes rippleOnce{
  0%  { transform:translate(-50%,-50%) scale(.12); opacity:0; }
  18% { opacity:.8; opacity:var(--ring-alpha,.8); }
  100%{ transform:translate(-50%,-50%) scale(1.32); opacity:0; }
}

/* 着弾時に画面中央へ弾ける小さなカラードット */
.p-hero .impact-burst {
  position:absolute;
  z-index:2;
  left:50%;
  top:50%;
  width:0;
  height:0;
  pointer-events:none;
}
.p-hero .burst-dot {
  position:absolute;
  left:0;
  top:0;
  width:14px;
  height:14px;
  margin-left:-7px;
  margin-top:-7px;
  border-radius:50%;
  background:transparent;
  opacity:1;
  transform:translate3d(0,0,0);
  will-change:transform;
  backface-visibility:hidden;
}
.p-hero .burst-dot::before {
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:100%;
  border-radius:50%;
  background:currentColor;
  opacity:0;
  transform:scale(.24);
  transform-origin:center;
  will-change:transform,opacity;
  backface-visibility:hidden;
}
.p-hero .burst-dot.b1 { width:16px; height:16px; margin-left:-8px; margin-top:-8px; color:#f3c9a0; }
.p-hero .burst-dot.b2 { width:13px; height:13px; margin-left:-6.5px; margin-top:-6.5px; color:#a9d4d8; }
.p-hero .burst-dot.b3 { width:12px; height:12px; margin-left:-6px; margin-top:-6px; color:#f0b9c4; }
.p-hero .burst-dot.b4 { width:15px; height:15px; margin-left:-7.5px; margin-top:-7.5px; color:#bfe0c2; }
.p-hero .burst-dot.b5 { width:10px; height:10px; margin-left:-5px; margin-top:-5px; color:#f6d8a8; }
.p-hero .burst-dot.b6 { width:11px; height:11px; margin-left:-5.5px; margin-top:-5.5px; color:#c8d9ef; }
.p-hero.play .burst-dot {
  animation-duration:2.85s;
  animation-timing-function:cubic-bezier(.16,.72,.24,1);
  animation-fill-mode:forwards;
  animation-delay:1.00s;
}
.p-hero.play .burst-dot::before {
  animation:burstBloom 2.85s cubic-bezier(.16,.72,.24,1) 1.00s forwards;
}
.p-hero.play .burst-dot.b1 { animation-name:burstMove1; }
.p-hero.play .burst-dot.b2 { animation-name:burstMove2; animation-delay:1.05s; }
.p-hero.play .burst-dot.b2::before { animation-delay:1.05s; }
.p-hero.play .burst-dot.b3 { animation-name:burstMove3; animation-delay:1.10s; }
.p-hero.play .burst-dot.b3::before { animation-delay:1.10s; }
.p-hero.play .burst-dot.b4 { animation-name:burstMove4; animation-delay:1.15s; }
.p-hero.play .burst-dot.b4::before { animation-delay:1.15s; }
.p-hero.play .burst-dot.b5 { animation-name:burstMove5; animation-delay:1.20s; }
.p-hero.play .burst-dot.b5::before { animation-delay:1.20s; }
.p-hero.play .burst-dot.b6 { animation-name:burstMove6; animation-delay:1.25s; }
.p-hero.play .burst-dot.b6::before { animation-delay:1.25s; }
@keyframes burstBloom{
  0%  { opacity:0; transform:scale(.22); }
  20% { opacity:.84; transform:scale(.95); }
  100%{ opacity:0; transform:scale(3.75); }
}
@keyframes burstMove1{
  0%  { transform:translate3d(0,0,0); }
  100%{ transform:translate3d(-24vmin,-25vmin,0); }
}
@keyframes burstMove2{
  0%  { transform:translate3d(0,0,0); }
  100%{ transform:translate3d(26vmin,-24vmin,0); }
}
@keyframes burstMove3{
  0%  { transform:translate3d(0,0,0); }
  100%{ transform:translate3d(-31vmin,8vmin,0); }
}
@keyframes burstMove4{
  0%  { transform:translate3d(0,0,0); }
  100%{ transform:translate3d(30vmin,16vmin,0); }
}
@keyframes burstMove5{
  0%  { transform:translate3d(0,0,0); }
  100%{ transform:translate3d(-8vmin,29vmin,0); }
}
@keyframes burstMove6{
  0%  { transform:translate3d(0,0,0); }
  100%{ transform:translate3d(15vmin,-17vmin,0); }
}

/* ============================================================
   Scene 4〜5 : 各所の波紋(各1回) → 円形写真
   ============================================================ */
.p-hero {
  --k:1;
  --photo-k:1.155;
}
.p-hero .spot {
  position:absolute;
  z-index:2;            /* 地図より上に重ねる */
  left:50%;
  top:50%;
  width:16vmin;
  height:16vmin;
  left:var(--x); top:var(--y);
  width:calc(var(--d, 16vmin) * var(--photo-k));
  height:calc(var(--d, 16vmin) * var(--photo-k));
  aspect-ratio:1/1;
  transform:translate(-50%,-50%);
}
.p-hero.play .spot .ring {
  animation:rippleOnce 2.2s cubic-bezier(.2,.6,.35,1) forwards;
  animation-delay:calc(var(--t) + var(--i)*.45s);
}
.p-hero .spot .ring {
  border-color:rgba(233,102,0,.62);
  border-color:rgba(233,102,0,var(--ring-stroke-alpha,.62));
}
.p-hero .spot .ring:nth-child(1) { --ring-alpha:1; --ring-stroke-alpha:.62; }
.p-hero .spot .ring:nth-child(2) { --ring-alpha:1; --ring-stroke-alpha:.34; }
.p-hero .spot .ring:nth-child(3) { --ring-alpha:1; --ring-stroke-alpha:.16; }

.p-hero .spot .photo {
  position:absolute;
  left:12%;
  top:12%;
  right:12%;
  bottom:12%;
  inset:12%;
  border-radius:50%;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(60,40,20,.18);
  opacity:0;
  transform:scale(.4);
}
.p-hero .spot .photo img {
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.p-hero .spot .photo picture {
  display:block;
  width:100%;
  height:100%;
}
.p-hero.play .spot .photo {
  animation:photoIn 1.55s cubic-bezier(.22,.72,.28,1) forwards;
  animation-delay:var(--p);
}
@keyframes photoIn{
  from{ opacity:0; transform:scale(.4); }
  to  { opacity:1; transform:scale(1); }
}
.p-hero.play .spot {
  animation:floatY 6s ease-in-out infinite alternate;
  animation-delay:calc(var(--p) + 1.2s);
}
@keyframes floatY{
  from{ transform:translate(-50%,-50%) translateY(0); }
  to  { transform:translate(-50%,-50%) translateY(-1.4vmin); }
}


/* ---------- 配置定義(PC/横長) ---------- */
.p-hero .s1 { left:28%;  top:22%; width:39.4vmin; height:39.4vmin; }
.p-hero .s2 { left:74%;  top:21%; width:38.1vmin; height:38.1vmin; }
.p-hero .s3 { left:8.5%; top:29%; width:21.9vmin; height:21.9vmin; }
.p-hero .s4 { left:92%;  top:39%; width:30.0vmin; height:30.0vmin; }
.p-hero .s5 { left:9.5%; top:70%; width:37.0vmin; height:37.0vmin; }
.p-hero .s6 { left:77%;  top:69%; width:30.0vmin; height:30.0vmin; }
.p-hero .s7 { left:29%;  top:69%; width:23.1vmin; height:23.1vmin; }
.p-hero .s8 { left:59%;  top:75%; width:20.8vmin; height:20.8vmin; }
.p-hero .s1 { --x:28%;  --y:22%; --d:31vmin; --t:1.55s; --p:3.45s; --photo-k:1.2705; --c:var(--ripple-blue); }
.p-hero .s2 { --x:74%;  --y:21%; --d:33vmin; --t:1.95s; --p:3.70s; --c:var(--ripple-orange); }
.p-hero .s3 { --x:8.5%; --y:29%; --d:19vmin; --p:3.95s; }
.p-hero .s4 { --x:92%;  --y:39%; --d:26vmin; --p:4.20s; }
.p-hero .s5 { --x:9.5%; --y:70%; --d:32vmin; --t:2.35s; --p:4.45s;  --c:var(--ripple-green); }
.p-hero .s6 { --x:77%;  --y:69%; --d:26vmin; --t:2.75s; --p:4.70s; --c:var(--ripple-pink); }
.p-hero .s7 { --x:29%;  --y:69%; --d:20vmin; --p:4.95s; }
.p-hero .s8 { --x:59%;  --y:75%; --d:18vmin; --p:5.20s; }

.p-hero .d1 { --x:18.5%; --y:39%; --d:4.5vmin; --c:#f3c9a0; }
.p-hero .d2 { --x:80.5%; --y:39%; --d:4.5vmin; --c:#a9d4d8; }
.p-hero .d3 { --x:33%;   --y:90%; --d:4vmin;   --c:#bfe0c2; }
.p-hero .d4 { --x:65%;   --y:88%; --d:4vmin;   --c:#f0b9c4; }
.p-hero .r1 { --x:63%; --y:11%; --d:13vmin; --c:var(--ripple-orange); }
.p-hero .r2 { --x:4%;  --y:41%; --d:12vmin; --c:var(--ripple-orange); }

/* ============================================================
   Scene 6 : カラフルな世界地図(下から)
   ============================================================ */
.p-hero .worldmap {
  position:absolute;
  z-index:0;
  left:0;
  right:0;
  top:0;
  bottom:0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  width:auto;
  max-width:none;
  height:auto;
  margin:0;
  transform:none;
  opacity:0;
  pointer-events:none;
  will-change:opacity;
}
.p-hero .worldmap img {
  width:auto;
  height:auto;
  min-width:0;
  min-height:0;
  max-width:min(100%, 1600px);
  max-height:100%;
  object-fit:contain;
  object-position:center bottom;
  display:block;
  transform:translate3d(0,14%,0) scale(.97);
  will-change:transform;
}
.p-hero.play .worldmap {
  animation:mapFade 2.2s cubic-bezier(.16,.84,.3,1) 6.05s forwards;
}
.p-hero.play .worldmap img {
  animation:mapRise 2.2s cubic-bezier(.16,.84,.3,1) 6.05s forwards;
}
@keyframes mapFade{
  to{ opacity:1; }
}
@keyframes mapRise{
  from{ transform:translate3d(0,14%,0) scale(.97); }
  to  { transform:translate3d(0,0,0) scale(1); }
}

/* ============================================================
   Scene 6.5 : 仕上げの装飾(色ドット・静的な波紋)
   地図と一緒にフェードインして残る
   ============================================================ */
.p-hero .deco {
  position:absolute;
  z-index:1;
  left:50%;
  top:50%;
  left:var(--x); top:var(--y);
  transform:translate(-50%,-50%);
  opacity:0;
  pointer-events:none;
  will-change:opacity;
}
.p-hero.play .deco {
  animation:decoIn 1.6s ease-out 6.65s forwards;
}
@keyframes decoIn{ to{ opacity:1; } }
.p-hero .deco.dot {
  width:4vmin;
  height:4vmin;
  width:calc(var(--d,4vmin) * var(--k));
  height:calc(var(--d,4vmin) * var(--k));
  aspect-ratio:1/1;
  border-radius:50%;
  background:#f3c9a0;
  background:var(--c);
}
.p-hero .deco.rings {
  width:12vmin;
  height:12vmin;
  width:calc(var(--d,12vmin) * var(--k));
  height:calc(var(--d,12vmin) * var(--k));
  aspect-ratio:1/1;
}
.p-hero .deco.rings i {
  position:absolute;
  left:50%; top:50%;
  border:1.5px solid rgba(233,102,0,.62);
  border-color:rgba(233,102,0,var(--deco-ring-alpha,.62));
  border-radius:50%;
  transform:translate(-50%,-50%);
  opacity:1;
}
.p-hero .deco.rings i:nth-child(1) { width:40%;  height:40%;  aspect-ratio:1/1; --deco-ring-alpha:.62; }
.p-hero .deco.rings i:nth-child(2) { width:70%;  height:70%;  aspect-ratio:1/1; --deco-ring-alpha:.34; }
.p-hero .deco.rings i:nth-child(3) { width:100%; height:100%; aspect-ratio:1/1; --deco-ring-alpha:.16; }

/* ============================================================
   Scene 7 : コピー(画像)
   ============================================================ */
.p-hero .copy {
  position:absolute;
  z-index:3;
  left:50%; top:40%;
  width:330px;
  width:min(36vmin, 330px);
  transform:translate(-50%,-50%);
  opacity:0;
  will-change:opacity;
}
.p-hero .copy img { width:100%; display:block; }
.p-hero.play .copy {
  animation:copyIn 2.4s ease-out 7.45s forwards;
}
@keyframes copyIn{
  0%  { opacity:0; }
  35% { opacity:.16; }
  72% { opacity:.62; }
  100%{ opacity:1; }
}

/* ============================================================
   Scene 8 : SCROLLボタン
   メインコピー表示後にフェードインし、文字の周りに波紋が広がる
   ============================================================ */
.p-hero .scroll-cue {
  position:absolute;
  z-index:4;
  left:50%;
  bottom:78px;
  width:150px;
  height:96px;
  transform:translateX(-50%);
  opacity:0;
  pointer-events:auto;
  color:#2b2521;
  color:var(--ink);
  text-decoration:none;
  display:grid;
  place-items:center;
  will-change:opacity;
}
.p-hero .scroll-cue__text {
  position:relative;
  z-index:2;
  font-family:"Helvetica Neue", Arial, sans-serif;
  font-size:12px;
  font-weight:600;
  letter-spacing:.08em;
  line-height:1;
  color:#E96600;
}
.p-hero .scroll-cue__ring {
  position:absolute;
  left:50%;
  top:50%;
  width:58px;
  height:58px;
  aspect-ratio:1/1;
  border:1px solid rgba(232,133,60,.62);
  border-radius:50%;
  transform:translate(-50%,-50%) scale(.42);
  opacity:0;
  pointer-events:none;
}
.p-hero.play .scroll-cue {
  animation:scrollCueIn 1.4s ease-out 9.90s forwards;
}
.p-hero.play .scroll-cue__ring {
  animation:scrollCueRipple 2.4s cubic-bezier(.2,.66,.24,1) 10.00s infinite;
}
.p-hero.play .scroll-cue__ring:nth-child(1) { animation-delay:10.00s; }
.p-hero.play .scroll-cue__ring:nth-child(2) { animation-delay:10.55s; }
.p-hero.play .scroll-cue__ring:nth-child(3) { animation-delay:11.10s; }
@keyframes scrollCueIn{
  from{ opacity:0; }
  to  { opacity:1; }
}
@keyframes scrollCueRipple{
  0%  { transform:translate(-50%,-50%) scale(.42); opacity:0; }
  18% { opacity:.68; }
  100%{ transform:translate(-50%,-50%) scale(1.95); opacity:0; }
}

/* ---------- 操作ボタン ---------- */
.p-hero .controls {
  position:absolute;
  left:16px;
  right:auto;
  bottom:66px;
  z-index:10;
  display:flex;
  gap:8px;
  align-items:center;
}
.p-hero .control-button {
  font-family:inherit;
  font-size:13px;
  letter-spacing:.12em;
  width:42px;
  height:42px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid #5A3A3A;
  border-radius:50%;
  background:#5A3A3A;
  color:#fff;
  cursor:pointer;
}
.p-hero .control-button:hover,
.p-hero .control-button:focus-visible {
  border-color:#5A3A3A;
  background:#5A3A3A;
  color:#fff;
}
.p-hero .control-button:focus-visible {
  outline:2px solid rgba(43,37,33,.55);
  outline-offset:3px;
}
.p-hero .pause-toggle {
  flex:0 0 auto;
}
.p-hero .pause-icon {
  display:flex;
  gap:5px;
  align-items:center;
  justify-content:center;
}
.p-hero .pause-icon i {
  display:block;
  width:6px;
  height:18px;
  border-radius:2px;
  background:currentColor;
}
.p-hero .play-icon {
  display:none;
  width:0;
  height:0;
  border-top:9px solid transparent;
  border-bottom:9px solid transparent;
  border-left:15px solid currentColor;
  transform:translateX(2px);
}
.p-hero .pause-toggle[aria-pressed="true"] .pause-icon {
  display:none;
}
.p-hero .pause-toggle[aria-pressed="true"] .play-icon {
  display:block;
}
.p-hero .replay {
  flex:0 0 auto;
}
.p-hero .replay svg {
  width:21px;
  height:21px;
  display:block;
}
.p-hero.is-paused *,
.p-hero.is-paused *::before,
.p-hero.is-paused *::after {
  animation-play-state:paused !important;
}

/* ---------- 2回目以降・動きを抑える設定: 決めの画面 ---------- */
.p-hero.is-settled .drop-path,
.p-hero.is-settled .impact-burst {
  display:none !important;
}
.p-hero.is-settled .worldmap {
  opacity:1;
  transform:none;
}
.p-hero.is-settled .worldmap img {
  transform:none;
}
.p-hero.is-settled .spot .photo {
  opacity:1;
  transform:none;
  filter:none;
  will-change:auto;
}
.p-hero.is-settled .deco {
  opacity:1;
}
.p-hero.is-settled .copy {
  opacity:1;
  transform:translate(-50%,-50%);
}
.p-hero.is-settled .scroll-cue {
  opacity:1;
}
.p-hero.is-settled .scroll-cue__ring {
  animation:scrollCueRipple 2.4s cubic-bezier(.2,.66,.24,1) infinite;
}
.p-hero.is-settled .scroll-cue__ring:nth-child(1) { animation-delay:0s; }
.p-hero.is-settled .scroll-cue__ring:nth-child(2) { animation-delay:.55s; }
.p-hero.is-settled .scroll-cue__ring:nth-child(3) { animation-delay:1.10s; }

/* ---------- 動きを抑える設定の人には最終形を表示 ---------- */
@media (prefers-reduced-motion: reduce){
  .p-hero.play *,
  .p-hero.play *::before,
  .p-hero.play *::after { animation:none !important; }
  .p-hero.play .drop-path,
  .p-hero.play .impact-burst { display:none; }
  .p-hero.play .worldmap { opacity:1; transform:none; }
  .p-hero.play .worldmap img { transform:none; }
  .p-hero.play .spot .photo { opacity:1; transform:none; filter:none; will-change:auto; }
  .p-hero.play .deco { opacity:1; }
  .p-hero.play .copy { opacity:1; transform:translate(-50%,-50%); }
  .p-hero.play .scroll-cue { opacity:1; }
  .p-hero.play .scroll-cue__ring {
    animation:scrollCueRipple 2.4s cubic-bezier(.2,.66,.24,1) infinite !important;
  }
  .p-hero.play .scroll-cue__ring:nth-child(1) { animation-delay:0s !important; }
  .p-hero.play .scroll-cue__ring:nth-child(2) { animation-delay:.55s !important; }
  .p-hero.play .scroll-cue__ring:nth-child(3) { animation-delay:1.10s !important; }
}

/* ---------- スマホ(縦長画面)用の再配置 ---------- */
@media (max-width:600px){
  .p-hero {
    --k:1;
    --photo-k:1.155;
  }

  /* 写真を四隅・両端へ逃がし、中央のコピー帯を空ける */
  .p-hero .s1 { --x:25%; --y:13%;   --d:24vmin; }
  .p-hero .s2 { --x:72%; --y:11.5%; --d:31vmin; }
  .p-hero .s3 { --x:8%;  --y:37.5%; --d:20vmin; }
  .p-hero .s4 { --x:88%; --y:36%;   --d:23vmin; }
  .p-hero .s5 { --x:13%; --y:64%;   --d:26vmin; }
  .p-hero .s6 { --x:89%; --y:64%;   --d:21vmin; }
  .p-hero .s7 { --x:31%; --y:89%;   --d:24vmin; }
  .p-hero .s8 { --x:71%; --y:81.5%; --d:19vmin; }

  .p-hero .d1 { --x:15%; --y:50%;   --d:5vmin; }
  .p-hero .d2 { --x:85%; --y:50%;   --d:5vmin; }
  .p-hero .d3 { --x:55%; --y:70.5%; --d:5.5vmin; }
  .p-hero .d4 { --x:40%; --y:96%;   --d:4.5vmin; }
  .p-hero .r1 { --x:54%; --y:8%;    --d:15vmin; }
  .p-hero .r2 { --x:3%;  --y:26.5%; --d:13vmin; }

  .p-hero .copy { width:44vmin; top:42%; }
  .p-hero .scroll-cue {
    bottom:48px;
    width:128px;
    height:82px;
  }
  .p-hero .scroll-cue__text {
    font-size:11px;
  }

  /* 地図は表示エリア内に全体が収まる幅まで */
  .p-hero .worldmap img {
    max-width:100%;
  }
  .p-hero .controls {
    left:12px;
    bottom: 92px;
  }
}

/* ========================================
   Project — Message
======================================== */
.p-message {
  position: relative;
  isolation: isolate;
  padding: 0 0 40px;
  overflow: visible;
  scroll-margin-top: 16px;
}

.p-message__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  margin: 0 auto;
  min-height: 702px;
}

.p-message__photo {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.p-message__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-message__photo--19,
.p-message__photo--21 {
  display: none;
}

.p-message__photo--21,
.p-message__photo--17 {
  z-index: 1;
}

.p-message__photo--20 {
  display: block;
  width: 90px;
  height: 90px;
  top: 428px;
  right: -9px;
  left: auto;
  bottom: auto;
  z-index: 3;
}

.p-message__photo--17 {
  display: block;
  width: 84px;
  height: 84px;
  top: 521px;
  left: -10px;
  bottom: auto;
}

.p-message__photo--18 {
  display: block;
  width: 113px;
  height: 113px;
  top: 589px;
  left: 230px;
  right: auto;
  bottom: auto;
}

.p-message__hexagon {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 458px;
  background: var(--works-color-orange-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
  color: var(--works-color-white);
  overflow: visible;
}

.p-message__text {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
  letter-spacing: 0;
}

.p-message__chro {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: 445px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  width: 144px;
  text-decoration: none;
}

.p-message__chroCircle {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: var(--works-color-brown);
  color: var(--works-color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  padding: 16px 12px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.p-message__chroCircle .c-more__icon {
  width: 40px;
  height: 40px;
  margin-top: 6px;
  background-color: transparent;
  transition: transform 0.3s ease;
}

.p-message__chroCircle .c-more__icon img {
  width: 100%;
  height: 100%;
}

.p-message__chro:hover .p-message__chroCircle {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.p-message__chro:hover .c-more__icon {
  transform: translateX(4px);
}

.p-message__scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: -244px;
  width: 189px;
  height: 189px;
  margin-left: -94.5px;
  pointer-events: none;
}

.p-message__scrollRipple,
.p-message__scrollRing,
.p-message__scrollLabel {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  translate: -50% -50%;
}

.p-message__scrollRipple {
  width: 189px;
  height: 189px;
}

.p-message__scrollRing {
  border: 1px solid #f08300;
}

.p-message__scrollRing:nth-child(2) {
  width: 84px;
  height: 84px;
  opacity: 0.596051;
}

.p-message__scrollRing:nth-child(3) {
  width: 119px;
  height: 119px;
  opacity: 0.403912;
}

.p-message__scrollRing:nth-child(4) {
  width: 154px;
  height: 154px;
  opacity: 0.196951;
}

.p-message__scrollRing:nth-child(5) {
  width: 189px;
  height: 189px;
  opacity: 0.0953789;
}

.p-message__scrollLabel {
  width: auto;
  height: auto;
  border-radius: 0;
  color: var(--works-color-orange);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 14.5px;
}

/* SP: hexagon clip-path + FV gap (Figma 5311:484) — PC rules untouched */
@media (max-width: 767px) {

  .p-message__visual {
    min-height: 830px;
  }

  .p-message__photo--20 {
    top: 553px;
  }

  .p-message__photo--17 {
    top: 646px;
    z-index: 3;
  }

  .p-message__photo--18 {
    top: 714px;
  }

  .p-message__hexagon {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 390 / 792;
    background: transparent;
    align-items: flex-start;
    padding: 125px 0 0;
  }

  .p-message__hexagon::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--works-color-orange-sub);
    clip-path: polygon(
      50% 0%,
      100% 12.12%,
      100% 87.5%,
      50% 100%,
      0% 87.5%,
      0% 12.12%
    );
    pointer-events: none;
  }

  .p-message__text {
    position: relative;
    z-index: 1;
  }

  .p-message__chro {
    top: 570px;
  }

  .p-message__scroll {
    top: -119px;
  }
}

@media (min-width: 768px) {
  .p-message {
    padding: 0 0 80px;
  }

  .p-message__visual {
    max-width: 1280px;
    min-height: 820px;
    aspect-ratio: auto;
    align-items: center;
  }

  .p-message__hexagon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(90vw, 780px);
    aspect-ratio: 782 / 818;
    background: transparent;
    clip-path: none;
    padding: 90px 48px 120px;
  }

  .p-message__hexagon::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--works-color-orange-sub);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    pointer-events: none;
  }

  .p-message__text {
    position: relative;
    z-index: 1;
    font-size: 18px;
    line-height: 40px;
    letter-spacing: 0;
  }

  .p-message__photo--19,
  .p-message__photo--21,
  .p-message__photo--20,
  .p-message__photo--17,
  .p-message__photo--18 {
    display: block;
  }

  .p-message__photo--19 {
    width: 215px;
    height: 215px;
    left: calc(50% - 540px);
    top: 82px;
    right: auto;
    bottom: auto;
  }

  .p-message__photo--21 {
    width: 171px;
    height: 170px;
    left: calc(50% + 324px);
    top: 75px;
    right: auto;
    bottom: auto;
  }

  .p-message__photo--20 {
    width: 191px;
    height: 191px;
    left: calc(50% + 342px);
    top: 384px;
    right: auto;
    bottom: auto;
  }

  .p-message__photo--17 {
    width: 170px;
    height: 170px;
    left: calc(50% - 495px);
    top: 572px;
    right: auto;
    bottom: auto;
  }

  .p-message__photo--18 {
    width: 201px;
    height: 201px;
    left: calc(50% + 98px);
    top: 670px;
    right: auto;
    bottom: auto;
  }

  .p-message__chro {
    top: 75.92%;
    width: 144px;
    margin-top: 0;
  }

  .p-message__chroCircle {
    width: 144px;
    height: 144px;
    font-size: 14px;
    line-height: 20.7px;
  }

  .p-message__scroll {
    top: -135px;
    width: 219px;
    height: 219px;
    margin-left: -109.5px;
  }

  .p-message__scrollRipple {
    width: 219px;
    height: 219px;
    -webkit-mask-image: radial-gradient(
      circle,
      transparent 0 48px,
      #000 49px,
      rgba(0, 0, 0, 0.18) 109px
    );
    mask-image: radial-gradient(
      circle,
      transparent 0 48px,
      #000 49px,
      rgba(0, 0, 0, 0.18) 109px
    );
  }

  .p-message__scrollRing:nth-child(2) {
    width: 98px;
    height: 98px;
  }

  .p-message__scrollRing:nth-child(3) {
    width: 138px;
    height: 138px;
  }

  .p-message__scrollRing:nth-child(4) {
    width: 178px;
    height: 178px;
  }

  .p-message__scrollRing:nth-child(5) {
    width: 219px;
    height: 219px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .p-message__hexagon {
    width: 620px;
    padding: 100px 32px 90px;
  }

  .p-message__text {
    font-size: 15px;
    line-height: 32px;
  }

  .p-message__photo--19 {
    width: 160px;
    height: 160px;
    left: calc(50% - 370px);
    top: 60px;
  }

  .p-message__photo--21 {
    width: 130px;
    height: 130px;
    left: calc(50% + 230px);
    top: 50px;
  }

  .p-message__photo--20 {
    width: 140px;
    height: 140px;
    left: calc(50% + 240px);
    top: 280px;
  }

  .p-message__photo--17 {
    width: 130px;
    height: 130px;
    left: calc(50% - 340px);
    top: 420px;
  }

  .p-message__photo--18 {
    width: 150px;
    height: 150px;
    left: calc(50% + 70px);
    top: 490px;
  }
}

/* ========================================
   Project — Entry nav
======================================== */
.p-entryNav {
  position: relative;
  overflow: visible;
  z-index: 1;
  padding: 16px 0 40px;
}

.p-entryNav__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-entryNav__item {
  margin: 0;
}

.p-entryNav__link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding: 14px 16px;
  border: 1px solid var(--works-color-border);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.p-entryNav__iconWrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.p-entryNav__iconWrap img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.p-entryNav__label {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--works-color-brown);
}

.p-entryNav__arrow {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background-color: var(--works-color-brown);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.p-entryNav__arrow img {
  width: 100%;
  height: 100%;
}

.p-entryNav__arrow--down {
  background: var(--works-color-brown);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-entryNav__arrow--down img {
  width: 18px;
  height: 18px;
}

.p-entryNav__link:hover {
  border-color: var(--works-color-orange);
}

.p-entryNav__link:hover .p-entryNav__label {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.p-entryNav__link:hover .p-entryNav__arrow {
  background-color: var(--works-color-orange);
}

@media (min-width: 768px) {
  .p-entryNav {
    padding: 8px 0 56px;
  }

  .p-entryNav > .p-works__inner {
    max-width: 1280px;
  }

  .p-entryNav__list {
    flex-direction: row;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
  }

  .p-entryNav__item {
    flex: 1;
  }

  .p-entryNav__link {
    min-height: 120px;
    padding: 20px 24px;
    gap: 20px;
  }

  .p-entryNav__iconWrap {
    width: 60px;
    height: 60px;
  }

  .p-entryNav__label {
    font-size: 16px;
    line-height: 24px;
  }

  .p-entryNav__arrow {
    width: 40px;
    height: 40px;
  }
}

/* ========================================
   Project — Information
======================================== */
.p-info {
  position: relative;
  z-index: 3;
  padding: 0 0 64px;
  overflow: visible;
}

.p-info__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--works-color-orange);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.p-info__box {
  background: var(--works-color-white);
  border-radius: 10px;
  padding: 8px 20px;
}

.p-info__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-info__item {
  border-bottom: 1px solid #d9d9d9;
}

.p-info__item:last-child {
  border-bottom: 0;
}

.p-info__link {
  display: block;
  padding: 16px 0;
  color: inherit;
}

a.p-info__link {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a.p-info__link:hover {
  opacity: 0.75;
}

a.p-info__link:hover .p-info__headline {
  text-decoration: underline;
}

.p-info__date {
  font-size: 14px;
  font-weight: 500;
  color: var(--works-color-text);
  line-height: 20.7px;
}

.p-info__cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 89px;
  height: 20px;
  margin-left: 8px;
  border: 1px solid var(--works-color-orange);
  border-radius: 2px;
  color: var(--works-color-orange);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.p-info__headline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: var(--works-color-text);
}

.p-info__headline::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--works-color-brown);
  flex-shrink: 0;
  margin-top: 5px;
}

.p-info__policy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 16px 0 12px;
  border-top: 1px solid var(--works-color-border);
}

.p-info__policyLabel {
  color: var(--works-color-orange);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.04em;
}

.p-info__policyText {
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: var(--works-color-text);
}

@media (min-width: 768px) {
  .p-info {
    padding: 0 0 96px;
  }

  .p-info__title {
    font-size: 26px;
    line-height: 20.7px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
  }

  .p-info__box {
    padding: 12px 50px;
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
  }

  .p-info__link {
    display: flex;
    align-items: flex-start;
    min-height: 64px;
    padding: 18px 0;
  }

  .p-info__date {
    width: 122px;
    flex-shrink: 0;
    font-size: 14px;
  }

  .p-info__cat {
    margin-left: 6px;
    flex-shrink: 0;
  }

  .p-info__headline {
    margin-top: 0;
    margin-left: 28px;
    font-size: 14px;
    line-height: 24px;
    flex: 1;
    gap: 10px;
  }

  .p-info__headline::before {
    margin-top: 7px;
  }

  .p-info__policy {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 0 16px;
  }

  .p-info__policyLabel {
    flex-shrink: 0;
    font-size: 14px;
    line-height: 24px;
  }

  .p-info__policyText {
    flex: 1;
    font-size: 14px;
    line-height: 24px;
  }
}

/* ========================================
   Project — Story
======================================== */
.p-story {
  position: relative;
  z-index: 2;
  isolation: isolate;
  padding: 24px 0 80px;
  overflow: visible;
}

.p-story .p-works__inner {
  overflow: visible;
}

.p-story__intro {
  position: relative;
  padding: 48px 0 32px;
  margin-bottom: 8px;
}

.p-story__intro::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 24px;
  left: 56px;
  width: 448px;
  height: 448px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.p-story__intro > * {
  position: relative;
  z-index: 2;
}

.p-story__en {
  margin: 0 0 8px 0;
  max-width: 544px;
  pointer-events: none;
}

.c-enFlow .p-story__en,
.c-enFlow .p-discovery__en,
.c-enFlow .p-recruit__en {
  max-width: none;
  margin: 0;
}

.c-enFlow {
  overflow: hidden;
  pointer-events: none;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.p-story__intro > .c-enFlow {
  z-index: 2;
}

.p-discovery__intro > .c-enFlow {
  z-index: 2;
}

.c-enFlow:has(.p-recruit__en) {
  margin-bottom: 20px;
}

.c-enFlow__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  align-items: center;
  will-change: transform;
}

.c-enFlow__track > picture {
  flex: 0 0 auto;
}

.c-enFlow__track > picture:first-child,
.c-enFlow__track > picture:nth-child(2) {
  margin-right: var(--en-flow-gap, 94px);
}

.p-works .c-enFlow__track .p-story__en img,
.p-works .c-enFlow__track .p-discovery__en img,
.p-works .c-enFlow__track .p-recruit__en img {
  width: auto;
  max-width: none;
  height: clamp(36px, 10vw, 125px);
  display: block;
}

.c-enFlow:has(.p-recruit__en) .c-enFlow__track .p-recruit__en img {
  height: clamp(32px, 8vw, 99px);
}

/* SP: Figma 5311:691 / 5311:660 / 5311:690 = height 64px */
@media (max-width: 767px) {
  .p-works .c-enFlow__track .p-story__en img,
  .p-works .c-enFlow__track .p-discovery__en img,
  .p-works .c-enFlow__track .p-recruit__en img {
    height: 64px;
  }

  .c-enFlow:has(.p-recruit__en) .c-enFlow__track .p-recruit__en img {
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-enFlow__track {
    width: auto;
    will-change: auto;
  }
}

.p-story__en img {
  width: 100%;
  height: auto;
  display: block;
}

.p-story__title {
  margin: 0 0 12px;
  font-size: 40px;
  font-weight: 700;
  line-height: 56px;
  color: var(--works-color-brown);
}

.p-story__lead {
  margin: 0 0 24px;
  font-size: 15px;
  font-weight: 700;
  line-height: 28px;
  color: #333333;
}

.p-story__intro .c-more {
  font-size: 14px;
}

.p-story__slider {
  position: relative;
  z-index: 2;
}

.p-story__nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.p-story__viewport {
  --story-pad: 20px;
  --story-gap: 40px;
  --story-visible: calc(100vw - var(--story-pad) * 2);
  position: relative;
  z-index: 2;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.p-story__viewport.is-marquee {
  padding-left: var(--story-pad);
  padding-right: var(--story-pad);
}

/* ループ時はパディング領域に隣接カードが覗かないよう、可視幅だけ切り抜く */
.p-story__viewport.is-loop {
  width: var(--story-visible);
  margin-left: calc(50% - 50vw + var(--story-pad));
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.p-story__track {
  display: flex;
  gap: var(--story-gap);
  padding: 0 20px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.p-story__viewport.is-marquee .p-story__track,
.p-story__viewport.is-loop .p-story__track {
  overflow: visible;
  scroll-snap-type: none;
  padding: 0;
  width: max-content;
  will-change: transform;
}

.p-story__track::-webkit-scrollbar {
  display: none;
}

.p-story__card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

/* SP: 1枚表示 / PC: 3枚表示（is-loop） */
.p-story__viewport.is-loop .p-story__card {
  flex: 0 0 var(--story-visible);
}

.p-story__thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 280 / 158;
  background: #bfbfbf;
}

.p-story__thumbLink {
  position: absolute;
  inset: 0;
  display: block;
}

.p-story__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.45s ease;
}

@media (hover: hover) and (pointer: fine) {
  .p-story__card:hover .p-story__thumb img {
    transform: scale(1.08);
  }

  .p-story__card:hover .p-story__cardTitle a {
    text-decoration: underline;
  }
}

.p-story__num {
  position: absolute;
  left: 16px;
  top: 8px;
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--works-color-white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.p-story__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 188px;
  padding: 16px 0 0;
}

.p-story__cardTitle {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 23px;
}

.p-story__cardTitle a {
  text-decoration: none;
}

.p-story__cardText {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 24px;
  flex: 1;
}

.p-story__body .c-more {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
}

@media (min-width: 768px) {
  .p-story {
    padding: 40px 0 102.1px;
  }

  .p-story__intro {
    padding: 60px 0 48px;
    margin-bottom: 16px;
  }

  .p-story__intro::before {
    top: -240px;
    left: -136px;
    width: 954px;
    height: 954px;
  }

  .p-story__en {
    max-width: 1057px;
    margin: 0 0 -28px;
  }

  .c-enFlow:has(.p-story__en) {
    margin-bottom: -28px;
  }

  .p-story__title {
    font-size: 64px;
    line-height: 76.8px;
    margin-bottom: 16px;
    margin-top: 28px;
  }

  .p-story__lead {
    max-width: 823px;
    font-size: 18px;
    line-height: 32px;
    margin-bottom: 32px;
  }

  .p-story__intro .c-more {
    font-size: 14px;
  }

  .p-story__nav {
    justify-content: flex-end;
    margin-bottom: 20px;
  }

  /* 3件以下: PCでは全件が見えるためナビを非表示（SPはJSの is-fitPc でも表示のまま） */
  .p-story.is-fitPc .p-story__nav {
    display: none;
  }

  .p-story__viewport {
    --story-pad: 96px;
    --story-gap: 78px;
  }

  .p-story__viewport.is-marquee {
    padding-left: var(--story-pad);
    padding-right: var(--story-pad);
  }

  .p-story__track {
    gap: var(--story-gap);
    padding-inline: 96px 96px;
  }

  .p-story__card {
    flex: 0 0 440px;
  }

  .p-story__viewport.is-loop .p-story__card {
    flex: 0 0 calc((var(--story-visible) - var(--story-gap) * 2) / 3);
  }

  .p-story__thumb {
    border-radius: 35px;
    aspect-ratio: 440 / 248;
  }

  .p-story__num {
    font-size: 64px;
    line-height: 76.8px;
    left: 16px;
    top: 8px;
  }

  .p-story__body {
    width: 396px;
    max-width: 100%;
    min-height: 230px;
    padding: 16px 0 0;
    margin-left: 11px;
  }

  .p-story__viewport.is-loop .p-story__body {
    width: auto;
    margin-left: 0;
  }

  .p-story__cardTitle {
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 12px;
  }

  .p-story__cardText {
    font-size: 14px;
    line-height: 22px;
  }

  .p-story__body .c-more {
    font-size: 14px;
    padding-top: 20px;
  }
}

/* ========================================
   Project — Discovery
======================================== */
.p-discovery {
  position: relative;
  isolation: isolate;
  padding: 24px 0 40px;
  overflow: visible;
}

.p-discovery .p-works__inner {
  overflow: visible;
}

.p-discovery__intro {
  position: relative;
  padding: 48px 0 32px;
  margin-bottom: 8px;
}

.p-discovery__intro::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 24px;
  left: -138px;
  width: 448px;
  height: 448px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.p-discovery__intro > * {
  position: relative;
  z-index: 2;
}

.p-discovery__en {
  margin: 0 0 8px 0;
  max-width: 600px;
  pointer-events: none;
}

.p-discovery__en img {
  width: 100%;
  height: auto;
  display: block;
}

.p-discovery__title {
  margin: 20px 0 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--works-color-brown);
}

.p-discovery__lead {
  margin: 0 0 40px;
  font-size: 15px;
  font-weight: 500;
  line-height: 28px;
  color: #333333;
}

.p-discovery__block {
  position: relative;
  z-index: 2;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.p-discovery__panel {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  margin: 0 auto;
  background: var(--works-color-white);
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px 28px;
  box-shadow: 0 8px 30px rgba(90, 58, 58, 0.08);
  flex-shrink: 0;
}

.p-discovery__panelTitle {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  color: var(--works-color-orange);
  line-height: 40px;
}

.p-discovery__panelSub {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--works-color-brown);
  line-height: 24px;
}

.p-discovery__panelText {
  margin: 0 auto 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: #333333;
  max-width: 240px;
  text-align: left;
}

.p-discovery__panel .c-more {
  font-size: 13px;
  line-height: 28px;
}

.p-discovery__media {
  width: min(100%, 320px);
  margin: -24px auto 0;
  position: relative;
  z-index: 1;
  overflow: visible;
  flex-shrink: 0;
}

.p-discovery__media img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  .p-discovery {
    padding: 0 0 80px;
  }

  .p-discovery__intro {
    padding: 0 0 48px;
    margin-bottom: 16px;
  }

  .p-discovery__intro::before {
    top: -250px;
    left: 479px;
    width: 804px;
    height: 804px;
  }

  .p-discovery__en {
    max-width: 1172px;
    margin: 0 0 -20px;
  }

  .c-enFlow:has(.p-discovery__en) {
    margin-bottom: -20px;
  }

  .p-discovery__title {
    font-size: 64px;
    line-height: 76.8px;
    text-align: right;
  }

  .p-discovery__lead {
    max-width: 540px;
    margin-left: auto;
    font-size: 18px;
    line-height: 26.6px;
  }

  .p-discovery__block {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 771px;
    margin-bottom: 75px;
    overflow: visible;
  }

  .p-discovery__block--company .p-discovery__panel {
    margin: 0 -73px 0 79px;
    z-index: 2;
  }

  .p-discovery__block--company .p-discovery__media {
    margin: 100px 0 0;
    z-index: 1;
  }

  .p-discovery__block--work .p-discovery__panel {
    order: 2;
    margin: 0;
    z-index: 2;
  }

  .p-discovery__block--work .p-discovery__media {
    order: 1;
    margin: 100px -73px 0 39px;
    z-index: 1;
  }

  .p-discovery__media {
    width: 593px;
    max-width: none;
  }

  .p-discovery__panel {
    width: 480px;
    padding: 60px 40px 40px;
    box-shadow: none;
    flex-shrink: 0;
  }

  .p-discovery__panelTitle {
    font-size: 40px;
    line-height: 48px;
    margin: 0 0 6px;
  }

  .p-discovery__panelSub {
    font-size: 20px;
    line-height: 48px;
    margin: 0 0 16px;
  }

  .p-discovery__panelText {
    font-size: 16px;
    line-height: 23.7px;
    max-width: 340px;
    margin: 0 auto 20px;
  }

  .p-discovery__panel .c-more {
    font-size: 14px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .p-discovery__block {
    flex-direction: column;
    align-items: center;
    min-height: 0;
  }

  .p-discovery__block--company .p-discovery__panel,
  .p-discovery__block--work .p-discovery__panel {
    margin: 0 auto;
    order: 0;
  }

  .p-discovery__block--company .p-discovery__media,
  .p-discovery__block--work .p-discovery__media {
    order: 0;
    width: min(100%, 593px);
    margin: -40px auto 0;
  }
}

/* ========================================
   Project — People
======================================== */
.p-people {
  position: relative;
  padding: 80px 0 86px;
  overflow: visible;
}

.p-people .p-works__inner {
  overflow: visible;
}

.p-people::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -120px;
  width: 284.62vw;
  aspect-ratio: 1110 / 1044;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--works-color-white);
  pointer-events: none;
  z-index: 0;
}

.p-people[data-scroll-reveal]::before {
  opacity: 0;
  transform: translate(-50%, 28px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
  will-change: opacity, transform;
}

.p-people[data-scroll-reveal].is-revealed::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.p-people__inner {
  position: relative;
  z-index: 1;
}

.p-people__intro {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 8px;
}

.p-people__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--works-color-orange);
  line-height: 40px;
}

.p-people__sub {
  margin: 4px 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--works-color-brown);
  line-height: 27.6px;
}

.p-people__lead {
  margin: 0 auto 20px;
  max-width: 280px;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: #333333;
}

.p-people__introMore {
  display: inline-flex;
  justify-content: center;
  font-size: 14px;
}

.p-people__slider {
  position: relative;
  z-index: 1;
}

.p-people__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.p-people__viewport {
  --people-pad: 20px;
  --people-gap: 20px;
  position: relative;
  z-index: 1;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  touch-action: pan-y;
}

.p-people__viewport.is-marquee,
.p-people__viewport.is-loop {
  padding-left: var(--people-pad);
}

.p-people__track {
  display: flex;
  gap: var(--people-gap);
  padding: 0 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.p-people__viewport.is-marquee .p-people__track,
.p-people__viewport.is-loop .p-people__track {
  overflow: visible;
  scroll-snap-type: none;
  padding: 0;
  width: max-content;
  will-change: transform;
}

.p-people__track::-webkit-scrollbar {
  display: none;
}

.p-people__card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  background: var(--works-color-cream);
  border-radius: 20px;
  padding: 24px 16px 20px;
  text-align: left;
}

.p-people__portrait {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: #ddd;
  flex-shrink: 0;
}

.p-people__textLink {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
}

.p-people .p-people__textLink .p-people__quote,
.p-people .p-people__textLink .p-people__tag,
.p-people .p-people__textLink .p-people__year,
.p-people .p-people__textLink .p-people__name {
  text-decoration: none;
}

.p-people .p-people__textLink .p-people__quote {
  text-underline-offset: 0.12em;
}

.p-people__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.45s ease;
}

@media (hover: hover) and (pointer: fine) {
  .p-people__card:hover .p-people__portrait img {
    transform: scale(1.08);
  }

  .p-people__card:hover .p-people__textLink .p-people__quote {
    text-decoration: underline;
  }
}

.p-people__portrait--placeholder {
  background: #fff;
}

.p-people__quote {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.p-people__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 14px;
  line-height: 16px;
  text-align: left;
  background: var(--works-color-white);
  font-size: 12px;
  font-weight: 700;
  color: var(--works-color-orange-sub);
}

.p-people__year {
  margin: 10px 0 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 13px;
}

.p-people__name {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 21px;
}

.p-people__more {
  align-self: flex-end;
  margin-top: auto;
  margin-right: 15px;
  padding-top: 12px;
}

@media (min-width: 768px) {
  .p-people {
    padding: 100px 0 96px;
  }

  .p-people::before {
    top: -80px;
    width: 146.88vw;
    aspect-ratio: 1880 / 1215;
  }

  .p-people__title {
    font-size: 40px;
    line-height: 48px;
  }

  .p-people__sub {
    font-size: 20px;
    line-height: 27.6px;
    margin-bottom: 16px;
  }

  .p-people__lead {
    max-width: 529px;
    font-size: 16px;
    line-height: 23.7px;
    margin-bottom: 24px;
  }

  .p-people__introMore {
    font-size: 14px;
  }

  .p-people__nav {
    margin-bottom: 20px;
  }

  .p-people__viewport.is-marquee {
    padding-left: 39px;
  }

  .p-people__track {
    gap: 32px;
    padding-inline: 39px;
  }

  .p-people__card {
    flex: 0 0 300px;
    min-height: 420px;
    border-radius: 40px;
    padding: 32px 22px 24px;
  }

  .p-people__portrait {
    width: 200px;
    height: 200px;
  }

  .p-people__quote {
    font-size: 16px;
    line-height: 23.7px;
  }

  .p-people__name {
    font-size: 18px;
    line-height: 21px;
  }

  .p-people__more {
    margin-right: 21px;
    padding-top: 16px;
  }
}

/* ========================================
   Project — Special
======================================== */
.p-special {
  position: relative;
  z-index: 2;
  padding: 0 0 80px;
  background: var(--works-color-white);
}

.p-special__panel {
  position: relative;
  margin-top: 31px;
  border: 4px solid var(--works-color-orange-sub);
  border-radius: 20px;
  padding: 48px 25px 40px;
  background: var(--works-color-white);
  text-align: center;
}

.p-special__title {
  position: absolute;
  top: -31px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0 20px;
  background: var(--works-color-white);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: var(--works-color-orange);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.p-special__sub {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 27.6px;
  color: var(--works-color-text);
}

.p-special__text {
  margin: 0 0 24px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: var(--works-color-text);
}

.p-special__player {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 12px;
  aspect-ratio: 300 / 167;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-special__player:hover {
  opacity: 0.92;
}

.p-special__play {
  width: 72px;
  height: 72px;
  border: 0;
  background: transparent;
  color: var(--works-color-white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.p-special__caption {
  margin: 0 auto 20px;
  max-width: 300px;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: var(--works-color-text);
}

.p-special__more {
  justify-content: center;
}

@media (min-width: 768px) {
  .p-special__panel {
    margin-top: 22px;
    border-radius: 40px;
    padding: 56px 80px 48px;
  }

  .p-special__title {
    top: -22px;
    padding: 0 24px;
    font-size: 40px;
    line-height: 48px;
  }

  .p-special__sub {
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 27.6px;
  }

  .p-special__text {
    max-width: 641px;
    margin-inline: auto;
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 23.7px;
  }

  .p-special__player {
    max-width: 640px;
    margin-bottom: 20px;
    aspect-ratio: 640 / 356;
  }

  .p-special__play {
    font-size: 40px;
  }

  .p-special__caption {
    max-width: 640px;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 23.7px;
  }
}

/* ========================================
   Project — Support CTA
======================================== */
.p-support {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.p-support__bg {
  position: absolute;
  inset: 0;
}

.p-support__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.p-support__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.p-support__circle {
  position: relative;
  z-index: 1;
  width: 240px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.p-support__label {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

@media (min-width: 768px) {
  /* Figma Frame 5504:28 = 1280×540。幅に応じて高さを保ち画像の縦クロップを防ぐ */
  .p-support {
    min-height: 540px;
    aspect-ratio: 1280 / 540;
    height: auto;
  }

  .p-support__bg img {
    object-position: center center;
  }

  .p-support__circle {
    width: 400px;
    background: rgba(255, 255, 255, 0.898);
  }

  .p-support__label {
    font-size: 24px;
    line-height: 33.1px;
  }
}

/* ========================================
   Project — Recruit CTA
======================================== */
.p-recruit {
  position: relative;
  overflow: visible;
}

.p-recruit__primary {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  background: var(--works-color-orange-sub);
  padding: 24px 0 32px;
}

.p-recruit__en {
  display: block;
  max-width: 763px;
  margin: 0 auto 20px;
  pointer-events: none;
}

.p-recruit__en img {
  width: 100%;
  height: auto;
  display: block;
}

.p-recruit__circles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.p-recruit__circle {
  width: 100%;
  max-width: 350px;
  min-height: 160px;
  border-radius: 80px;
  background: var(--works-color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px 28px;
}

.p-recruit__circleName {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--works-color-orange);
}

.p-recruit__circle .c-more {
  font-size: 14px;
  line-height: 14px;
}

.p-recruit__others {
  position: relative;
  z-index: 1;
  background: var(--works-color-cream);
  padding: 40px 0 64px;
}

.p-recruit__otherList {
  display: flex;
  flex-direction: column;
}

.p-recruit__other {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 96px;
  padding: 8px 0;
  border-bottom: 1px solid #bfbfbf;
}

.p-recruit__other:first-child {
  border-top: 1px solid #bfbfbf;
}

.p-recruit__otherIcon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--works-color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.p-recruit__otherIcon img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  transition: filter 0.3s ease;
}

.p-recruit__otherIcon--comeback img {
  width: 57px;
  height: 44px;
}

.p-recruit__otherIcon--disability img {
  width: 45px;
  height: 43px;
}

.p-recruit__otherIcon--group img {
  width: 50px;
  height: 47px;
}

.p-recruit__other:hover .p-recruit__otherIcon,
.p-recruit__other:focus-visible .p-recruit__otherIcon {
  background: var(--works-color-orange);
}

.p-recruit__other:hover .p-recruit__otherIcon img,
.p-recruit__other:focus-visible .p-recruit__otherIcon img {
  filter: brightness(0) invert(1);
}

.p-recruit__other:hover .p-recruit__otherLabel,
.p-recruit__other:focus-visible .p-recruit__otherLabel {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.p-recruit__otherLabel {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: var(--works-color-text);
}

.p-recruit__otherArrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--works-color-brown);
  border-radius: 50%;
}

.p-recruit__otherArrow img {
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .p-recruit__primary {
    padding: 0 0 134px;
  }

  .p-recruit__en {
    max-width: 1181px;
    margin-bottom: 32px;
  }

  .c-enFlow:has(.p-recruit__en) {
    margin-bottom: 32px;
  }

  .p-recruit__circles {
    flex-direction: row;
    justify-content: center;
    gap: 80px;
  }

  .p-recruit__circle {
    width: 360px;
    max-width: none;
    min-height: 360px;
    border-radius: 50%;
    padding: 48px 32px 40px;
  }

  .p-recruit__circleName {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 28px;
  }

  .p-recruit__others {
    padding: 48px 0 80px;
  }

  .p-recruit__otherList {
    flex-direction: row;
    justify-content: center;
    gap: 104px;
  }

  .p-recruit__other {
    flex-direction: column;
    gap: 0;
    width: 200px;
    min-height: auto;
    padding: 0;
    border: 0;
  }

  .p-recruit__other:first-child {
    border-top: 0;
  }

  .p-recruit__otherArrow {
    display: none;
  }

  .p-recruit__otherIcon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
  }

  .p-recruit__otherIcon--comeback img {
    width: 116px;
    height: 89px;
  }

  .p-recruit__otherIcon--disability img {
    width: 93px;
    height: 86px;
  }

  .p-recruit__otherIcon--group img {
    width: 102px;
    height: 97px;
  }

  .p-recruit__otherLabel {
    flex: none;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
  }
}

/* ========================================
   Component — Scroll reveal
======================================== */
.p-works [data-scroll-reveal]:not(.p-people):not([data-discovery-reveal]) {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
  transition-delay: var(--scroll-reveal-delay, 0ms);
}

.p-works [data-scroll-reveal]:not(.p-people):not([data-discovery-reveal]).is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Discovery: text circle first → image circle after (per block) */
.p-works .p-discovery__block[data-discovery-reveal] {
  opacity: 1;
  transform: none;
}

.p-works .p-discovery__block[data-discovery-reveal] .p-discovery__panel,
.p-works .p-discovery__block[data-discovery-reveal] .p-discovery__media {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0ms;
  backface-visibility: hidden;
}

.p-works .p-discovery__block[data-discovery-reveal].is-revealed .p-discovery__panel {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0ms;
}

.p-works .p-discovery__block[data-discovery-reveal].is-revealed .p-discovery__media {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  /* Image follows text by ~0.26s within the same block */
  transition-delay: 260ms;
}

@media (max-width: 767px) {
  .p-works .p-discovery__block[data-discovery-reveal] .p-discovery__panel,
  .p-works .p-discovery__block[data-discovery-reveal] .p-discovery__media {
    transform: translate3d(0, 20px, 0);
    transition-duration: 0.65s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-works [data-scroll-reveal]:not(.p-people):not([data-discovery-reveal]) {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .p-works .p-discovery__block[data-discovery-reveal] .p-discovery__panel,
  .p-works .p-discovery__block[data-discovery-reveal] .p-discovery__media {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .p-people[data-scroll-reveal]::before {
    opacity: 1;
    transform: translateX(-50%);
    transition: none;
    will-change: auto;
  }
}

/* ========================================
   Component — Color balls
======================================== */
.c-colorBalls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.c-colorBall {
  position: absolute;
  border-radius: 50%;
}

.c-colorBalls.is-parallaxing .c-colorBall {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .c-colorBalls.is-parallaxing .c-colorBall {
    will-change: auto;
    transform: none;
  }
}

.c-colorBall--green {
  background: rgba(111, 188, 126, 0.224);
}

.c-colorBall--red {
  background: rgba(213, 0, 0, 0.2);
}

.c-colorBall--redDeep {
  background: rgba(213, 0, 0, 0.4);
}

.c-colorBall--blue {
  background: rgba(60, 172, 213, 0.2);
}

.c-colorBall--orangeSoft {
  background: rgba(240, 131, 0, 0.08);
}

.c-colorBall--orange {
  background: rgba(240, 131, 0, 0.201);
}

.c-colorBall--orangeBrand {
  background: rgba(233, 102, 0, 0.172);
}

.c-colorBall--yellow {
  background: rgba(235, 208, 62, 0.518);
}

.c-colorBall--yellowMid {
  background: rgba(235, 208, 62, 0.318);
}

.c-colorBall--yellowDeep {
  background: rgba(235, 208, 62, 0.4);
}

.c-colorBall--purple {
  background: rgba(153, 110, 181, 0.203);
}

.c-colorBall--cream {
  background: rgba(253, 247, 224, 0.275);
}

.c-colorBall--strokeOrange {
  background: transparent;
  border: 1px solid var(--works-color-orange-sub);
  opacity: 0.7;
}

.p-entryNav > .p-works__inner {
  position: relative;
  z-index: 1;
}

.p-info > .p-works__inner {
  position: relative;
  z-index: 1;
}

/* p-message */
.p-message > .c-colorBalls {
  z-index: 1;
}

.p-message .c-colorBall--yellow {
  background: rgba(235, 208, 62, 0.518424);
}

.p-message .c-colorBall--purple {
  background: rgba(153, 110, 181, 0.203002);
}

.p-message .c-colorBall--orangeBrand {
  background: rgba(233, 102, 0, 0.171567);
}

.p-message .c-colorBall--green {
  background: rgba(111, 188, 126, 0.22444);
}

.p-message .c-colorBall--red {
  background: rgba(213, 0, 0, 0.2);
}

.p-message .c-colorBall--strokeOrange {
  opacity: 0.697558;
}

.p-message > .c-colorBalls .c-colorBall:nth-child(1) {
  top: 763px;
  left: -7px;
  width: 60px;
  height: 60px;
}

.p-message > .c-colorBalls .c-colorBall:nth-child(2) {
  top: 822px;
  left: 73px;
  width: 40px;
  height: 40px;
}

.p-message > .c-colorBalls .c-colorBall:nth-child(3) {
  top: 838px;
  left: 336px;
  width: 21px;
  height: 21px;
}

.p-message > .c-colorBalls .c-colorBall:nth-child(4) {
  top: 84px;
  left: calc(50% - 287px);
  width: 73px;
  height: 73px;
}

.p-message > .c-colorBalls .c-colorBall:nth-child(5) {
  top: 17px;
  left: calc(50% + 501px);
  width: 86px;
  height: 86px;
}

.p-message > .c-colorBalls .c-colorBall:nth-child(6) {
  top: -47px;
  left: calc(50% + 180px);
  width: 54px;
  height: 54px;
  background: rgba(213, 0, 0, 0.171567);
}

.p-message > .c-colorBalls .c-colorBall:nth-child(7) {
  top: -32px;
  left: calc(50% - 234px);
  width: 39px;
  height: 39px;
  background: rgba(111, 188, 126, 0.171567);
}

.p-message > .c-colorBalls .c-colorBall:nth-child(8) {
  top: 490px;
  left: calc(50% - 691px);
  width: 166px;
  height: 166px;
}

.p-message > .c-colorBalls .c-colorBall:nth-child(9) {
  top: 559px;
  left: calc(50% + 448px);
  width: 230px;
  height: 230px;
}

.p-message > .c-colorBalls .c-colorBall:nth-child(10) {
  top: 344px;
  left: calc(50% + 531px);
  width: 46px;
  height: 46px;
  background: rgba(111, 188, 126, 0.305087);
}

.p-message > .c-colorBalls .c-colorBall:nth-child(11) {
  top: 763px;
  left: calc(50% - 249px);
  width: 109px;
  height: 109px;
}

.p-message > .c-colorBalls .c-colorBall:nth-child(12) {
  top: 850px;
  left: calc(50% + 391px);
  width: 31px;
  height: 31px;
}

/* p-entryNav */
.p-entryNav > .c-colorBalls .c-colorBall:nth-child(1) {
  top: -138px;
  left: -7px;
  width: 60px;
  height: 60px;
}

.p-entryNav > .c-colorBalls .c-colorBall:nth-child(2) {
  top: -69px;
  left: 73px;
  width: 40px;
  height: 40px;
}

.p-entryNav > .c-colorBalls .c-colorBall:nth-child(3) {
  top: -53px;
  left: 336px;
  width: 21px;
  height: 21px;
}

.p-entryNav > .c-colorBalls .c-colorBall:nth-child(4) {
  top: -155px;
  left: calc(50% - 249px);
  width: 109px;
  height: 109px;
}

.p-entryNav > .c-colorBalls .c-colorBall:nth-child(5) {
  top: -147px;
  left: calc(50% + 391px);
  width: 31px;
  height: 31px;
}

/* p-info */
.p-info > .c-colorBalls .c-colorBall:nth-child(1) {
  top: -19px;
  left: 305px;
  width: 79px;
  height: 79px;
}

.p-info > .c-colorBalls .c-colorBall:nth-child(2) {
  top: -19px;
  left: calc(50% + 482px);
  width: 103px;
  height: 103px;
}

/* p-story */
.p-story > .c-colorBalls {
  z-index: 1;
}

.p-story .c-colorBall--redDeep {
  background: rgba(213, 0, 0, 0.400283);
}

.p-story .c-colorBall--blue {
  background: rgba(60, 172, 213, 0.195436);
}

.p-story > .c-colorBalls .c-colorBall:nth-child(1) {
  top: 150px;
  left: calc(100% - 30px);
  width: 48px;
  height: 48px;
}

.p-story > .c-colorBalls .c-colorBall:nth-child(2) {
  top: 221px;
  left: calc(100% - 76px);
  width: 36px;
  height: 36px;
}

.p-story > .c-colorBalls .c-colorBall:nth-child(3) {
  top: 423px;
  left: calc(50% + 307px);
  width: 84px;
  height: 84px;
}

.p-story > .c-colorBalls .c-colorBall:nth-child(4) {
  top: 229px;
  left: calc(50% + 466px);
  width: 112px;
  height: 112px;
}

/* p-discovery */
.p-discovery > .c-colorBalls {
  z-index: 1;
}

.p-discovery .c-colorBall--orange {
  background: rgba(240, 131, 0, 0.201003);
}

.p-discovery .c-colorBall--green {
  background: rgba(111, 188, 126, 0.197835);
}

.p-discovery .c-colorBall--red {
  background: rgba(213, 0, 0, 0.318467);
}

.p-discovery .c-colorBall--yellowMid {
  background: rgba(235, 208, 62, 0.318467);
}

.p-discovery .c-colorBall--yellowDeep {
  background: rgba(235, 208, 62, 0.400283);
}

.p-discovery .c-colorBall--blue {
  background: rgba(60, 172, 213, 0.200695);
}

.p-discovery .c-colorBall--purple {
  background: rgba(153, 110, 181, 0.318467);
}

.p-discovery .c-colorBall--redDeep {
  background: rgba(213, 0, 0, 0.400283);
}

.p-discovery .c-colorBall--strokeOrange {
  opacity: 0.697558;
}

.p-discovery > .c-colorBalls .c-colorBall:nth-child(1) {
  top: 78px;
  left: 285px;
  width: 120px;
  height: 120px;
}

.p-discovery > .c-colorBalls .c-colorBall:nth-child(2) {
  top: 416px;
  left: 300px;
  width: 70px;
  height: 70px;
}

.p-discovery > .c-colorBalls .c-colorBall:nth-child(3) {
  top: 423px;
  left: 34px;
  width: 22px;
  height: 22px;
}

.p-discovery > .c-colorBalls .c-colorBall:nth-child(4) {
  top: 745px;
  left: 27px;
  width: 35px;
  height: 35px;
}

.p-discovery > .c-colorBalls .c-colorBall:nth-child(5) {
  top: 1091px;
  left: 344px;
  width: 61px;
  height: 61px;
}

.p-discovery > .c-colorBalls .c-colorBall:nth-child(6) {
  top: 1084px;
  left: -95px;
  width: 144px;
  height: 144px;
}

.p-discovery > .c-colorBalls .c-colorBall:nth-child(7) {
  top: 1466px;
  left: 338px;
  width: 29px;
  height: 29px;
}

.p-discovery > .c-colorBalls .c-colorBall:nth-child(8) {
  top: 131px;
  left: calc(50% - 710px);
  width: 269px;
  height: 269px;
}

.p-discovery > .c-colorBalls .c-colorBall:nth-child(9) {
  top: 389px;
  left: calc(50% + 413px);
  width: 140px;
  height: 140px;
}

.p-discovery > .c-colorBalls .c-colorBall:nth-child(10) {
  top: 355px;
  left: calc(50% - 159px);
  width: 28px;
  height: 28px;
}

.p-discovery > .c-colorBalls .c-colorBall:nth-child(11) {
  top: 899px;
  left: calc(50% - 562px);
  width: 117px;
  height: 117px;
}

.p-discovery > .c-colorBalls .c-colorBall:nth-child(12) {
  top: 1136px;
  left: calc(50% - 701px);
  width: 230px;
  height: 230px;
}

.p-discovery > .c-colorBalls .c-colorBall:nth-child(13) {
  top: 1162px;
  left: calc(50% + 495px);
  width: 61px;
  height: 61px;
}

.p-discovery > .c-colorBalls .c-colorBall:nth-child(14) {
  top: 1690px;
  left: calc(50% + 410px);
  width: 61px;
  height: 61px;
}

.p-discovery > .c-colorBalls .c-colorBall:nth-child(15) {
  top: 1844px;
  left: calc(50% + 343px);
  width: 257px;
  height: 257px;
}

.p-discovery > .c-colorBalls .c-colorBall:nth-child(16) {
  top: 1916px;
  left: calc(50% - 543px);
  width: 112px;
  height: 112px;
}

.p-discovery > .c-colorBalls .c-colorBall:nth-child(17) {
  top: 2007px;
  left: calc(50% + 300px);
  width: 94px;
  height: 94px;
}

/* p-people */
.p-people > .c-colorBalls .c-colorBall:nth-child(1) {
  top: -157px;
  left: -9px;
  width: 58px;
  height: 58px;
}

.p-people > .c-colorBalls .c-colorBall:nth-child(2) {
  top: -115px;
  left: 328px;
  width: 120px;
  height: 120px;
}

.p-people > .c-colorBalls .c-colorBall:nth-child(3) {
  top: -39px;
  left: 308px;
  width: 44px;
  height: 44px;
}

.p-people > .c-colorBalls .c-colorBall:nth-child(4) {
  top: -81px;
  left: calc(50% + 300px);
  width: 94px;
  height: 94px;
}

.p-people > .c-colorBalls .c-colorBall:nth-child(5) {
  top: -172px;
  left: calc(50% - 543px);
  width: 112px;
  height: 112px;
}

@media (min-width: 768px) {
  .p-people > .c-colorBalls .c-colorBall:nth-child(4),
  .p-people > .c-colorBalls .c-colorBall:nth-child(5) {
    display: none;
  }
}

/* p-support */
.p-support > .c-colorBalls .c-colorBall:nth-child(1) {
  top: 20px;
  left: 75px;
  width: 240px;
  height: 240px;
}

@media (min-width: 768px) {
  .p-support > .c-colorBalls .c-colorBall:nth-child(1) {
    top: 70px;
    left: calc(50% - 200px);
    width: 400px;
    height: 400px;
  }
}

/* p-recruit__primary */
.p-recruit__primary > .c-colorBalls {
  z-index: 1;
}

.p-recruit__primary > .p-works__inner {
  position: relative;
  z-index: 2;
}

.p-recruit__primary .c-colorBall--cream {
  opacity: 0.274783;
  background: rgba(253, 247, 224, 0.274783);
}

.p-recruit__primary > .c-colorBalls .c-colorBall:nth-child(1) {
  top: 71px;
  left: calc(50% - 513px);
  width: 270px;
  height: 270px;
}

.p-recruit__primary > .c-colorBalls .c-colorBall:nth-child(2) {
  top: 42px;
  left: calc(50% + 579px);
  width: 164px;
  height: 164px;
  background: rgba(253, 247, 224, 0.177811);
}

.p-recruit__primary > .c-colorBalls .c-colorBall:nth-child(3) {
  top: 103px;
  left: calc(50% + 341px);
  width: 124px;
  height: 124px;
}

.p-recruit__primary > .c-colorBalls .c-colorBall:nth-child(4) {
  top: 522px;
  left: calc(50% - 105px);
  width: 71px;
  height: 71px;
}

.p-recruit__primary > .c-colorBalls .c-colorBall:nth-child(5) {
  top: 321px;
  left: calc(50% + 449px);
  width: 110px;
  height: 110px;
}

.p-recruit__primary > .c-colorBalls .c-colorBall:nth-child(6) {
  top: 373px;
  left: calc(50% - 664px);
  width: 199px;
  height: 199px;
  opacity: 0.394975;
  background: rgba(253, 247, 224, 0.394975);
}

.p-recruit__primary > .c-colorBalls .c-colorBall:nth-child(7) {
  top: 171px;
  left: calc(50% + 304px);
  width: 71px;
  height: 71px;
}

.p-recruit__primary > .c-colorBalls .c-colorBall:nth-child(8) {
  top: 256px;
  left: calc(50% - 380px);
  width: 120px;
  height: 120px;
}

.p-recruit__primary > .c-colorBalls .c-colorBall:nth-child(9) {
  top: 443px;
  left: calc(50% + 95px);
  width: 73px;
  height: 73px;
}
@media (max-width: 767px) {
  .p-info{
    padding: 0;
  }
  .p-story__nav{
    justify-content: flex-end;
  }
  .p-story{
    padding: 24px 0 0;
  }
  .p-people::before{
    top: 10px;
  }
}

/* ========================================
   Lower — careers / comeback / disability / group
   流用部分は .p-lower、ページ固有は各ブロック
======================================== */
.p-lower {
  position: relative;
  color: var(--works-color-text);
  font-family: var(--works-font);
  overflow: hidden;
}

.p-lower [aria-hidden="true"] {
  display: block;
}

.p-lower__hero {
  position: relative;
  padding-top: 20px;
}

.p-lower__heroInner {
  position: relative;
  display: flex;
  flex-direction: column;
}

.p-lower__heroPanel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-height: 148px;
  margin: 0;
  padding: 55px 20px 40px;
  color: var(--works-color-white);
  background-color: var(--works-color-orange-sub);
  border-radius: 0;
  overflow: visible;
}

.p-lower__heroPanel > .c-colorBalls {
  z-index: 0;
}

.p-lower__heroPanel .c-colorBall--cream {
  background: rgba(253, 247, 224, 0.274783);
  opacity: 0.274783;
}

.p-lower__heroTitle {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0.02em;
}

.p-lower__heroTitle--compact {
  font-size: 26px;
  line-height: 1.3;
}

.p-lower__heroPanel > .c-colorBalls .c-colorBall:nth-child(1) {
  top: -20px;
  left: -20px;
  width: 102px;
  height: 103px;
}

.p-lower__heroPanel > .c-colorBalls .c-colorBall:nth-child(2) {
  top: 24px;
  left: 71px;
  width: 50px;
  height: 51px;
}

.p-lower__heroPanel > .c-colorBalls .c-colorBall:nth-child(3) {
  top: 34px;
  left: 233px;
  width: 49px;
  height: 48px;
}

.p-lower__heroPanel > .c-colorBalls .c-colorBall:nth-child(4) {
  top: 96px;
  left: 315px;
  width: 85px;
  height: 85px;
}

.p-lower__heroPanel > .c-colorBalls .c-colorBall:nth-child(5) {
  top: 140px;
  left: -10px;
  width: 60px;
  height: 60px;
}

.p-lower__content {
  position: relative;
  z-index: 1;
  padding: 40px 0 80px;
}

.p-lower__heading {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  color: var(--works-color-text);
}

.p-lower__rule {
  display: block;
  width: 100%;
  height: 3px;
  margin: 12px 0 0;
  border: 0;
  background-color: var(--works-color-orange);
}

.p-lower__rule--thin {
  height: 1px;
  margin-top: 48px;
  background-color: #d9d9d9;
}

.p-lower__lead {
  margin: 24px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: var(--works-color-text);
}

.p-lower__lead p {
  margin: 0;
}

.p-lower__ctaWrap {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.p-works .p-lower__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 350px;
  height: 64px;
  padding: 0 24px;
  border-radius: 40px;
  background-color: var(--works-color-orange);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
  color: var(--works-color-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.p-works .p-lower__cta:hover {
  opacity: 0.88;
  color: var(--works-color-white);
}

.p-lower__ctaIcon {
  display: inline-flex;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.p-lower__ctaIcon img {
  width: 100%;
  height: 100%;
}

.p-lower__related {
  margin: 0;
  padding-top: 40px;
}

.p-lower__relatedList {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1080px;
}

.p-lower__relatedCard {
  display: block;
  color: inherit;
  text-decoration: none;
  text-align: center;
}

.p-lower__relatedMedia {
  overflow: hidden;
  border-radius: 22px;
  background-color: #d9d9d9;
  aspect-ratio: 512 / 240;
}

.p-lower__relatedMedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-lower__relatedMedia--company img {
  object-position: 55% 50%;
}

.p-lower__relatedMedia--training img {
  object-position: 45% 35%;
}

.p-lower__relatedCaption {
  margin: 16px 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--works-color-text);
}

.p-lower__relatedCard .c-more {
  justify-content: center;
}

@media screen and (max-width: 767px) {
  .Main:has(.p-lower) {
    padding-top: var(--works-site-header-top);
  }

  .p-lower__hero {
    padding-top: 0;
  }

  .p-lower__heroPanel {
    padding-top: 81px;
  }
}

/* ---- careers ---- */
.p-careers__positions {
  margin-top: 40px;
}

.p-careers__subHeading {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: var(--works-color-text);
}

.p-careers__note {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: var(--works-color-text);
}

.p-works .p-careers__inlineLink {
  color: var(--works-color-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.p-works .p-careers__inlineLink:hover {
  opacity: 0.8;
}

/* ---- comeback ---- */
.p-comeback__tableWrap {
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  background-color: var(--works-color-white);
}

.p-comeback__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.p-comeback__table th,
.p-comeback__table td {
  padding: 20px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: var(--works-color-text);
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid #e8e8e8;
}

.p-comeback__table tr:last-child th,
.p-comeback__table tr:last-child td {
  border-bottom: 0;
}

.p-comeback__table th {
  width: 28%;
  font-weight: 700;
  background-color: #fdf7e0;
  border-right: 1px solid #e8e8e8;
}

.p-comeback__table td {
  width: 72%;
  background-color: var(--works-color-white);
}

@media screen and (max-width: 767px) {
  .p-comeback__table,
  .p-comeback__table tbody,
  .p-comeback__table tr,
  .p-comeback__table th,
  .p-comeback__table td {
    display: block;
    width: 100%;
  }

  .p-comeback__table th {
    border-right: 0;
    border-bottom: 0;
    padding-bottom: 8px;
  }

  .p-comeback__table td {
    padding-top: 8px;
  }

  .p-comeback__table tr + tr th {
    border-top: 1px solid #e8e8e8;
  }
}

.p-comeback__system {
  margin-top: 48px;
}

.p-comeback__diagram {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 8px;
  background-color: var(--works-color-white);
  border-radius: 12px;
}

.p-comeback__diagram picture,
.p-comeback__diagram img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 640px;
  margin: 0 auto;
}

/* ---- disability ---- */
.p-disability__cards {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}

.p-disability__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  border-radius: 20px;
  background-color: var(--works-color-white);
}

.p-disability__cardTitle {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  color: var(--works-color-orange);
  text-align: center;
}

.p-disability__card .p-lower__ctaWrap {
  width: 100%;
}

.p-disability__ctaWrap {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.p-works .p-lower__cta--28 {
  background-color: var(--works-color-orange-sub);
}

.p-disability__cardNote {
  margin: 24px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: var(--works-color-text);
  text-align: center;
}

.p-disability__moreWrap {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.p-works .p-disability__moreBtn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  height: 64px;
  padding: 0 56px 0 24px;
  border: 1px solid var(--works-color-brown);
  border-radius: 32px;
  font-size: 14px;
  font-weight: 700;
  line-height: 18.9px;
  color: var(--works-color-brown);
  text-decoration: none;
  background: var(--works-color-white);
  transition: opacity 0.2s ease;
}

.p-works .p-disability__moreBtn:hover {
  opacity: 0.88;
  color: var(--works-color-brown);
}

.p-disability__moreBtnLabel {
  display: block;
  width: 240px;
  max-width: 100%;
  text-align: center;
}

.p-disability__moreBtnIcon[aria-hidden="true"] {
  position: absolute;
  top: 50%;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  line-height: 0;
  background-color: var(--works-color-brown);
  border-radius: 50%;
  overflow: hidden;
  transform: translateY(-50%);
  transition: background-color 0.2s ease;
}

.p-works .p-disability__moreBtn:hover .p-disability__moreBtnIcon {
  background-color: var(--works-color-orange);
}

.p-disability__moreBtnIcon img {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---- group ---- */
.p-group__companyList {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
}

.p-group__companyCard {
  display: block;
  color: inherit;
  text-decoration: none;
}

.p-works .p-group__companyCard:hover {
  color: inherit;
  text-decoration: none;
}

.p-works .p-group__companyCard:hover .p-group__companyLabel {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.p-group__companyMedia {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 273 / 182;
  padding: 0;
  border-radius: 10px;
  background-color: var(--works-color-white);
  overflow: hidden;
}

.p-group__companyMedia img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.p-group__companyMedia--hospital img,
.p-group__companyMedia--biochemifa img,
.p-group__companyMedia--marketing img {
  width: 73.72%;
  height: auto;
}

.p-group__companyMedia--soy img {
  width: 40.29%;
  height: auto;
}

.p-group__companyMedia--delmonte img {
  width: 59.34%;
  height: auto;
}

.p-group__companyMedia--manns img {
  width: 50.55%;
  height: auto;
}

.p-group__companyMedia--takara img {
  width: 61.44%;
  height: auto;
}

.p-group__companyName {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--works-color-text);
}

.p-group .p-group__companyMarker[aria-hidden="true"] {
  display: block;
  flex-shrink: 0;
  color: var(--works-color-brown);
  line-height: inherit;
}

.p-group__companyLabel {
  white-space: nowrap;
}

.p-group__companyBreak {
  display: block;
}

@media screen and (min-width: 1200px) {
  .p-group__companyBreak {
    display: none;
  }
}

.p-works .p-group__companyBlank {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  max-width: none;
  vertical-align: -0.15em;
}

@media screen and (min-width: 768px) {
  .Main:has(.p-lower) {
    padding-top: 90px;
  }

  .p-lower__hero {
    padding-top: 0;
  }

  .p-lower__heroInner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: block;
  }

  .p-lower__heroPanel {
    width: calc(100% + 80px);
    max-width: none;
    min-height: 148px;
    margin: 0 -40px;
    padding: 54px 40px 40px;
    border-radius: 0;
  }

  .p-lower__heroTitle,
  .p-lower__heroTitle--compact {
    font-size: 40px;
    line-height: 48px;
  }

  .p-lower__heroPanel > .c-colorBalls .c-colorBall:nth-child(6) {
    top: -40px;
    left: -50px;
    width: 215px;
    height: 215px;
  }

  .p-lower__heroPanel > .c-colorBalls .c-colorBall:nth-child(7) {
    top: 67px;
    left: 117px;
    width: 96px;
    height: 96px;
  }

  .p-lower__heroPanel > .c-colorBalls .c-colorBall:nth-child(8) {
    top: 67px;
    left: 387px;
    width: 93px;
    height: 90px;
  }

  .p-lower__heroPanel > .c-colorBalls .c-colorBall:nth-child(9) {
    top: -10px;
    left: 340px;
    width: 57px;
    height: 56px;
  }

  .p-lower__content {
    padding: 48px 0 96px;
  }

  .p-lower__inner {
    padding-inline: 40px;
  }

  .p-lower__heading {
    font-size: 26px;
    line-height: 40px;
  }

  .p-lower__rule {
    margin-top: 13px;
  }

  .p-lower__rule--thin {
    margin-top: 72px;
  }

  .p-lower__lead {
    margin-top: 32px;
    font-size: 16px;
    line-height: 32px;
  }

  .p-lower__ctaWrap {
    margin-top: 48px;
  }

  .p-works .p-lower__cta {
    max-width: 512px;
    height: 80px;
    gap: 16px;
    font-size: 16px;
    line-height: 22px;
  }

  .p-lower__ctaIcon {
    width: 22px;
    height: 22px;
  }

  .p-lower__related {
    padding-top: 80px;
  }

  .p-lower__relatedList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
  }

  .p-lower__relatedCaption {
    margin-top: 20px;
    font-size: 20px;
    line-height: 28px;
  }

  .p-careers__positions {
    margin-top: 56px;
  }

  .p-careers__subHeading {
    font-size: 20px;
    line-height: 36px;
  }

  .p-careers__note {
    margin-top: 16px;
    font-size: 16px;
    line-height: 32px;
  }

  .p-comeback__tableWrap {
    margin-top: 56px;
  }

  .p-comeback__table th,
  .p-comeback__table td {
    padding: 28px 24px;
    font-size: 16px;
    line-height: 28px;
  }

  .p-comeback__table th {
    width: 300px;
  }

  .p-comeback__table td {
    width: auto;
  }

  .p-comeback__system {
    margin-top: 72px;
  }

  .p-comeback__diagram {
    margin-top: 40px;
    padding: 40px;
    border-radius: 20px;
  }

  .p-comeback__diagram picture,
  .p-comeback__diagram img {
    max-width: 1200px;
  }

  .p-disability__cards {
    margin-top: 56px;
    gap: 30px;
  }

  .p-disability__card {
    padding: 56px 40px 48px;
  }

  .p-disability__card--career {
    padding-bottom: 56px;
  }

  .p-disability__cardTitle {
    font-size: 26px;
    line-height: 40px;
  }

  .p-disability__card .p-lower__ctaWrap {
    margin-top: 40px;
  }

  .p-disability__ctaWrap {
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
  }

  .p-works .p-disability__ctaWrap .p-lower__cta {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 512px;
  }

  .p-works .p-disability__card:not(.p-disability__card--career) .p-lower__cta {
    font-size: 18px;
    line-height: 26.6px;
  }

  .p-disability__cardNote {
    margin-top: 40px;
    font-size: 16px;
    line-height: 32px;
  }

  .p-disability__moreWrap {
    margin-top: 40px;
  }

  .p-group__companyList {
    margin-top: 56px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 80px 24px;
  }

  .p-group__companyName {
    margin-top: 16px;
    gap: 8px;
    font-size: 15px;
    line-height: 1.725;
  }

  .p-works .p-group__companyBlank {
    width: 22px;
    height: 22px;
    margin-left: 4px;
    vertical-align: -0.2em;
  }
}

@media screen and (min-width: 1280px) {
  .p-lower__heroPanel {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 600px);
    padding-right: calc(50vw - 600px);
  }
}

/* 外部サイトアイコン。リンクにクラスを足して使いまわす */
.c-extIcon::after {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  background: center / contain no-repeat;
  vertical-align: middle;
}

.c-extIcon--white::after {
  background-image: url("/jp/works/img/new/icon_external_white.png");
}

.c-extIcon--orange::after {
  background-image: url("/jp/works/img/new/icon_external_orange.png");
}

.c-extIcon--sub::after {
  background-image: url("/jp/works/img/new/icon_external_sub.png");
}

.c-extIcon--end {
  position: relative;
}

.c-extIcon--end::after {
  position: absolute;
  top: 50%;
  right: 12px;
  margin-left: 0;
  transform: translateY(-50%);
}

.inquiry-button__type.c-extIcon--end {
  padding-right: 3.2em;
}

.inquiry-button__type.c-extIcon--end::after {
  right: 1.4em;
}

.p-lower__cta.c-extIcon--end::after {
  right: 24px;
}

.p-storyDetail__ctaBtn.c-extIcon--end::after {
  right: 20px;
}

.c-extIcon--inline::after {
  width: 16px;
  height: 16px;
  vertical-align: -0.2em;
}

.c-extIcon--corner {
  position: relative;
}

.c-extIcon--corner::after {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 24px;
  margin-left: 0;
  background-image: url("/jp/works/img/new/icon_external_badge.png");
  transform: none;
}

.p-lower__cta.c-extIcon::after {
  margin-left: 0;
}

.inquiry-button__type.c-extIcon--white:hover::after {
  background-image: url("/jp/works/img/new/icon_external_orange.png");
}