/* ==========================================================================
   MED北日本 採用サイト - PDF B案 共通スタイル
   breakpoint: 1024px
   ========================================================================== */

:root {
  --c-ink: #231815;
  --c-black: #000000;
  --c-navy: #191927;
  --c-orange: #f29319;
  --c-cream: #fff8e8;
  --c-white: #ffffff;
  --c-muted: #898989;
  --c-flow-bg: #2b2b2b;
  --c-blue: #036eb8;
  --c-red: #e83819;
  --c-yellow: #ffe600;
  --c-yellow2: #fff100;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Inter", "Noto Sans JP", sans-serif;
  --header-h: 80px;
  --container: 1200px;
  --bp: 1024px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.is-menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 200;
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.site-header__logo {
  height: 44px;
  width: auto;
  max-width: 30%;
  margin-right: auto;
}

.site-header__logo img {
  height: 44px;
  width: auto;
}


@media (max-width: 1023px) {
  .site-header__logo {
    max-width: 50%;
  }

}

.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__nav-list>li {
  position: relative;
  background: var(--c-white);
  border: 1.5px solid var(--c-ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-header__nav-list>li>a {
  display: block;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-en);
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* トップ項目ホバー：背景黒・文字白 */
.site-header__nav-list>li:hover,
.site-header__nav-list>li:focus-within {
  background: var(--c-black);
  color: var(--c-white);
}

.site-header__nav-list>li>a:hover,
.site-header__nav-list>li>a[aria-current="page"] {
  opacity: 1;
  background: transparent;
  color: inherit;
}

/* サブメニュー */
.site-header__sub {
  position: absolute;
  left: -1.5px;
  top: 100%;
  min-width: max(100%, 220px);
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff358;
  border: 1.5px solid var(--c-ink);
  z-index: 220;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s;
}

/* ホバー途切れ防止の透明ブリッジ */
.site-header__sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.site-header__nav-list>li:hover>.site-header__sub,
.site-header__nav-list>li:focus-within>.site-header__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.site-header__sub li:not(:last-child) {
  border-bottom: 1px solid var(--c-ink);
}

.site-header__sub a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--c-ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-header__sub a:hover {
  background: var(--c-black);
  color: var(--c-white);
  opacity: 1;
}

.site-header__sub-tag {
  display: inline-block;
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.site-header__sub-tag--new {
  background: #d964f5;
}

.site-header__sub-tag--mid {
  background: #0051dc;
}

.site-header__sub a:hover .site-header__sub-tag--new,
.site-header__sub a:hover .site-header__sub-tag--mid {
  outline: 1px solid rgba(255, 255, 255, 0.35);
}

@media (prefers-reduced-motion: reduce) {

  .site-header__nav-list>li,
  .site-header__nav-list>li>a,
  .site-header__sub,
  .site-header__sub a {
    transition: none;
  }

  .site-header__sub {
    transform: none;
  }
}

.site-header__entry {
  background: var(--c-black);
  color: var(--c-white);
  border-radius: 999px;
  padding: 12px 28px;
  text-align: center;
  line-height: 1.15;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.site-header__entry:hover {
  opacity: 0.85;
}

.site-header__entry-en {
  display: block;
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 22px);
}

.site-header__entry-ja {
  display: block;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.site-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-ink);
  border-radius: 8px;
  background: var(--c-white);
  padding: 0;
  cursor: pointer;
  position: relative;
}

.site-header__toggle-bar,
.site-header__toggle-bar::before,
.site-header__toggle-bar::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 11px;
  transform: translateX(50%);
  height: 2px;
  width: 15px;
  background: var(--c-ink);
  transition: transform 0.25s, opacity 0.25s, top 0.25s;
}

.site-header__toggle-bar {
  top: 21px;
}

.site-header__toggle-bar::before {
  top: -7px;
  opacity: 0;
}

.site-header__toggle-bar::after {
  top: 7px;
  opacity: 0;
}

@media (max-width: 1023px) {

  html,
  body {
    width: 100vw;
    overflow-x: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
}


body.is-menu-open .site-header__toggle-bar {
  background: transparent;
}

body.is-menu-open .site-header__toggle-bar::before {
  top: 0;
  left: 0;
  transform: rotate(45deg);
  opacity: 1;
}

body.is-menu-open .site-header__toggle-bar::after {
  top: 0;
  opacity: 1;
  left: 0;
  transform: rotate(-45deg);
}

/* ---------- Mobile drawer ---------- */
.mobile-nav {
  display: none;
}

@media (max-width: 1023px) {

  .site-header__nav,
  .site-header__entry {
    display: none;
  }

  .site-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 190;
    background: rgba(25, 25, 39, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s, visibility 0.25s;
  }

  body.is-menu-open .mobile-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-nav__panel {
    background: var(--c-white);
    width: min(100%, 360px);
    margin-left: auto;
    height: 100%;
    padding: 28px 24px 40px;
    transform: translateX(16px);
    opacity: 0;
    transition: transform 0.25s, opacity 0.25s;
    overflow-y: auto;
  }

  body.is-menu-open .mobile-nav__panel {
    transform: translateX(0);
    opacity: 1;
  }

  .mobile-nav__list {
    display: grid;
    gap: 6px;
    margin-bottom: 20px;
  }

  .mobile-nav__list a {
    display: block;
    padding: 6px 16px;
    border: 1px solid var(--c-ink);
    border-radius: 2px;
    font-weight: 700;
    font-size: 15px;
  }

  .mobile-nav__entry {
    display: block;
    background: var(--c-ink);
    color: var(--c-white);
    border-radius: 999px;
    padding: 16px;
    text-align: center;
    font-weight: 900;
    letter-spacing: 0.04em;
  }
  .mobile-nav__entry:nth-of-type(1) {
	  margin-bottom:1em;
	}
	
	
  .mobile-nav__entry small {
    display: block;
    font-size: 10px;
    font-weight: 700;
    margin-top: 2px;
    opacity: 0.8;
  }
}

/* ---------- Fade-in (shared) ---------- */
[data-fade] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

[data-fade].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Marker highlight (shared) ----------
   黄色マーカーは背景色だけを左から右へ表示する。
   [data-fade] の外に置いた mark は最初から塗られた状態になる。 */
mark {
  color: var(--c-ink);
  padding: 1px 5px;
  font-style: normal;
  background-color: transparent;
  background-image: linear-gradient(var(--c-yellow), var(--c-yellow));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 100% 100%;
}

[data-fade] mark {
  background-size: 0% 100%;
  transition: background-size 0.8s ease 0.45s;
}

[data-fade].is-visible mark {
  background-size: 100% 100%;
}

@media (prefers-reduced-motion: reduce) {
  [data-fade] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  [data-fade] mark {
    background-size: 100% 100%;
    transition: none;
  }
}

/* ---------- Visual sections (legacy PDF slices) ---------- */
.visual-page {
  background: var(--c-cream);
}

.visual-section {
  /* fade handled by [data-fade] */
}

.visual-section__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.visual-section__img {
  width: 100%;
  height: auto;
}

/* 縦分割画像の継ぎ目を目立たせない */
.visual-section+.visual-section {
  margin-top: -1px;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .visual-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-black);
  color: var(--c-white);
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 20px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer__brand {
  flex: 0 1 380px;
}

.site-footer__logo-wrap {
  display: inline-block;
  margin-bottom: 20px;
}

.site-footer__logo {
  display: block;
  width: 100%;
  max-width: 450px;
  height: auto;
}

.site-footer__company {
  color: var(--c-white);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 12px;
}

.site-footer__address {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  margin: 0 0 20px;
}

.site-footer__sns {
  display: inline-block;
  margin-bottom: 24px;
}

.site-footer__sns img {
  width: 22px;
  height: 22px;
}

.site-footer__meta {
  padding-top: 20px;
}

.site-footer__hp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-orange);
  font-size: 15px;
  font-weight: 700;
}

.site-footer__hp:hover {
  opacity: 0.85;
}

.site-footer__hp-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.site-footer__nav {
  /* PC: 2列 × 2段（知る+エントリー / 選考+プライバシー） */
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, auto));
  column-gap: 56px;
  row-gap: 40px;
  flex: 1 1 420px;
  justify-content: end;
  align-content: start;
}

.site-footer__nav-title {
  color: var(--c-white);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 10px;
}

.site-footer__nav-title a {
  color: var(--c-white) !important;
  margin-bottom: 0;
}

.site-footer__nav-title a:hover {
  color: var(--c-orange);
}

.site-footer__nav ul {
  margin-left: 1em;
}

.site-footer__nav a {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: var(--c-muted);
  font-weight: 700;
}

.site-footer__nav a:hover {
  color: var(--c-orange);
}

@media (max-width: 1023px) {

  .site-footer__brand,
  .site-footer__nav {
    flex: 1 1 100%;
  }

  .site-footer__nav {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    justify-content: start;
    gap: 20px;
  }


  .site-footer__nav ul {
    margin-left: 0;
  }

  .site-footer__nav a {
    font-size: 12px;
    letter-spacing: -0.03em;
  }

  .site-footer__hp {
    font-size: 13px;
  }


}



/* ========== top-section-cta (募集要項) ========== */
.top-recruit {
  position: relative;
  text-align: center;
  padding: 24% 20px 140px;
  overflow: hidden;
  min-height: 800px;
  margin-top: -160px;
}

.top-recruit.sub_page {
  padding: 15% 20px 100px;
  min-height: 750px;
  margin-top: 40px;
}



.top-recruit__catch-wrap {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 auto 0;
  width: 700px;
  max-width: min(88%, 700px);
}

.top-recruit__catch {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}


.top-recruit__label {
  position: relative;
  z-index: 1;
  display: inline-block;
  border: 3px solid var(--c-ink);
  background: #fff;
  padding: 1px 20px;
  font-weight: 900;
  font-size: clamp(20px, 3vw, 30px);
  margin: 8px 0 30px;
  color: var(--c-ink);
}

.top-recruit__btns {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.top-recruit__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  max-width: 48%;
  min-height: 76px;
  padding: 32px 64px;
  background: var(--c-black);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  font-size: clamp(18px, 3.0vw, 32px);
  border: none;
  text-decoration: none;
  position: relative;
  transition: background 0.2s, transform 0.2s;
}

.top-recruit__btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
}

.top-recruit__btn--shinsotsu::after {
  background: linear-gradient(90deg, #cda7cd, #954c99);
  border-radius: 4px;
}

.top-recruit__btn--chuto::after {
  background: linear-gradient(90deg, #6995ce, #2b5fac);
  border-radius: 4px;
}

.top-recruit__btn:hover {
  background: #3a3a3a;
  transform: translateY(-2px);
}

@media (max-width: 1023px) {

  .top-recruit__catch-wrap {
    width: 100%;
  }

  .top-recruit {
    margin-top: -100px;
    padding: 140px 20px 20px 20px;
    background-size: 100%;
    height: auto;
    min-height: 450px;
  }

  .top-recruit.sub_page {
    margin-top: 0;
    padding: 100px 20px 20px 20px;
    min-height: 450px;
    background-size: 100%;

  }


  .top-recruit__label {
    font-size: clamp(20px, 3vw, 30px);
    margin: 8px 0 30px;
  }

  .top-recruit__btns {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: nowrap;
  }

  .top-recruit__btn {
    max-width: 100%;
    padding: 20px 20px;
    font-size: clamp(18px, 3.0vw, 32px);
  }


  .top-recruit__btn {
    min-width: 160px;
    min-height: 58px;
  }

}

/* ========== top-recruit 浮遊シェイプ ==========
   トップ以外（職種ページ等）でも同じアニメが動くよう共通化。
   is-visible で中央から広がり、その後ふわふわ浮遊する */
@keyframes top-float {

  0%,
  100% {
    transform: translateY(16px);
  }

  50% {
    transform: translateY(-16px);
  }
}

.top-recruit__shape {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: calc(50% + 50px);
  transform: translate(-50%, -50%);
  width: 110px;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.top-recruit__shape.top-recruit__shape--01 {
  width: 110px;
  height: 110px;
}

.top-recruit__shape.top-recruit__shape--02 {
  width: 63px;
  height: 77px;
}

.top-recruit__shape.top-recruit__shape--03 {
  width: 241px;
  height: 236px;
}

.top-recruit__shape.top-recruit__shape--04 {
  width: 179px;
  height: 230px;
}

.top-recruit__shape.top-recruit__shape--05 {
  width: 121px;
  height: 150px;
}

.top-recruit__shape span {
  display: inline-block;
}

.top-recruit__shape img {
  display: block;
  width: 100%;
  height: auto;
}

.top-recruit.is-visible .top-recruit__shape {
  opacity: 1;
  transition: opacity 0.5s ease 0.8s;
}

.top-recruit.is-visible .top-recruit__shape img {
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.top-recruit.is-visible .top-recruit__shape--01 img {
  transform: translate(-650px, -240px);
  transition-delay: 0.8s;
}

.top-recruit.is-visible .top-recruit__shape--02 img {
  transform: translate(-100px, -260px);
  transition-delay: 0.7s;
}

.top-recruit.is-visible .top-recruit__shape--03 img {
  transform: translate(200%, -200px);
  transition-delay: 0.8s;
}

.top-recruit.is-visible .top-recruit__shape--04 img {
  transform: translate(-40vw, 240px);
  transition-delay: 0.7s;
}

.top-recruit.is-visible .top-recruit__shape--05 img {
  transform: translate(360px, 300px);
  transition-delay: 0.8s;
}

.top-recruit.is-visible .top-recruit__shape span {
  animation: top-float 12s ease-in-out infinite;
}

.top-recruit.is-visible .top-recruit__shape--01 span {
  animation-duration: 6s;
}

.top-recruit.is-visible .top-recruit__shape--02 span {
  animation-duration: 8s;
  animation-delay: -3s;
}

.top-recruit.is-visible .top-recruit__shape--04 span {
  animation-duration: 12s;
  animation-delay: -8s;
}

.top-recruit.is-visible .top-recruit__shape--05 span {
  animation-duration: 10s;
}

@media (max-width: 1023px) {
  .top-recruit__shape {
    width: min(16vw, 64px);
  }

  .top-recruit__shape.top-recruit__shape--01 {
    width: 50px;
    height: 50px;
  }

  .top-recruit__shape.top-recruit__shape--02 {
    width: 30px;
    height: 40px;
  }

  .top-recruit__shape.top-recruit__shape--03 {
    width: 70px;
    height: 70px;
  }

  .top-recruit__shape.top-recruit__shape--04 {
    width: 70px;
    height: 90px;
  }

  .top-recruit__shape.top-recruit__shape--05 {
    width: 70px;
    height: 90px;
  }

  .top-recruit.is-visible .top-recruit__shape--01 img {
    transform: translate(-42vw, -22vw);
  }

  .top-recruit.is-visible .top-recruit__shape--02 img {
    transform: translate(-14vw, -34vw);
  }

  .top-recruit.is-visible .top-recruit__shape--03 img {
    transform: translate(40vw, -20vw);
  }

  .top-recruit.is-visible .top-recruit__shape--04 img {
    transform: translate(-42vw, 26vw);
  }

  .top-recruit.is-visible .top-recruit__shape--05 img {
    transform: translate(38vw, 32vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-recruit__shape span {
    animation: none !important;
  }

  .top-recruit__shape,
  .top-recruit.is-visible .top-recruit__shape img {
    opacity: 1 !important;
    transition: none !important;
  }
}


.sp-only {
  display: none;
}
.pc-only {
  display: block;
}

@media (max-width: 1023px) {
  .sp-only {
    display: block;
  }
	.pc-only {
  	display:none;
	}
}