@charset "UTF-8";

/* --- 2. Layout Elements --- */
.row {
    max-width: 880px;
    width: 100%;
    margin: 0 auto;
}

.pForm {
    background-color: #F5F5F5;
    padding-bottom: 20px;
}

/* --- 3. Main Visual (MV) --- */
.pForm .mv {
    position: relative;
    background-color: #F5F5F5;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
}

.pForm .mv__txt {
    text-align: center;
    color: #111;
    background: none;
    z-index: 2;
}

.pForm .mv__txt h2 {
    font-size: 3.6rem;
    line-height: 1.4;
    font-weight: 700;
    margin: 0;
}

.pForm .mv__txt p {
    font-size: 1.8rem;
    margin: 14px 0 0;
    line-height: 1.6;
}

/* --- 4. Form Style (PC) --- */
.pForm .form {
    max-width: 720px;
    width: calc(100% - 40px);
    margin: 40px auto 40px;
    background: #FFF;
    border-radius: 8px;
    padding: 40px 48px;
}

.pForm .form dl {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-top: 0px solid #C1C1C1;
    margin: 0;
}

.pForm .form dl.st2 {
    align-items: flex-start;
}

.pForm .form dl:last-of-type {
    border-bottom: 0px solid #C1C1C1;
}

@media screen and (max-width: 768px) {
    .pForm .form dl:last-of-type {
        border-bottom: none;
    }
}

.pForm .form dt {
    width: 180px;
    font-size: 1.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.pForm .form dt.required::before {
    content: "必須";
    font-size: 1.1rem;
    color: #fff;
    background: #A60000;
    padding: 0.4rem 0.6rem;
    border-radius: 3px;
    margin-right: 1rem;
    line-height: 1;
    display: inline-block;
}

.pForm .form dt.any::before {
    content: "任意";
    font-size: 1.1rem;
    color: #fff;
    background: #AEB3C6;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    margin-right: 1rem;
    line-height: 1;
    display: inline-block;
}

.pForm .form dd {
    flex: 1;
    margin: 0;
}

.pForm .form input,
.pForm .form textarea {
    width: 100%;
    padding: 10px 10px;
    font-size: 1.8rem;
    border: 1px solid #555;
    border-radius: 4px;
    outline: none;
    background: #fff;
    resize: vertical;
}

.pForm .form textarea {
    height: 209px;
}

/* --- 5. Custom Checkbox --- */
.pForm .form .wrapCheck {
    margin-top: 22px;
    text-align: center;
}

.pForm .form .wrapCheck label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.pForm .form .wrapCheck label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pForm .form .wrapCheck label span {
    font-size: 1.8rem;
    padding-left: 32px;
    position: relative;
}

.pForm .form .wrapCheck label span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border: 1px solid #C8CBCC;
    border-radius: 4px;
    transition: 0.2s;
}

.pForm .form .wrapCheck label span::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 45%;
    transform: translateY(-50%) rotate(-45deg);
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    opacity: 0;
    transition: 0.2s;
}

.pForm .form .wrapCheck label input:checked+span::before {
    background: #A60000;
    border-color: #A60000;
}

.pForm .form .wrapCheck label input:checked+span::after {
    opacity: 1;
}

.pForm .form ::placeholder {
    color: #ddd;
}

/* --- 6. Button --- */
.pForm .form .wrapBtn {
    margin-top: 38px;
    text-align: center;
}

.pForm .form .wrapBtn button {
    width: 280px;
    height: 52px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.8rem;
    font-weight: 700;
    transition: opacity 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pForm .form .wrapBtn button:hover {
    opacity: 0.7;
}

/* --- 7. Responsive (Smartphone) --- */
@media screen and (max-width: 768px) {

    /* MV */
    .pForm .mv {
        background-image: none;
        background-color: #F5F5F5;
        min-height: auto;
        padding: 40px 20px 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pForm .mv__txt {
        position: relative;
        width: 100%;
        padding: 0 20px;
    }

    .pForm .mv__txt h2 {
        font-size: 6.15464vw;
        line-height: 1.4;
    }

    .pForm .mv__txt p {
        font-size: 3.825vw;
        line-height: 1.6;
        margin-top: 3.86598vw;
    }

    /* フォームレイアウト */
    .pForm .form {
        width: calc(100% - 24px);
        margin: 16px auto 2vw;
        padding: 24px 24px 50px;
        border-radius: 0px;
        background: #ffffff;
    }

    .pForm .form dl {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
        border-top: none;
    }

    .pForm .form dt {
        width: 100%;
        margin-bottom: 8px;
        font-size: 4vw;
    }

    .pForm .form dd {
        width: 100%;
        margin: 0;
    }

    .pForm .form input,
    .pForm .form textarea {
        font-size: 16px;
        padding: 12px 12px;
        height: auto;
        min-height: 40px;
        resize: vertical;
    }

    .pForm .form textarea {
        height: 38.6vw;
        resize: vertical;
    }

    /* チェックボックス */
    .pForm .form .wrapCheck {
        margin-top: 10px;
    }

    .pForm .form .wrapCheck label span {
        padding-left: 32px;
        font-size: 3.6vw;
    }

    .pForm .form .wrapCheck label span::before {
        width: 20px;
        height: 20px;
    }

    /* ボタン */
    .pForm .form .wrapBtn {
        margin-top: 30px;
    }

    .pForm .form .wrapBtn button {
        width: 100%;
        height: 12vw;
        font-size: 4vw;
        border-radius: 8px;
    }
}

.pForm .error {
    color: #ff0000;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}