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

body {
    font-family: "Chocolate Classical Sans", sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: #fdfdfd;
}

.charter {
    max-width: 80%;
    margin: 40px auto;
    padding: 20px;
}

#copyright {
    max-width: 64%;
    margin: 40px auto;
    padding: 20px;
}

.toc {
    margin-bottom: 40px;
    padding: 20px;
}

.toc summary {
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 10px;
    cursor: pointer;
}

.toc ul {
    padding-left: 20px;
}

.toc li {
    margin: 5px 0;
}

.toc a {
    text-decoration: none;
    color: #0066cc;
}

.toc a:visited {
    color: #0066cc;
}

.toc a:hover {
    text-decoration: underline;
}

.chapter-title {
    font-size: 1.8em;
    font-weight: bold;
}

.article-title {
    margin-top: 30px;
    font-size: 1.3em;
    font-weight: bold;
}

.article-content {
    margin: 10px 0;
    text-indent: 2em;
}

.fixed-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.fixed-buttons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 2.5rem;
    width: 2.5rem;
    text-align: center;
    padding: 10px 14px;
    background: rgba(22, 88, 188, 0.66);
    color: white;
    text-decoration: none;
    backdrop-filter: blur(7px);
    border-radius: 50%;
    box-shadow:
        inset 1px 2px 1px rgba(200, 200, 256, 0.6),
        /* 上亮 */
        inset -1px -2px 1px rgba(0, 0, 20, 0.2),
        /* 下暗 */
        2px 2px 5px rgba(0, 0, 0, 0.4);
}

.fixed-buttons a:hover {
    background: rgba(22, 88, 188, 0.4);
    box-shadow: none;
}



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

/* 預設樣式（適用於桌面等大螢幕） */
body {
    font-size: 1.2rem;
    font-family: "Chocolate Classical Sans", sans-serif;
    background-color: #fffdf1;
}

header {
    background-color: rgba(22, 88, 188, 0.66);
    backdrop-filter: blur(7px);
    /* 讓背景模糊 */
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* 使內容在水平方向上分散排列 */
    position: fixed;
    /* 固定位置 */
    top: 0;
    /* 距離頁面頂部 */
    left: 0;
    right: 0;
    transition: all 0.3s ease;
    /* 使變化平滑 */
    z-index: 1000;
    /* 確保 header 在最上層 */
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.1);
}

header img {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    transition: all 0.3s ease;
    /* 圖片變化平滑 */
}

.header-content {
    display: flex;
    align-items: center;
}

.liaison-title {
    display: flex;
    align-items: center;
}

nav {
    text-align: start;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    /* 初始隱藏 */
    position: absolute;
    right: 0rem;
    /* 讓下拉菜單靠齊右邊，防止超出視窗 */
    background-color: #f9f9f9;
    color: black;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 10px;
    /* 圓角 */
}

.dropdown-content button {
    font-size: 1rem;
    color: black;
    padding: 9px 12px;
    text-decoration: none;
    display: block;
    border: none;
    background: none;
    width: 100%;
    text-align: center;
    /* 左對齊 */
    border-radius: 10px;
    /* 圓角 */
}

.dropdown-content button:hover {
    background: none;
    /* 懸停顏色 */
    color: gray;
}

.dropdown:hover .dropdown-content {
    display: block;
    /* 滑鼠懸停時顯示 */
}

.bg-image {
    position: fixed;
    /* 讓圖片固定在視窗 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 讓圖片真正置中 */
    width: 100%;
    /* 防止圖片超出視窗 */
    height: auto;
    /* 防止圖片超出視窗 */
    object-fit: cover;
    /* 讓圖片適應視窗 */
    z-index: -1;
    /* 放在最底層，避免擋住其他內容 */
}

.bg-b {
    position: fixed;
    /* 讓圖片固定在視窗 */
    transform: translate(-50%, -50%);
    /* 讓圖片真正置中 */
    width: auto;
    /* 防止圖片超出視窗 */
    height: auto;
    /* 防止圖片超出視窗 */
    top: 50%;
    left: 50%;
    object-fit: cover;
    /* 讓圖片適應視窗 */
    z-index: -2;
    /* 放在最底層，避免擋住其他內容 */
}

section {
    max-width: 1500px;
    margin: 30px 3rem 30px;
    /* 調整與頁面邊緣的距離 */
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    /* 讓背景模糊 */
    border-radius: 15px;
    /* 圓角 */
    box-shadow:
        inset 1px 2px 1px rgba(200, 200, 256, 0.6),
        /* 上亮 */
        inset -1px -2px 1px rgba(0, 0, 20, 0.2),
        /* 下暗 */
        2px 2px 5px rgba(0, 0, 0, 0.4);
}




h1 {
    margin: 0;
    color: black;
    font-size: 2.5rem;
    /* 預設大標題大小 */
}

h2.t2 {
    margin: 0;
    color: white;
    font-size: 1.4rem;
}

span {
    font-weight: 700;

}

.span1.eoi {
    color: rgba(0, 100, 184, 1);
}

.nyc {
    color: rgba(45, 100, 150, 1);
}

.npc {
    color: rgba(240, 75, 75, 1);
}

.wcc {
    color: rgba(200, 48, 168, 1);
}

.jgc {
    color: rgba(215, 140, 30, 1);
}

.jlc {
    color: rgba(175, 64, 14, 1);
}

.dyc {
    color: rgba(60, 125, 100, 1);
}

.mec {
    color: rgba(40, 128, 128, 1);
}

.fic {
    color: rgba(160, 140, 100, 1);
}

footer {
    background-color: rgba(22, 88, 188, 0.66);
    color: white;
    text-align: center;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    margin: 0;
}

button {
    border-radius: 10px;
    /* 所有按鈕加圓角 */
    border: none;
    padding: 8px 12px;
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 80px;
    width: auto;
    max-width: 100%;
    display: inline-block;
    margin: 5px;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
    color: rgb(255, 255, 255);
    box-shadow:
        inset 1px 2px 1px rgba(200, 200, 256, 0.6),
        /* 上亮 */
        inset -1px -2px 1px rgba(0, 0, 20, 0.2),
        /* 下暗 */
        2px 2px 5px rgba(0, 0, 0, 0.4);



}

button:hover {
    background-color: rgba(22, 88, 188, 0.4);
}

button a:link,
button a:visited {
    color: white;
    /* 保持文字顏色與未訪問時一致 */
    text-decoration: none;
}

.commissioner_button {
    border-radius: 10px;
    /* 所有按鈕加圓角 */
    color: white;
    background-color: rgba(22, 88, 188, 0.66);
    backdrop-filter: blur(7px);
    /* 讓背景模糊 */
    font-size: 1.2rem;
    padding: 8px 12px;
    font-weight: 600;
    min-width: 80px;
    width: auto;
    max-width: 100%;
    display: inline-block;
    margin: 5px;
    white-space: nowrap;
    text-align: center;
}

.commissioner_button:hover {
    transform: translateY(2px);
}

.content {
    display: none;
}

.content.active {
    display: block;
}

.footer_mark {
    width: auto;
    height: 48px;
}

.intro_mark_box {
    width: 100%;
    height: 128px;
    align-items: start;
    text-align: start;
}

.intro_mark {
    width: auto;
    height: 96px;

}

/* 小螢幕樣式 */
@media (max-width: 1024px) {
    header {
        flex-direction: column;
        /* 在手機上內容垂直排列 */
        align-items: center;
        /* 內容居中 */
        padding: 15px;
    }

    .header-content {
        flex-direction: row;
        /* 手機上保持 logo 和標題橫向排列 */
        align-items: center;
    }

    header img {
        width: 75px;
        /* 手機上的圖片大小 */
        height: auto;
        /* 確保圖片不變形 */
        margin-right: 10px;
        /* 圖片與文字之間的間距 */
    }

    header h1 {
        font-size: 22px;
        /* 手機上的標題大小 */
        margin: 0;
    }

    header h2.t2 {
        font-size: 14px;
    }

    nav {
        margin-top: 10px;
        /* 手機上導航欄與標題的間距 */
    }

    nav a {
        font-size: 16px;
        /* 放大 nav 選項按鈕的字體 */
        margin: 0 10px;
    }

    section {
        padding: 15px;
        margin: 15px 0px 15px;
        max-width: 100%;
        /* 手機版增加左右邊距，避免貼近邊緣 */
    }

    #affairs {
        max-width: 1500px;
        padding: 15px;
        margin: 15px 10px 15px;
    }

    footer {
        padding: 5px;
    }


    .intro_mark_box {
        width: 100%;
        height: 128px;
        align-items: center;
        text-align: center;
    }

    .intro_mark {
        width: auto;
        height: 80px;

    }

    .charter {
        max-width: 96%;
        padding: 20px;
    }


}



/* 滾動後變小的樣式，適用於 h1 和 h2 */
header.small {
    padding: 10px;
}

header img.small {
    width: 50px;
    /* 縮小 logo */
    height: auto;
}

/* 小螢幕變小程度 */
@media (max-width: 999px) {
    header h1.small {
        font-size: 1.2rem;
        /* H1 在小螢幕變更小 */
    }

    header h2.small {
        font-size: 0.9rem;
        /* H2 在小螢幕變更小 */
    }
}

/* 大螢幕變小程度 */
@media (min-width: 1000px) {
    header h1.small {
        font-size: 1.5rem;
        /* H1 變小但仍較小螢幕大 */
    }

    header h2.small {
        font-size: 1rem;
        /* H2 變小但仍較小螢幕大 */
    }
}

/* 大螢幕模式下讓 #about 內部左右排版 */
@media (min-width: 1024px) {
    .sp {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .sp .content {
        width: 48%;
        margin: 15px;
        /* 讓兩個區塊各佔 48% */
    }
}