/* フォントを絶対適用（最初はこれでOK） */
html {
  font-size: 62.5%;
}

* {
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
}
@media (max-width: 768px) {
  .contact-hero {
    padding: 4rem 0;
  }

  .contact-input {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .contact-form-wrap {
    width: 100%;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-hero__title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  input,
  textarea {
    font-size: 1.6rem;
  }
}

body {
  margin: 0;
  color: #2d2d2d;
  background: #f0f0f0;
  line-height: 1.7;
  font-size: 1.6rem;
}

.container {
  width: min(100% - 32px, 1100px);
  margin: 0 auto;
}

.hidden {
  position: absolute;
  left: -9999px;
}

.contact-hero {
  padding: 12rem 0 4rem 0;
  text-align: center;
  background: #f0f0f0;
}

.contact-hero__label {
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: #3171c6;
  margin-bottom: 1.2rem;
}

.contact-hero__title {
  background-color: #3171c6;
  font-family: "BJ Cree", serif;
  font-weight: 700;
  width: fit-content;
  margin: 0 auto 1.6rem;
  font-size: 4rem;
  font-weight: 700;
  padding: 1rem 2rem;
  color: #f0f0f0;
}

.contact-hero__text {
  margin-top: 50px;
  font-size: 1.6rem;
  color: #2d2d2d;
  max-width: 80%;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .contact-hero__text {
    max-width: 60%px;
  }
}

.contact-input {
  padding: 6rem 0;
}

.contact-form-wrap {
  background-color: #fff;
  width: min(100%, 700px);
  margin: 0 auto;
  padding: 3.2rem;
  border-radius: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-form {
  display: grid;
  gap: 2rem;
}

.form-group {
  display: grid;
  gap: 0.8rem;
  color: #2d2d2d;
}

.form-group label {
  font-size: 1.4rem;
  font-weight: 500;
}

.form-group span {
  color: #c55;
  font-size: 1.2rem;
}

input,
textarea {
  width: 100%;
  padding: 1.4rem 1.6rem;
  border: 1px solid #8e8787;
  border-radius: 1.2rem;
  font-size: 1.6rem;
}

textarea {
  resize: vertical;
}

.contact-button {
  border: none;
  background: #2d2d2d;
  color: #f0f0f0;
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 50px;
  padding: 1.4rem 2rem;
  border-radius: 999px;
  cursor: pointer;
}
.contact-button:hover {
  opacity: 0.7;
}

.top_link {
  width: fit-content;
  margin: 0 auto;
  padding: 10rem;
}

.top_link_btn {
  color: #2d2d2d;
  text-decoration: none;
  font-size: 1.6rem;
  position: relative;
  padding-left: 2rem;
  transition: 0.3s;
}

.top_link_btn::before {
  content: "←";
  position: absolute;
  left: 0;
}

.top_link_btn:hover {
  opacity: 0.7;
}

.top_link_btn:hover::before {
  transform: translateX(-3px);
}
