@charset "utf-8";

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

#main-title h1 {
    width: 90%;
    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;
}

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

.map-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.map-card {
    --map-color: #5472cd;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: 6px solid var(--map-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.map-what {
    --map-color: #2f7fb8;
}

.map-insurance {
    --map-color: #4d8f68;
}

.map-other {
    --map-color: #967128;
}

.map-card h2 {
    margin: 0;
    padding: 0.8rem 1.2rem;
    background-color: #f5f7fa;
    border-bottom: 1px solid #ddd;
    color: #222;
    font-size: 21px;
    line-height: 1.4;
}

.map-card ul {
    margin: 0;
    padding: 0.6rem 1.2rem 0.8rem;
    list-style: none;
}

.map-card li {
    border-bottom: 1px solid #e5e5e5;
}

.map-card li:last-child {
    border-bottom: none;
}

.map-card a {
    position: relative;
    display: block;
    padding: 0.7rem 0.5rem 0.7rem 1.4rem;
    color: #222;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}

.map-card a::before {
    position: absolute;
    top: 50%;
    left: 0.25rem;
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--map-color);
    border-right: 2px solid var(--map-color);
    transform: translateY(-50%) rotate(45deg);
}

.map-card a:hover {
    color: var(--map-color);
    background-color: #f8f9fa;
}

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

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

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

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

    .map-card {
        border-top-width: 5px;
        border-radius: 6px;
        box-shadow: 0 3px 7px rgba(0, 0, 0, 0.1);
    }

    .map-card h2 {
        padding: 0.7rem 1rem;
        font-size: 18px;
    }

    .map-card ul {
        padding: 0.4rem 0.8rem 0.6rem;
    }

    .map-card a {
        padding: 0.65rem 0.4rem 0.65rem 1.3rem;
        font-size: 15px;
    }

    .map-card a::before {
        left: 0.2rem;
        width: 6px;
        height: 6px;
    }
}