
a {
  color: #313030;
}

/*titleのデザイン*/
.uni_detail_home {
  margin: 130px 7vw 20px 7vw;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
}

.uni_detail_title {
  display: flex;
  height: auto;
  word-break: break-all;
}

.uni_detail_title_img {
  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 {
  margin-left: 62px;
  grid-row: 2/3;
}

.uni_detail_title_text div {
  margin: 1em 0;
}

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

.uni_detail_class1{
  margin-top: 0.7em;
  margin-left:62px;
  display: flex;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 7px;
  font-size: 14px;
}

.uni_detail_class1 div {
  background-color: #ffffff;
  padding: 1.5px 5px;
  border-radius: 16px;
  
  white-space: nowrap;
}

.uni_detail_area {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 7px;
  margin-top: 0.7em;
  margin-left:62px;
}

.map_img {
  margin-left: 5px;
}

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

.uni_detail_gallery {
  grid-column: 2/3;
  grid-row: 1/3;
  width: fit-content;
}

.gallery-img {
  max-width: 488px;
  height: auto;
}
.gallery-list {
  padding: 0;
  list-style: none;
  display: flex;
  max-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: 23%;
  height: auto;
}
.js-image:hover {
  opacity: 0.4;
}

.gallery-list img {
  display: flex;
}

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

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

.uni_photo {
  border-radius: 8px;
  max-width:113px;
  max-height: 76px;
}

.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: 95%;
  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: '';
}

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

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

.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_subsection h3 {
  margin: 7px 0;
  color: #f08353;
}

.uni_detail_class_title {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 5px;
  margin-left: 10px;
}

.uni_detail_study {
  display: flex;
}

.uni_detail_study div:first-child {
  white-space: nowrap;
}

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

.uni_detail_study .c_name{
  display: flex;
  flex-wrap: wrap;
}

.uni_detail_study .c_name span {
  display: contents;
}

.uni_detail_subject {
  display: flex;
  column-gap: 20px;
  margin-left: 10px;
}

.uni_detail_subject div:first-child{
  white-space: nowrap;
}

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

.uni_detail_class{
  display: flex;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 7px;
}

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

.uni_detail_class div{
  display: flex;
  background-color: #f7ffc8;
  padding: 1px 0.5vw;
  border-radius: 16px;
  margin: auto 0;
}

.uni_detail_class div >*{
  white-space: nowrap;
}

.uni_detail_subsection_text{
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  margin: 15px 0;
}

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

.uni_detail_subsection_text2 {
  margin: 10px 0;
}

.uni_detail_subsection_text2 div {
  font-weight: bold;
}

.uni_detail_subsection_text2 p {
  margin: 10px 0;
}

.uni_detail_campus_place {
  display: flex;
  flex-wrap: wrap;
  gap:20px;
}

.uni_detail_campus_place_map {
  max-width: 350px;
  min-width: 200px;
  margin: 0 auto;
}

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

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

.uni_detail_btn{
  margin: 10px 0;
}
.uni_detail_btn img {
  width: 48px;
  height: auto;
}
.uni_detail_btn a {
  display: flex;
}
.uni_detail_btn div {
  margin: auto 10px;
}

@media screen and (max-width: 1000px) {
  .uni_detail_home {
    display: grid;
    grid-template-columns: auto;
    gap: 20px;
  }
  .uni_detail_title_text{
    grid-column: 1/2;
    grid-row: 3/4;
    margin: 0;
  }

  .uni_detail_gallery{
    grid-column: 1/2;
    grid-row: 2/3;
    margin: 0 auto;
  }
}

@media screen and (max-width: 700px) {
  .uni_detail_home {
    margin: 100px 10px 20px;
    gap: 12px;
  }

  .uni_detail_title {
    justify-content: center;
  }

  .uni_detail_title h1{
   margin-top: 12px;
   font-size: 24px;
  }

  .uni_detail_title .uni_news{
   font-size: 13px;
  }

  .uni_detail_log_img {
   width: auto;
   height: 41px;
   margin: 12px 7px auto 7px;
 }

 .uni_detail_class1,
 .uni_detail_area{
  margin: 10px 0;
  justify-content: center;
  font-size: 13px;
 }

 .map_img {
  width: 12px;
  height: auto;
 }

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

 .uni_detail_title_text div{
  font-size: 14px;
 }

 .uni_detail_homepage a{
  font-size: 14px;
 }

 .gallery-img {
  max-width: 320px;
  min-width: 200px;
  height: auto;
 }

 .gallery-list {
  max-width: 320px;
  min-width: 200px;
 }

 .gallery-list::before {
  display: none;
 }

 .gallery-list::after {
  content: '';
  display: block;
  width: 30%;
 }

 #modal-content .inner {
  margin: 2.5%;
}

 .uni_photo_main {
  max-width: 320px;
  min-width: 200px;
  height: auto;
 }

 .uni_photo {
  border-radius: 8px;
  max-width: 100px;
  max-height: 76px;
  margin-bottom: 5px;
 }

 .uni_detail_d_depa {
  font-size: 16px;
 }

 .uni_detail_subsection h3{
  font-size: 16px;
 }

 .uni_detail_class_title{
  column-gap: 10px;
  margin-left: 0;
  font-size: 14px;
}

.uni_detail_study {
  flex-wrap: wrap;
}

.uni_detail_subject {
  column-gap: 10px;
  margin: 5px 0;
  font-size: 14px;
  flex-wrap: wrap;
}

.uni_detail_class{
  column-gap: 7px;
  row-gap: 3px;
}

.uni_detail_subsection_text{
  display: grid;
  grid-template-columns: auto;
  margin: 10px 0;
}

.uni_photo_subsection {
  width: auto;
  max-width: 300px;
  height: auto;
  margin: auto ;
}

.uni_detail_subsection_text2 p {
  margin: 7px 0;
  font-size: 14px;
}

.text_part .section_title{
  margin: 20px 0 10px 0;
}

.uni_detail_campus_place_map {
  max-width: 300px;
  font-size: 14px;
}

.uni_detail_campus_place_map iframe {
  width: 300px;
  height: 180px;
  margin: 10px auto 0 auto;
}

.uni_detail_btn img {
  width: 32px;
}



}



























/*.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_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;
}



.uni_detail_subsection2 span {
  display: flex;
  margin-bottom: 5px;
  margin-right: 1vw;
}





.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_campus_place {
  display: flex;
  margin: 1em auto;
}

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


.apply_btn {
  display: none;
}*/




@media screen and (max-width: 710px) {
  
  /*
  .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（スマホ用） */
  .uni_detail_subsection2_text {
    width: auto;
  }
}






