* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: #7FFFD4;
}

.container {
    max-width: 1980px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.scroll {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    font-size: 150%;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.scroll span {
    display: inline-block;
    padding-left: 100%;
    white-space: nowrap;
    animation: scrollAnime 100s linear infinite;
}

@keyframes scrollAnime {
    0% { transform: translateX(0) }
    100% { transform: translateX(-100%) }
}

.main-content {
    flex: 1;
    min-width: 320px;
    margin-top: 60px;
}

.advertisement {
    width: 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 60px;
}

.advertisement img {
    width: 100%;          /* コンテナの幅に合わせる */
    object-fit: cover;   /* 画像の一部を切り取ってコンテナにフィットさせる */
    display: block;      /* 画像の下に余白ができないように */
}



.map-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #d9b4ec;
    padding: 3%;
    border-radius: 20px;
    margin-bottom: 3%;
    justify-content: space-between;
}

.region-list-left, .region-list-right {
    flex: 1 1 20%;
    min-width: 200px;
    max-width: 25%;
    display: flex;
    border-radius: 20px;
    flex-direction: column;
    gap: 20px;
}

.japan-map {
    flex: 1 1 40%;
    text-align: center;
    min-width: 300px;
    max-width: 45%;
    margin: auto;
}

.japan-map img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.region {
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.region:hover {
    transform: translateY(-5px);
}

.job-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stats-card {
    background-color: #fff;
    padding: 21px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.stats-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}

.prefecture-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 5px;
}

.prefecture-list a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #000000;
    background-color: #7FFFD4;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s;
    text-align: center;
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    box-sizing: border-box;
}

.prefecture-list a:hover {
    background-color: #CDFFF5;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.news-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    background-color: #ddd;
}

.news-content {
    padding: 20px;
}

.hokkaido { background-color: #ffe6e6; }
.tohoku { background-color: #fff0f5; }
.kanto { background-color: #f0fff0; }
.chubu { background-color: #fff5e6; }
.kinki { background-color: #f5f0ff; }
.chugoku { background-color: #ffe6e6; }
.shikoku { background-color: #e6ffe6; }
.kyushu { background-color: #fff0e6; }
.okinawa { background-color: #f4ffdb; }

@media (max-width: 1200px) {
    .map-section {
        flex-direction: column;
        align-items: center;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .map-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .region-list-left, .region-list-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        max-width: none;
    }
    .japan-map {
        width: 80%;
        max-width: 600px;
    }
}

@media (max-width: 767px) {
    .advertisement {  
        width: 100%;        /* 横いっぱいに広がる */  
        padding: 10px;     /* パディングを調整（任意） */  
        margin-top: 20px;  /* マージンを調整（任意） */  
    }  
    .map-section {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .region-list-left, .region-list-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        max-width: none;
    }
    .japan-map {
        width: 100%;
        max-width: 600px;
    }
    .japan-map img {
        max-width: 100%;
        height: auto;
    }
}