body{
    font-family: "游ゴシック";
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: white;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
}

header a img{
    width: auto;
    height: 60px;
    margin-left: 30px;
    margin-top: 10px;
    margin-bottom: 10px;
}

#nav-container{
    position: relative;
    z-index: 1000;
}

nav{
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 1001;
}

nav ul{
    list-style: none;
    padding-top: 50px;
    padding-left: 50px;
}

nav ul li {
    margin-top: 20px;
    margin-right: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    border-radius: 10px;
}

nav ul li a{
    text-decoration: none;
    color: black;
    display: block;
}

nav ul li:hover{
    background-color: rgb(65, 105, 225);
    font-weight: bold;
}

nav ul li:hover a{
    color: white;
}

.toggle-button{
    position: fixed;
    top: 15px;
    right: 30px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

.toggle-button span{
    position: absolute;
    height: 3px;
    background: black;
    border-radius: 3px;
    transition: 0.3s;
}

.toggle-button span:nth-child(1) {
    width: 30px;
    top: 16px;
}

.toggle-button span:nth-child(2) {
    width: 30px;
    top: 24px;
}

.toggle-button span:nth-child(3) {
    width: 30px;
    top: 32px;
}

#mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 999;
}

.open nav {
    right: 0;
}

.open #mask {
    display: block;
}

.open .toggle-button span:nth-child(1) {
    top: 50%;
    transform: rotate(-45deg);
}

.open .toggle-button span:nth-child(2) {
    opacity: 0;
}

.open .toggle-button span:nth-child(3) {
    top: 50%;
    transform: rotate(45deg);
}

main{
    padding-top: 80px;
    margin-bottom: 100px;
}

.top-image{
    position: relative;
    height: 100vh;
    object-fit: cover;
    display: block;
}

.top-video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-text-container{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    width: 90%;
    max-width: 1200px;
    padding: 20px;
    z-index: 10;
}

.top-text-content{
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 2.5s ease-out;
}

.container{
    margin-bottom: 30px;
}

.container-title{
    display: inline-block;
    text-align: left;
    margin-left: 50px;
    margin-top: 30px;
}

.container-title p{
    color: #828286;
    font-size: 20px;
    margin-bottom: -70px;
}

.container-title h2{
    font-size: 64px;
}

.news-content{
    margin-bottom: 20px;
    border-radius: 30px;
    border: #4169E1 solid 1px;
    padding: 15px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.news-content:hover{
    border: #4169E1 solid 1px;
    border-left: #4169E1 solid 10px;
    border-radius: 10px 30px 30px 10px;
}

.news-content a{
    text-decoration: none;
    color: black;
}

.news-date {
    font-size: 14px;
    color: #828286;
    margin-bottom: 0;
}

.news-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-left: 30px;
}

.news-data{
    font-size: 15px;
}

.news-tags {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.tag {
    color: #828286;
    text-decoration: none;
    background-color: white;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 14px;
    align-items: end;
}

.LoadMore-container{
    text-align: right;
    margin-top: 50px;
    margin-right: 10%;
}

.LoadMore-btn{
    color: white;
    background: #828286;
    font-size: 15px;
    padding: 10px 30px;
    text-decoration: none;
}

.LoadMore-btn:hover{
    opacity: 0.8;
}

.company-small-font{
    font-size: 15px; 
}

.company-content{
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.company-content h3{
    font-size: 30px;
    line-height: 1;
    text-align: center;
}

.content-4C{
    display: flex;
    gap: 30px;
    justify-content: center;
}

.content-4C p{
    font-size: 25px;
}

.Services-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
}

.Services-uprow,
.Services-downrow{
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 80%;
}

.Services-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 150px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    background-size: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.Services-btn:hover{
    transform: scale(1.05);
    text-shadow: 1px 1px 10px black,#4169E1 0 0 50px;
    box-shadow: 5px 5px 5px #4169E1;
}

.Services-uprow .Services-btn{
    flex-basis: calc(50% -10px);
}

.Services-downrow .Services-btn{
    flex-basis: calc(33.333% -14px);
}

.Services-contenttext{
    z-index: 2;
}

footer{
    border-top: 2px solid black;
}

.footer-main{
    display: flex;
    gap: 15%;
    justify-content: center;
}

.pc-br{
    display: inline;
}

.link-container{
    display: flex;
    gap: 10%;
}

.link-container a img{
    width: 40px;
    height: 40px;
    margin: 20px;
}

.address-container{
    margin-left: 20px;
}

.GoogleMap{
    margin: 20px 0;
}

.footer-nav{
    text-align: end;
}

.footer-nav a{
    color: black;
    text-decoration: none;
    margin-right: 20px;
    line-height: 2;
}

.footer-nav a:hover{
    text-decoration: underline;
}

.footer-sub p{
    margin: 0;
    text-align: center;
    line-height: 1.5;
    background-color: black;
    color: white;
}

.Map-URL{
    display: none;
}

@media screen and (max-width: 768px) {
    header{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: white;
    }

    header a img {
        width: auto;
        height: 30px;
        margin-left: 20px;
        margin-top: 10px;
        margin-bottom: 5px;
    }

    nav{
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        z-index: 1001;
    }

    .toggle-button{
        position: fixed;
        top: 5px;
        right: 15px;
        width: 50px;
        height: 50px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1002;
    }

    .toggle-button span:nth-child(1) {
        width: 25px;
        top: 10px;
    }

    .toggle-button span:nth-child(2) {
        width: 25px;
        top: 18px;
    }

    .toggle-button span:nth-child(3) {
        width: 25px;
        top: 26px;
    }

    .top-image{
        margin-top: -30px;
    }

    .top-text-content{
        font-size: 1.5rem;
    }

    .container-title{
        display: inline-block;
        text-align: left;
        margin-left: 30px;
        margin-top: 15px;
    }

    .container-title p{
        font-size: 10px;
        margin-bottom: -40px;
    }

    .container-title h2{
        font-size: 35px;
        margin-bottom: -1px;
    }

    .news-content{
        margin-bottom: 20px;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
        border-radius: 30px;
        padding: 15px;
    }

    .news-content a{
        text-decoration: none;
        color: black;
    }

    .news-date {
        font-size: 8px;
        color: #666;
        margin-bottom: 1px;
    }

    .news-title {
        font-size: 15px;
        font-weight: bold;
        margin-left: 30px;
        margin-bottom: 1px;
    }

    .news-data{
        font-size: 10px;
    }

    .news-tags {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 10px;
    }

    .tag {
        color: #666;
        text-decoration: none;
        background-color: #ddd;
        border-radius: 20px;
        padding: 3px 13px;
        font-size: 8px;
        align-items: end;
    }

    .company-small-font{
        font-size: 8px;
    }

    .content-4C{
        display: block;
    }

    .content-4C p{
        font-size: 20px;
    }

    .footer-main{
        display: block;
    }

    .pc-br{
        display: none;
    }

    .GoogleMap{
        display: none;
    }

    .Map-URL{
        display: inline;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}