@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #dee8f5;
    margin: 0;
    padding: 0;
    font-family: Verdana, Geneva, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    border: none;
}

#wrapper {
    max-width: 1000px;
    margin: 52px auto;
    padding: 0;
    overflow: hidden;
}

#middle {
    width: 100%;
    background: url(../images/middl.png) repeat;
    padding: 20px;
}

#header {
    height: auto;
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    max-width: 359px;
}

.hero-section {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    width: 80%;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

#navi_bg {
    width: 100%;
    max-width: 800px;
    padding: 10px;
    margin: 0 auto;
    background: none;
}

#navi ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

#navi ul li {
    margin: 5px;
}

#navi ul li a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1E90FF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
}

#navi ul li a:hover {
    background-color: #0066CC;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.feature-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
    margin: 40px 0;
}

.feature-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.feature-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.feature-box h3 {
    color: #1E90FF;
    margin: 15px 0;
    font-size: 1.5em;
}

.feature-box p {
    color: #666;
    margin-bottom: 20px;
}

.feature-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: #1E90FF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.feature-button:hover {
    background-color: #0066CC;
}

.announcement {
    text-align: center;
    color: #FF0000;
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 5px;
}

#footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background-color: rgba(255,255,255,0.9);
    border-radius: 5px;
}

@media (max-width: 768px) {
    #wrapper {
        margin: 20px auto;
    }
    
    #navi ul {
        flex-direction: column;
        align-items: center;
    }
    
    #navi ul li a {
        width: 200px;
        text-align: center;
    }
    
    .hero-section {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 2em;
    }
    
    .feature-boxes {
        grid-template-columns: 1fr;
        padding: 10px;
    }
}