@charset "utf-8";

@media screen and (max-width: 440px) {

    #service-visitingnurse.main-back {
        margin-top: 3.13rem;
    }
}


.feature-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 6.25rem;
    padding: 0 5%;
    box-sizing: border-box;
}

.feature-container {
    margin-bottom: 6.25rem;
}

#feature h3 {
    margin-bottom: 1.88rem;
}

#feature .flex-pc {
    gap: 3.75rem;
}

#feature .flex-pc > li {
    flex: 1;
}

#feature .img-box_02 {
    margin-bottom: 2.5rem;
}

#feature h4 {
    margin-bottom: 1.25rem;
}

#feature .trial-box {
    justify-content: center;
    gap: 1.88rem;
    padding-bottom: 6.25rem;
    border-bottom: 1px solid var( --text-line-main);
}

.trial-box svg {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    border: 1px solid var(--accent-color_01);
    background: var(--base-color_01);
}

.trial-box svg path {
    fill: var(--accent-color_01);
    transform: scale(0.6);
    transform-box: fill-box;
    transform-origin: center;
}

@media screen and (max-width: 820px) {

    .feature-container {
        margin-bottom: 3.13rem;
    }

    .feature-container article {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .feature-container li {
        margin-bottom: 3.13rem;
    }

    #feature .img-box_02 {
        margin-bottom: 1.88rem;
    }

    #feature .trial-box {
        width: 90%;
        margin: 0 auto;
        text-align: center;
    }

    .trial-box svg {
        margin-bottom: 1.25rem;
    }
}

@media screen and (max-width: 440px) {

    .feature-container article {
        width: 100%;
    }

    #feature .trial-box {
        width: 100%;
    }

    #feature .trial-box div {
        text-align: left;
    }
}

/* DUTIES */

#duties h3 {
    margin-bottom: 1.88rem;
}

.duties-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
}


.duties-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem 3rem;
}

.duties-list > li {
    width: calc((100% - 6rem) / 3);
    display: flex;
}

.duties-item {
    width: 100%;
    padding: 1.88rem;
    background-color: #fff;
    border-radius: 1.25rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
}

.duties-number {
    color: var(--accent-color_01);
    margin-bottom: 1.25rem;
    font-size: 1.88rem;
}

.duties-item h4 {
    margin-bottom: 1.25rem;
    text-align: center;
    font-size: 1.375rem;
}

.duties-icon {
    width: 3.7rem;
    margin-bottom: 1.25rem;
    margin-left: auto;
    margin-right: auto;
}

.duties-icon.icon-bigger {
    width: 5rem;
}

.duties-icon svg {
    fill: none;
    stroke: var(--accent-color_01);
}

.duties-item p {
    text-align: left;
}

@media screen and (max-width: 820px) {

    .duties-list {
        justify-content: space-between;
    }

    .duties-list > li {
        width: calc((100% - 3rem) / 2);
    }
}

@media screen and (max-width: 440px) {

    .duties-list {
        display: block;
    }

    .duties-list > li {
        width: 100%;
        margin-bottom: 1.88rem;
    }
}

/* FLOW */

#flow {
    margin-bottom: 9.375rem;
}

.flow-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
}

.flow-wrapper h3 {
    margin-bottom: 1.88rem;
}

.flow-wrap {
    display: flex;
    align-items: flex-start;
    gap: 5rem;
}

.flow-column {
    width: calc((100% - 4rem) / 2);
}

@media screen and (max-width: 820px) {

    .flow-section {
        width: 90%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 440px) {

    .flow-section {
        width: 100%;
    }
}

/* FLOW BTM */

.flow-toggle {
    position: relative;
    width: 100%;
    padding: 1.88rem 0;
    border: none;
    border-radius: 1.25rem;
    color: var(--base-color_01);
    font-size: 1.375rem;
    font-weight: 600;
    text-align: center;
}

.flow-toggle::after {
    display: none;
}

@media screen and (max-width: 820px) {

    #flow {
        margin-bottom: 6.25rem;
    }

    .flow-toggle::after {
        content: "";
        display: block;
        position: absolute;
        top: 50%;
        right: 1.5rem;

        width: 0;
        height: 0;

        border-left: 0.4rem solid transparent;
        border-right: 0.4rem solid transparent;
        border-top: 0.5rem solid currentColor;

        transform: translateY(-50%);

        transition: transform 0.5s ease;
    }

    .flow-column.is-open .flow-toggle::after {
        transform: translateY(-50%) rotate(180deg);
    }
}


/* 介護保険 */

.flow-column-care .flow-toggle {
    background-color: var(--accent-color_04);
}

/* 医療保険 */

.flow-column-medical .flow-toggle {
    background-color: var(--accent-color_05);
}


.flow-content {
    display: block;
}

.flow-content-inner {
    padding-top: 1.88rem;
}

.flow-item {
    padding: 1.88rem;
    border: 1px solid;
    border-radius: 1.25rem;
    background: var(--base-color_01);
    box-sizing: border-box;
}

.flow-item h5 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;}

.flow-item p {
    line-height: 1.9;
}

.flow-number {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    color: var(--base-color_01);
    font-size: 1rem;
    font-weight: 900;
}

/* FLOW COLOR */

.flow-column-care .flow-item {
    border-color: var(--accent-color_04);
}

.flow-column-care .flow-item h5,
.flow-column-care .flow-item p {
    color: var(--accent-color_04);
}

.flow-column-care .flow-number {
    background-color: var(--accent-color_04);
}

.flow-column-medical .flow-item {
    border-color: var(--accent-color_05);
}

.flow-column-medical .flow-item h5,
.flow-column-medical .flow-item p {
    color: var(--accent-color_05);
}

.flow-column-medical .flow-number {
    background-color: var(--accent-color_05);
}

/* FLOW ARROW DOWN */

.flow-column-care svg {
    fill: var(--accent-color_04);
}

.flow-column-medical svg {
    fill: var(--accent-color_05);
}

.flow-content-inner svg {
    width: 5rem;
    display: block;
    height: auto;
    margin: 1.25rem auto;
}

@media screen and (max-width: 820px) {

    .flow-wrap {
        gap: 2.5rem;
    }

    .flow-column {
        width: calc((100% - 2rem) / 2);
    }

}


/* ================================
   SP：アコーディオン
================================ */

@media screen and (max-width: 820px) {

    .flow-wrap {
        flex-direction: column;
        gap: 1.88rem;
    }

    .flow-column {
        width: 100%;
    }


    /* ボタンとして操作できる見た目に */

    .flow-toggle {
        cursor: pointer;
        font-size: 1rem;
        transition:
            opacity 0.5s ease,
            transform 0.5s ease;
    }

    /* 閉じた状態 */

    .flow-content {
        display: grid;
        grid-template-rows: 0fr;
        opacity: 0;
        transform: translateY(-0.75rem);

        transition:
            grid-template-rows 1s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.8s ease,
            transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .flow-content-inner {
        min-height: 0;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 1px;

        transition:
            padding-top 1s cubic-bezier(0.22, 1, 0.36, 1);
    }


    /* 開いた状態 */

    .flow-column.is-open .flow-content {
        grid-template-rows: 1fr;
        opacity: 1;
        transform: translateY(0);
    }

    .flow-column.is-open .flow-content-inner {
        padding-top: 1.88rem;
    }

}

/* AREA */

#area {
    margin-bottom: 9.375rem;
}

.area-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
}

#area h3 {
    margin-bottom: 1.88rem;
}

#area .area-message {
    margin-bottom: 1.88rem;
}

@media screen and (max-width: 440px) {

    #area {
        margin-bottom: 6.25rem;
    }
    
}