@font-face {
    font-family: 'NotoSerifJP';
    src: url('../fonts/NotoSerifJP-VF.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'NotoSerifJP', serif;
    color: #333;
    line-height: 1.8;
    background-color: #ffffff;
    overflow-x: hidden;
}



/* 固定悬浮语言切换器 */
.language-switcher {
    position: fixed;
    top: 30px;
    left: 30px;
    display: flex;
    gap: 8px;
    z-index: 1000;
}

.language-switcher a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.language-switcher .lang-ja {
    background-color: #333;
    color: white;
}

.language-switcher .lang-ja:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.language-switcher .lang-ja.active {
    background-color: #FF6B35;
    color: white;
}

.language-switcher .lang-ja.active:hover {
    background-color: #FF8559;
    transform: translateY(-2px);
}

.language-switcher .lang-zh {
    background-color: #555;
    color: white;
}

.language-switcher .lang-zh:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.language-switcher .lang-zh.active {
    background-color: #FF6B35;
    color: white;
}

.language-switcher .lang-zh.active:hover {
    background-color: #FF8559;
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .language-switcher {
        top: 20px;
        left: 20px;
        gap: 6px;
    }
    
    .language-switcher a {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 竖排文字类 */
.vertical-text {
    writing-mode: vertical-rl;
    letter-spacing: 0.5em;
    line-height: 1.5;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #ffffff;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s;
}

.hero-slide.active .hero-content h1 {
    opacity: 1;
    transform: translateY(0);
}

.hero-slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-slider-dots span {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-dots span:hover,
.hero-slider-dots span.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* Section Common */

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 28px;
    letter-spacing: 4px;
}

.en-sub {
    font-size: 14px;
    color: #999;
}

/* 首页的第二部分 */
.services{
    padding: 60px 10%;
    margin: 0 auto;
    background: url(../images/home/1.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Service Grid */
.service-grid {
    display: flex;
    gap: 50px;
    justify-content: center;
    /* 继续添加下边距, 去假充定位所占的位置, 同时保持整个模块的上下边距在视觉上的一致性 */
    margin-bottom: 40px;
}

.service-card {
     position: relative;
    width: 400px;
    background-color: #fff;
    padding: 10px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.20);
}
/* 这个是一个块元素 */
.service-card p{
    display: block;
    position: absolute;
    bottom: -12px;
    width: 40%;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(255, 255, 255);
    height: 30px;
    border-radius: 20px;
    font-size: 14px;
    /* 下阴影 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.20);
    line-height: 30px;

}


.service-card img {
    width: 100%;
    display: block;
}

/* Why Us Section*/
.why-us {
    padding: 100px 10%;
    background: url(../images/home/5.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.icon-features {
    display: flex;
    align-items: start;
    justify-content: space-around;
    margin-bottom: 80px;
    padding: 0 50px;
}


.feature-item {
    text-align: center;
}


.feature-item .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    background-size: contain;
    background-repeat: no-repeat;
}
/* 第一个icon */
.icon-features > .feature-item:nth-child(1) .icon {
    background-image: url(../images/icon/icon1.png);
}
/* 第二个icon */
.icon-features > .feature-item:nth-child(3) .icon {
    background-image: url(../images/icon/icon2.png);
}
/* 第三个icon */
.icon-features > .feature-item:nth-child(5) .icon {
    background-image: url(../images/icon/icon3.png);
}
/* 第四个icon */
.icon-features > .feature-item:nth-child(7) .icon {  
    background-image: url(../images/icon/icon4.png);
}

/* line */
.feature-line {
    width: 210px;
    height: 3px;
    background-color: #e8e4e1;
    margin: 40px 0px;
}

/* 三张图片组 */
.triple-images {
    display: flex;
    justify-content: space-between;
    align-items: center;

}
.triple-images img {
    width: 32%;
    box-shadow: 10px 10px 0px #ffffff;
}





/* Business Intro */
.business-intro {
    padding: 100px 10%;
    background:url(../images/home/business-bg.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.biz-row {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    gap: 60px;
}

.biz-row.reverse {
    flex-direction: row-reverse;
}

.biz-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 30px;
}

.biz-title-vertical {
    position: relative;
    flex-shrink: 0;
}

.biz-icon {
    position: absolute;
    top: -30px;
    left: -30px;
    z-index: 1;
    opacity: 0.15;
}

.biz-icon img {
    width: 80px;
    height: auto;
}

.biz-title-vertical .vertical-text {
    writing-mode: vertical-rl;
    letter-spacing: 0.1em;
    font-size: 1.9rem;
    font-weight: bolder;
    color: #333;
    text-orientation: upright;
    position: relative;
    z-index: 2;
    font-family: "weiruanyahei";
}

.biz-text {
    width: 80%;
}

.biz-text p {
    margin-bottom: 15px;
    color: #666;
    font-size: 1.1rem;
}

.biz-img {
    flex: 0,8;
}

.biz-img img {
    width: 100%;
}

.btn-detail {
    display: inline-block;
    width: 200px;
    padding: 5px 40px;
    border: 2px solid #000000;
    text-decoration: none;
    color: #000000;
    border-radius: 25px;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
      margin-top: 30px;
}

.btn-detail:hover {
    background: #333;
    color: #ffffff;
}

/* Grid Bottom */
.biz-grid-bottom {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.grid-item {
    flex: 1;
}

.grid-item img {
    width: 100%;
    margin-bottom: 25px;
    display: block;
}

.grid-item-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.grid-item-content .vertical-text {
    writing-mode: vertical-rl;
    letter-spacing: 0.1em;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    text-orientation: upright;
    flex-shrink: 0;
    font-family: "weiruanyahei";
}

.grid-item-text {
    flex: 1;
}

.grid-item-text p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}

/* KOI Stay Section */
.koi-stay {
    position: relative;
    color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.koi-stay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.koi-stay-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.koi-stay-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 50px 10%;
    gap: 60px;
}

.koi-content {
    flex: 1;
}

.koi-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
   
}

.koi-content p {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.koi-content p.spacer {
    margin-bottom: 20px;
}

.koi-img-float {
    flex: 0 0 auto;
    position: relative;
    background-color: #fff;
    padding: 0.425rem;
}

.koi-img-float img {
    width: 280px;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero {
        height: 100vh;
    }
    .hero-content {
        left: 5%;
        right: 5%;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 1.5rem;
        letter-spacing: 0.15em;
        line-height: 1.6;
    }
    .hero-slider-dots {
        bottom: 30px;
        gap: 10px;
    }
    .hero-slider-dots span {
        width: 8px;
        height: 8px;
    }

    /* Section Title Mobile */
    .section-title {
        margin-bottom: 40px;
    }
    .section-title h2 {
        font-size: 22px;
        letter-spacing: 2px;
    }
    .en-sub {
        font-size: 12px;
    }

    /* Services Section Mobile */
    .services {
        padding: 40px 5%;
    }
    .service-grid {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 20px;
    }
    .service-card {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .service-card p {
        font-size: 13px;
        height: 28px;
        line-height: 28px;
        bottom: -10px;
    }

    /* Why Us Section Mobile */
    .why-us {
        padding: 60px 5%;
    }
    .icon-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-bottom: 40px;
        padding: 0;
    }
    .feature-item {
        width: 45%;
    }
    .feature-item .icon {
        width: 60px;
        height: 60px;
    }
    .feature-item p {
        font-size: 13px;
    }
    .feature-line {
        display: none;
    }
    .triple-images {
        flex-direction: column;
        gap: 15px;
    }
    .triple-images img {
        width: 100%;
        box-shadow: 5px 5px 0px #ffffff;
    }
    .triple-images img.mt-large {
        margin-top: 0;
    }

    /* Business Intro Mobile */
    .business-intro {
        padding: 60px 5%;
    }
    .biz-row, .biz-row.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }
    .biz-content {
        flex-direction: column;
        gap: 20px;
    }
    .biz-title-vertical {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    .biz-icon {
        position: static;
        opacity: 1;
    }
    .biz-icon img {
        width: 50px;
    }
    .biz-title-vertical .vertical-text {
        writing-mode: horizontal-tb;
        letter-spacing: 0.1em;
        font-size: 1.2rem;
    }
    .biz-text {
        width: 100%;
        padding: 0;
    }
    .biz-text p {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .biz-img {
        width: 100%;
    }
    .btn-detail {
        width: 160px;
        padding: 8px 30px;
        font-size: 14px;
        margin-top: 20px;
    }

    /* Grid Bottom Mobile */
    .biz-grid-bottom {
        flex-direction: column;
        gap: 40px;
    }
    .grid-item img {
        margin-bottom: 15px;
    }
    .grid-item-content {
        flex-direction: column;
        gap: 10px;
    }
    .grid-item-content .vertical-text {
        writing-mode: horizontal-tb;
        letter-spacing: 0.1em;
        font-size: 1.1rem;
    }
    .grid-item-text p {
        font-size: 13px;
        margin-bottom: 8px;
    }

    /* KOI Stay Section Mobile */
    .koi-stay {
        padding: 40px 0;
        min-height: auto;
    }
    .koi-stay-inner {
        flex-direction: column;
        padding: 0 5%;
        gap: 30px;
    }
    .koi-content h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    .koi-content p {
        font-size: 13px;
        line-height: 1.8;
    }
    .koi-content p.spacer {
        margin-bottom: 15px;
    }
    .koi-img-float {
        width: 100%;
        text-align: center;
    }
    .koi-img-float img {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* 更小屏幕的优化 */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.3rem;
        letter-spacing: 0.1em;
    }
    .section-title h2 {
        font-size: 20px;
    }
    .feature-item {
        width: 40%;
    }
    .feature-item .icon {
        width: 50px;
        height: 50px;
    }
    .biz-title-vertical .vertical-text {
        font-size: 1.1rem;
    }
    .koi-content h2 {
        font-size: 1.3rem;
    }
}