@charset "utf-8";

/* ============CONTACT=========== */

.section--contact{
    background: url(../img/bg_desk.jpg);
    background-size: contain;
    background-repeat: repeat;
    text-align: center;
    position: relative;
}

.topic {
    margin: 50px 0 30px;
    padding-bottom: 0;
}

/* PC */
@media screen and (min-width:1280px) {
    .section--works__content {
        border-radius: 50px 50px 0 0 ;
    }
    .topic {
        margin: 0 0 90px;
    }
}

/* TAB */
@media screen and (min-width:769px) and (max-width: 1279px) {
    .topic{
        margin: 0 0 90px;
        }
}

/* ============手紙部分（form）=========== */
.box__letter {
    background-color: #FFF;
    max-width: 327px;
    width: 100%;
    margin: 0 auto;
    padding: 50px 24px;
    text-align: left;
}

h2 {
    font-size: 1.6rem;
    font-weight: bold;
    color: #000;
}

.group {
    border: 1px solid rgba(0, 0, 0, 50%);
    border-radius: 3px;
    margin-top: 4px;
    display: flex;
}

.form__parts {
    margin-top: 20px;
}

.form__parts:first-child {
    margin-top: 0;
}

.form__category {
    display: flex;
}

.form__category::before {
    display: flex;
    content: '必須';
    background-color: #956747;
    color: #FFF;
    border-radius: 3px;
    font-weight: 300;
    font-size: 1.4rem;
    width: 40px;
    height: calc(1.6rem * 1.5);
    margin-right: 8px;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

input[type="text"],
textarea{
    text-align: center;
    text-align: left;
    font-size: 1.4rem;
    display: inline-block;
    width: 100%;
    padding: 4px;
}

textarea {
    min-height: 160px;
}

input[type="text"]:focus,
textarea:focus {
    outline: 2px solid #956747;
    border-radius: 3px;
}

::placeholder {
    color: rgba(0, 0, 0, 50%);
}

.form__policy a {
    border-bottom: 1px solid var(--primary-black, #341500);
    font-size: 1.4rem;
    display: block;
    width: 210px;
    margin: 0 auto;
}

.form__policy {
    display: flex;
    flex-direction: column;
}

.policy {
    font-size: 1.6rem;
    text-align: center;
    margin-top: 12px;
    color: #000;
    font-weight: bold;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1px solid #000;
    margin-right: 4px;
}

input[type="checkbox"]:checked {
    position: relative;
}

input[type="checkbox"]:checked::after {
    display: inline-block;
    content: '';
    width: 12px;
    height: 6px;
    border-left:  2px solid var(--primary-black, #341500);
    border-bottom: 2px solid var(--primary-black, #341500);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-65%) rotate(-45deg);
}

.btn {
    border: none;
    background-color: #956747;
    color: #FFF;
}


/* ここからPHP関係 */
/* 入力画面 */
.form-error {
    color: #e60000;
    font-size: 1.4rem;
}

/* 入力画面終了 */

/* 確認画面 */
.btn__back {
    margin-right: 50px;
    background-color: #FFF;
    color: #956747;
    border: 2px solid #956747;
}

.confirm_txt {
    font-size: 1.6rem;
}

.confirm_attention {
    max-width: 327px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
    margin-bottom: 20px;
}

.confirm_attention_bold {
    color: #e60000;
}

.confirm_attention_bold span {
    font-weight: bold;
}

/* 確認画面終了 */


/* 送信完了画面 */
.complete {
    max-width: 275px;
    width: 100%;
    margin: 150px auto;
}

.completeH1 {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 24px;
}

.complete_txt p {
    margin-bottom: 20px;
    text-align: left;
}

.complete img {
    max-width: 85%;
    margin-bottom: 24px;
}

.br_nsp {
    display: none;
}

/* 送信完了画面終了 */
/* PHP関係終了 */


/* PC */
@media screen and (min-width:1280px) {
    .box__letter{
        max-width: 1160px;
        width: 100%;
        padding: 200px 140px;
    }

    h2 {
        font-size: 3rem;
    }
    
    .group {
        border: 2px solid rgba(0, 0, 0, 50%);
        border-radius: 6px;
    }

    .form__parts {
        margin-top: 50px;
    }
    
    .form__category::before {
        border-radius: 6px;
        font-size: 2.4rem;
        width: 80px;
        margin-right: 12px;
        height: calc(3rem * 1.5);
    }

    input[type="text"],
    textarea {
    font-size: 2.4rem;
    padding: 8px;
    }

    textarea {
    min-height: 430px;
    }
    
    input[type="text"]:focus,
    textarea:focus {
    outline: 4px solid #956747;
    border-radius: 6px;
    }

    .form__policy a {
        border-bottom: 2px solid var(--primary-black, #341500);
        font-size: 2rem;
        width: 300px;
    }

    .policy {
        font-size: 3rem;
        margin-top: 24px;
    }

    input[type="checkbox"] {
        width: 30px;
        height: 30px;
        border: 2px solid #000;
        margin-right: 12px;
    }

    input[type="checkbox"]:checked::after {
        width: 18px;
        height: 9px;
        border-left:  3px solid var(--primary-black, #341500);
        border-bottom: 3px solid var(--primary-black, #341500);
    }

    /* ここからPHP関係 */

    /* 入力画面 */
    .form-error {
        font-size: 2rem;
    }
    /* 入力画面おわり */
    
    /* 確認画面 */
    .confirm_txt {
        font-size: 3rem;
    }

    .form__pc {
        display: grid;
        grid-template-columns: 1fr 2fr;
    }

    .confirm_attention {
        max-width: 1160px;
        font-size: 2.4rem;
        text-align: center;
        margin-bottom: 40px;
    }


    /* 確認画面おわり */

    /* 送信完了画面 */
    .complete {
        max-width: 600px;
        margin: 25px auto 100px;
    }
    
    .completeH1 {
        font-size: 5rem;
        margin-bottom: 40px;
    }
    
    .complete_txt p {
        font-size: 2rem;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .complete img {
        max-width: 85%;
        margin-bottom: 40px;
    }

    .br_nsp {
        display: block;
    }

    /* 送信完了画面終了*/
    /* PHP関係おわり */
}

/* TAB */
@media screen and (min-width:769px) and (max-width:1279px) {
    .box__letter{
        min-width: 600px;
        padding: 100px 70px;
    }

    h2 {
        font-size: 2.4rem;
    }
    
    .group {
        border-radius: 6px;
    }

    .form__parts {
        margin-top: 30px;
    }
    
    .form__category::before {
        border-radius: 6px;
        font-size: 1.8rem;
        width: 60px;
        margin-right: 8px;
        height: calc(2.4rem * 1.5);
    }

    input[type="text"],
    textarea {
    font-size: 1.8rem;
    padding: 8px;
    }

    textarea {
    min-height: 300px;
    }
    
    input[type="text"]:focus,
    textarea:focus {
    outline: 3px solid #956747;
    border-radius: 6px;
    }

    .form__policy a {
        border-bottom: 1px solid var(--primary-black, #341500);
        font-size: 1.6rem;
        width: 240px;
    }

    .policy {
        font-size: 2.4rem;
        margin-top: 20px;
    }

    input[type="checkbox"] {
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }

    input[type="checkbox"]:checked::after {
        width: 18px;
        height: 9px;
        border-left:  3px solid var(--primary-black, #341500);
        border-bottom: 3px solid var(--primary-black, #341500);
    }


    /* ここからPHP関係 */

    /* 入力画面 */
    .form-error {
        font-size: 1.6rem;
    }
    /* 入力画面おわり */

    /* 確認画面 */
    .btn {
        font-size: 1.6rem;
        padding: 14px 75px;
    }

    .confirm_txt {
        font-size: 2.4rem;
    }

    .confirm_attention {
        max-width: 600px;
        font-size: 2rem;
        margin-bottom: 40px;
    }

    /* 確認画面おわり */

    /* 送信完了画面 */
    .complete {
        max-width: 400px;
        margin: 25px auto 100px;
    }
    
    .completeH1 {
        font-size: 3.2rem;
        margin-bottom: 32px;
    }
    
    .complete_txt p {
        font-size: 1.6rem;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .complete img {
        margin-bottom: 24px;
    }

    .br_nsp {
        display: block;
    }

    /* 送信完了画面おわり */
    /* PHP関係おわり */
}


/* ============CONTACT=========== */