html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

html.is-changing .transition-fade {
    transition: opacity 0.5s linear;
    opacity: 1;
}

html.is-animating .transition-fade {
    opacity: 0;
}

body {
    font-family: "Noto Sans TC", sans-serif;
    max-width: 100%;
    font-size: 17px;
    color: #ffffff;
    margin: 0;
    padding: 90px 0 0 0;
    line-height: normal;
    background: #fff;
}

h1, h2, h3, h4, h5 {
    color: #ffffff;
}

a {
    text-decoration: none;
    transition: all 0.3s ease 0s;
}

a:hover {
    opacity: 0.5;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.header a.btn {
    text-decoration: none;
    transition: all 0.3s ease 0s;
}

.header a:hover {
    opacity: 0.5;
}

.header a.active {
    padding-bottom: 7px;
    border-bottom: 2px solid #D60A30;
}

a.btn {
    text-decoration: none;
    transition: all 0.3s ease 0s;
}

a.btn:hover {
    opacity: 0.5;
}

.container {
    min-width: 85%;
}

.container.subpage {
    min-width: 0;
}

.header {
    width: 100%;
    height: 90px;
    background: #1F1F1F;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow: hidden;
    font-size: 17px;

    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.header .row {
    height: 90px;
}

.header-logo {
    max-height: 45px;
}

body.scroll .header {
    height: 90px;
}

body.scroll .header .row {
    height: 90px;
}


.header ul {
    margin: 0;
}

.header ul li {
    display: inline-block;
    margin: 0 0.7rem;
}

.header a {
    color: #fff;
    text-decoration: none;
    opacity: 1;
}


.download-background {
    position: relative;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 380px;
}

.download-item-box {
    position: absolute;
    top: 15%;
    z-index: 100;
}

.download-link {
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: cover;
}


.ip-swiper, .ip-gallery-swiper {
    width: 100%;
    height: auto;
    position: relative;
    padding: 0.5rem 0;
}

.ip-gallery-slide {
    overflow-y: visible;
}

.ip-swiper .swiper-slide {
    width: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.ip-swiper .swiper-slide img {
    display: block;
    aspect-ratio: 3/4 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    /*background-repeat: no-repeat;*/
    /*background-position: center center;*/
    /*background-size: contain;*/
}

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

.home-swiper {
    width: 100%;
    height: 617px;
    max-height: 6170px;
}

.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 1 !important;
    width: 12px !important;
    height: 12px !important;
    margin: 8px !important;
}

.swiper-pagination-bullet-active {
    background: #D60A30 !important;
    opacity: 1 !important;
}

.swiper-button-next.home, .swiper-button-prev.home {
    top: 75% !important;
    color: #ffffff !important;
}

.swiper-button-prev.home {
    left: 35px;
}

.swiper-button-next.home {
    right: 35px;
}

.swiper-button-prev.ip, .swiper-button-next.ip {
    top: 45%;
    width: 44px;
    height: 66px;
    padding: 10px;
    background-color: rgba(31, 31, 31, 0.9);
    color: #ffffff !important;
}

.footer {
    background: #1F1F1F;
    padding: 0 0 0 0;
    color: #fff;
    font-size: 15px;
    position: relative;
}


.copyright {
    text-align: center;
    color: #fff;
    padding: 10px 0;
    font-size: 15px;
}

.switch-box, .switch-box-business {
    background-color: #ffffff;
    color: #000000;
    border-bottom: 2px solid #D60A30;
    padding: 8px 10px;
    margin-right: 8px;
    margin-top: 5px;
    min-width: 15rem;
    text-align: center;

}

.switch-box:hover, .switch-box-business:hover {
    opacity: 0.7;
    cursor: pointer;
}

.switch-box.active, .switch-box-business.active {
    color: #ffffff;
    background-color: #D60A30;
}

.switch-box-content {
    display: none;
}

.switch-box-content.active {
    display: block;
    animation: fadeInUp 0.9s;
}

.slogan {
    font-weight: bold;
}

.grid-container {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-column-gap: 20px;
}

.grid:hover {
    box-sizing: border-box;
    border: solid 2px #ffffff;
    cursor: pointer;
}

.grid {
    width: 100%;
    height: auto;
}

.grid-1 {
    grid-area: 1 / 1 / 3 / 3;
}

.grid-2 {
    grid-area: 1 / 3 / 2 / 4;
}

.grid-3 {
    grid-area: 1 / 4 / 2 / 5;
}

.grid-4 {
    grid-area: 2 / 3 / 3 / 4;
}

.grid-5 {
    grid-area: 2 / 4 / 3 / 5;
}

.switch-box-content img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3 !important;
}

.white-bkg {
    background: #ffffff;
}

.grid-bottom-description {
    /*z-index:100;*/
    position: absolute;
    bottom: 10px;
    left: 15px;
    text-shadow: #222 1px 0 10px;
}

.event-part-banner {
    width: 100%;
    height: 150px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    position: relative;
}

.event-part-banner .banner-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 60px;
}


.event-type-area .event-type-nav {
    padding: 7px 0;
    background: #8E8E8E;
    color: #ffffff;
}

.event-type-area .event-type-nav:not(:last-child) {
    border-right: 1px solid #707070;
}

.event-type-nav:hover {
    opacity: 0.5;
    cursor: pointer;
}

.event-type-nav.active {

    background-color: #D60A30;
}

.event-type-news {
    display: none;
}

.event-type-news.active {
    display: block;
    animation: fadeIn 1s;
}


.event-type-news .news-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 0.75rem;
    color: #4D4D4D;
    width: 100%;
    height: 100%;
}

.event-type-news .news-card-detailed {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 0.75rem;
    color: #4D4D4D;
    width: 100%;
    height: 100%;
}

.event-type-news .row .col-lg-6 {
    border-bottom: 1px solid #707070;
}

.event-type-news .row .col-lg-6:nth-child(odd) {
    border-right: 1px solid #707070; /* Apply border to odd-indexed .news-card elements */
}

.news-card-title {
    color: #D60A30;
}

.news-card:hover, .news-card-detailed:hover {
    opacity: 0.9;
    cursor: pointer;
}

.event-type-news .row > .flex.col-12, .event-type-news .row > .flex.col-lg-6 {
    display: flex;
}

.event-type-news .news-card .news-card-content {
    max-width: 350px
}

.event-type-news .news-card-detailed .news-card-content .news-timeslot, .event-type-news .news-card-detailed .news-card-content .news-location {
    font-size: 16px;
    vertical-align: middle;
}

.event-type-news .news-card-detailed .news-card-content .news-timeslot.large, .event-type-news .news-card-detailed .news-card-content .news-location.large {
    font-size: 17px;
}

.event-type-news .news-card-detailed .news-card-content > .news-tags ul.large {
    font-size: 18px;
}

.event-type-news .news-card-detailed .news-card-content > .news-tags ul.large li {
    padding: 6px 22px;
}

.event-type-news .news-card-detailed .news-card-content .news-timeslot:before {
    content: url('../images/calender.png');
    vertical-align: middle;
}

.event-type-news .news-card-detailed .news-card-content .news-timeslot.large:before {
    content: url('../images/calender-lg.png');
}

.event-type-news .news-card-detailed .news-card-content .news-location:before {
    content: url('../images/location.png');
    vertical-align: middle;
}

.event-type-news .news-card-detailed .news-card-content .news-location.large:before {
    content: url('../images/location-lg.png');
}

.event-type-news .news-card-detailed .news-card-content .news-details {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

    font-size: 14px;
}

.event-type-news .news-card-detailed .news-card-content > .news-tags ul {
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 14px;
    color: #ffffff;
}

.event-type-news .news-card-detailed .news-card-content > .news-tags ul li {
    cursor: default;
    display: inline-block;

    padding: 5px 17px;
    margin: 2px 0;
    border-radius: 20px;
}

.news-card-image {
    width: 330px;
    min-width: 330px;
    /*height: auto;*/
    min-height: 220px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.news-card-image.detailed {
    width: 450px;
}

.index-part, .about-us-page, .our-ip-page, .business-page, .event-page, .contact-page {
    background: #1F1F1F;
}

.aboutus-subpage-banner {
    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    min-height: 600px;
    background-repeat: no-repeat;
    background-size: cover;
}

.dark-layer {
    background-color: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 1
}

.dark-layer.lighter {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

.banner-inner-content {
    min-width: 1000px;
    z-index: 100;
    background-color: rgba(31, 31, 31, 0.7);
}

.special-quotation-mark {
    font-size: 5vh;
    color: #B62C2C;
}

.about-us-subpage, .business-subpage, .business-subpage2 {
    color: #ffffff;
    background-color: #2f2f2f;
}

.business-subpage {
    padding: 5rem;
}

.business-subpage2 {
    padding: 2.5rem 5rem;
}

ul.aboutus-list {
    font-size: 18px;
    padding-left: 100px;
    color: #ffffff;
}

.aboutus-list li {
    padding: 5px 0;
}

.aboutus-list li::marker {
    color: #D60A30;
}

.floating-arrow .go-top:hover {
    cursor: pointer;
}

.floating-arrow a {
    width: 60px;
    height: 60px;
    background-color: #B62C2C;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url("../images/arrow.png");
    background-size: 25px 25px !important;
    position: fixed;
    z-index: 1000;
    right: 25px;
    bottom: 10%;
    margin-top: -30px;
}

.red-line {
    width: 10vw;
    border: 2px solid #D60A30;
}

.ip-gallery .rounded-circle-container, .ip-gallery-swiper .rounded-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ip-gallery .rounded-circle-container:hover .rounded-circle, .ip-gallery-swiper .rounded-circle-container:hover .rounded-circle {
    scale: 1.1;
    border: 4px solid #ffffff;
    box-sizing: border-box;
}

.rounded-circle {
    width: 150px; /* Adjust the width as needed */
    height: 150px; /* Adjust the height as needed */
    overflow: hidden;
    border-radius: 50%;
}

.rounded-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-description {
    margin-top: 10px; /* Adjust the margin as needed */
    font-size: 14px; /* Adjust the font size as needed */
}

.ip-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Chrome and Safari */
.ip-gallery::-webkit-scrollbar {
    height: 5px; /* Width of the scrollbar */
}

.ip-gallery::-webkit-scrollbar-track {
    background-color: #5f5f5f !important; /* Color of the track (the area behind the scrollbar) */
}

.ip-gallery::-webkit-scrollbar-thumb {
    background-color: #ffffff !important; /* Color of the scrollbar thumb */
}

.ip-gallery::-webkit-scrollbar-thumb:hover {
    background-color: #ffffff !important; /* Color of the scrollbar thumb on hover */
}

.swiper-button-next.ip-gallery-btn, .swiper-button-prev.ip-gallery-btn {
    top: 40% !important;
    color: #ffffff !important;
    width: 44px;
    height: 66px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.9);
}

.ip-gallery-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.switch-box-area {
    display: flex;
    flex-wrap: wrap;
}


.switch-box-business-content .row .flex-col {
    margin-bottom: 1rem;
}


.business-partner-box {
    background: #ffffff;
    border-radius: 0;
    padding: 10px;

    width: 100%;
    height: 100%;
}

.business-partner-box-content {
    text-align: justify;
    padding: 0.75rem 0;
}

.business-partner-title {
    font-weight: bold;
    color: #D60A30;
}

.business-partner-content {
    color: #4D4D4D !important;
}

.box-area-image {
    position: relative;
}

.box-area-image:before {
    content: "";
    display: block;
    width: 100%;
    height: 0;
    padding-top: 75.86206896551724%;
}

.box-area-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}


.map-iframe iframe {
    width: 100%;
    height: 450px;
}

.responsive-iframe {
    max-width: 800px;
    min-height: 584px;
    height: 100%;
}

iframe {
    width: 100%;
}

.contact-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.ip-banner {
    min-height: 400px;
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
}

.ip-banner .ip-banner-mask {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-image: url('../images/ip-banner-mask.png');
    background-size: cover;
}

.ip-banner .ip-banner-content {
    position: absolute;
    width: 400px;
    max-height: 200px;
    top: 50%;
    right: -65px;
    z-index: 100;
    transform: translate(-50%, -50%);
    padding: 5px;
    text-align: justify;
}

.ip-character-group {
    background-color: #2f2f2f;
}

.ip-character-group .flex.col-lg-6 {
    display: flex;
    margin-top: 1.25rem;
}

.character-block {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    justify-content: space-evenly;
}

.character-block .character-img {
    width: 180px;
    min-height: 240px;
    background-position: center;
    background-size: auto 240px;
    background-repeat: no-repeat;
}

.character-block .character-text {
    width: 55%;
    text-align: justify;
    padding-left: 2rem;
}

.character-name {
    font-weight: bold;
}

.description-box {
    margin: 0 25%;
}

.slogan-description {
    margin: 0 30%;
}

.adv-box-banner {
    min-height: 200px;
    background-size: cover;
    background-repeat: no-repeat;
}

/*//tst*/
.res-adv-box.res-show {
    display: none;
}

.long.box-area-image:before {
    content: "";
    display: block;
    width: 100%;
    height: 0;
    padding-top: 180%;
}

.adv-box-4 {
    /*min-height: 260px;*/
    background-repeat: no-repeat;
    background-size: cover;
}

.hover-effect.home-banner.swiper-slide:hover {
    opacity: 0.7;
    cursor: pointer;
}

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

.social-media-list {
    padding: 0;
    list-style: none;

}

.social-media-item {
    display: inline-block;
    margin: 0 0.3rem;

    min-height: 50px;
    min-width: 50px;
    background-repeat: no-repeat;
    background-size: cover;
}

.social-media-item:hover {
    opacity: 0.7;
    cursor: pointer;
}


.adv-box-area-image {
    position: relative;
    background-color: #ffffff;
}

.adv-box-area-image:before {
    content: "";
    display: block;
    width: 100%;
    height: 0;
    padding-top: 75%;
}

.adv-box-area-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}
