/*costsページ独自のスタイル 直接記述*/
/*h2のルビの振り方*/
.bg h2 ruby,
.bg h2 strong ruby {
    font-size: clamp(21.5px, 2.5vw, 28px);
    width: 100%;
    text-align: center;
    position: relative;
    padding-bottom: 30px;
}
.bg h2 strong ruby {
    color: #17288b;
}
.bg h2 ruby rt,
.bg h2 strong ruby rt {
    font-weight: normal;
    color: #2e2e2e;
    position: relative;
    top: -3px;
}
/*費用のコンテンツ*/
ul.costs_need_01 {
    width: 100%;
    margin: 30px auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
/*費用のコンテンツ 書式*/
ul.costs_need_01 h3,
ul.costs_need_01 p {
    text-align: center;
}
ul.costs_need_01 h3,
ul.costs_need_02 h3 {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: bold;
    color: #fff;
    width: 100%;
    line-height: 1.5em;
}
ul.costs_need_01 p,
ul.costs_need_02 p {
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: bold;
    color: #fff;
    width: 100%; 
    line-height: 1.5em;
}
ul.costs_need_01 p small,
ul.costs_need_02 p small {
    font-weight: normal;
}
ul.costs_need_02 p + p {
    margin-top: 10px;
}
/*費用のコンテンツ 背景・DIV周り*/
ul.costs_need_01 li {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    text-align: center;
    width: calc(50% + 15px);
    max-width: 480px;
    height: -webkit-fill-available;
    padding: 30px;
}
ul.costs_need_01 li:first-child {
    background-color: #5bc2d9;
    margin-right: -16px;
    mask-image: url(/sayuri/assets/img/costs/bg-cost-mask.png);
    mask-size: 100% 100%;
}
ul.costs_need_01 li:nth-child(2) {
    background-color: #00aad4;
    margin-left: -16px;
    mask-image: url(/sayuri/assets/img/costs/bg-cost-mask.png);
    mask-size: 100% 100%;
}
ul.costs_need_02 {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 930px;
    height: -webkit-fill-available;
    padding: 30px;
    margin: auto;
    background-image: url(/sayuri/assets/img/costs/bg-cost-mask02.png);
    background-size: 100% 100%;
}
/*費用のコンテンツ イラスト周り*/
ul.costs_need_01 img {
    width: 60%;
    max-width: 200px;
    margin: auto;
}
ul.costs_need_02 li:nth-child(1) {
    width: 35%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
}
ul.costs_need_02 li:nth-child(2) {
    width: 50%;
    padding: 20px;
    margin-left: -5%;
}
/*「+」マークの記述*/
ul.costs_need_01 + ul.costs_need_02:before {
    content: "";
    position: absolute;
    top: -65px;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 90px;
    background: url(/sayuri/assets/img/costs/illust-cost-04.png) no-repeat center;
    background-size: contain;
}
ul.costs_need_01 + ul.costs_need_02 {
    margin-top: 20px;
    position: relative;
}
p.costs_txt strong {
    font-weight: bold;
    color: #17288b;
}
@media only screen and (max-width: 890px) {
    /*背景周り*/
    ul.costs_need_01 li:first-child,
    ul.costs_need_01 li:nth-child(2) {
        width: 100%;
        height: fit-content;
        mask-image: url(/sayuri/assets/img/costs/bg-cost-maskSP.png);
        mask-size: 100% 100%;
        align-content: flex-start;
        padding: 20px 10px;
        margin: auto;
    }
    ul.costs_need_01 img {
        width: 42%;
        max-width: 135px;
        margin: 5px 7px 0 auto;
    }
    ul.costs_need_02 {
        height: fit-content;
        background-image: url(/sayuri/assets/img/costs/bg-cost-mask02sp.png);
        background-size: 100% 100%;
    }
    ul.costs_need_01 p, ul.costs_need_02 p {
        text-align: left;
        width: calc(58% - 15px);
        margin: 5px auto 0 7px;
        display: inline-flex;
        flex-wrap: wrap;
        align-content: center;
    }
    ul.costs_need_02 h3 {
        text-align: center;
    }
    ul.costs_need_02 p{
        width: calc(100% - 40px);
        margin: auto;
    }
    ul.costs_need_01 + ul.costs_need_02 {
        margin-top: 35px;
        padding: 20px 10px;
    }
    ul.costs_need_01 + ul.costs_need_02:before {
        top: -45px;
        height: 60px;
    }
    /*テキスト・画像*/
    ul.costs_need_02 li:nth-child(1),
    ul.costs_need_02 li:nth-child(2) {
        width: 100%;
        padding: 0;
        margin: 20px auto 0;
    }
}

/*料金プラン*/
/*初期費用敷金*/
ul.costs {
    background-color: #5bc2d9;
    padding: 20px;
    border-radius: 10px;
}
ul.costs > li:first-child {
    width: 100%;
    padding: 30px;
    display: flex;
    align-content: center;
    justify-content: space-between;
}
ul.costs > li:first-child h3,
ul.costs > li:first-child h4,
ul.costs > li:first-child h3 small,
ul.costs > li:first-child h4 small {
    line-height: 1em;
    color: #fff;
    width: fit-content;
}
ul.costs > li:first-child h3 {
    font-size: clamp(22px,3vw,28px);
}
ul.costs > li:first-child h4 {
    font-size: clamp(26px,3vw,38px);
    color: #ffff00;
}
ul.costs > li:first-child h4 span {
    font-size: clamp(22px,3vw,28px);
    color: #fff;
}
ul.costs > li:first-child h4 small{
    font-size: 18px;
}
ul.costs > li.r10 {
    border-radius: 10px !important;
}

/*費用内訳の項目が複数の場合*/
ul.costs > li:nth-child(2),
ul.costs > li:nth-child(3) {
    width: 100%;
    padding: 30px;
    background-color: #fff;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: space-between;
}
ul.costs > li:nth-child(2) {
    border-radius: 10px 10px 0 0;
}
ul.costs > li:nth-child(3) {
    border-radius: 0 0 10px 10px;
    position: relative;
}
ul.costs > li:nth-child(3):before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: calc(100% - 60px);
    border-top: 1px dashed #2e2e2e;
}
ul.costs > li:nth-child(2) h4,
ul.costs > li:nth-child(3) h4 {
    width: 100%;
    color: #17288b;
    line-height: 1em;
    text-align: left;
    margin-bottom: 20px;
    position: relative;
}
ul.costs li h4 img {
    position: absolute;
    right: 0;
    top: -10px;
    bottom: 0;
    margin: auto;
    width: 25%;
    max-width: 140px;
}
@media only screen and (max-width: 890px) {
    ul.costs li h4 img {
        top: 0;
        right: -10px;
        width: 35%;
    }
}
ul.costs > li:nth-child(2) h5,
ul.costs > li:nth-child(3) h5 {
    width: 100%;
    margin-top: 10px;
}
ul.costs + ul.costs {
    margin-top: 50px;
}
ul.costs._02 {
    background-color: #00aad4;
}
ul.costs._03 {
    background-color: #49bcbd;
    position: relative;
}
ul.costs._03 .attention {
    position: absolute;
    top: -35px;
    right: 10px;
    padding: 6px 40px;
    background-color: #ec6d74;
    border-radius: 8px;
    font-size: clamp(14px,3vw,15px);
    color: #fff;
}
ul.costs._03 .attention:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-top: 17px solid #ec6d74;
    border-bottom: 0;
    z-index: 1;
}
ul.costs._03:before {
    content: "";
    position: absolute;
    top: -65px;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 90px;
    background: url(/sayuri/assets/img/costs/illust-cost-04.png) no-repeat center;
    background-size: contain;
}
/*料金プラン 費用内訳*/
/*料金プラン 変動費*/
ul.uchiwake,
.uchiwake_txt {
    width: calc(50% - 15px);
}
ul.uchiwake,
ul.hendouhi {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    grid-gap: 5px;
}
/*項目と金額の行*/
ul.uchiwake li,
ul.hendouhi li {
    width: 100%;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    position: relative;
}
ul.uchiwake li {
    justify-content: space-between;
}
ul.hendouhi li {
    justify-content: flex-start;
    padding: 2px 0;
}
ul.hendouhi li span {
    width: 25%;
    position: relative;
}
/*項目と金額のテキスト*/
ul.uchiwake li strong,
ul.uchiwake li p,
ul.hendouhi li strong,
ul.hendouhi li p {
    background-color: #fff;
    z-index: 1;
}
ul.uchiwake li strong,
ul.hendouhi li strong {
    font-size: clamp(15px,3vw,16px);
    padding-right: 5px;
}
ul.uchiwake li p {
    font-size: clamp(16px,3vw,17px);
    padding-left: 5px; 
}
ul.hendouhi li p {
    padding-left: 5px; 
}
ul.hendouhi li p strong {
    color: #17288b;
}
/*項目と金額の間に引く線*/
ul.uchiwake li:before, 
ul.hendouhi li:before {
    content: "";
    width: 100%;
    height: 1px;
    position: absolute;
    z-index: 0;
    border-top: dotted 2px #2e2e2e;
}
ul.uchiwake li:before {
    top: 50%;
} 
ul.hendouhi li:before {
    width: 50% !important;
    top: 12px;
}
/*内訳の注釈*/
.uchiwake_txt {
    font-size: clamp(13px,3vw,14px);
    text-indent: -1.2em;
    padding: 30px;
    padding-left: calc(1.2em + 30px);
    border-radius: 10px;
}
.uchiwake_txt p + p {
    margin-top: 10px;
}

/*料金プラン SP版調整*/
@media only screen and (max-width: 890px) {
    ul.costs > li:first-child,
    ul.costs > li:nth-child(2),
    ul.costs > li:nth-child(3) {
        padding: 20px;
        flex-wrap: wrap;
    }
    ul.costs{
        padding: 5px;
    }
    ul.costs > li:first-child h3,
    ul.costs > li:first-child h4 {
        width: 100%;

    }
    ul.costs > li:first-child h4 {
        text-align: right;
        margin-bottom: 0;
    }
    ul.uchiwake,
    .uchiwake_txt {
        width: 100%;
    }
    .uchiwake_txt {
        margin: 10px auto;
        padding: 20px;
        padding-left: calc(1.2em + 20px);
    }
    ul.costs._03 {
        margin-top: 100px !important;
    }
    ul.costs._03:before {
        height: 48px;
        top: -88px;
    }
    ul.hendouhi li p {
        padding: 3px 0 5px;
    }
    ul.hendouhi li span {
        width: 100%;
    }
    ul.hendouhi li:before {
        border: none;
    }
}

/*補足説明レイアウト*/
ul.contents.brief_box {
    position: relative;
    max-width: 930px;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #17288b;
    grid-gap: 30px;
}
ul.contents.brief_box h2 {
    padding-bottom: 0;
}
ul.contents.brief_box h3.title {
    position: absolute;
    top: -30px;
    left: 10px;
    width: 30%;
    padding: 8px;
    color: #fff;
    background-color: #17288b;
    text-align: center;
    border-radius: 25px;
}
@media only screen and (max-width: 890px) {
    ul.contents.brief_box {
        padding: 40px 0 20px;
        grid-gap: 10px;
    }
    ul.contents.brief_box h3.title {
        left: 0;
        right: 0;
        width: 90%;
        margin: auto;
    }
}

/*補足説明 月額費一例*/
ul.example {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-between;
    column-gap: 30px;
}
ul.example > li:first-child {
    width: calc(45% - 30px);
    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    justify-content: flex-start;
}
ul.example > li:last-child {
    width: 55%;
    background-color: #f3f6ff;
    padding: 30px;
    border-radius: 10px;
}
ul.example + ul.example {
    border-top: 1px dashed #2e2e2e;
    padding-top: 30px;
}
@media only screen and (max-width: 890px) {
    ul.example {
        padding: 15px;
    }
    ul.example > li:first-child {
        width: calc(100% - 20px);
        margin: auto;
    }
    ul.example > li:last-child {
        width: calc(100% - 20px);
        padding: 20px;
        margin: 15px auto 0;
    }
}

/*補足説明 月額費一例　左側*/
.ichirei_txt,
.ichirei_costs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 20px;
    grid-gap: 10px;
}
.ichirei_txt p,
.ichirei_costs p ,
.ichirei_costs strong {
    font-size: clamp(20px,3vw,22px);
    font-weight: bold;
    line-height: 1em;
    margin-bottom: 8px;
}
.ichirei_txt p:before {
    content: "●";
    color: #49bcbd;
    padding-right: 5px;
}
.ichirei_costs strong {
    font-size: clamp(28px,3vw,38px);
    color: #17288b;
    padding-left: 5px;
}

/*補足説明 月額費一例　右側*/
ul.ichirei_uchiwake {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 10px;
}
ul.ichirei_uchiwake li {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
    position: relative;
}
ul.ichirei_uchiwake li:before {
    content: "";
    position: absolute;
    top: 50%;
    width: 100%;
    border-top: dotted 2px #2e2e2e;
    z-index: 0;
}
ul.ichirei_uchiwake li strong,
ul.ichirei_uchiwake li p {
    font-size: clamp(20px,3vw,22px);
    font-weight: bold;
    line-height: 1em;
    background-color: #f3f6ff;
    z-index: 1;
}
ul.ichirei_uchiwake li strong {
    padding-right: 5px;
}
ul.ichirei_uchiwake li p {
    padding-left: 5px;
}
strong.a{color: #00aad4;}
strong.b{color: #49bcbd;}

/*終末期医療支援型 料金プラン*/
/*対象の説明*/
.subject {
    width: 100%;
    position: relative;
}
.subject h3 {
    font-size: clamp(20px, 2.5vw, 24px);
}
.subject p {
    width: 50%;
}
.subject img {
    position: absolute;
    right: 15%;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 25%;
    max-width: 210px;
    height: auto;
}
@media only screen and (max-width: 890px) {
    .subject p {
        width: 65%;
    }
    .subject img {
        right: -10px;
        top: 50px;
        width: 35%;
    }
}

/*入居前のご準備*/
.ready {
    padding: 50px;
    margin: 50px auto;
    position: relative;
    background-color: #fff;
}
.ready h2 {
    text-align: left;
}
.ready img {
    position: absolute;
    right: 15%;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 35%;
    max-width: 160px;
    height: auto;
}
.ready ul {
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    grid-gap: 15px;
    column-gap: 12px;
    padding-right: 40%; 
}
.ready ul li {
    width: fit-content;
    display: inline-block;
    line-height: 1em;
    position: relative;
    padding-left: 17px;
}
.ready ul li:before {
    content: "";
    width: 10px;
    height: 10px;
    border: solid 2px #17288b;
    position: absolute;
    left: 0;
    top: 1px;
    bottom: 0;
    margin: auto;
}
@media only screen and (max-width: 890px) {
    .ready {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
        padding: 30px;
    }
    .ready ul {
        grid-gap: 10px;
        column-gap: 5px;
        padding-right: 0%;
    }
    .ready img {
        margin-top: 0;
        width: auto;
        height: 100px;
        top: -30px;
        right: 10%;
    }
    .ready ul li {
        align-items: flex-start;
        line-height: 1.5em;
    }
    .ready ul li:before {
        margin: 4px auto;
    }

}