@charset "UTF-8";

/* =========================================================
   福利厚生を知る
   Page-specific styles only.
   Shared lower-page styles live in lower.css.
========================================================= */

/* Hero
--------------------------------------------------------- */

.benefit-page__hero-media {
  background: #eaf5fb;
}

.benefit-page__hero-media img {
  display: block;
}

.benefit-page__hero-title-break {
  display: inline;
}

/* Main content
--------------------------------------------------------- */

.benefit-page__content {
  max-width: 1000px;
}

.benefit-page__section {
  background: var(--color-back-lightbrown);
}

.lower-page__section + .lower-page__section {
  margin-top: 80px;
}

.benefit-page__section .lower-page__section-lead {
  margin-bottom: 48px;
  font-weight: 700;
}

.benefit-page__cards {
  display: grid;
  gap: 24px;
}

.benefit-page__cards + .benefit-page__cards {
  margin-top: 24px;
}

.benefit-page__cards--single {
  grid-template-columns: 1fr;
}

.benefit-page__cards--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.benefit-page__cards--3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-page__cards--4col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Card
--------------------------------------------------------- */

.benefit-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--color-accent);
  border-radius: 16px;
  background: var(--color-gray0);
}

.benefit-card__title {
  position: relative;
  padding-bottom: 16px;
  color: var(--color-text-main);
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
}

.benefit-card__title::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  content: "";
}

.benefit-card__text {
  margin-top: 16px;
  font-size: 13px;
  line-height: 2;
  text-align: justify;
  text-justify: inter-ideograph;
}

.benefit-card__notes {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
}

.benefit-card__notes li {
  position: relative;
  padding-left: 1em;
}

.benefit-card__notes li::before {
  position: absolute;
  left: 0;
  color: var(--color-accent);
  content: "・";
}

.benefit-card--media {
  min-height: 550px;
}

.benefit-card__media {
  margin-top: auto;
  padding-top: 28px;
}

.benefit-card__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.benefit-page__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.benefit-page__tags li {
  padding: 5px 12px;
  border: 1px solid var(--color-brown);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.benefit-page__tags li:last-child {
  padding-right: 0;
  padding-left: 0;
  border: 0;
  border-radius: 0;
}

/* Sub section
--------------------------------------------------------- */

.benefit-subsection {
  margin-top: 48px;
}

.benefit-subsection__title {
  color: var(--color-accent);
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.benefit-subsection__lead {
  margin-top: 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 2;
}

.benefit-subsection .benefit-page__cards {
  margin-top: 30px;
}

.benefit-subsection .benefit-page__cards--4col .benefit-card__title {
  min-height: 66px;
}

.benefit-card--wide {
  margin-top: 24px;
}

.benefit-page__cards--certification {
  margin-top: 24px;
}

.benefit-card--certification {
  min-height: 345px;
}

.benefit-card__certification-logo {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 24px;
}

.benefit-card__certification-logo img {
  display: block;
  width: min(150px, 48%);
  height: auto;
}

/* Career link
--------------------------------------------------------- */

.benefit-page__career-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(720px, 100%);
  margin: 48px auto 0;
  padding: 24px;
  border: 1px solid var(--color-accent);
  border-radius: 16px;
  background: var(--color-back-pink);
  color: var(--color-text-main);
  text-align: center;
  transition: opacity 0.3s ease;
}

.benefit-page__career-link:hover,
.benefit-page__career-link:focus-visible {
  opacity: 0.8;
}

.benefit-page__career-link-text {
  font-size: 15px;
  font-weight: 700;
}

.benefit-page__career-link-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  line-height: 1;
}

.benefit-page__career-link-action strong,
.benefit-page__career-link-action > span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.benefit-page__career-link strong {
  color: var(--color-accent);
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.benefit-page__career-link-action > span {
  color: var(--color-accent);
}

/* Tablet
--------------------------------------------------------- */

@media (max-width: 1399px) {
  .benefit-page__content {
    max-width: 960px;
  }

  .benefit-card {
    padding: 26px;
  }

  .benefit-page__cards--4col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* SP
--------------------------------------------------------- */

@media (max-width: 767px) {
  .benefit-page__hero {
    width: 100%;
  }

  .benefit-page__hero .lower-page__hero-inner {
    display: flex;
    flex-direction: column;
  }

  .benefit-page__hero .lower-page__hero-copy {
    min-height: 180px;
    padding: 32px var(--page-gutter-sp);
  }

  .benefit-page__hero .lower-page__hero-title {
    font-size: 30px;
    line-height: 1.35;
  }

  .benefit-page__hero .lower-page__hero-media {
    min-height: 0;
  }

  .benefit-page__hero .lower-page__hero-media img {
    width: 100%;
    aspect-ratio: 390 / 244;
    height: auto;
    object-fit: cover;
  }

  .benefit-page__content {
    width: calc(100% - (var(--page-gutter-sp) * 2));
    padding-top: 80px;
  }

  .benefit-page__section {
    padding: 64px 16px;
    border-radius: 16px;
  }

  .benefit-page__section .lower-page__section-lead {
    margin-top: 32px;
    margin-bottom: 48px;
    font-size: 15px;
    line-height: 2;
  }

  .benefit-page__cards,
  .benefit-page__cards--2col,
  .benefit-page__cards--3col,
  .benefit-page__cards--4col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefit-page__cards + .benefit-page__cards {
    margin-top: 12px;
  }

  .benefit-card {
    padding: 25px;
    border-radius: 16px;
  }

  .benefit-card--media,
  .benefit-card--certification {
    min-height: 0;
  }

  .benefit-card__title {
    padding-bottom: 16px;
    font-size: 18px;
  }

  .benefit-card--media:first-child .benefit-card__title {
    font-size: 18px;
  }

  .benefit-card--media:first-child
    .benefit-card__title
    .benefit-card__title-sub {
    font-size: 14px;
  }

  .benefit-card__media picture {
    display: block;
    width: 100%;
  }

  .benefit-card__title::after {
    width: 32px;
  }

  .benefit-card__text {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.95;
  }

  .benefit-card__notes {
    margin-top: 14px;
    font-size: 12px;
  }

  .benefit-card__media {
    margin-top: 22px;
    padding-top: 0;
  }

  .benefit-page__tags {
    gap: 6px;
    margin-top: 16px;
  }

  .benefit-page__tags li {
    padding: 11px 12px;
    font-size: 12px;
  }

  .benefit-subsection {
    margin-top: 40px;
  }

  .benefit-subsection__title {
    font-size: 22px;
  }

  .benefit-subsection__lead {
    margin-top: 32px;
    font-size: 14px;
    line-height: 2;
  }

  .benefit-subsection .benefit-page__cards {
    margin-top: 22px;
  }

  .benefit-subsection .benefit-page__cards--4col .benefit-card__title {
    min-height: 0;
  }

  .benefit-card--wide,
  .benefit-page__cards--certification {
    margin-top: 12px;
  }

  .benefit-card__certification-logo {
    padding-top: 20px;
  }

  .benefit-card__certification-logo img {
    width: 120px;
  }

  .benefit-page__career-link {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    padding: 24px;
    border-radius: 16px;
  }

  .benefit-page__career-link-text {
    flex: 0 0 100%;
    font-size: 14px;
  }

  .benefit-page__career-link strong {
    font-size: 18px;
  }
}

/* =========================================================
   人材育成を知る
========================================================= */

/* Hero
--------------------------------------------------------- */

.career-page__hero-media {
  background: #eef4f6;
}

.career-page__hero-media img {
  display: block;
}

/* Main content
--------------------------------------------------------- */

.career-page__section {
  background: var(--color-back-lightbrown);
}

/* Training
--------------------------------------------------------- */

.career-training-card {
  display: flex;
  gap: 32px;
  overflow: hidden;
  margin-top: 48px;
  padding: 24px;
  border: 1px solid var(--color-accent);
  border-radius: 16px;
  background: var(--color-gray0);
}

.career-training-card__body {
  flex: 0 0 405px;
  width: 405px;
}

.career-training-card__section + .career-training-card__section {
  margin-top: 32px;
}

.career-training-card__title {
  color: var(--color-text-main);
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.career-training-card__text {
  margin-top: 16px;
  font-size: 13px;
  line-height: 2;
  text-align: justify;
  text-justify: inter-ideograph;
}

.career-training-card__media {
  flex: 0 0 435px;
  width: 435px;
  min-width: 0;
}

.career-training-card__media img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

/* DEI
--------------------------------------------------------- */

.career-page__dei-title {
  display: flex;
  flex-direction: column;
}

.career-page__dei-title-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.career-page__dei-title-main,
.career-page__dei-title-bottom {
  display: block;
}

.career-page__dei-title-sub {
  font-size: 20px;
  line-height: 1.5;
}

.career-page__activity-card {
  align-items: center;
  margin-bottom: 24px;
  padding: 24px 32px;
  text-align: center;
}

.career-page__activity-title {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-accent);
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.career-page__activity-text {
  margin-top: 16px;
  font-size: 13px;
  line-height: 2;
}

.career-page__dei-cards .benefit-card {
  min-height: 270px;
}

.career-page__benefit-link {
  margin-top: 64px;
}

/* Tablet
--------------------------------------------------------- */

@media (max-width: 1399px) {
  .career-training-card__body {
    flex: 1 1 405px;
    width: auto;
  }

  .career-training-card__media {
    flex: 1 1 435px;
    width: auto;
  }
}

@media (max-width: 1024px) {
  .career-training-card {
    flex-direction: column;
    gap: 0;
  }

  .career-training-card__body {
    flex: 0 0 auto;
    width: 100%;
  }

  .career-training-card__media {
    flex: 0 0 auto;
    width: 100%;
    margin: 40px 0 0;
  }

  .career-training-card__media img {
    width: 100%;
    height: auto;
  }
}

/* SP
--------------------------------------------------------- */

@media (max-width: 767px) {
  .career-page__hero {
    width: 100%;
  }

  .career-page__hero .lower-page__hero-inner {
    display: flex;
    flex-direction: column;
  }

  .career-page__hero .lower-page__hero-copy {
    min-height: 180px;
    padding: 32px var(--page-gutter-sp);
  }

  .career-page__hero .lower-page__hero-title {
    font-size: 30px;
    line-height: 1.35;
  }

  .career-page__hero .lower-page__hero-media {
    min-height: 0;
  }

  .career-page__hero .lower-page__hero-media img {
    width: 100%;
    aspect-ratio: 390 / 244;
    height: auto;
    object-fit: cover;
  }

  .career-training-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 32px;
    padding: 25px;
    border-radius: 16px;
  }

  .career-training-card__body {
    flex: 0 0 auto;
    width: 100%;
  }

  .career-training-card__section + .career-training-card__section {
    margin-top: 32px;
  }

  .career-training-card__title {
    font-size: 18px;
  }

  .career-training-card__text {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.95;
  }

  .career-training-card__media {
    flex: 0 0 auto;
    width: 100%;
    margin: 40px 0 0;
  }

  .career-training-card__media img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .career-page__dei-title-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .career-page__dei-title-sub {
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.02em;
  }

  .career-page__dei-title-bottom {
    margin-top: 4px;
  }

  .career-page__activity-card {
    margin-bottom: 16px;
    padding: 20px 16px;
  }

  .career-page__activity-title {
    padding: 5px 14px;
    font-size: 12px;
  }

  .career-page__activity-text {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.95;
    text-align: left;
  }

  .career-page__dei-cards .benefit-card {
    min-height: 0;
  }

  .career-page__benefit-link {
    margin-top: 32px;
  }
}

/* =========================================================
   Tablet refinement: 768px - 1199px
   Keep PC (>=1200px) and SP (<=767px) untouched.
========================================================= */
@media (min-width: 768px) and (max-width: 1199px) {
  /* Text-heavy benefit cards: use a single column on tablet. */
  .benefit-page__cards,
  .benefit-page__cards--2col,
  .benefit-page__cards--3col,
  .benefit-page__cards--4col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefit-page__cards + .benefit-page__cards {
    margin-top: 16px;
  }

  .benefit-subsection .benefit-page__cards--4col .benefit-card__title {
    min-height: 0;
  }

  .benefit-card,
  .benefit-card--media,
  .benefit-card--certification {
    min-height: 0;
  }

  /* Remove forced title line-breaks on tablet. */
  .benefit-card__title br {
    display: none;
  }

  /* Match the desktop career-link layout/line breaks. */
  .benefit-page__career-link {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }

  .benefit-page__career-link-text {
    font-size: 15px;
  }

  .benefit-page__career-link-text .br-mobile {
    display: none;
  }


/* Career page tablet adjustments: 768px - 1199px */
  /* Let the DEI lead wrap naturally instead of forcing the desktop break. */
  .career-page .lower-page__section-lead br {
    display: none;
  }

  /* Do not force equal-height DEI cards on tablet. */
  .career-page__dei-cards .benefit-card {
    min-height: 0;
  }


  .benefit-page .lower-page__hero-inner,
  .career-page__hero .lower-page__hero-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .benefit-page .lower-page__hero-copy,
  .career-page__hero .lower-page__hero-copy {
    min-height: 0;
    padding: 52px var(--page-gutter-tablet) 44px;
  }

  .benefit-page .lower-page__hero-title,
  .career-page__hero .lower-page__hero-title {
    width: max-content;
    max-width: 100%;
    font-size: clamp(46px, 7vw, 58px);
    line-height: 1.15;
  }

  .benefit-page .lower-page__hero-media,
  .career-page__hero .lower-page__hero-media {
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
  }

  .benefit-page .lower-page__hero-media picture,
  .career-page__hero .lower-page__hero-media picture,
  .benefit-page .lower-page__hero-media img,
  .career-page__hero .lower-page__hero-media img {
    display: block;
    width: 100%;
  }

  .benefit-page .lower-page__hero-media img,
  .career-page__hero .lower-page__hero-media img {
    height: auto;
    aspect-ratio: 768 / 360;
    object-fit: cover;
  }
}
