@charset "UTF-8";

.form-step {
    display: none;
    opacity: 0;
}
.form-step.active {
    display: block;
    opacity: 1;
}
.next-button {
    display: none;
    opacity: 0;
    transition: 0.5s;
}
.next-button.active {
    display: inline;
    opacity: 1;
}
.step_form_head {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    line-height: 1.3;
    background: #29a3cf;
    padding: 24px 15px;
    margin: 0 0 20px;
}
#LpNetForm p:has(#progress) {
    font-size: 16px;
    text-align: center;
    margin: 0 16px 30px;
}
#LpNetForm #progress {
    font-size: 22px;
    color: #e60012;
}
[id*="step"].form-step:last-of-type.active + p:has(#progress) {
    display: none;
}
.form-step {
    font-size: 16px;
    margin: 0 auto 30px;
    width: calc(100% - 32px);
    max-width: 750px;
}
.form-step :is(*, *::before, *::after) {
    box-sizing: border-box;
}
.form-step .fp_text {
    padding: 8px 0 0 58px;
    background: url(images/ico_chat.webp) no-repeat left top / 50px;
    min-height: 50px;
    margin: 0 0 10px;
}
.form-step .fp_text p {
    border-radius: 0 20px 20px 20px;
    padding: 20px 16px;
    background: #ededed;
    position: relative;
}
/* 入力中アニメーション */
.active .fp_text .dod_anime {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    animation: fade_out 0.5s 1.5s forwards;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ededed;
    border-radius: 0 20px 20px 20px;
}
.active .fp_text .dod_anime span {
    width: 6px;
    height: 6px;
    background: #aaa;
    border-radius: 100%;
}
.active .fp_text .dod_anime span:nth-child(1) {
    animation: dod_anime 1s infinite;
}
.active .fp_text .dod_anime span:nth-child(2) {
    animation: dod_anime 1s 0.3s infinite;
}
.active .fp_text .dod_anime span:nth-child(3) {
    animation: dod_anime 1s 0.6s infinite;
}
.form-step:not(#step1, #step2).active > *:not(.fp_text) {
    visibility: hidden;
    animation: fade_in 0.5s 1.5s forwards;
}
@keyframes dod_anime {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
@keyframes fade_out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        display: none;
    }
}
@keyframes fade_in {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    100% {
        opacity: 1;
        visibility: visible;
    }
}
/* 入力エリア */
.form-step .input_area {
    max-width: 600px;
    margin: 20px auto;
}
/* エラーテキスト */
.form-step .error_wrap {
    font-size: 12px;
    color: #c03232;
    margin: 8px auto 0;
    max-width: 600px;
}
/* 保険選択 */
.form-step .plan_area {
    padding-left: 10px;
}
.form-step .plan_area ul {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 500px;
    margin: auto;
    font-size: 17px;
}
.form-step .plan_area ul li {
    width: calc((100% - 5px)/2);
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}
.form-step .plan_area ul li input,
.form-step .plan_area ul li label {
    cursor: pointer;
}
.form-step .plan_area ul li label {
    margin-left: 5px;
    flex-grow: 1;
}
/* 生年月日 */
.form-step .birth_area {
    display: flex;
    gap: 8px;
}
.form-step .birth_area select {
	color: #545558;
	padding: 5px;
	background:linear-gradient(to bottom, #fff, #e4e4e5);
	box-shadow : 1px 1px 2px #e4e4e5;
	border-radius: 4px;
	box-sizing: border-box;
    outline: none;
    width: 25%;
    cursor: pointer;
}
.form-step .birth_area select#lpnetform-birthyear {
    width: 50%;
}
/* 性別 */
.form-step .gender_area #lpnetform-gender input {
    display: none;
}
.form-step .gender_area #lpnetform-gender {
    display: flex;
    border: 1px solid #959799;
    text-align: center;
    border-radius: 35px;
    box-shadow: 1px 1px 3px #c0c0c1 inset;
}
.form-step .gender_area #lpnetform-gender .radio {
    width: 50%;
}
.form-step .gender_area #lpnetform-gender .radio:first-child {
    border-right: 1px solid #ccc;
}
.form-step .gender_area #lpnetform-gender label {
    padding: 8px 0 8px 10px;
    display: block;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.form-step .gender_area #lpnetform-gender label::before {
    position: absolute;
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
    z-index: 4;
    width: 18px;
    height: 18px;
    border: 2px solid #c03232;
    border-radius: 50%;
    content: "";
    box-sizing: border-box;
}
.form-step .gender_area #lpnetform-gender label::after {
    position: absolute;
    top: 50%;
    left: 26px;
    transform: translateY(-50%);
    background-color: #fff;
    z-index: 2;
    width: 10px;
    height: 10px;
    content: "";
    border-radius: 100%;
    box-sizing: border-box;
}
.form-step .gender_area #lpnetform-gender label:has( input[type="radio"]:checked):after {
    background-color: #c03232;
}
/* テキスト入力 */
.form-step .input_area :is( input[type="text"], input[type="tel"]) {
    width: 100%;
    padding: 6px 11px;
    border-radius: 4px;
    outline: none;
    border: 1px solid #9b9b9b;
}
.form-step .input_area :is( input[type="text"], input[type="tel"])::placeholder {
    color: #b7b7b7;
}
/* 名前入力 */
.form-step .name_area {
    display: flex;
    gap: 16px;
}
.form-step .name_area > div {
    width: 50%;
}
/* 次へボタン */
.form-step .next_block {
    text-align: center;
    margin: 20px 0;
}
.form-step .next_block button {
    font-size: 16px;
    cursor: pointer;
    border: none;
    background: #def2ff;
    max-width: 290px;
    width: 100%;
    padding: 13px;
    border-radius: 100px;
    outline: none;
}
/* 個人情報の取り扱いについて */
.form-step .privacy_box {
    height: 115px;
    overflow: auto;
    margin: 0 auto 30px;
    border: 2px solid #c03232;
    max-width: 600px;
}
.form-step .privacy_box .box_inner{
	padding: 4px;
	line-height: 1.5;
	color: #75777b;
	font-size: 11px;
}
.form-step .privacy_box .policy .policy-main-heading{
	font-size: 13px;
	font-weight: bold;
}
.form-step .privacy_box .policy .policy-heading{
	font-weight: bold;
	margin-top: 10px;
}
.form-step .privacy_box .policy table{
	margin: 5px;
}
.form-step .privacy_box .policy td{
	border: 1px solid #333;
	padding: 5px;
}
.form-step .privacy_box .policy p{
	padding: 0 0 5px;
}
.form-step .privacy_box .policy li{
	margin: 0 0 20px 20px;
}
.form-step .privacy_box .policy td.column1{
	text-align: center;
	width: 20px;
}
.form-step .privacy_box .policy td.column2{
	width: 150px;
}
.form-step .privacy_box .policy ul{
	margin: 0 10px;
}
.form-step .privacy_box .policy .responsibility{
	margin-top: 10px;
	text-align: right;
}
.form-step .privacy_box .policy a{
	text-decoration: underline;
}
.form-step .privacy_notes p {
    text-align: center;
    margin: 0 0 20px;
}
/* 見積りボタン */
.form-step .btn_confirm {
    margin: 0 auto 30px;
    width: 100%;
    max-width: 550px;
}
.form-step .btn_confirm input {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    padding: 15px;
    background: linear-gradient(to bottom, #43c0ed 0%,#43c0ed 50%,#29a3cf 51%,#29a3cf 100%);
    border-radius: 100px;
    display: block;
    border: 2px solid #fff;
    cursor: pointer;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .form-step .birth_area select {
        padding: 10px;
    }
    /* テキスト入力 */
    .form-step .input_area :is( input[type="text"], input[type="tel"]) {
        padding: 10px 11px;
    }
    /* 個人情報の取り扱いについて */
    .form-step .privacy_box {
        height: 170px;
    }
}