@charset "utf-8";

/* ============================================================
   グローバル
   ============================================================ */
html {
  overflow-x: clip;
}

body {
  position: relative;
  min-height: auto;
}

/* PC/SP 表示切り替え */
.c-sp-only {
  display: none;
}

.sp-image {
  display: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.logo_wrap {
  svg {
    height: auto;
    aspect-ratio: 80 / 90;
    scale: var(--logo-scale, .57);

    path,
    rect {
      fill: currentColor !important;
    }
  }
}

.top_logo_icon,
.top_offering_icon {
  display: none;
}

.entry-btn {
  position: fixed;
  bottom: 2.5rem;
  left: 2.5rem;
  z-index: 10;
}

.header {
  mix-blend-mode: difference;

  &:has(.hamburger_nav.is_active) {
    mix-blend-mode: normal;
  }
}

.header_buttons {
  display: none;
  .common_btn {
    color: white !important;
    border-color: white !important;

    svg {
      stroke: currentColor !important;
    }
  }
}

.hamburger_pc_menu {
  position: fixed;
  background: white;

  .hamburger_bar {
    border-color: #656246;
  }
}

/* ============================================================
   RECRUIT MENU（アコーディオン）
   ============================================================ */
.recruit-menu {
  position: fixed;
  bottom: 0;
  right: 10rem;
  z-index: 100;
  width: 23rem;
  box-shadow: 3px 0 6px rgba(0, 0, 0, .15);
  color: #656246;
  border-radius: 1rem 1rem 0 0;
}

.recruit-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.6rem 2.4rem;
  background: rgba(237, 229, 223, .9);
  border: none;
  cursor: pointer;
  font-family: "Lora", serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: #656246;
  border-radius: 1rem 1rem 0 0;
}

/* 開閉アイコン（＋／－） */
.recruit-menu__icon {
  position: relative;
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;

  &::before,
  &::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: .7rem;
    height: 2px;
    background: var(--light-brown);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s, transform 0.3s;
  }

  &::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }
}

.recruit-menu__toggle[aria-expanded="true"] {
  .recruit-menu__icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

/* メニュー本体（アコーディオン） */
.recruit-menu__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;

  &.is-open {
    max-height: 50rem;
  }
}

.recruit-menu__list {
  list-style: none;
  margin: 0;
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.recruit-menu__link {
  font-family: "Zen Kaku Gothic New", sans-serif;
  display: block;
  padding: 1em 0;
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: .05em;
  color: currentColor;
  text-decoration: none;
  border-bottom: 1px solid #e0ddd5;
  transition: color 0.2s;
  background: rgba(237, 229, 223, .9);
  width: 100%;

  &:hover {
    color: var(--light-brown);
  }
}

/* ============================================================
   PAGE TITLE
   ============================================================ */
.page-title {
  z-index: 1;
  color: white;
  margin-top: 28rem;
  margin-left: 9.7rem;
}

.page-title__en {
  font-size: 6.4rem;
  letter-spacing: .001em;
  font-family: "Lora", serif;
  /*font-weight: 600;*/
}

.page-title__ja {
  position: relative;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: .02em;
  display: inline-flex;
  padding-inline: .25em;

  &::before {
    content: "";
    position: absolute;
    left: 0;
    top: 40%;
    right: 0;
    bottom: -.15em;
    background: #656246;
    z-index: -1;
    border-radius: 5px;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: grid;
  clip-path: inset(0);
  z-index: 1;
  background: white;
  overflow: hidden;

  .p-front-video {
    position: fixed;
    inset: 0;
    z-index: -1;
  }
}

.hero__fv {
  position: relative;
  height: 100vh;
}

.hero__catch {
  position: fixed;
  top: 50vh;
  right: 10rem;
  color: white;
  z-index: 2;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 5.2rem;
  font-family: "Shippori Mincho B1", serif;
  letter-spacing: .15em;
  white-space: nowrap;
}

.hero__en {
  position: absolute;
  bottom: 16.2rem;
  left: 2.2rem;
  font-family: "Lora", serif;
  color: white;
  font-size: 10.3rem;
  letter-spacing: .009em;
  z-index: 1;
}

.hero__intro {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  justify-content: center;
  height: 100vh;
  color: white;
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 2;
  text-align: center;
  gap: 5rem;
  anchor-name: --my-anchor;

  > * {
    position: relative;
    z-index: 1;
  }

  &::after {
    content: '';
    position: absolute;
    inset: -100vh calc(50% - 50vw) 0;
    background: rgba(101, 98, 70, .7);
    mix-blend-mode: multiply;
    z-index: 0;
    opacity: var(--intro-bg-opacity, 0);
  }
}

/* CSS Anchor Positioning 対応ブラウザ向け */
@supports (anchor-name: --myanchor) {
  .hero__pentagon {
    position: absolute;
    position-anchor: --my-anchor;
    background: url(../images/recruit/intro_bg.svg) no-repeat;
    background-size: 90.45rem;
    top: anchor(50%);
    left: anchor(50%);
    transform: translate(-50%, -50%);
    width: 90.45rem;
    height: 102.5rem;
    z-index: 10;
  }
}

/* CSS Anchor Positioning 非対応ブラウザ向け（::before で pentagon を代替） */
@supports not (anchor-name: --myanchor) {
  .hero__intro {
    &::before {
      content: '';
      position: absolute;
      background: url(../images/recruit/intro_bg.svg) no-repeat;
      background-size: 90.45rem;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 90.45rem;
      height: 102.5rem;
      z-index: 10;
    }
  }
}

.hero__intro-button {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  color: currentColor;
}

.hero__intro-circle {
  width: 5rem;
  height: 5rem;
  filter: brightness(10);
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-grid;
  align-content: space-around;
  justify-content: center;
  transition: all 0.6s;
  position: relative;

  svg {
    width: 1.2rem;
    height: auto;
    aspect-ratio: 1;
  }
}

.fixed_area {
  position: absolute;
  /*z-index: 1;*/
  top: 0;
  bottom: 0;
  height: 100%;
  max-height: 100%;
  clip-path: inset(0);
  pointer-events: none;

  .page-title {
    position: fixed;
    top: 0;
    pointer-events: auto;
  }
}

/* ============================================================
   セクション共通
   ============================================================ */
.section__image > * {
  position: sticky;
  bottom: 0;
  z-index: 0;
}

.section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.section__title {
  font-size: 3rem;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  letter-spacing: .1em;
}

.section__label {
  font-family: "Lora", serif;
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: .03em;
}

.main_wrapper {
  display: block;
}

.container {
  width: 100%;
}

.section-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 70rem;

  > *:not(.section-bg) {
    grid-column: 2;
  }

  .section-bg {
    grid-column: 1;
    position: sticky;
    top: 0;

    > * {
      display: block;
      position: absolute;
      top: 0;
      opacity: 0;
      transition: .5s opacity;

      &.is-active {
        opacity: 1;
      }
    }

    img {
      width: 100%;
      height: 100vh;
      object-fit: cover;
      object-position: right;
      vertical-align: middle;
    }
  }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  position: relative;
  background: #656246;
  color: white;
  /*min-height: 100vh;*/
  padding-block: 14.7rem;
  transition: background-color 0.8s ease, color 0.8s ease;

  /* パネル別の背景色・文字色 */
  &[data-panel="0"] { background-color: #656246; color: white; }
  &[data-panel="1"] { background-color: #EDE5DF; color: #656246; }
  &[data-panel="2"] { background-color: #7A7860; color: white; }
  &[data-panel="3"] { background-color: #A3A18F; color: white; }
  &[data-panel="4"] { background-color: #FFFFFF; color: #656246; }

  /* 文字色が暗いパネルのナビ円・ラベル色 */
  &[data-panel="1"],
  &[data-panel="4"] {
    .about__nav-progress {
      stroke: #656246;
    }

    .about__nav-item.is-active .about__nav-label {
      color: #656246;
    }
  }
}

.about__body {
  position: relative;
  margin-top: 6.5rem;
}

.about__panels {
  position: relative;
  height: 100%;
}

.about__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s, visibility 0.8s;

  &:first-child {
    position: relative;
  }

  &.is-active {
    opacity: 1;
    visibility: visible;
  }
}

/* --- ナビゲーション --- */
.about__nav {
  position: absolute;
  right: calc(50% - 42.4rem / 2 - 1rem);
  top: 50%;
  transform: translate(100%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.about__nav-item {
  position: relative;
  width: 4.6rem;
  height: 4.6rem;
  display: inline-grid;
  place-items: center;

  &.is-active {
    .about__nav-progress {
      animation: about-nav-progress 10s linear forwards;
    }

    .about__nav-label {
      color: white;
    }
  }
}

.about__nav-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* 12時の位置から描画開始 */
}

.about__nav-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
}

/* 円の周長: 2π × 22 ≈ 138.23 */
.about__nav-progress {
  fill: none;
  stroke: white;
  stroke-width: 1;
  stroke-dasharray: 138.23;
  stroke-dashoffset: 138.23; /* 初期は非表示 */
}

@keyframes about-nav-progress {
  from { stroke-dashoffset: 138.23; }
  to   { stroke-dashoffset: 0; }
}

.about__nav-label {
  font-family: "Lora", serif;
  font-size: 1.5rem;
}

.about__catch {
  font-size: 3rem;
  font-weight: 500;
  font-family: "Shippori Mincho B1", serif;
  letter-spacing: .025em;
  text-align: center;
  margin-bottom: 7.2rem;
}

.about__text {
  font-family: "Zen Old Mincho", serif;
  font-size: 1.9rem;
  letter-spacing: .02em;
  line-height: 1.736842;
  width: 42.4rem;
  margin-inline: auto;
}

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 15rem 0;
  gap: 0;
  justify-content: center;
  align-items: center;
  text-align: center;

  .section__head {
    align-items: center;
    color: #656246;
    + .philosophy__body {
      margin-top: 7rem;
    }
  }
}

.philosophy__script {
  margin-top: 7rem;
  margin-bottom: 7rem;
}

.philosophy__body {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  text-align: center;
  color: #656246;
}

.philosophy__text {
  font-family: "Zen Old Mincho", serif;
  text-align: center;
  font-size: 1.9rem;
  letter-spacing: .02em;
  line-height: 1.8421052632;
}

.philosophy__name {
  font-family: "Shippori Mincho B1", serif;
  font-size: 1.8rem;
  margin-left: auto;
  margin-top: 3rem;
}

/* ============================================================
   DATA
   ============================================================ */
.data {
  display: flex;
  flex-direction: column;
  gap: 12rem;
  padding: 13rem 6rem 20rem;
  background: #a3a18f;
  color: white;
}

.data__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8.5rem 2.5rem;
}

.data__item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  &.--full {
    position: relative;
    grid-column: 1 / -1;

    .data__item-img img {
      height: 24rem;
    }

    .data__item-text {
      position: absolute;
      width: 27.7rem;
      bottom: 0;
      right: 0;
    }
  }
}

.data__item-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: bold;
  font-size: 2rem;
  letter-spacing: .02em;
  text-align: center;
}

.data__item-img {
  display: flex;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  &.is-visible {
    transform: scale(1);
  }

  img {
    width: auto;
    height: 8.8rem;
  }
}

.data__item-text {
  font-size: 1.5rem;
  font-family: sans-serif;
  letter-spacing: .05em;
  line-height: 1.4;
  background: no-repeat;
  background-size: contain;
  padding: 3.8rem 2.65rem 1.2rem;
  aspect-ratio: 277 / 97;

  &[data-fukidashi-dir=left] {
    background-image: url(../images/recruit/data_fukidashi_left.png);
  }

  &[data-fukidashi-dir=right] {
    background-image: url(../images/recruit/data_fukidashi_right.png);
  }
}

/* ============================================================
   INTERVIEW
   ============================================================ */
.interview {
  position: relative;
  z-index: 2;
  background: #ede5df;
  color: #656246;
  padding-top: 11.4rem;
  padding-left: 6rem;
  padding-bottom: 13rem;
  border-radius: 0 0 17rem 0;
}

.interview__carousel {
  /* name-en の左出っ張り分だけ左に拡張してclipの起点を確保 */
  overflow: hidden;
  margin-left: -2.5rem;
  padding-left: 2.5rem;
}

.interview__list {
  margin-top: 4.8rem;

  /* Slickのデフォルトmarginをリセットしてgapを設定 */
  .slick-slide {
    margin-right: 4.57rem;
  }

  /* name-en（left: -2.3rem）がclipされないようpaddingで余白を確保し位置を戻す */
  .slick-list {
    padding-left: 2.5rem !important;
    margin-left: -2.5rem;
    margin-right: -4.57rem;
  }
}

.interview__item {
  position: relative;
  width: 33.6rem;
  display: block;
  color: currentColor;
}

.interview__nav {
  display: flex;
  gap: 4rem;
  margin-top: 8.5rem;
  justify-content: center;
}

.interview__prev,
.interview__next {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

.interview__item-img {
  position: relative;
  clip-path: url(#interview-clip);
  aspect-ratio: 336.019 / 381.03;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  &::before {
    position: absolute;
    content: '';
    inset: 0;
    background: rgb(101, 98, 70, .7);
    mix-blend-mode: multiply;
  }

  &::after {
    position: absolute;
    content: '';
    inset: 0;
    background: url(../images/recruit/interview_item_plus.png) 46% 45% no-repeat;
    background-size: 5rem;
  }

  &::before,
  &::after {
    opacity: 0;
    transition: .3s;
  }

  &:hover {
    &::before,
    &::after {
      opacity: 1;
    }
  }
}

.interview__item-body {
  position: absolute;
  bottom: 0;
  left: 0;
}

.interview__item-name-en {
  position: absolute;
  top: 0;
  left: calc(-1em - .8rem);
  font-family: 'lora', serif;
  font-size: 1.5rem;
  letter-spacing: .03em;
  writing-mode: vertical-rl;
  color: #656246;
}

.interview__item-qualification {
  font-size: 1.6rem;
  font-weight: 600;
  font-family: sans-serif;
  letter-spacing: .025em;
}

.interview__item-year {
  font-size: 1.3rem;
  font-weight: 400;
  font-family: sans-serif;
  letter-spacing: .025em;
  margin-bottom: 0.5em;
}

.interview__item-name {
  font-size: 2.2rem;
  font-family: sans-serif;
  font-weight: 600;
  letter-spacing: .1em;
  text-box: trim-both;
  margin-top: .5em;
}

/* ============================================================
   BENEFIT
   ============================================================ */
.benefit {
  position: relative;
  z-index: 0;
  background: #656246;
  color: white;
  padding-inline: 8rem;
  padding-top: calc(14.7rem + 17rem);
  margin-top: -17rem;
  padding-bottom: 14.7rem;
}

.benefit__list {
  margin-top: 5.3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}

.benefit__item {
  background: #ede5df;
  border-radius: .5rem;
  color: #656246;
  flex-direction: column;
  align-items: center;
  padding: 4.25rem;
}

.benefit__item-title {
  position: relative;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: .05em;
  line-height: 1.45;
  text-align: center;
  min-height: calc(2em * 1.45);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .75em;
  margin-bottom: 1.5em;

  &::after {
    position: absolute;
    bottom: -.75em;
    transform: translateY(50%);
    content: "";
    width: 0.75em;
    height: 4px;
    background: currentColor;
  }
}

.benefit__item-text {
  flex: 1;
  font-family: sans-serif;
  font-size: 1.6em;
  letter-spacing: .05em;
  line-height: 1.8125;
}

/* ============================================================
   JOB
   ============================================================ */
.job {
  padding-top: 14rem;
  padding-bottom: 30rem;
  background: #656246;
  color: white;
  position: relative;
  z-index: 1;
}

.job__list {
  margin-top: 4.25rem;
  padding-left: 9.4rem;
  padding-right: 6rem;
}

.job__item {
  position: relative;
  display: flex;
  align-items: center;
  color: currentColor;
  padding-block: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.job__num {
  position: absolute;
  left: -3.4rem;
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  letter-spacing: .03em;
}

.job__item-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: .02em;
  margin-right: auto;
}

/* ============================================================
   LAST
   ============================================================ */
.last {
  position: relative;
  height: 80rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 107.6rem;
  z-index: 1;
}

.last__text {
  position: absolute;
  font-family: 'Zen Old Mincho', serif;
  font-size: 1.8rem;
  letter-spacing: .02em;
  writing-mode: vertical-rl;
}

.last__text--01 {
  right: 10.3rem;
  top: 25.3rem;
}

.last__text--02 {
  left: 10.8rem;
  top: 32.1rem;
}

.last__text-en {
  text-align: center;
  position: absolute;
  font-family: 'Lora', serif;
  font-size: 2rem;
  letter-spacing: .01em;
  line-height: 1.75;
}

.last__img {
  position: absolute;
  overflow: hidden;
  border-radius: .5rem;
  will-change: transform;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
  }
}

.last__img--01 { top: -3.3rem;  right: 6rem; }
.last__img--02 { top: 11.6rem;  left: 10.8rem; }
.last__img--03 { right: 11.5rem; bottom: 11.5rem; }
.last__img--04 { bottom: -3.4rem; left: 6rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: absolute;
  bottom: 0;
  right: 0;
  height: auto;
  z-index: 0;

  &::after {
    position: absolute;
    content: '';
    background: #ede5df;
    bottom: calc(100% - 8rem);
    width: 100%;
    height: 100rem;
    z-index: -1;
  }
}

.footer_top {
  height: auto;
  padding-bottom: 9rem;
}

/* ============================================================
   モーダル共通 UI（閉じるボタン・ナビゲーション）
   ============================================================ */
.c-modal {
  transition: .5s;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
  background: #EDE5DF;
  width: 100%;
  height: 100%;

  button {
    background: none;
  }

  &:not([open]) {
    position: fixed;
    top: 0;
    pointer-events: none;
    visibility: hidden;
  }

  &::backdrop {
    transition: .5s;
  }

  &.-closing {
    opacity: 0;
    transform: scale(1);

    &::backdrop {
      opacity: 0;
    }
  }

  > * {
    opacity: 1;
  }

  &.-switching > * {
    opacity: 0;
    transition: .5s;
  }
}

.c-modal__close {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
}

.c-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;

  > * {
    pointer-events: auto;
  }
}

.c-modal__nav-btn.--prev {
  img {
    rotate: 180deg;
  }
}

/* ============================================================
   インタビューモーダル
   ============================================================ */
.interview__popup {
  color: #656246;
}

.interview__popup-content {
  display: grid;
  grid-template-columns: 50rem 1fr;
  padding: 8rem;
  gap: 6rem;

  img {
    width: 100%;
  }
}

.interview__popup-image {
  position: relative;
}

.interview__popup-image-clip {
  clip-path: url(#interview-clip);
  aspect-ratio: 336.019 / 381.03;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
  }
}

.interview__popup-catch {
  display: inline-block;
  flex-direction: column;
  align-items: flex-start;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 2.8rem;
  font-weight: 500;
  gap: 7px;
  margin-bottom: 1em;
  background: white;
  border-radius: 5px;
  padding: .2em .75em;

  span {
    display: inline-flex;
    display: contents;
    background: white;
    border-radius: 5px;
    padding: .2em .75em;
  }
}

.interview__popup-main {
  font-family: 'Noto Sans JP', sans-serif;
}

.interview__popup-header {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 3rem;
  font-family: 'Noto Sans JP', sans-serif;
  gap: .5em;
}

.interview__popup-year        { font-size: 1.4rem; letter-spacing: 0.025em; }
.interview__popup-qualification { font-size: 1.8rem; font-weight: 500; letter-spacing: 0.025em; }
.interview__popup-dept        { font-size: 1.4rem; letter-spacing: 0.025em; }

.interview__popup-name {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.interview__popup-name-jp {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 3rem;
  letter-spacing: .05em;
  font-weight: bold;
}

.interview__popup-name-en {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: .03em;
}

.interview__popup-position {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: .025em;
  padding-top: .5em;
}

.interview__popup-text {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1.8125;
}

.interview__popup-qa-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 6rem;
  margin-bottom: 1rem;
}

.interview__popup-qa-question {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .05em;
}

.interview__popup-qa-answer {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: .05em;
  line-height: 1.857143;
  margin-top: .5em;
}

.interview__popup-more {
  margin-left: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: .02em;
  width: 18rem;
  height: 4rem;
  border-radius: 2rem;
  border: 1px solid;
  color: currentColor;
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

/* ============================================================
   募集要項モーダル
   ============================================================ */
.job__popup {
  color: #656246;
  height: 100%;
  display: grid;
  align-items: center;
}

.job__popup-content {
  padding: 8rem;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 400;
}

.job__popup-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 10rem;
}

.job__popup-title {
  font-family: 'zen Kaku Gothic New', sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: .02em;
  min-width: 12rem;
}

.job__popup-description {
  font-size: 1.7rem;
  letter-spacing: .05em;
  font-weight: 500;
}

.job__popup-detail {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: 12rem 1fr;
  font-size: 1.6rem;
  letter-spacing: .05em;

  dt,
  dd {
    padding-block: .75em;
  }
}

.job__popup-detail-item {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: span 2;

  + .job__popup-detail-item {
    border-top: 1px dashed rgba(101, 98, 70, .5);
  }
}

.job__popup-detail-term { font-weight: 600; }
.job__popup-detail-desc { font-weight: 400; }

.job__popup-entry {
  display: flex;
  justify-content: flex-end;
  margin-top: 10rem;

  a {
    display: flex;
    justify-content: center;
    align-items: center;
    color: currentColor;
    font-size: 1.4rem;
    width: 12em;
    height: 2.8em;
    border: 1px solid;
    border-radius: 1.4em;
  }
}

/* ============================================================
   SP（max-width: 699.98px）
   ============================================================ */
@media screen and (max-width: 699.98px) {

  /* --- 変数 --- */
  :root {
    --vw: calc(100vw / 375);
  }

  /* --- グローバル --- */
  .c-sp-only { display: block; }
  .c-pc-only { display: none; }

  .sp-image {
    display: block;
    margin-top: -2px;

    img {
      width: 100%;
      height: auto;
      vertical-align: middle;
    }
  }

  body {
    overflow: clip;
  }

  /* --- HEADER --- */
  .logo_wrap svg {
    width: calc(var(--vw) * 37);
    height: auto;
    aspect-ratio: 80 / 90;
    scale: 1 !important;

    path {
      fill: currentColor !important;
    }
  }

  .header {
    /* pointer-events: none; */
    display: contents;

    .logo_wrap {
      position: fixed;
      top: 1rem;
      left: 1.8rem;
      z-index: 100;
      mix-blend-mode: difference;
    }
  }

  .header_inner {
    pointer-events: none;
    display: contents;

    > * {
      pointer-events: auto;
    }
  }

  .header_offering_icon {
    display: none;
  }

  .sp_menu_header {
    display: none;
  }

  /* --- RECRUIT MENU --- */
  .recruit-menu {
    top: 0;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(var(--vw) * 220);
    z-index: 11;
    display: flex;
    flex-direction: column-reverse;
    border-radius: 0 0 calc(var(--vw) * 10) calc(var(--vw) * 10);
  }

  .recruit-menu__toggle {
    border-radius: 0 0 calc(var(--vw) * 10) calc(var(--vw) * 10);
    padding: 0;
    height: calc(var(--vw) * 40);
  }

  .recruit-menu__label {
    white-space: nowrap;
    font-size: calc(var(--vw) * 13);
    letter-spacing: .015em;
  }

  .recruit-menu__icon {
    display: none;
  }

  .recruit-menu__list {
    margin-top: 0;
    margin-bottom: .5rem;
  }

  /* --- ENTRY BUTTON --- */
  .entry-btn {
    bottom: calc(var(--vw) * 5);
    left: calc(var(--vw) * 16);
    z-index: 10;

    img {
      width: calc(var(--vw) * 70);
      height: calc(var(--vw) * 70);
    }
  }

  /* --- PAGE TITLE --- */
  .fixed_area {
    display: none;
  }

  .section-wrapper {
    display: contents;

    .section-bg {
      > * {
        position: sticky;
        top: 0;
        display: block;
      }

      img {
        width: 100%;
        height: auto;
      }
    }
  }

  /* --- HERO --- */
  .hero {
    pointer-events: none;
    overflow: hidden;
  }
  .hero__fv {
    background: url(../images/recruit/sp/hero_bg.png) no-repeat 50% calc(100% - calc(var(--vw) * 96));
    background-size: 100% auto;
  }

  .hero__catch {
    position: absolute;
    font-size: calc(var(--vw) * 38);
    top: calc(var(--vw) * 70);
    right: calc(var(--vw) * 20);
    transform: translateY(0);
  }

  .hero__en {
    font-size: calc(var(--vw) * 58);
    bottom: calc(var(--vw) * 199);
    left: calc(var(--vw) * 19);
  }

  .hero__intro {
    font-size: calc(var(--vw) * 18);
    gap: calc(var(--vw) * 32);
    text-align: left;
    line-height: 1.722222;
    width: 100%;
    align-items: flex-start;
    padding-left: calc(var(--vw) * 25);

    &::before {
      display: none;
    }
  }

  .hero__pentagon {
    display: none;
  }

  .hero__intro-button {
    display: none;
  }

  /* --- セクション共通 --- */
  .section__head {
    gap: 0;
    margin-bottom: 0;
  }

  .section__title {
    font-size: calc(var(--vw) * 27);
  }

  .section__label {
    font-size: calc(var(--vw) * 16);
  }

  /* --- ABOUT --- */
  .about {
    position: relative;
    padding-block: calc(var(--vw) * 85);
    background: none;
    overflow: hidden;

    &::before {
      content: '';
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background-image: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2243.743%22%20height%3D%2249.603%22%20viewBox%3D%220%200%2043.743%2049.603%22%3E%20%3Cpath%20d%3D%22M0%2C0V34.533L39.832%2C49.6l3.9-25.934.009-.061L37.468%2C6.457l-.048-.132Z%22%20fill%3D%22%23656246%22%2F%3E%20%3C%2Fsvg%3E');
      background-repeat: no-repeat;
      background-size: contain;
      width: 280vw;
      aspect-ratio: 44 / 50;
      z-index: -1;
      scale: var(--sp-about-bg-scale, 0);
      transform-origin: left center;
    }
  }

  .about__catch {
    font-size: calc(var(--vw) * 20);
    line-height: 1.75;
    margin-bottom: calc(var(--vw) * 32);
  }

  .about__text {
    font-size: calc(var(--vw) * 16);
    line-height: 1.6875;
    width: 100%;
    padding-inline: calc(var(--vw) * 25);
  }

  .about__nav {
    position: relative;
    top: 0;
    right: 0;
    flex-direction: row;
    transform: translateY(0);
    justify-content: center;
    margin-top: calc(var(--vw) * 50);
  }

  /* --- PHILOSOPHY --- */
  .philosophy {
    aspect-ratio: auto;
    margin-left: 0;
    padding: calc(var(--vw) * 90) calc(var(--vw) * 25);
    gap: 0;
    background-image: url(../images/recruit/sp/philosophy.jpg?0422);
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    align-items: flex-start;

    .section__head {
      color: white;
      align-items: flex-start;
      margin-bottom: calc(var(--vw) * 50);
      + .philosophy__body {
        margin-top: calc(var(--vw) * 35);
      }
    }
  }

  .philosophy__body {
    color: white;
    text-align: left;
  }

  .philosophy__text {
    font-size: calc(var(--vw) * 16);
    text-align: left;
  }

  .philosophy__name {
    font-size: calc(var(--vw) * 16);
    margin-right: auto;
    margin-left: 0;
    margin-top: calc(var(--vw) * 10);
  }

  .philosophy__script {
    margin-block: calc(var(--vw) * 35);
    margin-top: calc(var(--vw) * 90);
    position: relative;
    order: 1;
    text-align: left;

    img {
      width: 99%;
    }
  }

  /* --- DATA --- */
  .data {
    padding: calc(var(--vw) * 90) calc(var(--vw) * 25);
    gap: calc(var(--vw) * 71);
    .section__title {
      text-align: center;
      margin-bottom: 0.15em;
    }
  }

  .data__list {
    gap: calc(var(--vw) * 55) calc(var(--vw) * 15);
  }

  .data__item {
    &.--full {
      .data__item-img {
        padding-bottom: 14vw;

        img {
          height: auto;
        }
      }

      .data__item-text {
        width: calc(50% - var(--vw) * 7);
        padding-inline: calc(var(--vw) * 10);
      }
    }
  }

  .data__item-title {
    font-size: calc(var(--vw) * 17);
    margin-bottom: auto;
  }

  .data__item-img {
    img {
      width: 100%;
      object-fit: contain;
    }
  }

  .data__item-text {
    font-size: calc(var(--vw) * 13);
    padding: calc(var(--vw) * 29) calc(var(--vw) * 15) calc(var(--vw) * 15);
    aspect-ratio: 155 / 103;

    &[data-fukidashi-dir=left] {
      background-image: url(../images/recruit/sp/data_fukidashi_left.png);
    }

    &[data-fukidashi-dir=right] {
      background-image: url(../images/recruit/sp/data_fukidashi_right.png);
    }
  }

  /* --- INTERVIEW --- */
  .interview {
    padding-left: 10.6vw;
    border-radius: 0 0 calc(var(--vw) * 80) 0;

    .section__head {
      padding-right: 10.6vw;
    }
  }

  .interview__list .slick-slide {
    margin-right: calc(var(--vw) * 26);
  }

  .interview__item {
    width: calc(var(--vw) * 273);
  }

  .interview__item-img {
    &::before,
    &::after {
      display: none;
    }
  }

  .interview__nav {
    margin-top: calc(var(--vw) * 50);
    padding-right: 10.6vw;
    gap: calc(var(--vw) * 40);
  }

  .interview__prev,
  .interview__next {
    svg {
      width: calc(var(--vw) * 70);
      height: calc(var(--vw) * 70);
    }
  }

  .interview__item-name-en   { font-size: calc(var(--vw) * 11); }
  .interview__item-qualification { font-size: calc(var(--vw) * 12); }
  .interview__item-year      { font-size: calc(var(--vw) * 10); }

  .interview__item-name {
    position: relative;
    font-size: calc(var(--vw) * 15);
    display: flex;
    gap: calc(var(--vw) * 14);
    align-items: center;

    &::after {
      position: relative;
      top: -1px;
      content: '';
      display: inline-flex;
      width: calc(var(--vw) * 13);
      background-repeat: no-repeat;
      background-image: url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212.823%22%20height%3D%2212.754%22%20viewBox%3D%220%200%2012.823%2012.754%22%3E%20%3Cg%20transform%3D%22translate(6.313%2018.531)%20rotate(-135)%22%3E%20%3Cpath%20d%3D%22M0%2C0V12.021H12.021%22%20transform%3D%22translate(0%208.5)%20rotate(-45)%22%20fill%3D%22none%22%20stroke%3D%22%23656246%22%20stroke-width%3D%221%22%2F%3E%20%3Cline%20y2%3D%2216.701%22%20transform%3D%22translate(8.548%200.121)%22%20fill%3D%22none%22%20stroke%3D%22%23656246%22%20stroke-width%3D%221%22%2F%3E%20%3C%2Fg%3E%20%3C%2Fsvg%3E');
      aspect-ratio: 1;
      background-size: calc(var(--vw) * 13);
    }
  }

  /* --- BENEFIT --- */
  #benefit {
    display: flow-root;
  }
  .benefit {
    margin-top: calc(var(--vw) * -80);
    padding: calc(var(--vw) * 166) calc(var(--vw) * 25) calc(var(--vw) * 115);
  }

  .benefit__list {
    gap: calc(var(--vw) * 13);
  }

  .benefit__item {
    padding: calc(var(--vw) * 30) calc(var(--vw) * 24);
  }

  .benefit__item-title {
    font-size: calc(var(--vw) * 15);
    letter-spacing: .03em;
    white-space: nowrap;
  }

  .benefit__item-text {
    font-size: calc(var(--vw) * 14);
  }

  /* --- JOB --- */
  .job {
    padding-top: calc(var(--vw) * 100);
    padding-bottom: calc(var(--vw) * 120);
  }

  .job__list {
    padding-inline: calc(var(--vw) * 25);
  }

  .job__item {
    padding-block: calc(var(--vw) * 29);

    img {
      width: calc(var(--vw) * 55);
    }
  }

  .job__num {
    position: relative;
    left: 0;
    margin-right: calc(var(--vw) * 22);
    font-size: calc(var(--vw) * 12);
  }

  .job__item-title {
    font-size: calc(var(--vw) * 20);
  }

  /* --- LAST --- */
  .last {
    background: #EDE5DF;
    height: calc(var(--vw) * 673);
    margin-bottom: calc(var(--vw) * 210);
  }

  .last__text {
    font-size: calc(var(--vw) * 18);
    letter-spacing: .12em;
  }

  .last__text--01 {
    top: calc(var(--vw) * 178);
    right: calc(var(--vw) * 43);
  }

  .last__text--02 {
    left: calc(var(--vw) * 41);
    top: auto;
    bottom: calc(var(--vw) * 191);
  }

  .last__text-en {
    font-size: calc(var(--vw) * 14);
  }

  .last__img--01 {
    top: calc(var(--vw) * -25);
    right: calc(var(--vw) * 25);

    img { width: calc(var(--vw) * 111); }
  }

  .last__img--02 {
    top: calc(var(--vw) * 79);
    left: calc(var(--vw) * 25);

    img { width: calc(var(--vw) * 175); }
  }

  .last__img--03 {
    bottom: calc(var(--vw) * 139);
    right: calc(var(--vw) * 23);

    img { width: calc(var(--vw) * 175); }
  }

  .last__img--04 {
    bottom: calc(var(--vw) * -25);
    left: calc(var(--vw) * 25);

    img { width: calc(var(--vw) * 111); }
  }

  .last__bg {
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    margin-top: calc(var(--vw) * -210);
  }

  /* --- FOOTER --- */
  .footer {
    position: relative;
    bottom: 0;
    right: 0;
    height: auto;
    z-index: 0;

    &::after {
      display: none;
    }
  }
  .footer_top {
    padding-bottom: 6rem;
  }
  .footer_flex {
    align-items: flex-end;
  }

  /* --- モーダル共通 UI --- */
  .c-modal__close {
    z-index: 100;
    top: calc(var(--vw) * 10.3);
    right: calc(var(--vw) * 10.3);
  }

  .c-modal__nav-btn {
    display: none;
  }

  /* --- インタビューモーダル --- */
  .interview__popup-content {
    grid-template-columns: 1fr;
    padding: calc(var(--vw) * 30);
  }

  .interview__popup-catch {
    display: flex;
    font-size: calc(var(--vw) * 20);
    background: none;
    padding: 0;

    span {
      display: inline-flex;
    }
  }

  .interview__popup-header {
    flex-direction: column;
    /* gap: calc(var(--vw) * 5); */
    gap: 0;
    margin-bottom: -1em;
  }

  .interview__popup-name-jp  { font-size: calc(var(--vw) * 26); }
  .interview__popup-name-en  { font-size: calc(var(--vw) * 13); }
  .interview__popup-position { font-size: calc(var(--vw) * 16); }
  .interview__popup-text     { font-size: calc(var(--vw) * 16); }

  .interview__popup-qa-question { font-size: calc(var(--vw) * 16); }
  .interview__popup-qa-answer   { font-size: calc(var(--vw) * 14); }

  .interview__popup-more {
    margin-left: 0;
    margin-top: calc(var(--vw) * 35);
  }

  /* --- 募集要項モーダル --- */
  .job__popup-content {
    padding: calc(var(--vw) * 30);
  }

  .job__popup-header {
    display: grid;
    padding-top: calc(var(--vw) * 30);
    margin-bottom: calc(var(--vw) * 60);
  }

  .job__popup-entry {
    justify-content: center;
    margin-top: calc(var(--vw) * 60);
    margin-bottom: calc(var(--vw) * 30);

    a {
      font-size: 1.4rem;
    }
  }

}
