@charset "utf-8";

#main-title {
    padding-left: 2rem;
}

#main-title h1 {
    width: 40%;
    font-size: 40px;
    font-weight: bold;
    color: #000;
    border-bottom: solid 5px #cce4ff;
    position: relative;
}

#main-title h1::after {
    position: absolute;
    content: "";
    display: block;
    border-bottom: solid 5px #5472cd;
    width: 30%;
    left: 0;
    bottom: -5px;
}

.text_img {
    width: 10%;
    vertical-align: middle;
}

#base1 {
    width: 90%;
    margin: 2rem auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.case-card {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 1.5rem;
    background-color: #f0f8ff;
    border: 3px solid #5472cd;
    border-radius: 18px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.18);
    color: #19448e;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.case-card:hover {
    background-color: #5472cd;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.22);
}

.case-title {
    display: block;
    width: 100%;
    font-size: 20px;
    line-height: 1.6;
    text-align: center;
}

@media screen and (max-width: 900px) {
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 700px) {
    #main-title {
        padding: 0 1rem;
    }

    #main-title h1 {
        width: 100%;
        font-size: 28px;
        box-sizing: border-box;
    }

    .text_img {
        width: 12%;
    }

    #base1 {
        width: auto;
        margin: 1rem;
        padding: 1rem 0;
    }

    .case-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .case-card {
        min-height: 95px;
        padding: 1rem;
        border-width: 2px;
        border-radius: 14px;
        box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.16);
    }

    .case-title {
        font-size: 17px;
    }
}