/* Page: Job Archive */

/* (Job Archive Hero removed — uses shared page-header component) */

/* ── Filter Section ── */
.job-filter {
  padding: 32px 0 40px;
}

.job-filter__header {
  display: block;
}

.job-filter__toggle {
  display: none;
}

.job-filter__label {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-primary, #e60012);
  margin-bottom: 10px;
}

.job-filter__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px 24px;
}

.job-filter__group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.job-filter__group-label {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  flex-shrink: 0;
  width: 60px;
  align-self: flex-start;
}

.job-filter__tags {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* filter-tag styles → components/filter-tag.css (shared) */

/* Hide modal-only elements on desktop */
.job-filter__close {
  display: none;
}

.job-filter__modal-bar {
  display: none;
}

.job-filter__submit {
  display: none;
}

.job-filter__clear {
  background: #1a1a1a;
  border: 1px solid #1a1a1a;
  border-radius: 999px;
  padding: 0px 20px;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s;
  width: 138px;
  height: 26px;
}

.job-filter__clear-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.job-filter__clear:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

/* ── Job List Cards ── */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Override fade-in-up for archive — filter needs instant visibility */
.job-filter.fade-in-up,
.job-list .job-card.fade-in-up,
.job-list-section.fade-in-up {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.job-list-section {
  padding-top: 40px;
}

.job-list .job-card {
  position: relative;
  display: flex;
  align-items: stretch;
  background: #fff;
  /* border: none; */
  border-bottom: 1px solid #e0e0e0;
  /* border-radius: 0; */
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  /* padding: 28px 0; */
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
  min-height: 139px;
  height: auto;
  /* padding-bottom: 12px; */
}

.job-list .job-card:first-child {
  border-top: 1px solid #e0e0e0;
}

/* .job-list .job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
} */

.job-list .job-card__media {
  width: 280px;
  min-height: 180px;
  flex-shrink: 0;
  overflow: hidden;
}

.job-list .job-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-list .job-card__body {
  flex: 1;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 140px;
}

.job-list .job-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* .job-card__emp-tag は components/job-card.css に移動済み */

.job-list .job-card__text {
  font-size: 14px;
}

/* job-card__btn removed — now using .job-card__more from shared component */

/* No results message */
.job-list .text-muted {
  text-align: center;
  padding: 60px 0;
  color: var(--color-text-light);
  font-size: 16px;
}

/* ── Bottom CTA Section ── */
.job-bottom-cta {
  padding: 60px 0 0;
}

.job-bottom-cta__catchphrase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
}

.catchphrase__part {
  /* font-family: var(--font-catch, "Zen Old Mincho", serif); */
  font-size: 28px;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.catchphrase__part--accent {
  color: var(--color-primary);
  font-weight: 600;
}

.catchphrase__img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.job-bottom-links {
  background: #1a2332;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

/* Curved top edge for dark section */
.job-bottom-links::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -10%;
  right: -10%;
  height: 80px;
  background: #fff;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.job-bottom-links__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.job-bottom-link-card {
  position: relative;
  display: block;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

.job-bottom-link-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-bottom-link-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}

.job-bottom-link-card__content {
  position: relative;
  z-index: 1;
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.job-bottom-link-card__title {
  /* font-family: var(--font-en); */
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
}

.job-bottom-link-card__sub {
  font-size: 14px;
  color: #fff;
}

.job-bottom-link-card__sub::first-letter {
  color: var(--color-primary);
}

.job-bottom-link-card__btn-band {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 4px;
  display: inline-block;
  margin-top: auto;
}

.job-bottom-link-card .btn--white {
  color: #fff;
  border-color: #fff;
}

.job-bottom-link-card .btn--white::after {
  border-color: #fff;
}

/* ── Responsive ──  */
@media (max-width: 768px) {
  /* ── Filter Section ── */
  .job-filter {
    padding: 0;
  }

  .job-filter__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }

  .job-filter__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 20px;
    background: #fff;
    border: 1px solid #1a1a1a;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
  }

  .job-filter__toggle:hover {
    background: #f5f5f5;
  }

  .job-filter__toggle-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .job-filter__toggle-text {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
  }

  .job-filter__label {
    font-size: 18px;
    margin-bottom: 0;
  }

  /* Modal wrapper - hidden by default on mobile */
  .job-filter__modal-wrapper {
    display: none;
  }

  /* PC clear-wrap - hidden on mobile */
  .job-filter__clear-wrap {
    display: none !important;
  }

  /* ── Modal open: wrapper as single fixed container ── */
  .job-filter--modal-open .job-filter__modal-wrapper {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    z-index: 1004;
  }

  .job-filter--modal-open .job-filter__close {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #1a1a1a;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    color: #1a1a1a;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
    margin-bottom: 8px;
  }

  .job-filter--modal-open .job-filter__close:hover {
    background: #f5f5f5;
  }

  .job-filter--modal-open .job-filter__modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 12px 0;
  }

  .job-filter__modal-bar .job-filter__label {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-primary, #e60012);
    margin: 0;
    flex-shrink: 0;
  }

  .job-filter__modal-bar .job-filter__clear {
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: 999px;
    padding: 0px 16px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
  }

  .job-filter__inner {
    display: none;
    flex-direction: column;
    gap: 16px;
  }

  .job-filter__inner.is-open {
    display: flex !important;
  }

  /* ── Modal (filter open) ── */
  .job-filter--modal-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;
  }

  .job-filter--modal-open .job-filter__header {
    display: none;
  }

  .job-filter--modal-open .job-filter__inner {
    background: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    max-height: 65vh;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: none;
  }

  /* Submit button - hidden by default */
  .job-filter__submit {
    display: none;
  }

  .job-filter--modal-open .job-filter__submit {
    display: block;
    width: 80%;
    max-width: 200px;
    height: 36px;
    margin: 16px auto 0;
    padding: 0px 24px;
    background: #fff;
    border: 2px solid var(--color-primary, #e60012);
    border-radius: 999px;
    color: var(--color-primary, #e60012);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }

  .job-filter--modal-open .job-filter__submit:hover {
    background: var(--color-primary, #e60012);
    color: #fff;
  }

  .job-filter--modal-open .container {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    background: transparent;
    border-radius: 0;
    z-index: auto;
    box-shadow: none;
    display: block;
    max-height: none;
    overflow: visible;
  }

  .job-filter__clear {
    align-self: flex-end;
    font-size: 12px;
    padding: 5px 12px;
  }

  .job-filter__group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .job-filter__tags {
    gap: 6px;
  }

  /* ── Job Cards ── */
  .job-list .job-card {
    flex-direction: column;
    padding: 0;
    padding-bottom: 17px;
    margin-bottom: 24px;
    gap: 0;
  }

  .job-list .job-card__media {
    width: 100%;
    min-height: 180px;
    height: 200px;
  }

  .job-list .job-card__body {
    padding: 16px 16px;
  }

  .job-list .job-card__title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .job-list .job-card .job-card__more {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transform: none;
    width: fit-content;
  }

  /* ── Bottom CTA Section ── */
  .job-bottom-cta {
    padding: 40px 0 0;
  }

  .job-bottom-cta__catchphrase {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
  }

  .catchphrase__part {
    font-size: 20px;
  }

  .catchphrase__img {
    width: 80px;
    height: 56px;
  }

  /* ── Bottom Links ── */
  .job-bottom-links {
    padding: 40px 0;
  }

  .job-bottom-links::before {
    top: -24px;
    height: 48px;
  }

  .job-bottom-links__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .job-bottom-link-card {
    height: 200px;
  }

  .job-bottom-link-card__title {
    font-size: 24px;
  }

  /* ── No results ── */
  .job-list .text-muted {
    padding: 40px 0;
    font-size: 14px;
  }
}

/* ── マイナビバナー ── */
.mynavi-banner {
  padding: 0px;
}

.mynavi-banner .container {
  display: flex;
  justify-content: center;
}

.mynavi-banner__link {
  display: flex;
  align-items: center;
  gap: 23px;
  max-width: 600px;
  width: 100%;
  padding: 0px 19px;
  border: 2px solid #00aaec;
  border-radius: 8px;
  background: #f8fdff;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}

.mynavi-banner__link:hover {
  box-shadow: 0 4px 16px rgba(0, 170, 236, 0.15);
  border-color: #008ecc;
}

.mynavi-banner__logo {
  flex-shrink: 0;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mynavi-banner__logo-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.mynavi-banner__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mynavi-banner__title {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 700;
  color: #00aae8;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.mynavi-banner__sub {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.mynavi-banner__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-right: 8px;
}

.mynavi-banner__icon-img {
  width: 24px;
  height: auto;
  display: block;
}

.mynavi-banner__title--sp {
  display: none;
}

@media (max-width: 768px) {
  .job-list-section {
    padding-top: 24px;
  }

  .mynavi-banner .container {
    padding: 0;
  }

  .mynavi-banner__link {
    gap: 14px;
    padding: 6px 11px 10px 11px;
    border-radius: 8px;
    width: 360px;
    height: 72px;
  }
  .mynavi-banner__icon {
    padding-right: 13px;
  }

  .mynavi-banner__logo {
    width: 56px;
  }

  .mynavi-banner__title--pc {
    display: none;
  }

  .mynavi-banner__title--sp {
    display: block;
  }

  .mynavi-banner__icon-img {
    width: 24px;
  }
}
