.p-fv-form {
  --fv-form-gold: #a18c41;
  --fv-form-gold-light: #c9b06a;
  --fv-form-gold-border: rgb(161 140 65 / 0.45);
  --fv-form-gold-focus: rgb(161 140 65 / 0.35);
  --fv-form-ink: #1c1b1b;
  --fv-form-white: #fff;
  --fv-form-tile-bg: rgb(28 27 27 / 0.6);
  --fv-form-card-bg: rgb(38 37 37 / 0.92);
  --fv-form-card-border: rgb(255 255 255 / 0.12);
  --fv-form-card-shadow: 0 24px 54px rgb(0 0 0 / 0.35);
  --fv-form-serif: "游明朝体", "Yu Mincho", YuMincho, "Hiragino Mincho Pro", "Hiragino Mincho ProN", serif;

  padding-block: clamp(96px, 85.32px + 2.848vw, 140px) clamp(56px, 46.29px + 2.589vw, 96px);
}

.p-fv-form__bg {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 62%;
  block-size: 100%;
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgb(0 0 0 / 0.6) 55%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, rgb(0 0 0 / 0.6) 55%, transparent 100%);
}

.p-fv-form__bg-img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.p-fv-form__column {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(40px, 36.12px + 1.036vw, 56px);
  inline-size: min(1240px, 100% - 130px);
  margin-inline: auto;
}

/* フォーム（固定幅）を除いた残り幅をリード文側に割り当てるため */
.p-fv-form__lead {
  flex: 1;
  min-inline-size: 0;
}

.p-fv-form__desc {
  margin-block-start: clamp(20px, 15.15px + 1.294vw, 40px);
}

.p-fv-form__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 7.03px + 0.259vw, 12px);
  inline-size: min(640px, 100%);
  margin-block-start: clamp(28px, 25.09px + 0.777vw, 40px);
}

.p-fv-form__stats-item {
  padding: clamp(12px, 11.03px + 0.259vw, 16px) clamp(10px, 9.03px + 0.259vw, 14px);
  border: 1px solid var(--fv-form-gold-border);
  border-radius: 6px;
  background-color: var(--fv-form-tile-bg);
}

.p-fv-form__num {
  font-family: var(--fv-form-serif);
  font-size: clamp(24px, 23.03px + 0.259vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--fv-form-gold-light);
  white-space: nowrap;
}

.p-fv-form__unit {
  font-size: 0.6em;
  margin-inline-start: 2px;
}

.p-fv-form__stats-label {
  font-size: clamp(11px, 10.76px + 0.065vw, 12px);
  line-height: 1.5;
  margin-block-start: 6px;
}

.p-fv-form__notes {
  font-size: clamp(10px, 9.76px + 0.065vw, 11px);
  line-height: 1.6;
  margin-block-start: 12px;
  opacity: 0.8;
}

.p-fv-form__form-wrap {
  inline-size: min(440px, 100%);
  flex-shrink: 0;
  text-align: center;
}

.p-fv-form__form {
  padding: clamp(28px, 26.06px + 0.518vw, 36px) clamp(20px, 16.12px + 1.036vw, 36px) clamp(24px, 22.06px + 0.518vw, 32px);
  border: 1px solid var(--fv-form-card-border);
  border-radius: 8px;
  background-color: var(--fv-form-card-bg);
  box-shadow: var(--fv-form-card-shadow);
  text-align: start;
}

.p-fv-form__form-title {
  font-size: clamp(17px, 16.27px + 0.194vw, 20px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-block-end: 24px;
  word-break: keep-all;
}

.p-fv-form__field {
  display: block;
  margin-block-end: 16px;
}

.p-fv-form__field-label {
  display: block;
  padding: 0;
  font-size: 12px;
  margin-block-end: 6px;
}

.p-fv-form__birthdate,
.p-fv-form__name {
  min-inline-size: 0;
  padding: 0;
  border: 0;
}

.p-fv-form__name-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.p-fv-form__birthdate-inputs {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 10px;
}

.p-fv-form__birthdate-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-inline-size: 0;
}

.p-fv-form__birthdate-item .p-fv-form__input {
  min-inline-size: 0;
  padding-inline: 10px;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.p-fv-form__birthdate-item .p-fv-form__input::-webkit-inner-spin-button,
.p-fv-form__birthdate-item .p-fv-form__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.p-fv-form__birthdate-unit {
  flex-shrink: 0;
  font-size: 13px;
}

.p-fv-form__input,
.p-fv-form__select {
  display: block;
  inline-size: 100%;
  block-size: 48px;
  padding-inline: 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  background-color: var(--fv-form-white);
  color: var(--fv-form-ink);
  font-size: 16px;
}

.p-fv-form__select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 36px;
  background-image: url(../../img/common/chevron_dwn.svg);
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px auto;
}

.p-fv-form__input:focus,
.p-fv-form__select:focus {
  outline: none;
  border-color: var(--fv-form-gold);
  box-shadow: 0 0 0 3px var(--fv-form-gold-focus);
}

.p-fv-form__consent {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-block: 4px 20px;
  cursor: pointer;
}

.p-fv-form__checkbox {
  inline-size: 18px;
  block-size: 18px;
  flex-shrink: 0;
  accent-color: var(--fv-form-gold);
}

.p-fv-form__consent-link {
  color: var(--fv-form-gold-light);
  text-decoration: underline;
}

.p-fv-form__submit {
  display: block;
  inline-size: 100%;
  min-block-size: 60px;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  background-color: var(--fv-form-gold);
  color: var(--fv-form-white);
  font-size: clamp(15px, 14.76px + 0.065vw, 16px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  word-break: keep-all;
  cursor: pointer;
  transition: opacity 0.2s;
}

.p-fv-form__submit:hover {
  opacity: 0.9;
}

.p-fv-form__link {
  display: inline-block;
  font-size: 14px;
  margin-block-start: 20px;
  color: var(--fv-form-gold-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.p-fv-form__gotcha {
  display: none;
}

@media only screen and (max-width: 1199px) {
  .p-fv-form__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    inline-size: min(420px, 100%);
  }
}

@media only screen and (max-width: 1023px) {
  .p-fv-form__bg {
    inline-size: 100%;
    block-size: 60%;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  }

  .p-fv-form__column {
    inline-size: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .p-fv-form__form-wrap {
    inline-size: min(560px, 100%);
    margin-inline: auto;
  }
}

@media only screen and (max-width: 767px) {

  .p-fv-form__stats {
    inline-size: 100%;
  }

  .p-fv-form__stats-item {
    text-align: center;
  }

  .p-fv-form__notes {
    text-align: center;
  }

  .p-fv-form__form-title {
    text-align: center;
  }

}
