:root {
  --color-powder-blue: #dee9eb;
  --color-primary: #366db8;
  --color-secondary: #f6760e;
  --color-text: #333;
}

.sp-only {
  display: none;
}

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

.main-container {
  background-color: var(--color-powder-blue);
  margin-bottom: 0;
}

.content-row:has( .form-container) {
  margin-bottom: 0;
  padding-bottom: 38px;
}

.main-container + .nav-top {
  max-width: 100%;
  width: 100%;
  background-color: var(--color-powder-blue);
  padding-inline: 1.5rem;
}
.form__select--no-value {
  color: #c5c5c5;
}

.compact-spacing {
  margin-top: -20px !important;
  margin-bottom: -20px !important;
}

@media screen and (max-width: 768px) {
  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }
}

/* Title */
.title-container {
  background-color: var(--color-primary);
  text-align: center;
  padding: 1.5rem 1rem;
}

.title-container h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: #fff;
  font-size: 2.8rem;
  font-weight: 400;
}

.title-container h1 span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 3.4rem;
  line-height: 3.4rem;
  padding-inline: 1.5rem;
  background-color: var(--color-secondary);
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 0.04rem;
  border-radius: 6rem;
}

@media screen and (max-width: 768px) {
  .title-container h1 {
    flex-direction: column;
    font-size: 2rem;
    gap: 1rem;
  }

  .title-container h1 span {
    font-size: 1.3rem;
    line-height: 1.3rem;
    height: 2rem;
  }
}

/* Card */
.card-container {
  margin-bottom: 3.3rem;
}

.card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 0.8rem;
  overflow: hidden;
}

.card:not(:last-of-type) {
  margin-bottom: 1rem;
}

.card--complete {
  padding: 0;
}

.card__content {
  color: var(--color-text);
  font-size: 1.6rem;
  font-weight: 400;
}

.card--complete .card__content {
  padding-block: 4.2rem;
  max-width: 58rem;
  margin-inline: auto;
  text-align: center;
}

.card__title {
  color: #1454Ab;
  font-size: 2.4rem;
  line-height: 2.4rem;
  font-weight: bold;
  margin-bottom: 3rem;
  text-align: center;
}

.card__text {
  font-size: 1.6rem;
}

.card__text span {
  font-size: 1.4rem;
}

.card--complete .link {
  padding-left: 1.6rem;
  width: auto;
}

.card--complete .link:not(:last-of-type) {
  margin-bottom: 0.8rem;
}

.card__footer {
  background-color: #fffaf2;
  border-top: 0.1rem solid #eee;
  text-align: center;
  padding: 3.8rem 2rem 4.5rem;
}

.card__footer-text {
  font-size: 1.4rem;
  line-height: 2.2rem;
  letter-spacing: 0.04rem;
  margin-bottom: 1.6rem;
}

.card__footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.card__footer-link {
  display: block;
  transition: opacity 0.3s ease;
}

.card__footer-link:hover {
  opacity: 0.8;
}

.card__footer-link img {
  display: block;
  width: auto;
  height: 7.2rem;
}

@media screen and (max-width: 768px) {
  .card-container {
    margin-bottom: 2rem;
  }

  .card {
    padding-block: 1rem;
  }

  .card__content {
    font-size: 1.4rem;
  }

  .card--complete {
    padding: 0;
  }

  .card--complete .card__content {
    padding: 3rem 2rem;
    max-width: 100%;
    text-align: left;
  }

  .card__title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .card--complete .link:not(:last-of-type) {
    margin-bottom: 1.4rem;
  }

  .card__footer {
    padding: 3rem 2.2rem;
  }

  .card__footer-text {
    text-align: left;
    margin-bottom: 1.8rem;
  }

  .card__footer-links {
    flex-direction: column;
    gap: 2rem;
  }

  .card__footer-link img {
    width: 100%;
    max-width: 23rem;
    height: auto;
  }

}

/* Line */
.line {
  background-color: #fafafa;
  padding: 3rem 1.5rem;
  margin-block: 2.5rem 3rem;
  text-align: center;
}

.line__text {
  font-size: 1.4rem;
  color: #333;
}

.logo-apo {
  width: auto;
  height: 2.4rem;
  margin-bottom: 1rem;
}

.logo-line {
  width: auto;
  height: 2.2rem;
  margin-bottom: 2.8rem;
}

.line__text {
  position: relative;
  display:inline-block;
  margin-inline: auto;
  font-size: 1.5rem;
  line-height: 2.4rem;
  letter-spacing: 0.04rem;
  margin-bottom: 2rem;
}

.line__text::before {
  content: "";
  position: absolute;
  top: 0;
  left: -2rem;
  display: block;
  width: 2rem;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg width="18" height="41" viewBox="0 0 18 41" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.00011 1L17.3901 40.2348" stroke="%23333"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.line__text::after {
  content: "";
  position: absolute;
  top: 0;
  right: -2rem;
  display: block;
  width: 2rem;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg width="18" height="41" viewBox="0 0 18 41" fill="none" xmlns="http://www.w3.org/2000/svg"><line y1="-0.5" x2="42.5206" y2="-0.5" transform="matrix(-0.385461 0.922724 0.922724 0.385461 17.3901 1)" stroke="%23333"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.line__button {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 24rem;
  height: 5rem;
  margin-inline: auto;
  background-color: #06c755;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.line__button:hover {
  opacity: 0.8;
}

.line__button-icon {
  min-width: 5rem;
  width: 5rem;
}

.line__button img {
  width: auto;
  height: 3.5rem;
}

.line__button span {
  flex-grow: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border-left: 0.1rem solid #03b74d;
  color: #fff;
  font-size: 1.6rem;
  letter-spacing: 0.06rem;
}

@media screen and (max-width: 768px) {
  .line {
    padding: 2.2rem 1.6rem 3rem;
  }

  .link-container {
    text-align: center;
  }
}

/* Form */
.form-container {
  max-width: 81rem;
  margin-inline: auto;
  padding: 3rem 1.5rem 8rem;
}

.form__wrapper:not([data-step="1"]) {
  display: none;
}

.form-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-primary);
}

.form-title-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 2.8rem;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-primary);
  background-color: #fff;
  padding-inline: 0.9rem;
  border-radius: 0.8rem;
}

@media screen and (max-width: 768px) {
  .form-container {
    padding: 2rem 1.5rem 4rem;
  }

  .form-title {
    font-size: 1.6rem;
    gap: 1rem;
  }

  .form-title-badge {
    font-size: 1.4rem;
    height: 2.4rem;
    line-height: 2.4rem;
  }
}

.form__stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.5rem;
  margin-bottom: 3.5rem;
}

.form__stepper li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  aspect-ratio: 1;
  background-color: #fff;
  color: var(--color-text);
  font-size: 1.6rem;
  line-height: 1.6rem;
  border-radius: 50%;
  z-index: 1;
}

.form__stepper li:not(:last-of-type)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 0.5rem);
  transform: translateY(-50%);
  display: block;
  width: 3.5rem;
  height: 0.2rem;
  background-color: #fff;
  z-index: -1;
}

.form__stepper li.current {
  background-color: var(--color-secondary);
  color: #fff;
}

.form__stepper li.active {
  background-color: #0a3c81;
  color: #fff;
}

.form__stepper li.active::before {
  background-color: #0a3c81;
}

@media screen and (max-width: 768px) {
  .form__stepper {
    gap: 3rem;
    margin-bottom: 2rem;
  }

  .form__stepper li {
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.3rem;
    line-height: 1.3rem;
  }

  .form__stepper li:not(:last-of-type)::before {
    width: 2rem;
  }
}

.form__card {
  background-color: #fff;
  padding-block: 3rem 4.5rem;
  border-radius: 0.8rem;
}

.form__card-content {
  max-width: 47rem;
  margin-inline: auto;
}

.form__label {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  width: auto;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.form__label--title {
  width: 100%;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 2.4rem;
}

.form__required,
.form__optional {
  display: inline-block;
  padding: 0.4rem 0.6rem;
  font-size: 1.2rem;
  line-height: 1.2rem;
  font-weight: 400;
  background-color: #e73040;
  color: #fff;
  border-radius: 0.3rem;
  white-space: nowrap;
}

.form__optional {
  background-color: #777;
}

.form__option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 5rem;
  padding: 0 1rem;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-text);
  background-color: #f4f4f4;
  border-radius: 0.5rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.form__option-label--lg {
  min-height: 10rem;
  margin-bottom: 1.5rem;
}

.form__option-label--xl {
  min-height: 10.5rem;
}

.form__option-label:hover {
  background-color: #f1f1f1;
}

.form__option-label:has(input:checked) {
  background-color: #fff1b3;
  outline: 2px solid #000;
}

.form__option-label:has(input[type="radio"]:checked) {
  pointer-events: none;
}

.form__option {
  display: none;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.form__btn-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
}

.form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 5rem;
  background-color: #3f88eb;
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  border-radius: 0.5rem;
  cursor: pointer;
  background-image: url('data:image/svg+xml,<svg width="5" height="9" viewBox="0 0 5 9" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.83398 4.69336L0 8.61328V6.99609L3.34863 4.30664L0 1.61719V0L4.83398 3.91992V4.69336Z" fill="%23fff"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  transition: background-color 0.3s ease;
}

.form__btn:hover {
  background-color: hsl(215, 69%, 55%);
}

.form__btn--red {
  background-color: #e73040;
}

.form__btn--red:hover {
  background-color: hsl(355, 69%, 55%);
}

.form__back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  height: 5rem;
  background-color: #f4f4f4;
  border: 0.1rem solid #ccc;
  border-radius: 0.5rem;
  font-size: 1.4rem;
  color: #777;
  transition: background-color 0.3s ease;
}

.form__back-btn:hover {
  background-color: #f1f1f1;
}

.form__group {
  position: relative;
  margin-bottom: 3rem;
}

.form__wrapper[data-step="4"] .form__group:last-of-type {
  margin-bottom: 7rem;
}

input.form__input {
  appearance: none;
  width: 100%;
  height: 5rem;
  padding: 0 1.5rem;
  border: 0.1rem solid #ccc;
  border-radius: 0.5rem;
  font-size: 1.8rem;
  font-weight: 400;
}

input.form__input::placeholder,
.form__select:is(:invalid) {
  color: #c5c5c5
}

.form__input:is(:focus, :focus-visible),
.form__textarea:is(:focus, :focus-visible) {
  background-color: #f2fdff;
  border-color: #1454ab;
  outline: transparent;
}

.form__select {
  appearance: none;
  min-width: 23rem;
  width: 100%;
  max-width: 23rem;
  height: 5rem;
  padding-inline: 1.5rem 2rem;
  border: 0.1rem solid #ccc;
  border-radius: 0.5rem;
  font-size: 1.6rem;
  font-weight: 400;
  background-color: #fff;
  background-image: url('data:image/svg+xml,<svg width="9" height="5" viewBox="0 0 9 5" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.08008 4.83398L9 0H7.38281L4.69336 3.34863L2.00391 0H0.386719L4.30664 4.83398H5.08008Z" fill="%23333333"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form__select option,
.form__select optgroup {
  color: var(--color-text);
}

.form__textarea {
  resize: none;
  width: 100%;
  height: 14rem;
  padding: 1.5rem;
  border: 0.1rem solid #ccc;
  border-radius: 0.5rem;
}

.form__link-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.2rem;
}

.form__link {
  color: #182e5f;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.form__link:hover {
  color: hsl(215, 83%, 37%);
}

@media screen and (max-width: 768px) {
  .form__card {
    padding-block: 2.8rem;
  }

  .form__label--title {
    font-size: 1.6rem;
    margin-bottom: 2.2rem;
  }

  .form__card-content {
    max-width: 100%;
    padding-inline: 2rem;
  }

  .form__option-label:has(input[type="radio"]) {
    font-size: 1.6rem;
  }

  .form__grid {
    gap: 1.5rem 1rem;
  }

  .form__btn {
    font-size: 1.6rem;
    font-weight: 400;
  }

  .form__btn-wrapper {
    gap: 2rem;
  }

  .form__back-btn {
    min-width: 7rem;
  }

  input.form__input {
    font-size: 1.5rem;
  }

  .form__btn--red  {
    flex-direction: column;
    gap: 0;
    line-height: 1.6rem;
  }

  .form__btn--red span {
    font-size: 1.2rem;
    line-height: 1.6rem;
    margin-bottom: 0.2rem;
  }

  .form__wrapper[data-step="4"] .form__group:last-of-type {
    margin-bottom: 3rem;
  }
}

.form__card-footer {
  border-top: 0.1rem solid #eee;
  margin-top: 3.6rem;
  padding-top: 4rem;
}

.form__footer {
  max-width: 500px;
  margin-inline: auto;
}

.form__footer-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.form__footer-wrapper a {
  display: block;
  min-width: 5.3rem;
  width: 5.3rem;
  max-width: 5.3rem;
}

.form__footer-wrapper a img{
  width: 100%;
  height: auto;
}

.form__footer-content {
  font-size: 1.2rem;
  color: #666;
}

.form__footer-content p:has(span) {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: bold;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.form__footer-content p span {
  display: flex;
  align-items: center;
  height: 2rem;
  padding-inline: 0.8rem;
  background-color: #5fa2da;
  border-radius: 4rem;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.2rem;
}

.form__footer-text {
  font-size: 1.3rem;
  color: var(--color-text);
  margin-top: 1.2rem;
}
.panel-inquiry .inquiry-inner {
  background-color: var(--color-powder-blue);
  padding: 36px 48px;
}

@media (hover: none) {
  .panel-inquiry .inquiry-inner {
    padding: 20px 10px !important;
  }
}

.panel-inquiry .inquiry-inner .form__link-wrapper {
  margin-left: -10px;
}

@media screen and (max-width: 768px) {
  .form__card-footer {
    margin-top: 3rem;
    padding-top: 2.5rem;
    padding-inline: 2rem;
  }

  .form__footer-content {
    font-size: 1rem;
  }

  .form__footer-content p:has(span) {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .form__footer-content p span {
    font-size: 1.2rem;
    line-height: 1.2rem;
    height: 1.8rem;
  }
}

.select-wrapper {
  display: flex;
  flex-direction: column;
}

.form__group:has( .form-error-list) {
  margin-bottom: 6rem !important;
}

.form__error-list {
  display: none;
  position: relative;
  margin-top: 0.4rem;
  font-size: 1.2rem;
  color: #fff;
  background-color: #fc5c69;
  padding: 0.4rem 0.8rem;
  border-radius: 0.3rem;
  width: max-content;
}

.form__error-list::before,
.form-error-list::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 0.4rem);
  left: 0.4rem;
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  aspect-ratio: 1;
  background-image: url('data:image/svg+xml,<svg width="11" height="9" viewBox="0 0 11 9" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.19615 0L10.3923 9L0 9L5.19615 0Z" fill="%23FC5C69"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: 0;
}

.form__error-list li {
  display: none;
}

.form__error-list:is(.is-required) {
  display: inline-block;
}

.form__error-list:is(.is-required) li.required {
  display: block;
}

.form__input:has(+ .form-error-list),
.form__select:has(+ .form-error-list),
.form__group:has( .form-error-list) .form__input,
.form__group:has( .form-error-list) .form__select  {
  background-color: #ffdfd7;
  border-color: #fc5c69;
  outline: transparent;
}

.form__select:has(+ .form-error-list) option,
.form__select:has(+ .form-error-list) optgroup {
  background-color: #fff;
}

.form-error-list {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.4rem;
  font-size: 1.2rem;
  color: #fff;
  background-color: #fc5c69;
  padding: 0.4rem 0.8rem;
  border-radius: 0.3rem;
  max-width: max-content;
}

@media (hover: none) {
  .nav-top a.is-active {
    right: 0;
    bottom: 0;
  }

  .content-row:has( .form-container) {
    padding-bottom: 0;
  }
}