/* Human Capital page */

@media (min-width: 768px) {
    .md\:hide {
        display: none;
    }
}

.l-main__inner + .l-main__inner {
	margin-top: 80px;
}

.hc__annotation {
  font-size: 13px;
  margin-top: 24px;
}

.mb16 {
  margin-bottom: 16px;
}

.mb40 {
  margin-bottom: 40px;
}

.hc-paragraph {
  font-size: 18px;
  line-height: 1.6;
  /* letter-spacing: 2.16px; */
  letter-spacing: 0.06em;
}

@media (max-width: 767.98px) {
  .hc-paragraph {
    font-size: 1.6rem;
  }
}

.hc-btn {
  color: #fff;
}

.hc-btn::after {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	background-image: url('/img/common/icon/icon_arrow_w.svg');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	transition: background-image 0.2s ease;
}

.hc-btn:hover {
	color: #000;
}

.hc-btn:hover::after {
	background-image: url('/img/common/icon/icon_arrow_b.svg');
}

.hc-img {
	width: 100%;
	height: auto;
	object-fit: cover;
	object-position: center;
	margin-top: 40px;
}

@media (max-width: 767.98px) {
  .hc-img {
    margin-top: 12.8vw
  }
}

.hc-table {
  position: relative;
  margin-top: 12px;
  overflow-x: auto;
  table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    table-layout: fixed; /* 列幅を全テーブルで揃える */
    th {
      border: none;
    }
    th, td {
      padding: 10px 16px;
      font-size: 16px;
      line-height: 1.6;
      color: #212121;
      /* border-bottom: 1px solid #ccc; */
      letter-spacing: 0.06em;
    }
    /* 全行共通 1つめのtd */
    tbody tr td:first-child {
      text-align: right;
    }
    /* 1列目:全セル */
    tbody tr:first-child td {
      background: #d5d5d5;
      font-weight: normal;
      width: 22.666% !important;
      text-align: center;
    }
    /* 1列目：先頭セル */
    tbody tr:first-child td:first-child {
      width: 32%; /* 列幅統一: 1列目は成り行き＋固定割合、データ列は同幅 */
      font-weight: bold;
      text-align: right;
    }
    /* 2列目以降　：全セル */
    tbody tr:nth-child(n+2) td {
      text-align: right;
      width: 22.666%;
    }
    /* 2列目以降：先頭セル */
    tbody tr:nth-child(n+2) td:first-child {
      font-weight: bold;
      width: 32%; /* 列幅統一: 1列目は成り行き＋固定割合、データ列は同幅 */
      white-space: normal;
      word-break: break-word;
    }
    /* 2列目以降：奇数セル */
    tbody tr:nth-child(n+2) td:nth-of-type(odd) {
      background: #fff;
    }
    /* 2列目以降：偶数セル */
    tbody tr:nth-child(n+2) td:nth-of-type(even) {
      background: #FAFAFA;
    }
    /* 2列目以降：最終セル */
    tbody tr:nth-child(n+2) td:last-child {
      background: #ffffd2;
    }
  }
}

@media (max-width: 767.98px) {
  .hc-table {
    table {
      min-width: 640px;
      th, td {
        padding: 12px;
        font-size: 14px;
      }
    }
    /* 横スクロールを視覚的に示す */
    &:after {
      content: "横にスクロールできます →";
      position: absolute;
      right: 12px;
      top: 8px;
      padding: 6px 10px;
      font-size: 12px;
      line-height: 1.4;
      color: #fff;
      background: rgba(0, 0, 0, 0.6);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
      border-radius: 4px;
      pointer-events: none;
      transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    &.is-scrolled::after {
      opacity: 0;
      visibility: hidden;
    }
  }
}
