/*以下ボディ部分のCSS*/

.item a {
  color: #ffffff;
}

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

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

.home .btn {
  position: absolute;
  top: 65%;
  left: 5%;
}

.btn {
  align-items: center;
  display: flex;
  padding: 16px;
  padding-left: 40px;
  color: #313030;
  background-color: #ffffff;
  border-radius: 100vh;
  height: 5%;
  max-height: 80px;
}
.btn:hover {
  outline: 2px solid #ea3700;
  background-color: #ffffff;
  color: #ea3700;
}

.btn_img {
  height: 100%;
  padding-left: 1rem;
}

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

.btn:hover img:nth-of-type(1) {
  opacity: 0;
  display: none;
  transition: opacity 0.2s;
}
.btn:hover img:nth-of-type(2) {
  opacity: 1;
  display: block;
  transition: opacity 0.5s;
}

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

.news {
  position: relative;
  margin-bottom: 59px;
}

.section_title {
  display: flex;
  height: auto;
  margin-left: 7vw;
  word-break: break-all;
}

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

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

.news_item1 {
  display: flex;
  justify-content: center;
}

.news_item1 span {
  display: flex;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: solid 2px #f3f1f1;
}

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

.news_item1 p {
  padding-left: 40px;
}

.news_item2 {
  position: absolute;
  top: 3em;
  right: 2%;
  max-height: 202px;
  height: auto;
  width: auto;
  z-index: -1;
}
/*以下検索のタブ部分の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: 372px;
  height: 57px;
  line-height: 57px;
  margin: 2px;
  opacity: 0.4;
  font-size: 16px;
}

.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;
}

.test2 {
  display: none;
}

.test label:has(:checked) + .test2 {
  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 1vw 0 0.2vw;
  margin: 10px;
  background-color: #f8f7f7;
  border-radius: 64px;
  font-size: 14px;
  height: 38px;
  display: flex;
  align-items: center;
}

.serch_select_uni_class1 label::before {
  content: "\025cf";
  color: #e7e3e2;
  font-size: 2em;
  padding: 1px;
}

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

.serch_select_uni_class1 label:has(:checked)::before {
  content: "\02713";
  color: #313030;
  font-size: 1.3em;
  padding: 3px;
}

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

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

.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 {
  width: 20%;
  margin-top: 18px;
}

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

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

.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;
}

.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: 30px;
  width: auto;
  margin-bottom: 10px;
  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;
}

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

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

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

.curriculum_font {
  font-size: 12px;
}

/*以下カルーセル部分の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 .btn {
  position: relative;
  top: 80%;
  left: 50%;
  transform: translate(-50%, 0);
  background-color: #ffffff;
  padding: 10px;
  padding-left: 20px;
  max-height: 80px;
  text-align: center;
  width: fit-content;
}

.carousel .btn_img {
  max-height: 48px;
}

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

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

.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_item {
  height: 96px;
  width: auto;
}

table {
  margin-right: 10%;
  margin-left: 10%;
  width: 80%;
}

table img {
  max-height: 96px;
  height: auto;
  width: auto;
}

table tr {
  padding-top: 15px;
}

table td {
  width: 20%;
  padding: 15px;
  vertical-align: top;
}

.flow .btn {
  position: relative;
  top: 80%;
  left: 50%;
  transform: translate(-50%, 0);
  background-color: #f8f7f7;
  padding: 10px;
  padding-left: 20px;
  max-height: 80px;
  text-align: center;
  width: fit-content;
}

.flow .btn_img {
  max-height: 48px;
}

.flow_item {
  position: relative;
  margin-top: -200px;
  width: 40vw;
  height: auto;
  z-index: -1;
}

/*以下コラムのCSS*/
.column {
  position: relative;
  z-index: 1;
  background: #f8f7f7;
  border-radius: 64px;
  padding-top: 2em;
  padding-bottom: 2em;
}

/*以下は最後に消す*/

.midasi {
  position: relative;
  display: flex;
  padding-top: 10%;
}

.midasi_item {
  position: absolute;
  top: 10%;
  left: 100px;
  height: 60px;
  margin-top: 1rem;
}

/*ここまで消す*/

.section_title {
  display: flex;
  height: auto;
  margin-left: 7vw;
  word-break: break-all;
}

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

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

.column_section {
  display: flex;
  flex-wrap: wrap-reverse;
  margin: 1em 7vw;
}

.column_section_article {
  width: 65%;
  margin: 0 0 0 auto;
}

.article_top_text {
  margin: 2em 1vw;
  padding: 0 5vw 3em 5vw;
  border-bottom: solid 1px #000000;
}

.article {
  display: flex;
  margin: 2em 0 2em 0;
}

.article_img1 {
  width: auto;
  height: 160px;
  z-index: 2;
}

.article_text {
  margin-left: 1vw;
  margin-right: 1vw;
}

.article_tag {
  display: flex;
}

.article_tag div {
  background-color: aqua;
  border-radius: 64px;
  margin-right: 1vw;
  padding: 3px 10px;
  font-size: 14px;
}

.column_section_button {
  display: flex;
  align-items: flex-end;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.column_section_button a {
  padding: 10px 20px;
  height: fit-content;
}

.column_section_button img {
  width: 38px;
  height: 38px;
}

.bottom_img {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 0;
  margin-top: -100px;
}

/*以下FAQのCSS*/
.qa-container {
  position: relative;
  padding-bottom: 10%;
  margin-bottom: 5%;
}

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

.qa-6 summary {
  display: flex;
  align-items: center;
  position: relative;
  padding: 1em 0em 1em 0em;
  color: #333333;
  font-weight: 600;
  cursor: pointer;
  font-size: 20px;
}

.qa-6 summary::before,
.qa-6 p::before {
  position: absolute;
  left: 1em;
  font-weight: 600;
  font-size: 1.3em;
}

.qa-6 span {
  font-size: 32px;
  color: #ea3700;
  margin-right: 5%;
}

.qa-6 img {
  position: relative;
  right: 0;
  max-height: 50px;
  margin-left: auto;
  margin-right: 10px;
}

.qa-6 p {
  position: relative;
  transform: translateY(-10px);
  opacity: 0;
  margin-left: 5%;
  padding: 0.3em 3em 1.5em;
  color: #333;
  transition: transform 0.5s, opacity 0.5s;
}

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

.qa-container .btn {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, 0);
  background-color: #f8f7f7;
  padding: 10px;
  padding-left: 20px;
  max-height: 80px;
  text-align: center;
}

.qa-container .btn_img {
  max-height: 48px;
}

.tablet_3 th {
  display: none;
}

@media screen and (max-width: 1040px) {
  /* 1040px以下に適用されるCSS（タブレット用） */

  .tablet {
    display: block;
  }

  label .serch_tab {
    min-width: 250px;
    width: 100%;
  }

  .tablet_1,
  .tablet_2 {
    display: none;
  }

  .tablet_4 {
    margin-top: 120px;
  }

  table td,
  .tablet_3 th {
    display: block;
    width: 100%;
    text-align: left;
  }
  .midasi_item {
    left: 30px;
  }
  h1 {
    left: 80px;
  }
  .honnbunn {
    width: 80%;
    margin-top: 40px;
  }
  section {
    width: 80%;
    margin-top: 5%;
    margin-left: 10%;
    margin-right: 10%;
  }

  .colom .btn {
    position: relative;
    margin-top: 30px;
    width: 150px;
    padding: 5px;
    max-height: 60px;
  }

  .btn_img {
    height: 40px;
  }

  .news_item1 span {
    flex-wrap: wrap;
  }

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

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

@media screen and (max-width: 710px) {
  .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;
  }

  .column_section_article {
    width: 100%;
    margin: 0 auto;
  }

  .flow_item {
    margin-top: -70px;
  }

  .news_item2 {
    top: 6em;
    max-height: 150px;
  }
}

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

  h1 {
    font-size: 20px;
    margin-top: 30px;
    left: 40px;
  }

  p {
    font-size: 14px;
  }

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

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

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

  .btn_img {
    height: 30px;
  }

  .tablet_4 {
    margin-top: 40px;
  }

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

  .footer1 {
    margin-top: 100px;
    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%;
  }

  .colom_item3 {
    height: 200px;
  }

  .home .btn {
    top: 85%;
  }

  .section_img1 {
    max-height: 32px;
  }

  .section_title h1 {
    margin-left: -0.5em;
    margin-top: 12px;
    font-size: 18px;
  }

  .flow_section {
    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;
  }
}
