/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Global font settings */
h1, h2, h3, h4, h5, h6,
.nav-links a,
.contact-btn,
.scroll-link,
.concept-title h2,
.service-title h2,
.recruit-partner .section-title,
.news-header .section-title,
.section-title-about,
.section-title-contact,
.footer-nav-list a,
.footer-sp-nav-list a,
.copyright {
    font-family: "Times", "Times New Roman", serif;
}
.slide-from-top {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-from-top.visible {
    opacity: 1;
    transform: translateY(0);
} 
/* Loading Sequence Styles */
#loading-sequence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 998;
}

.background-slide {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #004177;
    z-index: 1000;
    transition: left 0.66s ease-in-out;
}
.background-slide.slide-in {
    left: 0;
}

.background-slide.slide-out {
    left: -100%;
}

#logo-container {
    position: relative;
    z-index: 999;
    opacity: 0;
    animation: fadeInZoomLogo 1.15s ease-in forwards;
    transform-origin: center;
}

.logo {
    background-color: #004177;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    width: 230px;  /* Changed from 14.6% to 230px to match service.html */
    height: 100%;
    justify-content: center;
    cursor: pointer;
}

#loading-text {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    z-index: 1001;
}

#loading-text.visible {
    display: block;
}

#loading-text .sequence-1,
#loading-text .sequence-2,
#loading-text .sequence-3,
#loading-text .sequence-final {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    text-align: center;
}

#loading-text .sequence-final {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

#loading-text .sequence-final h1.top {
    font-size: 110px;
    font-weight: 500;
}

#loading-text .sequence-final h1.bottom {
    font-size: 45px;
    font-weight: 400;
}

#loading-text .sequence-1.active,
#loading-text .sequence-2.active,
#loading-text .sequence-3.active,
#loading-text .sequence-final.active {
    opacity: 1;
    visibility: visible;
}

#loading-text h1 {
    font-size: 4.5rem;
    font-weight: normal;
    white-space: nowrap;
    margin: 0;
    color: #fff;
    text-align: center;
}

#loading-text .sequence-1 h1,
#loading-text .sequence-3 h1,
#loading-text .sequence-final h1.top {
    font-size: 110px;
}


#loading-text .sequence-2 h1 {
    font-size: 140px;
}


@media (max-width: 768px) {
    #loading-text .sequence-1 h1,
    #loading-text .sequence-3 h1,
    #loading-text .sequence-final h1.top {
        font-size: 3.75rem;
        font-weight: 500;
    }
    
    #loading-text .sequence-final h1.bottom {
        font-size: 1.5rem;
        font-weight: 400;
    }
}

#loading-text .sequence-3 h1,
#loading-text .sequence-final h1.bottom {
    font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
}

#loading-text h1 span {
    display: inline-block;
    position: relative;
    opacity: 0;
}

#loading-text h1 span::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #004177;
    transform-origin: right;
    transform: scaleX(1);
    transition: transform 0.5s cubic-bezier(0.8, 0, 0.2, 1);
}

#loading-text h1 span.reveal {
    opacity: 1;
}

#loading-text h1 span.reveal::before {
    transform: scaleX(0);
}

.text-path {
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}
body{
    overflow: hidden;
}
.hidden {
    display: none;
}

/* Main Content Styles */
main {
    /* margin-top: 60px; Changed from padding to margin */
    min-height: calc(100vh - 60px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Add this to prevent horizontal scroll */
}

main.visible {
    opacity: 1;
    visibility: visible;
}

/* Loading state */
#loading-sequence:not(.hidden) ~ nav,
#loading-sequence:not(.hidden) ~ footer {
    display: none;
}

/* PC Navigation */
.pc-nav {
    display: flex;
    position: absolute;  /* Changed from fixed to absolute */
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    height: 60px;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    pointer-events: none;
}

.pc-nav.visible {
    opacity: 0.9;
    transform: translateY(0);
    pointer-events: auto;
}

/* Sticky Navigation */
.sticky-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    height: 60px;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    pointer-events: none;
}

.sticky-nav.visible {
    opacity: 0.9;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hide sticky nav during loading */
#loading-sequence:not(.hidden) ~ .sticky-nav {
    display: none;
}

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

.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;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    pointer-events: none;
}

.sp-nav.visible {
    opacity: 0.9;
    transform: translateY(0);
    pointer-events: auto;
}

/* Common Navigation Styles */
.main-nav {
    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;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.main-nav.visible {
    opacity: 0.9;
    transform: translateY(0);
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    /* padding: 0 2rem; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

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

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

.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: #004177;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.1em;
}

.nav-links a:not(.contact-btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
  background-color: #004177;
    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 */
@media (max-width: 768px) {
    .pc-nav {
        display: none;
    }

    .sp-nav {
        display: flex;
        z-index: 1000;
        opacity: 0;
        transform: translateY(-100%);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .sp-nav.visible {
        opacity: 0.9;
        transform: translateY(0);
    }

    /* Hamburger Menu */
    .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: 20px;
        height: 2px;
        background-color: #004177;
        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%;
    }

    /* Animation for active state */
    .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 Navigation Layout */
    .sp-nav .nav-container {
        padding-right:16px;
    }

    .sp-nav .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 80px 2rem 2rem;
        margin: 0;
        transition: right 0.3s ease;
        gap: 0;
        z-index: 999;
        display: flex;
    }

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

    /* Keep all other styles the same */
    .sp-nav .nav-links li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }

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

    .sp-nav .nav-links .menu-text {
        font-size: 16px;
        letter-spacing: 0.2em;
    }

    .sp-nav .nav-links .menu-plus {
        display: none; /* Hide the plus symbols */
        font-size: 24px;
        font-weight: 300;
        color: #333;
    }

    .sp-nav .nav-links .contact-btn {
        display: block;
        text-align: center;
        margin: 2rem 1.5rem;
        padding: 0.3rem;
        width: calc(100% - 3rem);
        border-radius: 50px;
        background-color: #00b894;
        color: white;
        text-decoration: none;
        border: 2px solid #00b894;
        transition: all 0.3s ease;
        letter-spacing: 0.2em;
    }

    .sp-nav .nav-links .contact-btn:hover {
        background-color: white;
        color: #00b894;
        border-color: #00b894;
    }

    /* SP Company Info */
    .nav-footer {
        position: absolute;
        bottom: 2rem;
        left: 2rem;
        right: 2rem;
        padding: 2rem 0;
        text-align: left;
    }

    .company-name {
        font-size: 1.1rem;
        font-weight: 500;
        margin-bottom: 1rem;
        color: #333;
    }

    .company-address {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        color: #666;
    }

    .company-contact a {
        font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
        font-size: 12.6px;
        color: #666;
    }

    .company-contact p {
        font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
        font-size: 12.6px;
        color: #666;
        margin-bottom: 7px;
    }

    .company-contact a {
        color: #666;
        text-decoration: none;
    }

    .company-contact a:hover {
        text-decoration: underline;
    }

    .sp-nav .nav-links a:not(.contact-btn)::after {
        display: none;  /* This will remove the hover line animation for SP navigation */
    }
}

@media (max-width: 480px) {
    .hamburger span {
        width: 28px;
        height: 3px;
    }
    
    .hamburger span:nth-child(1),
    .hamburger span:nth-child(2) {
        margin-bottom: 6px;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    color: white;
}

.hero-content.visible {
    opacity: 1;
    visibility: visible;
}

.hero-content .main-title {
    font-size: 110px;
    font-weight: 500;
    margin-bottom: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    color: white;
}

.hero-content .subtitle {
    font-size: 45px;
    font-weight: 400;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    color: white;
}

.scroll-link {
    position: absolute;
    bottom: 5rem;
    left: 2rem;
    transform: rotate(90deg) translateX(-50%);
    transform-origin: left center;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    z-index: 2;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: row-reverse;
}

.scroll-link::before {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background-color: #fff;
    transition: width 0.6s ease;
}

.scroll-link:hover::before {
    width: 0;
}

/* Add touch device styles */
@media (hover: none) {
    .scroll-link:active::before {
        width: 0;
    }
    
    .scroll-link:not(:active)::before {
        width: 80px;
        transition: width 0.6s ease;
    }
}

/* Animations */
@keyframes fadeInZoomLogo {
    0% {
        opacity:1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(5);
    }
}


@keyframes fadeInZoomLogoSP {
    0% {
        opacity: 1;
        transform: scale(0.1);
    }
    /* 60% {
        opacity: 1;
        transform: scale(2);
    } */
    100% {
        opacity: 0;
        transform: scale(2.5);
    }
}

@keyframes fadeOutLogo {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #ffffff }
}

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

/* Responsive design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav-container {
        padding-right: 1rem;
        height: 55px;
    }
    .main-nav {
        height: 55px !important;
    }
    .logo{
        width: 95px;
        height: 100%;
    }
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero-content .main-title {
        font-size: 3.75rem;  /* 3rem * 1.25 = 3.75rem */
    }
    
    .hero-content .subtitle {
        font-size: 1.5rem;  /* 1.2rem * 1.25 = 1.5rem */
    }
    
    .concept {
        padding: 4rem 1rem;
    }

    .concept-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .concept-main {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .concept-text {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .service-title-wrapper {
        padding-left: 50px;
        padding-right: 50px;
    }
    #logo-container {
        animation: fadeInZoomLogoSP 1.5s ease-in forwards;
    }
}

/* Concept Section */
.concept {
    padding: 5rem 2rem 6rem;
    text-align: center;
    background-image: url('../static/concept.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: #fff;
    /* min-height: 80vh; */
}

.concept::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
/*    background-color: rgba(0, 0, 0, 0.6);*/
    z-index: 1;
}

.concept-content {
    position: relative;
    z-index: 2;
}

/* Title animation */
.concept-title {
    font-size: 3.5rem;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    font-weight: normal;
    padding-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  
    font-style: italic;
    /* margin-bottom: 0.5rem; */
    letter-spacing: 0.1em;
}


/* Main text and Description text animation */
.concept-main-wrapper,
.concept-text-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 2s ease-out, transform 2s ease-out;
}

.concept-main {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    font-weight: 600;
    line-height: 1.6;
}

.concept-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 2rem;
}

/* Fade in classes */
.concept-title.fade-in,
.concept-main-wrapper.fade-in,
.concept-text-wrapper.fade-in {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 480px) {
    .concept {
        height: 550px;
        margin: 0 auto;
        padding-top:54px;
        padding-left:20px;
        padding-right:20px;
        padding-bottom: 33px;
    }

    .concept-title {
        padding-top: 0;
        font-size: 45px;
        margin-bottom: 52px;
    }

    .concept-main {
        font-size: 20px;
        margin-bottom:52px;
    }

    .concept-text {
        font-size: 14px;
    }
}
/* Mission Section */
.mission {
    position: relative;
    width: 100%;
    height: 460px;  /* Changed from 50vh to 600px */
    overflow: visible;
}

.mission-image {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: visible;
}

.mission-title {
    position: absolute;
    top: -3.5rem;  /* Changed from -2.5rem to -3.5rem to move it higher */
    left: 25%;  /* PC view - align with middle of left section */
    transform: translateX(-50%);
    z-index: 10;
}

.mission-title h2::before,
.vision-title h2::before,
.value-title h2::before {
    display: none;
}

.mission-title h2,
.vision-title h2,
.value-title h2 {
    color: #fff;
    font-size: 4rem;
    font-weight: normal;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    position: relative;
    letter-spacing: 0.1em;
}

.mission-title h2 span,
.vision-title h2 span,
.value-title h2 span {
    display: inline-block;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mission-title h2.reveal,
.vision-title h2.reveal,
.value-title h2.reveal {
    opacity: 1;
}

.mission-title h2.reveal span,
.vision-title h2.reveal span,
.value-title h2.reveal span {
    opacity: 0.8;
    transform: translateX(0);
    transition-delay: calc(var(--char-index) * 0.05s);
}

.mission-title h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 1s cubic-bezier(0.83, 0, 0.17, 1);
}

.mission-title h2.reveal::before {
    width: 100%;
}

.mission-title h2.reveal::before {
    width: 100%;
}

.mission-title h2 span {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.1s;
}

.mission-title.fade-in h2 span {
    opacity: 0.8;
    transition-delay: calc(var(--char-index) * 0.05s);
}

.mission-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
    transition-delay: 0.4s;
}

.mission-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.mission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
/*    filter: brightness(0.6);*/
}

.mission-text-content {
    position: relative;
    width: 50%;
    height: 100%;
    background-color: #004177;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.mission-text-content-text {
    color: #fff;
    font-size: 25px;
    line-height: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 0 auto;
}

/* Responsive design for Mission */
@media (max-width: 768px) {
    .mission {
        height: auto;
    }

    .mission-title {
        top: -3.5rem;  /* Also update the mobile view */
        left: 50%;  /* SP view - center align */
        transform: translateX(-50%);
    }

    .mission-title h2 {
        font-size: 3.5rem;
        padding: 1rem;
    }

    .mission-content {
        flex-direction: column;
    }

    .mission-image {
        width: 100%;
        height: 50vh;
        overflow: visible;
    }

    .mission-text-content {
        width: 100%;
        /* min-height: 50vh; */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .mission-text-content-text {
        width: 100%;
        font-size: 1.2rem;
        padding: 0 2rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .mission-title h2{
        font-size: 40px;
        padding: 0.8rem;
    }

    .mission-text-content-text {
        font-size: 14px;
    }

    .mission-image {
        height: 250px;
    }

    .mission-text-content {
        height: 250px;
    }
}

/* Vision Section */
.vision {
    position: relative;
    width: 100%;
    height: 460px;  /* Changed from 50vh to 600px */
    overflow: visible;
    margin-bottom: 0;
}

.vision-title {
    position: absolute;
    top: -3.5rem;
    left: 75%;  /* PC view - align with middle of right section */
    transform: translateX(-50%);
    z-index: 10;
}

.vision-title h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 1s cubic-bezier(0.83, 0, 0.17, 1);
}

.vision-title h2.reveal::before {
    width: 100%;
}

.vision-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
    transition-delay: 0.4s;
    margin-bottom: 0;  /* Ensure no bottom margin */
}

.vision-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.vision-text-content {
    position: relative;
    width: 50%;
    height: 100%;
    background-color: #004177;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.vision-text-content-text {
    color: #fff;
    font-size: 25px;
    line-height: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 0 auto;
}

.vision-image {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: visible;
}

.vision-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
/*    filter: brightness(0.6);*/
}

/* Responsive design for Vision */
@media (max-width: 768px) {
    .vision {
        height: auto;
    }

    .vision-title {
        top: -3.5rem;
        left: 50%;  /* SP view - center align */
        transform: translateX(-50%);
    }

    .vision-title h2 {
        font-size: 3.5rem;
        padding: 1rem;
    }

    .vision-content {
        flex-direction: column;
    }

    .vision-text-content {
        width: 100%;
        /* min-height: 50vh; */
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .vision-text-content-text {
        width: 100%;
        font-size: 1.2rem;
        padding: 0 2rem;
        text-align: left;
    }

    .vision-image {
        width: 100%;
        height: 50vh;
        order: 1;
    }
}

@media (max-width: 480px) {
    .vision-title h2 {
        font-size: 40px;
        padding: 0.8rem;
    }

    .vision-text-content-text {
        font-size: 14px;
    }

    .vision-image {
        height: 250px;
    }

    .vision-text-content {
        height: 250px;
    }
}

/* Value Section */
.value {
    position: relative;
    width: 100%;
    height: 460px;  /* Changed from 50vh to 600px */
    overflow: visible;
}

.value-title {
    position: absolute;
    top: -3.5rem;
    left: 25%;  /* PC view - align with middle of left section */
    transform: translateX(-50%);
    z-index: 10;
}

.value-title h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 1s cubic-bezier(0.83, 0, 0.17, 1);
}

.value-title h2.reveal::before {
    width: 100%;
}

.value-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
    transition-delay: 0.4s;
}

.value-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.value-image {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: visible;
}

.value-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
/*    filter: brightness(0.6);*/
}

.value-text-content {
    position: relative;
    width: 50%;
    height: 100%;
    background-color: #004177;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 62px;
    padding-bottom: 62px;
    padding-left: 90px;
    padding-right: 100px;
}

.value-text-content-text {
    color: #fff;
    width:100%;
    height:100%;
    /* margin: 0 auto;
    text-align: left; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
}

.value-item {
    margin-bottom:1.2rem;
}

.value-item:last-child {
    margin-bottom: 0;
}

.value-item h3 {
    font-size: 25px;
    margin-bottom: 0;
    font-weight: 500;
    font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
/*    line-height: 1.5;*/
}

.value-item p {
    font-size: 15px;
    /* line-height: 1.8; */
    font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
}

/* Responsive design for Value */
@media (max-width: 768px) {
    .value {
        height: auto;
    }

    .value-title {
        top: -3.5rem;
        left: 50%;  /* SP view - center align */
        transform: translateX(-50%);
    }

    .value-title h2 {
        font-size: 3.5rem;
        padding: 1rem;
    }

    .value-content {
        flex-direction: column;
    }

    .value-image {
        width: 100%;
        height: 50vh;
    }

    .value-text-content {
        width: 100%;
        /* min-height: 50vh; */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .value-text-content-text {
        width: 100%;
        padding: 0 2rem;
        text-align: left;
    }

    .value-item {
        margin-bottom: 0.6rem;
    }

    .value-item h3 {
        font-size: 0.95rem;
    }

    .value-item p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .value-title h2 {
        font-size: 40px;
        padding: 0.8rem;
    }

    .value-image {
        height: 250px;
    }

    .value-text-content {
        padding-top: 30px;
        padding-bottom: 27px;
        padding-left:20px;
        padding-right: 20px;
        height: 485px;
    }
    .value-item{
        margin-bottom: 1rem;
    }

    .value-item h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .value-item p {
        font-size: 14px;
    }
}

/* Service Section */
.service {
    padding-top: 7rem;
    padding-bottom: 11rem;
    text-align: center;
    background-color: #fff;
    position: relative;
}

.service-title {
    margin-bottom: 2.7rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.service-title.reveal {
    opacity: 1;
    transform: translateY(0);
}

.service-title h2 {
    font-size: 3.5rem;
    font-weight: normal;
    font-style: italic;
    color: #004177;
    /* margin-bottom: 0.5rem; */
    letter-spacing: 0.1em;
}

.service-title .subtitle {
    font-size: 1rem;
    color: #004177;
    margin-top: 0;
    font-weight: 600;
}

.service-description {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.service-description.reveal {
    opacity: 1;
    transform: translateY(0);
}

.service-description p {
    font-size: 1rem;
    line-height: 1.8;
    color: #004177;
    margin-bottom: 1rem;
}

.service-description p {
    font-weight: 600;
    font-size: 24px;
}


/* Responsive design for Service section */
@media (max-width: 768px) {
    .service {
        padding: 2.3rem 0;
    }

    .service-title h2 {
        font-size: 2.5rem;
    }

    .service-title .subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .service-title h2 {
        font-size: 45px;
    }

    .service-title .subtitle {
        font-size: 13px;
    }

    .service-description p {
        font-size: 18px;
        line-height: 30px;
        font-family: "Yu Mincho Pr6N", "游明朝体", Yu Mincho, serif;
        font-weight: 600;
    }
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 3rem 0 0;
    padding: 0;
    width: 100vw;  /* Use viewport width */
    margin-left: calc(-50vw + 50%);  /* Negative margin trick to break out of container */
    margin-right: calc(-50vw + 50%);
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);  /* Center the grid */
    background-color: white;
}

.service-box {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-box.reveal {
    opacity: 1;
    transform: translateY(0);
}

.service-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-box:hover img {
    transform: scale(1.2);
}

.service-box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
/*    background: rgba(0, 60, 136, 0.5);*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.service-box-overlay h3 {
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
    font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
}

.service-box-overlay .work-number {
    display: none;  /* Hide the old work number */
}

.service-box::after {
    content: 'Work ' attr(data-work-number);
    position: absolute;
    bottom: -1.4rem;
    right: -0.1rem;
    font-size: 2.9rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
    pointer-events: none;
    font-family: 'Times New Roman', serif;
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }

    .service-box-overlay h3 {
        font-size: 1.2rem;
    }

    .service-box::after {
        font-size: 2.5rem;
        bottom: 0.8rem;
        right: 0.8rem;
    }
}

@media (max-width: 480px) {
    .service{
        margin-bottom: 60px;
    }
    .service-grid {
        grid-template-columns: 1fr;
        gap: 4px;  /* Increased from 2px to 8px */
    }

    .service-box {
        height: 250px;
        width: 100%;
        position: relative;
    }

    .service-box-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .service-box-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .service-box::after {
        bottom: -1.2rem;
        right: -0.1rem;
    }

    .service-box-overlay h3 {
        font-size: 20px;
        margin: 0;
        padding: 0;
    }

    .service-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Recruit/Partner Section */
.recruit-partner {
    position: relative;
    width: 100%;
    /* padding: 6rem 0; */
    padding-top:7rem;
    padding-bottom:6rem;
    background-image: url('../static/recruit.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

.recruit-partner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 60, 136, 0.3); */
}

.recruit-partner-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.recruit-partner-header {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.recruit-partner-header.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.recruit-partner-boxes {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    transition-delay: 0.3s;
}

.recruit-partner-boxes.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.recruit-partner .section-title {
    font-size: 3.5rem;
    font-weight: normal;
    font-style: italic;
    /* margin-bottom: 0.5rem; */
    letter-spacing: 0.1em;
}

.recruit-partner .section-subtitle {
    font-size: 1rem;
    margin-bottom: 4rem;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 1px;
}


.recruit-partner-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.recruit-box,
.partner-box {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 4px solid #004177;
    border-radius: 10px;
    height: 250px;
    padding: 1.4rem 2rem 2rem;
    text-decoration: none;
    transition: all 0.8s ease;
}

.box-content {
    position: relative;
    height: 100%;
}

.link-text {
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    display: inline-block;
    color: #004177;
    transition: color 0.8s ease;
}

.arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    transition: opacity 0.8s ease;
    opacity: 1;
}

.arrow.hover {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.recruit-box:hover .arrow.default,
.partner-box:hover .arrow.default {
    opacity: 0;
}

.recruit-box:hover .arrow.hover,
.partner-box:hover .arrow.hover {
    opacity: 1;
}

.recruit-box:hover,
.partner-box:hover {
    background: #004177;
    border-color: #ffffff;
}

.box-content h3 {
    font-size: 30px;
    font-weight: normal;
    font-style: italic;
    margin-bottom: 0.3rem;
    color: #004177;
    transition: color 0.8s ease;
    letter-spacing: 0.05em;
}

.box-content p {
    font-size: 1rem;
    margin-bottom: 2.1rem;
    color: #004177;
    position: relative;
    padding-bottom: 15px;
    transition: color 0.8s ease;
    font-weight: 600;
}

.box-content p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background-color: #004177;
    transition: background-color 0.8s ease;
}

.recruit-box:hover .box-content h3,
.recruit-box:hover .box-content p,
.recruit-box:hover .link-text,
.recruit-box:hover .arrow,
.partner-box:hover .box-content h3,
.partner-box:hover .box-content p,
.partner-box:hover .link-text,
.partner-box:hover .arrow {
    color: #ffffff;
}

.recruit-box:hover .box-content p::after,
.partner-box:hover .box-content p::after {
    background-color: #ffffff;
}

/* Responsive design for Recruit/Partner section */
@media (max-width: 768px) {
    .recruit-partner {
        padding: 4rem 0;
    }

    .recruit-partner .section-title {
        font-size: 2.5rem;
    }

    .recruit-partner .section-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .recruit-partner-grid {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .recruit-box,
    .partner-box {
        height: 250px;  /* Mobile view height */
    }

    .box-content h3 {
        font-size: 1.8rem;
    }

    .box-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .arrow {
        bottom: 0.5rem;
        right: 0.5rem;
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .recruit-partner {
        height: 650px;
        padding:0;
    }

    .recruit-partner-content {
        margin-top:34px
    }
    .recruit-partner-grid{
        display: flex;
        flex-direction: column;
        align-items: center;
    }


    .recruit-partner .section-title {
        margin-top:0px;
        font-size: 45px;
        margin-bottom:15px;
        letter-spacing: 0rem;
    }
    .recruit-partner .section-subtitle{
        margin-bottom: 28px;
    }
    .recruit-box,
    .partner-box {
        width:300px;
        height: 140px;
        padding: 0;
    }

    .box-content h3 {
        font-size: 17px;
        margin-top: 17px;
        margin-bottom: 9px;
    }

    .box-content p {
        font-size: 13px;
        padding-bottom:15px;
        margin-bottom: 16px;
    }

    .box-content p::after {
        width: 80%;
        left: 50%;
        transform: translateX(-50%);
    }

    .link-text {
        font-size: 14px;
        margin-bottom: 21px;
    }

    .arrow {
        bottom: 0.3rem;
        right: 0.3rem;
        font-size: 1rem;
        width: 30px;
        height: 30px;
    }
}

/* News Section */
.news {
    padding-top: 5rem;
    padding-bottom: 10rem;
    background-color: #fff;
}

.news-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.news-header {
    margin-bottom: 26px;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
    padding-bottom: 14px;
    border-bottom: 1px solid #004177;
}

.news-header.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.news-header .section-title {
    font-size: 3.5rem;
    font-weight: normal;
    font-style: italic;
    color: #004177;
    margin: 0;
    letter-spacing: 0.1em;
}

.news-header .section-subtitle {
    font-size: 1rem;
    color: #004177;
    margin: 0;
    padding-top: 0.8rem;
    font-weight: 600;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    transition-delay: 0.3s;
}

.news-list.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.news-item {
    display: flex;
    align-items: center;
    gap: 0;  /* Changed from 2rem to 0 to remove all gaps */
    padding-bottom: 23px;
    border-bottom: 1px solid #004177;
}

.news-date {
    font-size: 0.9rem;
    color: #004177;
    white-space: nowrap;
    margin-right: 3.4rem;  /* Added margin to create space between date and category */
}

.news-category {
    background-color: #004177;
    color: white;
    padding: 7px 32px;
    border-radius: 50px;
    font-size: 0.85rem;
    white-space: nowrap;
    margin-right: 1.2rem;  /* Changed from 0.5rem to 1.2rem for more space */
}

.news-text {
    font-size: 0.9rem;
    color: #004177;
    flex-grow: 1;
}

/* Responsive design for News section */
@media (max-width: 768px) {
    .news {
        padding: 4rem 0;
    }

    .news-header .section-title {
        font-size: 3rem;
    }

    .news-header .section-subtitle {
        font-size: 0.9rem;
    }

    .news-item {
        flex-wrap: wrap;
        gap: 0;
    }

    .news-date {
        margin-right: 2rem;  /* Reduced margin for mobile */
    }

    .news-category {
        margin-right: 0.8rem;  /* Added margin for mobile view */
    }
}

@media (max-width: 480px) {
    .news {
        padding-top: 70px;
        padding-bottom: 90px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .news-header{
        gap: 20px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    .news-header .section-title {
        font-size: 45px;
        line-height: 50px;
    }

    .news-header .section-subtitle {
        padding-top: 28px;
        font-size: 13px;
        line-height: 13px;
    }
    .news-content{
        padding-left: 0px;
        padding-right: 0px;
    }
    .news-category{
        padding: 4px 22px;
    }

    .news-item {
      gap: 0.6rem;
/*    height:140px;*/
      padding: 0 0 22px;
    }
  
    .news-item-top{
        margin-bottom: 10px;
    }
  
    .news-date {
        margin-right:74px;
        font-size: 15px;
    }

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

    .news-text {
        font-size: 14px;
    }
}

/* About/Contact Section */
.about-contact {
    display: flex;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    position: relative;
    overflow: visible;
}

.about-contact.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.about-contact-wrapper,
.contact-section-wrapper {
    width: 50%;
    position: relative;
    overflow: visible;
}

.about-section,
.contact-section {
    width: 100%;
    height: 45vh;
    position: relative;
    display: block;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
}

.about-section .background-image,
.contact-section .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease-out;
    z-index: 1;
}

.about-section .background-image {
    background-image: url('../static/about.jpg');
}

.contact-section .background-image {
    background-image: url('../static/contact.jpg');
}

.about-section::before,
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: background-color 0.6s ease-out;
}

.about-section::before {
/*    background-color: rgba(0, 41, 102, 0.7);*/
}

.contact-section::before {
/*    background-color: rgba(0, 184, 148, 0.7);*/
}

.section-title-about,
.section-title-contact {
    position: absolute;
    top: -3rem;
    font-size: 3.5rem;
    font-weight: normal;
    font-style: italic;
    z-index: 10;
    color: #004177;
    margin: 0;
    opacity: 0.8;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 0.1em;
}

.about-content,
.contact-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 3;
    padding-top: 2rem;
}

.about-content h3,
.contact-content h3 {
    font-size: 27px;
    font-weight: normal;
    margin: 0;
    padding: 0;
    letter-spacing: 0.05em;
    color: #fff;
    font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
}

.mail-icon {
    margin-right: 0.2rem;
    width: 44px;
    height: 29px;
    vertical-align: middle;
    display: inline-block;
}

.mail-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center
}

.about-section:hover .background-image,
.contact-section:hover .background-image {
    transform: scale(1.2);
}

.about-section:hover::before {
    background-color: rgba(0, 41, 102, 0.4);
}

.contact-section:hover::before {
    background-color: rgba(0, 184, 148, 0.4);
}

.section-title-about-sp,
.section-title-contact-sp {
    display: none;
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    font-weight: normal;
    font-style: italic;
    z-index: 10;
    color: #003C88;
    margin: 0;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .about-contact {
        flex-direction: column;
    }

    .about-contact-wrapper,
    .contact-section-wrapper {
        width: 100%;
    }

    .about-contact-wrapper {
        margin-bottom: 2rem;
    }

    .section-title-about,
    .section-title-contact {
        font-size: 3rem;
        top: -2.9rem;
    }

    .about-section,
    .contact-section {
        height: 250px;
    }

    .about-content h3,
    .contact-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .about-section,
    .contact-section {
        height: 250px;
    }
    .about-contact-wrapper{
        margin-bottom: 51px;
    }

    .section-title-about,
    .section-title-contact {
        font-size: 45px;
    }
    .about-content,
    .contact-content {
        padding-top: 0;
    }
    .about-content h3,
    .contact-content h3 {
        font-size: 1.2rem;
    }

    .mail-icon {
        width: 20px;
        height: 14px;
    }
}

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

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

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

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

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

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

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

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

.footer-pc .footer-nav {
    display: flex;
    gap: 3rem;
    margin-left: 15rem;  /* Changed from 2rem to 8rem for more space between company info and navigation */
    align-items: flex-start;
    padding-top: 2rem;
}

.footer-pc .footer-nav-list {
    list-style: none;
    display: flex;
    gap: 1rem;  /* Changed from 2rem to 3rem for more space between links */
    margin: 0;
    padding: 0;
}

.footer-pc .footer-nav-list li {
    margin-right: 1rem;  /* Added margin between list items */
}

.footer-pc .footer-nav-list li:last-child {
    margin-right: 0;  /* Remove margin from last item */
}

.footer-pc .footer-nav-list a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
    position: relative;
    letter-spacing: 0.2em;
}

.footer-pc .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-pc .footer-nav-list a:hover::after {
    width: 100%;
}

.footer-pc .copyright {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.8;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 20px;
}

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

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

/* Navigation block */
.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;
}

.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%;
}

/* Bottom content block */
.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-family: "游明朝体", Yu Mincho, "YuMincho", serif;
    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;
    padding-top: 10px;
    padding-bottom: 20px;
    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;
        /* justify-content: center;
        align-items: center; */
    }
}

@media (max-width: 480px) {
    /* .footer-sp {
        padding: 2rem 1rem;
    } */

    .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;
        margin-bottom:8px;
    }

    .footer-sp-address,
    .footer-sp-contact {
        font-size: 14px;
    }
    .footer-sp-address{
        margin-bottom:4.8px;
    }
    .footer-sp-contact{
        margin-bottom:8px;
    }
    .footer-sp-bottom-wrapper{
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .copyright {
        font-size: 13px;
    }
}

.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

@media (max-width: 480px) {
    .pc-only {
        display: none;
    }
    
    .sp-only {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .sp-recruit {
        display: block;
        margin-bottom: 0;
        line-height: 45px;
    }
    
    .sp-partner {
        display: block;
        line-height: 45px;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 36px;
        height: 41px;
    }
}

.pc-version {
    display: flex;
}

@media (max-width: 480px) {
    .pc-version {
        display: none !important;
    }
}

.footer-nav-list a:not(.contact-btn) {
    position: relative;
    text-decoration: none;
    color: #fff;
}

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

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

@media (max-width: 768px) {
    .footer-nav-list a:not(.contact-btn)::after {
        display: none;
    }
}