@import url("https://fonts.googleapis.com/css2?family=ADLaM+Display&display=swap");

.staff_container {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  ); /* 自動で折り返すように設定 */
  gap: 40px 24px;
  /* align-items: start; */
}

@media (max-width: 767px) {
  .staff_container {
    justify-content: space-evenly;
    gap: 32px 24px;
  }
  .staff-item-empty {
    display: none;
  }
}

.staff-item {
  border: 1px solid #e0e0e0;
  /* margin-bottom: 20px; */
  background-color: #fff;
  width: 100%;
  color: #2b2b2b;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
}

.staff-item__image {
  width: 100%;
}

.staff-item img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.staff-item__info {
  padding: 20px 20px 16.4px 20px;
  flex: 1;
}

.staff-item h2 {
  font-size: 24px;
}
.staff-item .staff-item__position {
  line-height: 1.25;
  font-size: 14px;
  margin: -1.75px 0;
  margin-top: 8.25px;
}

.staff-item .staff-item__position:first-of-type {
  font-size: 16px;
  line-height: 1.25;
  margin: -2px 0;
}
.staff-item .staff-item__position:last-of-type {
  margin-bottom: 10.25px;
}
.staff-item p.staff-item__kana {
  margin-top: 12px;
  margin-bottom: 16.4px;
  font-size: 14px;
  color: #707070;
  font-family: var(--eng-font);
}
.staff-item p.staff-item__specialization {
  font-size: 14px;
  word-break: auto-phrase;
  line-height: 1.4;
}
.staff_content {
}
.staff_content .content__table {
  width: 100%;
}
.staff_content .content-table__desc {
  border-right: 1px solid #efefef;
}

.card-accordion button {
  width: 100%;
  background-color: #f2f2e9;
  border: none;
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  font-family: var(--jp-font);
  font-size: 16px;
  line-height: 1;
  color: #2b2b2b;
}
.card-accordion .line_box {
  width: 14px;
  height: 14px;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}
.card-accordion .line_box__inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.card-accordion button .line_first {
  content: "";
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  background: #326a3a;
  width: 100%;
  height: 2px;
}

.card-accordion button .line_second {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  transform-origin: center;
  background: #326a3a;
  width: 2px;
  height: 100%;
  transition: 0.3s;
}

.card-accordion button.active .line_second {
  transform: translateX(-50%) rotate(90deg);
}

.card-accordion__content {
  display: none;
  background-color: #f2f2e9;
  padding: 20px;
  padding-top: 0;
}
.card-accordion__content-inner {
  border-top: 1px solid #e0e0e0;
  padding: 20px 0;
}
.card-accordion__content-inner:last-of-type {
  padding-bottom: 0;
}

.card-accordion__content h4 {
  font-weight: 300;
  margin-left: 16px;
  position: relative;
}
.card-accordion__content h4::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  background: #326a3a;
  width: 4px;
  height: 4px;
}

.card-accordion__content ul {
  margin-left: 12px;
  list-style-type: none;
  padding-left: 0;
}

.card-accordion__content li {
  font-size: 14px;
  line-height: 1.4;
  margin: -2.8px 0;
  margin-top: 9.2px;
}

.footer_nav__back_staff {
  background: #326a3a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
}
.staff-item__researchmap {
  display: inline-block;
  margin-top: 16px;
  background-color: #003366;
  color: #fff;
  font-family: "ADLaM Display";
  font-weight: thin;
  font-size: 12px;
  padding: 2px 12px;
  border-radius: 4px;
  transition: opacity 0.3s;
  cursor: pointer;
}
.staff-item__researchmap:hover {
  opacity: 0.5;
}
.content-table__desc {
  width: auto;
}
.content-table__desc.border_right_none {
  border-right: none;
}
.content-table__desc.border_bottom_none {
  border-bottom: none;
}
@media screen and (max-width: 767px) {
  .staff_content {
    width: 100%;
    overflow: scroll;
  }
  .staff_content .content__table {
    margin: 0 5vw;
    width: 800px;
  }
  .floating_btn{
    display: block !important;
  }
}
