@charset "utf-8";

html {
    color: #333;
    line-height: 1.6;
    font-family: "Chocolate Classical Sans", sans-serif;
}

.chocolate-classical-sans-regular {
    font-family: "Chocolate Classical Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body {
    margin: 0 auto;
    /* max-width: 1200px; */
    padding: 20px;
    box-shadow: none;
    border-radius: 0;
    font-size: 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 700;
    color: #2c3e50;
    text-transform: none;
    letter-spacing: 1px;
}

h1 {
    padding: 0.5rem 1rem;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    display: inline-block;
    position: relative;
    z-index: 1;
    background: none;
    border-radius: 0;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

h4 {
    font-size: 1.2rem;

}

p,
.bt {
    font-size: 1rem;
}

span {
    font-weight: 600;
    size: 1.2rem;

}

section {
    max-width: 1200px;
    margin: 60px auto 10px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
}

.statement p {
    font-size: 1.2rem;
}

.others-div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;


    /* display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 10px;
    text-align: left; */


}

.works_box {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 20px;
    column-gap: 20px;
    padding: 0 40px;
}

/* 讓文章區塊單獨顯示 */
.news-article {
    width: 90%;
    max-width: 800px;
    background-color: rgba(255, 223, 196, 0.8);
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 30px;
    /* 讓文章之間有空間 */
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
    /* 確保每篇文章獨立顯示 */
}

#nav-menu {
    max-width: 1200px;
    margin: 60px auto 10px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);

}

#nav-menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);

}

footer {
    margin-top: 50px;
    padding: 20px;
    border-radius: 15px;
}

footer p {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.language-selector {
    display: inline-flex;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    padding: 0;
    background: none;
    border: none;
    position: relative;
    z-index: 2;
}

.language-selector button {
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    background-color: #fcb69f;
    color: #fff;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    text-align: center;
    min-width: 120px;
    display: inline-block;
    margin: 5px 0;
    white-space: nowrap;
}

.nav a:hover {
    transform: translateY(1px);
    /* box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1); */
}

#logo {
    height: 75px;
}

.imgsindex {
    width: 75%;
    /* 根據需要設定容器的寬度 */
    height: auto;
    /* 或固定高度 */
    overflow: hidden;
    /* 隱藏溢出的部分 */

}

.imgsindex:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);

}

.portrait {
    max-width: 80%;
    height: auto;
    object-fit: cover;
    /* 控制圖片的填滿方式 */
}

.landscape {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    margin-top: 1.65rem;
    /* 上方間距 */
    margin-bottom: 1.65rem;
    /* 下方間距 */
    /* 控制圖片的填滿方式 */
}

.square {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    /* 上方間距 */
    margin-bottom: 0.4rem;
    /* 下方間距 */
    /* 控制圖片的填滿方式 */
}


.nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 5px;
    row-gap: 5px;
    font-size: 1.2rem;
    justify-content: center;
    list-style-type: none;
    padding: 10px;
    border-radius: 15px;
}

.nav a {
    font-size: 1.2rem;
    min-width: 120px;
    display: block;
    padding: 0.5rem;
    margin-right: 1rem;
    margin-left: 1rem;
    margin-bottom: 0.3rem;
    margin-top: 0.3rem;
    text-decoration: none;
    text-align: center;
    color: #2c3e50;
    background-color: #ffe1c4;
    font-weight: bold;
    border-radius: 15px;
}

.nav a:hover {
    background-color: #fcb69f;
    color: #fff;
    transform: translateY(1px);
    /* box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1); */
}

.main {
    padding: 10%;
}

.main div {
    min-height: 300px;
    background-color: transparent;
    padding: 20px;
    box-shadow: none;
    border-radius: 0;
}

.image-gallery img {
    border-radius: 0;
    transition: none;
    width: 100%;
}

.image-gallery img:hover {
    box-shadow: none;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    align-items: center;
    /* 垂直居中 */
}

.link-name {
    text-decoration: none;
    /* 去掉下劃線 */
    color: #2c3e50;
}

/* 懸停時也不顯示下劃線 */
.link-name:hover {
    text-decoration: none;
}

.sns-item {
    margin-bottom: 2rem
}

@media (max-width: 750px) {
    body {
        margin: 0 auto;
        max-width: 1200px;
        padding: 10px;
        box-shadow: none;
        border-radius: 0;
        font-size: 1rem;
    }

    .nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 5px;
        row-gap: 5px;
        margin: 60px auto 10px;
        padding: 20px;
        align-items: center;
        width: 90%;
    }

    .nav a {

        text-align: center;
        font-size: 1rem;
    }

    .language-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    .language-selector button {
        padding: 6px 8px;
        font-size: 1rem;
        width: auto;
        min-width: 80px;
        display: inline-block;
        margin: 3px 0;
    }

    h1 {
        font-size: 1.2rem;
    }

    .image-gallery img {
        width: 100%;
        margin-bottom: 10px;
    }

    .works_box {
        display: grid;
        grid-template-columns: 1fr;
        /* 啟用 Flexbox 排版 */
        justify-content: center;
        /* 主軸（橫向）置中 */
        gap: 20px;
        padding: 0;
        /* 每個 div 之間的間距，可自行調整 */
    }

    .works_detail h3 {
        size: 1rem;
    }

    .portrait {
        max-width: 80%;
        height: auto;
        object-fit: cover;
        /* 控制圖片的填滿方式 */
    }

    .landscape {
        max-width: 100%;
        height: auto;
        object-fit: cover;
        margin: none;
    }

    .main {
        padding: 2%;
    }

    .imgsindex {
        width: 100%;
        /* 根據需要設定容器的寬度 */
        height: auto;
        /* 或固定高度 */
        overflow: hidden;
        /* 隱藏溢出的部分 */
    }
}