img {
  max-width: 100%;
}

.text-red {
  color: #C7000B;
}

.sp_only {
  display: none !important;
}

.sp_only.flex {
  display: none !important;
}

.pc_only {
  display: block !important;
}

.pc_only.flex {
  display: flex !important;
}

#main-containar {
  padding: 5px;
  text-align: center;
  font-size: 16px;
  line-height: 1.5em;
}
#main-containar h1 + p {
  margin: 30px auto;
}
#main-containar > div {
  margin: 30px auto;
}
#main-containar > div h2 {
  padding-bottom: 30px;
}
#main-containar > div a {
  color: #0f68c6;
}
#main-containar > div a + span {
  display: inline-block;
  width: 1.3em;
  text-align: center;
  text-indent: 0.3em;
}
#main-containar > ul {
  list-style-type: none;
  margin: 60px auto;
  display: flex;
  justify-content: space-between;
}
#main-containar > ul li {
  width: 24%;
}
#main-containar > ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  height: 2em;
  font-size: 1.5em;
}
#main-containar > ul li:nth-child(1) a {
  background-color: #c8000b;
}
#main-containar > ul li:nth-child(2) a {
  background-color: #e89103;
}
#main-containar > ul li:nth-child(3) a {
  background-color: #00873b;
}
#main-containar > ul li:nth-child(4) a {
  background-color: #005aa0;
}
#main-containar .contents a {
  display: block;
  color: #ffffff;
  outline: none;
  text-decoration: none;
  margin: 40px 0 80px 0;
}
#main-containar .contents a h3 {
  line-height: 2em;
  margin: 30px 0;
  font-weight: bold;
  font-size: 1.6em;
}
#main-containar .contents a:nth-child(1) h3 {
  background-color: #c8000b;
}
#main-containar .contents a:nth-child(2) h3 {
  background-color: #e89103;
}
#main-containar .contents a:nth-child(3) h3 {
  background-color: #00873b;
}
#main-containar .contents a:nth-child(4) h3 {
  background-color: #005aa0;
}

@media screen and (max-width: 896px) {
  .sp_only {
    display: block !important;
  }

  .sp_only.flex {
    display: flex !important;
  }

  .pc_only {
    display: none !important;
  }

  .pc_only.flex {
    display: none !important;
  }

  #main-containar h1 + p {
    font-size: 14px;
  }
  #main-containar > ul li a {
    font-size: 1em;
    height: 3em;
  }
  #main-containar .contents a h3 {
    line-height: 3em;
    font-size: 1em;
  }
}
