/*
 * Recruit page layout (v3).
 * Load after hs-ui-foundation.css and only on the recruit page.
 * All selectors stay inside the approved .hs-recruit page root.
 * The first view, the table and the closing CTA follow the company page.
 * Section heads reuse the shared hs-service__section-head / __section-label
 * (hs-components.css) so the eyebrow style matches the front page.
 *
 * リストの list-style と padding に !important を付けるのは、テーマが
 * 本文中の ul / li へ直接マーカーと字下げを当てるため（会社概要ページの
 * .hs-company__license-list と同じ回避方法）。
 */

.hs-recruit {
  overflow: hidden;
}

.hs-recruit__container,
.hs-recruit__button,
.hs-recruit__merit,
.hs-recruit__row {
  box-sizing: border-box;
}

.hs-recruit h1,
.hs-recruit h2,
.hs-recruit h3,
.hs-recruit p,
.hs-recruit ul,
.hs-recruit ol,
.hs-recruit dl {
  margin-top: 0;
}

.hs-recruit h1,
.hs-recruit h2,
.hs-recruit h3 {
  color: var(--hs-text);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: left;
}

.hs-recruit h1 {
  font-size: 29px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hs-recruit h2 {
  font-size: 25px;
  line-height: 1.5;
}

.hs-recruit a {
  color: inherit;
}

.hs-recruit__container {
  margin-inline: auto;
  max-width: var(--hs-container);
  width: calc(100% - 40px);
}

/* Breadcrumb */

.hs-recruit__breadcrumb {
  background: var(--hs-gray);
  border-bottom: 1px solid var(--hs-line);
  color: var(--hs-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.hs-recruit__breadcrumb-inner {
  align-items: center;
  display: flex;
  gap: 10px;
  min-height: 44px;
}

.hs-recruit__breadcrumb a {
  text-decoration: none;
}

.hs-recruit__breadcrumb a:hover {
  color: var(--hs-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* First view */

.hs-recruit__hero {
  background: var(--hs-white);
  border-bottom: 1px solid var(--hs-line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.hs-recruit__hero-pattern {
  background-image:
    linear-gradient(rgba(0, 90, 160, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 90, 160, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  inset: 300px 0 0;
  position: absolute;
}

.hs-recruit__hero-inner {
  min-height: auto;
  order: 2;
  position: relative;
}

.hs-recruit__hero-copy {
  max-width: 720px;
  padding: 52px 0 64px;
  position: relative;
  z-index: 2;
}

.hs-recruit__hero h1 {
  margin: 0 0 24px;
}

.hs-recruit__hero-page-name,
.hs-recruit__hero-message {
  display: block;
}

.hs-recruit__hero-page-name {
  color: var(--hs-blue);
  font-size: 15px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-left: 52px;
  position: relative;
}

.hs-recruit__hero-page-name::before {
  background: currentColor;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 0.8em;
  width: 36px;
}

/* 文字サイズは基礎のトークンで全ページ共通にする。 */
.hs-recruit__hero-message {
  font-size: var(--hs-hero-message-size);
  letter-spacing: -0.03em;
  line-height: 1.5;
}

.hs-recruit__lead {
  color: var(--hs-text-sub);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 0;
}

.hs-recruit__hero-photo {
  height: 300px;
  margin: 0;
  order: 1;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.hs-recruit__hero-photo::before {
  background: linear-gradient(90deg, var(--hs-blue), var(--hs-cyan));
  content: "";
  height: 8px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

.hs-recruit__hero-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  width: 100%;
}

/* Merits */

.hs-recruit__merits {
  padding: var(--hs-block-space-y, 76px) 0;
}

.hs-recruit__merit-list {
  display: grid;
  gap: 18px;
  list-style: none !important;
  margin-bottom: 0;
  padding: 0 !important;
}

.hs-recruit__merit {
  background: var(--hs-white);
  box-shadow: 0 16px 36px rgba(0, 71, 127, 0.1);
  display: grid;
  gap: 16px;
  list-style: none !important;
  margin: 0;
  padding: 26px 24px 28px;
  position: relative;
}

.hs-recruit__merit::before {
  background: linear-gradient(90deg, var(--hs-blue), var(--hs-cyan));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

/* アイコンは淡青の円バッジに載せる。裸の線画46pxでは小さいという指摘（2026-08-27）への対応 */
.hs-recruit__merit-icon {
  align-items: center;
  background:
    radial-gradient(circle at 30% 24%, rgba(0, 160, 233, 0.2), transparent 58%),
    #eaf6fb;
  border-radius: 50%;
  color: var(--hs-blue);
  display: flex;
  height: 76px;
  justify-content: center;
  width: 76px;
}

.hs-recruit__merit-icon svg {
  display: block;
  height: 42px;
  width: 42px;
}

.hs-recruit__merit-icon rect,
.hs-recruit__merit-icon circle,
.hs-recruit__merit-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.4;
}

/* 誇張しない。文字の部分拡大は使わず、行単位の太字だけで見出しにする */
.hs-recruit__merit-value {
  color: var(--hs-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 10px;
}

.hs-recruit__merit-note {
  color: var(--hs-text-sub);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 0;
}

/* Jobs */

.hs-recruit__jobs {
  padding: var(--hs-block-space-y, 76px) 0;
}

.hs-recruit__job-grid {
  display: grid;
  gap: 22px;
}

.hs-recruit .hs-service-card h3 {
  font-size: 19px;
  line-height: 1.55;
}

.hs-recruit .hs-service-card__body > p:not(.hs-service-card__eyebrow) {
  font-size: 15px;
  line-height: 1.9;
}

/* Wants */

.hs-recruit__wants {
  padding: var(--hs-block-space-y, 76px) 0;
}

.hs-recruit__want-list {
  display: grid;
  gap: 12px;
  list-style: none !important;
  margin-bottom: 0;
  padding: 0 !important;
}

.hs-recruit__want-list li {
  align-items: center;
  background: var(--hs-white);
  border-left: 3px solid var(--hs-blue);
  box-shadow: 0 10px 26px rgba(0, 71, 127, 0.08);
  display: grid;
  gap: 16px;
  grid-template-columns: 56px minmax(0, 1fr);
  list-style: none !important;
  margin: 0;
  padding: 16px 18px;
}

.hs-recruit__want-icon {
  align-items: center;
  background:
    radial-gradient(circle at 30% 24%, rgba(0, 160, 233, 0.2), transparent 58%),
    #eaf6fb;
  border-radius: 50%;
  color: var(--hs-blue);
  display: flex;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.hs-recruit__want-icon svg {
  display: block;
  height: 32px;
  width: 32px;
}

/*
 * 図形は種類を漏らさず線画にする。circleとpathだけを指定していたため、
 * rectを使ったアイコンが既定の黒塗りで出た（2026-08-28）。待遇側の
 * .hs-recruit__merit-icon と同じ3種を並べて揃える。
 */
.hs-recruit__want-icon rect,
.hs-recruit__want-icon circle,
.hs-recruit__want-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.4;
}

.hs-recruit__want-list li p {
  color: var(--hs-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
  margin: 0;
}

/* Requirements table */

.hs-recruit__requirements {
  padding: var(--hs-block-space-y, 76px) 0;
}

.hs-recruit__table {
  border-top: 1px solid var(--hs-line);
  margin-bottom: 0;
}

.hs-recruit__row {
  border-bottom: 1px solid var(--hs-line);
  display: grid;
  gap: 4px;
  padding: 18px 0;
}

.hs-recruit__row dt {
  color: var(--hs-blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.hs-recruit__row dd {
  color: var(--hs-text-sub);
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
}

/*
 * 給与欄。金額 → その内訳 → 補足の3層を、入れ子で分けて読ませる。
 * 1行ずつ<br>で並べると、月給額と基本給の内訳が同じ重みに見えて混ざる。
 */
.hs-recruit__pay {
  display: grid;
  gap: 14px;
  list-style: none !important;
  margin: 0 0 18px;
  padding: 0 !important;
}

.hs-recruit__pay li {
  display: grid;
  gap: 2px;
  list-style: none !important;
  margin: 0;
}

.hs-recruit__pay-target {
  color: var(--hs-blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.hs-recruit__pay-amount {
  color: var(--hs-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.hs-recruit__pay-sub {
  font-size: 14px;
  line-height: 1.8;
}

/*
 * 固定残業手当の内訳は、見出し付きの囲みブロックにしない。
 * 職業安定法の3点明示（基本給／手当額と時間数／超過分の追加支給）は必要だが、
 * 同業は1行に畳んで書いており、囲みで見せると分量が過剰に見える（2026-08-28）。
 * 内訳は各給与行の下へ `.hs-recruit__pay-sub` として置き、超過分の扱いだけを
 * 下の注記1行にする。
 */
.hs-recruit__pay-note {
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 14px;
}

.hs-recruit__pay-foot {
  margin: 0;
}

/* Closing CTA */

.hs-recruit__contact {
  color: rgba(255, 255, 255, 0.9);
  padding: var(--hs-block-space-y, 76px) 0;
}

.hs-recruit__contact-inner {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

.hs-recruit__contact-copy {
  max-width: 800px;
  text-align: left;
  width: 100%;
}

.hs-recruit__contact-copy h2 {
  color: var(--hs-white);
  font-size: 24px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.hs-recruit__contact-copy p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
}

.hs-recruit__actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hs-recruit__button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  line-height: 1.5;
  min-height: 60px;
  padding: 15px 22px;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
  width: 100%;
}

.hs-recruit__button--white {
  background: linear-gradient(180deg, #ffffff 0%, #f2f9fc 100%);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 34px rgba(0, 23, 48, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--hs-blue-deep);
  min-height: 68px;
  padding: 16px 20px 16px 30px;
}

/*
 * `.hs-recruit a { color: inherit }` は詳細度(0,1,1)で
 * `.hs-recruit__button--white`(0,1,0)に勝つため、CTAの文字色は
 * 親セレクタを重ねて上書きする。会社概要ページと同じ回避方法。
 */
.hs-recruit__contact .hs-recruit__button--white {
  color: var(--hs-blue-deep);
}

.hs-recruit__button--white::after {
  align-items: center;
  background: linear-gradient(135deg, var(--hs-blue), var(--hs-cyan));
  border-radius: 50%;
  color: var(--hs-white);
  content: "→";
  display: inline-flex;
  font-size: 16px;
  height: 32px;
  justify-content: center;
  margin-left: 22px;
  width: 32px;
}

.hs-recruit__button--white:hover {
  background: var(--hs-white);
  box-shadow: 0 18px 42px rgba(0, 23, 48, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.hs-recruit a:focus-visible {
  outline: 3px solid #f6c343;
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .hs-recruit__container {
    width: calc(100% - 64px);
  }

  .hs-recruit h1 {
    font-size: 32px;
  }

  .hs-recruit h2 {
    font-size: 28px;
  }

  .hs-recruit__lead {
    font-size: 16px;
    line-height: 2;
  }

  .hs-recruit__merit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 枠数が奇数のとき、最後の1枠を全幅にして半端に残さない */
  .hs-recruit__merit:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .hs-recruit__merit {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .hs-recruit__job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hs-recruit__want-list li {
    padding: 18px 24px;
  }

  .hs-recruit__row {
    gap: 20px;
    grid-template-columns: 190px minmax(0, 1fr);
    padding: 20px 0;
  }

  .hs-recruit__button {
    width: auto;
  }
}

@media (min-width: 860px) {
  .hs-recruit__hero {
    display: block;
    min-height: 620px;
  }

  .hs-recruit__hero-pattern {
    inset: 0 44% 0 0;
  }

  .hs-recruit__hero-inner {
    align-items: center;
    display: flex;
    max-width: 1180px;
    min-height: 620px;
  }

  .hs-recruit__hero-copy {
    box-sizing: border-box;
    max-width: 650px;
    padding: 56px 70px 56px 0;
    width: 56%;
  }

  .hs-recruit__hero-page-name {
    font-size: 17px;
    margin-bottom: 22px;
  }

  .hs-recruit__hero-message {
    line-height: 1.45;
  }

  .hs-recruit__hero-photo {
    bottom: 0;
    height: auto;
    position: absolute;
    right: 0;
    top: 0;
    width: 44%;
  }

  .hs-recruit__hero-photo::before {
    background: linear-gradient(180deg, var(--hs-blue), var(--hs-cyan));
    height: 100%;
    width: 8px;
  }

  .hs-recruit__hero-photo img {
    object-position: 55% 40%;
  }

  .hs-recruit__merits h2,
  .hs-recruit__jobs h2,
  .hs-recruit__wants h2,
  .hs-recruit__requirements h2 {
    font-size: clamp(26px, 2.25vw, 30px);
  }

  .hs-recruit__merit-list {
    gap: 22px;
  }

  .hs-recruit__merit {
    align-content: start;
    padding: 30px 28px 32px;
  }

  .hs-recruit__job-grid {
    gap: 26px;
  }

  .hs-recruit__contact-copy h2 {
    font-size: clamp(24px, 1.9vw, 26px);
  }

  .hs-recruit__button--white {
    min-width: 410px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-recruit__button {
    transition: none;
  }
}
