@media screen and (min-width: 768px) {
  .sp {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .pc {
    display: none;
  }
}

.fv {
  position: relative;
  padding: 70px 0 0;
  background: url(../img/top/lab_top_back.png) 0 0 / cover no-repeat;
}
.fv .fv_inner {
  padding-bottom: 70px;
}
@media screen and (max-width: 767px) {
  .fv .fv_inner {
  padding-bottom: 6.6666666667vw;
}
}
/* .fv .fv_inner {
  display: flex;
  justify-content: space-between;
}
@media screen and (max-width: 767px) {
  .fv .fv_inner {
    display: block;
  }
} */
.fv .right {
  position: relative;
  z-index: 100;
  width: 360px;
  background-color: var(--back);
  border-radius: 10px;
  padding: 15px 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width: 767px) {
  .fv .right {
    width: 90%;
    max-width: 400px;
  }
}
.fv .right h2 {
  text-align: center;
  font-weight: bold;
  width: 100%;
  margin-bottom: 20px;
}
.fv .right .hankaku {
  color: #abaaaa;
  text-align: end;
  font-size: 13px;
  margin: -10px 0 10px;
}
.fv .right .form-group {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  align-items: end;
}
.fv .right .form-group.end {
  align-items: baseline;
}
.fv .right .form-group label {
  width: 35%;
  font-size: 12px;
  font-weight: bold;
}
@media screen and (max-width: 767px) {
  .fv .right .form-group label {
    width: 100px;
  }
}
.fv .right .form-group label .red {
  color: #fff;
  background-color: #E73B31;
  display: inline-block;
  padding: 2px 5px;
  border-radius: 5px;
  font-size: 10px;
}
.fv .right .form-group input, .fv .right .form-group textarea, .fv .right .form-group select {
  width: 68%;
  padding: 5px;
  border: 1px solid #e2e2e2;
}
@media screen and (max-width: 767px) {
  .fv .right .form-group input, .fv .right .form-group textarea, .fv .right .form-group select {
    width: calc(100% - 120px);
  }
}
.fv .right .form-agreement {
  text-align: center;
  font-size: 13px;
  border: 1px solid #e2e2e2;
  padding: 5px 0;
  margin-bottom: 5px;
}
.fv .right .polcy_link {
  font-size: 13px;
}
.fv .right .polcy_link a {
  color: var(--main);
  text-decoration: underline;
}
.fv .right button {
  margin: 10px auto;
  text-align: center;
  display: block;
  border: none;
  background-color: var(--main);
  color: #fff;
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: 0.4s;
}
.fv .right button:hover {
  filter: brightness(120%);
  transition: 0.4s;
}
.fv .left {
  position: relative;
  z-index: 100;
}
.fv .left h2 {
  width: 336px;
}
@media screen and (min-width: 769px) and (max-width: 1101px) {
  .fv .left h2 {
    width: 30.5454545455vw;
  }
}
@media screen and (max-width: 767px) {
  .fv .left h2 {
    width: 44.8vw;
  }
}
.fv .left h3 {
  margin: 0 auto 20px;
  font-weight: bold;
  font-size: 38px;
  letter-spacing: 1.1px;
  text-align: center;
}
@media screen and (min-width: 769px) and (max-width: 1101px) {
  .fv .left h3 {
    font-size: 3.3636363636vw;
    /* margin: 4.5454545455vw auto 1.8181818182vw; */
    margin: 0 auto 1.8181818182vw;
  }
}
@media screen and (max-width: 767px) {
  .fv .left h3 {
    font-size: 5.0666666667vw;
    margin: 6.6666666667vw auto 3.37vw;
  }
}
.fv .left h3 span {
  color: var(--main);
}
.fv_link_wrap {
  max-width: 330px;
  margin: min(calc(50 / 750 * 100vw), 50px) auto min(calc(30 / 750 * 100vw), 30px) auto;
}
.fv_link_wrap a {
  padding: 17px 10px;
}
.fv_link_wrap a {
  background-image: linear-gradient(130deg, #64b2d9 0%, #46aadc 31%, #4075cb 95%);
  width: 100%;
  text-align: center;
  color: #fff;
  border-radius: 500px;
}
.fv_link_wrap.redco a {
    background-image: linear-gradient(130deg, #e03232 0%, #f03333 31%, #cb4040 95%);
} 
@media screen and (min-width: 768px) {
  .fv_link_wrap a {
    font-size: 16px;
  }
}
@media screen and (max-width: 767px) {
  .fv_link_wrap a {
    font-size: 14px;
  }
}
.fv .left .fv_text {
  text-align: center;
  font-weight: bold;
}
@media screen and (min-width: 768px) {
  .fv .left .fv_text {
    font-size: min(calc(23 / 750 * 100vw), 23px);
}
}
@media screen and (min-width: 769px) and (max-width: 1101px) {
  .fv .left .fv_text {
    font-size: 2.3636363636vw;
  }
}
@media screen and (max-width: 767px) {
  .fv .left .fv_text {
    font-size: calc( 24 / 750 * 100vw);
  }
}
.fv .left .fv_text span {
    color: var(--main);
}
.fv_item_img_wrap {
  max-width: 570px;
  margin: 0 auto;
}
.fv .left li {
  font-size: 18px;
  text-indent: -1.5em;
  padding-left: 1.5em;
  margin-bottom: 10px;
}
@media screen and (max-width: 767px) {
  .fv .left li {
    font-size: 3.4666666667vw;
  }
}
.fv .left li img {
  width: 18px;
  margin-right: 10px;
  vertical-align: middle;
}
@media screen and (max-width: 767px) {
  .fv .left li img {
    width: 3.4666666667vw;
  }
}
.fv .left li span {
  font-size: 20px;
  font-weight: bold;
}
@media screen and (max-width: 767px) {
  .fv .left li span {
    font-size: 3.7333333333vw;
  }
}
.fv img.fv_back {
  position: absolute;
  width: 50%;
  right: 0;
  bottom: 0;
}

#openBtn {
  display: none;
}
@media screen and (max-width: 767px) {
  #openBtn {
    display: block;
    /* margin: 4vw auto 0; */
    position: relative;
    text-align: center;
    border: none;
    background-color: var(--main);
    color: #fff;
    padding: 15px 20px;
    border-radius: 100px;
    font-weight: bold;
    cursor: pointer;
    font-size: 3.4666666667vw;
  }
}

@media screen and (max-width: 767px) {
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
  }
}
section.top_service {
  position: relative;
}
section.top_service .service_back {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
}
section.top_service h2 {
  text-align: center;
  font-weight: bold;
  font-size: min(4.2666666667vw, 32px);
  position: relative;
  z-index: 2;
}
section.top_service .h2_bottom {
  text-align: center;
  font-weight: bold;
  margin-top: min(2.6666666667vw, 20px);
  position: relative;
  z-index: 2;
}
@media screen and (min-width: 768px) {
  section.top_service .h2_bottom {
    font-size: 20px;
  }
}
@media screen and (max-width: 767px) {
  section.top_service .h2_bottom {
    font-size: 3.2vw;
  }
}

.top_h2 p {
  font-size: min(3.4666666667vw, 24px);
  color: var(--main);
}
.top_h2 h2 {
  font-size: min(4.5333333333vw, 34px);
  margin-bottom: min(5.3333333333vw, 50px);
}

@media screen and (min-width: 768px) {
  section.top_company .top_company_flex {
    display: flex;
    justify-content: space-between;
  }
}
@media screen and (min-width: 768px) {
  section.top_company .top_company_flex .left {
    width: 48%;
  }
}
@media screen and (min-width: 768px) {
  section.top_company .top_company_flex .right {
    width: 45%;
  }
}
section.top_company .top_company_flex p {
  margin-bottom: min(5.3333333333vw, 40px);
  line-height: 1.7;
}
@media screen and (max-width: 767px) {
  section.top_company .top_company_flex p {
    margin-top: 2.6666666667vw;
  }
}
section.top_company .top_company_flex .gradation_link {
  max-width: 280px;
  margin: 0 auto;
}

section.ai2jiku h2 {
  text-align: center;
  font-size: min(4.2666666667vw, 32px);
}
section.ai2jiku h2 img {
  width: min(22.6666666667vw, 170px);
  vertical-align: baseline;
}
section.ai2jiku h2 span {
  background: linear-gradient(transparent 57% 45%, #79c4ee 80%);
}
@media screen and (min-width: 768px) {
  section.ai2jiku .ai2jiku_flex {
    display: flex;
    justify-content: space-between;
    margin-top: min(6.6666666667vw, 50px);
  }
}
@media screen and (max-width: 767px) {
  section.ai2jiku .ai2jiku_flex {
    display: block;
    margin-top: min(6.6666666667vw, 50px);
  }
}
section.ai2jiku .ai2jiku_flex .left, section.ai2jiku .ai2jiku_flex .right {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 2px 2px 17px 6px rgba(31, 75, 97, 0.1);
  margin: 0 auto;
  text-align: center;
  padding: min(6.6666666667vw, 50px) min(1.3333333333vw, 10px) min(2.6666666667vw, 20px);
  transition: 0.4s;
}
@media screen and (min-width: 768px) {
  section.ai2jiku .ai2jiku_flex .left, section.ai2jiku .ai2jiku_flex .right {
    width: 44%;
  }
}
@media screen and (max-width: 767px) {
  section.ai2jiku .ai2jiku_flex .left, section.ai2jiku .ai2jiku_flex .right {
    width: 100%;
  }
  section.ai2jiku .ai2jiku_flex .left {
  margin-bottom: min(2.6666666667vw, 20px);
  }
}
section.ai2jiku .ai2jiku_flex .left:hover, section.ai2jiku .ai2jiku_flex .right:hover {
  box-shadow: none;
  opacity: 1;
  filter: brightness(110%);
  transition: 0.4s;
}
@media screen and (min-width: 768px) {
  section.ai2jiku .ai2jiku_flex img {
    width: 55%;
  }
}
@media screen and (max-width: 767px) {
  section.ai2jiku .ai2jiku_flex img {
    width: 65%;
  }
}
section.ai2jiku .ai2jiku_flex .gradation {
  margin: min(2.6666666667vw, 20px) auto min(4vw, 30px);
}
section.ai2jiku .ai2jiku_flex .text {
  color: var(--main);
}
@media screen and (min-width: 768px) {
  section.ai2jiku .ai2jiku_flex .text {
    text-align: end;
    width: 95%;
  }
}
@media screen and (max-width: 767px) {
  section.ai2jiku .ai2jiku_flex .text {
    text-align: end;
    width: 98%;
  }
}
section.ai2jiku .ai2jiku_flex .text img {
  width: min(2.6666666667vw, 20px);
  vertical-align: baseline;
  margin-left: min(0.5333333333vw, 4px);
}

section.top_company, section.services, section.news {
  position: relative;
  overflow: hidden;
}
section.top_company img.item, section.services img.item, section.news img.item {
  position: absolute;
  top: -10%;
  right: 0;
  width: 30%;
  opacity: 0.6;
  max-width: 600px;
  min-width: 350px;
}

section.case .gradation_link, section.services .gradation_link, section.news .gradation_link {
  margin: min(6.6666666667vw, 50px) auto 0;
  max-width: 280px;
}

section.services .services_flex {
  display: flex;
  justify-content: space-between;
  flex: 1;
  flex-wrap: wrap;
  gap: min(2.6666666667vw, 20px) 0;
}
section.services .services_item {
  background-color: #fff;
  box-shadow: 2px 2px 17px 6px rgba(31, 75, 97, 0.1);
  border-radius: min(1.3333333333vw, 10px);
  padding: min(2.6666666667vw, 20px) min(2vw, 15px) 0;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  z-index: 10;
  position: relative;
}
@media (min-width: 1001px) {
  section.services .services_item {
    width: 32%;
  }
}
@media (max-width: 1000px) {
  section.services .services_item {
    width: 48%;
  }
}
@media screen and (max-width: 767px) {
  section.services .services_item {
    width: 100%;
  }
}
section.services .services_item h3 {
  text-align: center;
  color: var(--main);
  margin-bottom: min(2.6666666667vw, 20px);
  display: flex;
  align-items: center;
  min-height: 3em;
  justify-content: center;
}
section.services .services_item ul {
  flex-grow: 1;
}
section.services .services_item .text {
  display: flex;
  align-items: baseline;
  margin-bottom: min(4vw, 30px);
}
section.services .services_item .text img {
  width: min(2.6666666667vw, 20px);
  margin-right: min(1.3333333333vw, 10px);
}
@media screen and (max-width: 767px) {
  main.top {
    padding-top: 0;
  }
}
@media screen and (max-width: 767px) {
  .top_form_flex {
    position: relative;
    z-index: 10;
    width: 95%;
    margin: calc( 30 / 750 * 100vw) auto;
  }
  .top_form_flex button {
    background-image: linear-gradient(130deg, #64b2d9 0%, #46aadc 31%, #4075cb 95%);
    margin: 0;
    width: 100%;
  }
  .top_form_flex a {
    background-image: linear-gradient(131deg, #ffb376 0%, #e8883a 31%, #fb7910 95%);
    color: #fff;
    border-radius: 100px;
    text-align: center;
    font-size: 3.4666666667vw;
    padding: 15px 20px;
    font-weight: bold;
    width: 100%;
    margin: 15px 0;
  }
}
@media screen and (max-width: 767px) {
  .service2 .sp_texts {
    margin-top: 4vw;
  }
  .service2 .sp_texts p {
    text-align: center;
  }
}
