/*以下ボディ部分のCSS*/
.dropdown label,
.menu{
  color: #ffffff;
}

.home {
  position: relative;
  z-index: 1;
}

.home_img {
  width: 100%;
  height: auto;
}

.home .common_btn {
  position: absolute;
  top: 70%;
  left: 5%;
  padding:  10px 20px 10px 30px;
}

.home .common_btn div:first-child{
  min-width: 140px;
  text-align: center;
}


/*以下おしらせ部分のCSS*/

.news {
  position: relative;
  padding-bottom: 59px;
  max-width: 1440px;
}

.news_list{
  max-width: 60vw;
  width: fit-content;
  margin: 0 auto;
  border-bottom: solid 2px #f3f1f1;
}

.news_item{
  display: flex;
  column-gap: 40px;
  align-items: center;
  padding-bottom: 30px;
  margin: 0 auto;
}

.news_item time {
  font-size: 14px;
  color: #ea3700;
}

.news_item2 {
  position: absolute;
  bottom: 0;
  right: 2%;
  max-height: 202px;
  height: auto;
  width: auto;
  z-index: -1;
}

/*以下ピックアップのCSS*/
.pickup {
  position: relative;
  margin-bottom: 25px;
  }
  .pickup .box1 {
      width: 70%; margin: 0 auto;
  }
  .pickup .pickup_item1 {
      display: grid;
      grid-template-columns: 1fr auto;
      justify-content: center;
      gap: 30px;
    /*  width: 70%; */
      margin: 0 auto;
  }
  .pickup .pickup_item1 .c1 { border-radius: 14px; }
  /*.pickup .pickup_item1 .c2 { }*/
  .pickup h3 {
      font-size:16px; margin: 0;
      vertical-align: middle;
      display: grid;
      grid-template-columns: auto 1fr;
      width: max-content;
      gap: 7px;
  }
  /*.pickup h3 img {  }*/
  .pickup a {
      text-decoration: none;
      color: black;
      display: contents;
      background-color: rgb(255, 255, 255);
      margin: 0 auto;
  }
  .pickup a:hover {
      display: block;
      margin: 0 auto;
      opacity: 0.8;
  }

  .pickup .msg3 {
      margin-top: 10px;
  }

  .pickup .msg3 span {
      background-color: #ffffff;
      padding: 3.5px 7px;
      border-radius: 16px;
      margin-right: 1vw;
      font-size: 12px;
      line-height: 28px;
      border: 1px solid #ccc;
      word-break: keep-all;
  }
  .pickup .msg4 {
  font-weight: bold;
  font-size: 12px;
  margin-top: 0px;
  margin-bottom: 0;
  }
  .pickup .msg5 {
  margin: 10px 0 0 0;
  font-size: 12px;
  }
  .pickup .msg {
  padding: 8px 0;
  color: #ea3700;
  background-color: #eaeaea;
  margin-bottom: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  gap:0; 
  }
  .marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  }
  .marquee p {
  display: inline-block;
  padding-left: 100%;
  animation: marquee-animation 20s linear infinite;
  margin: 0;
  font-size: 12px;
  } 
  @keyframes marquee-animation {
  from { transform: translateX(0%); } to { transform: translateX(-100%); } 
  }
  @media screen and (max-width: 710px) {
      .pickup .pickup_item1 {
          grid-template-columns: 1fr;
          gap: 12px;
          justify-items: center;
          width: 90%;
      }
      .pickup h3 {
          grid-template-columns: 1fr auto;
          margin: 0 auto;
      }
      .pickup .msg3 {
          margin-top: 15px;
          text-align: center;
      }
      .pickup .msg4 {
          text-align: center;
      }
  }

/*以下検索のタブ部分のCSS*/
.serch {
  z-index: 1;
  background: #f8f7f7;
  border-radius: 64px;
  padding-top: 5%;
  padding-bottom: 5%;
  margin-bottom: 5%;
}

.tab-2 {
  display:flex;
  flex-wrap: wrap;
  gap: 40px 0px;
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;
}

label .serch_tab {
  width: 300px;
  height: 57px;
  margin: 2px;
  opacity: 0.4;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}


.tab-2 > label {
  order: -1;
  position: relative;
  padding: 2px;
  font-size: 0.9em;
  text-align: center;
  cursor: pointer;
}

.serch_tab_input {
  background-color: #eaeaea;
  border-radius: 64px 0px 0px 64px;
  margin-left: auto;
}
.serch_tab_input2 {
  background-color: #eaeaea;
  border-radius: 0px 64px 64px 0px;
  margin-right: auto;
}

.tab-2 > label:hover {
  opacity: 0.8;
}

.tab-2 .serch_tab_input input {
  display: none;
}
.tab-2 .serch_tab_input2 input {
  display: none;
}

.tab-2 > div {
  display: none;
  width: 100%;
  padding: 1.5em 3em;
  background-color: #fff;
  border-radius: 32px;
}

.tab-2 label:has(:checked) .serch_tab {
  opacity: 1;
  background-color: #fff;
  border-radius: 64px;
  color: #ea3700;
}

.tab-2 label:has(:checked) + div {
  display: block;
}

.serch_tab_sp {
  text-align: center;
  background-color: #f8f7f7;
  padding-top: 1.5em;
  padding-bottom: 1em;
  border-radius: 32px 32px 0 0;
}

.serch_tab_sp_option {
  border-radius: 64px;
  height: 57px;
  width: 80%;
  font-size: 18px;
  color: #ea3700;
  border: none;
  text-align: center;
}

.serch_tab_sp {
  display: none;
}

/*以下大学を探す部分のCSS*/
.serch_select_uni_class1 {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0.8em;
}

.serch_select_uni_class1 input {
  display: none;
}

.serch_select_uni_class1 label {
  opacity: 1;
  padding: 0 15px 0 30px;
  margin: 10px;
  background-color: #f8f7f7;
  border-radius: 64px;
  font-size: 14px;
  height: 38px;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.serch_select_uni_class1 label::before {
  content: "";
  display: block; 
  position: absolute;
}

.serch_select_uni_class1 label:has(:checked) {
  background-color: #ffffff;
  outline: 1px solid #313030;
}

.serch_select_uni_class1 label::before{
  border-bottom: 2px solid #313030;
  border-left: 2px solid #313030;
  opacity: 0;
  height: 5px;
  width: 10px;
  transform: translateY(-50%);
  top: 40%;
  transform: rotate(-45deg);
  left: 10px;
}

.serch_select_uni_class1 label:has(:checked)::before{
  opacity: 1;
}

.center {
  text-align: center;
  margin-top: 1em;
}

.serch_btn {
  padding: 1em 2vw;
  background-color: #ea3700;
  border-radius: 64px;
  color: #ffffff;
  border: solid 1px #ea3700;
  transition: all 0.5s;
}

.serch_btn:hover {
  background-color: #ffffff;
  color: #ea3700;
}

/*以下学科を探す部分のCSS*/

.serch_select2 {
  display: flex;
}

.serch_select2-1 {
  display: flex;
  margin: 0 4vw;
}

.serch_select2-1_input {
  min-width: 200px;
  margin-top: 18px;
}

.serch_select2-1_select {
  margin-top: 18px;
  margin-left: 10px;
  width: 80%;
}

.icon_item1 {
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.serch_select2-1 img:nth-of-type(1) {
  opacity: 1;
  display: initial;
}
.serch_select2-1 img:nth-of-type(2) {
  opacity: 0;
  display: none;
}

.serch_select2-1 label:has(:checked) img:nth-of-type(1) {
  opacity: 0;
  display: none;
  transition: opacity 0.2s;
}
.serch_select2-1 label:has(:checked) img:nth-of-type(2) {
  opacity: 1;
  display: initial;
  transition: opacity 0.5s;
}

.tab-2 .serch_select2 input {
  display: none;
}
.tab-2 .serch_select2 .icon_all{
 width: 35px;
 margin-right: 7px;
}

.serch_select2-2 {
  display: flex;
  margin: 0 4vw;
}

.serch_select2-3_select {
  display: flex;
  flex-wrap: wrap;
}
.serch_select2-5_select img,
.serch_select2-5_select div,
.serch_select2-3_select select {
  padding-right: 5px;
}

.serch_select2-5_select {
  display: flex;
  height: fit-content;
  width: fit-content;
  margin-bottom: 10px;
  flex-wrap: wrap;
  row-gap: 5px;
}

.serch_select2-5_select span{
  display: flex;
  white-space: nowrap;
}


.serch_select2-5_select div {
  margin: auto 0;
}

.serch_select2-2 select {
  background-color: #ffffff;
  padding: 0 0.5vw;
  border-radius: 64px;
  text-align: center;
  outline: 1px solid #000000;
  margin-right: 1vw;
  cursor: pointer;
}

.kamoku {
  font-weight: bold;
}

.serch_refine {
  display: flex;
  font-weight: bold;
  align-items: center; /* 垂直中心 */
  white-space: nowrap;
}

.serch_select2 .serch_refine::before {
  content: "●";
  color: #ea3700;
  padding-right: 5px;
}

.serch_refine::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: #e7e3e2;
  display: block;
  margin-left: 10px;
}

.curriculum_font {
  font-size: 12px;
}

.resultcount {
  font-weight: bold;
  font-size: 14px;
}
.count {
  font-size: 22px;
  color: #ea3700;
  margin: 0 5px;
}

/*以下カルーセル部分のCSS*/
.multiple {
  height: auto;
}

.multiple img {
  width: 100%;
}

.slick-initialized .slick-slide:empty {
  display: none;
}

.box {
  width: 312px;
  height: 350px;
  transition: all 0.3s;
}

.box:hover {
  width: 320px;
  height: auto;
  transform: scale(1.1);
}

.arrow_box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 50px 5vw 0;
  position: relative;
}

.prev-arrow,
.next-arrow {
  display: block;
  width: 50px;
  height: 50px;
  background: #ffffff;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.prev-arrow {
  transform: rotate(180deg);
  margin-right: 20px;
}

.prev-arrow::before,
.next-arrow::before {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #ea3700;
  border-top: 2px solid #ea3700;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  transform: rotate(45deg);
}

.carousel .common_btn{
  margin: 0 auto;
}



/*以下受験の流れ部分のCSS*/

.flow {
  position: relative;
  z-index: 1;
  padding-bottom: 59px;
  margin-bottom: 40px;
}

.flow_section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 7vw 1.5em 7vw;
}

.flow_step {
  width: 180px;
  margin: 1em 10px;
}

.flow_part1 {
  display: flex;
  align-items: center;
}

.flow_part1 div {
  font-size: 60px;
  color: #ea3700;
}

.flow_arrow {
  width: 70px;
  height: 100%;
  margin: 10px;
}

.flow_part2_title {
  margin: 10px 0;
  font-weight: bold;
}


.flow .common_btn {
  margin: 0 auto;
  background-color: #f8f7f7;
  max-height: 80px;
  width: fit-content;
}

.flow .common_btn:hover,
.qa-container .common_btn:hover{
  background-color: #ffffff;
}

.flow_item {
  position: absolute;
  bottom: 0;
  left: 7%;
  max-height: 276px;
  height: auto;
  max-width: 70%;
  width: auto;
  z-index: -1;
}


/*以下FAQのCSS*/
.qa-container {
  position: relative;
  padding-bottom: 59px;
}

.qa-4 {
  max-width: 80%;
  margin-bottom: 10px;
  border-bottom: 2px solid #d6dde3;
  margin-left: 10%;
}

.qa-4 summary {
  display: grid;
  grid-template-columns:70px 1fr 70px;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  color: #333333;
  font-weight: 600;
  cursor: pointer;
  font-size: 20px;
}

.qa_number {
  font-size: 1.6em;
  color: #ea3700;
  font-family:'Roboto';
  font-weight: 400;
  font-style: italic;
}

.qa_btn_img{
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0 0 0 auto;
}

.qa_btn_img img{
  width: 100%;
  height: auto;
  position: absolute;
  top:0;
  transition: all 0.5s;
}

.qa_btn_img img:nth-child(2){
  opacity: 0;
}

.qa-4 p {
  position: relative;
  transform: translateY(-10px);
  opacity: 0;
  margin: 0 70px 20px;
  color: #333;
  transition: transform 0.5s, opacity 0.5s;
}

.qa-4[open] p {
  transform: none;
  opacity: 1;
}

.qa-4[open] .qa_btn_img img:first-child{
 opacity: 0;
}
.qa-4[open] .qa_btn_img img:nth-child(2){
  opacity: 1;
 }

.qa-container .common_btn{
  background-color: #f8f7f7;
  margin: 40px auto 0 auto;
}


@media screen and (max-width: 700px) {

  .home .common_btn {
    position: absolute;
    top: 49%;
    left: 5%;
    padding:  5px 12px 5px 10px;
    font-size: 14px;
  }
  
  .home .common_btn div:first-child{
    min-width: 110px;
    text-align: center;
  }

  .home .common_btn_img,
  .home .common_btn_img img{
    width: 35px;
    height: 35px;
  }



  .news_list{
    max-width: 85vw;
  }
   
  .news_item{
    flex-flow: column;
    align-items: start;
    padding: 15px 0;
  }

  .news_item2{
    width: 196px;
    
  }
  .tab-2 {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
  }
  .serch_tab_sp {
    display: block;
  }

  
  .serch_tab_input,
  .serch_tab_input2 {
    display: none;
  }
  
  .serch {
    padding-top: 0;
    border-radius: 0 0 32px 32px;
  }

  .serch_select2-1_select {
    display: block;
  }
  .serch_select2,
  .serch_select2-1,
  .serch_select2-2 {
    flex-wrap: wrap;
  }
  .serch_select2-1,
  .serch_select2-2 {
    flex-flow: column;
  }
  .serch_select2-1_input {
    width: 100%;
  }
  .serch_select,
  .serch_select2 {
    padding: 1.5em 1vw !important;
  }
  .serch_select2-1_select {
    margin-top: 18px;
    margin-left: 10px;
    width: 100%;
  }

  .serch_select_uni_class1 label {
    padding: 0 10px 0 25px;
    margin: 5px;
    font-size: 12px;
    height: 30px;
  }

  .serch_refine{
    font-size: 14px;
  }

  .flow_section {
    flex-flow: column;
    justify-content: left;
  }

  .flow_step {
    display: flex;
    width: auto;
  }

  .flow_part1 {
    flex-flow: column;
    width: 50px;
  }
  .flow_part1 div {
    font-size: 40px;
  }

  .flow_arrow {
    transform: rotate(90deg);
    width: 70px;
    height: auto;
    margin: 2em;
  }

  .flow_part2 {
    margin: auto 10px;
  }

  .qa-4 {
    max-width: 90%;
    margin: 0 auto;
  }
  
  .qa-4 summary {
    grid-template-columns:50px 1fr 50px;  
    padding: 15px 0;
    font-size: 16px;
  }
  
  .qa_btn_img{
    width: 30px;
    height: 30px;
  }

  .qa-4 p {
    font-size: 14px;
    margin: 0 0 20px 50px;
  }

}

