/* 重複登録メアドの場合LP戻るんだけどその時用 */
:root{
  --pink-color: #e83992;
}
.error_msg_modal_bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 13;
  display: flex;
  justify-content: center;
  align-items: center;
  align-items: flex-start;
}

.error_msg_modal {
  background-color: white;
  max-width: 522px;
  width: 90%;
  z-index: 14;
}

.error_wrapper {
  border: double var(--pink-color);
  padding: 2rem 1rem 0.4rem;
  margin: 25% auto 20%;
  font-size: 1rem;
  text-align: justify;
  width: 90%;
  border-radius: 5px;
}

a.error_h,
p.error_h {
  font-weight: bold;
  font-size: 1.4em;
  text-align: center;
  display: block;
  color: var(--pink-color);
}

.error_wrapper>a {
  text-decoration: underline;
  margin-bottom: 2rem;
}

p.error_msg_modal_close {
  text-align: center;
  color: black;
  text-decoration: underline;
}


/* フォーム */


:root {
  --form-color: #1E88E5;
}


.step {
  display: flex;
  margin: 24px auto;
}

.step div {
  flex: 1;
  padding: 10px 16px 10px 10px;
  font-size: 0.8rem;
  text-align: center;
  background: #f3f3f3;
  color: #4a4a4a;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  border-radius: 4px 0px 0px 4px;
}

.step .active {
  background: var(--form-color);
  color: #fff;
  font-weight: bold;
}

.step .last {
  clip-path: none;
  border-radius: 4px;
}



form .valid_ng_border {
  animation: valid_ng_border 0.5s 0s linear 2 alternate;
  border-color: red;
  background: #ffd4d4;
}

@keyframes valid_ng_border {

  0%,
  15% {
    border-color: red;
    background: #ffd4d4;
  }

  85%,
  100% {
    border-color: #ffeaea9f;
    background: #fff1f1ff;
  }
}



/* ドメインだけはちょっと濃くしたい */
form [name="domain"].valid_ng_border {
  background: #ffacac;
  animation: valid_ng_border_strong 0.5s 0s linear 2 alternate;
}
@keyframes valid_ng_border_strong {

  0%,
  15% {
    border-color: red;
    background: #ffacac;
  }

  85%,
  100% {
    border-color: #ffeaea9f;
    background: #fff1f1ff;
  }
}






form {
  display: block;
  margin: 0 auto;
  
  max-width: 720px;
  margin: 34px 4% 40px;
  padding: 14px 24px;
  background: #ffff;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
}

/* フォームの囲い */
.form-box {

}

/* フォーム項目の見出し */
.form_cont {
  font-weight: bold;
  font-size: 0.9em;
  margin-top: 20px;
  margin-bottom: 3px;
  color: #4a4a4a;
}

.form_cont span {
  font-size: 0.9em;
  font-weight: initial;
  display: inline-block;
  vertical-align: bottom;
  margin-bottom: 2px;
  padding: 0 4px;
  color: var(--form-color);
}



/* 入力欄全体 */
[name="reg_birth_yy"],
[name="reg_birth_mm"],
[name="reg_birth_dd"],
[name="reg_furigana"],
[name="reg_mail"],
[name="domain"],
[name="reg_unsei"] {
  width: 100%;
  border: 1px solid #cccccc;
  border-radius: 6px;
  padding: 6px 12px;
  line-height: 1.6;
}

/* 項目全体の余白 */
#name_form,
#select_form,
#genre_form {
  width: 100%;
}






/* 性別結婚のラジオボタン */
.radio-group {
  display: flex;
  align-items: stretch;
  line-height: 1;
  gap: 8px;
  height: auto;
  margin-bottom: 0;
  padding-bottom: 0;
}

.radio-group input {
  display: initial;
  display: inline-block;
  width: 1rem;
  height: 1rem;
}

.radio-group input:last-of-type {
  margin-left: 0.5rem;
}

.radio-group label {
  border: none;
  background: none;
  box-shadow: none;
  color: #4a4a4a;
  text-shadow: none;
  margin: 0;
  text-align: initial;
  display: block;
  float: initial;
  flex: initial;
  width: auto;
}


.radio-group label:nth-of-type(1),
.radio-group label:nth-of-type(2) {
  border-radius: 100px;
}


/* 生年月日 */
#select_form {
  display: flex;
  gap: 6px;
}

select[name="reg_birth_yy"],
select[name="reg_birth_mm"],
select[name="reg_birth_dd"] {
  flex: 1;
}





/* メアド入力型 */
.email-input-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 0.3rem;
}

[name="reg_mail"] {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  outline: none;
}

[name="domain"] {
  padding-right:0;
  padding-left:6px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
  background: #dbdbdb;
  width: fit-content;
  outline: none;
}


/* プレビュー */
.email-preview {
  padding-left: 4px;
  display: flex;
  flex-direction: column;
}

.preview-label {
  font-size: 0.7em;
  color: #4a4a4a;
}

.preview-value {
  font-weight: bold;
  color: #333;
  word-break: break-all;
}


/* バリデ文言 */
.validation_message{
	color: red;text-align:center; background: #FFDFDF; margin-top:1rem;padding: 0.5rem; border-radius: 0.5rem;display: none;
}

/* 送信ボタン */
input[type="submit"].submit {
  background: linear-gradient(68deg, #f2769c 0%, #ffb5c1 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 7px #ffcbcb;
  font-size: 20px;
  width: 100%;
  padding: 10px 10%;
  margin: 2rem auto 1rem;
}


.form-title {
	font-weight: bold;
}
