/* Recruitment home page. */

.recruit-page {
  background: var(--recruit-background);
}

.recruit-page .recruit-about-band {
  background: #f3f6f4;
}

.recruit-page .interview-section {
  background: transparent;
}

.recruit-page main .job-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  color: #466d60;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
}

.recruit-page main .job-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.recruit-page main .recruit-section > h2 {
  color: #183855;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  font-weight: 700;
  letter-spacing: .06em;
}

/* index.php: first-view slideshow. */
.hero {
  position: relative;
  overflow: hidden;
  padding: 200px 40px 80px;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
}

.hero-top {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
}

.hero-top h1 {
  margin: 0;
  padding: 0;
  font-size: clamp(1.2rem, 2.0vw, 2rem);
  line-height: 1.5;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  row-gap: 32px;
  column-gap: clamp(32px, 4vw, 64px);
  max-width: 1380px;
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  margin: 0 0 20px;
  color: #35578f;
  font-size: .95rem;
  font-weight: 550;
  letter-spacing: .1em;
}

.hero .hero-title {
  margin: 0;
  padding: 0;
  color: #183855;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.8rem, 3.1vw, 3rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .02em;
  text-align: left;
}

.hero .hero-title::after {
  content: none;
}

.hero-reading {
  font-size: .55em;
}

.hero-lead {
  margin: 24px 0 0;
  color: #435967;
  font-size: 16px;
  line-height: 1.95;
}

.hero-lead ruby {
  text-indent: 0px;
  display: ruby;
}

.hero-visual {
  position: relative;
  isolation: isolate;
  min-width: 0;
}

.hero-slides {
  position: relative;
  height: auto;
  overflow: hidden;
  border-radius: 8px;
  background: #e3eeeb;
}

.hero-slide {
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s;
}

.hero-slide[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.hero-slide video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1200px) {
  .hero {
    padding: 6px 24px;
  }

  .hero-inner {
    gap: 28px;
  }

  .hero-lead br {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 40px 20px 48px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-eyebrow {
    margin-bottom: 16px;
    font-size: .7rem;
  }

  .hero .hero-title {
    font-size: clamp(1.5rem, 5.8vw, 2.25rem);
  }

  .hero-lead {
    margin-top: 20px;
    font-size: .875rem;
  }

  .hero-slides {
    height: auto;
    border-radius: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

/* index.php: header stacking above the first view. */
.recruit-page > header {
  z-index: 10;
  background: #fff;
}

.recruit-page .recruit-text-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  font-family: "Noto Sans JP", sans-serif;
}

.recruit-page .recruit-text-grid > li,
.recruit-page .recruit-text-grid > li:hover {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.recruit-page .recruit-text-grid .recruit-card {
  box-sizing: border-box;
  height: 100%;
  overflow: visible;
  border: 0;
  border-top: 1px solid #a8b8c2;
  border-bottom: 1px solid #a8b8c2;
  border-radius: 0;
  background: transparent;
  color: #183855;
  box-shadow: none;
  text-decoration: none;
}

.recruit-page .recruit-text-grid .recruit-card::before,
.recruit-page .recruit-text-grid .recruit-card::after,
.recruit-page .recruit-text-grid .card-body h3::before {
  content: none;
}

.recruit-page .recruit-text-grid .card-body {
  min-height: 156px;
  margin: 0;
  padding: 28px 8px;
  gap: 20px;
  border-radius: 0;
}

.recruit-page .recruit-text-grid .card-body h3 {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
  color: #183855;
}

.recruit-page .recruit-text-grid .card-footer {
  gap: 16px;
  padding: 0;
  border: 0;
  color: #435967;
  font-size: .875rem;
  font-weight: 400;
}

.recruit-page .recruit-text-grid .card-arrow {
  display: inline-block;
  flex: 0 0 auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #35578f;
  font-size: 1.25rem;
  line-height: 1;
  transform: none;
  transition: none;
}

.recruit-page .recruit-text-grid .recruit-card:focus-visible {
  outline: 3px solid #35578f;
  outline-offset: 5px;
}

@media (hover: hover) {
  .recruit-page .recruit-text-grid .recruit-card:hover {
    background: transparent;
    border-color: #35578f;
    color: #183855;
    box-shadow: none;
  }

  .recruit-page .recruit-text-grid .recruit-card:hover .card-footer > span:first-child {
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .recruit-page .recruit-text-grid .recruit-card:hover .card-arrow {
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .recruit-page .recruit-text-grid .recruit-card {
    transition: border-color .2s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recruit-page .recruit-text-grid .recruit-card {
    transition: none;
  }
}

@media (max-width: 767px) {
  .recruit-page .recruit-text-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .recruit-page .recruit-text-grid .card-body {
    min-height: 140px;
    padding: 24px 4px;
    gap: 16px;
  }
}

/* Keep the first-view message in serif, with its existing size. */
.recruit-page main h1 {
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
}

/* Rounded headings soften the content while keeping the first-view message in serif. */
.recruit-page main h2,
.recruit-page main h3 {
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-weight: 700;
}

/* index.php: interview list. */
.recruit-page .interview-card {
  gap: clamp(24px, 3vw, 44px);
}

.recruit-page .interview-card-li {
  transition: none;
}

.recruit-page .interview-card-li:hover {
  transform: none;
  box-shadow: none;
}

.recruit-page .interview-card a {
  display: flex;
  flex-direction: column;
  color: #263746;
}

.recruit-page .interview-card .interview-card-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.recruit-page .interview-card-box {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0 0;
}

.recruit-page .interview-card-category,
.recruit-page .interview-card-job {
  margin: 0;
  color: #526479;
  font-size: .875rem;
}

.recruit-page .interview-card-ms {
  margin: 0;
  color: #183855;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.6;
}

.recruit-page .interview-card-view {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: auto 0 0;
  padding-top: 8px;
  color: #35578f;
  font-size: .875rem;
  font-weight: 600;
}

.recruit-page .interview-card a:hover .interview-card-view,
.recruit-page .interview-card a:focus-visible .interview-card-view {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.recruit-page .interview-card a:focus-visible {
  outline: 3px solid #35578f;
  outline-offset: 4px;
}
