@charset "utf-8";

/* ────────────────────── *
 *                                              *
 * 共通設定                                     *
 *                                              *
 * ────────────────────── */

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

body {
  background: #f4f4f4;
}

.yaj-pagetitle__title {
  bottom: -50px;
}

/* ────────────────────── *
 *                                              *
 * 職種相関図                                   *
 *                                              *
 * ────────────────────── */

.chart {
  margin-top: 20px;
}

.chart__img {
  position: relative;
}

.chart__img picture img {
  width: 100%;
}

.chart__link {
  position: absolute;
  left: 6.2%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: #dc1e37;
  color: #fff !important;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12.4px;
  font-weight: 700;
  line-height: 1.8;
  padding: 0 12px;
  height: 37px;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  white-space: nowrap;
}

.chart__link:hover {
  opacity: 0.7;
}

.chart__link:nth-child(2) {
  top: 36.23%;
}

.chart__link:nth-child(3) {
  top: 51.81%;
}

.chart__link:nth-child(4) {
  top: 66.84%;
}

.chart__link:nth-child(5) {
  top: 88%;
}

.chart__link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  background: #fff;
  border: 0.5px solid #dc1e37;
  border-radius: 50%;
  flex-shrink: 0;
}

.chart__link-icon::before {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-right: 1.5px solid #dc1e37;
  border-bottom: 1.5px solid #dc1e37;
  transform: rotate(45deg);
  margin-top: -2px;
}

@media screen and (max-width: 650px) {
  .chart__link {
    left: 67.06%;
    font-size: 10px;
    height: 27px;
    padding: 0 8px;
    gap: 5px;
  }

  .chart__link:nth-child(2) {
    top: 22.23%;
  }

  .chart__link:nth-child(3) {
    top: 39.21%;
  }

  .chart__link:nth-child(4) {
    top: 58.84%;
  }

  .chart__link:nth-child(5) {
    top: 81.37%;
    left: 70%;
  }

  .chart__link-icon {
    width: 12px;
    height: 12px;
  }

  .chart__link-icon::before {
    width: 3px;
    height: 3px;
  }
}

/* ────────────────────── *
 *                                              *
 * 仕事内容                                     *
 *                                              *
 * ────────────────────── */

.detail {
  margin-top: 120px;
}

.detail__block {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.detail__block+.detail__block {
  margin-top: 120px;
}

.detail__head {
  display: flex;
  align-items: center;
  gap: 32px;
}

.detail__head-ttl {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 40px;
  font-weight: 700;
  font-style: italic;
  color: #dc1e37;
  white-space: nowrap;
  flex-shrink: 0;
}

.detail__head-desc {
  font-size: 21px;
  font-weight: 500;
  color: #333;
  line-height: 1.75;
}

.detail__body {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.detail__text {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-right: 80px;
  flex: 1;
  min-width: 0;
}

.detail__dept-ttl {
  font-size: 21px;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.detail__dept-ttl::after {
  content: "";
  display: block;
  height: 1px;
  background-color: #dc1e37;
  flex: 1;
  min-width: 20px;
}

.detail__dept-body {
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1.75;
}

.detail__dept-label {
  display: inline-block;
  font-weight: bold;
}

.detail__dept-body p+p,
.detail__dept-body div+div {
  margin-top: 16px;
}

.detail__img {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 42.6%;
  flex-shrink: 0;
}

.detail__img img {
  width: 100%;
  height: 305px;
  object-fit: cover;
  border-radius: 10px;
}

@media only screen and (min-width: 0px) and (max-width: 750px) {
  .detail {
    margin-top: 60px;
  }

  .detail__block {
    gap: 30px;
  }

  .detail__block+.detail__block {
    margin-top: 60px;
  }

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

  .detail__head-ttl {
    font-size: 28px;
  }

  .detail__head-desc {
    font-size: 16px;
  }

  .detail__body {
    flex-direction: column;
    gap: 24px;
  }

  .detail__text {
    padding-right: 0;
    gap: 32px;
  }

  .detail__dept-ttl {
    font-size: 18px;
  }

  .detail__dept-body {
    font-size: 14px;
  }

  .detail__img {
    width: 100%;
  }

  .detail__img img {
    height: auto;
    aspect-ratio: 469 / 305;
  }
}