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

body {
    font-family: 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hamburger Menu */
.hamburger {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1003;
    position: relative;
}

.hamburger span {
    width: 40px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform-origin: center;
    position: absolute;
    display: block;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 0;
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 0;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(60, 60, 60, 0.95);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.side-menu.active {
    right: 0;
}

.side-menu ul {
    list-style: none;
    text-align: center;
}

.side-menu ul li {
    margin: 30px 0;
}

.side-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 300;
    transition: color 0.3s;
}

.side-menu ul li a:hover {
    color: #4a90e2;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    text-align: center;
    z-index: 1;
    position: relative;
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../img/top/main.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.main-title {
    background-image: url('../img/top/title.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 50px;
    margin: 0 auto;
    text-indent: -9999px;
}

/* Company Links */
.company-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin: 80px 0;
}

.company-links ul {
    display: flex;
    list-style: none;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}


@media (max-width: 768px) {
    .main-content{
        height: 90vh;
    }
   .main-title {
       background-image: url('../img/top/title_sp.svg');
   }
   .company-links {
       margin: 40px 0;
   }
}


.company-links li {
    transition: transform 0.3s ease;
}

.company-links li:hover {
    transform: scale(1.1);
}

.company-links a {
    display: block;
    width: 150px;
    height: 60px;
    transition: transform 0.3s;
}

.company-links a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-links a:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 1em;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        width: 90%;
        height: 80px;
    }
    .company-links {
        margin: 10px 0;
    }
    .company-links ul {
        flex-wrap:nowrap;
        gap:0;
        align-items:flex-end;
    }
    
    .company-links a {
        width: auto;
        height: 40px;
    }
    
    .side-menu {
        width: 250px;
        right: -250px;
    }
}