@charset "UTF-8";

/* 監査役人材ポータル：専門コンテンツ追加セクション */
.expertise {
  padding: 120px 0;
  background-color: rgb(226, 229, 234);
  color: #112546;
  text-align: left;
}

.expertise *,
.expertise *::before,
.expertise *::after {
  box-sizing: border-box;
}

.expertise__inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.expertise__heads {
  margin-bottom: 54px;
}

.expertise__heads .heads__head {
  padding-right: 80px;
}

.expertise__lead {
  max-width: 880px;
  margin: 0 auto 72px;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.06em;
}

.expertise__lead-copy {
  margin-bottom: 14px;
  color: #21498c;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.55;
}

.expertise__block {
  margin-top: 30px;
  padding: 50px;
  border: 1px solid #dce3ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(17, 37, 70, 0.06);
}

.expertise__block + .expertise__block {
  margin-top: 30px;
}

.expertise__block-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.expertise__number {
  display: grid;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: #21498c;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.expertise__eyebrow {
  margin-bottom: 7px;
  color: #218c7c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.expertise__block-head h3,
.expertise__author h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.05em;
}

.expertise__block-intro {
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.expertise__cards {
  display: grid;
  gap: 18px;
}

.expertise__cards--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.expertise__cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.expertise-card {
  min-width: 0;
  padding: 28px;
  border-radius: 14px;
  background: #f5f7fb;
}

.expertise-card__label,
.expertise__phase-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #21498c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.expertise-card h4,
.expertise__points h4,
.expertise__phases h4 {
  margin-bottom: 12px;
  color: #21498c;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
}

.expertise-card p,
.expertise__points p,
.expertise__phases p,
.expertise__author p,
.expertise__related-link,
.expertise__note {
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

.expertise-card--type {
  border-top: 4px solid #218c7c;
  background: #f8fbfa;
}

.expertise-table-wrap {
  width: 100%;
}

.expertise-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #cfd8e6;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.75;
}

.expertise-table th,
.expertise-table td {
  padding: 18px 20px;
  border-right: 1px solid #dce3ed;
  border-bottom: 1px solid #dce3ed;
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.expertise-table tr > *:last-child {
  border-right: 0;
}

.expertise-table tbody tr:last-child > * {
  border-bottom: 0;
}

.expertise-table thead th {
  background: #21498c;
  color: #fff;
  font-weight: 700;
}

.expertise-table thead th:first-child,
.expertise-table tbody th {
  width: 20%;
}

.expertise-table tbody th {
  background: #edf2f8;
  color: #21498c;
  font-weight: 700;
}

.expertise__related-link {
  margin-top: 22px;
  padding: 20px 24px;
  border-left: 4px solid #218c7c;
  background: #f3faf8;
}

.expertise__related-link a {
  display: inline;
  color: #21498c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.expertise__points {
  display: grid;
  gap: 14px;
  list-style: none;
}

.expertise__points li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: 12px;
  background: #f5f7fb;
}

.expertise__point-num {
  flex: 0 0 auto;
  padding-top: 3px;
  color: #218c7c;
  font-size: 20px;
  font-weight: 700;
}

.expertise__points h4 {
  margin-bottom: 4px;
}

.expertise__phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.expertise__phases article {
  position: relative;
  min-width: 0;
  padding: 26px 22px;
  border: 1px solid #dce3ed;
  border-radius: 14px;
  background: #fff;
}

.expertise__phase-label {
  background: #218c7c;
}

.expertise__note {
  margin-top: 18px;
  color: #5a6678;
  font-size: 13px;
}

.expertise__author {
  margin-top: 40px;
  padding: 50px;
  border-radius: 20px;
  background: linear-gradient(135deg, #112546 0%, #21498c 100%);
  color: #fff;
}

.expertise__author-body {
  max-width: 900px;
}

.expertise__author .expertise__eyebrow {
  color: #7bd2c5;
}

.expertise__author h3 {
  margin-bottom: 24px;
  color: #fff;
}

.expertise__author p + p {
  margin-top: 14px;
}

.expertise__article-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 15px 22px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.expertise__article-link:hover,
.expertise__article-link:focus-visible {
  background: #fff;
  color: #21498c;
}

@media (max-width: 1024px) {
  .expertise {
    padding: 72px 0;
  }

  .expertise__inner {
    width: calc(100% - 24px);
  }

  .expertise__heads {
    margin-bottom: 34px;
  }

  .expertise__heads .heads__head {
    max-width: calc(100% - 20px);
    padding-right: 28px;
  }

  .expertise__heads .heads__head span {
    white-space: normal;
  }

  .expertise__lead {
    margin-bottom: 42px;
    padding-inline: 8px;
    font-size: 15px;
    line-height: 1.9;
  }

  .expertise__lead-copy {
    font-size: 21px;
  }

  .expertise__block {
    padding: 28px 18px;
    border-radius: 16px;
  }

  .expertise__block-head {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
  }

  .expertise__number {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    font-size: 14px;
  }

  .expertise__block-head h3,
  .expertise__author h3 {
    font-size: 21px;
    line-height: 1.55;
  }

  .expertise__cards--three,
  .expertise__cards--two,
  .expertise__phases {
    grid-template-columns: 1fr;
  }

  .expertise-card {
    padding: 22px 18px;
  }

  .expertise-table {
    display: block;
    border: 0;
    border-radius: 0;
  }

  .expertise-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .expertise-table tbody,
  .expertise-table tr,
  .expertise-table th,
  .expertise-table td {
    display: block;
    width: 100%;
  }

  .expertise-table tbody th {
    width: 100%;
    max-width: none;
  }

  .expertise-table tr {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #dce3ed;
    border-radius: 12px;
    background: #fff;
  }

  .expertise-table th,
  .expertise-table td {
    border: 0;
    border-bottom: 1px solid #dce3ed;
    padding: 15px 16px;
  }

  .expertise-table tr > *:last-child {
    border-bottom: 0;
  }

  .expertise-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 7px;
    color: #218c7c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .expertise__related-link {
    padding: 17px 16px;
  }

  .expertise__points li {
    gap: 14px;
    padding: 19px 16px;
  }

  .expertise__point-num {
    font-size: 17px;
  }

  .expertise__author {
    margin-top: 28px;
    padding: 32px 20px;
    border-radius: 16px;
  }

  .expertise__article-link {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .expertise__article-link {
    transition: none;
  }
}
