/* ===============================================
   社内制度ページ
   =============================================== */
.footer {
  margin: 0;
}
.inhousesystem-page {
  position: relative;
  padding-bottom: 180px;
}

@media screen and (max-width: 768px) {
  .inhousesystem-page {
    padding-bottom: 110px;
  }
}

/* ===============================================
   ページタイトル
   =============================================== */
.page-title {
  width: 84%;
  max-width: 1080px;
  margin: 50px auto 0 auto;
}

.page-title__en {
  display: block;
  font-family: var(--font-rfa);
  font-size: 16px;
  letter-spacing: 1.6px;
  line-height: 32px;
  margin-bottom: 11px;
}

.page-title__ja {
  display: inline-block;
  font-size: 40px;
  font-weight: 600;
  line-height: 32px;
  background: var(--rfa-color-strong02);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 20px 20px 20px 0;
  background-color: #fff;
}

@media screen and (max-width: 768px) {
  .page-title {
    width: 90%;
    margin: 30px auto 0 auto;
  }

  .page-title__en {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .page-title__ja {
    font-size: 30px;
    padding: 14px 7px;
  }
}

/* ===============================================
   キャリアヘッダー
   =============================================== */
.career-header {
  position: relative;
  width: 100%;
  margin: 50px 0 0 0;

  overflow: hidden;
}

.career-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.career-header__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  text-align: center;
  padding-top: 13%;
  z-index: 1;
  background: var(--rfa-color-strong02);
}

.career-header__overlay h2 {
  font-size: 40px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 1.6px;
}

@media screen and (max-width: 768px) {
  .career-header {
    margin: 30px 0 0 0;
  }
  .career-header__overlay {
    top: auto;
    bottom: 0;
    left: 0;
    width: 65%;
    height: auto;
    padding-top: 0;
  }
  .career-header__overlay h2 {
    font-size: 1.625rem;
    padding: .8rem 0;
  }
}

/* ===============================================
   タブナビゲーション
   =============================================== */
.tab-nav {
  width: 84%;
  max-width: 1080px;
  margin: -10% auto 0 auto;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  overflow: hidden;
  background: #fff;
  position: relative;
  z-index: 2;
  padding: 50px;
}

.tab-nav__btn {
  width: 30%;
  padding: 20px 0;
  border-radius: 0.625rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  background: var(--rfa-color-strong02);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}


.tab-nav__btn:hover {
  background: linear-gradient(0deg, #BBD7E3 0%, #BBD7E3 100%), linear-gradient(90deg, #8FDEFF 0%, #AEC0FF 100%), #4C6AD0;
}

.tab-nav__btn.active {
  background: linear-gradient(0deg, #BBD7E3 0%, #BBD7E3 100%), linear-gradient(90deg, #8FDEFF 0%, #AEC0FF 100%), #4C6AD0;
}
.tab-nav__btn.active span {
    background: var(--rfa-color-strong02);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@media screen and (max-width: 768px) {
  .tab-nav {
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 0 .5rem;
  }

  .tab-nav__btn {
    width: 42%;
    padding: 15px 20px;
    font-size: 14px;
    border-radius: 0.425rem;
  }

  .tab-nav__btn:last-child {
    border-bottom: none;
  }
}

/* ===============================================
   タブコンテンツエリア
   =============================================== */
.tab-content-area {
  width: 84%;
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  background: #fff;
  padding: 50px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

@media screen and (max-width: 768px) {
  .tab-content-area {
    width: 90%;
    padding: 30px 20px;
  }
}

/* ===============================================
   コンテンツセクション
   =============================================== */
.content-section {
  margin-bottom: 80px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section__title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #272222;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.content-section__title--filled {
  background: var(--rfa-color-strong02);
  color: #fff;
  padding: 15px 30px;
  border-bottom: none;
  border-radius: 8px;
  margin-bottom: 40px;
}

@media screen and (max-width: 768px) {
  .content-section {
    margin-bottom: 50px;
  }

  .content-section__title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }

  .content-section__title--filled {
    font-size: 1rem;
    padding: 12px 20px;
    margin-bottom: 20px;
  }
}

/* ===============================================
   テキストブロック
   =============================================== */
.text-block {
  margin-bottom: 40px;
  padding: 0 1rem;
}

.text-block p {
  font-size: 16px;
  line-height: 2;
  color: #272222;
  margin-bottom: 20px;
}

.text-block p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .text-block {
    margin-bottom: 30px;
    padding: 0 .5rem;
  }

  .text-block p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
  }
}

/* ===============================================
   等級制度
   =============================================== */
.grade-system {
  background: #f8f9fa;
  padding: 2rem 2.5rem;
  margin-bottom: 40px;
}

.grade-system__title {
  font-size: 20px;
  font-weight: 600;
  color: #272222;
  margin-bottom: 20px;
}

.grade-system__desc {
  font-size: 16px;
  line-height: 1.8;
  color: #272222;
  margin-bottom: 30px;
}

.grade-diagram {
  display: flex;
  gap: 10px;
  padding: 0.5rem 0;
}

.grade-level {
}

.grade-label {
  width: 20%;
  min-width: 10rem;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  line-height: 1.5;
}
.grade-label.w-full {
  width: 100%;
}
.grade-label.w-harf {
  width: 50%;
}
.grade-detail {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: #272222;
}

@media screen and (max-width: 768px) {
  .grade-system {
    padding: 15px 17px;
    margin-bottom: 30px;
  }


  .grade-system__title {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .grade-system__desc {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .grade-diagram {
    flex-direction: column;
  }
  .grade-level {
    flex-direction: column;
  }

  .grade-label {
    width: 100%;
    padding: 0;
    font-size: 14px;
  }
  .grade-label.w-harf {
    width: 100%;
  }
  .grade-detail {
    padding: 0;
    font-size: 13px;
  }
  .grade-system.sp-flex .grade-diagram {
    flex-direction: initial;
  }
  .grade-system.sp-flex .grade-label {
    width: 20%;
    min-width: 8rem;
  }
}

/* ===============================================
   等級表
   =============================================== */
.grade-chart {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 8px;
  margin-top: 40px;
}

.grade-chart__title {
  font-size: 20px;
  font-weight: 600;
  color: #272222;
  margin-bottom: 30px;
}

.grade-chart__wrapper {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.grade-chart__header {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--rfa-color-strong02);
  color: #fff;
}

.grade-chart__category {
  padding: 20px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.grade-chart__grades {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
  line-height: 1.6;
}

.grade-chart__content {
  padding: 0;
}

.grade-chart__item {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid #e0e0e0;
}

.grade-chart__item:last-child {
  border-bottom: none;
}

.grade-chart__label {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f0f4f8;
  border-right: 1px solid #e0e0e0;
}

.grade-chart__label span {
  font-size: 14px;
  font-weight: 600;
  color: #272222;
}

.grade-chart__description {
  padding: 30px;
}

.grade-chart__description p {
  font-size: 15px;
  line-height: 1.8;
  color: #272222;
  margin-bottom: 15px;
}

.grade-chart__description ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 15px;
}

.grade-chart__description li {
  font-size: 14px;
  line-height: 1.8;
  color: #272222;
  margin-bottom: 8px;
}

@media screen and (max-width: 768px) {
  .grade-chart {
    padding: 25px 20px;
    margin-top: 30px;
  }

  .grade-chart__title {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .grade-chart__header {
    grid-template-columns: 1fr;
  }

  .grade-chart__category {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    font-size: 14px;
  }

  .grade-chart__grades {
    padding: 15px;
    font-size: 12px;
  }

  .grade-chart__item {
    grid-template-columns: 1fr;
  }

  .grade-chart__label {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px;
  }

  .grade-chart__label span {
    font-size: 13px;
  }

  .grade-chart__description {
    padding: 20px 15px;
  }

  .grade-chart__description p {
    font-size: 13px;
  }

  .grade-chart__description li {
    font-size: 12px;
  }
}

/* ===============================================
   環境グリッド
   =============================================== */
.environment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.environment-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.environment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.environment-card__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.environment-card__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-rfa);
  color: #fff;
  background: var(--rfa-color-strong02);
  border-radius: 50%;
  flex-shrink: 0;
}

.environment-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #272222;
  line-height: 1.4;
}

.environment-card__content p {
  font-size: 15px;
  line-height: 1.8;
  color: #272222;
  margin-bottom: 15px;
}

.environment-card__content p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .environment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .environment-card {
    padding: 20px;
  }

  .environment-card__header {
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
  }

  .environment-card__number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .environment-card__title {
    font-size: 16px;
  }

  .environment-card__content p {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 12px;
  }
}

/* ===============================================
   評価式の図
   =============================================== */
.evaluation-formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 50px auto;
  padding: 2.6rem 4.5rem;
  background: var(--rfa-color-strong02);
  border-radius: 10px;
  max-width: 800px;
}

.evaluation-formula__box {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 40px;;
  width: 6.636rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.evaluation-formula__item {
  font-size: 18px;
  font-weight: 500;
  color: #0063b1;
  letter-spacing: 3.6px;
  font-family: 'Noto Sans JP', sans-serif;
}

.evaluation-formula__operator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.evaluation-formula__operator img {
  width: 2.121rem;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@media screen and (max-width: 768px) {
  .evaluation-formula {
    flex-direction: column;
    gap: 10px;
    padding: 30px 20px;
    margin: 30px auto;
  }

  .evaluation-formula__box {
    padding: 20px 0px;
    min-width: 140px;
  }

  .evaluation-formula__item {
    font-size: 16px;
    letter-spacing: 2.4px;
  }

  .evaluation-formula__operator {
    width: 30px;
    height: 30px;
    transform: rotate(90deg);
  }
  .evaluation-formula__operator img {
    width: 1.121rem;
  }
}

/* ===============================================
   評価項目について
   =============================================== */
.evaluation-items {
  margin: 50px auto;
  padding: 0 1rem;
}

.evaluation-items__title {
  font-size: 20px;
  font-weight: 600;
  color: #0063b1;
  margin-bottom: 1.2rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid #0063b1;
}

.evaluation-items__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.evaluation-items__row {
  display: flex;
  gap: 10px;
    padding: 0.5rem 0;
}

.evaluation-items__label {
  width: 20%;
  min-width: 10rem;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  line-height: 1.5;
}

.evaluation-items__content {
  flex: 1;
  font-size: 1rem;
  line-height: 2;
  color: #272222;
}
.evaluation-items__content strong,
.evaluation-items__content dt {
  font-weight: 600;
}
.evaluation-items__content dl:not(:nth-of-type(1)) {
  margin-top: 1.5rem;
}
.evaluation-items .text-block{
  padding: 0;

}
@media screen and (max-width: 768px) {
  .evaluation-items {
    margin: 30px auto;
  }

  .evaluation-items__title {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .evaluation-items__row {
    gap: 10px;
    flex-direction: column;
  }

  .evaluation-items__label {
    font-size: 14px;
  }

  .evaluation-items__content {
    font-size: 13px;
  }
  .evaluation-items__list.sp-flex .evaluation-items__row {
    flex-direction: initial;

  }
  .evaluation-items__list.sp-flex .evaluation-items__label {
    min-width: 8rem;
  }

}

/* ===============================================
   職位・役職ごとの割合表
   =============================================== */
.ratio-table-wrapper {
  margin: 50px auto;
  padding: 0 1rem;
}

.ratio-table__title {
  font-size: 20px;
  font-weight: 600;
  color: #0063b1;
  margin-bottom: 1.2rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid #0063b1;
}

.ratio-table {
  border: 1px solid #d6d6d6;
  overflow: hidden;
  width: 80%;
}

.ratio-table__header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(to right, #bbd7e3, #bbd7e3);
}

.ratio-table__header-cell {
  padding: 15px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  background: var(--rfa-color-strong02);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1.6px;
  border-right: 1px solid #fff;
}

.ratio-table__header-cell:last-child {
  border-right: none;
}

.ratio-table__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #d6d6d6;
}

.ratio-table__cell {
  padding: 1.5rem 15px;
  font-size: 14px;
  text-align: center;
  border-right: 1px solid #d6d6d6;
  background: #fff;
}

.ratio-table__cell:last-child {
  border-right: none;
}

.ratio-table__cell--position {
  color: #fff;
  font-weight: 500;
  background: var(--rfa-color-strong02);
}

.ratio-table__cell--empty {
  background: #f7f7f7;
}

/* 奇数行の背景色 */
.ratio-table__row:nth-child(even) .ratio-table__cell:not(.ratio-table__cell--position):not(.ratio-table__cell--empty) {
  background: #f7f7f7;
}

@media screen and (max-width: 768px) {
  .ratio-table {
    overflow: scroll;
    width: 100%;
  }
  .ratio-table-wrapper {
    margin: 30px auto;
  }

  .ratio-table__title {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .ratio-table__header {
    width: 175%;
  }
  .ratio-table__row {
    width: 175%;
  }
  .ratio-table__header-cell {
    font-size: 12px;
  }
  .ratio-table__cell {
    font-size: 12px;
        padding: 1.2rem 15px;
  }

}
