/* Nursing Section Styles */
.nursing {
    background: white;
    padding: 3% 15%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box {
    border-style: solid;
    border-radius: 10px;
    border-width: 1px;
    border-color: #D3D3D3;
    margin: 10px;
    padding: 10px;
    text-align: center;
    flex: 1 1 20%;
    max-width: 500px; 
    max-height: 400px;
}

.box-title {
    color: #565656;
    font-family: "Noto Serif JP", Sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-top: 5px; 
    margin-bottom: 5px; 
}

.box-image {
    width: 100px;
    height: auto;
    margin: 10px 0;
}

.box-text {
    font-family: "Noto Serif JP", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    margin-top: 5px; 
    margin-bottom: 5px; 
}

.nursing-flex-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0;
}

.handshake-img {
    max-width: 250px;
    width: 100%;
    height: auto;
    display: block;
}

.nursing img,
.nursing .box img {
    max-width: 250px;
    height: auto;
}

@media (max-width: 600px) {
    .nursing-flex-row {
        flex-direction: column;
        align-items: center;
    }
    .handshake-img {
        margin: 0 auto;
        max-width: 80vw;
    }
    .nursing > section[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .box {
        max-width: 300px;
        margin: 10px;
    }
}

@media (max-width: 784px) {
    .nursing {
        padding: 1.5% 7.5% 1.5% 7.5%;
    }
}