/* ============================================================
   style-recruit.css — 採用ページ専用スタイル
   slug: recruit
   ============================================================ */

/* ハローワーク誘導ボックス（緑枠・シャドウ付きカード） */
.recruit-hellowork {
  margin-top: 2rem;
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-xl) var(--space-xxl) var(--space-xl);
  text-align: center;
  position: relative;
  border: 2px solid var(--c-main);
  border-radius: 14px;
  background: var(--c-warm);
  box-shadow: var(--shadow);
  overflow: hidden;
}

@media (max-width: 767px) {
  .recruit-hellowork {
    width: 95%;
    max-width: 100%;
    padding: var(--space-md) var(--space-md);
  }
}

.btn.recruit-hellowork-cta {
  position: relative;
  z-index: 1;
  width: 38rem;
  max-width: 100%;
  justify-content: center;
  padding: var(--space-md) var(--space-lg);
  overflow: hidden;
  background: var(--c-main);
  color: var(--c-white);
  border: 2px solid var(--c-main);
  border-radius: 100px;
  font-size: var(--fs-22);
  font-weight: 700;
  box-shadow: 0 3px 16px rgba(0, 100, 60, 0.25);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;

  &::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: -40%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
      100deg,
      transparent 0%,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.32) 50%,
      rgba(255, 255, 255, 0) 70%,
      transparent 100%
    );
    transform: skewX(-18deg);
    animation: recruit-hellowork-sheen 3.2s ease-in-out infinite;
    pointer-events: none;
  }

  &:hover {
    opacity: 1;
    background: var(--c-main-hover);
    border-color: var(--c-main-hover);
    box-shadow: 0 4px 22px rgba(0, 80, 45, 0.35);
    transform: translateY(-2px);

    &::before {
      animation-duration: 1.4s;
    }

    & .recruit-hellowork-cta-ico {
      transform: translate(2px, -2px);
    }
  }
}

.recruit-hellowork-cta .recruit-hellowork-cta-shine {
  position: relative;
  z-index: 1;
  display: inline-block;
  max-width: 100%;
  color: inherit;
}

.btn.recruit-hellowork-cta-ico {
  position: relative;
  z-index: 1;
  color: inherit;
  opacity: 0.95;
  transition: transform 0.25s ease;
}

@keyframes recruit-hellowork-sheen {
  0% {
    left: -50%;
    opacity: 0.35;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    left: 120%;
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn.recruit-hellowork-cta::before {
    display: none;
  }
}

@media (max-width: 767px) {
  .btn.recruit-hellowork-cta {
    font-size: var(--fs-18);
    letter-spacing: -0.1em;
  }
}

.recruit-hellowork-note {
  position: relative;
  z-index: 1;
  margin: 2rem 0 0;
  line-height: var(--lh-ui);
}

/* 採用「応募の流れ」：上部アイコン図解 ＋ STEP帯の詳細ブロック */
.flow-lead-catch {
  display: block;
  text-align: center;
  font-size: var(--fs-20);
  font-weight: 700;
  margin-bottom: 0.4em;
}

.section-flow-lead {
  max-width: 52rem;
  margin: 0 auto var(--space-lg);
  line-height: var(--lh-wide);
  color: var(--c-text);
}

/* 採用フロー詳細リスト（PC: 見出し20%＋説明80%の横2列） */
.section-flow-details {
  list-style: none;
  padding: 0;

  & > li {
    list-style: none;
    overflow: hidden;
    background: var(--c-white);
    box-shadow: var(--shadow);

    & > p {
      margin: 0;
      line-height: var(--lh-wide);
      color: var(--c-text);
    }

    & + li {
      margin-top: var(--space-sm);
    }

    & > h3.section-flow-step-title {
      background: var(--c-main);
      color: var(--c-white);
      border-radius: 0;

      &::before {
        display: none;
      }

      & > span {
        display: flex;
        align-items: center;
        gap: 0.6em;

        & > i {
          display: inline-block;
          color: inherit;
          line-height: 1;
          opacity: 0.98;
        }

        & > span {
          color: inherit;
          background: none;
          border-radius: 0;
          margin: 0;
        }
      }
    }

    & > .flow-detail-body {
      flex: 1 1 auto;
      margin: 0;
      padding: var(--space-md) var(--space-lg);
      line-height: var(--lh-wide);
      color: var(--c-text);

      & > p {
        margin: 0;
      }
    }
  }
}

/* PC：詳細を「左20%（見出し）＋右（説明）」の2カラムに */
@media (min-width: 768px) {
  .section-flow-details > li {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    border: 1px solid var(--c-border);
  }
  .section-flow-details > li > h3.section-flow-step-title {
    flex: 0 0 20%;
    max-width: 20%;
    margin: 0;
    padding: var(--space-md) var(--space-md);
    display: flex;
    align-items: center;
  }
  .section-flow-details > li > h3.section-flow-step-title > span > i {
    font-size: 1.1em;
  }
  .section-flow-details > li > p {
    flex: 1 1 auto;
    margin: 0;
    padding: var(--space-md) var(--space-lg);
    line-height: var(--lh-wide);
    color: var(--c-text);
  }
}

@media (max-width: 767px) {
  .section-flow-details {
    width: 95%;
  }
  .section-flow-details > li {
    border: 2px solid var(--c-main);
    border-radius: 14px;
  }
  .section-flow-details > li + li {
    margin-top: var(--space-md);
  }
  .section-flow-details > li > h3.section-flow-step-title {
    padding: var(--space-sm) var(--space-md);
  }
  .section-flow-details > li > h3.section-flow-step-title > span > i {
    font-size: 1.15em;
  }
  .section-flow-details > li > h3.section-flow-step-title > span > span {
    display: inline-block;
    font-size: var(--fs-20);
    font-weight: 700;
    line-height: 1;
  }
  .section-flow-details > li > p {
    padding: var(--space-md) var(--space-md);
    line-height: var(--lh-wide);
    color: var(--c-text);
  }
  .section-flow-details > li > ul.flow-detail-list {
    padding-right: var(--space-md);
    padding-bottom: var(--space-md);
  }
}

/* 採用フロー詳細リスト */
.flow-detail-list {
  margin-top: var(--space-sm);
  padding-left: 1.5em;
}
.flow-detail-list > li {
  display: block;
  margin-top: var(--space-xs);
  position: relative;
  padding-left: 1em;
}
.flow-detail-list > li:first-child {
  margin-top: 0;
}
.flow-detail-list > li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* PC: p と ul が共存するステップは Grid で h3 を全行スパン */
@media (min-width: 768px) {
  .section-flow-details > li:has(> ul.flow-detail-list) {
    display: grid;
    grid-template-columns: 20% 1fr;
  }
  .section-flow-details > li:has(> ul.flow-detail-list) > h3.section-flow-step-title {
    grid-row: 1 / span 2;
    max-width: none;
  }
  .section-flow-details > li:has(> ul.flow-detail-list) > p {
    padding-bottom: 0;
  }
  .section-flow-details > li > ul.flow-detail-list {
    grid-column: 2;
    padding: 0 var(--space-lg) var(--space-md) var(--space-lg);
  }
}
