@charset "UTF-8";

/* 葬儀プランの一覧レイアウト調整 */
@media screen and (min-width: 1151px) {
    #funeral-plan_all + section .plan_all2 {
        justify-content: center;
    }
}

/* ---------------------------20250717----------------------------- */
/*----葬儀プラン-----*/
@media screen and (max-width: 900px) {
    .plan_all2 .price_all {
        width: 90%;
        margin-left: 5%;
    }
    .plan_all2 .price1 {
        width: 100%;
    }
    .plan_all2 .price1 span {
        font-size: 2.1rem;
    }
    .plan_all2 .siryou {
        color: #a80000;
    }
    .plan_all2 .price2 {
        display: none;
    }
    .plan_all2 .plan:nth-child(7) .siryou {
        display: none;
    }
    .plan_all2 .plan:nth-child(7) .price_all {
        margin-top: 46px;
        width: 90%;
        margin-left: 5%;
    }
        .plan_all2 .plan:nth-child(2), .plan_all2 .plan:nth-child(3), .plan_all2 .plan:nth-child(4), .plan_all2 .plan:nth-child(6) {
            display: block;
        }
}
@media screen and (max-width: 768px) {
    .plan_all2 {
        display: flex;
        gap: 20px;
        justify-content: center;
    }
    .plan_all2 .plan {
        flex: 0 0 auto;
        width: 300px;
        overflow: hidden;
        scroll-snap-align: start;
        /* margin-left: 0; */
        margin-top: 0 !important;
        /* ここから追記 */
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }
    .plan_all2 .plan:not(:first-child) {
        margin-left: 4% !important;
    }

    .plan_all2 .plan_img {
        display: flex;
        box-sizing: border-box;
        flex-direction: row-reverse;
        align-items: flex-start;
        padding: 10px 10px 0;
        gap: 0px;
        /* ここから追記 */
        flex: 1 1 auto;
    }
    .plan_all2 .sub_title {
        flex-grow: 1;
        align-content: center;
    }
    .plan_all2 .ttl {
        display: flex;
        flex-direction: column-reverse;
        flex-basis: 55%;
        max-width: 55%;
    }
    .plan_all2 .main_img {
        flex-basis: 45%;
        max-width: 45%;
        width: 100%;
        margin-left: 0;
    }
    .plan_all2 .sub_title {
        font-size: 1.25rem;
        padding-top: 2px;
    }
    .plan_all2 .text {
        width: 100%;
        margin-left: 0;
    }
    /* 色変更 */
    .plan_all2 .plan:nth-child(1) h2 {
        background: #acacac;
        color: #fff;
    }
    .plan_all2 .plan:nth-child(2) h2 {
        background: #f3a679;
        color: #fff;
    }
    .plan_all2 .plan:nth-child(3) h2 {
        background: #2c8570;
        color: #fff;
    }
    .plan_all2 .plan:nth-child(4) h2 {
        background: #3e523a;
        color: #fff;
    }
    .plan_all2 .plan:nth-child(5) h2 {
        background: #af507a;
        color: #fff;
    }
    .plan_all2 .plan:nth-child(6) h2 {
        background: #0e3363;
        color: #fff;
    }
    .plan_all2 .plan:nth-child(7) h2 {
        background: #735f0d;
        color: #fff;
    }
    .plan_all2 .plan h2 {
        color: #fff;
    }
    .plan_all2 .plan:nth-child(1) .sub_title {
        background: #eeeeee;
        color: #acacac;
    }
    .plan_all2 .plan:nth-child(2) .sub_title {
        background: #faece3;
        color: #f3a679;
    }
    .plan_all2 .plan:nth-child(3) .sub_title {
        background: #e2f1ed;
        color: #2c8570;
    }
    .plan_all2 .plan:nth-child(4) .sub_title {
        background: #e4f0e2;
        color: #3e523a;
    }
    .plan_all2 .plan:nth-child(5) .sub_title {
        background: #fae7f0;
        color: #af507a;
    }
    .plan_all2 .plan:nth-child(6) .sub_title {
        background: #e3eaf4;
        color: #0e3363;
    }
    .plan_all2 .plan:nth-child(7) .sub_title {
        background: #f2efe1;
        color: #735f0d;
    }
    .plan_all2 .sub_img {
        width: 75%;
        margin: 5px auto 20px;
    }
    .plan_all2 .plan_img > * {
        align-self: stretch;
        flex: 1;
        display: flex;
    }
    .plan_all2 .siryou {
        margin-bottom: 2px;
    }
    .plan_all2 .main_img img {
        object-fit: cover;
    }
}

@media screen and (max-width: 470px) {
    .plan_all2 h2 {
        font-size: 2.0rem;
    }
    .plan_all2 .text {
        width: 100%;
        margin-left: auto;
    }
}