*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Kosugi Maru", sans-serif;
  background-color: #FCF8F2;
  margin: 0;
  color: #3a3a3a;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
}

.title{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.title .character{
  width: auto;
  height: clamp(50px, 37.86px + 3.236vw, 100px);
  object-fit: contain;
}

.title .line{
  width: clamp(160px, 25vw, 320px);
  height: auto;
}

.title h1{
  color: #61662D;
  font-family: "Kosugi Maru", sans-serif;
  font-size: clamp(1.125rem, 4vw, 2.25rem); 
}

.title p{
  text-align: center;
  color: #3a3a3a;
  margin-top: 20px;
  font-size: clamp(14px, 13.2px + 0.213vw, 16px);
  line-height: 1.6;
}

.faq_box {
  max-width: 1000px;
  margin: 0 auto 40px auto;
  border: 3px solid #61662D;
  border-radius: 5px;
  overflow: hidden;
  font-family: "Kosugi Maru", sans-serif;
}

.faq_q {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background-color: #61662D;
  color: #ffffff;
  padding-top: 15px;
  padding-bottom: 15px;
}

.faq_a {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  background-color: #ffffff;
  color: #61662D;
  font-size: clamp(14px, 0.43rem + 2.23vw, 24px);
  margin: 0,auto;
  justify-content: center;
  align-items: center;
}

.icon_a img{
  width: 32px;
}

.faq_text {
  font-size: clamp(0.875rem, 0.825rem + 0.213vw, 1rem);
  text-align: center;
}

.faq_text p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.faq_text_number {
  font-size: clamp(1.5rem, 1.379rem + 0.5178vw, 2rem);
  text-decoration: none;
  color: #61662D;
}

.form {
  max-width: 600px;
  margin: 40px auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 15px;
}

.form h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #61662D;
  font-size: clamp(1.125rem, 0.913rem + 0.9061vw, 2rem);
}

.form p{
  font-size: clamp(0.875rem, 0.825rem + 0.213vw, 1rem);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 30px;
}

label {
  display: flex;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: clamp(1rem, 0.9697rem + 0.1294vw, 1.125rem);
  color: #61662D;
  align-items: center;
}

label.purpose {
  margin-bottom: 30px;
}

.inquiry {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; 
}

.inquiry label {
  cursor: pointer;
  gap: 5px;
}

input[type="radio"] {
  width: 20px;
  height: 20px;
}

input[type="text"],
input[type="email"],
textarea {
  font-family: sans-serif;
  width: 100%;
  padding: 20px 30px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  font-size: clamp(1rem, 0.9697rem + 0.1294vw, 1.125rem);
  color: #3a3a3a;
  background-color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #FFCA05;
  box-shadow: 0 0 0 3px rgb(255,202,5,0.15);
}

::placeholder {
  color: #a0aec0;
}

textarea {
  height: 160px;
  resize: vertical;
}

button[type="submit"] {
  display: block;
  width: 100%;
  background-color: #FF7A81;
  color: #ffffff;
  padding: 15px 20px;
  border: none;
  border-radius: 5px;
  font-size: clamp(1rem, 0.9697rem + 0.1294vw, 1.125rem);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  height: 50px;
}

button[type="submit"]:hover {
  background-color: #f7656d;
}

button[type="submit"]:active {
  transform: scale(0.98);
}

.form .policy {
  font-family: "Kosugi Maru", sans-serif;
  color: #61662D;
  margin-top: 30px;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 0;
  font-size: clamp(0.875rem, 0.825rem + 0.213vw, 1rem);
}


@media screen and (max-width: 768px) {
  .inquiry {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .sp_text{
    display: block;
  }

  .title p {
    line-height: 1.4;
  }

  .faq_text p {
    line-height: 1.4;
  }

  .form {
    padding: 20px;
  }

  .form p {
    line-height: 1.4;
  }
  
  .form-container {
    padding: 20px;
  }
  .form .policy {
    line-height: 1.4;
  }
}

@media screen and (max-width: 375px) {
  .form p {
    margin-bottom: 20px;
  }

  label {
    margin-bottom: 5px;
  }

  input[type="text"], input[type="email"], textarea {
    padding: 10px 15px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  label.purpose {
    margin-bottom: 15px;
  }

  input[type="radio"] {
    width: 16px;
    height: 16px;
  }

  .form .policy {
    margin-bottom: 0;
  }

  .faq_a {
    gap: 10px;
  }

  .faq_box {
    margin: 0 auto 20px auto;
  }

  .form .policy {
    margin-top: 20px;
  }
} 