/* ========== Global ========== */
html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  overflow-x: hidden; /* 横はみ出しの最終防衛線（根本対応も併用） */
}

/* すべてのボックスで枠を含めて計算：はみ出し軽減 */
*,
*::before,
*::after {
  box-sizing: inherit;
}

/* 画像/動画は親を超えない */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrapper {
  padding-top: 90px;
  background-image: url("../img/bg.png");
  background-repeat: no-repeat;
  background-position: center 400px;
  background-size: cover;
}

/* ========== Header / PC Nav ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav--pc {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav--pc .logo img {
  width: 200px;
  padding: 0.625rem 1.875rem;
}

.nav-list {
  display: flex;
  text-align: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap; /* 幅不足時に折り返してはみ出し回避 */
}

.nav-list li.nav-list--pc {
  padding: 0.9375rem 0;
}

.nav-list li.cta-button {
  background: #f26788;
  padding: 0.9375rem 1.875rem;
}

.nav-list li a {
  text-decoration: none;
  text-align: center;
  color: #454545;
  font-family: "Noto Sans JP";
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

/* 全リンクのホバー文字色をピンクに */
.nav-list li a:hover {
  color: #f26788;
}

.nav-list li a p {
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 800;
  line-height: 100%;
  margin: 0;
}

.nav-list li.cta-button a {
  color: #fff;
}

.nav-list li a.cta-button p {
  color: #fff;
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 800;
  line-height: 100%;
  margin: 0;
  transition: color 0.3s ease;
}
.nav-list li.cta-button:hover {
  background: none; /* 背景を消す */
}

.nav-list li.cta-button:hover a,
.nav-list li.cta-button:hover a p {
  color: #f26788; /* 文字色ピンク */
}
@media (max-width: 1080px) {
  .nav-list {
    gap: 0.3125rem;
  }
  .nav-list li.cta-button {
    padding: 0.9375rem 1.25rem;
  }
  .nav-list li a {
    font-size: 0.7rem;
    font-weight: 400;
  }
  .nav-list li a p {
    font-weight: 800;
    line-height: 100%;
  }
}

/* ========== Header / Mobile Nav ========== */
.nav--sp {
  display: none;
}
@media (max-width: 1024px) {
  .nav--pc {
    display: none !important;
  }
  .nav--sp {
    display: block;
  }
}

/* ヘッダーバー */
.nav--sp .sp-bar {
  height: 56px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 40;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.nav--sp .sp-logo img {
  height: 28px;
  width: auto;
  display: block;
}

/* トグル用チェックボックスは非表示 */
.sp-menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ハンバーガー */
.hamburger {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
}
.hamburger span,
.hamburger span::before,
.hamburger span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease,
    bottom 0.3s ease;
  position: relative;
}
.hamburger span::before {
  position: absolute;
  top: -7px;
}
.hamburger span::after {
  position: absolute;
  bottom: -7px;
}

/* オーバーレイ全体 */
.sp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 30;
}

/* パネル（中央の角丸ピンク） */
.sp-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 360px);
  transform: translate(-50%, -50%) scale(0.98);
  background: rgba(232, 140, 148, 0.8); /* ベースのピンク */
  border-radius: 28px;
  padding: 28px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}

/* 閉じる（×） */
.sp-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.sp-close::before,
.sp-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  background: #fff;
  transform-origin: center;
}
.sp-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.sp-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* メニューリスト */
.sp-menu {
  list-style: none;
  margin: 0;
  padding: 4px 6px;
  text-align: center;
  color: #fff;
}
.sp-menu li {
  margin: 4px 0;
}
.sp-menu a {
  display: block;
  padding: 12px 6px;
  color: #fff;
  text-decoration: none;
}
.sp-menu a p {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin: 0 0 2px 0;
}
/* 下線(区切り線) */
.sp-menu li:not(:last-child) a {
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
}
.sp-menu .is-cta a {
  border-bottom: none;
}
.sp-menu .cta {
  background: transparent;
}

/* 開閉状態（チェックON） */
.sp-menu-toggle:checked ~ .sp-bar .hamburger span {
  background: transparent;
}
.sp-menu-toggle:checked ~ .sp-bar .hamburger span::before {
  top: 0;
  transform: rotate(45deg);
}
.sp-menu-toggle:checked ~ .sp-bar .hamburger span::after {
  bottom: 0;
  transform: rotate(-45deg);
}
.sp-menu-toggle:checked ~ .sp-overlay {
  opacity: 1;
  visibility: visible;
}
.sp-menu-toggle:checked ~ .sp-overlay .sp-panel {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ========== 入社・退社時の契約締結や更新 ========== */

#nyusya h1,
#meisai h1,
#shinsei h1,
#zinzi h1 {
  margin: 2rem auto;
  font-family: "Noto Sans JP";
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 2.8rem;
  color: #fff;
  text-shadow: 2px 2px 0 #ff9db0, -2px 2px 0 #ff9db0, 2px -2px 0 #ff9db0,
    -2px -2px 0 #ff9db0, 0 3px 0 #ff9db0, 0 -3px 0 #ff9db0, 3px 0 0 #ff9db0,
    -3px 0 0 #ff9db0, 2px 0 0 rgba(255, 157, 176, 0.85),
    -2px 0 0 rgba(255, 157, 176, 0.85), 0 2px 0 rgba(255, 157, 176, 0.85),
    0 -2px 0 rgba(255, 157, 176, 0.85), 2px 1px 0 rgba(255, 157, 176, 0.8),
    -2px 1px 0 rgba(255, 157, 176, 0.8), 2px -1px 0 rgba(255, 157, 176, 0.8),
    -2px -1px 0 rgba(255, 157, 176, 0.8), 3px 0 2px rgba(255, 157, 176, 0.6),
    -3px 0 2px rgba(255, 157, 176, 0.6), 0 3px 2px rgba(255, 157, 176, 0.6),
    0 -3px 2px rgba(255, 157, 176, 0.6);
}
#nyusya h2,
#meisai h2,
#shinsei h2,
#zinzi h2 {
  margin: 2rem auto;
  font-family: "Noto Sans JP";
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: #454545;
}
#nyusya p,
#meisai p,
#shinsei p {
  margin: 2rem auto;
  margin-bottom: 3rem;
  font-family: "Noto Sans JP";
  line-height: 1.9;
  color: #454545;
  font-size: 1.3rem;
  text-align: center;
}

.nyusya-container,
.meisai-container,
.shinsei-container,
.zinzi-container {
  width: 100%;
  align-items: center;
  text-align: center;
  max-width: 1980px;
  margin: 0 auto;
  padding-top: 15rem;
}
.zinzi-container {
  margin-bottom: 10rem;
}
.nyusya-wrap,
.meisai-wrap,
.shinsei-wrap,
.zinzi-wrap {
  width: 100%;
  margin: 0 auto;
  max-width: 1980px;
  z-index: 1;
}
.nyusya_flow,
.meisai_flow,
.shinsei_flow,
.zinzi_flow {
  width: 55%;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .nyusya-container,
  .meisai-container,
  .shinsei-container,
  .zinzi-container {
    max-width: 900px;
    padding-top: 10rem;
  }
  #nyusya h1,
  #meisai h1,
  #shinsei h1,
  #zinzi h1 {
    font-size: 1.5rem;
  }
  #nyusya h2,
  #meisai h2,
  #shinsei h2,
  #zinzi h2 {
    font-size: 1rem;
  }
  #nyusya p,
  #meisai p,
  #shinsei p {
    font-size: 0.75rem;
  }

  .nyusya_flow,.meisai_flow,.shinsei_flow,.zinzi_flow{
  width: 65%;
}
}
@media (max-width: 500px) {
  .nyusya-container,
  .meisai-container,
  .shinsei-container,
  .zinzi-container {
    max-width: 350px;
    padding-top: 3rem;
  }
  #nyusya h1,
  #meisai h1,
  #shinsei h1,
  #zinzi h1 {
    font-size: 1.2rem;
  }
  #nyusya h2,
  #meisai h2,
  #shinsei h2,
  #zinzi h2 {
    font-size: 0.8rem;
  }
  #nyusya p,
  #meisai p,
  #shinsei p {
    font-size: 0.5rem;
  }

  .nyusya_flow,.meisai_flow,.shinsei_flow,.zinzi_flow{
  width: 70%;
}
}

/* ========== Footer ========== */
.footer {
  background-color: #42b8e5;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0.8rem 2rem;
  font-family: "Noto Sans JP", sans-serif;
}

.footer p {
  margin: 0;
  font-size: 1rem;
  text-align: center;
}

.footer .pagetop {
  position: absolute;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.footer .pagetop:hover {
  transform: translateY(-3px);
}

.footer .top_arrow {
  width: 1rem;
  height: auto;
}
@media (max-width: 765px) {
  .footer p {
    font-size: 0.5rem;
  }
}
