﻿
@media screen and (max-width: 767px) {
    .news-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        margin-top: 70px;
    }
    
    .news-container > .area1 {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .news-container > .area1 > .content {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .news-container > .area1 > .content > img {
        width: 100%;
        height: 140px;
        object-fit: cover;
    }

    /* ---------------------------------------------------------------------------------------------------- */

    .news-container > .area2 {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 0px;
    }

    .news-container > .area2 > .content {
        max-width: 1100px;
        width: var(--page-width);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .news-container > .area2 > .content > .title-box {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .news-container > .area2 > .content > .title-box > .title {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 5px;
    }

    .news-container > .area2 > .content > .title-box > .title > h4 {
        color: #666666;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 2px;
    }

    .news-container > .area2 > .content > .title-box > .title::after {
        content: "";
        width: 30px;
        height: 4px;
        background-color: #666666;
    }

    .news-container > .area2 > .content > .title-box > p {
        color: #e50044;
        font-size: 36px;
        font-weight: 700;
        margin-top: 20px;
        letter-spacing: 2px;
    }

    .news-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-container > .area2 > .content > .news-box > .item {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .news-container > .area2 > .content > .news-box > .item > .img-box {
        width: 100%;
    }

    .news-container > .area2 > .content > .news-box > .item > .img-box > img {
        width: 100%;
    }

    .news-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-container > .area2 > .content > .news-box > .item > p.info {
        width: 100%;
        height: 63px;
        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;
        /* 多行省略 */
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .news-container > .area2 > .content > .news-box > .item > a {
        width: 120px;
        height: 40px;
        background-color: #d9d9d9;
        border-radius: 30px;
        box-sizing: border-box;
        color: #666666;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 2px;
        outline: none;
        padding: 0px;
    }
    .news-container > .area2 > .content > .news-box > .item > a:link { color: #666666; }
    .news-container > .area2 > .content > .news-box > .item > a:active { color: #666666; }

    /* ---------------------------------------------------------------------------------------------------- */

    .news-container > .area3 {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 0px;
    }

    .news-container > .area3 > .content {
        max-width: 1100px;
        width: var(--page-width);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .news-container > .area3 > .content > .pagination-bar {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px;
        margin-top: 50px;
    }

    .news-container > .area3 > .content > .pagination-bar > a.nth {
        width: 30px;
        height: 30px;
        border: 1px solid #bd996e;
        box-sizing: border-box;
        color: #bd996e;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: rotate(45deg);
    }
    .news-container > .area3 > .content > .pagination-bar > a.nth:link { color:  #bd996e; }
    .news-container > .area3 > .content > .pagination-bar > a.nth:hover { color:  #bd996e; }
    .news-container > .area3 > .content > .pagination-bar > a.nth:active { color:  #bd996e; }

    .news-container > .area3 > .content > .pagination-bar > a.nth.active {
        background-color: #bd996e;
        color: #ffffff;
    }

    .news-container > .area3 > .content > .pagination-bar > a.nth > span {
        display: block;
        font-size: 18px;
        font-weight: 700;
        transform: rotate(-45deg);
    }
}

@media screen and (min-width: 768px) {
    .news-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        margin-top: 90px;
    }
    
    .news-container > .area1 {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .news-container > .area1 > .content {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .news-container > .area1 > .content > img {
        width: 100%;
        height: 420px;
        object-fit: cover;
    }

    /* ---------------------------------------------------------------------------------------------------- */

    .news-container > .area2 {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 50px 0px 100px 0px;
    }

    .news-container > .area2 > .content {
        max-width: 1100px;
        width: var(--page-width);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .news-container > .area2 > .content > .title-box {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .news-container > .area2 > .content > .title-box > .title {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 5px;
    }

    .news-container > .area2 > .content > .title-box > .title > h4 {
        color: #666666;
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 2px;
    }

    .news-container > .area2 > .content > .title-box > .title::after {
        content: "";
        width: 30px;
        height: 4px;
        background-color: #666666;
    }

    .news-container > .area2 > .content > .title-box > p {
        color: #e50044;
        font-size: 36px;
        font-weight: 700;
        margin-top: 20px;
        letter-spacing: 2px;
    }

    .news-container > .area2 > .content > .news-box {
        width: 1100px;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 40px;
        margin-top: 50px;
    }

    .news-container > .area2 > .content > .news-box > .item {
        width: calc((100% - 80px) / 3);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .news-container > .area2 > .content > .news-box > .item > .img-box {
        width: 100%;
    }

    .news-container > .area2 > .content > .news-box > .item > .img-box > img {
        width: 100%;
        height: 240px;
        object-fit: cover;
    }

    .news-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-container > .area2 > .content > .news-box > .item > p.info {
        width: 100%;
        height: 63px;
        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;
        /* 多行省略 */
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .news-container > .area2 > .content > .news-box > .item > a {
        width: 120px;
        height: 40px;
        background-color: #d9d9d9;
        border: 1px solid rgba(0, 0, 0, 0);
        border-radius: 30px;
        box-sizing: border-box;
        color: #666666;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 2px;
        padding: 0px;
    }
    .news-container > .area2 > .content > .news-box > .item > a:link { color: #666666; }
    .news-container > .area2 > .content > .news-box > .item > a:hover { background-color: #ffffff; border: 1px solid #666666; color: #666666; }
    .news-container > .area2 > .content > .news-box > .item > a:active { color: #666666; }

    .news-container > .area2 > .content > .news-box > .item > a > span {
        pointer-events: none;
    }

    /* ---------------------------------------------------------------------------------------------------- */

    .news-container > .area3 {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 50px 0px 100px 0px;
    }

    .news-container > .area3 > .content {
        max-width: 1100px;
        width: var(--page-width);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .news-container > .area3 > .content > .pagination-bar {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px;
        margin-top: 50px;
    }

    .news-container > .area3 > .content > .pagination-bar > a.nth {
        width: 40px;
        height: 40px;
        border: 1px solid #bd996e;
        box-sizing: border-box;
        color: #bd996e;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: rotate(45deg);
    }
    .news-container > .area3 > .content > .pagination-bar > a.nth:link { color:  #bd996e; }
    .news-container > .area3 > .content > .pagination-bar > a.nth:hover { color:  #bd996e; }
    .news-container > .area3 > .content > .pagination-bar > a.nth:active { color:  #bd996e; }

    .news-container > .area3 > .content > .pagination-bar > a.nth.active {
        background-color: #bd996e;
        color: #ffffff;
    }

    .news-container > .area3 > .content > .pagination-bar > a.nth > span {
        display: block;
        font-size: 24px;
        font-weight: 700;
        transform: rotate(-45deg);
    }
}