/* ==============================
  Contact KV
============================== */

.contact-kv {
  background-image: url(../img/contact_kv.jpg);
  margin-bottom: 0;
}

/* ==============================
  Trial Flow
============================== */

.price-flow-section {
  background: #f7f8f9;
}

.price-flow-list {
  margin-top: 46px;
}

.price-flow-list.flow-list {
  position: relative;
  display: grid;
  gap: 28px;
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.price-flow-list.flow-list::before {
  content: "";
  position: absolute;
  top: 56px;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: var(--color-main);
}

.flow-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 26px;
  align-items: center;
  margin-left: 64px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .025);
  text-align: left;
}

.flow-card:nth-of-type(2) > img {
  object-position: top;
}

.flow-card > img {
  display: block;
  width: 170px;
  height: 120px;
  object-fit: cover;
  background: #dfe4e8;
}

.flow-no {
  position: absolute;
  top: 0;
  left: -64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-main);
  color: #fff;
  line-height: 1;
}

.flow-no span {
  display: block;
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
}

.flow-no b {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}

.flow-body h3 {
  margin: 0 0 8px;
  color: var(--color-main);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}

.flow-body > p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.9;
}

/* STEP5 */
.flow-card--training {
  grid-template-columns: 1fr;
}

.flow-card--training .flow-body {
  width: 100%;
}

.flow-training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.flow-training-item {
  padding: 14px;
  background: #f7f8f9;
  border: 1px solid var(--color-border);
}

.flow-training-item h4 {
  margin: 0 0 10px;
  color: var(--color-main);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.flow-training-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 10px;
  object-fit: cover;
  background: #dfe4e8;
}

.flow-training-item p {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.8;
  text-align: left;
}

/* ==============================
  LINE Contact
============================== */

.option {
  padding: 72px 20px;
  background: #fff;
}

.option .lower-inner {
  max-width: 900px;
  margin: 0 auto;
}

.option .sec-ttl {
  margin: 0 0 8px;
  color: var(--color-main, #536778);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  letter-spacing: .04em;
}

.option .sub-ttl {
  display: block;
  margin-top: 8px;
  color: var(--color-muted, #6a737b);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
}

.option-course {
  max-width: 720px;
  margin: 0 auto;
}

.option-course span,
.option-course a,
.option-course img {
  display: block;
}

.option-course a {
  transition: opacity .25s ease, transform .25s ease;
}

.option-course a:hover {
  opacity: .86;
  transform: translateY(-2px);
}

.option-course img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .08);
}

/* ==============================
  CTA / Form Wrapper
============================== */

.form__wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 20px 90px;
}

.price-page-btn-wrap {
  margin-top: 46px;
  text-align: center;
}

.price-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  min-height: 56px;
  padding: 15px 34px;
  background: var(--color-main, #536778);
  border: 1px solid var(--color-main, #536778);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .04em;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(83, 103, 120, .22);
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}

.price-page-btn:hover {
  color: #fff;
  opacity: .9;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(83, 103, 120, .28);
}

#contact_form {
  scroll-margin-top: 90px;
}

/* ==============================
  Contact Form 7
============================== */

#lower-contact.lower-contact {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0px 68px;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 36%);
  border: 1px solid rgb(0 0 0 / 14%);
}

#lower-contact .sec-ttl {
  margin: 0 0 34px;
  color: var(--color-main, #536778);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  letter-spacing: .04em;
}

#lower-contact .sub-ttl {
  display: block;
  margin-top: 8px;
  color: var(--color-muted, #6a737b);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
}

#lower-contact .lower-inner {
 /* max-width: 780px;*/
  margin: 0 auto;
}

#lower-contact p {
  margin: 0;
}

#lower-contact .lead {
  margin: 0 0 34px;
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
}

#lower-contact .contact-form {
  overflow: hidden;
  border: 1px solid rgba(83, 103, 120, .16);
}

/* row */
#lower-contact .input-box {
  display: grid;
  grid-template-columns: 190px 1fr;
  border-bottom: 1px solid rgba(83, 103, 120, .16);
}

#lower-contact .input-box:last-child {
  border-bottom: none;
}

#lower-contact .label-area {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 10px;
  align-items: start;
  min-height: 72px;
  padding: 20px 18px;
  background: #eef2f4;
  color: #26323c;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .03em;
  box-sizing: border-box;
}

/* required badge */
#lower-contact .required-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  margin-top: 1px;
  min-width: 42px;
  padding: 4px 8px;
  background: var(--color-main, #536778);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .05em;
}

/* input side */
#lower-contact .input-area {
  width: 100%;
  padding: 18px 22px;
  background: #fff;
  box-sizing: border-box;
}

#lower-contact .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

#lower-contact .input-area .txt {
  margin: 0 0 10px;
  color: var(--color-muted, #6a737b);
  font-size: 12px;
  line-height: 1.8;
}

/* input / textarea */
#lower-contact input[type="text"],
#lower-contact input[type="tel"],
#lower-contact input[type="email"],
#lower-contact textarea {
  width: 100%;
  max-width: 100%;
  padding: 13px 15px;
  background: #f7f8f9;
  border: 1px solid rgba(83, 103, 120, .2);
  border-radius: 0;
  color: #26323c;
  font-size: 15px;
  line-height: 1.6;
  box-sizing: border-box;
  appearance: none;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

#lower-contact textarea {
  min-height: 180px;
  resize: vertical;
}

#lower-contact input[type="text"]:focus,
#lower-contact input[type="tel"]:focus,
#lower-contact input[type="email"]:focus,
#lower-contact textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-main, #536778);
  box-shadow: 0 0 0 3px rgba(83, 103, 120, .1);
}

/* checkbox */
#lower-contact .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

#lower-contact .wpcf7-list-item {
  margin: 0;
}

#lower-contact .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  background: #f7f8f9;
  border: 1px solid rgba(83, 103, 120, .2);
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease;
}

#lower-contact .wpcf7-list-item label:hover {
  background: #fff;
  border-color: var(--color-main, #536778);
}

#lower-contact input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--color-main, #536778);
}

#lower-contact .wpcf7-list-item-label {
  color: #26323c;
  font-size: 14px;
  line-height: 1.5;
}

/* submit */
#lower-contact .action-box {
  margin-top: 38px;
  text-align: center;
}

#lower-contact .form__submit-button,
#lower-contact input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  min-height: 56px;
  padding: 15px 38px;
  background: var(--color-main, #536778);
  border: 1px solid var(--color-main, #536778);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .12em;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(83, 103, 120, .22);
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}

#lower-contact .form__submit-button:hover,
#lower-contact input[type="submit"]:hover {
  opacity: .9;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(83, 103, 120, .28);
}

/* message */
#lower-contact .wpcf7-not-valid-tip {
  margin-top: 8px;
  color: #b94a48;
  font-size: 12px;
  line-height: 1.6;
}

#lower-contact .wpcf7-response-output {
  margin: 28px 0 0;
  padding: 14px 18px;
  border: 1px solid rgba(83, 103, 120, .22);
  color: #26323c;
  font-size: 13px;
  line-height: 1.8;
}

#lower-contact .wpcf7-spinner {
  vertical-align: middle;
}
/* ==============================
  Responsive
============================== */

@media screen and (max-width: 768px) {
  .flow-card {
    grid-template-columns: 1fr;
    margin-left: 42px;
  }

  .flow-no {
    top: 0;
    left: -52px;
    width: 45px;
    height: 45px;
  }

  .flow-card > img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .flow-training-grid {
    grid-template-columns: 1fr;
  }

  .flow-training-item {
    max-width: 450px;
    margin: auto;
  }

  .option {
    padding: 56px 20px;
  }

  .option .sec-ttl {
    margin-bottom: 26px;
    font-size: 25px;
  }

  .price-page-btn {
    width: 100%;
    min-width: 0;
  }

  #lower-contact.lower-contact {
    padding: 56px 28px 54px;
  }

  #lower-contact .sec-ttl {
    margin-bottom: 28px;
    font-size: 26px;
  }

  #lower-contact .lead {
    margin-bottom: 28px;
    font-size: 13px;
    text-align: left;
  }

  #lower-contact .input-box {
    grid-template-columns: 1fr;
  }

  #lower-contact .label-area {
    min-height: auto;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(83, 103, 120, .12);
  }

  #lower-contact .input-area {
    padding: 25px 16px;
  }

  #lower-contact .wpcf7-checkbox {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #lower-contact .wpcf7-list-item label {
    width: 100%;
  }

  #lower-contact .form__submit-button,
  #lower-contact input[type="submit"] {
    width: 100%;
    min-width: 0;
  }
}

@media screen and (max-width: 560px) {
  .flow-card {
    padding: 20px 18px;
  }

  .flow-body h3 {
    font-size: 17px;
  }

  .flow-body > p {
    font-size: 12px;
  }

  .form__wrap {
    padding: 18px 18px 74px;
  }

  .option {
    padding: 48px 18px;
  }

  .option .sec-ttl,
  #lower-contact .sec-ttl {
    font-size: 23px;
  }

  .price-page-btn {
    min-height: 54px;
    padding: 14px 20px;
    font-size: 13px;
  }

  #lower-contact.lower-contact {
    padding: 46px 18px 48px;
    border-right: none;
    border-left: none;
    box-shadow: none;
  }

   #lower-contact.lower-contact {
    padding: 46px 0px 48px;
    border-right: none;
    border-left: none;
    box-shadow: none;
  }

  #lower-contact .sec-ttl {
    font-size: 23px;
  }

  #lower-contact .lead {
    padding: 15px 16px;
  }

  #lower-contact .label-area {
    padding: 13px 14px;
    font-size: 13px;
  }

  #lower-contact .required-badge {
    min-width: 40px;
    padding: 4px 7px;
    font-size: 10px;
  }

  #lower-contact .input-area {
    padding: 20px 14px;
  }

  #lower-contact input[type="text"],
  #lower-contact input[type="tel"],
  #lower-contact input[type="email"],
  #lower-contact textarea {
    padding: 12px 13px;
    font-size: 14px;
  }

  #lower-contact textarea {
    min-height: 160px;
  }
}