#top-image {
  background-image: url(https://boneedz.com/wp-content/uploads/2018/12/pixta_28064282_L.jpg);
  background-size: cover;
  background-attachment: scroll;
  height: 560px;
  position: relative;
}

#top-image .page-title {
  height: 200px;
  width: 200px;
  position: absolute;
  top: 30%;
  left: 100px;
  background-color: rgba(201, 0, 2, 0.8);
  color: #fff;
  line-height: 200px;
  text-align: center;
  font-weight: bold;
  font-size: 28px;
  overflow-wrap: wrap;
}

@media (max-width: 560px) {
  #top-image {
    height: 240px;
    background-position: center top;
  }

  #top-image .page-title {
    height: 130px;
    width: 130px;
    position: absolute;
    left: 30px;
    line-height: 110px;
    font-size: 22px;
  }

  #top-image .page-title p {
    font-size: 12px;
  }
}

#staff .staff-wrapper {
  position: relative;
}

#staff .staff-image {
  height: 350px;
  width: 300px;
  object-fit: cover;
}

#staff .staff-name {
  width: 300px;
  position: absolute;
  color: #fff;
  text-align: center;
  background-color: rgba(29, 28, 41, 0.6);
  bottom: 0;
}

#staff .staff-name i {
  color: #fff;
}

#staff h3 {
  font-size: 20px;
  font-weight: bold;
  padding: 5px 0;
}

#staff p {
  padding-left: 1.5rem;
  text-align: left;
}

@media (max-width: 560px) {
  #staff .staff-image {
    width: 95%;
    object-fit: cover;
  }

  #staff .staff-name {
    width: 95%;
  }

  #staff h3 {
    margin-top: 20px;
  }

  #staff p {
    padding-left: 0.75rem;
    text-align: left;
  }
}

.tab_wrap {
  width: 100%;
  margin: 80px auto;
}

input[type="radio"] {
  display: none;
}

.tab_area {
  font-size: 0;
  margin: 0 10px;
}

.tab_area label {
  width: 150px;
  margin: 0 5px;
  display: inline-block;
  padding: 12px 0;
  color: #999;
  background: #ddd;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  transition: ease 0.2s opacity;
}

.tab_area label:hover {
  opacity: 0.5;
}

.panel_area {
  background: #fff;
}

.tab_panel {
  width: 100%;
  padding: 80px 0;
  display: none;
}

.tab_panel p {
  font-size: 14px;
  letter-spacing: 1px;
  text-align: center;
}

#tab0:checked ~ .tab_area .tab0_label {
  background: #fff;
  color: #000;
}

#tab0:checked ~ .panel_area #panel0 {
  display: block;
}

#tab1:checked ~ .tab_area .tab1_label {
  background: #fff;
  color: #000;
}

#tab1:checked ~ .panel_area #panel1 {
  display: block;
}

#tab2:checked ~ .tab_area .tab2_label {
  background: #fff;
  color: #000;
}

#tab2:checked ~ .panel_area #panel2 {
  display: block;
}

/* 2022追記分 */

.staff-ttl.bg_gradient span {
  font-size: 70px;
  margin-top: 4rem;
}

.tab_wrap {
  margin-top: 3rem;
}

.tab_area label {
  background-color: #989898;
  border-radius: 15px;
  color: white;
  font-size: 20px;
  transition: 0.5s all;
  margin-left: 3rem;
}

.tab_area label:first-child {
  margin-left: 0;
}

.tab_area label:hover {
  opacity: 1;
  background-color: #ff4500;
}
#tab0:checked ~ .tab_area .tab0_label,
#tab1:checked ~ .tab_area .tab1_label,
#tab2:checked ~ .tab_area .tab2_label,
#tab3:checked ~ .tab_area .tab3_label {
  background: #ff4500;
  color: white;
}

#tab3:checked ~ .panel_area #panel3 {
  display: block;
}

@media (max-width: 991px) {
  .staff-ttl.bg_gradient span {
    font-size: 32px;
    margin-top: 2rem;
  }

  .tab_wrap {
    margin-top: 1rem;
  }

  .tab_area {
    max-width: 480px;
    margin: auto;
  }

  .tab_area .container {
    display: flex;
    justify-content: space-between;
  }

  .tab_area label {
    width: 120px;
    font-size: 18px;
    padding: 5px;
    margin-left: 0;
  }
}
