@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&family=Roboto:wght@400;700&display=swap');

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

body {
    font-family: 'Noto Serif JP', serif; /* Japanese serif font */
    line-height: 1.8; /* Increased line height for readability */
    color: #e0e0e0; /* Light gray text */
    background-color: #1a1a2e; /* Dark background */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif; /* Sans-serif for headings */
    color: #e94560; /* Accent color */
    margin-bottom: 15px;
}

p {
    margin-bottom: 10px;
}

.container {
    width: 90%; /* Slightly wider container */
    max-width: 1200px; /* Max width for large screens */
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header */
header {
    background: #16213e; /* Slightly lighter dark blue */
    color: #e0e0e0;
    padding-top: 20px;
    min-height: 70px;
    border-bottom: #0f3460 3px solid;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

header h1 {
    float: left;
    margin: 0;
    padding: 0;
    font-size: 2.5em;
}

header nav {
    float: right;
    margin-top: 10px;
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 15px;
}

header a {
    color: #e0e0e0;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

header a:hover {
    color: #e94560; /* Accent color */
    font-weight: bold;
}

header a.active {
    color: #e94560; /* Active link color */
    font-weight: bold;
    border-bottom: 2px solid #e94560;
}

/* Main Content */
main {
    padding: 40px 0;
}

section {
    margin-bottom: 40px;
    background-color: rgba(22, 33, 62, 0.7); /* Semi-transparent background for sections */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 80px 0;
    color: #e0e0e0;
    background-color: transparent; /* No background for hero */
    box-shadow: none;
}

#hero h2 {
    font-size: 4em;
    margin-bottom: 30px;
    color: #e94560; /* Accent color */
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.9);
}

#hero img {
    max-width: 90%;
    height: auto;
    border: 5px solid #0f3460;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

/* Component Grid */
.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Responsive grid */
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.component-item {
    background-color: #0f3460; /* Dark blue for item background */
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.component-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.component-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
    border: 2px solid #e94560; /* Accent border */
}

.component-item p {
    font-size: 0.9em;
    color: #e0e0e0;
    margin: 0;
}

/* Footer */
footer {
    padding: 20px;
    margin-top: 40px;
    color: #e0e0e0;
    background-color: #16213e;
    text-align: center;
    border-top: #0f3460 3px solid;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */

/* Tablet */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    header h1 {
        float: none;
        text-align: center;
    }

    header nav {
        float: none;
        text-align: center;
        margin-top: 20px;
    }

    header li {
        display: block;
        padding: 10px 0;
    }

    #hero h2 {
        font-size: 3em;
    }

    .component-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Mobile */
@media (max-width: 480px) {
    #hero h2 {
        font-size: 2em;
    }

    .component-grid {
        grid-template-columns: 1fr;
    }
}