@charset "utf-8";

.header ul li:nth-child(2) a {
  color: #efb83b;
  border-bottom: solid 5px #efb83b;
  margin-bottom: -5px;
}

/* ここからメイン */
img {
  display: block;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Sawarabi Gothic', sans-serif;
}

.service {
  width: 100%;
  background-image: url(../img/service/service.jpg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.service h2 {
  color: #143475;
  font-size: 36px;
  font-family: 'Sawarabi Gothic', sans-serif;
  text-align: center;
  letter-spacing: 10px;
  padding-top: 90px;
  padding-bottom: 90px;
}

article {
  max-width: 1200px;
  margin: 90px auto;
  padding: 0 40px;
  padding-bottom: 40px;
  text-align: center;
}

article h2 {
  display: inline-block;
  letter-spacing: 3px;
  padding: 0 40px;
  border-bottom: solid 1.5px #143475;
  margin-bottom: 40px;
  font-family: 'Sawarabi Gothic', sans-serif;
}

.main-content {
  background-color: rgb(255, 254, 246);
  border-radius: 25px;
  padding: 10px;
  border: 1.5px solid #143475;
}

h3.li04 {
  display: inline-block;
  letter-spacing: 3px;
  color: #000;
  padding-bottom: 0;
  font-weight: lighter;
  margin-bottom: 20px;
}

h3.li04 span {
  color: #143475;
  font-weight: bold;
}

h3 {
  padding-bottom: 10px;
  font-size: 24px;
  font-family: 'Sawarabi Gothic', sans-serif;
  color: #143475;
}

.open {
  font-family: 'Sawarabi Gothic', sans-serif;
  font-size: 24px;
  margin-bottom: 40px;
}

.flow {
  max-width: 1200px;
  font-family: 'Sawarabi Gothic', sans-serif;
  text-align: left;
  border: solid 1px #143475;
  border-radius: 25px;
}

.flow ol {
  padding: 10px;
  margin: 0;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: space-around;
  background-color: rgb(255, 254, 246);
  border-radius: 25px;
}

.flow ol p {
  font-size: 36px;
  font-weight: bold;
  color: #143475;
}

.flow li {
  font-size: 24px;
  letter-spacing: 1px;
  width: 350px;
  /* background-color:#efb83b; */
}


.flow li span {
  display: inline-block;
  color: #143475;
  font-weight: bold;
}

.flow dd.illust {
  padding: 0 75px;
}

.flow dd img {
  max-width: 200px;
  margin-bottom: 10px;
}

p.t {
  font-size: 36px;
  margin: 32px 0;
  color: #143475;
}

section dt {
  font-size: 24px;
  margin-bottom: 10px;
  font-family: 'Sawarabi Gothic', sans-serif;
  letter-spacing: 1px;
}

section dd {
  font-size: 20px;
  /* font-family: 'BIZ UDPMincho', serif; */
  font-family: 'Sawarabi Gothic', sans-serif;
  letter-spacing: 1px;
  line-height: 1.2;
}

.sec1 {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  border-radius: 25px;
  padding: 10px 0;
  margin-bottom: 40px;
  background-color: #fff;
}

.sec1 dl {
  max-width: 250px;

}

.sec1 dt img {
  max-width: 250px;
  padding: 0 40px;
}


.sec2 {
  display: flex;
  justify-content: space-between;
}

.sec2 dt {
  color: #143475;
}

.matto {
  max-width: 551px;
  text-align: center;
}

.matto img {
  border-right: solid 1px #fff;
  border-radius: 25px;
}

.baransu {
  text-align: center;
}

.baransu img {
  max-width: 242px;
  border-right: solid 1px #fff;
  border-radius: 25px;
}

.baransuimg {
  display: flex;
}

main button {
  padding: 0;
  margin-top: 45px;
  width: 240px;
  background-color: #fff;
  border: solid #143475;
  border-radius: 25px;
}

main button a {
  display: block;
  border-radius: 25px;
  padding: 5px 0;
  text-decoration: none;
  color: #143475;
  font-family: 'Sawarabi Gothic', sans-serif;
  font-size: 20px;
  transition: 0.3s;
}

@media (hover:hover){
  main button a:hover {
    color: #fff;
    background-color: #143475;
  }
}

@media screen and (max-width: 1024px) {
  .service {
    background-size: cover;
  }

  .header ul li:nth-child(2) a {
    color: #143475;
    border-bottom: none;
    margin-bottom: -5px;
  }

  article section.open {
    font-size:20px;
  }

  .flow ol{
    flex-direction:column;
}

  .flow ol p{
    transform: rotate( 90deg );
    font-size:36px;
    padding:20px;
  }

  .sec1{
    flex-wrap:wrap;
    justify-content: space-around;
    padding-top:0;
  }

  .sec1 dl{
    margin-bottom:30px;
  }
  .sec1 dl:last-child{
    margin-bottom:0;
  }

  .sec1 dt{
    padding-top:10px;
  }

  .sec2{
    flex-direction:column;
    align-items:center;
  }

  .sec2 dl.matto{
    margin-bottom:40px;
  }
}
@media screen and (max-width: 540px) {
  .service h2 {
    padding: 40px;
    font-size: 24px;
    margin-bottom: 40px;
  }

  article{
    padding:0 10px;
    margin-top:40px;
    margin-bottom:80px;
  }

  article h2 {
    font-size: 20px;
  }

  article dt{
    font-size:20px;
  }
  
  .sec1 dt{
    margin-bottom:0;
  }

  .flow ol dt{
    font-size:20px;
  }

  h3{
    font-size:20px;
  }
  
}