@charset "utf-8";



/* contact */

.contact {
  width: 100%;
  background: url(../img/bg-contact.svg) center/32px repeat;
  padding: 64px 0 24px;
}

.contact__message {
  display: flex;
  margin: 0 auto;
  width: calc(100% - 32px);
  max-width: 750px;
  font-size: 24px;
  font-weight: bold;
  color: var(--brand-color);
}

.contact__message-img {
  padding: 0 26px 0 0;
  align-self: center;
}

.contact__message-directions {
  padding: 16px;
  background: white;
  border: solid 4px var(--brand-color);
  border-radius: 32px;
  align-self: center;
  text-align: center;
  position: relative;
}

.contact__message-directions::before,
.contact__message-directions::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  top: 0;
  left: 0;
}

.contact__message-directions::before {
  top: calc(50% - 16px);
  left: -16px;
  border-top: 16px solid transparent;
  border-right: 16px solid var(--brand-color);
  border-bottom: 16px solid transparent;
}

.contact__message-directions::after {
  top: calc(50% - 10px);
  left: -10px;
  border-top: 10px solid transparent;
  border-right: 10px solid white;
  border-bottom: 10px solid transparent;
}

.contact__message-tel {
  font-size: 40px;
  color: var(--brand-color);
}



/* facility */

.contact__facility {
  margin: 0 auto;
  padding: 64px 0;
  max-width: 700px;
}

.contact__facility__container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.contact__facility__h2-pc {
  text-align: left;
  padding-bottom: 28px;
}

.contact__facility__h2-pc img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.contact__facility__h2-sp {
  display: none;
}

.contact__facility-img {
  width: 100%;
  max-width: 460px;
}

.contact__facility-img img {
  width: 100%;
  height: auto;
}

.contact__facility-address {
  font-size: 16px;
  width: 200px;
  align-self: flex-end;
}


.contact__facility-logo {
  padding-bottom: 8px;
}

.contact__facility-logo img {
width: 100%;
height: auto;
}

.contact__facility-name {
  font-weight: bold;
  color: #666;
}



/* access */
.contact__access {
  margin: 0 auto;
  width: calc(100% - 32px);
  max-width: 750px;
}

.contact__access__h2-pc {
  text-align: left;
  padding-bottom: 24px;
}

.contact__access__h2-pc img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.contact__access__h2-sp {
  display: none;
}

.access__vehicle1,
.access__vehicle2 {
  display: flex;
}

.access__vehicle-img {
  align-self: center;
  padding: 8px 32px 8px 0;
}

.access__vehicle__directions {
  align-self: center;
  font-size: 18px;
}

.access__vehicle1 p:last-child {
  border-bottom: solid 1px var(--brand-color);
}

.map {
  width: 100%;
  height: 450px;
  padding: 0;
  margin: 0;
}






/* small screen */

@media (max-width: 767px) {

  .contact__h2 {
    text-align: center;
  }

  .contact__message {
    font-size: 18px;
  }

  .contact__message-img {
    padding: 0 16px 0 0;
  }

  .contact__message-img img {
    width: 50px;
    height: auto;
  }

  .contact__message-directions {
    text-align: left;
    padding: 16px;
    border: solid 3px var(--brand-color);
  }

  .contact__message-directions::after {
    top: calc(50% - 12px);
    left: -12px;
    border-width: 12px;
  }

  .contact__message-tel {
    font-size: 26px;
  }



  /* facility */

  .contact__facility {
    margin: 0 auto;
    padding: 32px 0;
    width: calc(100% - 32px);
    max-width: 500px;
  }

  .contact__facility__container {
    display: block;
    width: 100%;
  }

  .contact__facility-img {
    width: 100%;
    max-width: 500px;
    height: auto;
  }

  .contact__facility-address {
    width: 100%;
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
  }

  .contact__facility-logo img {
    width: 90%;
    max-width: 200px;
    height: auto;
    }

  .contact__facility__h2-pc {
    display: none;
  }

  .contact__facility__h2-sp {
    display: block;
    text-align: left;
    padding-bottom: 28px;
  }

  .contact__facility__h2-sp img {
    width: 100%;
    max-width: 500px;
    height: auto;
  }



  /* access */

  .contact__access {
    width: calc(100% - 32px);
    margin: 0 auto;
    max-width: 500px;
  }

  .contact__access__h2-pc {
    display: none;
  }

  .contact__access__h2-sp {
    display: block;
    text-align: left;
    padding-bottom: 28px;
  }

  .contact__access__h2-sp img {
    width: 100%;
    max-width: 500px;
    height: auto;
  }

  .access__vehicle__directions {
    font-size: 16px;
  }

}