﻿
@media screen and (max-width: 767px) {
    .news-detail-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        margin-top: 70px;
    }
    
    .news-detail-container > .area1 {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .news-detail-container > .area1 > .content {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .news-detail-container > .area1 > .content > img {
        width: 100%;
        height: 140px;
        object-fit: cover;
    }

    /* ---------------------------------------------------------------------------------------------------- */

    .news-detail-container > .area2 {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 0px;
    }

    .news-detail-container > .area2 > .content {
        max-width: 1100px;
        width: var(--page-width);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .news-detail-container > .area2 > .content > .title-box {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .news-detail-container > .area2 > .content > .title-box > .title {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 5px;
    }

    .news-detail-container > .area2 > .content > .title-box > .title > h4 {
        color: #666666;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 2px;
    }

    .news-detail-container > .area2 > .content > .title-box > .title::after {
        content: "";
        width: 30px;
        height: 4px;
        background-color: #666666;
    }

    .news-detail-container > .area2 > .content > .title-box > p {
        color: #e50044;
        font-size: 36px;
        font-weight: 700;
        margin-top: 20px;
        letter-spacing: 2px;
    }

    .news-detail-container > .area2 > .content > .news-box {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 40px;
        margin-top: 40px;
    }

    .news-detail-container > .area2 > .content > .news-box > .item {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .news-detail-container > .area2 > .content > .news-box > .item > .img-box {
        width: 100%;
    }

    .news-detail-container > .area2 > .content > .news-box > .item > .img-box > img {
        width: 100%;
    }

    .news-detail-container > .area2 > .content > .news-box > .item > p.name {
        width: 100%;
        border-bottom: 1px solid #d9d9d9;
        box-sizing: border-box;
        color: #666666;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 2px;
        line-height: 20px;
        padding: 20px 0px;
        /* 單行省略 */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .news-detail-container > .area2 > .content > .news-box > .item > p.info {
        box-sizing: border-box;
        color: #666666;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 2px;
        line-height: 21px;
        margin: 20px 0px 40px 0px;
        text-align: justify;
    }

    .news-detail-container > .area2 > .content > .news-box > .item > .back-btn {
        align-self: center;
        width: 120px;
        height: 40px;
        background-color: #e50044;
        border: 1px solid rgba(0, 0, 0, 0);
        border-radius: 30px;
        box-sizing: border-box;
        color: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 2px;
    }
}

@media screen and (min-width: 768px) {
    .news-detail-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        margin-top: 90px;
    }
    
    .news-detail-container > .area1 {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .news-detail-container > .area1 > .content {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .news-detail-container > .area1 > .content > img {
        width: 100%;
        height: 420px;
        object-fit: cover;
    }

    /* ---------------------------------------------------------------------------------------------------- */

    .news-detail-container > .area2 {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 50px 0px 100px 0px;
    }

    .news-detail-container > .area2 > .content {
        max-width: 700px;
        width: var(--page-width);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .news-detail-container > .area2 > .content > .title-box {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .news-detail-container > .area2 > .content > .title-box > .title {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 5px;
    }

    .news-detail-container > .area2 > .content > .title-box > .title > h4 {
        color: #666666;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 2px;
    }

    .news-detail-container > .area2 > .content > .title-box > .title::after {
        content: "";
        width: 30px;
        height: 4px;
        background-color: #666666;
    }

    .news-detail-container > .area2 > .content > .news-box {
        width: 700px;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 40px;
        margin-top: 40px;
    }

    .news-detail-container > .area2 > .content > .news-box > .item {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .news-detail-container > .area2 > .content > .news-box > .item > p.name {
        box-sizing: border-box;
        color: #666666;
        font-size: 36px;
        font-weight: 700;
        letter-spacing: 2px;
        line-height: 36px;
    }

    .news-detail-container > .area2 > .content > .news-box > .item > .img-box {
        width: 100%;
        margin-top: 40px;
    }

    .news-detail-container > .area2 > .content > .news-box > .item > .img-box > img {
        width: 100%;
    }

    .news-detail-container > .area2 > .content > .news-box > .item > p.info {
        box-sizing: border-box;
        color: #666666;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 2px;
        line-height: 29px;
        margin: 20px 0px 50px 0px;
        text-align: justify;
    }

    .news-detail-container > .area2 > .content > .news-box > .item > .back-btn {
        align-self: center;
        width: 200px;
        height: 50px;
        background-color: #e50044;
        border: 1px solid rgba(0, 0, 0, 0);
        border-radius: 30px;
        box-sizing: border-box;
        color: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 2px;
        padding: 0px;
    }

    .news-detail-container > .area2 > .content > .news-box > .item > .back-btn:hover {
        background-color: #ffffff;
        border: 1px solid #00416b;
        color: #00416b;
    }
}