body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
}

.header_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
}

.logo {
    position: relative;
}

.logo h1 {
    font-size: 20px;
    font-weight: bold;
    color: black;
    margin: 0;
}

.logo h1.scrolled {
    color: #fff;
}


nav {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 10px 0;
    padding: 0;
    justify-content: flex-end;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    padding: 5px 5px;
    background-color: transparent;
    border-radius: 0;
    transition: background-color 0.3s, border-bottom 0.3s;
    position: relative;    
}

nav ul li a:hover {
    background-color: transparent;
    border-bottom: 2px solid #00A9E0;
}

nav ul li a:hover::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #00A9E0;
    transition: width 0.3s, left 0.3s;
}

header.scrolled {
    background-color: rgba(32, 157, 235, 0.8);
}

nav ul li a.scrolled {
    color: white;
    background-color: transparent;
}

nav ul li a.scrolled:hover {
    background-color: transparent;
    border-bottom: 2px solid #00A9E0;
}

section {
    position: relative;
    margin: 30px 0;
}

.image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transform: translateY(10px);
}

.text {
    text-align: center;
}

#mission {
    height: 100vh;
    margin-bottom: -50px;
}

.mission-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    white-space: nowrap;
}

.mission-text:nth-child(1) {
    font-size: 48px;
    top: 10%;
    max-width: 100%;
    text-align: center;
}

.mission-text:nth-child(2) {
    font-size: 32px;
    top: 20%;
    max-width: 100%;
    text-align: center;
}


#vision, #about, #service, #contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 5%;
}

.text {
    flex: 1.1;
    padding: 50px;
    text-align: left;
}

.text h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.text p {
    margin: 10px 0;
}

.image {
    flex: 1.2;
}

.text h2 {
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.6;
}

#service .text ul {
    margin: 0;
    padding: 0;
}

#service .text ul li {
    margin: 10px 0;
}

#contact .social-icons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#contact .social-icons a {
    margin: 0 15px;
    transition: transform 0.3s;
}

#contact .social-icons a:hover {
    transform: scale(1.1);
}

#contact .social-icons img {
    width: 40px;
    height: 40px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    color: #333;
}

footer p {
    font-size: 14px;
}

.fadeIn {
    opacity: 1;
    transition: opacity 1s, transform 1s;
}

.hide {
    opacity: 0;
    transform: translateY(50px);
}


#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: #00A9E0;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

#preloader p {
    margin-top: 10px;
    font-size: 18px;
}

@media (max-width: 768px) {
    #vision, #about, #service, #contact {
        flex-direction: column-reverse;
    }
}

@media screen and (max-width: 768px) {
  .nav-menu {
    justify-content: center;
  }
}
    .mobile-menu {
        display: none;
    }

@media screen and (max-width: 767px) {
    .logo h1 {
        writing-mode: horizontal-tb;
    }

    nav {
        display: none;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.8);
        padding: 10px 0;
        text-align: center;
    }

    .mobile-menu a {
        display: inline-block;
        color: black;
        text-decoration: none;
        font-weight: bold;
        font-size: 18px;
        padding: 5px 5px;
        margin: 0 5px;
        background-color: transparent;
        border-radius: 0;
        transition: background-color 0.3s, border-bottom 0.3s;
        position: relative;
    }

    .mobile-menu a:hover {
        background-color: transparent;
        border-bottom: 2px solid #00A9E0;
    }

    .mobile-menu a:hover::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #00A9E0;
        transition: width 0.3s, left 0.3s;
    }

    .nav-menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 30px;
        list-style: none;
        flex-wrap: wrap; /* 追加 */
        }

}

/* styles.cssに追加 */
@media (max-width: 767px) {
    #mission .mission-text:nth-child(1) {
      font-size: 32px;
    }
  
    #mission .mission-text:nth-child(2) {
      font-size: 24px;
    }
  }
  
  @media (max-width: 480px) {
    #mission .mission-text:nth-child(1) {
      font-size: 24px;
    }
  
    #mission .mission-text:nth-child(2) {
      font-size: 18px;
    }
  }
