html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
}

main {
  line-height: 1.8;
}

section {
  margin-block: 60px;
}

.inner {
  margin-inline: auto;
}

h2 {
  color: #093B83;
  font-size: 3.2rem;
  font-weight: normal;
  margin-bottom: 40px;
  position: relative;
  text-align: center;
}

h2::after {
  background-color: #093B83;
  bottom: -8px;
  content: "";
  display: inline-block;
  height: 4px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 110px;
}

.copy,
.career-about .inner {
  width: min(85%, 670px);
}

.copy {
  font-size: 2rem;
  margin-block: 32px 48px;
}

.career-about .inner {
  font-size: 1.8rem;
}

.career-rate {
  font-size: 1.6rem;
  margin-block: 30px;
}

.career-rate .table-container {
  border: solid 1px #ccc;
  padding: 30px;
  box-sizing: border-box;
}

.table-container > table {
  margin-bottom: 0;
}

caption {
  color: #4d4d4d;
  margin-bottom: 1em;
  padding: 0;
  text-align: center;
}

.table-container th, 
.table-container td {
  text-align: center;
}

.table-container th:not(:first-of-type),
.table-container td:not(:first-of-type) {
  border-left: solid 1px #ccc;
}

.table-container + span {
  display: block;
  margin-top: 8px;
  text-align: right;
}

.job-items,
.career-voices {
  background-image: url(/recruit/img/career/section-background.png);
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  padding-block: 60px;
}

.job-items-container {
  display: grid;
  gap:  5%;
  grid-template-columns: 1fr 1fr;
  margin-inline: auto;
  width: min(90%, 1180px);
}

.link {
  background: linear-gradient(90deg, #26457F, #2360AC);
  border-radius: 8px;
  color: #fff;
  display: block;
  font-size: 18px;
  font-weight: bold;
  margin-top: 16px;
  padding: 8px 32px;
  position: relative;
  width: min(100%, 400px);
}

.link:hover,
.link:visited {
  color: #fff;
}

.recruit-system-desc,
.career-voices-desc {
  margin-inline: auto;
  width: min(85%, 670px);
}

.recruit-system-grid {
  display: grid;
  gap: 5%;
  grid-template-columns: repeat(2, 1fr);
  margin: 30px auto;
  width: min(90%, 1180px);
}

.recruit-system-grid a {
  display: block;
  position: relative;
}

.recruit-system-grid a:hover img{
  opacity: 0.8;
}

.career-voices-grid {
  display: grid;
  gap: 8%;
  grid-template-columns: repeat(3, 1fr);
  margin: 30px auto;
  text-align: center;
  width: min(90%, 1200px);
}

.career-voices-grid > div {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.career-voices-grid img {
  justify-self: center;
}

.career-voices-grid p {
  align-self: start;
  color: #093B83;
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: bold;
  line-height: 1.5;
  margin-top: 8px;
  text-align: center;
}

.career-voices-grid a {
  background-color: #093B83;
  border-radius: 8px;
  box-sizing: border-box;
  color: #fff;
  display: block;
  font-size: clamp(14px, 1.3vw, 16px);
  padding: 8px 16px;
  position: relative;
}

.career-voices-grid a::after,
.link::after {
  content: "\003E";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.list-label {
  margin: 0;
}

.job-list {
  margin-block: 16px;
}

.job-list ul {
  list-style: disc;
  margin-left: 2em;
}

.link-belt {
  background-color: rgb(9 59 131 / .7);
  color: #fff;
  padding: 24px;
  position: absolute;
  text-align: center;
  text-decoration: none;
  top: 50%;
  width: 100%;
}

.link-belt  > * {
  line-height: 1.8;
  text-align: center;
}

.link-belt h3 {
  font-size: min(24px, 2.8vw);
  letter-spacing: 0.1em;
}

.link-belt p {
  margin: 0;
}

@media (max-width: 767px) {
  .copy {
    font-size: 18px;
  }

  h2 {
    font-size: 24px;
  }

  h2:after {
    bottom: -10px;
  }

  table {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  caption {
    grid-column: 1 / 3;
  }

  tr{
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  thead > tr > th:first-of-type {
    flex-grow: 1;
  }

  td, th,
  .table>caption+thead>tr:first-child>th {
    border: solid 1px #ccc;
  }

  .job-items-container {
    gap:  16px;
    grid-template-columns: 1fr;
  }

  .recruit-system-grid {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .career-voices-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .career-voices-grid img {
    width: 80%;
  }

  .link-belt h3 {
    font-size: clamp(18px, 6vw, 20px);
  }
}