@charset "utf-8";

.maincat_v {
    height: 500px;
    background-image: url("../funeral/img/main_sp.jpg");
    background-size: cover;
    background-position: center center;
    margin-bottom: 60px;
}

.maincat_v h1 img {
    height: 230px;
    width: auto;
    margin: 170px auto 0 auto;
}

.main_copy h2,
.main_copy p {
    text-align: center;
}

.main_copy h2 {
    margin-bottom: 40px;
}

.main_copy p {
    line-height: 2.2;
}

#plan_a h3,
#plan_b h3,
#plan_c h3 {
    border-top: 1px dotted #ccc;
    border-bottom: 1px dotted #ccc;
    padding: 15px 5px;
    margin-bottom: 40px;
}

.plan_t h2 {
    text-align: center;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    padding: 20px;
    margin: 60px auto 20px auto;
}

.faq {
    margin-bottom: 32px;
    letter-spacing: 0;
}

.faq__dt,
.faq__dd {
    position: relative;
    padding-left: 24px;
}

.faq__dd {
    padding-bottom: 32px;
    border-bottom: 1px solid #e3e3e3;
}

.faq__dt::before,
.faq__dd::before {
    position: absolute;
    left: 0;
    top: 0;
}

.faq__dt {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.faq__dt::before {
    font-weight: bold;
    content: 'Q.';
    color: #c80021;
    /* 「Q」の文字色 */
}

.faq__dd::before {
    content: 'A.';
    color: #1e50a2;
    /* 「A」の文字色 */
}

#faq h2,
.contact h2 {
    text-align: center;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 20px;
    margin: 0 auto 50px auto;
}

.balloon,
.balloon_end {
    position: relative;
    display: inline-block;
    margin: 0 0 1em 0;
    padding: 10px 10px 10px 20px;
    width: 100%;
    color: #fff;
    background-color: #7c6554;
    text-align: left;
    font-size: 1.2rem;
}

.balloon:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border: 10px solid transparent;
    border-top: 10px solid #7c6554;
}

.contact {
    background-image: url('../funeral/img/contact.jpg');
    background-size: cover;
    background-position: center center;
    background-color: #f1f8ff;
    margin: 100px auto;
    padding: 100px 0;
    color: #fff;
}

.contact h3 {
    text-align: center;
    margin-bottom: 50px;
}

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

.contact h4 {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #8b8b8b;
    margin-bottom: 20px;
}

.contact .btn {
    width: 60%;
    display: block;
    margin: auto;
}

.contact .btn {
    width: 100%;
}

.tel {
    width: 50%;
    margin: 25px auto 50px auto;
}

.balloon p,
.balloon_end p {
    margin: 0;
    padding: 0;
}

ol li {
    margin-bottom: 0.5rem;
}

.btn-primary {
    position: relative;
    display: inline-block;
    padding: .9em 4em;
    background-color: #fff;
    border: 1px solid #4b4b6f;
    color: #1e50a2;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

.btn-primary:hover {
    background-color: #4b4b6f;
    border: 1px solid #4b4b6f;
}

.btn-primary::after {
    position: absolute;
    top: 50%;
    right: .8em;
    content: '';
    margin-top: -5px;
    border: 7px solid transparent;
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-color: #4b4b6f;
    opacity: 0;
    animation: arrow 1.2s infinite;
}

.contact .btn {
    width: 100%;
}

.note {
    margin-bottom: 60px;
}


.item p {
    font-size: 0.9rem;
    text-align: center;
    padding: 10px;
    letter-spacing: 0;
}

.item p span {
  font-size: 0.7rem;
    background-color: #eae4ff;
    display: block;

}

.expense img {
    width: auto;
    height: 60px;
    margin: 0 0 30px auto;
}

.contact h5 {
    text-align: center;
}

.contact p {
    text-align: center;
}

#sample h2{
    text-align: center;
    margin-top: 80px;
    margin-bottom: 30px;
}

#sample table{
    width: 100%;
    margin-bottom: 10px;
}

#sample td{
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.price{
    text-align: right;
}

@media (min-width: 576px) {
    .maincat_v {
        height: 500px;
        background-image: url("../funeral/img/main.jpg");
        background-size: cover;
        background-position: center center;
        margin-bottom: 100px;
    }

    .maincat_v h1 img {
        height: 250px;
        margin: 125px auto 0 auto;
    }

    .container-fluid {
        max-width: 1520px;
    }

    #plan_a,
    #plan_b,
    #plan_c {
        margin: 150px auto;
        padding-top: 50px;
    }

    .plan_t {
        display: flex;
        justify-content: center;
    }

    #plan_a .plan_title,
    #plan_c .plan_title {
        border-right: 2px solid #ccc;
        margin: 0 60px 0 -60px;
    }

    #plan_b .plan_t {
        margin-right: 40px;
    }

    #plan_b .plan_title {
        border-left: 2px solid #ccc;
        margin: 0 -40px 0 40px;
    }

    .plan_t h2,
    .plan_t p {
        writing-mode: vertical-rl;
    }

    .plan_t h2 {
        font-size: 2rem;
        order: 2;
        margin: 0;
        color: #4b4b6f;
    }

    .plan_t p {
        order: 1;
    }

    .iend {
        margin-bottom: 60px;
    }

    .item img {
        width: 80px;
        margin: 0 auto;
    }

    .expense img {
        width: auto;
        height: 60px;
        margin: 0 0 30px auto;
    }

    #faq, #sample {
        max-width: 1300px;
        margin: auto;
    }

    #faq h2,
    .contact h2 {
        margin-left: auto;
        border-left: 1px solid #ccc;
        border-right: 1px solid #ccc;
        border-top: none;
        border-bottom: none;
        padding: 20px;
        margin: 0 auto 50px auto;
        -ms-writing-mode: tb-rl;
        writing-mode: vertical-rl;
    }


    .contact .btn {
        width: 80%;
    }

    .contact h3 {
        text-align: center;
        margin-bottom: 70px;
    }

    .contact p {
        text-align: center;
        margin-bottom: 30px;
    }

    .btn-primary {
        width: auto;
    }
    
    .sns01,.sns02{
        display: none;
    }

    #sample h2{
        text-align: center;
        margin-top: 0;
        margin-bottom: 30px;
    }
    
}
