@charset "utf-8";

html {
  font-size: 100%;
}
body {
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
img {
  width: 100%;
}

#header {
  height: 200px;
  display: flex;
}
.logo {
  max-width: 150px;
}
.contact-title {
  position: relative;
  width: 80%;
}
.contact-text {
  position: absolute;
  margin: 110px 40%;
  font-size: 24px;
  letter-spacing: 0.3em;
}
.title-back {
  position: absolute;
  margin: 80px 25%;
  font-size: 60px;
  letter-spacing: 0.8em;
  color: #8da0b6;
  opacity: 0.3;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px;
  background: rgba(141, 160, 182, 0.5);
}
.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.form-row label {
  width: 180px;
}
.form-row span {
  color: #c00;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #555;
  border-radius: 6px;
}
.form-row textarea {
  height: 120px;
  resize: none;
}
.form-check {
  margin: 32px 0;
  font-size: 14px;
}
.contact-btn {
  text-align: center;
}
.btn {
  position: relative;
  padding-top: 5px;
  padding-right: 40px;
  padding-bottom: 10px;
  padding-left: 20px;
  color: #000;
  display: inline-block;
  text-align: center;
  border: 1px solid #000;
  text-decoration: none;
  transition: all .3s;
  border-radius: 20px;
  &:after {
    content: "";
    position: absolute;
    top: 50%;
    bottom: 0;
    right: 1.5rem;
    font-size: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right .3s;
    width: 6px;
    height: 6px;
    border-top: solid 2px currentColor;
    border-right: solid 2px currentColor;
    transform: translateY(-50%) rotate(45deg);
  }

  &:hover {
    background: #8da0b6;
    color: #000;

    &:after {
      right: 0.7rem;
    }
  }
}

@media screen and (max-width: 767px) {
  #header {
    height: 160px;
  }
  .contact-title {
    width: 100%;
  }
  .contact-text {
    margin: 90px 0 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 18px;
    letter-spacing: 0.2em;
  }
  .title-back {
    margin: 60px 0 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 32px;
    letter-spacing: 0.4em;
  }
  .contact-form {
    max-width: 100%;
    margin: 0 16px;
    padding: 30px 20px;
  }
  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 20px;
  }
  .form-row label {
    width: auto;
  }
  .form-check {
    font-size: 13px;
  }
}