/* max-width 960px
   height auto

   【スマホ切り替え】
   ヘッダー、ナビ、フッター　768px
   メイン　600px

	z-index
   1  body .site

*/

/*****************************************************************************
****************** 共通 ******************************************************
*****************************************************************************/
.top-img {
  background-image: url(../img/top/img-top-back02.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}
.top-img .wrap {
  max-width: 1300px;
  width: auto;
  margin: 0 auto;
  background-image: url(../img/top/img-top-back01.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  padding: 3rem 0;
}
.top-img .frame {
  max-width: 650px;
  width: auto;
  margin: 0 auto;
}
.top-img .frame h2 {
  max-width: 400px;
  width: auto;
  margin: 0 auto;
  padding-top: 2rem;
}
.top-img .frame h2 img {
  height: 100%;
}
.top-img .frame .schedule {
  max-width: 540px;
  width: auto;
  margin: 0 auto;
  margin-top: 4rem;
  text-align: center;
}
.top-img .frame .schedule p.title {
  display: inline-block;
  color: #fff;
  background-color: #0086a8;
  font-size: 18px;
  font-weight: bold;
  padding: 0 0.5rem;
  padding-top: 0.4rem;
}
.top-img .frame .schedule .box {
  background-color: #fff;
  border: 8px solid #0086a8;
  padding: 1rem;
}
.top-img .frame .schedule .box table {
  display: inline-block;
  color: #0086a8;
  font-size: 18px;
  font-weight: bold;
  border-collapse: separate;
  border-spacing: 3px 6px;
}
.top-img .frame .schedule .box table th {
  vertical-align: middle;
  color: #fff;
  background-color: #0086a8;
  padding: 0 0.3rem;
  border-radius: 5px;
}
.top-img .frame .schedule .box table td {
  vertical-align: middle;
  text-align: justify;
}
.top-img .frame .schedule p.red {
  color: #e50017;
  text-align: center;
  font-weight: bold;
}
.top-img .frame .schedule p.atten {
  text-align: center;
  font-weight: bold;
  margin-top: 0.5rem;
}
.top-img .frame .schedule.post-office p.title {
  background-color: #e50017;
}
.top-img .frame .schedule.post-office .box {
  border-color: #e50017;
}
.top-img .frame .schedule.post-office .box p {
  text-align: center;
  font-weight: bold;
  color: #e50017;
}
.top-img .frame .schedule.post-office p span {
  text-decoration: underline;
  font-size: 17px;
}
.top-img .frame .link {
  margin-top: 4rem;
}
.top-img .frame .link .box:first-of-type {
  justify-content: center;
}
/*
.top-img .frame .link .box:last-of-type {
  margin-top: 2rem;
}
*/
.top-img .frame .link .box div {
  flex-basis: 45%;
}
.top-img .frame .link .box div a {
  position: relative;
  display: block;
  text-align: center;
  color: #e5006a;
  background-color: #fff;
  border: 2px solid #e5006a;
  border-radius: 20px;
  font-weight: bold;
  padding: 1rem 0;
}
.top-img .frame .link .box div a span {
  font-size: 20px;
}
.top-img .frame .link .box div a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  right: 1.5rem;
  border-top: 3px solid #e5006a;
  border-right: 3px solid #e5006a;
}
.top-img .frame .link .box div a:hover {
  color: #fff;
  background-color: #e5006a;
}
.top-img .frame .link .box div a:hover::after {
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
}
@media screen and (min-width: 811px) {
}
@media screen and (max-width: 810px) and (min-width: 768px) {
  .top-img .frame h2 {
    height: 90px;
  }
  .top-img .frame .schedule {
    max-width: 430px;
  }
  .top-img .frame .schedule .box table th {
    width: 120px;
  }
  .top-img .frame .schedule .box table td br.type-pc {
    display: block;
  }
}
@media screen and (min-width: 768px) {
  .top-img .frame .schedule p.red {
    font-size: 20px;
  }
  .top-img .frame .schedule.post-office .box p {
    font-size: 22px;
  }
}
@media screen and (max-width: 767px) {
  .top-img {
    background-image: url(../img/top/img-top-back02-sp.webp);
  }
  .top-img .wrap {
    background-image: url(../img/top/img-top-back01-sp.svg);
    background-position: center top;
    padding: 10rem 2rem 3rem 2rem;
  }
  .top-img .frame h2 {
    max-width: 300px;
  }
  .top-img .frame .schedule {
    margin-top: 16rem;
  }
  .top-img .frame .schedule .box {
    padding: 0.5rem;
  }
  .top-img .frame .schedule .box table th {
    width: 85px;
  }
  .top-img .frame .schedule .box table td {
    font-size: 16px;
  }
  .top-img .frame .schedule.post-office {
    margin-top: 4rem;
  }
  .top-img .frame .schedule.post-office p.title {
    text-align: center;
  }
  .top-img .frame .link .box {
    display: block;
  }
  .top-img .frame .link .box div a {
    margin-top: 2rem;
  }
}

/*************************************************** トップページ ***************************************************/
.news {
  color: #fff;
  background-color: #0086a8;
  padding: 1rem 0;
}
.news .box {
  justify-content: flex-start;
  font-weight: bold;
}
.news .box p {
  flex-basis: 100px;
  font-size: 25px;
}
.news .box ul {
  flex: 1;
  margin-left: 7rem;
  padding: 0.4rem 0;
}
.news .box ul li:not(:first-of-type) {
  margin-top: 0.3rem;
}
@media screen and (max-width: 767px) {
  .news .box {
    display: block;
  }
  .news .box p {
    text-align: center;
  }
  .news .box ul {
    margin-left: 0;
  }
}

.contents-link {
  background-image: url(../img/top/img-main-back.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
}
.contents-link .frame .box {
  flex-basis: 30%;
  text-align: center;
  font-weight: bold;
}
.contents-link .frame .box .title {
  background-image: url(../img/top/img-link-title.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
}
.contents-link .frame .box .title h3 {
  color: #0086a8;
  font-size: 25px;
}
.contents-link .frame .box .title p {
  color: #6e7480;
  font-size: 14px;
  text-align: center;
}
.contents-link .frame .box .img {
  margin: 2rem 0;
}
.contents-link .frame .box a {
  position: relative;
  display: block;
  text-align: center;
  color: #fff;
  background-color: #e5006a;
  border: 2px solid #e5006a;
  border-radius: 40px;
  font-weight: bold;
  padding: 0.5rem 0;
  margin-top: 1rem;
}
.contents-link .frame .box a:nth-child(even) {
  background-color: #0086a8;
  border: 2px solid #0086a8;
}
.contents-link .frame .box a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  right: 1.5rem;
}
.contents-link .frame .box a:hover {
  color: #e5006a;
  background-color: #fff;
}
.contents-link .frame .box a:hover::after {
  border-top: 3px solid #e5006a;
  border-right: 3px solid #e5006a;
}
.contents-link .frame .box a:nth-child(even):hover {
  color: #0086a8;
}
.contents-link .frame .box a:nth-child(even):hover::after {
  border-top: 3px solid #0086a8;
  border-right: 3px solid #0086a8;
}
@media screen and (max-width: 767px) {
  .contents-link {
    background-image: url(../img/top/img-main-back-sp.webp);
    background-repeat: repeat-y;
    background-size: 100%;
    background-position: center top;
    padding: 5rem 0;
  }
  .contents-link .frame {
    display: block;
    padding: 0 3rem;
  }
  .contents-link .frame .box:not(:first-of-type) {
    margin-top: 5rem;
  }
}

@media screen and (min-width: 811px) {
  .sub .top-img .frame .schedule {
    margin-top: 8rem;
    margin-bottom: 8rem;
  }
}
@media screen and (min-width: 768px) {
  .sub #header .main-header-logo {
    padding: 1.2rem 0;
  }
}
@media screen and (max-width: 767px) {
  .sub .top-img .frame .schedule.post-office {
    margin-top: 17rem;
    margin-bottom: 0;
  }
}
