
@media only screen and (max-width: 980px) {
    .main-container {
        flex-direction: column !important; 
        align-items: center !important;
    }

    .item_box {
        width: 100% !important;
        padding: 0.5cm !important;
        margin-bottom: 1cm;
    }

    .text_box {
        text-align: center;
        width:90% !important;
        background-color: auto;
        padding: 5px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        font-weight: bold;
        line-height: 1.5;
        gap: 0px;
        color: black;
    }

    .text_point {
        margin: 0 1cm !important;
        width: 80% !important;
    }

    .text_point h3 {
        text-align: center;
    }

    .phone {
        text-align: center;
        width: 90%;
    }

    #portrait {
        width: 80% !important;
        /* margin: 0 1cm !important; */
    }

    .banner {
        width: 90% !important;
    }

    .more_link {
        right: 1cm !important;
    }

    #sub {
        text-align: center;
    }

}

@media only screen and (min-width: 980px) {
    #mobile-break { display: none; }
}

body {
    height: auto;
    width: 100%;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color:dimgray;
}

.main-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
}

.item_box:not(#single) {
    width: 23%;
    padding: 0 5px;
    box-sizing: border-box;
    line-height: 1.8;
}

#single {
    max-width: 75%;
    padding: 0 5px;
    box-sizing: border-box;
    line-height: 1.8;
    align-items: center;
    justify-content: center;
    margin-top: 0.5cm;
}

.item_box img {
    width: 100%;
    height: auto;
}

.item_box p {
    color: black;
    text-decoration: none;
    font-size: 20px;
    font-weight: normal;
    line-height: 1.8;
    text-align: center;
}

.text_box {
    width:75%;
    background-color: auto;
    padding: 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    font-weight: bold;
    line-height: 1.5;
    gap: 0px;
    color: black;
}

.text_box p {
    text-decoration: none;
    font-size: 20px;
    font-weight: normal;
    line-height: 1.8;
}

.text_point {
    
    /* width: 85%; */
    width: 950px;
    
    margin: 0 2cm;
    padding: 5px;
    line-height: 1.5;
}

#center {
    text-align: center;
}

.text_point h3 {
    font-size: 28px;
}

.text_point li {
    font-size: 24px;
    line-height: 1.8;
    font-weight: bold;
}

.text_point p {
    font-size: 20px;
    line-height: 1.5;
}

#sub {
    font-size: 24px;
}

.container_hover {
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    align-items: center;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
}

.item_box:hover p {
    color: #00aaff;
}

.item_box:hover .container_hover .overlay {
    opacity: 0.6;
}

.item_box img{
    display: block;
}



.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: .5s ease;
    /* background-color: #008CBA; */
    background-color: #444;
}

.text {
    color: white;
    font-size: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text_box_link {
    margin: 3cm auto;
    line-height: 1.5cm;
    text-align: center;
    font-size: 23px;
    color: black;
}

.text_box_link a {
    text-decoration: none;
    color: dimgray;
}

.text_box_link a:hover {
    color: #ffa500;
}


.hashtags {
    flex-direction: column;
    text-align: center;
    font-size: 18px;
    margin: 2cm;
    align-items: center;
    margin: auto 10%;
}

.hashtags div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 0.5cm;
    
}

.hashtags a {
    text-decoration: none;
    color: dimgray;
    margin: 0.3cm;
}

.hashtags a:hover {
    color: #ffa500;
}

.banner {
    width: 50%;
    margin: 1cm;
    /* padding: 0 5px; */
    /* box-sizing: border-box; */
    /* line-height: 1.8; */
}

.banner img {
    width: 100%;
    height: auto;
}

#banner-in-page {
    margin-top: 1cm; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0;
}

.hover-swap {
    position: relative;
    display: inline-block;
}

.hover-swap img {
    display: block;
    transition: opacity 0s ease-in-out;
}

.hover-swap .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.hover-swap:hover .hover-img {
    opacity: 1;
}

.hover-swap:hover img:first-child {
    opacity: 0;
}

.more_link {
    position: absolute;
    top: 1.5cm;
    right: 3cm;
    font-size: 20px;
    color:#00aaff;
    font-weight: bold;
    text-decoration: none;
}

iframe {
    width: 100%; /* 設定 iframe 寬度 100% */
    height: auto; /* 預設高度為 300px 400*/
    border: none; /* 隱藏邊框 */
    overflow: hidden; /* 隱藏內容溢出的部分 */
}

.iframeRec {
    width: 100%; /* 設定 iframe 寬度 100% */
    height: 550px; /* 預設高度為 300px */
    border: none; /* 隱藏邊框 */
    overflow: hidden; /* 隱藏內容溢出的部分 */
}

@media (max-width: 980px) {
    iframe {
        width: 100%; /* 設定 iframe 寬度 100% */
        height: 100%; /* 手機上調整高度 */
    }
}

.items #subtitle {
                text-align: center;
                font-size: 25px;
                line-height: 2.5cm;
                margin-top: 1.5cm;
            }

.advertisement {
    margin: 2cm auto 1cm auto;
}
