/* PC+SP */
.page-contact *,
.page-contact *::before,
.page-contact *::after {
  box-sizing: border-box;
}

/* PC */
@media screen and (max-width: 767px) {
  .pc-only {
    display: none;
  }
}
@media screen and (min-width: 768px) {
  .sp-only {
    display: none;
  }

  .page-contact {
    width: 630px;
    margin: 0 auto;
    padding-top: 30px;
    padding-bottom: 60px;
  }

  .page-contact h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    text-align: center;
  }

  .page-contact .faq a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: white;
    font-size: 20px;
    text-decoration: none;
    background-color: #0075b8;
    border-radius: 5px;
  }

  .page-contact .faq a:hover {
    background-color: #0085d2;
  }

  .page-contact .faq a::before {
    display: block;
    width: 51px;
    height: 48px;
    margin-right: 50px;
    background: url(../images/contact/icon-faq.png) no-repeat;
    background-size: 100% 100%;
    content: "";
  }

  .page-contact .form-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
  }

  .page-contact .form-container > * {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
  }

  .page-contact .form-container > *::before {
    width: 34px;
    height: 50px;
    margin-top: 15px;
    margin-bottom: 15px;
    background: url(../images/contact/arrow.png) no-repeat;
    background-size: 100% 100%;
    content: "";
  }

  .page-contact .form-container p {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
  }

  .page-contact .form-container a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 70px;
    padding-right: 30px;
    color: white;
    font-size: 16px;
    text-decoration: none;
    background-color: #666;
    border-radius: 5px;
  }

  .page-contact .form-container a:hover {
    background-color: #777;
  }

  .page-contact .form-container a::before {
    display: block;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    content: "";
  }

  .page-contact .form-container .freetrial a::before {
    width: 63px;
    height: 45px;
    margin-right: 40px;
    background-image: url(../images/contact/icon-freetrial.png);
  }

  .page-contact .form-container .contact a::before {
    width: 43px;
    height: 44px;
    margin-right: 25px;
    background-image: url(../images/contact/icon-contact.png);
  }

  .page-contact .mail {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-contact .mail p {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
  }

  .page-contact .mail a {
    display: flex;
    align-items: center;
    width: 400px;
    height: 90px;
    color: white;
    font-size: 30px;
    text-decoration: none;
    background-color: #0075b8;
    border-radius: 5px;
  }

  .page-contact .mail a:hover {
    background-color: #0085d2;
  }

  .page-contact .mail a::before {
    display: block;
    width: 35px;
    height: 28px;
    margin-right: 70px;
    margin-left: 45px;
    background: url(../images/contact/icon-mail.png) no-repeat;
    background-size: 100% 100%;
    content: "";
  }
}

/* SP */
@media screen and (max-width: 767px) {
  .page-contact {
    padding-top: 15px;
    padding-bottom: 30px;
  }

  .page-contact h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 13px;
    text-align: center;
  }

  .page-contact .faq a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding-left: 45px;
    color: white;
    font-size: 14px;
    text-decoration: none;
    background-color: #0075b8;
    border-radius: 3px;
  }

  .page-contact .faq a::before {
    position: absolute;
    top: calc((100% - 33px) / 2);
    left: 25px;
    display: block;
    width: 35px;
    height: 33px;
    background: url(../images/contact/icon-faq.png) no-repeat;
    background-size: 100% 100%;
    content: "";
  }

  .page-contact .form-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
  }

  .page-contact .form-container > * {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc((100% - 15px) / 2);
  }

  .page-contact .form-container > *::before {
    width: 17px;
    height: 25px;
    margin-top: 10px;
    margin-bottom: 8px;
    background: url(../images/contact/arrow.png) no-repeat;
    background-size: 100% 100%;
    content: "";
  }

  .page-contact .form-container p {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 10px;
  }

  .page-contact .form-container a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 85px;
    padding-bottom: 6px;
    color: white;
    font-size: 11px;
    text-decoration: none;
    background-color: #666;
    border-radius: 3px;
  }

  .page-contact .form-container a::before {
    display: block;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    content: "";
  }

  .page-contact .form-container .freetrial a::before {
    width: 55px;
    height: 44px;
    margin-bottom: 6px;
    background-image: url(../images/contact/icon-freetrial.png);
  }

  .page-contact .form-container .contact a::before {
    width: 36px;
    height: 37px;
    margin-bottom: 9px;
    background-image: url(../images/contact/icon-contact.png);
  }

  .page-contact .mail {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-contact .mail p {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 13px;
  }

  .page-contact .mail a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    padding-left: 45px;
    color: white;
    font-size: 21px;
    text-decoration: none;
    background-color: #0075b8;
    border-radius: 3px;
  }

  .page-contact .mail a::before {
    position: absolute;
    top: calc((100% - 19px) / 2);
    left: 33px;
    display: block;
    width: 23px;
    height: 19px;
    background: url(../images/contact/icon-mail.png) no-repeat;
    background-size: 100% 100%;
    content: "";
  }
}
