@charset "utf-8";

body{
  -webkit-text-size-adjust:100%;
}

.header ul li:nth-child(4) a {
  color: #efb83b;
  border-bottom: solid 5px #efb83b;
  margin-bottom: -5px;
}

/* ここからメイン */


.access {
  width: 100%;
  background-image: url(../img/access/access.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

.access h2 {
  color: #143475;
  font-family: 'Sawarabi Gothic', sans-serif;
  font-size: 36px;
  text-align: center;
  letter-spacing: 10px;
  padding-top: 90px;
  padding-bottom: 90px;
}

.list {
  margin-top: 90px;
  letter-spacing: 2px;
  padding: 0 40px;
  font-family: 'Sawarabi Gothic', sans-serif;
}

.list dl {
  max-width: 900px;
  display: flex;
  font-size: 24px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}

.list dl:nth-child(5) {
  margin-bottom: 20px;
}

.list dt {
  width: 250px;
  color: #143475;
  font-weight: bold;
  text-align: right;
  margin-right: 40px;
}

.list dl dd {
  width: 650px;
  text-decoration:none;
  color:#000;
  pointer-events: none;
}

.map {
  text-align: center;
}

.list p {
  margin-top: 20px;

}

.list a {
  display: inline-block;
  font-size: 24px;
  text-decoration: none;
  color: #143475;
  font-weight: bold;
  text-align: center;
}

.list img {
  display:block;
  max-width: 820px;
  margin: 0 auto;
  border: solid 2px #143475;
  border-radius: 25px;
  padding: 40px;
}

@media (hover:hover){
  .list a:hover img {
    border: solid 2px #efb83b;
    border-radius: 25px;
  }
  
  .list a:hover p {
    color: #efb83b;
  }
}

@media screen and (max-width: 1024px) {
  .header ul li:nth-child(4) a {
    color: #143475;
    border-bottom: none;
    margin-bottom: -5px;
  }


  .list {
    padding: 0 40px;
    margin: 90px auto 0;
  }

  .list dl {
    font-size: 20px;
  }

  .list dt {
    margin-right:20px;
  }

  .list dd {
    text-align: left;
    width:540px;
  }

 .map img{
  padding:20px;
 }

}

@media screen and (max-width: 540px) {
  .access h2{
    padding:40px;
    font-size:24px;
   }
  
  main .list{
    padding:0 10px;
    margin-top:40px;
  }

  main .list dl{
    flex-direction:column;
  }
  
  main .list dl dt{
    margin-right:0;
    text-align:left;
  }

  main .list dl dd{
    width:375px;
  }
  
  main .list dl dt,.list dl dd{
    font-size: 16px;
    font-family: 'Sawarabi Gothic', sans-serif;
  }

  main .list .map a img {
    margin-top: 20px;
    padding:0;
    border:transparent;
    border-radius:0;
  }

  main .map p {
    font-size: 20px;
  }
  
}