@charset "utf-8";

/* Features Section CSS (User Provided) */
.contents {
    padding-top: 60px;
}

.contents a {
    text-decoration: none;
}

.contents a:hover {
    color: var(--color-link);
}

@media screen and (min-width: 1280px) {
    .contents {
        padding-top: 100px;
    }
}

/* --------------------------------------------------------------------------------------------------- */
@media screen and (min-width: 1280px) {
    .mainContents {
        position: relative;
        overflow: hidden;
        margin-left: 50px;
        margin-right: 50px;
        margin-bottom: 120px;
        padding-bottom: 180px;
    }

    .mainContents::after {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 220px;
        content: '';
        background: linear-gradient(to bottom, rgba(253, 253, 253, 0), #fdfdfd 85%);
        z-index: 2;
        pointer-events: none;
    }

    /*.mainContents::after {
		position: absolute;
		content: "";
		top: auto;
		bottom: 0;
		right: 0;
		left: auto;
		width: calc((((1440px - (var(--wcalc-gap) * 9)) / 10) * 9) + (var(--wcalc-gap) * 8) + ((100vw - var(--scrollbar-width) - 1440px) / 2));
		height: calc(100% - 60px);
		background-color: #f7f5f2;
		border-radius: 5px 0 0 5px;
		z-index: 0;
	}*/
}

.mainContents__list {
    position: relative;
    margin-bottom: 20px;
    padding: 30px 0;
    z-index: 1;
}

.mainContents__list:last-child {
    margin-bottom: 0;
}

.mainContents__list::after {
    position: absolute;
    content: "";
    width: calc(100% - 25px);
    height: 100%;
    border-radius: 5px 0 0 5px;
    top: 0;
    left: 50px;
    z-index: -1;
}

@media screen and (min-width: 768px) {
    .mainContents__list {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .mainContents__list::after {
        width: calc(100vw - var(--scrollbar-width) - 50px - 50px);
    }
}

@media screen and (min-width: 1280px) {
    .mainContents__list {
        display: flex;
        justify-content: space-between;
        margin-bottom: 0;
        padding: 20px 0 45px;
    }

    .mainContents__list::after {
        display: none;
    }

    .mainContents__list.sub {
        padding-top: 0;
        padding-bottom: 50px;
    }
}

.mainContents__item {
    margin-bottom: 20px;
}

.mainContents__item:last-child {
    margin-bottom: 0;
}

@media screen and (min-width: 768px) {
    .mainContents__item {
        width: calc(50% - 10px);
    }
}

@media screen and (min-width: 1280px) {
    .mainContents__item {
        position: relative;
        margin-bottom: 0;
    }

    .mainContents__item.-ambulatory {
        --bgc: #77bd31;
    }

    .mainContents__item.-hospitalization {
        --bgc: #6fbdde;
    }

    .mainContents__item.-check-up {
        --bgc: #a799fc;
    }

    .mainContents__item.-rehabilitation {
        --bgc: #fb8c96;
    }

    .mainContents__item.-service {
        --bgc: #fba64a;
    }

    .main .mainContents__item {
        width: calc((((100% - (40px * 9)) / 10) * 2) + (40px * 1));
    }

    .sub .mainContents__item {
        width: calc(33.33% - ((40px * 2) / 3));
    }

    .main .mainContents__item::after {
        position: absolute;
        content: "";
        top: 100px;
        right: 0;
        left: -20px;
        bottom: auto;
        margin: auto;
        display: block;
        background-color: var(--bgc);
        /* display: block; */
        display: none;
        z-index: 0;
        mix-blend-mode: color;
        width: calc(100% + 600px);
        height: calc(100% - 60px);
        border-radius: 8px;
        transform: translate(-25%, 25%);
        transition: opacity 0.4s cubic-bezier(.65, .05, .36, 1);
        opacity: 0.5;
        filter: blur(128px);
        border-radius: 100%;
    }

    .main .mainContents__item:nth-child(even)::after {
        top: 180px;
    }

    /* safari はblurの負荷がかかりすぎるので表示しない */
    .is_safari .main .mainContents__item::after {
        display: none;
        content: none;
    }
}

.mainContents__anchor {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 8px 8px 20px rgba(0, 0, 0, .1);
    transition: box-shadow 0.2s ease;
}

.main .mainContents__anchor {
    border-radius: 15px;
}

.mainContents__anchor:hover {
    box-shadow: 2px 2px 8px rgba(0, 0, 0, .15);
    transition-duration: 0.2s;
}

.sub .mainContents__anchor {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding-right: 20px;
}

.mainContents__hoverelm {
    display: none;
}

@media screen and (min-width: 1280px) {
    .-loaded a.mainContents__anchor:hover {
        color: #fff;
    }

    .sub .mainContents__anchor:hover {
        color: #fff;
    }

    /* ---------------------------------------- */
    .main .mainContents__anchor {
        display: flex;
        flex-direction: column;
        z-index: 2;
        height: 100%
    }

    /* ブラウザの拡大表示を行うとscaleで拡大させるとChromeなどでずれるためtransformでの拡大を使用しない方法に変更 */
    .mainContents__hoverelm {
        position: absolute;
        inset: 0 -100%;
        display: block;
        width: calc(var(--scale) * 1px);
        height: calc(var(--scale) * 1px);
        margin: auto;
        z-index: 1;
        mix-blend-mode: multiply;
    }

    .mainContents__hoverelm::before,
    .mainContents__hoverelm::after {
        position: absolute;
        inset: 0;
        margin: auto;
        display: block;
        background-color: var(--bgc);
        width: 0;
        height: 0;
        border-radius: 100%;
        transition: 0.4s cubic-bezier(.77, 0, .18, 1);
        transition-property: opacity, translate, width, height;
        z-index: 2;
        opacity: 0;
        content: "";
    }

    .mainContents__anchor:hover .mainContents__hoverelm::before,
    .mainContents__anchor:hover .mainContents__hoverelm::after {
        width: calc(var(--scale) * 1px);
        height: calc(var(--scale) * 1px);
        transition-duration: 0.4s;
        transition-timing-function: cubic-bezier(.19, 1, .22, 1);
        translate: 0 0;
    }

    .mainContents__anchor:hover .mainContents__hoverelm::before {
        opacity: 0.5;
    }

    .mainContents__anchor:hover .mainContents__hoverelm::after {
        opacity: 0.8;
        transition-duration: 0.8s;
        transition-delay: 0.2s;
    }

    /* ---------------------------------------- */
    .sub .mainContents__anchor {
        height: 120px;
    }

    .sub .mainContents__anchor:hover {
        color: #fff;
    }

    .sub .mainContents__anchor::before {
        position: absolute;
        inset: 0;
        left: calc((var(--longside) - var(--scale)) / 2 * 1px);
        width: 0;
        height: 0;
        border-radius: 50%;
        margin: auto;
        background-color: #698CC8;
        transition: 0.4s cubic-bezier(.77, 0, .18, 1);
        transition-property: opacity, translate, width, height;
        z-index: 2;
        opacity: 0;
        content: "";
    }

    .sub .mainContents__anchor:hover::before {
        width: calc(var(--scale) * 1px);
        height: calc(var(--scale) * 1px);
        opacity: 1;
        transition-duration: 0.8s;
        transition-timing-function: cubic-bezier(.19, 1, .22, 1);
    }
}

.mainContents__img {
    position: relative;
    width: 90px;
    height: 90px;
    overflow: hidden;
    z-index: 1;
}

.mainContents__img img {
    width: 100%;
    vertical-align: bottom;
    transition: transform 1s cubic-bezier(.17, .84, .44, 1);
}

.mainContents__img-fg {
    display: none;
}

@media screen and (min-width: 768px) {
    .mainContents__img {
        width: 110px;
        height: 110px;
    }
}

@media screen and (min-width: 1280px) {
    .mainContents__img {
        width: 100%;
        height: var(--height, auto);
        background-color: var(--bgc);
    }

    .mainContents__img img {
        object-fit: cover;
    }

    .-loading .mainContents__img img {
        opacity: 0;
    }

    /* The loading indicator has no image, so the photo fades in as soon as it has loaded. */
    .-loaded .mainContents__img img {
        opacity: 1;
        transition: transform 1s cubic-bezier(.17, .84, .44, 1), opacity .6s ease;
    }

    .no-object-fit .mainContents__img img {
        height: auto;
    }

    a:hover .mainContents__img img {
        transform: scale(1.1);
    }

    .mainContents__img-fg {
        position: absolute;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        display: block;
        width: calc(100% - 40px);
        height: 50px;
        margin: auto;
        border-radius: 10px 10px 0 0;
        padding: 20px 15px 0;
        background-color: #fff;
        box-sizing: border-box;
        --w: 20px;
    }

    .mainContents__img-fg::before,
    .mainContents__img-fg::after {
        position: absolute;
        content: "";
        display: block;
        width: var(--w);
        height: var(--w);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        bottom: 0%;
    }

    /*
	.mainContents__img-fg::before {
		left: calc(var(--w) * -1);
		background-image: var(--round-out-corner-RB);
	}
	.mainContents__img-fg::after {
		right: calc(var(--w) * -1);
		background-image: var(--round-out-corner-LB);
	}
	*/
    .mainContents__indicator {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 25px;
        height: 25px;
        margin: auto;
        opacity: 1;
        z-index: 1;
    }

    .-loaded .mainContents__indicator {
        opacity: 0;
        transition: opacity 0.5s ease-out 0.5s;
    }

    .mainContents__indicator__inner {
        position: absolute;
        top: -24px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        display: block;
        margin: auto;
        z-index: 9999;
        /* background-image: url(/common/images/indicator_w.png); */
        background-repeat: no-repeat;
        background-position: left top;
        background-size: 25px 300px;
        animation: indicatorAnimation 0.75s steps(12) infinite;
    }
}

.mainContents__txt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 90px);
    height: 90px;
    padding: 10px;
    padding-left: 20px;
    box-sizing: border-box;
    transition: color .5s cubic-bezier(.65, .05, .36, 1);
    z-index: 2;
}

@media screen and (min-width: 768px) {
    .mainContents__txt {
        width: calc(100% - 110px);
        height: 110px;
    }
}

@media screen and (min-width: 1280px) {
    .mainContents__txt {
        height: 100%;
    }

    .main .mainContents__txt {
        position: relative;
        flex-direction: column;
        width: 100%;
        height: auto;
        flex-grow: 1;
        padding: 55px 15px 25px;
        z-index: 3;
    }

    .main a:hover .mainContents__txt::after {
        width: 100%;
    }

    .sub .mainContents__txt {
        width: auto;
        padding: 0 0 0 10px;
        flex-grow: 1;
    }

    .sub .mainContents__ttl .ja {
        font-size: 1.125rem;
    }

    .sub .mainContents__icon {
        width: 80px;
        height: 100%;
        border-right: none;
    }
}

.mainContents__ttl {
    text-align: left;
}

.mainContents__ttl span {
    display: block;
}

.mainContents__ttl .ja {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.4;
}

.mainContents__ttl .en {
    font-size: 0.7rem;
    font-family: 'Open Sans', sans-serif;
    margin-top: 5px;
    opacity: 0.6;
}

@media screen and (min-width: 768px) {
    .mainContents__ttl .ja {
        font-size: 1.6rem;
    }
}

@media screen and (min-width: 1280px) {
    .main .mainContents__ttl {
        text-align: center;
    }

    .mainContents__ttl .ja {
        font-size: 1.8rem;
    }
}

.mainContents__des {
    display: none;
    margin-top: 10px;
    padding: 10px;
    text-align: center;
    font-feature-settings: "palt";
    line-height: 1.8;
    font-size: 0.8rem;
}

.mainContents__des>* {
    margin-top: 10px;
}

.mainContents__des>*:first-child {
    margin-top: 0;
}

@media screen and (min-width: 1280px) {
    .mainContents__des {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        min-height: calc(3em * 1.8);
        box-sizing: border-box;
    }
}

.mainContents__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 90px;
    height: 90px;
    z-index: 2;
    border-right: 0.6px solid rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.mainContents__icon img {
    width: 36px;
    height: auto;
    position: relative;
    z-index: 2;
}

.mainContents__icon .icon {
    position: relative;
    stroke-width: 0.8;
    z-index: 1;
}

.mainContents__icon svg {
    width: 36px;
    height: 36px;
}

.mainContents__icon svg .color_1 {
    stroke: #4B5663;
    transition: stroke .4s cubic-bezier(.65, .05, .36, 1);
}

.mainContents__icon svg .color_2 {
    stroke: #768EC6;
    transition: stroke .4s cubic-bezier(.65, .05, .36, 1);
}

.main .mainContents__icon {
    display: none;
}

@media screen and (min-width: 768px) {
    .mainContents__icon {
        width: 110px;
        height: 110px;
    }

    .mainContents__icon img {
        width: 60px;
    }

    .mainContents__icon .icon {
        stroke-width: 0.6;
    }

    .mainContents__icon svg {
        width: 60px;
        height: 60px;
    }
}

@media screen and (min-width: 1280px) {
    .mainContents__icon {
        width: 100px;
        height: 100%;
        border-right: none;
    }

    .mainContents__icon img {
        width: 100px;
    }

    a:hover .mainContents__icon svg .color_1,
    a:hover .mainContents__icon svg .color_2,
    .sub .mainContents__anchor:hover .mainContents__icon svg .color_1,
    .sub .mainContents__anchor:hover .mainContents__icon svg .color_2 {
        stroke: #fff;
    }

    .mainContents__icon::before {
        content: "";
        position: absolute;
        inset: 0;
        width: 0px;
        height: 0px;
        margin: auto;
        border-radius: 100%;
        background-color: #4769b7;
        transition: 0.4s cubic-bezier(.77, 0, .18, 1);
        transition-property: opacity, translate, width, height;
        z-index: 1;
        opacity: 0;
    }

    a:hover .mainContents__icon::before {
        width: 80px;
        height: 80px;
        opacity: 1;
        transition-duration: 0.8s;
        transition-delay: 0.2s;
        transition-timing-function: cubic-bezier(.22, 1.42, .35, .99);
    }

    .main .mainContents__icon {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        transform: translateY(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto;
        margin: auto;
        transition: 0.4s cubic-bezier(.77, 0, .18, 1);
    }

    .main .mainContents__icon::before {
        background-color: var(--bgc);
    }

    .main a:hover .mainContents__icon {
        color: var(--bgc);
    }

    .main a:hover .mainContents__icon::before {
        background-color: #fff;
        transition-delay: 0.4s;
    }
}

/* Hover color overrides removed to revert to previous state */


.mainContents__more {
    display: flex;
    align-items: center;
}

.mainContents__more .lbl {
    font-size: 0.8rem;
    padding-right: 30px;
    opacity: 0;
    transition: 0.5s cubic-bezier(.77, 0, .18, 1);
    transition-property: opacity, transform;
    display: none;
}

.mainContents__more .icon {
    width: 24px;
    height: 24px;
}

.mainContents__more .icon svg {
    display: block;
    overflow: visible;
}

.mainContents__more .icon circle,
.mainContents__more .icon polyline {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
}

@media screen and (min-width: 1280px) {
    .mainContents__more {
        position: relative;
        height: 24px;
    }

    .main .mainContents__more {
        margin-top: auto;
    }

    .mainContents__more .icon {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        margin: auto;
        transition: transform 0.5s cubic-bezier(.77, 0, .18, 1);
        stroke-width: 1.3;
    }

    .sub .mainContents__more .icon {
        position: static;
        margin: auto;
    }

    .sub .mainContents__more {
        margin-left: auto;
    }

    .mainContents__more .lbl {
        display: block;
        transform: translateX(1em);
    }

    a:hover .mainContents__more .lbl {
        opacity: 1;
        transform: translateX(0);
    }

    .main a:hover .mainContents__more .icon {
        transform: translateX(30px);
    }
}

/* --------------------------------------------------------------------------------------------------- */
/* Staggered reveal for the main contents list.                                                         */
/* Uses the shared reveal timing from style.css. Items that sit side by side are staggered; a single     */
/* column reveals each card as it arrives, so it is not delayed by its position in the list.            */
/* --------------------------------------------------------------------------------------------------- */

/* The cards pop up (grow from slightly smaller with a small spring), like the other cards on the page. */
.mainContents__list.main.w-state .mainContents__item {
    opacity: 0;
    transform: translateY(calc(var(--reveal-distance, 24px) * 0.6)) scale(var(--pop-scale, 0.84));
    transition: opacity 420ms ease-out,
        transform var(--pop-duration, 720ms) var(--pop-ease, ease-out);
}

/* translateY(0) keeps the same stacking context the previous keyframe animation left behind. */
.mainContents__list.main.w-state .mainContents__item.is-animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media screen and (min-width: 768px) and (max-width: 1279px) {
    .mainContents__list.main.w-state .mainContents__item:nth-child(even) {
        transition-delay: var(--reveal-stagger, 90ms);
    }
}

@media screen and (min-width: 1280px) {
    .mainContents__list.main.w-state .mainContents__item:nth-child(2) { transition-delay: calc(var(--reveal-stagger, 90ms) * 1); }
    .mainContents__list.main.w-state .mainContents__item:nth-child(3) { transition-delay: calc(var(--reveal-stagger, 90ms) * 2); }
    .mainContents__list.main.w-state .mainContents__item:nth-child(4) { transition-delay: calc(var(--reveal-stagger, 90ms) * 3); }
    .mainContents__list.main.w-state .mainContents__item:nth-child(5) { transition-delay: calc(var(--reveal-stagger, 90ms) * 4); }
}

@media (prefers-reduced-motion: reduce) {
    .mainContents__list.main.w-state .mainContents__item {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
}