/* ---------------------form----------------------- */
#form,
#confirm_main,
#thanks_main {
    width: 100%;
    height: auto;
    padding: 8vw 0;
    margin-bottom: -9.3vw;
    color: #2d2d2d;
    background: url(img/background_pc.webp);
    background-repeat: no-repeat;
    background-position: -3.3vw;
    background-size: 105% 110%;
}

.form_block {
    width: clamp(200px, 55%, 1000px);
    padding-bottom: 4vw;
    margin: 3vw auto 8vw;
    background-color: #fff;
}

img.title {
    width: 35%;
    height: auto;
    padding: 5vw 0 2vw;
    margin: 0 auto;
}

.f_text,
.thanks_main_box p
 {
    width: clamp(200px, 65%, 1000px);
    font-size: clamp(6px, 1.2vw, 18px);
    line-height: clamp(12px, 2.4vw, 38px);
    font-family: 'Noto Sans JP', sans-serif;
    text-align: center;
    margin: 0 auto;
}

.tel_box {
    width: 30%;
    margin: 1vw auto;
}

.form-box {
    width: clamp(200px, 75%, 1000px);
    margin: 4vw auto;
}

label {
  font-size: clamp(6px, 1.2vw, 18px);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  height: clamp(12px, 3vw, 40px);
  margin-top: 0vw;
  align-items: center;
}

span.required {
  position: relative;
  top: -.13vw;
  font-size: clamp(6px, .7vw, 11px);
  color: #fff;
  background-color: #ee9718;
  padding: .13vw .8vw .23vw;
  margin-left: 1vw;
  margin-bottom: 4vw;
  border-radius: 20vw;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #eaf1f7;
  background-color: #eaf1f7;
  color: #707070;
  border-radius: 6px;
  font-size: clamp(6px, 1.2vw, 18px);
}

.custom-radio {
  height: clamp(12px, 3vw, 32px);
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  font-size: clamp(6px, 1vw, 16px);
  user-select: none;
}

.custom-radio input[type="radio"] {
  opacity: 0;
  position: absolute;
}

label.radio-label {
    font-size: clamp(6px, 1.1vw, 16px);
    font-weight: 400;
}

.radio-mark {
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  position: relative;
  top: clamp(1px, .25vw, .3vw);
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

.custom-radio input[type="radio"]:checked + .radio-mark {
  border-color: #ee9718;
}

.custom-radio input[type="radio"]:checked + .radio-mark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background-color: #ee9718;
  border-radius: 50%;
}

.form-group {
    margin-top: 2vw;
}

.form-group label {
  display: block;
}

.check {
  position: relative;
  top: .2vw;
  margin-right: .3vw;
  width: clamp(12px, 1.2vw, 20px);
  height: clamp(12px, 1.2vw, 20px);
}

textarea {
  width: 100%;
  max-width: 800px;
  height: auto;
  padding: 1em;
  font-size: 16px;
  line-height: 1.6;
  border: none;
  border-radius: 6px;
  background-color: #eaf1f7; 
  resize: vertical;
  box-sizing: border-box;
}

.privacy_title {
    font-size: clamp(12px, 1.2vw, 20px);
    color: #3a3a3a;
    text-align: center;
    border: 3px solid #bce4e4;
    border-radius: 6px 6px 0 0;
    background-color: #bce4e4;
    padding: 1vw 0;
    margin-top: 3vw;
}

.privacy-scroll {
  max-height: 240px;
  overflow-y: auto;
  padding: 2vw;
  margin: 0 auto 2vw;
  border: 3px solid #bce4e4;
  border-radius: 0 0 6px 6px;
  background: #fff;
  font-size: clamp(6px, 1vw, 16px);
  line-height: clamp(12px, 1.8vw, 30px);
  color: #333;
}

.privacy-scroll h3 {
  font-size: clamp(12px, 1.1vw, 20px);
  font-weight: bold;
  text-align: justify;
  margin-bottom: 1em;
}

.privacy-scroll p {
  margin: 0 0 1em;
}

.privacy-scroll .policy-date {
  text-align: right;
  font-size: 0.8rem;
  color: #777;
}

input[type="checkbox"] {
  width: clamp(.5vw, 1.2vw, 1vw);
  height: clamp(.5vw, 1.2vw, 1vw);
  transform: scale(1.3); 
  accent-color: #ee9718;
  margin-top: .1vw;
}

.privacy-agree {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  font-size: clamp(6px, 1.2vw, 18px);
}

.text-submit,
.thanks_top {
  display: block;
  border: none;
  color: #fff;
  border-radius: 20vw;
  background-color: #054382;
  font-size: clamp(6px, 1.3vw, 20px);
  font-weight: bold;
  cursor: pointer;
  padding: 1.5vw 8vw;
  margin: 1.5vw auto 3vw;
  text-decoration: none;
  transition: 0.3s ease;
}

.text-submit:hover {
    opacity: .8;
}

/* ---------------------confirm---------------------- */
.confirm_block,
.thanks_main_box {
    width: clamp(200px, 55%, 1000px);
    padding-bottom: 4vw;
    margin: 3vw auto 8vw;
    background-color: #fff;
    letter-spacing: 1px;
    font-family: 'Noto Sans JP', sans-serif;
}

#confirm_main h2,
.thanks_main_box h1 {
    font-size: clamp(12px, 2.5vw, 40px);
    font-weight: 300;
    color: #054382;
    text-align: center;
    padding: 6vw 0 2vw;
    margin: 3vw auto 2vw;
}

.form-row {
    width: 80%;
    padding: 1.5vw;
    margin: 0 auto;
    border-top: 2px solid #bce4e4;
    font-size: clamp(12px, 1.2vw, 20px);
}
/* --------------------thanks---------------------- */
.thanks_main_box {
  padding: 1vw 4vw 2vw;
  background: url(img/thankyoupeople_pc.webp) #fff;
  background-repeat: no-repeat;
  background-position: 96% 92%;
  background-size: 12% 30%;
}

.thanks_main_box h1 {
  width: clamp(200px, 80%, 900px);
  font-size: clamp(12px, 2vw, 32px);
  color: #000;
  padding: 0 0 1vw;
  margin: 3vw auto 0vw;
}

.thanks_top a {
  font-size: clamp(6px, 1.2vw, 20px);
  text-decoration: none;
  color: #fff;
}

.thanks_top {
  width: 45%;
  padding: 1vw 2vw;
  text-align: center;
}

.thanks_main_box p {
  width: clamp(200px, 80%, 1000px);
}


/* --------------------------------------------------------Mobile------------------------------------------------------- */
@media (max-width: 500px) {

#form,
#confirm_main {
  padding-bottom: 30vw;
  margin-top: -6vw;
  margin-bottom: -26vw;
  background-position: -3.3vw -16vw;
  background-size: 105% 110%;
}


.form_block {
    width: 90%;
    padding-bottom: 8vw;
    margin: 16vw auto;
}

img.title {
    width: 50%;
    padding: 12vw 0 8vw;
}

.f_text {
    width: 80%;
    font-size: 3.2vw;
    line-height: 6vw;
}

.tel_box {
    width: 50%;
    margin: 2vw auto;
}

.form-box {
    width: 90%;
    margin: 8vw auto;
}

label {
  height: 8vw;
}

span.required {
    font-size: 2.5vw;
    padding: .1vw 2vw;
    margin-left: 2vw;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  font-size: 3vw;
}

.custom-radio {
  height: clamp(12px, 3vw, 32px);
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  font-size: clamp(6px, 1vw, 16px);
  user-select: none;
}

.custom-radio input[type="radio"] {
  opacity: 0;
  position: absolute;
}

.form-group {
    margin-top: 5vw;
}

.form-group label {
  display: block;
  font-size: 4vw;
}

textarea {
  height: 150px;
}

.privacy_title {
    font-size: 3.4vw;
    padding: 2vw 0;
    margin-top: 6vw;
}

.privacy-scroll {
  max-height: 200px;
  overflow-y: auto;
  padding: 2vw;
  margin: 0 auto 4vw;
  font-size: 3.2vw;
  line-height: 6.2vw;
}

.privacy-scroll h3 {
  font-size: 3.2vw;
}


.privacy-scroll p {
  margin: 0 0 1em;
}

.privacy-agree {
  font-size: 3.2vw;
}

.text-submit {
  width: 80%;
  border-radius: 30vw;
  font-size: 3.6vw;
  padding: 4.5vw 8vw;
  margin: 12vw auto 4vw;
}

/* ---------------------confirm---------------------- */
.confirm_block,
.thanks_main_box {
    width: 90%;
    padding-bottom: 8vw;
    margin: 16vw auto;

}

#confirm_main h2 {
    font-size: 5vw;
    padding: 12vw 0 8vw;
    margin: 6vw auto 4vw;
}

.form-row {
    width: 80%;
    padding: 3vw;
    margin: 0 auto;
    border-top: 2px solid #bce4e4;
    font-size: 3.4vw;
}
/* --------------------thanks---------------------- */
.thanks_main_box {
    width: 90%;
    padding: 12vw 4vw 50vw;
    margin-top: 5vw;
    margin-bottom: 20vw;
    background: url(img/thankyoupeople_pc.webp) #fff;
    background-repeat: no-repeat;
    background-position: 50% 94%;
    background-size: 22% 20%;
}

.thanks_main_box h1 {
  font-size: 4.3vw;
  font-weight: 600;
  padding-bottom: 12vw;
  margin: 3vw auto 0vw;
}

.thanks_top a {
  font-size: clamp(12px, 1.2vw, 40px);
  text-decoration: none;
  color: #fff;
}

.thanks_top {
  width: 70%;
  padding: 4vw 2vw;
  text-align: center;
}

.thanks_main_box p {
  width: 90%;
  font-size: 3vw;
  line-height: 6vw;
}

#thanks_main .tel_box {
  width: 65%;
  margin: 8vw auto;
}

#thanks_main footer {
  margin-top: 10vw;
}

}
