@import url('https://fonts.googleapis.com/css2?family=Alata&family=Noto+Sans:wght@400;700&family=Noto+Sans+JP:wght@400;700&display=swap');

/* --- scoped reset (既存グローバルCSSの継承を遮断。:where()で詳細度0にしレイアウト指定を邪魔しない) --- */
.p-skibaito, .p-skibaito * , .p-skibaito *::before, .p-skibaito *::after { box-sizing: border-box; }
.p-skibaito :where(h2, h3, p, ul, li, figure) { margin: 0; padding: 0; }
.p-skibaito :where(ul) { list-style: none; }
.p-skibaito :where(img) { display: block; max-width: 100%; border: 0; }
.p-skibaito :where(a) { text-decoration: none; color: inherit; }

/* --- section --- */
.p-skibaito {
  position: relative;
  /* 親コンテナの横幅制約を無視して背景をビューポート全幅に広げる（内側は max-width で中央寄せ） */
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 50px;
  font-family: "Noto Sans", "Noto Sans JP", sans-serif;
  color: #2c2b2b;
}
.p-skibaito__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.p-skibaito__inner {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  max-width: 1043px;
  margin-inline: auto;
  padding: 26px 20px 39px;
}

/* --- head --- */
.p-skibaito__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.p-skibaito__ribbon {
  position: relative;
  display: inline-block;
  width: 303px;
  max-width: 100%;
}
.p-skibaito__ribbon img { width: 100%; height: auto; }
.p-skibaito__ribbon span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.p-skibaito__title {
  margin-top: 29px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.36;
  color: #125cb0;
}
.p-skibaito__lead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 26px;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.36;
  color: #2c2b2b;
}
.p-skibaito__accent { color: #2472ba; }
.p-skibaito__deco {
  display: inline-block;
  flex-shrink: 0;
  width: 2px;
  height: 34px;
  background: #278cb2;
}
.p-skibaito__deco--left { transform: rotate(-22deg); }
.p-skibaito__deco--right { transform: rotate(22deg); }

/* --- cards --- */
.p-skibaito__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 311px));
  justify-content: center;
  gap: 27px;
  margin-top: 37px;
}
.p-skibaito__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  padding-bottom: 16px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 4px 4px 4.7px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
/* カード枠全体をクリック可能にするラッパー */
.p-skibaito__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  cursor: pointer;
}
/* hover: カードを少し浮かせて影を強調 */
.p-skibaito__card:hover {
  transform: translateY(-6px);
  box-shadow: 6px 10px 20px rgba(0, 0, 0, 0.22);
}
.p-skibaito__photo {
  position: relative;
  aspect-ratio: 311 / 193;
  overflow: hidden;
}
.p-skibaito__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-skibaito__area {
  position: absolute;
  top: 13px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 77px;
  height: 26px;
  padding-inline: 12px;
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  font-size: 16px;
  line-height: 1;
  color: #000;
}
/* エリアバッジ配色（カード別） */
.p-skibaito__card:nth-of-type(1) .p-skibaito__area { background: #b53ac8; color: #fff; } /* 長野 */
.p-skibaito__card:nth-of-type(2) .p-skibaito__area { background: #50c6ae; color: #fff; } /* 新潟 */
.p-skibaito__card:nth-of-type(3) .p-skibaito__area { background: #c57c4f; color: #fff; } /* 北海道 */
.p-skibaito__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
  padding-inline: 12px;
}
.p-skibaito__name {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.36;
  color: #2472ba;
  text-align: center;
}
.p-skibaito__name::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  margin: 18px auto 0;
  background: #2472ba;
}
.p-skibaito__job {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 16px;
  line-height: 1.36;
  color: #5e5e5e;
}
.p-skibaito__job img { width: 35px; height: auto; flex-shrink: 0; }
.p-skibaito__perks {
  display: flex;
  gap: 12px;
}
.p-skibaito__perks > li {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 77px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid #d9d9d9;
  border-radius: 2px;
}
.p-skibaito__perks img { width: auto; height: 34px; }
.p-skibaito__perkLabel {
  font-family: "Alata", "Noto Sans", "Noto Sans JP", sans-serif;
  font-size: 10px;
  line-height: 1;
  color: #5e5e5e;
}
.p-skibaito__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 59px;
  border-radius: 5px;
  background: linear-gradient(90deg, #2e9fbc 0%, #278cb2 100%);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
/* hover 時は文字色を白のまま維持し、ボタン背景を濃くする */
.p-skibaito__btn { transition: background 0.25s ease; }
.p-skibaito__link:hover .p-skibaito__btn,
.p-skibaito__btn:hover {
  color: #fff;
  background: linear-gradient(90deg, #257f96 0%, #1f708e 100%);
}
.p-skibaito__btn img {
  position: absolute;
  top: 50%;
  right: 24px;
  width: 9px;
  height: auto;
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}
/* hover: 矢印を少し右にスライド */
.p-skibaito__link:hover .p-skibaito__btn img {
  transform: translateY(-50%) translateX(4px);
}

/* --- responsive --- */
@media (max-width: 1080px) {
  .p-skibaito__inner { padding-inline: 16px; }
}
@media (max-width: 768px) {
  .p-skibaito__title { font-size: 28px; }
  .p-skibaito__lead { font-size: 18px; gap: 12px; }
  .p-skibaito__cards { grid-template-columns: minmax(0, 340px); margin-top: 28px; }
}
@media (max-width: 480px) {
  .p-skibaito__ribbon { width: 260px; }
  .p-skibaito__ribbon span { font-size: 16px; }
  .p-skibaito__title { font-size: 22px; }
  .p-skibaito__lead { font-size: 16px; }
}
/* アニメーション抑制設定のユーザーには動きを無効化 */
@media (prefers-reduced-motion: reduce) {
  .p-skibaito__card,
  .p-skibaito__btn,
  .p-skibaito__btn img { transition: none; }
  .p-skibaito__card:hover { transform: none; }
  .p-skibaito__link:hover .p-skibaito__btn img { transform: translateY(-50%); }
}
