@charset "utf-8";
.department .menu li {
  font-size: 2.4rem;
  width: calc(100% / 6 - 20px);
}
.department .menu li:not(:last-of-type) {
  border-right: 0;
}
.department .menu li {
  counter-increment: num_menu;
}
.department .menu li::before {
  border-bottom: solid 5px var(--red);
  color: var(--dark-gray);
  content: "0"counter(num_menu);
  display: block;
  font-family: Poppins,"游ゴシック体","游ゴシック",YuGothic,"Yu Gothic","Hiragino Kaku Gothic ProN","ヒラギノ角ゴ Pro W3","Hiragino Sans","メイリオ",sans-serif;
  font-size: 5rem;
  line-height: 1.3;
}
.department .menu li a {
  padding: 1.5em 0;
}
.department .menu li a::after{
  background-image: none;
  height: 0;
  width: 0;
}
.department .menu li a:hover {
  background-color: var(--light-gray);
}
.department .catch {
  align-items: center;
  column-gap: 4rem;
  display: flex;
  margin-bottom: 4em;
}
.department .catch::before {
  border-bottom: solid 10px var(--red);
  color: var(--dark-gray);
  font-family: Poppins,"游ゴシック体","游ゴシック",YuGothic,"Yu Gothic","Hiragino Kaku Gothic ProN","ヒラギノ角ゴ Pro W3","Hiragino Sans","メイリオ",sans-serif;
  font-size: 10.5rem;
  line-height: 1.2;
  padding: 0 0.1em;
}
.department .block:nth-of-type(1) .catch::before {
  content: "01";
}
.department .block:nth-of-type(2) .catch::before {
  content: "02";
}
.department .block:nth-of-type(3) .catch::before {
  content: "03";
}
.department .block:nth-of-type(4) .catch::before {
  content: "04";
}
.department .block:nth-of-type(5) .catch::before {
  content: "05";
}
.department .block:nth-of-type(6) .catch::before {
  content: "06";
}
.department .catch span {
  color: var(--dark-gray);
  font-size: 5.2rem;
  font-weight: bold;
  line-height: 1.3;
  margin-top: 0.75em;
}
.department .block {
  border-bottom: solid 1px var(--dark-gray);
  padding-bottom: 100px;
}
.department .block:last-of-type {
  border-bottom: none;
}
.department .block .detail {
  height: 550px;
  position: relative;
}
.department .block:nth-of-type(n+5):nth-of-type(-n+6) .detail {
  height: auto;
}
.department .block .detail > div {
  width: 50%;
}
.department .block:nth-of-type(n+5):nth-of-type(-n+6) .detail > div {
  width: 100%;
}
.department .block .detail .section p {
  margin: 1em 0;
}
.department .block .detail .section:last-of-type p {
  padding-right: 6em;
}
.department .block .detail .photo {
  height: 550px;
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  z-index: 1;
}
.department .block .detail .photo li {
  background-color: #FFF;
  position: absolute;
}
.department .block .detail .photo li:first-of-type {
  top: 0;
  right: 0;
}
.department .block .detail .photo li:last-of-type {
  bottom: 0;
  left: 0;
}
.department .block .detail .photo li:last-of-type img {
  border: solid 5px #FFF;
}
@media screen and (max-width: 767px) {
  .department .menu {
    flex-wrap: wrap;
    margin-bottom: 3em;
    width: var(--sp-contents-width);
  }
  .department .menu li {
    width: 31%;
  }
  .department .menu li::before {
    border-bottom: solid 3px var(--red);
    font-size: 3rem;
  }
  .department .menu li a {
    font-size: 1.8rem;
    padding: 0.5em 0;
  }
  .department .catch {
    display: block;
    margin-bottom: 1em;
  }
  .department .catch::before {
    border-bottom: solid 5px var(--red);
    display: inline-block;
    font-size: 5rem;
    line-height: 1;
  }
  .department .catch span {
    display: block;
    font-size: 2.3rem;
    line-height: 1.5;
  }
  .department .block {
    padding-bottom: 0;
  }
  .department .block .detail {
    height: auto;
  }
  .department .block .detail > div {
    width: 100%;
  }
  .department .block .detail .section:last-of-type p {
    padding-right: 0;
  }
  .department .block .detail .photo {
    height: auto;
    position: relative;
    width: 100%;
  }
  .department .block .detail .photo li {
    margin: 0 auto;
    position: relative;
    width: 90%;
  }
  .department .block .detail .photo li img {
    width: 100%;
  }
  .department .block .detail .photo li:last-of-type img {
    border: none;
  }
}