* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #eef1f7;
  color: #1f1f1f;
  font: 15px/1.6 "Noto Sans JP", Roboto, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Meiryo", sans-serif;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

.wrap {
  max-width: 800px;
  margin: 24px auto;
  padding: 24px;
}

header {
  margin-bottom: 16px;
}
.brand-logo {
  width: 133px;
  margin: 0 auto;
  margin-bottom: 10px;
}
.brand-logo img {
  width: 100%;
  height: auto;
}
.brand {
  font-weight: 700;
  font-size: 17px;
  color: #183470;
  text-align: center;
}

.hero {
  padding: 15px 0 40px;
}

.hero .lead {
  margin-bottom: 20px;
}

.hero .lead p {
  margin: 0;
  margin-bottom: 10px;
  color: #1f1f1f;
  text-align: center;
}

h1 {
  font-size: 30px;
  margin: 0 0 30px;
  text-align: center;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 16px;
}

.section {
  background: #fff;
  padding: 25px 25px 15px;
}

.section .head {
  margin-bottom: 10px;
}

.section .head p {
  margin-top: 10px;
}

.section h2 {
  font-size: 25px;
  text-align: center;
  color: #264890;
  margin: 25px 0 30px;
}

.section h3 {
  font-size: 20px;
  margin: 0;
  color: #2c8feb;
}

.form-row {
  display: grid;
  grid-template-columns: 215px 1fr;
  align-items: start;
  margin-bottom: 1px;
}

.form-heading {
  background: #264890;
  color: #fff;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  padding: 10px 10px 10px 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.form-fields {
  background: #eef1f7;
  padding: 15px 15px;
  height: 100%;
}

.field {
  margin: 0;
}

.row {
  display: grid;
  gap: 12px;
}

@media (min-width: 800px) {
  .row-2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .row-2 .field {
    width: 48.5%;
  }
}

label {
  display: block;
  font-weight: 500;
  margin: 0 0 3px;
}

.req {
  display: inline-block;
  font-size: 13px;
  color: #fff;
  background: #2c8feb;
  padding: 2px 5px 1px;
  border-radius: 1px;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  right: 15px;
  height: 22px;
}

.opt {
  display: inline-block;
  font-size: 13px;
  color: #fff;
  background: #1f1f1f;
  padding: 2px 5px 1px;
  border-radius: 1px;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  right: 15px;
  height: 22px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
.select,
textarea {
  width: 100%;
  padding: 8px 15px;
  border: 1px solid #c1cad4;
  border-radius: 5px;
  background: #fff;
  outline: none;
  transition: 0.15s;
}

input[type="email"] {
  width: 100%;
}

input:focus,
.select:focus,
textarea:focus {
  border-color: #2c8feb;
}

.radio-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  cursor: pointer;
  transition: 0.2s;
}

.radio-chip:has(input:checked) {
  border-color: #2c8feb;
}

.radio-chip input {
  accent-color: #2c8feb;
}

.consent-row {
  display: flex;
  gap: 7px;
  align-items: start;
  padding: 5px;
}

.consent-row input {
  position: relative;
  top: 4px;
  accent-color: #2c8feb;
}

.consent-row label {
  margin: 0;
}

.section-button {
  padding-top: 20px;
  padding-bottom: 50px;
}

.button-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

button {
  appearance: none;
  border: 0;
  border-radius: 3px;
  padding: 8px 25px;
  font-weight: normal;
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s;
}

button:hover {
  opacity: 0.7;
}

button.confirm {
  max-width: 370px;
  width: 100%;
}

button.submit {
  max-width: 370px;
  width: 65%;
}

button.back {
  max-width: 162px;
  width: 30%;
}

.btn-primary {
  background: #2c8feb;
  color: #fff;
}

.btn-secondary {
  background: #a7b4c1;
  color: #1f1f1f;
}

.error {
  color: #f04545;
  font-size: 13px;
  margin-top: 4px;
  width: 100%;
  /*display: none;*/
}

.show {
  display: block;
}

footer {
  margin: 35px 0 60px;
}

footer p.copyright {
  color: #a7b4c1;
  text-align: center;
  font-size: 13px;
}

/*お問い合わせ先 電話番号*/
.phone-card {
  width: 100%;
  max-width: 438px;
  margin: 0 auto;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  text-align: center;
}

.phone-card__top {
  background: #264890;
  color: #fff;
  padding: 5px 10px 2px;
  font-size: 13px;
  font-weight: 600;
}

.phone-card__body {
  padding: 15px 20px;
}

.phone-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 8px;
}

.phone-number {
  font-size: 30px;
  font-weight: 700;
  color: #183470;
  line-height: 1.3;
}

.phone-sub {
  font-size: 13px;
  color: #1f1f1f;
}

/* Material Icon */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 34px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  color: #183470;
  margin-right: -10px;
  position: relative;
  top: 3px;
}

/*個人情報保護について*/
.section-privacy ul.link_ul {
  margin: 0;
  margin-bottom: 15px;
}

.section-privacy ul.link_ul li a {
  color: #2c8feb;
  font-family: Noto Sans JP;
  font-weight: 500;
  font-style: Medium;
  font-size: 15px;
  leading-trim: NONE;
  line-height: 22px;
  letter-spacing: 0.38px;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-offset: 0%;
  text-decoration-thickness: 0%;
}

.section-privacy ul.link_ul li a:hover {
  opacity: 0.7;
}

.section-privacy .terms {
  background: #dceeff;
  padding: 20px 10px;
  margin-top: 20px;
}

.section-privacy .terms h4 {
  color: #2c8feb;
  font-size: 16px;
  margin: 0 1em;
}

.section-privacy .terms ul {
  margin-right: 1em;
  margin-bottom: 0;
}

.section-privacy .terms ul li {
  color: #5d666f;
  margin-top: 5px;
  font-size: 13px;
}

@media (max-width: 800px) {
  .wrap {
    margin: 20px auto;
    padding: 15px;
  }
  header {
    margin-bottom: 10px;
  }
  .brand-logo {
    width: 110px;
  }
  .brand {
    font-size: 14px;
    margin-bottom: 0;
  }
  .hero {
    padding: 15px 0 30px;
  }
  h1 {
    font-size: 26px;
    line-height: 1.4;
    margin: 0 0 20px;
  }

  .section {
    padding: 25px 20px 15px;
  }

  .section-button {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .section h2 {
    font-size: 21px;
    margin: 10px 0 20px;
  }

  .section h3 {
    font-size: 18px;
  }

  .form-row {
    display: block;
  }

  .form-heading {
    font-size: 14px;
    padding: 10px 15px;
    height: auto;
  }

  .form-heading br {
    display: none;
  }

  .req,
  .opt {
    font-size: 12px;
    right: 10px;
    height: 20px;
  }

  .phone-number {
    font-size: 30px;
  }

  .phone-sub {
    font-size: 12px;
  }
  footer {
    margin: 35px 0 40px;
  }
}

/*完了画面*/
.thanks .section h3 {
  text-align: center;
  margin-bottom: 30px;
}
.thanks .section .head {
  margin-bottom: 0;
}
.thanks .section .head p {
  text-align: center;
}

.loader {
  width: 50px;
  --b: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 1px;
  background: conic-gradient(#0000 10%, #2c8feb) content-box;
  -webkit-mask: repeating-conic-gradient(
      #0000 0deg,
      #000 1deg 20deg,
      #0000 21deg 36deg
    ),
    radial-gradient(
      farthest-side,
      #0000 calc(100% - var(--b) - 1px),
      #000 calc(100% - var(--b))
    );
  -webkit-mask-composite: destination-in;
  mask-composite: intersect;
  animation: l4 1s infinite steps(10);
}

@keyframes l4 {
  to {
    transform: rotate(1turn);
  }
}
