@import url('https://fonts.googleapis.com/css2?family=Iansui&family=Noto+Serif+TC:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Faculty+Glyphic&display=swap');

.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    --gradient-height: 0px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--gradient-height);
    background: linear-gradient(to bottom, rgba(26, 54, 93, 0) 0%, #1a365d 100%);
    z-index: 1;
    transition: height 0.1s ease-out;
}
.hero iframe{
    position: absolute;
    top: 0;
}
.logo {
    width: 160px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 2;
}

.bg1{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    z-index: -1;
}
.bg1::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1a365d;
    z-index: -1;
}
.bg1::before{
    content: '';
    position: static;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/bg1.png');
    z-index: 0;
    opacity: .5;
}
.esg-section{
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    overflow: hidden;
}
.bg4{
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    z-index: -1;
}
.bg4::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #454344;
    z-index: -1;
}
.bg4::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    top: 0;
    left: 0;
    z-index: 0;
    background-image: url('../img/bg4-s.png');
    opacity: .5;
}
.slogan {
    position: relative;
    color: #fff;
    margin: 2rem 0;
    padding: 1rem;
    max-width: 800px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    position: relative;
    z-index: 3;
}
.bg-m{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    overflow: hidden;
}
.bg-t1{
    position: absolute;
    top: 0%;
    right: -30%;
    width: 40%;
    height: auto;
    aspect-ratio: 700 / 1264;
    display: block;
    background-size: cover;
    background-position: center;
    z-index: 0;  
    opacity: .5;
    transition: right 0.1s ease-out;
    transform: translateY(0);
    will-change: transform, right;
}
.bg-t1 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bg-t2{
    position: absolute;
    top: 30%;
    left: -30%;
    width: 34%;
    height: auto;
    aspect-ratio: 700 / 1151;
    display: block;
    background-size: cover;
    background-position: center;
    z-index: 0;  
    opacity: .5;
    transition: left 0.1s ease-out;
    transform: translateY(0);
    will-change: transform, left;
}
.bg-t2 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 575.98px) {
    .logo {
        width: 120px;
    }
    .slogan h2 {
        top: calc(-52vh + 0px);
        font-size: 1rem;
    }
}
.slogan h2 {
    position: relative;
    z-index: 2;
    top: calc(-55vh + 0px);
    transition: top 0.1s ease-out;
    font-size: .7rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    font-style: normal;
}

.slogan h1 {
    font-size: 1.6rem;
    line-height: 1.8;
    font-weight: normal;
    letter-spacing: 0.05em;
    font-family: "Faculty Glyphic", serif;
    font-style: normal;
    margin-top: 70px;
}

.slogan h1 span {
    opacity: 0;
    display: block;
    transition: opacity 0.5s ease-out;
}

.slogan h1 span:nth-child(1).fade-in {
    transition-delay: 0s;
}

.slogan h1 span:nth-child(2).fade-in {
    transition-delay: 0.3s;
}

.slogan h1 span:nth-child(3).fade-in {
    transition-delay: 0.6s;
}

.slogan h1 span:nth-child(4).fade-in {
    transition-delay: 0.9s;
}

.slogan h1 span:nth-child(5).fade-in {
    transition-delay: 1.2s;
}

.slogan h1 span:nth-child(6).fade-in {
    transition-delay: 1.5s;
}

.slogan h1 span:nth-child(7).fade-in {
    transition-delay: 1.8s;
}

.slogan h1 span:nth-child(8).fade-in {
    transition-delay: 2.1s;
}

.slogan h1 span:nth-child(9).fade-in {
    transition-delay: 2.4s;
}

.slogan h1 span:nth-child(10).fade-in {
    transition-delay: 2.7s;
}

.manifesto {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    margin-top: -1px;
}
.manifesto-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto 6rem;
}

.manifesto-content p {
    max-width: 600px;
    margin: 1.5rem auto;
    line-height: 2;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    font-weight: 400;
    font-style: normal;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.stats {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.stats-header {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-header .crown-icon {
    width: 200px;
    margin-bottom: 2rem;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.stats-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.5s ease-out;
    transition-delay: 0.3s;
}

.stats-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    opacity: 0;
    transition: opacity 0.5s ease-out;
    transition-delay: 0.6s;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 6rem;
}

.stat-item {
    text-align: left;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.stat-item:nth-child(1) {
    transition-delay: 0.9s;
}

.stat-item:nth-child(2) {
    transition-delay: 1.1s;
}

.stat-item:nth-child(3) {
    transition-delay: 1.3s;
}

.stat-item:nth-child(4) {
    transition-delay: 1.5s;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: 0.05em;
    font-family: "Faculty Glyphic", serif;
    font-style: normal;
    padding-bottom: 1rem;
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: width 1.5s ease-out;
}

.stat-number.line-animate::after {
    width: 100%;
}

.stat-number .number {
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    color: inherit;
}

.stat-number .unit {
    font-size: 1.2rem;
    margin-left: 0.5rem;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
}

.stat-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    letter-spacing: 0.05em;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    font-weight: 400;
    font-style: normal;
    padding-top: 1rem;
}

.natural-dyeing {
    position: relative;
    padding: 0;
    text-align: center;
    background-color: #1a365d;
    position: relative;
    color: white;
    overflow: hidden;
}

.natural-dyeing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/bg1.png');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 0;
}

/* 初始隱藏所有元素 */
.natural-dyeing .title-container,
.natural-dyeing .image-gallery,
.natural-dyeing .team-photo,
.natural-dyeing .svg-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 淡入效果 */
.natural-dyeing .title-container.fade-in,
.natural-dyeing .image-gallery.fade-in,
.natural-dyeing .team-photo.fade-in,
.natural-dyeing .svg-container.fade-in {
    opacity: 1;
    transform: translateY(0);
}
#newsPhotos1 img,
#newsPhotos2 img,
#newsPhotos3 img,
#newsPhotos4 img {
    opacity: 1;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.title-container {
    position: relative;
    width: 100%;
    height: auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 6rem auto 0;
    padding: 0 2rem;
}
.title-container h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: 0.1em;
    font-weight: normal;
    font-family: "Faculty Glyphic", serif;
    font-style: normal;
    position: relative;
    z-index: 1;
    text-align: center;
}

.title-container h3 {
    font-size: 1.2rem;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: normal;
    letter-spacing: 0.1em;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    font-weight: 400;
    font-style: normal;
    position: relative;
    z-index: 1;
    text-align: center;
}

.title-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background-image: url('../img/SVG/titIcon2.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: -50px;
}

.image-gallery {
    width: 120%;
    max-width: none;
    margin: 0;
    margin-right: -20%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    cursor: grab;
    transform: translateX(0);
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    font-size: 0;
    line-height: 0;
}

.image-gallery.scroll-active {
    transform: translateX(-20%);
}

.image-gallery:active {
    cursor: grabbing;
}

.image-gallery .gallery-container {
    display: flex;
    position: relative;
    width: 100%;
    overflow: hidden;
    user-select: none;
    cursor: grab;
    transition: transform 0.1s ease-out;
    gap: 0;
    padding: 0;
    margin: 0;
}

.image-gallery .gallery-container.dragging {
    cursor: grabbing;
    transition: none;
}

.image-gallery .gallery-item {
    flex: 0 0 auto;
    width: 25%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.image-gallery .gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0;
    display: block;
    margin: 0;
    padding: 0;
}

.team-photo {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 1080;
    margin: 0;
    padding: 0;
    display: block;
    z-index: 1;
    border-radius: 0;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}
.team-photo2{
    aspect-ratio: auto;
}
.team-photo h3{
    position: absolute;
    top: calc(30% - 1.5rem);
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 12rem;
    color: #fff;
    font-family: "Balthazar", serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.1em;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}
.team-photo .btn{
    position: absolute;
    bottom: calc(10% - 60px);
    left: calc(50% - 60px);
    width: 120px;
    height: auto;
    aspect-ratio: 1 / 1;
    border: 1px dotted #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.team-photo .btn.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.team-photo .btn:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
    .team-photo h3{
        font-size: 9rem;
        top: calc(35% - 3.5rem);
    }
    .team-photo .btn {
        width: 100px;
        bottom: calc(10% - 50px);
        left: calc(50% - 50px);
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
  .team-photo h3{
    font-size: 7rem;
    top: calc(35% - 3.5rem);
  }
  .team-photo .btn {
    width: 80px;
    bottom: calc(10% - 40px);
    left: calc(50% - 40px);
    font-size: 1rem;
  }
}

.team-photo h3.fade-in {
    opacity: 0.7;
    font-family: "Noto Serif TC", "Iansui", sans-serif;
    font-weight: 700;
}

.team-photo h3.fade-out {
    opacity: 0;
    font-family: "Noto Serif TC", "Iansui", sans-serif;
    font-weight: 700;
}

.team-photo .desktop-img,
.team-photo .mobile-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(0);
    will-change: transform;
    margin: 0;
    padding: 0;
    display: block;
}
.team-photo .mobile-img {
    display: none;
}

/* SVG 容器樣式 */
.svg-container {
    position: relative;
    width: 100%;
    height: 226.13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.svg-container.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* SVG 群組共用樣式 */
.svg-group {
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 左側 SVG 樣式 */
.left-svg {
    left: 20px;
    width: 50px;
}

/* 中間 SVG 樣式 */
.center-svg {
    left: 0;
    right: 0;
    margin: auto;
    width: 50px;
}

/* 右側 SVG 樣式 */
.right-svg {
    right: 20px;
    width: 50px;
}

/* SVG 元素基礎樣式 */
.natural-dyeing svg,
.svg-container svg,
.l-line svg {
    width: 100%;
    height: 100%;
}

/* 連接線容器樣式 */
.connecting-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .manifesto {
        padding: 4rem 2rem;
    }

    .manifesto-content {
        margin: 0 auto 4rem;
    }

    .manifesto-content p {
        font-size: 1rem;
        margin: 1.2rem auto;
        max-width: 500px;
    }

    .stats-grid {
        gap: 3rem 4rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-desc {
        font-size: 0.95rem;
    }

    .title-container h2 {
        font-size: 2.4rem;
    }

    .image-gallery .gallery-item {
        flex: 0 0 33.333%;
    }

    .image-gallery .gallery-item img {
        height: 200px;
    }

    .natural-dyeing .title-container {
        margin: 4rem auto 3rem;
    }

    .bg-t1 {
        width: 45%;
        right: -35%;
    }

    .bg-t2 {
        width: 39%;
        left: -35%;
    }
}

@media (max-width: 768px) {
    .slogan h1 {
        font-size: 2rem;
    }

    .slogan h2 {
        top: -50vh;
    }

    .manifesto {
        padding: 3rem 1.5rem;
    }

    .manifesto-content {
        margin: 0 auto 3rem;
    }

    .manifesto-content p {
        font-size: 0.95rem;
        margin: 1rem auto;
        max-width: 100%;
        line-height: 1.8;
    }

    .stats-header h2 {
        font-size: 1.6rem;
    }

    .stats-header p {
        font-size: 1rem;
    }

    .crown-icon {
        width: 150px;
        margin-bottom: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-desc {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .stat-number .unit {
        font-size: 1rem;
    }

    .left-svg {
        left: 0px;
        transform: scale(0.7);
    }
    .right-svg {
        right: 0px;
        transform: scale(0.7);
    }
    .center-svg {
        transform: scale(0.7);
    }

    .title-container h2 {
        font-size: 2rem;
    }

    .image-gallery {
        width: 130%;
        margin-right: -30%;
    }

    .image-gallery .gallery-item {
        width: 33.333%;
    }
    
    .image-gallery .gallery-item img {
        height: 160px;
    }

    .natural-dyeing .title-container {
        margin: 3rem auto 2rem;
    }
    .team-photo {
        aspect-ratio: 768 / 958;
    }
    .team-photo .desktop-img {
        display: none;
    }
    
    .team-photo .mobile-img {
        display: block;
        height: 150%;
    }

    .bg-t1 {
        width: 50%;
        right: -40%;
    }

    .bg-t2 {
        width: 44%;
        left: -40%;
    }
}

@media (max-width: 480px) {
    .manifesto {
        padding: 2.5rem 1rem;
    }

    .manifesto-content p {
        font-size: 0.9rem;
        margin: 0.8rem auto;
    }

    .stats-header h2 {
        font-size: 1.4rem;
    }

    .stats-header p {
        font-size: 1rem;
    }

    .crown-icon {
        width: 120px;
        margin-bottom: 1.2rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-number .unit {
        font-size: 0.9rem;
    }

    .stat-desc {
        font-size: 1rem;
    }

    .natural-dyeing h2 {
        font-size: 1.8rem;
    }

    .image-gallery .gallery-item img {
        height: 140px;
    }

    .natural-dyeing .title-container {
        margin: 2.5rem auto 2rem;
    }

    .team-photo .desktop-img {
        display: none;
    }
    
    .team-photo .mobile-img {
        display: block;
    }

    .team-photo .btn {
        width: 70px;
        bottom: calc(10% - 35px);
        left: calc(50% - 35px);
        font-size: 0.9rem;
    }

    .bg-t1 {
        width: 60%;
        right: -45%;
    }

    .bg-t2 {
        width: 54%;
        left: -45%;
    }
}

.fade-in {
    opacity: 1 !important;
}

@media screen and (max-width: 768px) {
    .gallery-item {
        width: 33.333%;
    }
}

.bed-section, .coling-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.bed-photo {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.bed-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    transform: scale(1.1);
    transition: filter 0.8s ease-out, transform 0.8s ease-out;
}

.bed-photo img.blur-removed {
    filter: blur(0);
    transform: scale(1);
}

.bed-photo .mobile-img {
    display: none;
}
.bs-box{
    position: absolute;
    top: 20%;
    right: 10%;
    max-width: 40%;
    height: 50%;
    z-index: 1;
}
.coling-box{
    top: 20%;
    left: 10%;
    right: auto;
}
.bs-box .bed-title{
    position: relative;
    z-index: 1;
    top: 50px;
    left: 0%;
    color: #fff;
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    font-family: "Faculty Glyphic", serif;
    font-style: normal;
    white-space: nowrap;
    text-align: start;
    line-height: 4rem;
    margin: 0;
    padding: 0;
}
.bs-box h3{
    position: absolute;
    z-index: 1;
    top: 0%;
    right: 0%;
    color: #fff;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.bs-box p{
    position: relative;
    z-index: 1;
    top: 70px;
    color: #fff;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    line-height: 1.8;
    max-width: 700px;
    display: block;
}
.bs-box .bs-box-p2 {
    display: none;
}
.bs-box-p1::before{
    content: '';
    background-color: #000;
}
@media (max-width: 575.98px) {
    .bs-box .bs-box-p2{
        display: block;
    }
    .bs-box .bs-box-p1{
        display: none;
    }
}
.a-box{
    position: relative;
    z-index: 1;
    top: 100px;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 10px;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    font-style: normal;
    font-weight: 400;
}
.coling-section .a-box{
    justify-content: start;
}
.a-box a{
    position: relative;
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
    border: .7px solid #7e7e7e;
    padding: 3px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}
.a-box a::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: .1;
    z-index: -1;
    transition: all 0.3s ease;
}
.a-box a:hover{
    border: .7px solid #000;
}
.a-box a:hover::before{
    opacity: .9;
    
}
.a-box a:nth-child(1)::before{
    content: '';
    background-color: #fff;
    opacity: .5;
}
.a-box a:nth-child(1):hover::before{
    opacity: .9;
}
.a-box a:nth-child(1){
    color: #000;
}
@media (max-width: 768px) {
    .bed-photo {
        height: 100vh;
    }
    
    .bed-photo .desktop-img {
        display: none;
    }
    
    .bed-photo .mobile-img {
        display: block;
        height: 100%;
        filter: blur(10px);
        transform: scale(1.1);
    }
    
    .bed-photo .mobile-img.blur-removed {
        filter: blur(0);
        transform: scale(1);
    }

    .bed-photo .bed-title {
        font-size: 1.7rem;
        line-height: 2rem;
        left: 0%;
        top: 40px;
    }
    .bs-box{
        top: 10%;
        right: 3%;
        width: 100%;
        max-width: 300px;
    }
    .bs-box h3 {
        font-size: 1.4rem;
        top: 0%;
    }

    .bs-box p {
        font-size: 1rem;
        right: 0%;
        top: 40px;
        width: 100%;
    }
}
/*-------news-section----------*/
.news-section{
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100vh;
    background-color: #1A375D;
    display: flex;
    align-items: start;
    justify-content: center;
    padding-bottom: 10rem;
}
.news-section::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/newsbg.png');
    opacity: .07;
    z-index: 0;
}
.news-container{
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: auto;
    padding: 4rem 2rem 0 2rem;
    box-sizing: border-box;
    display: block;
}
.news-container h2,
.news-container h3,
.l-line,
.news-item,
.news-photo,
.news-btn-line,
.news-btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.news-container h2.fade-in,
.news-container h3.fade-in,
.l-line.fade-in,
.news-item.fade-in,
.news-photo.fade-in,
.news-btn-line.fade-in,
.news-btn.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.news-container h2{
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    font-family: "Faculty Glyphic", serif;
    font-style: normal;
    white-space: nowrap;
    text-align: start;
    color: #fff;
}
.news-list{
    position: relative;
    z-index: 1;
    padding: 2rem 0 2rem 3rem;
    color: #fff;
}
.news-container h3{
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    font-style: normal;
    white-space: nowrap;
    text-align: start;
    color: #fff;
    writing-mode: vertical-lr;
}
.news-item{
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    border-bottom: .5px solid #b2b2b2;
}
.news-item p{
    width: 100%;
    height: 50px;
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    font-style: normal;
    text-align: start;
    color: #b2b2b2;
    overflow: hidden;
    line-height: 1.5;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;    
    -webkit-box-orient: vertical;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.news-item span{
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #b2b2b2;
}
.news-item span samp{
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #fff;
    padding: 0 10px;
    box-sizing: border-box;
    border-left: 1px dotted #fff;
    border-right: 1px dotted #fff;
    margin-left: 10px;
    transition: all 0.3s ease;
}
.news-item::before{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: .5px;
    background-color: #fff;
    transition: all 0.34s linear;
}
.news-item:hover::before{
    width: 100%;
}
.news-item:hover p{
    color: #fff;
}
.news-item:hover span{
    color: #fff;
}
.news-item:hover span samp{
    color: #fff;
    border-left: 1px dotted #fff;
    border-right: 1px dotted #fff;
}

/* 置頂消息樣式 */
.news-item.sticky-news {
    /* 移除左邊橘色邊框 */
}

.news-item .sticky-tag {
    background: none;
    color: white;
    padding: 0;
    border-radius: 0;
    font-size: 0.7rem;
    margin-left: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.news-item .sticky-tag::before {
    content: "◆";
    font-size: 0.7rem;
    margin-right: 3px;
    color: white;
    font-weight: normal;
    opacity: 0.8;
}
.l-line{
    position: absolute;
    z-index: 1;
    top: 13rem;
    left: 2.9rem;
    width: 1px;
    height: calc(100% - 10px - 16rem);
    background-color: #b2b2b2;
}
.l-line svg{
    position: absolute;
    bottom: -15px;
    left: -7.2px;
    width: 16px;
    height: auto;
}
.news-photo{
    position: absolute;
    z-index: 0;
    right: 0;
    top: calc(50% - 110px);
    width: auto;
    height: 100%;
    max-height: 520px; 
    aspect-ratio: 4 / 5;
    display: block;
    background-color: #000;
}
.news-photo img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.news-photo img.active {
    opacity: 1;
}
.news-btn{
    position: absolute;
    top: 3.8rem;
    right: 2rem;
    width: 60px;
    height: auto;
    aspect-ratio: 1 / 1;
    border: 1px dotted #b2b2b2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    font-style: normal;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}
.news-btn::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
}
.news-btn:hover::before{
    opacity: 0.3;
}
.news-btn-line{
    position: absolute;
    top: 5.5rem;
    left: 10rem;
    width: calc(100% - 15.8rem);
    height: 1px;
    border-bottom: .5px dotted #b2b2b2;
}
@media (min-width: 768px) {
    .news-btn-line{
        left: 15.8rem;
        top: 11.5rem;
        width: calc(100% - 21.4rem);
    }
    .news-container{
        padding: 7rem 2rem 0 2rem;
    }
    .news-list{
        padding: 2rem 0 2rem 5rem;
    }
    .l-line{
        top: 23rem;
        left: 3.5rem;
        height: calc(100% - 70px - 23rem);
    }
    .news-btn{
        top: 8.5rem;
        right: 0rem;
        width: 90px;
        font-size: 1.2rem;
    }
}
@media (max-width: 767.98px) {
  .news-container h2{
    font-size: 2rem;
  }
  .news-container h3{
    font-size: 1.2rem;
  }
  .news-item p{
    color: #b2b2b2;
    }
    .news-item span{
        color: #b2b2b2;
    }
    .news-photo{
        display: none;
    }
}

.bed-section .bed-title,
.bed-section h3,
.bed-section p,
.bed-section .a-box,
.coling-section .bed-title,
.coling-section h3,
.coling-section p,
.coling-section .a-box {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.bed-section .bed-title.fade-in,
.bed-section h3.fade-in,
.bed-section p.fade-in,
.bed-section .a-box.fade-in,
.coling-section .bed-title.fade-in,
.coling-section h3.fade-in,
.coling-section p.fade-in,
.coling-section .a-box.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.sdgs-box{
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    gap: 30px;
    padding: 20px 20px 120px 20px;
    box-sizing: border-box;
}
.sdgs-item{
    width: 50%;
    max-width: 180px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0px;
    color: #fff;
    font-family: "Klee One", "Iansui", "Noto Serif TC", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.05em;
    line-height: 1.5;
}
.sdgs-item img{
    border: .5px solid #b2b2b2;
}
.sdgs-item p:nth-child(3){
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.5;
    color: #b2b2b2;
}
@media (max-width: 767.98px) {
    .sdgs-box{
        gap: 10px;
    padding: 20px 0px 70px 0px;
    }
    .sdgs-item{
        max-width: 150px;
    }
}
.sdgs-item-img{
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.sdgs-box .sdgs-item .sdgs-item-img::after{
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.16;
    transition: all 0.3s ease;
}
.sdgs-box .sdgs-item:hover .sdgs-item-img::after{
    opacity: 1;
}
.sdgs-box .sdgs-item:nth-child(1) .sdgs-item-img::after{
    background-color: #EE412A;
}
.sdgs-box .sdgs-item:nth-child(2) .sdgs-item-img::after{
    background-color: #8E1838;
}
.sdgs-box .sdgs-item:nth-child(3) .sdgs-item-img::after{
    background-color: #F89C24;
}
.sdgs-box .sdgs-item:nth-child(4) .sdgs-item-img::after{
    background-color: #CD8B2A;
}
.sdgs-box .sdgs-item:nth-child(5) .sdgs-item-img::after{
    background-color: #40AD48;
}
