:root {
    --primary-color: #00AEEF;
    --secondary-color: #F7941D;
    --accent-color: #FFD200;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--primary-color);
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Sections */
section {
    padding: 100px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Dropdown Menu */
.submenu-toggle {
    display: none;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    list-style: none;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    z-index: 100;
}

.submenu li {
    margin: 0 !important;
}

.submenu a {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

.submenu a:hover {
    background-color: var(--light-bg);
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    /* Fallback/Placeholder gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/sd1.jpg') center/cover no-repeat;
    opacity: 0.5;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-item {
    display: flex;
    flex-direction: column;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.more-link {
    margin-top: auto;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.more-link:hover {
    text-decoration: underline;
}


/* Achievement Items */
.achievement-item {
    flex: 1 1 200px;
    margin: 1rem;
}

/* Footer */
footer {
    background-color: #111;
    color: var(--white);
    padding: 50px 20px;
    text-align: center;
}

footer .nav-links {
    justify-content: center;
    margin-bottom: 2rem;
}

footer .nav-links a {
    color: #999;
}

footer .nav-links a:hover {
    color: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: left;
    }

    .nav-links a {
        padding: 1rem 2rem;
        border-bottom: 1px solid #eee;
    }

    /* Mobile Submenu */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background: #fdfdfd;
        padding-left: 1rem;
    }

    .has-submenu {
        position: relative;
    }

    .has-submenu.open .submenu {
        display: block;
    }

    /* Submenu Toggle Button */
    .submenu-toggle {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        width: 50px;
        height: 50px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10;
    }

    .submenu-toggle::before,
    .submenu-toggle::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        background-color: var(--text-color);
        transform: translate(-50%, -50%);
        transition: transform 0.3s ease;
    }

    .submenu-toggle::before {
        width: 12px;
        height: 2px;
    }

    .submenu-toggle::after {
        width: 2px;
        height: 12px;
    }

    .submenu-toggle.active::after {
        transform: translate(-50%, -50%) rotate(90deg);
        opacity: 0;
    }

    .has-submenu>a {
        padding-right: 60px !important;
        /* Make space for the button */
    }

    /* Remove old pseudo-element styles */
    .has-submenu>a::after {
        content: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    section {
        padding: 60px 20px;
    }

    h2 {
        font-size: 1.75rem;
    }

    /* Grid Adjustments */
    #services .container>div {
        grid-template-columns: 1fr !important;
    }

    #projects .container>div {
        grid-template-columns: 1fr !important;
    }

    #steps .container>div {
        grid-template-columns: 1fr 1fr !important;
    }

    #team .container>div {
        grid-template-columns: 1fr 1fr !important;
    }

    #partners .container>div {
        grid-template-columns: 1fr !important;
    }

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

    .achievement-item {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {

    #steps .container>div,
    #team .container>div {
        grid-template-columns: 1fr !important;
    }
}

/* Hamburger Animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: var(--white);
}

th,
td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    width: 30%;
}

@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
    }

    th,
    td {
        white-space: nowrap;
    }
}