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

/*titleのデザイン*/
.uni_detail_home {
  display: flex;
}

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

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

.uni_detail_title h1 {
  margin-left: -0.5em;
  font-size: 36px;
}
.uni_detail_log_img {
  width: auto;
  height: 71px;
  margin: auto 10px;
}

.uni_detail_title_text {
  width: 40vw;
  margin-top: 2em;
  margin-bottom: 2em;
  margin-left: 11vw;
  margin-right: 4vw;
}

.uni_detail_title_text div {
  margin: 1em 0;
}

.uni_detail_homepage a{
  border-bottom: solid 1px #313030;
}

.uni_detail_class1,
.uni_detail_area {
  margin-top: 0.7em;
  margin-left: 11vw;
  margin-right: 4vw;
}
.uni_detail_area {
  display: flex;
}
.uni_detail_area div {
  margin-right: 2vw;
}

.map_img {
  margin-left: 5px;
}

.uni_detail_area a {
  border-bottom: solid 1px #313030;
}

.uni_detail_gallery {
  margin-top: 250px;
  margin-right: 7vw;
}

.gallery {
  border-radius: 24px;
  margin: 0 auto;
}

.gallery-img {
  width: 488px;
  height: 326px;
}
.gallery-list {
  padding: 0;
  list-style: none;
  display: flex;
  width: 488px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.gallery-list::before {
  content: '';
  display: block;
  width: 23%;
  order: 1;
}
.gallery-list::after {
  content: '';
  display: block;
  width: 23%;
}

.js-image {
  cursor: pointer;
  border: none;
  background: none;
  transition: 0.4s;
  width: 113px;
  height: 76px;
}
.js-image:hover {
  opacity: 0.4;
}

.gallery-list img {
  display: flex;
  width: 113px;
  height: 76px;
}

.gallery-list-item {
  flex-wrap: wrap;
}

.uni_photo_main {
  width: 488px;
  height: 326px;
  border-radius: 24px;
}

.uni_photo {
  border-radius: 8px;
}

.uni_detail_title_img2 {
  width: 100vw;
  margin-top: -10em;
  position: relative;
  z-index: -1;
}
#modal-content {
  width: 80%;
  margin: 0;
  padding: 0;
  background: #fff;
  position: fixed;
  display: none;
  z-index: 99999;
}

#modal-content .inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

#modal-content .inner #player {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

#modal-overlay {
  z-index: 999;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-color: rgba(0, 0, 0, 0.75);
}

.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;
}
.uni_detail_section {
  display: flex;
}
.uni_detail_section1 {
  width: 30vw;
  max-height: 400px;
  min-height: 200px;
  margin: 1em 2vw;
  position: sticky;
  top: 200px;
}

.uni_detail_subsection2 h3 {
  margin: 7px 2vw;
  color: #f08353;
}

.uni_detail_uni_study,
.uni_detail_uni_time,
.uni_detail_class,
.uni_detail_class1 {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 5px;
  margin-right: 1vw;
}

.uni_detail_class_title {
  margin-left: 2vw;
}

.uni_detail_uni_study div,
.uni_detail_uni_time div {
  margin: auto 2px;
  text-transform: full-width;
}

.d_studies_html img {
  height: 26px;
  margin: auto 1px;
}

.uni_detail_section1 div {
  margin-bottom: 1em;
}

.uni_detail_subject {
  display: flex;
  margin-left: 2vw;
}

.uni_detail_subject span {
  margin: auto 0 !important;
  white-space: nowrap;
}

.uni_detail_d_depa {
  background-color: #f8f7f7;
  padding: 1em;
  border-radius: 14px;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 1em;

  margin-top: 2em;
}

.uni_detail_d_depa::before {
  content: '\025c6';
  color: #ea3700;
  padding-right: 1vw;
}

.uni_detail_d_depa:empty {
  background-color: transparent;
  border-top: solid 2px #f3f1f1;
  padding: 0;
  margin-top: 0;
}

.uni_detail_d_depa:empty::before {
  display: none;
}

.uni_detail_class1 div {
  background-color: #ffffff;
  padding: 1.5px 5px;
  border-radius: 16px;
  margin-right: 1vw;
  font-size: 14px;
}
.uni_detail_class div {
  background-color: #f7ffc8;
  padding: 1px 0.5vw;
  border-radius: 16px;
  margin: auto 0.5vw;
  white-space: nowrap;
  display: flex;
}

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

.study_img {
  width: 20px;
  height: auto;
  padding: 0 2px;
  margin: auto 0;
}
.uni_detail_subsection2 span {
  display: flex;
  margin-bottom: 5px;
  margin-right: 1vw;
}

.uni_photo_subsection2 {
  width: 152px;
  height: 102px;
  margin: auto 0;
  border-radius: 16px;
}

.uni_detail_subsection2_text {
  margin: 0.5em 2vw;
}
.uni_detail_subsection2_text div {
  font-weight: bold;
}
.uni_detail_subsection2_text p {
  margin: 0.5em 0;
}

.uni_detail_campus_place {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2em;
}
.uni_detail_campus_place div {
  max-width: 356px;
  min-width: 200px;
  margin-right: 3vw;
}

.uni_area_title {
  display: flex;
  margin-top: 3em;
}

.uni_area_title h3 {
  margin-left: -0.5em;
  font-size: 20px;
}

.uni_area_title img {
  height: 48px;
  height: 100%;
  width: auto;
  padding: 1px;
}

.uni_detail_bottom_btn {
  display: flex;
}
.uni_detail_bottom_btn img {
  width: 48px;
}
.uni_detail_bottom_btn a {
  display: flex;
}
.uni_detail_bottom_btn div {
  margin: auto 1vw;
}

.uni_detail_campus_place {
  display: flex;
  margin: 1em auto;
}

.uni_detail_campus_place iframe {
  border-radius: 16px;
  width: 350px;
  height: 210px;
  margin: 0 auto;
}

.uni_detail_campus_place_map {
  margin: 1em auto;
}
.uni_detail_campus_place_map a {
  margin-bottom: 1em;
}
.uni_detail_campus_place_map iframe {
  margin-top: 1em;
}

.uni_detail_campus_place_map div:first-child {
  margin-top: 1em;
}

.apply_btn {
  display: none;
}

@media screen and (max-width: 710px) {
  .uni_detail_home {
    flex-flow: column;
  }
  .uni_detail_title_pc {
    display: contents;
  }
  .uni_detail_title_sp {
    order: 0;
  }
  .uni_detail_title_text {
    order: 2;
  }
  .uni_detail_gallery {
    order: 1;
  }
  .uni_detail_gallery {
    margin-top: 0px;
    width: auto;
    margin: 0 auto;
  }
  .uni_detail_title_text {
    width: 80vw;
    margin: 2em 7vw;
  }
  .uni_detail_section {
    flex-wrap: wrap;
  }
  .uni_detail_section1 {
    position: static;
  }
  .uni_photo_subsection2 {
    width: 342px;
    height: auto;
    margin: 1em auto;
  }
  .uni_detail_subsection2 span {
    flex-wrap: wrap;
  }

  .uni_detail_subject {
    flex-wrap: wrap;
  }
  .gallery-img {
    max-width: 350px;
    min-width: 200px;
    height: auto;
  }
  .gallery-list {
    max-width: 350px;
    min-width: 200px;
  }
  .uni_photo_main {
    max-width: 350px;
    min-width: 200px;
    height: auto;
  }
  .gallery-list::before {
    display: none;
  }
  .gallery-list::after {
    content: '';
    display: block;
    width: 30%;
  }
  .uni_detail_subsection2_text {
    width: 80vw;
    margin: 0.5em 2vw;
  }
  .uni_detail_section1 {
    display: none;
  }
}
@media screen and (max-width: 480px) {
  /* 480px以下に適用されるCSS（スマホ用） */

  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%;
  }
  .uni_detail_subsection2_text {
    width: auto;
  }
}
