/*---------------
 よくある質問
---------------*/
.contact-p-section {
    background-color: #f2f2f2;
    padding: 5rem;
    margin-top: -4px;
}
.contact-p-title {
    font-size: 32px;
    font-weight: 500;
    text-align: center;
}
.contact-p-content {
    margin: 4rem auto;
    max-width: 1080px;
}
.accordion {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #d0d0d0;
    background-color: #fff;
}

.accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 3rem 2rem 4rem 6rem;
    color: #132a43;
    font-weight: 600;
    cursor: pointer;
}
.accordion summary::-webkit-details-marker {
    display: none;
}
.accordion summary::before,
.accordion summary::after {
    width: 2px;
    height: .9em;
    border-radius: 5px;
    background-color: #132a43b3;
    content: '';
}
.accordion summary::before {
    position: absolute;
    right: 2em;
    rotate: 90deg;
}
.accordion summary::after {
    transition: rotate .3s;
}
.accordion[open] summary::after {
    rotate: 90deg;
}
.accordion p {
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    position: relative;
    padding: 1.5rem 5rem 3rem 6rem;
    color: #142a43;
    transition: transform .5s, opacity .5s;
}
.accordion[open] p {
    transform: none;
    opacity: 1;
}
.accordion summary span {
    margin-right: 4rem;
}
.question, .answer {
    display: inline-block;
    width: 48px;
    height: 48px;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    border-radius: 50%;
    text-align:center;
    line-height: 48px;
}
.question {
    background: #003D82;
    position: absolute;
    left: 1.4rem;
	top: 2.4rem;
}
.answer {
    background-color: #E50011;
    position: absolute;
    left: 1.3rem;
}
.contact-border {
    border: none;
    width: 80%;
    margin: 0 auto 2rem;
    border-top: 1px solid #f2f2f2;
    height: 1.5;
} 

/*---------------
 お問い合わせ
---------------*/
.contact-p-section2 {
    background-color: #fff;
    padding: 5rem;
}
.contact-p-title2 {
    text-align: center;
}
.Form {
    max-width: 860px;
    margin: 0 auto;
}
.form-content {
    margin: 3rem auto;
}
.required {
    color: #fff;
    font-size: 14px;
    background-color: #E50011;
    padding: 5px;
    margin-right: 10px;
}
.norequired {
    color: #fff;
    font-size: 12px;
    background-color: #003D82;
    padding: 5px;
    margin-right: 5px;
}
.wpcf7-text {
    width: 100%;
    height: 4rem;
    padding: .5rem 1rem;
    margin: 1rem 0;
    border: none;
    background-color: #f2f2f2;
}
.wpcf7-textarea {
    width: 100%;
    height: 15rem;
    padding: .5rem 1rem;
    margin: 1rem 0;
    border: none;
    background-color: #f2f2f2;
}
.wpcf7-spinner {
	display:none;
}
.privacy-form {
    display: flex;
    justify-content: center;
    margin-top: 8rem;
}
.button-wrap {
    margin: 5rem auto;
    display: flex;
    justify-content: center;
}
.submit-btn {
    max-width: 320px;
    background-color: #fff;
    color: #E50011;
    border-radius: 2rem;
    border: 2px solid #E50011;
    padding: .6rem 6rem;
    margin: 1.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}
.submit-btn:hover {
    background-color: #E50011;
    color: #fff;
}
.privacy-border {
	border-bottom: 2px solid #E50011;
}

.privacy-form input[type="checkbox"] {
    display: none;
}

.privacy-form .wpcf7-list-item-label {
    position: relative;
    padding-left: 30px; 
    cursor: pointer;
    display: inline-block;
    line-height: 24px;
}

.privacy-form .wpcf7-list-item-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border: 1px solid #142a43;
    background: #fff;
}
.privacy-form .wpcf7-list-item-label::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 5px;
    width: 6px;
    height: 12px;
    border: solid #E50011;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s;
}
.privacy-form input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
    opacity: 1;
}

/*---------------
 レスポンシブ
---------------*/
@media screen and (max-width: 1024px) {
    .contact-p-section, .contact-p-section2 {
        padding: 1rem;
    }
    .Form {
        max-width: 600px;
    }
}
@media screen and (max-width: 650px) {
    .accordion summary, .accordion[open] p  {
        font-size: 14px;
    }
    .accordion summary {
        padding: 2rem 2rem 2rem 4rem;
    }
    .accordion p {
        padding: 1.5rem 1rem 2rem 4rem;
    }
    .accordion summary span {
        margin-right: 1.5rem;
    }
    .accordion summary::before {
        right: 2.3em;
    }
    .question, .answer {
        width: 32px;
        height: 32px;
        font-size: 24px;
        line-height: 32px;
    }
    .Form {
        width: 90%;
    }
    .privacy-form {
        margin-top: 4rem;
    }
    .button-wrap {
        margin: 3rem auto 5rem;
    }
}