/* =========================================================
   採用情報ページ (slug: recruit)
   デザインカンプ XoXUw4vzh2C2X6RIfJJVGM node 560:5928 (7_recruit)
   top.css / pages.css の後に読み込む（:root 変数・共通パーツ前提）
   ========================================================= */

.rec-page { background: #fff; padding-bottom: 167px; }
.rec-page * { box-sizing: border-box; }

/* ---------- ヒーロー（写真背景 + コーラルグラデ + Concept） ---------- */
.rec-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  min-height: 1128px;
}
.rec-hero__bg { position: absolute; inset: 0; z-index: -4; }
.rec-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; filter: blur(2px); transform: scale(1.05); }
.rec-hero__photo { position: absolute; left: 0; top: 0; right: 0; height: 657px; z-index: -3; }
.rec-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; display: block; }
.rec-hero::before {
  /* 写真下端はFigma同様にコーラルへなじませ、水玉は写真側へ乗せない。 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom, rgba(229,177,177,0) 333px, rgba(252,146,145,.76) 657px),
    linear-gradient(to bottom, rgba(229,177,177,0) 407px, #fc9291 657px, #fc9291 100%);
}
.rec-hero__overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 373px;
  bottom: 0;
  z-index: -1;
  opacity: .18;
  mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.32) 92px, #000 220px);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.32) 92px, #000 220px);
}
.rec-hero__overlay img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rec-hero__inner {
  /* カンプと同じく、上段を写真、下段をConceptのコーラル面として使う。 */
  padding: 512px 47px 110px 59px;
}
.rec-hero__lead { margin: 0 0 129px; }
.rec-hero__crumb {
  margin: 0 0 23px 7px;
  font-family: var(--ff-noto, inherit);
  font-weight: 500;
  font-size: 10px;
  line-height: 31px;
  letter-spacing: 2px;
}
.rec-hero__en {
  margin: 0;
  font-family: var(--ff-josefin);
  font-weight: 400;
  font-size: 50px;
  line-height: 47px;
  letter-spacing: 1.5px;
}

.rec-hero__concept { text-align: center; }
.rec-hero__concept-en {
  margin: 0;
  font-family: var(--ff-josefin);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.4px;
  text-shadow: 0 0 14px var(--c-red);
}
.rec-hero__concept-title {
  margin: 27px 0 0;
  font-weight: 500;
  font-size: clamp(20px, 2.3vw, 27.46px);
  line-height: 42px;
  letter-spacing: .15em;
  text-shadow: 0 0 14px var(--c-red);
}
.rec-hero__concept-body {
  margin: 39px auto 0;
  max-width: 829px;
  font-weight: 500;
  font-size: 16px;
  line-height: 2.26;
  letter-spacing: .15em;
  text-shadow: 0 0 14px var(--c-red);
}

/* ---------- 本文（中央寄せ・職種ごとに縦積み） ----------
   カンプの本文テキスト枠は 600px（◦ 含む）。.rec-list li は padding-left:1.6em の
   ぶら下げ分だけ実テキスト幅が狭くなるため、その分を足した内寸でカンプの折り返しを再現する。 */
.rec-body {
  max-width: 648px; /* 内寸 600px。カンプのテキスト枠 600px（◦込み）を再現 */
  margin: 0 auto;
  padding: 78px 24px 0;
  font-family: var(--ff-jp);
  transform: translateX(-3px);
}
.rec-group { margin-bottom: 150px; }
.rec-group:last-child { margin-bottom: 0; }
.rec-group:first-child { margin-bottom: 153px; }
.rec-group:nth-child(2) { margin-bottom: 160px; }
.rec-group:nth-child(3) { margin-bottom: 160px; }

/* 大見出し（JP 36px ブラウン + EN 14px コーラル） */
/* カンプ準拠：英語(EN)を上、日本語(JA)を下に */
.rec-group__head { margin: 0 0 53px; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 4px; }
/* 「応募方法について」ボタンの飛び先（固定ヘッダー分のオフセット） */
#apply-contact { scroll-margin-top: 110px; }
.rec-group__en {
  margin: 0;
  font-family: var(--ff-josefin);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--c-pink);
}
.rec-group__title {
  margin: 0;
  color: var(--c-brown);
  font-weight: 700;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.7;
  letter-spacing: .1em;
}
.rec-group__lead {
  margin: -24px 0 40px;
  color: var(--c-brown2);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .12em;
}

/* サブセクション（コーラル縦バー見出し + 箇条書き） */
.rec-sub { margin-bottom: 60px; }
.rec-sub:last-child { margin-bottom: 0; }
.rec-sub__lead {
  margin: 0 0 27.2px;
  color: var(--c-brown2);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .12em;
}
.rec-bar {
  position: relative;
  margin: 0 0 29px;
  padding-left: 24px;
  color: #3b3b3b;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: .16em;
}
.rec-group:not(:first-child) .rec-bar {
  min-height: 50px;
}
.rec-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 7px;
  height: 50px;
  background: var(--c-pink);
}

.rec-list { margin: 0; padding: 0; list-style: none; }
.rec-list li {
  margin: 0;
  color: var(--c-brown2);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .12em;
}
/* カンプは「◦ 」をテキスト先頭にインラインで持ち、折り返し行はぶら下げず左端揃え。
   ぶら下げを廃し、◦ を本文と同じ流れに置くことで折り返し位置をカンプと一致させる。 */
.rec-list li::before { content: "◦\00a0"; }

/* 院長メッセージ写真 */
.rec-message__photo {
  margin: 0 0 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1efe9;
}
.rec-message__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 601 / 399;
  object-fit: cover;
  object-position: center 44%;
  transform: scale(1.22);
}
.rec-message__body { }
.rec-message__body p {
  margin: 0;
  color: var(--c-brown2);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .12em;
}
.rec-message__sign { margin-top: 1.7em; }

/* 応募方法について バー */
.rec-applybar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
  min-height: 89px;
  border-radius: 4px;
  text-decoration: none;
}
.rec-group:nth-child(2) .rec-sub:last-of-type { margin-bottom: 24px; }
.rec-group:nth-child(2) .rec-applybar { margin-top: 24px; }
.rec-group:nth-child(3) .rec-sub:last-of-type { margin-bottom: 23px; }
.rec-group:nth-child(3) .rec-applybar { margin-top: 23px; }
.rec-group:nth-child(4) .rec-sub:nth-of-type(3) { padding-bottom: 25px; }
.rec-group:nth-child(4) .rec-sub:nth-of-type(6) { margin-bottom: 22px; }
.rec-group:nth-child(4) .rec-contact { margin-top: 22px; }
.rec-applybar--pink { background: var(--c-pink); }
.rec-applybar--coral { background: #f09992; }
.rec-applybar__text {
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .1em;
}
.rec-applybar__arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-pink);
  font-size: 18px;
  line-height: 1;
}
.rec-applybar--coral .rec-applybar__arrow { color: #f09992; }

/* 共通情報の連絡先ボタン2枚 */
.rec-contact {
  display: flex;
  gap: 17px;
  margin-top: 60px;
}
.rec-contact__btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 91px;
  border-radius: 4px;
  background: #ffc2bd;
  color: #fff;
  text-decoration: none;
}
/* 1番目=お問い合わせ(ピンク) / 2番目=電話(サーモンピンク)：CTA配色に統一 */
.rec-contact__btn:nth-child(2) { background: #ff9a92; }
.rec-contact__sub { font-weight: 700; font-size: 10px; letter-spacing: .1em; }
.rec-contact__main { font-weight: 700; font-size: 15px; letter-spacing: .1em; }

.rec-body + .cta-band { margin-top: 167px; }

/* 最終補正: 院長メッセージ後の余白を詰める。 */
.rec-group:first-child {
  margin-bottom: 112px;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 820px) {
  .rec-hero {
    min-height: 640px;
  }
  .rec-hero__photo {
    height: 390px;
  }
  .rec-hero::before {
    background:
      linear-gradient(to bottom, rgba(229,177,177,0) 150px, rgba(252,146,145,.58) 305px, #fc9291 430px),
      linear-gradient(to bottom, rgba(229,177,177,0) 210px, #fc9291 430px, #fc9291 100%);
  }
  .rec-hero__overlay {
    top: 270px;
  }
  .rec-hero__inner { padding: 168px 20px 50px; }
  .rec-hero__lead { margin-bottom: 54px; }
  .rec-hero__en { font-size: 38px; }
  .rec-hero__concept-body { font-size: 15px; line-height: 2; }

  .rec-body { padding: 64px 18px 0; transform: none; }
  .rec-group { margin-bottom: 90px; }
  .rec-group__head { margin-bottom: 36px; }
  .rec-sub { margin-bottom: 44px; }
  .rec-bar { font-size: 18px; padding-left: 20px; }
  .rec-bar::before { width: 6px; height: 44px; }
  .rec-list li,
  .rec-message__body p { font-size: 15px; letter-spacing: .06em; }
  .rec-body + .cta-band { margin-top: 72px; }
}

@media (max-width: 480px) {
  .rec-hero__concept-body br { display: none; }
  .rec-contact { flex-direction: column; gap: 12px; }
  .rec-applybar__text { font-size: 17px; }
}

/* SPレビュー反映: 初期表示は写真全面 + 左下パンくず/ページ名のみ。Conceptは次セクション扱い。 */
@media (max-width: 820px) {
  .rec-hero {
    min-height: 0 !important;
    height: auto !important;
  }

  .rec-hero__photo {
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
  }

  .rec-hero__bg {
    display: none !important;
  }

  .rec-hero::before {
    top: calc(100vh - 60px) !important;
    top: calc(100svh - 60px) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    background: #fc9291 !important;
  }

  .rec-hero__overlay {
    top: calc(100vh - 60px) !important;
    top: calc(100svh - 60px) !important;
    opacity: .22 !important;
  }

  .rec-hero__inner {
    padding: 0 !important;
  }

  .rec-hero__lead {
    min-height: calc(100vh - 60px) !important;
    min-height: calc(100svh - 60px) !important;
    margin: 0 !important;
    padding: 0 24px 58px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
  }

  .rec-hero__crumb {
    margin: 0 0 16px !important;
    line-height: 1.8 !important;
  }

  .rec-hero__concept {
    position: relative;
    z-index: 1;
    padding: 58px 20px 70px !important;
    background: #fc9291;
  }
}

/* SP最終調整: 採用情報の写真を戻し、グラデーション上にタイトルを置く。 */
@media (max-width: 820px) {
  .rec-hero {
    min-height: auto !important;
    height: auto !important;
  }

  .rec-hero__bg,
  .rec-hero__photo {
    display: block !important;
  }

  .rec-hero__photo {
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
  }

  .rec-hero__photo img {
    object-position: center center !important;
  }

  .rec-hero::before {
    top: 0 !important;
    background:
      linear-gradient(to bottom, rgba(252,146,145,0) 0%, rgba(252,146,145,.12) 42%, rgba(252,146,145,.58) 70%, rgba(252,146,145,.96) 100%) !important;
  }

  .rec-hero__overlay {
    top: 48% !important;
    opacity: .18 !important;
  }

  .rec-hero__lead {
    padding: 0 22px 46px !important;
  }

  .rec-hero__crumb {
    color: #fff !important;
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  .rec-hero__en {
    font-size: clamp(42px, 13vw, 54px) !important;
  }

  .rec-hero__concept-title {
    font-size: clamp(18px, 5.2vw, 23px) !important;
    line-height: 1.75 !important;
    letter-spacing: .08em !important;
  }

  .rec-group__title {
    font-size: clamp(22px, 6vw, 28px) !important;
    line-height: 1.45 !important;
    letter-spacing: .04em !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .rec-message__photo img {
    object-position: center center !important;
    transform: scale(1.14) !important;
  }
}

/* SP画像サイズ調整: Recruit FVの写真を短めに戻す。 */
@media (max-width: 820px) {
  .rec-hero {
    min-height: auto !important;
  }

  .rec-hero__photo,
  .rec-hero__lead {
    height: 340px !important;
    min-height: 340px !important;
  }

  .rec-hero__lead {
    padding: 0 22px 34px !important;
  }

  .rec-hero::before {
    background: linear-gradient(to bottom, rgba(252,146,145,0) 0%, rgba(252,146,145,.12) 36%, rgba(252,146,145,.58) 68%, rgba(252,146,145,.96) 100%) !important;
  }
}

@media (max-width: 820px) {
  .rec-hero {
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
  }

  .rec-hero__concept {
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    padding: 56px 22px 58px !important;
    background: linear-gradient(to bottom, #fc9291 0%, #fc9291 100%) !important;
  }

  .rec-hero__concept::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: -96px !important;
    height: 96px !important;
    pointer-events: none !important;
    background: linear-gradient(to bottom, rgba(252,146,145,0) 0%, rgba(252,146,145,.42) 42%, #fc9291 100%) !important;
  }
}

/* SP補正: 採用情報FVの文字位置とコンセプト見出しの行幅を調整。 */
@media (max-width: 820px) {
  .rec-hero__photo,
  .rec-hero__lead {
    height: 370px !important;
    min-height: 370px !important;
  }

  .rec-hero__photo img {
    object-fit: cover !important;
    object-position: center center !important;
  }

  .rec-hero__lead {
    padding: 0 22px 20px !important;
  }

  .rec-hero::before {
    background:
      linear-gradient(to bottom, rgba(73,50,21,0) 0%, rgba(73,50,21,.08) 20%, rgba(252,146,145,.44) 50%, rgba(252,146,145,.82) 74%, #fc9291 100%) !important;
  }

  .rec-hero__concept-title {
    font-size: clamp(15.5px, 4.1vw, 17px) !important;
    line-height: 2 !important;
    letter-spacing: .02em !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }
}

/* SP最終: 初期表示ではConceptを見せず、写真+グラデ+左下タイトルだけを1画面に収める。 */
@media (max-width: 820px) {
  .rec-hero__photo,
  .rec-hero__lead {
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
    min-height: calc(100vh - 60px) !important;
    min-height: calc(100svh - 60px) !important;
  }

  .rec-hero__lead {
    padding: 0 22px 44px !important;
  }

  .rec-hero::before {
    top: 0 !important;
    bottom: auto !important;
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
    background:
      linear-gradient(to bottom, rgba(73,50,21,0) 0%, rgba(73,50,21,.08) 28%, rgba(252,146,145,.34) 58%, rgba(252,146,145,.76) 82%, #fc9291 100%) !important;
  }

  .rec-hero__overlay {
    top: 0 !important;
    bottom: auto !important;
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
    opacity: .18 !important;
  }

  .rec-hero__concept {
    padding-top: 58px !important;
  }

  .rec-hero__photo {
    z-index: 0 !important;
  }

  .rec-hero::before,
  .rec-hero__overlay {
    z-index: 1 !important;
  }

  .rec-hero__inner,
  .rec-hero__lead {
    position: relative !important;
    z-index: 2 !important;
  }

  .rec-group:first-child {
    margin-bottom: 70px !important;
  }
}

/* SP最終補正: 写真面とConcept面の境目を消す。 */
@media (max-width: 820px) {
  .rec-hero {
    background-color: #fc9291 !important;
  }

  .rec-hero::before {
    background:
      linear-gradient(to bottom, rgba(73,50,21,0) 0%, rgba(73,50,21,.06) 20%, rgba(252,146,145,.38) 48%, rgba(252,146,145,.82) 76%, #fc9291 100%) !important;
  }

  .rec-hero__overlay {
    opacity: .20 !important;
  }

  .rec-hero__concept {
    margin-top: -1px !important;
    overflow: visible !important;
    background: #fc9291 !important;
  }

  .rec-hero__concept::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: -132px !important;
    height: 132px !important;
    z-index: -1 !important;
    pointer-events: none !important;
    background: linear-gradient(to bottom, rgba(252,146,145,0) 0%, rgba(252,146,145,.58) 52%, #fc9291 100%) !important;
  }
}

/* Final SP guard: keep the recruit hero gradient continuous. */
@media (max-width: 820px) {
  .rec-hero {
    background-color: #fc9291 !important;
    overflow: hidden !important;
  }

  .rec-hero__photo,
  .rec-hero__lead,
  .rec-hero::before,
  .rec-hero__overlay {
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
    min-height: calc(100vh - 60px) !important;
    min-height: calc(100svh - 60px) !important;
  }

  .rec-hero__photo img {
    object-fit: cover !important;
    object-position: center center !important;
  }

  .rec-hero::before {
    top: 0 !important;
    bottom: auto !important;
    background: linear-gradient(to bottom, rgba(73,50,21,0) 0%, rgba(73,50,21,.06) 24%, rgba(252,146,145,.30) 50%, rgba(252,146,145,.76) 78%, #fc9291 100%) !important;
  }

  .rec-hero__overlay {
    top: 0 !important;
    bottom: auto !important;
    opacity: .20 !important;
  }

  .rec-hero__lead {
    padding: 0 22px 44px !important;
  }

  .rec-hero__concept {
    position: relative !important;
    margin-top: -1px !important;
    padding: 58px 20px 60px !important;
    overflow: visible !important;
    background: #fc9291 !important;
  }

  .rec-hero__concept::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: -170px !important;
    height: 170px !important;
    z-index: -1 !important;
    pointer-events: none !important;
    background: linear-gradient(to bottom, rgba(252,146,145,0) 0%, rgba(252,146,145,.36) 36%, rgba(252,146,145,.82) 76%, #fc9291 100%) !important;
  }

  .rec-hero__concept-title,
  .rec-hero__concept-body {
    max-width: calc(100vw - 32px) !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }
}

/* SP first-view labels stay above the gradient layer. */
@media (max-width: 820px) {
  .rec-hero::before,
  .rec-hero__overlay {
    z-index: 1 !important;
    pointer-events: none !important;
  }

  .rec-hero__lead,
  .rec-hero__inner {
    position: relative !important;
    z-index: 5 !important;
  }
}

/* SPタイトルをアクセスページ基準(約40px)に統一 */
@media (max-width: 820px) { .rec-hero__en { font-size: 40px !important; } }
