@charset "UTF-8";

.l-form-page {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 48px 0 88px;
}

.l-form-page__header {
  display: grid;
  gap: 8px;
  margin-bottom: 40px;
}

.l-form-page__eyebrow {
  margin: 0;
  color: var(--c-form-color-green-6);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.l-form-page__title {
  margin: 0;
  color: var(--c-form-color-text);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
}

.l-form-page__flow {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.l-form-page__body {
  display: grid;
  gap: 24px;
}

.l-main {
  min-height: 100vh;
}

.l-section {
  padding: 40px 0;
}

.l-section.u-py-0 {
  padding-top: 0;
  padding-bottom: 0;
}

.l-form-page__text {
  margin: 0;
  color: var(--c-form-color-text);
  font-size: 16px;
  line-height: 1.8;
}

.l-form-page__actions {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.l-form-page__actions--confirm {
  flex-wrap: wrap;
  gap: 24px;
}

.c-form-alert {
  width: min(var(--c-form-item-width), 100%);
  padding: 16px 20px;
  border: 1px solid var(--c-form-color-error);
  border-radius: var(--c-form-radius);
  background: var(--c-form-color-error-bg);
  color: var(--c-form-color-error);
  font-weight: 700;
  text-align: center;
}

.c-form-consent {
  display: grid;
  gap: 16px;
  width: min(var(--c-form-item-width), 100%);
  margin-top: 32px;
  padding: 24px 32px;
  border: 1px solid var(--c-form-color-border);
  border-radius: 8px;
  background: var(--c-form-color-white);
}

.c-form-consent__title {
  margin: 0;
  color: var(--c-form-color-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.c-form-confirm-text {
  margin: 0;
  color: var(--c-form-color-text);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.c-form-section-title {
  width: min(var(--c-form-item-width), 100%);
  margin: 32px 0 0;
  padding-top: 8px;
  color: var(--c-form-color-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.c-form-name-grid {
  display: grid;
  width: min(600px, 100%);
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px 16px;
  align-items: center;
}

.c-form-name-grid .c-form-control-wrap {
  width: 100%;
}

.c-form-complete {
  display: grid;
  gap: 16px;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 48px 32px;
  border-radius: 8px;
  background: var(--c-form-color-white);
  text-align: center;
}

.c-form-complete p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

.c-form-complete__lead {
  color: var(--c-form-color-green-6);
  font-size: 24px !important;
  font-weight: 700;
}

a.c-form-button {
  text-decoration: none;
}

@property --form-progress-value {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 0%;
}

.p-form-progress-anchor {
  position: fixed;
  right: 90px;
  bottom: 60px;
  z-index: 50;
  width: 92px;
  height: 92px;
  margin: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.p-form-progress-anchor.is-hidden {
  display: none !important;
}

.p-form-progress-anchor.is-stopped {
  opacity: 1;
}

.p-form-progress {
  position: relative !important;
  top: auto;
  right: auto;
  bottom: auto;
  z-index: 50;
  display: grid;
  width: 92px;
  height: 92px;
  min-height: 0;
  place-items: center;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(var(--c-form-color-green-5) var(--form-progress-value, 0%), var(--c-form-color-border) 0);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.18);
  transition:
    --form-progress-value 0.35s ease,
    box-shadow 0.2s ease;
  pointer-events: auto;
}

.p-form-progress::before {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--c-form-color-white);
  content: "";
}

.p-form-progress::after {
  content: none;
}

.p-form-progress.is-hidden {
  display: none !important;
}

.p-form-progress__body {
  position: relative;
  display: grid;
  gap: 1px;
  place-items: center;
  color: var(--c-form-color-text);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.p-form-progress__label {
  color: var(--c-form-color-text);
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
}

.p-form-progress__value {
  color: var(--c-form-color-green-6);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  .l-form-page {
    width: min(var(--c-form-sp-width), calc(100% - 40px));
    padding: 32px 0 64px;
  }

  .l-form-page__header {
    margin-bottom: 32px;
  }

  .l-form-page__title {
    font-size: 24px;
  }

  .l-form-page__flow {
    margin-bottom: 32px;
  }

  .l-form-page__text {
    font-size: 14px;
  }

  .c-heading__text--h1__2 {
    font-size: 24px;
  }

  .c-form-name-grid {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .l-form-page__actions {
    margin-top: 32px;
  }

  .l-form-page__actions--confirm {
    gap: 16px;
  }

  .c-form-alert,
  .c-form-consent {
    width: 100%;
  }

  .c-form-consent {
    padding: 20px;
  }

  .c-form-consent__title {
    font-size: 18px;
  }

  .c-form-confirm-text {
    font-size: 14px;
  }

  .c-form-complete {
    padding: 32px 20px;
  }

  .p-form-progress-anchor {
    position: fixed;
    top: auto;
    right: auto;
    bottom: 18px;
    left: 50%;
    width: 335px;
    max-width: calc(100vw - 40px);
    height: 58px;
    margin: 0;
    transform: translateX(-50%);
    opacity: 1;
  }

  .p-form-progress-anchor.is-stopped {
    opacity: 1;
  }

  .p-form-progress {
    position: relative !important;
    top: auto;
    right: auto;
    display: flex;
    width: 100%;
    height: 58px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-form-color-border);
    border-radius: 999px;
    background: var(--c-form-color-white);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.18);
  }

  .p-form-progress::before {
    content: none;
  }

  .p-form-progress::after {
    position: absolute;
    right: 18px;
    bottom: 10px;
    left: 18px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--c-form-color-green-5) var(--form-progress-value, 0%), #e5ecef 0);
    content: "";
  }

  .p-form-progress__body {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
  }

  .p-form-progress__label {
    font-size: 13px;
  }

  .p-form-progress__value {
    font-size: 18px;
  }
}

.c-form-control-wrap--era {
  width: 112px;
}

.c-form-control-wrap--era-year {
  width: 88px;
}

/* 月・日のセレクトは .c-form-control-wrap--select の既定幅(316px)が
   後勝ちで効いてしまい、元号・年だけ狭く月・日だけ極端に広い状態に
   なっていた。元号・年と揃う幅に固定する。 */
.c-form-control-wrap--month,
.c-form-control-wrap--day {
  width: 140px;
}

.c-form-tel-either__group + .c-form-tel-either__group {
  margin-top: 20px;
}

.c-form-conditional-fields {
  display: grid;
  margin-top: 20px;
  padding: 20px;
  border-radius: 8px;
  background: #f6f9fa;
  gap: 16px;
}

.c-form-conditional-fields .c-form-subfield {
  align-items: center;
}

@media screen and (max-width: 767px) {
  .c-form-control-wrap--era {
    width: 96px;
  }

  .c-form-control-wrap--era-year {
    width: 76px;
  }

  .c-form-control-wrap--month,
  .c-form-control-wrap--day {
    width: 120px;
  }

  .c-form-conditional-fields {
    padding: 16px;
  }
}