[type="radio"]:checked, [type="radio"]:not(:checked) {
    position: absolute;
    left: -9999px;
}
[type="radio"]:checked + label, [type="radio"]:not(:checked) + label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    line-height: 20px;
    display: inline-block;
    color: #666;
}
[type="radio"]:checked + label:before, [type="radio"]:not(:checked) + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 1px solid var(--color1);
    border-radius: 100%;
    background: var(--bg-white);
}
[type="radio"]:checked + label:after, [type="radio"]:not(:checked) + label:after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--color1);
    position: absolute;
    top: 6px;
    left: 4px;
    border-radius: 100%;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
[type="radio"]:not(:checked) + label:after {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}
[type="radio"]:checked + label:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}
.contact {
    position: relative;
}
.contact .sec1 {
    position: relative;
    padding: 1vw 0 15vw;
}
.contact .sec1 .txt {
    margin-bottom: 10vw;
}
.contact .sec1 .box {
    position: relative;
    padding: 10vw 5%;
    border-radius: 5px;
    background: var(--bg-light);
}
.contact .sec1 .box .title {
    font-size: 6vw;
    text-align: center;
    margin-bottom: 6vw;
    font-weight: bold;
}
.contact .sec1 .box .tel {
    text-align: center;
    font-weight: bold;
}
.contact .sec1 .box .tel dt {
    font-size: 4vw;
}
.contact .sec1 .box .tel dd {
    font-size: 8vw;
}
.contact .sec1 .box .tel dd::before {
    content: "";
    background: url("../img/consult/icon_tel.png") no-repeat center/100% auto;
    width: 23px;
    height: 23px;
    display: inline-block;
    margin: 0 5px;
}
.contact .sec1 .box .time {
    text-align: center;
    font-size: 14px;
}
.contact .sec2 {
    padding: 15vw 0 38vw;
    background: url(../img/contact/sec1_bg.png) no-repeat center top;
    background-size: 100%;
    background-color: #FDFAF1;
}
.contact .sec2::after {
    content: "";
    position: absolute;
    background: url("../img/shared/contact_deco3.svg") no-repeat;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 27vw;
    height: 31vw;
    background-size: 100%;
}
.contact .sec2 .form .form-txt {
    margin-bottom: 6vw;
    text-align: center;
}
.contact .sec2 .form .form-row {
    margin-bottom: 6vw;
}
.contact .sec2 .form .form-row .caption-inline {
    font-weight: bold;
    margin-bottom: 5px;
}
.contact .sec2 .form .form-row .caption-inline .caption--text {
    font-size: 17px;
    margin-right: 5px;
}
.contact .sec2 .form .form-row .caption-inline .caption--required {
    background: var(--color2);
    color: #fff;
    border-radius: var(--border-radius-xxl);
    text-align: center;
    font-weight: 500;
    padding: 1px 9px;
    font-size: 13px;
}
.contact .sec2 .form .form-row .note {
    margin-bottom: 5vw
}
.contact .sec2 .form .form-row .form-value input[type='text'],
.contact .sec2 .form .form-row .form-value input[type='tel'],
.contact .sec2 .form .form-row .form-value input[type='email'] {
    color: var(--gray-placeholder);
    font-weight: 500;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    width: 100%;
    box-sizing: border-box;
    padding: 4px 14px;
    height: 48px;
}
.contact .sec2 .form .form-row .form-value textarea {
    color: var(--gray-placeholder);
    font-weight: 500;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    min-height: 220px;
    line-height: 25px;
}
.contact .sec2 .form .form-row .link {
    margin-bottom: 3vw;
}
.contact .sec2 .form .form-row .link a {
    color: var(--color2);
    font-weight: bold;
}
.contact .sec2 .form .form-row .terms::before {
    border-radius: 0;
    background: none;
}
.contact .sec2 .form .form-row .terms::after {
    border-radius: 0;
}
.contact .sec2 .form .form-button button {
    background: url("../img/whitepaper/arrow_right.png") no-repeat;
    background-position: right 10px top 13px;
    background-color: #E9BA3A;
    display: block;
    color: #fff;
    font-weight: bold;
    font-size: 17px;
    padding: 7px;
    border-radius: 45px;
    text-align: center;
    position: relative;
    border: none;
    width: 100%;
    padding: 17px;
    background-size: 27px;
    border: 2px solid var(--color1);
}
.contact.confirm .sec2 {
    background: var(--bg-white);
    padding: 1vw 0 36vw;
}
.contact.confirm .sec2 .form-row {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 5vw;
    margin-bottom: 5vw;
}
.contact.confirm .sec2 .form-button {
    margin-top: 10vw;
}
#thanks {
    position: relative;
    padding: 1vw 0 38vw;
}
#thanks .title-shared {
    margin-bottom: 6vw;
    padding-top: 15vw;
}
#thanks .title-shared::before {
    content: "";
    background: url("../img/contact/thanks_t1.png") no-repeat center top;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-size: 52%;
    height: 25vw;
    margin: 0 auto;
}
#thanks .photo {
    width: 70%;
    margin: 0 auto 6vw;
}
#thanks .txt {
    margin-bottom: 6vw;
}
#thanks::after {
    content: "";
    position: absolute;
    background: url("../img/shared/contact_deco3.svg") no-repeat;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 27vw;
    height: 31vw;
    background-size: 100%;
}
footer {
    box-shadow: none;
}
@media only screen and (min-width: 768px) {
    [type="radio"]:checked + label, [type="radio"]:not(:checked) + label {
        font-size: 16px;
        letter-spacing: 1px;
        margin-bottom: 20px;
        padding-left: 35px;
    }
    [type="radio"]:checked + label:before, [type="radio"]:not(:checked) + label:before {
        width: 24px;
        height: 24px;
        top: -1px;
    }
    [type="radio"]:checked + label:after, [type="radio"]:not(:checked) + label:after {
        top: 4px;
        width: 14px;
        height: 14px;
        left: 5px;
    }
    .contact .sec1 {
        padding: 10px 0 116px;
    }
    .contact .sec1 .txt {
        text-align: center;
        font-size: 17px;
        line-height: 34px;
        max-width: 1081px;
        margin: 0 auto 40px;
        width: 100%;
        padding: 0 20px;
    }
    .contact .sec1 .box {
        width: 622px;
        margin: 0 auto 30px;
        padding: 40px;
        box-sizing: border-box;
    }
    .contact .sec1 .box .title {
        font-size: 20px;
        margin-bottom: 0px;
    }
    .contact .sec1 .box .tel {
        margin-bottom: -5px;
    }
    .contact .sec1 .box .tel dt {
        font-size: 20px;
        margin-bottom: 7px;
    }
    .contact .sec1 .box .tel dd {
        font-size: 36px;
    }
    .contact .sec1 .box .time {
        font-size: 12px;
        line-height: 19px;
    }
    .contact .sec2 {
        padding: 145px 0 140px;
    }
    .contact .sec2 .wrap {
        padding: 0 20px;
        max-width: 890px;
    }
    .contact .sec2 .form .form-row {
        margin-bottom: 28px;
    }
    .contact .sec2 .form .form-row .caption-inline {
        font-size: 18px;
    }
    .contact .sec2 .form .form-row .caption-inline .caption--text {
        letter-spacing: 1px;
    }
    .contact .sec2 .form .form-row .caption-inline .caption--required {
        font-size: 13px;
        margin-left: 6px;
    }
    .contact .sec2 .form .form-row .note {
        margin-bottom: 18px;
    }
    .contact .sec2 .form .form-row .form-value input[type='text'] {
        font-size: 16px;
    }
    .contact .sec2 .form .form-row .link {
        margin-bottom: 13px;
    }
    .contact .sec2 .form .form-button button {
        width: 327px;
        margin: 0 auto;
        padding: 17px;
        cursor: pointer;
        background-position: right 10px top 14px;
    }
    .contact .sec2 .form .form-button button:hover {
        background: var(--bg-white);
        border: 2px solid var(--color1);
        color: var(--color1);
        transition: var(--transition-slow);
        background: url(../img/whitepaper/arrow_right_on.png) no-repeat;
        background-position: right 13px top 14px;
        background-size: 24px;
    }
	.contact .sec2 .form .form-row .link a:hover{
		border-bottom: 1px solid;
	}
	
    .contact.confirm .sec2 {
        padding: 10px 0 137px;
    }
    .contact.confirm .sec2 .form-row {
        display: flex;
        width: 845px;
        padding-bottom: 20px;
        margin-bottom: 24px;
		max-width: 100%;
    }
    .contact.confirm .sec2 .form-row .form-caption {
        width: 220px;
    }
    .contact.confirm .sec2 .form-row .form-value {
        width: calc(100% - 220px);
    }
    .contact.confirm .sec2 .form-button {
        margin-top: 149px;
    }
	.contact .sec2 .form .form-row .form-value textarea{
		padding: 20px 30px;
	}
	
    #thanks {
        padding: 20px 0 138px;
    }
    #thanks .title-shared {
        padding-top: 130px;
        letter-spacing: 0;
        margin-bottom: 31px;
    }
    #thanks .title-shared::before {
        background-size: 440px;
    }
    #thanks .photo {
        width: 590px;
        margin-bottom: 50px;
    }
    #thanks .txt {
        text-align: center;
        margin-bottom: 50px;
        font-size: 17px;
        line-height: 34px;
    }
    #thanks .btn-cus a {
        margin: 0 auto;
    }
    .contact .sec2::after{
        width: 184px;
        height: 220px;
        right: 180px;
    } 
	.contact.confirm .sec2::after{
		bottom: -20px;
	}
	#thanks::after {
        width: 184px;
        height: 220px;
        right: 188px;
        bottom: -20px;
    }
}
@media only screen and (min-width: 768px) and (max-width: 1100px) {
	.contact .sec2::after, #thanks::after{
		right: 10px;
	}
}

/* =============================================
   お問い合わせフォーム - 確認画面機能用
   ============================================= */

/* チェックボックススタイル */
[type="checkbox"]:checked, [type="checkbox"]:not(:checked) {
    position: absolute;
    left: -9999px;
}
[type="checkbox"]:checked + label, [type="checkbox"]:not(:checked) + label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    line-height: 20px;
    display: inline-block;
    color: #666;
}
[type="checkbox"]:checked + label:before, [type="checkbox"]:not(:checked) + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 1px solid var(--color1);
    background: var(--bg-white);
}
[type="checkbox"]:checked + label:after, [type="checkbox"]:not(:checked) + label:after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--color1);
    position: absolute;
    top: 6px;
    left: 4px;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
[type="checkbox"]:not(:checked) + label:after {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}
[type="checkbox"]:checked + label:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

/* 入力フォームテキストカラー */
.contact .sec2 .form .form-row .form-value input[type='text'],
.contact .sec2 .form .form-row .form-value input[type='tel'],
.contact .sec2 .form .form-row .form-value input[type='email'] {
    color: var(--primary);
}
.contact .sec2 .form .form-row .form-value input[type='text']::placeholder,
.contact .sec2 .form .form-row .form-value input[type='tel']::placeholder,
.contact .sec2 .form .form-row .form-value input[type='email']::placeholder {
    color: var(--gray-placeholder);
}
.contact .sec2 .form .form-row .form-value textarea {
    color: var(--primary);
}
.contact .sec2 .form .form-row .form-value textarea::placeholder {
    color: var(--gray-placeholder);
}

/* セクション切り替え */
.contact-form-section {
    display: none;
}
.contact-form-section.active {
    display: block;
}

/* エラー表示 */
.form-row.has-error input,
.form-row.has-error textarea {
    border-color: #e74c3c !important;
    background-color: #fff5f5 !important;
}
.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}
.error-message.show {
    display: block;
}

/* 確認画面追加スタイル */
.contact-form-section.confirm .form-row {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.contact-form-section.confirm .form-button {
    margin-top: 30px;
}
.submit-error {
    color: #e74c3c;
    text-align: center;
    margin-top: 20px;
}

/* ローディングオーバーレイ */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.loading-overlay.active {
    display: flex;
}
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #eee;
    border-top-color: var(--color1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading-overlay p {
    margin-top: 15px;
    font-size: 16px;
    color: var(--primary);
}

/* 修正するボタン（btn-back）: 通常時はhoverスタイル、hover時は通常スタイル */
.contact .sec2 .form .form-button button.btn-back {
    background: url("../img/whitepaper/arrow_right_on.png") no-repeat;
    background-position: right 10px top 13px;
    background-color: #fff;
    background-size: 27px;
    color: var(--color1);
    border: 2px solid var(--color1);
}
.contact .sec2 .form .form-button button.btn-back:hover {
    background: url("../img/whitepaper/arrow_right.png") no-repeat;
    background-position: right 10px top 13px;
    background-color: #E9BA3A;
    background-size: 27px;
    color: #fff;
    border: 2px solid var(--color1);
    transition: all 0.5s;
}

@media only screen and (min-width: 768px) {
    [type="checkbox"]:checked + label, [type="checkbox"]:not(:checked) + label {
        font-size: 16px;
        letter-spacing: 1px;
        margin-bottom: 20px;
        padding-left: 35px;
    }
    [type="checkbox"]:checked + label:before, [type="checkbox"]:not(:checked) + label:before {
        width: 24px;
        height: 24px;
        top: -1px;
    }
    [type="checkbox"]:checked + label:after, [type="checkbox"]:not(:checked) + label:after {
        top: 4px;
        width: 14px;
        height: 14px;
        left: 5px;
    }
    
    /* PC時の btn-back スタイル */
    .contact .sec2 .form .form-button button.btn-back {
        background-position: right 10px top 14px;
    }
    .contact .sec2 .form .form-button button.btn-back:hover {
        background-position: right 13px top 14px;
        background-size: 24px;
    }
}

