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

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header{
    overflow: hidden;
}
body {
    line-height: 1.6;
    min-height: 100vh;
    background-color: #ffffff;
    color: #333333;
    font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
}

/* Navigation Styles */
.main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    height: 100px;
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    font-size:16px;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo {
    background-color: #004177;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    width: 230px;
    height: 100%;
    justify-content: center;
}

.logo img {
    height: 110%;
    width: auto;
}

.logo a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.4rem;
    align-items: center;
    margin-left: auto;
    padding-right: 50px;
}

.nav-links a {
    text-decoration: none;
    color: #002966;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 16px;
    position: relative;
    letter-spacing: 0.1em;
    font-family: "Times", "Times New Roman", serif;
}

.nav-links a:not(.contact-btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    font-size: 14px;
    width: 100%;
    height: 1px;
    background-color: #002966;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.2s ease-out;
}

.nav-links a:not(.contact-btn):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-btn {
    background-color: #00b894;
    color: white !important;
    padding: 0.2rem 1rem;
    border-radius: 50px;
    border: 2px solid #00b894;
    transition: all 0.3s ease !important;
    cursor: pointer;
    letter-spacing: 0.2em;
}

.contact-btn:hover {
    background-color: white;
    color: #00b894 !important;
    border-color: #00b894;
}

/* SP Navigation */
.sp-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    height: 55px;
}

@media (max-width: 768px) {
    .pc-nav {
        display: none;
    }

    .sp-nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 1000;
        height: 55px;
        opacity: 0.9;
        transform: translateY(0);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .sp-nav .nav-container {
        height: 55px;
        padding-right: 16px;
    }

    .sp-nav .logo {
        width: 95px;
        height: 100%;
    }

    .hamburger {
        width: 30px;
        height: 80%;
        position: relative;
        cursor: pointer;
        z-index: 1000;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        padding-right: 1rem;
        justify-content: center;
        align-items: center;
    }

    .hamburger span {
        display: block;
        position: absolute;
        width: 28px;
        height: 3px;
        background-color: #002966;
        border-radius: 2px;
        transition: all 0.3s ease;
        left: 50%;
        transform: translateX(-50%);
    }

    .hamburger span:nth-child(1) {
        top: 25%;
    }

    .hamburger span:nth-child(2) {
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .hamburger span:nth-child(3) {
        bottom: 25%;
    }

    .hamburger.active span:nth-child(1) {
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }

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

    .hamburger.active span:nth-child(3) {
        bottom: 50%;
        transform: translate(-50%, 50%) rotate(-45deg);
    }

    .sp-nav .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 80px 28px 28px;
        margin: 0;
        transition: right 0.3s ease;
        overflow-y: auto;
        gap: 0;
        z-index: 999;
        display: flex;
    }
  
  .sp-nav .hamburger.active {
    opacity: 1;
  }

    .sp-nav .nav-links.active {
        right: 0;
        height: 100vh;
    }

    .sp-nav .nav-links li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }

    .sp-nav .menu-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
        padding: 21px;
        text-decoration: none;
        color: #333;
    }

    .sp-nav .menu-text {
        font-size: 16px;
        letter-spacing: 0.2em;
        line-height:16px;
        font-family: "Times", "Times New Roman", serif;
    }

    .sp-nav .nav-links .contact-btn {
        display: block;
        text-align: center;
        font-size: 14px;
        margin: 28px 21px;
        padding: 4.2px;
        width: 292px;
        border-radius: 50px;
        background-color: #00b894;
        color: white;
        text-decoration: none;
        border: 2px solid #00b894;
        transition: all 0.3s ease;
        letter-spacing: 0.2em;
    }

    .nav-footer {
        position: absolute;
        bottom: 28px;
        left: 28px;
        right: 28px;
        padding: 28px 0;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .company-name{
        font-size: 15.4px;
        font-weight: normal;
        font-family: "Times", "Times New Roman", serif;
        color:#333333;
        margin-bottom: 14px;
    }
    .company-address{
        font-size: 12.6px;
        color:#666666;
        margin-bottom: 14px;
    }
    .company-contact a{
        font-size: 12.6px;
        font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
        color:#666666;
        margin-bottom: 7px;
    }
    .company-contact p{
        font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
        font-size: 12.6px;
        color:#666666;
        margin-bottom: 7px;
    }
}

/* Footer Styles */
.footer-pc {
    background-color: #004177;
    color: #fff;
    padding: 3.3rem 0 0rem;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.footer-content {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-company {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    width: 68px;
    height: auto;
    display: block;
    margin: 0;
}

.footer-company-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 80px;
}

.footer-company-name {
    font-size: 1.3rem;
    padding-top: 0.7rem;
    font-weight: normal;
    font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
}

.footer-company-address,
.footer-company-contact {
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0 0 4px;
}

.footer-company-contact {
    margin-bottom: 0;
}

.footer-nav {
    display: flex;
    gap: 3rem;
  /*  margin-left: 15rem;*/
    margin-left: 220px;
    align-items: flex-start;
  /*  padding-top: 2rem;*/
    padding-top: 32px;
}

.footer-nav-list {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.footer-nav-list li {
    margin-right: 1rem;
}

.footer-nav-list li:last-child {
    margin-right: 0;
}

.footer-nav-list a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
    position: relative;
    letter-spacing: 0.2em;
    font-family: "Times", "Times New Roman", serif;
}

.footer-nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: #fff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.footer-nav-list a:hover::after {
    width: 100%;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.8;
    width: 100%;
    padding-top: 10px;
    font-family: "Times", "Times New Roman", serif;
    padding-bottom: 20px;
}

/* SP Footer */
.footer-sp {
    background-color: #004177;
    color: #fff;
    padding-top: 49px;
    padding-left: 14px;
    padding-right: 14px;
    width: 100%;
    display: none;
}

.footer-sp-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer-sp-nav {
    width: 100%;
    margin-bottom: 48px;
}

.footer-sp-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
}

.footer-sp-nav-list li {
    position: relative;
}

.footer-sp-nav-list a {
    color: #fff;
    text-decoration: none;
    line-height: 16px;
    font-size: 16px;
    display: inline-block;
    padding: 20px;
    text-align: center;
    position: relative;
    font-family: "Times", "Times New Roman", serif;
}

.footer-sp-nav-list p {
    margin: 0;
    padding: 0;
    display: inline-block;
    position: relative;
    font-size: 16px;
    line-height: 16px;
    color: #fff;
    font-family: "Times", "Times New Roman", serif;
    letter-spacing: 1px;
}

.footer-sp-nav-list p::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: #fff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.footer-sp-nav-list a:hover p::after {
    width: 100%;
}

.footer-sp-bottom {
    display: flex;
    justify-content: center;
    align-items: center;

}

.footer-sp-logo-wrapper {
    flex-shrink: 0;
}

.footer-sp-logo {
    width: 60px;
    height: auto;
}

.footer-sp-info {
    flex-grow: 1;
    text-align: left;
    margin-left: 30px;
}

.footer-sp-company {
    font-size: 14px;
    font-weight: normal;
    margin-bottom:8px;
}

.footer-sp-address {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 4.8px;
}

.footer-sp-contact {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-sp .copyright {
    font-size: 13px;
    margin-top: 33px;
    margin-bottom: 36px;
    text-align: center;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-pc {
        display: none;
    }

    .footer-sp {
        display: block;
    }
    
    .footer-sp-bottom-wrapper {
        display: flex;
    }
}

@media (max-width: 480px) {
    .logo img{
        width: 36px;
        height: 41px;
    }
    .footer-sp-nav-list {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .footer-sp-nav-list li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .footer-sp-nav-list a {
        display: block;
        padding: 20px 0;
        font-size: 16px;
    }

    .footer-sp-bottom {
        gap: 1.5rem;
    }

    .footer-sp-logo-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .footer-sp-logo {
        height: 85px;
        width: 75px;
    }

    .footer-sp-company {
        font-size: 14px;
    }

    .footer-sp-address,
    .footer-sp-contact {
        font-size: 14px;
    }

    .footer-sp-bottom-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Navigation Slide Animation */
.pc-nav.main-nav,
.sp-nav.main-nav {
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    will-change: transform;
}

.pc-nav.main-nav.slide-down,
.sp-nav.main-nav.slide-down {
    transform: translateY(0);
}

.pc-nav.main-nav {
    opacity:0.9;
}

/* Ensure nav stays on top */
.pc-nav.main-nav,
.sp-nav.main-nav {
    z-index: 1000;
}

.sp-nav .nav-links a:not(.contact-btn)::after {
    display: none;
}

.sp-nav .menu-plus {
    display: none;
}

.sp-nav .menu-text {
    font-size: 16px;
    line-height: 25.6px;
} 