.p-labo {
  padding-bottom: 5rem;
}

@media only screen and (min-width: 769px) {
  .p-labo {
    padding-bottom: 9rem;
  }
}

.p-labo-head {
  padding-top: 4.5rem;
  padding-bottom: 4rem;
}

.p-labo-head__inner {
  display: grid;
  gap: 0 0.5rem;
}

@media only screen and (min-width: 769px) {
  .p-labo-head__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 4rem;
  }
}

.p-labo-head__box {
  position: relative;
  background-color: #010616;
  padding: 3rem 2rem 4rem;
  margin: 0 -2rem;
}

@media only screen and (min-width: 769px) {
  .p-labo-head__box {
    padding: 4.5rem 4rem 4rem;
    margin: 0 0;
  }
}

.p-labo-head__box::before {
  content: "";
  display: block;
  width: calc(100% - 4rem);
  height: 0.4rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin-inline: auto;
}

@media only screen and (min-width: 769px) {
  .p-labo-head__box::before {
    width: 100%;
    height: 0.4rem;
  }
}

.p-labo-head__box.--elec::before {
  background: linear-gradient(to right, #00FFFF, transparent);
}

.p-labo-head__box.--info::before {
  background: linear-gradient(to right, #3100F6, transparent);
}

.p-labo-head__ttl {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

@media only screen and (min-width: 769px) {
  .p-labo-head__ttl {
    font-size: 2.4rem;
    margin-bottom: 3.5rem;
  }
}

.p-labo-head__listwrap {
  position: relative;
}

.p-labo-head__listwrap .fog-top,
.p-labo-head__listwrap .fog-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  pointer-events: none;
  z-index: 1;
}

.p-labo-head__listwrap .fog-top {
  background: linear-gradient(#010616, rgba(1, 6, 22, 0));
  top: 0;
}

.p-labo-head__listwrap .fog-bottom {
  background: linear-gradient(rgba(1, 6, 22, 0), #010616);
  bottom: 0;
}

.p-labo-head__list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem;
  height: 14rem;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  padding-right: 1rem;
  margin-right: -1rem;
  scrollbar-width: 0.6rem;
  scrollbar-color: #636B84;
}

@media only screen and (min-width: 769px) {
  .p-labo-head__list {
    gap: 1rem;
    height: 37.4rem;
    padding-right: 1.5rem;
    margin-right: -1.5rem;
  }
}

.simplebar-track.simplebar-vertical {
  width: 0.6rem;
}

.p-labo-head__list .simplebar-scrollbar {
    background-color: #636B84 !important;
    border-radius: 9999px;
}

.simplebar-scrollbar:before {
  display: none;
}

.p-labo-head__list .simplebar-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem;
  overflow-x: hidden;
}

@media only screen and (min-width: 769px) {
  .p-labo-head__list .simplebar-content {
    gap: 1rem;
  }
}

.simplebar-content:before, .simplebar-content:after {
  position: absolute;
}

/* .p-labo-head__list::-webkit-scrollbar {
  width: 0.6rem;
}

.p-labo-head__list::-webkit-scrollbar-track {}

.p-labo-head__list::-webkit-scrollbar-thumb {
  background-color: #636B84;
  border-radius: 9999px;
} */

.p-labo-head__item {
  position: relative;
  width: calc((100% - 1rem) / 2);
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 0 0.5rem;
  align-items: center;
  background-color: #37405D;
  border-radius: 0.5rem;
  overflow: hidden;
  padding: 0.8rem 3rem 0.8rem 0.8rem;
}

@media only screen and (min-width: 769px) {
  .p-labo-head__item {
    grid-template-columns: 32% 1fr;
    gap: 0 1.6rem;
    padding: 0.8rem 5rem 0.8rem 0.8rem;
  }
}

.p-labo-head__item-img {
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.p-labo-head__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .p-labo-head__item:hover .p-labo-head__item-img img {
    transform: scale(1.05);
  }
}

.p-labo-head__item-box {}

.p-labo-head__item-ttl {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

@media only screen and (min-width: 769px) {
  .p-labo-head__item-ttl {
    font-size: 1.4rem;
  }
}

.p-labo-head__item .head-icon-box {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: #6E7690;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0.8rem;
  margin-block: auto;
  transition: all 0.4s;
  overflow: hidden;
}

@media only screen and (min-width: 769px) {
  .p-labo-head__item .head-icon-box {
    width: 2.6rem;
    height: 2.6rem;
    right: 1.6rem;
  }
}

.p-labo-head__item .head-icon-bd {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.p-labo-head__item .head-icon-bd::before,
.p-labo-head__item .head-icon-bd::after {
  content: "";
  display: block;
  width: 50%;
  height: 0;
  background-color: #ffffff;
  pointer-events: none;
  position: absolute;
}

.p-labo-head__item .head-icon-bd::before {
  bottom: 0;
  left: 0;
}

.p-labo-head__item .head-icon-bd::after {
  top: 0;
  right: 0;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .p-labo-head__item:hover .head-icon-bd::before,
  .p-labo-head__item:hover .head-icon-bd::after {
    height: 100%;
  }

  .p-labo-head__item:hover .head-icon-bd::before {
    transition: height 0.2s 0.2s ease;
  }

  .p-labo-head__item:hover .head-icon-bd::after {
    transition: height 0.2s ease;
  }
}

.p-labo-head__item .head-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  background: url(../img/laboratories/icon-arrow.svg) #37405D no-repeat center / 50%;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

@media only screen and (min-width: 769px) {
  .p-labo-head__item .btn-icon {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
  }
}

.p-labo-list {
  padding-top: 7.8rem;
}

.p-labo-list__block {
  padding-top: 3rem;
}

@media only screen and (min-width: 769px) {
  .p-labo-list__block {
    padding-top: 6rem;
  }
}

.p-labo-list__list {
  display: grid;
  gap: 1.2rem 0;
}

.p-labo-list__item {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 2rem;
  display: grid;
  gap: 2rem 0;
}

@media only screen and (min-width: 769px) {
  .p-labo-list__item {
    border-radius: 1rem;
    padding: 2.4rem;
    grid-template-columns: 28% 65% 7%;
    gap: 0;
    align-items: center;
  }
}

.p-labo-list__item-img {
  aspect-ratio: 1 / 1;
  width: 80%;
  margin-inline: auto;
  border-radius: 1rem;
  overflow: hidden;
}

@media only screen and (min-width: 769px) {
  .p-labo-list__item-img {
    width: 100%;
  }
}

.p-labo-list__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-labo-list__item-box {}

@media only screen and (min-width: 769px) {
  .p-labo-list__item-box {
    padding: 0 3.2rem;
    border-bottom: none;
  }
}

.p-labo-list__item-box .item-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #013283;
  margin-bottom: 1.5rem;
}

@media only screen and (min-width: 769px) {
  .p-labo-list__item-box .item-name {
    font-size: 2.2rem;
    margin-bottom: 3rem;
  }
}

.p-labo-list__item-box .item-ttl {
  position: relative;
  font-size: 1.6rem;
  font-weight: 700;
  color: #222222;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

@media only screen and (min-width: 769px) {
  .p-labo-list__item-box .item-ttl {
    font-size: 1.8rem;
  }
}

.p-labo-list__item-box .item-ttl::before {
  content: "";
  display: block;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #0042FF, #00E0FF 47%, transparent);
  position: absolute;
  top: 0;
  left: 0;
}

.p-labo-list__item-box .item-txt {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #535353;
  margin-bottom: 2rem;
}

@media only screen and (min-width: 769px) {
  .p-labo-list__item-box .item-txt {
    font-size: 1.4rem;
  }
}

.p-labo-list__item-box .faculty-box {
  background-color: #E9EDF3;
  border-radius: 0.5rem;
  display: grid;
  gap: 1rem 0;
  padding: 0.6rem 0.6rem 1rem;
}

@media only screen and (min-width: 769px) {
  .p-labo-list__item-box .faculty-box {
    grid-template-columns: 8.5% 1fr;
    align-items: flex-start;
    gap: 0 0.8rem;
  }
}

.p-labo-list__item-box .faculty-ttl {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  line-height: 1;
  color: #013283;
  background-color: #fff;
  border-radius: 2px;
  padding: 0.7rem;
}

.p-labo-list__item-box .faculty-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
}

@media only screen and (min-width: 769px) {
  .p-labo-list__item-box .faculty-list {
    margin-top: 0.5rem;
    justify-content: flex-start;
  }
}

.p-labo-list__item-box .faculty-item {
  position: relative;
  font-size: 1.3rem;
  color: #013283;
  padding-right: 2rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: all 0.3s ease;
}

@media only screen and (min-width: 769px) {
  .p-labo-list__item-box .faculty-item {
    font-size: 1.4rem;
  }
}

.p-labo-list__item-box .faculty-item::after {
  content: "";
  display: block;
  width: 1.6rem;
  height: 1.6rem;
  background: url(../img/laboratories/icon-link.svg) no-repeat center / contain;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  margin-block: auto;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .p-labo-list__item-box .faculty-item:hover {
    /* color: #DCE0E6; */
    opacity: 0.5;
  }
}

.p-labo-list__item-link {
  position: relative;
  padding: 2.5rem 0;
  width: 100%;
  height: 100%;
  border-top: 1px solid #DCE0E6;
}

@media only screen and (min-width: 769px) {
  .p-labo-list__item-link {
    padding: 0;
    border-top: none;
    border-left: 1px solid #DCE0E6;
  }
}

.p-labo-list__item-link .link-icon-box {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: #DCE0E6;
  position: absolute;
  top: auto;
  bottom: 0;
  right: 0;
  left: 0;
  margin-inline: auto;
  margin-block: auto;
  transition: all 0.4s;
  overflow: hidden;
}

@media only screen and (min-width: 769px) {
  .p-labo-list__item-link .link-icon-box {
    width: 4rem;
    height: 4rem;
    top: 0;
    left: auto;
  }
}

.p-labo-list__item-link .link-icon-bd {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.p-labo-list__item-link .link-icon-bd::before,
.p-labo-list__item-link .link-icon-bd::after {
  content: "";
  display: block;
  width: 50%;
  height: 0;
  background-color: #013283;
  pointer-events: none;
  position: absolute;
}

.p-labo-list__item-link .link-icon-bd::before {
  bottom: 0;
  left: 0;
}

.p-labo-list__item-link .link-icon-bd::after {
  top: 0;
  right: 0;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
  .p-labo-list__item-link:hover .link-icon-bd::before,
  .p-labo-list__item-link:hover .link-icon-bd::after {
    height: 100%;
  }

  .p-labo-list__item-link:hover .link-icon-bd::before {
    transition: height 0.2s 0.2s ease;
  }

  .p-labo-list__item-link:hover .link-icon-bd::after {
    transition: height 0.2s ease;
  }
}

.p-labo-list__item-link .link-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  background: url(../img/laboratories/icon-link.svg) #ffffff no-repeat center / 50%;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

@media only screen and (min-width: 769px) {
  .p-labo-list__item-link .link-icon {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
  }
}

.side_menu{
  position: fixed;
  left: 0;
  bottom: 7rem;
  z-index: 5;
  background-color: #232B46CC;
  padding: 1rem;
  border-radius: 0 0.8rem 0.8rem 0;
}

.side_menu ul{
  display: flex;
  flex-direction: column;
  gap: 0.8rem 0;
}

.side_menu ul li{
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.side_menu ul li a{
  display: inline-flex;
  align-items: center;
  gap: 0 1.2rem
}

.side_menu ul li a .icon{
  display: inline-block;
  width: 2.2rem;
  height: 2.2rem;
}

.side_menu ul li a .icon svg{
  display: block;
  width: 100%;
  height: auto;
}

@media (hover: hover) {
  .side_menu ul li a:hover .icon{
    animation: arrow-behavior 0.3s 0s ease 1;
  }
}

@keyframes arrow-behavior {
  0% {
    transform: translateY(0);
  }
  50%{
    transform: translateY(5px);
  }
  100%{
    transform: translateY(0);
  }
}

@media screen and (min-width: 769px) {
  .side_menu{
    bottom: 5rem;
    padding: 2rem;
  }
  .side_menu ul{
    gap: 1.2rem 0;
  }
  .side_menu ul li{
    font-size: 1.4rem;
  }
  .side_menu ul li a .icon{
    width: 2.6rem;
    height: 2.6rem;
  }
}