@charset "UTF-8";

html {
  color: #595757;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 10px;
}

body {
  display: grid;
  grid-template-rows: 115px auto 100px;
  min-height: 100vh;
}

a {
  text-decoration: none;
}

/*----------------------------------------------------
汎用
----------------------------------------------------*/
.pc {
  display: none;
}

/*----------------------------------------------------
ヘッダー
----------------------------------------------------*/
header {
  background-color: #0768B1;
  color: #fff;
}
header h1 {
  font-size: 3rem;
  margin: 40px 0;
  text-align: center;
}

/*----------------------------------------------------
フッター
----------------------------------------------------*/
footer {
  background-color: #0768B1;
  color: #fff;
  font-size: 1.5rem;
  padding: 20px;
  text-align: center;
}
.footer-text {
  font-size: 2rem;
  font-weight: bold;
  margin: 0 0 15px;
}

/*----------------------------------------------------
コンテンツ
----------------------------------------------------*/
.main-text {
  font-size: 1.7rem;
  line-height: 1.7em;
  margin: 30px 16px;
  text-align: center;
}

.link-box {
  font-size: 2rem;
  margin: 0 16px 30px;
  text-align: center;
}
.link-box a {
  border: 1px solid #595757;
  color: #595757;
  display: block;
  padding: 20px;
  position: relative;
  transition: .3s;
}
.link-box a:hover {
  background-color: #595757;
  color: #fff;
}
.link-box a::after {
  border-right: 2px solid #595757;
  border-top: 2px solid #595757;
  bottom: 0;
  content: "";
  display: block;
  height: 10px;
  margin: auto 0;
  position: absolute;
  right: 20px;
  top: 0;
  transform: rotate(45deg);
  width: 10px;
}
.link-box a:hover::after {
  border-color: #fff;
}
.link-box p {
  font-size: 1.7rem;
  margin: 10px 0 0;
}

.contact-title {
  border-bottom: 4px solid #0768B1;
  font-size: 3rem;
  margin: 40px 16px 30px;
  padding-bottom: 3px;
  text-align: center;
}
.contact .link-box a {
  padding-right: 60px;
}
.contact .link-box a i {
  line-height: 1.15;
  position: absolute;
  right: 50px;
}
.contact-time {
  font-size: 2rem;
  margin-top: -20px;
  text-align: center;
}



/*----------------------------------------------------
PCレイアウト
----------------------------------------------------*/
@media screen and (min-width:768px) {
  body {
    grid-template-rows: 210px auto 100px;
  }

  /*----------------------------------------------------
  汎用
  ----------------------------------------------------*/
  .pc {
    display: block;
  }

  /*----------------------------------------------------
  ヘッダー
  ----------------------------------------------------*/
  header h1 {
    font-size: 6rem;
    margin: 70px;
  }

  /*----------------------------------------------------
  フッター
  ----------------------------------------------------*/
  .footer-text {
    font-size: 2.5rem;
  }

  /*----------------------------------------------------
  コンテンツ
  ----------------------------------------------------*/
  .link-box {
    margin: 0 auto 50px;
    width: 350px;
  }
  .contact-title {
    margin: 40px auto 30px;
    width: 350px;
  }
  .contact .link-box {
    margin-bottom: 30px;
  }
}