body {
  background-color: #f3f1f1;
}
a {
  color: #313030;
}

/*titleのデザイン*/

.dep_title {
  display: flex;
  height: auto;
  margin-top: 170px;
  margin-left: 7vw;
  margin-right: 3vw;
  word-break: break-all;
}

.dep_title_img1 {
  max-height: 64px;
  height: 100%;
  width: auto;
}

.dep_title h1 {
  margin-left: -0.5em;
  font-size: 36px;
}

.dep_title_img2 {
  width: 100vw;
  margin-top: -2vw;
  z-index: -1;
}
.page {
  display: flex;
  gap: 0 22px;
  list-style: none;
  font-size: 0.9em;
  margin-left: 3vw;
  margin-right: 3vw;
  margin-bottom: 0.5vw;
  flex-wrap: wrap;
}

.page li {
  display: flex;
  align-items: center;
  margin-bottom: 1px;
}

.page li:not(:last-child)::after {
  display: inline-block;
  transform: rotate(45deg);
  width: 0.3em;
  height: 0.3em;
  margin-left: 10px;
  border-top: 1px solid #333333;
  border-right: 1px solid #333333;
  content: '';
}

.overview {
  z-index: 0;
  background-color: #ffffff;
  border-radius: 64px;
  padding: 3vw;
}

.dep_return {
  margin: 1vh;
  padding: 1em 2vw;
  border-radius: 64px;
}

.total_rec {
  text-align: center;
  font-weight: bold;
}
.total_rec span {
  font-size: 1.5em;
  color: #ea3700;
}

.dep_info {
  display: flex;
  border-bottom: solid 1px #e7e3e2;
  margin: 0 7vw;
}

.dep_info a {
  background-color: #ea3700;
  color: #ffffff;
  padding: 1px 5px 0 7px;
  border-radius: 64px;
  height: 24px;
  width: fit-content;
  margin: auto 2vw 5px 2vw;
  white-space: nowrap;
  font-size: 14px;
}

.dep_info a::after {
  content: '\025b6';
  color: #ffffff;
  padding: 0 0 0 0.3vw;
}

.dep_img {
  width: 240px;
  height: 160px;
  margin: auto 3vw;
  border-radius: 24px;
}

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

.dep_uni_dep h2 {
  margin-top: 0.7em;
  margin-bottom: 5px;
  color: #f08353;
}

.dep_uni_name {
  font-weight: bold;
  padding-bottom: 0.5em;
}
.dep_info_text {
  width: auto;
  margin: auto 0;
}

.dep_uni_subject {
  display: flex;
}

.dep_uni_class .hidden0 {
  display: none;
}
.dep_uni_class_000000 {
  display: none;
}

.dep_info_text span,
.dep_uni_name,
.dep_uni_class,
.dep_uni_study,
.dep_uni_time {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.dep_info_text span div {
  margin-right: 0.3vw;
}

.dep_uni_subject span {
  white-space: nowrap;
  margin-top: 2px;
  padding-bottom: 5px;
  margin-right: 2px;
}

.dep_uni_study div,
.dep_uni_time div {
  margin: auto 0;
  padding-right: 2px;
  text-transform: full-width;
}

.dep_uni_name div,
.dep_uni_class div {
  margin-right: 3px;
  display: flex;
  white-space: nowrap;
}

.dep_uni_class {
  margin: auto 0;
  text-transform: full-width;
}
.d_studies_html img {
  height: 26px;
  margin: 1px;
}

.dep_uni_class1 div {
  background-color: #ffffff;
  padding: 1px 5px;
  border-radius: 16px;
  margin-bottom: 0.5em;
  margin-left: 0.1vw;
  font-size: 14px;
}

.dep_uni_class div {
  background-color: #f7ffc8;
  padding: 1px 5px;
  border-radius: 16px;
  margin-bottom: 0.5em;
  margin-left: 0.1vw;
  font-size: 14px;
}

.dep_uni_class1 div {
  background-color: #f3f1f1;
}

.study_img {
  width: 20px;
  height: auto;
  padding: 0 2px;
  margin: auto 0;
}

ul.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
ul.pagination li {
  background-color: rgb(255, 255, 255);
}
ul.pagination li a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  text-decoration: none;
  font-weight: bold;
}
ul.pagination li a:hover {
  text-decoration: underline;
}
.click_disabled {
  pointer-events: none;
  text-decoration: none;
  color: #aaaaaa;
  font-weight: normal;
}

@media screen and (max-width: 710px) {
  .dep_img {
    max-width: 312px;
    min-width: 200px;
    height: auto;
    margin: 1em auto;
  }
  .dep_info {
    flex-wrap: wrap;
  }
  .dep_info_text {
    min-width: 200px;
  }
  .dep_info span {
    font-size: 14px;
  }
  .dep_uni_subject {
    flex-wrap: wrap;
  }

  .dep_uni_dep h2 {
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  /* 480px以下に適用されるCSS（スマホ用） */

  .dep_uni_dep {
    flex-wrap: wrap;
  }
  .dep_uni_dep h1 {
    width: 100vh;
    margin-top: 5px;
    font-size: 25px;
  }
  .dep_uni_dep a {
    margin-bottom: 4px;
  }

  p {
    font-size: 14px;
  }

  .midasi_item {
    height: 30px;
    left: 10px;
  }

  .news_item1 {
    top: 40%;
    left: 5%;
  }

  .news_item1 p {
    padding-right: 15px;
    padding-left: 20px;
    font-size: 14px;
  }

  .btn {
    padding-left: 20px;
    font-size: 14px;
  }

  .btn_img {
    height: 30px;
  }

  .tablet_4 {
    margin-top: 40px;
  }

  .qa-container .btn {
    margin-top: 50px;
  }

  .footer1 {
    padding-top: 5%;
  }

  .footer1_btn .btn {
    width: 50%;
    margin: 1%;
    font-size: 12px;
  }

  .footer1_btn .btn_img {
    width: 30px;
  }

  .footer1_text,
  .footer1_text a {
    margin-top: 20px;
  }

  .footer2 ul {
    width: 100%;
  }

  .apply {
    width: 30%;
  }
}
