.wrapper {
  background-color: #f2e7e3;
}

.tab_area {
  max-width: 980px;
  margin: 0 auto;
  margin-top: 100px;
  margin-bottom: 100px;
}

/* タブメニューのスタイリング */
.tab-menu {
  overflow: hidden;
}

.tab-button {
  background-color: #ddd;
  float: left;
  outline: none;
  cursor: pointer;
  padding: 18px 82px;
  font-size: 19px;
  font-weight: bold;
  position: relative;
  /* 相対位置指定 */
  border: none;
}

.tab-button:hover {
  background-color: #ddd;
}

/* 選択されたタブのスタイリング */
.tab-button.active {
  background-color: #fff;
  /* 選択されているタブの背景色を白色に設定 */
  color: #333;
  /* 選択されているタブの文字色を黒色に設定 */
  color: red;
  /* タブが選択されたときの文字色 */

}

.tab-button.active:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  /* 下線の位置を微調整 */
  height: 1px;
  background-color: red;
  /* 下線の色 */
  left: 50%;
  /* テキストの中央から始まるように */
  transform: translateX(-50%);
  /* 中央揃え */
  width: 40%;
  /* ボックスの横幅いっぱい */
}


/* 選択されたタブコンテンツの表示 */
.tab-content.active {
  display: block;
  background-color: #fff;
}


.tab-content {
  display: none;
  padding: 50px;
}

.tab_title {
  font-size: 24px;
  margin: 10px 0px 60px;
  font-weight: bold;
  text-align: center;
}

.company_profile_list li {
  display: flex;
  position: relative;
  margin-bottom: 28px;
  padding: 0 0 28px 15px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
}

.company_profile_list li::before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12em;
  height: 1px;
  background-color: #c91b02;
}

.company_profile_list li span {
  display: block;
  margin-bottom: 4px;
  width: 14em;
  font-size: 16px;
}

.company_profile_list li p {
  width: calc(100% - 14em);
  font-size: 16px;
}

.company_profile_list li::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 12em;
  width: calc(100% - 12em);
  height: 1px;
  background-color: #ccc;
}

.apply-button a {
  text-decoration: none;
  color: #fff;
}


.apply-button {
  background-color: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  font-size: 16px;
  width: 188px;
  height: 51px;
  margin-top: 60px;
  margin-bottom: 70px;
}

.apply-button:hover {
  background-color: #45a049;
}

@media only screen and (max-width: 768px) {

  .company_profile_list li p {
    font-size: 16px;
  }

  .company_profile_list li span {
    font-size: 16px;
  }

}


@media only screen and (max-width: 480px) {
  .tab_area {
    max-width: 480px;
    margin: 0 auto;
    margin-top: 100px;
    margin-bottom: 100px;
  }

  .tab-content {
    display: none;
    padding: 20px;
  }

  .company_profile_list li span {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    width: 14em;
    margin-right: 13px;
  }

  .company_profile_list li {
    position: relative;
    margin-bottom: 28px;
    padding: 0 0 25px 3px;
  }


  .company_profile_list li p {
    width: 100%;
    font-size: 13px;
  }

  .company_profile_list li::before {
    width: 30%;
  }

  .company_profile_list li::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 5em;
    width: 78%;
    height: 1px;
    background-color: #ccc;
  }

  .company_profile_list li span {
    width: 14em;

  }



}

.wrapper {
  background-color: #fff;
}