/* Service Hero Section */
.service-hero {
    height: 100vh;
    width: 100%;
    position: relative;
}

.service-hero-bg {
    width: 100%;
    height: 100%;
    background-image: url('../static/service/service_kv.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.service-hero-content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #004177;
    width: 1200px;
    height:600px;
    padding: 0 3rem;
    background-color: rgba(255, 255, 255, 0.8);
/*    backdrop-filter: blur(5px);*/
/*    -webkit-backdrop-filter: blur(5px);*/
}

.service-hero-content h1 {
    margin-bottom: 2px;
    margin-top: 99px;
    letter-spacing: 0.05em;
    /* font-size: 75px;
    line-height: 75px;
    font-family: "Times", "Times New Roman", serif; */

    font: italic normal normal 75px/75px Times New Roman;
    font-size: 65px;
}
.service-hero-title-text{
    margin-bottom: 70px;
    font-size: 17px;
    line-height: 20px;
    font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
    letter-spacing: 0.5px;
    color: #004177;

}


.service-hero-content-text{
    text-align: center;
    font-size: 20px;
/*    line-height: 22px;*/
    font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
    letter-spacing: 1.5px;
    color: #004177;
    margin-bottom: 100px;
}

.service-hero-content h2 {
    text-align: center;
    font-size: 38px;
    line-height: 40px;
    font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
    letter-spacing: 2px;
    color: #004177;
    margin-bottom: 70px;
}

/* Service Work Section */
.service-work-intro {
    max-width: 1200px;
    margin: 0 auto 120px;
    padding: 0 2rem;
    color: #004177;
}

.service-work-intro p {
    font-size: 20px;
    line-height: 35px;
    font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
    color: #004177;
    text-align: center;
    margin: 0;
}

.work-sections-container {
    width: 1200px;
    margin: 0 auto;
}

.work-section {
    padding: 120px 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.work-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 50px;
    height: 550px;
    margin-bottom: 120px;
}

.work-container:last-child {
    margin-bottom: 0;
}

.work-section:nth-child(odd) .work-container {
    flex-direction: row-reverse;
}

.work-content {
    width: 550px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    position: relative;
}

.work-number {
    font-family: "Times", "Times New Roman", serif;
    font-size: 30px;
    line-height: 23px;
    color: #004177;
    margin-bottom: 35px;
    font-style: italic;
    position: relative;
    display: inline-block;
    padding-bottom: 0px;
}

.work-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #004177;
    transition: width 1.5s ease;
}

.work-number.visible::after {
    width: 100%;
}

.work-title {
    font-size:50px;
    line-height: 50px;
    font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
    color: #004177;
    margin-bottom: 40px;
}

.work-description {
    font-size: 17px;
    line-height: 30px;
    font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
    color: #004177;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.work-tags-section {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.work-tags-title-wrapper {
    display: flex;
    justify-content: center;
    position: relative;

    z-index: 2;
}

.work-tags-title {
    display: inline-block;
    background-color: white;
    padding: 0 20px;
    font-size: 17px;
    line-height: 17px;
    font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
    color: #004177;
    letter-spacing: 0.42px;
    font-weight: normal;
    margin: 0;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    padding-top: 17px;
    border-top: 1px solid #004177;
    margin-top: -8px;
}

.work-tag {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #004177;
    color: #fff;
    padding: 9px 2px 6px;
    border-radius: 50px;
    font-size: 13px;
    flex: 0 0 calc((100% - 24px) / 3);
    text-align: center;
    max-height: 40px;
    line-height: 1.3;
    letter-spacing: 0.03em;
}

/* Special style for the longer tag */
.work-tag-wide {
    flex: 0 0 calc((100% - 12px) / 1.5);
}

.work-image {
    width: 600px;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-number span, .work-title span {
    opacity: 0;
    display: inline-block;
    transition: opacity 0.5s ease;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .service-hero-content {
        bottom: 0;
        width: 100%;
        height:500px;
        padding: 2rem;
        margin: 0;
    }

    .service-hero-content h1 {
        font-size: 36px;
        margin-top: 54px;
        line-height: 36px;
    }

    .service-hero-title-text {
        margin-bottom: 52px;
    }

    .service-hero-content h2 {
        font-size: 20px;
        margin-bottom: 52px;
    }

    .service-hero-content p {
        font-size: 14px;
        margin-bottom: 50px;
    }

    .work-sections-container {
        width: 100%;
        padding: 0 1rem;
    }

    .service-work-intro {
        margin: 0 auto 60px;
    }

    .work-section {
        padding: 60px 0 100px;
    }

    .work-container {
        flex-direction: column !important;
        gap: 30px;
        padding: 0 1.5rem;
        height: auto;
        margin-bottom: 77px;
    }

    .work-image {
        width: 100%;
        order: 2;
        height: 300px;
    }

    .work-content {
        width: 100%;
        order: 1;
        text-align: left;
        height: auto;
    }

    .work-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .work-description {
        font-size: 14px;
    }

    .work-tags-section {
        position: static;
        margin-top: 33px;
    }

    .work-tags {
        margin-top: -8px;
    }

    .work-tag {
        flex: 0 0 calc(50% - 10px);
    }

    .service-work-intro p {
        font-size: 14px;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .service-hero {
      height: 80vh;
    }
  
    .service-hero-content {
        width: 86%;
        height: 480px;
        padding: 0;
    }
    
    .waterproof-tag {
        height: 44px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .work-tag-wide {
        flex: 0 0 100%;
    }

    .work-tag {
        flex: 0 0 calc((100% - 12px) / 2);
        font-size: 10px;
        padding: 6px 10px;
        font-family: "游明朝体", Yu Mincho, "YuMincho", serif;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .work-tags {
        gap: 12px;
        justify-content: center;
    }

    .service-hero-content p {
        padding-left: 2rem;
        padding-right: 2rem;
        padding: 0 12px;
    }

    .work-tag {
        font-size: 10px;
    }

    .logo img {
        width: 36px;
        height: 41px;
    }
  
    .work-number {
      font-size: 21px;
      line-height: 16px;
      margin-bottom: 10px;
    }
  
    .work-title {
      font-size: 24px;
      margin-bottom: 11px;
      line-height: 1.8;
    }
}

.sticky-nav {
    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;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.sticky-nav.visible {
    transform: translateY(0);
}

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