/* =========================================================
   Career ページ専用スタイル
   ========================================================= */

/* ---- セクション共通見出し ---- */
.career-sec-head {
  text-align: center;
  margin-bottom: 30px;
}
.career-sec-head__en {
  display: block;
  font-family: var(--font-en);
  font-size: 60px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  line-height: 1;
}
.career-sec-head__en--sm {
  font-size: 40px;
}
.career-sec-head__ja {
  display: block;
  font-size: 14px;
  color: var(--color-text);
  margin-top: 20px;
}

/* ---- INTRODUCTION ---- */
.career-intro {
  padding: 80px 0 0;
  text-align: center;
  overflow: hidden;
}

/* マップ画像とピン */
.intro-map {
  position: relative;
  width: 1140px;
  max-width: calc(100% - 40px);
  margin: 30px auto 0;
  display: block;
}
.intro-map__inner {
  position: relative;
  width: 100%;
}
.intro-map__img {
  width: 100%;
  display: block;
}

/* 青い円ボタン（CSS生成） */
.map-pin {
  position: absolute;
  width: 35px;
  height: 35px;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
/* 中心：実線青円 */
.map-pin::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--color-primary);
  z-index: 2;
}
/* 外側：波紋アニメーション（1本） */
.map-pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: transparent;
  animation: pin-ripple 2.5s ease-out infinite;
  z-index: 1;
}
@keyframes pin-ripple {
  0%   { box-shadow: 0 0 0 0 rgba(0, 111, 250, 0.45); }
  100% { box-shadow: 0 0 0 14px rgba(0, 111, 250, 0); }
}
.map-pin:hover,
.map-pin.is-active {
  transform: translate(-50%, -50%) scale(1.2);
}

/* ポップアップ（フェードイン） */
.map-popup {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  width: 300px;
  height: 120px;
  background: var(--color-white);
  border: 1px solid var(--color-primary);
  border-radius: 60px;
  padding: 20px 0 20px 30px;
  box-shadow: 0 0 30px rgba(0, 111, 250, 0.25);
  z-index: 100;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.map-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 閉じるボタン（右上の × 丸） */
.map-popup__close {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-popup__close::before {
  content: '×';
  display: block;
  font-size: 24px;
  line-height: 1;
}

.map-popup__icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-popup__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.map-popup__content {
  flex: 1;
  min-width: 0;
  margin-top: 5px;
  text-align: left;
}
.map-popup__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
}
.map-popup__text {
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.5;
  white-space: pre-line;
  margin-top: 4px;
}

/* キャプション ＆ バナー */
.intro-caption {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-gray);
  letter-spacing: 0.1em;
  margin-top: 30px;
}
.intro-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  border-radius: 15px;
  margin: 16px auto 60px;
  padding: 16px 30px;
}
.intro-banner p {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.1em;
  line-height: 1;
}

/* ---- MESSAGE ---- */
.career-message {
  background: var(--color-bg);
  padding: 80px 0;
}
.career-message__card {
  background: var(--color-white);
  border-radius: 100px;
  box-shadow: 0 0 30px rgba(0, 111, 250, 0.25);
  padding: 80px 100px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
}
.career-message__card .career-sec-head {
  margin-bottom: 0;
}
.career-message__text {
  flex: 1;
}
.career-message__text p {
  font-size: 16px;
  line-height: 2;
  color: var(--color-text);
}
.career-message__text p + p {
  margin-top: 1em;
}
.career-message__photo {
  align-self: flex-end;
  display: flex;
  align-items: flex-end;
  gap: 20px;
}
.career-message__photo img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  flex-shrink: 0;
}
.career-message__credit {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.5;
  text-align: right;
}

/* ---- PHILOSOPHY ---- */
.career-philosophy {
  background: var(--color-bg);
  padding: 80px 0;
}
.philosophy-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  max-width: 1140px;
  margin: 0 auto;
}
.philosophy-card {
  flex: 1;
  background: var(--color-white);
  border-radius: 50px;
  box-shadow: 0 0 30px rgba(0, 111, 250, 0.25);
  padding: 40px 24px;
  text-align: center;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.philosophy-card__num {
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.philosophy-card p {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.6;
}

/* ---- VOICES ---- */
.career-voices {
  background: var(--color-bg);
  padding: 80px 0;
}
.voices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
}
.voice-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}
.voice-card__photo {
  width: 100%;
  height: 400px;
  border-radius: 135px;
  overflow: hidden;
}
.voice-card__photo--colored {
  background: linear-gradient(to bottom, var(--color-white), var(--color-bg));
}
.voice-card__photo--colored img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.voice-card__photo--gray {
  background: var(--color-gray);
}
.voice-card__label {
  position: absolute;
  bottom: 20px;
  left: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.voice-card__name {
  display: inline-block;
  background: var(--color-white);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1;
  align-self: flex-start;
}
.voice-card__titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.voice-card__titles span {
  display: inline-block;
  background: var(--color-white);
  border-radius: 5px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
  align-self: flex-start;
}

/* ---- SUPPORT ---- */
.career-support {
  background: var(--color-bg);
  padding: 0 0 80px;
}
.support-card {
  background: var(--color-white);
  border-radius: 50px;
  box-shadow: 0 0 30px rgba(0, 111, 250, 0.25);
  padding: 48px 50px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 940px;
  margin: 0 auto;
}
.support-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: -20px;
  position: relative;
  z-index: 1;
}
.support-card__img {
  flex-shrink: 0;
  width: 115px;
}
.support-card__img img {
  width: 100%;
  height: auto;
}
.support-card__body { flex: 1; }
.support-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.support-card__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
}

/* ---- ENTRY / EVENT ---- */
.career-entry-event {
  padding: 80px 0 100px;
}
.entry-event-grid {
  display: flex;
  gap: 0;
  max-width: 1140px;
  margin: 0 auto;
  align-items: flex-start;
}
.entry-col,
.event-col {
  flex: 1;
  padding: 0 40px;
}
.entry-event-divider {
  width: 1px;
  background: var(--color-gray);
  align-self: stretch;
  opacity: 0.4;
  min-height: 300px;
}
.mynavi-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 10px;
}
.mynavi-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.mynavi-link__logo {
 width: 195px;
 height: 60px;
 display: block;
 margin: 0 auto 10px;
}
.mynavi-link__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: center;
}

/* =========================================================
   Career ページ レスポンシブ
   ========================================================= */
@media (max-width: 1240px) {
  .career-message__card {
    border-radius: 60px;
    padding: 60px;
  }
  .intro-banner p { font-size: 24px; }
}

@media (max-width: 900px) {
  /* セクション見出し */
  .career-sec-head__en { font-size: 40px; }
  .career-sec-head__en--sm { font-size: 32px; }

  /* INTRODUCTION */
  .intro-banner { border-radius: 12px; padding: 14px 20px; }
  .intro-banner p { font-size: 16px; letter-spacing: 0.03em; }
  .intro-caption { font-size: 15px; }
  .map-pin { width: 24px; height: 24px; }
  .map-pin::before { width: 12px; height: 12px; }
  .map-pin::after { width: 12px; height: 12px; }

  /* MESSAGE */
  .career-message__card {
    border-radius: 40px;
    padding: 40px 30px;
    gap: 30px;
  }

  /* PHILOSOPHY */
  .philosophy-cards {
    flex-direction: column;
    max-width: 480px;
    gap: 16px;
  }
  .philosophy-card { min-height: auto; padding: 30px 20px; }

  /* VOICES（SP: Swiperスライダー） */
  .career-voices { overflow: hidden; }
  .voices-swiper {
    overflow: visible;
    margin: 0 -20px; /* .container の padding を相殺してビューポート全幅に */
  }
  /* .voices-grid の grid を Swiper の flex に切り替え・余分なスタイルをリセット */
  .voices-swiper .voices-grid {
    display: flex;
    gap: 0; /* grid の gap と Swiper の spaceBetween が二重にかかるのを防ぐ */
    max-width: none;
    margin: 0;
  }
  .voices-swiper .swiper-slide { width: 270px; }
  .voice-card__photo { height: 400px; border-radius: 135px; }

  /* SUPPORT */
  .support-card {
    flex-direction: column;
    border-radius: 30px;
    padding: 30px 24px;
    gap: 20px;
  }
  .support-card__img { width: 80px; }

  /* INTRODUCTION マップ拡大（イラスト＋ピンのみ） */
  .intro-map { overflow: visible; margin-bottom: 150px; }
  .intro-map__inner {
    transform: scale(1.5);
    transform-origin: top center;
  }

  /* ポップアップ：PC同サイズ＋位置固定（JSのインライン上書き対策で !important） */
  .map-popup {
    width: 300px !important;
    height: 120px !important;
    padding: 20px 0 20px 30px !important;
    border-radius: 60px !important;
    gap: 15px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -120px !important;
    top: auto !important;
    margin: 0 auto;
  }
  .map-popup__icon { width: 72px; height: 72px; }
  .map-popup__close { width: 36px; height: 36px; top: -6px; right: -6px; }
  .map-popup__close::before { font-size: 20px; }
  .map-popup__title { font-size: 15px; }
  .map-popup__text { font-size: 12px; }

  /* セクション余白 80px → 30px */
  .career-intro    { padding: 30px 0 0; }
  .career-message  { padding: 30px 0; }
  .career-philosophy { padding: 30px 0; }
  .career-voices   { padding: 30px 0; }
  .career-support  { padding: 0 0 30px; }

  /* SUPPORT アイコン中央揃え */
  .support-card { align-items: center; }

  /* ENTRY/EVENT */
  .entry-event-grid { flex-direction: column; }
  .entry-col, .event-col { padding: 0; text-align: center; margin: auto; }
  .entry-event-divider { width: 100%; min-height: 1px; height: 1px; margin: 30px 0; }
  .career-entry-event { padding: 30px 20px; }
}
