html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
  font-family: "Noto Sans TC";
  /* background-color: #fffef9!important; */
}

html {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption,
th,
td {
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}

q,
blockquote {
  quotes: none;
}

q:before,
q:after,
blockquote:before,
blockquote:after {
  content: "";
  content: none;
}

a img {
  border: none;
}

img {
  display: block;
  border: none;
}

html *,
html *:before,
html *:after {
  font-size: 16px;
  font-family: "Noto Sans TC";
}

/*# sourceMappingURL=reset.css.map */

.top-box {
  margin: auto;
  margin-top: 120px;
  display: flex;
  align-items: center;
  max-width: 1400px;

}

.top-box a {
  display: block;
}

.news_sec .container {
  padding: 30px 12px;
}

.sec_title {
  margin: 30px auto 60px auto;
  display: flex;
  align-items: center;
  font-size: 42px;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 5px;
  color: #243446;
}

.news_sec .news_content_right {
  position: relative;
  width: 80%;
  margin: 0 auto;
  padding-bottom: 35%;
}

.news_sec .news_content_right iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.top-box .left {
  width: 70%;
}

.top-box .right {
  width: 30%;
  text-align: center;
  color: #d3664a;
}

.mobile {
  display: none;
}

.top-box .right .topic1 {
  font-size: 36px;
  color: #243446;
  font-weight: 600;
  letter-spacing: 5px;
  margin: 10px auto;
}

.top-box .right .topic2 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 5px;
  margin: 20px auto;
}

.top-box .right .topic3 {
  font-size: 24px;
  letter-spacing: 5px;
  margin-top: 40px;
}

.news_sec .news_content {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.news_sec .news_content_left {
  width: 43%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.news_sec .news_content_left .news_content_box {
  margin: 20px 0;
}

.news_sec .news_content_left .news_content_box .news_date_p {
  color: #d3664a;
  font-size: 24px;
  font-weight: 600;
  margin: 10px 0;
}

.news_sec .news_content_left .news_content_box .news_content_p {
  color: #2a3a4b;
  font-size: 28px;
  font-weight: 400;
  margin: 10px 0;
}

.news_sec .news_content_right {
  width: 57%;
}

.title-p {
  display: flex;
  gap: 5px;
}

.title-p img {
  width: 20px;
  height: 20px;
}



.top-box .right .btn {
  width: 80%;
  margin: auto;
  background: #dc684a;
  border: 8px solid #76a7b8;
  color: white;
  margin-top: 6%;
  padding: 28px;
  font-size: 2vw;
  max-width: fit-content;
  border-radius: 50px;
  letter-spacing: 5px;
  cursor: pointer;
  animation: pulse 1s ease-in-out infinite;
}

/* 定義放大縮小動畫 */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.course_content {
  display: flex;
}

.course_content .course_content_left,
.course_content_right {
  width: 10%;

  /* 使用 sticky 定位取代 fixed */
  position: sticky;
  top: 100px;
  /* nav 高度 */
  align-self: flex-start;
  /* 防止被拉伸 */
  height: fit-content;
  /* 高度自適應內容 */
  z-index: 50;
}

.course_content .course_content_main {
  width: 80%;
}

.course_content .course_content_main .button-part {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.course_content .course_content_main .btn {
  margin: 10px auto;
  background: #dc684a;
  border: 5px solid #76a7b8;
  color: white;
  padding: 20px 30px;
  font-size: 24px;
  max-width: fit-content;
  border-radius: 50px;
  letter-spacing: 5px;
  cursor: pointer;
  min-width: 185px;
  position: relative;
  text-align: center;
  /* animation: pulse 1s ease-in-out infinite; */
}

.course_content .course_content_main .btn img {
  position: absolute;
  top: -30%;
  width: 20%;
  left: 0;
  transform: translate(-50%);
}

.course_content .course_content_main .content p {
  font-size: 28px;
  line-height: 3rem;
  color: #7c7f7e;
}

.course_content .course_content_main .content .content1 {
  width: 80%;
  margin: auto;
}

.course_content .course_content_main .content .content1 .sub_title {
  margin: 30px auto 40px auto;
  display: flex;
  align-items: center;
  font-size: 32px;
  justify-content: center;
  font-weight: 500;
  letter-spacing: 5px;
  color: #d3664a;
}

.course_content .course_content_main .content .content2 {
  width: 90%;
  margin: auto;
  clear: both;
}

/* ===================================== */
/* ...existing code... */

.course_content .course_content_main .content .content2 .content2_box {
  width: 90%;
  display: flex;
  align-items: center;
  border-radius: 20px;
  padding: 60px 40px;
  margin: 30px 0px 5rem 0px;
  background-image: url("../images/contentBG_13.gif");
  background-repeat: no-repeat;
  background-size: cover;
}

.course_content .course_content_main .content .content2 .content2_box2 {
  width: 90%;
  display: flex;
  align-items: center;
  border-radius: 20px;
  padding: 60px 40px;
  margin: 30px 0px 5rem 0px;
  background-image: url("../images/contentBG_24.gif");
  background-repeat: no-repeat;
  background-size: cover;
  float: right;
}

.course_content .course_content_main .content .content2 p {
  font-size: 26px;
  line-height: 2.8rem;
  color: #f6f3ef;
  font-weight: 300;
  letter-spacing: 5px;
}

.course_content .course_content_main .content .content2 .hint {
  font-size: 17px;
  line-height: 1.6rem;
  color: #0b0503;
  font-weight: 400;
  margin-top: 2rem;
  letter-spacing: 5px;
}

.course_content .course_content_main .content .content2 .content2_box .content2_box_left {
  width: 50%;
  padding: 25px;
}

.course_content .course_content_main .content .content2 .content2_box .content2_box_right {
  width: 50%;
}

.course_content .course_content_main .content .content2 .content2_box2 .content2_box2_left {
  width: 50%;
}

.course_content .course_content_main .content .content2 .content2_box2 .content2_box2_right {
  width: 50%;
  padding: 25px;

}

.course_content .course_content_main .content .content2 .content2_box img {
  width: 130%;
  border-radius: 15px;
  border: 10px solid #76a7b8;
}

.course_content .course_content_main .content .content2 .content2_box2 img {
  width: 130%;
  border-radius: 15px;
  border: 10px solid #76a7b8;
  transform: translate(-25%, 0px);
}

/* ...existing code... */

.event_sec .content {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.event_sec .content>img {
  width: 100%;
  height: auto;
  display: block;
}

.event_sec .event_buttons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.event_sec .event_buttons img {
  position: absolute;
  width: 120px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.event_sec .event_buttons img:hover {
  transform: scale(1.1);
}

/* 圓圈排列 - 按鈕位置調整 */
.event_sec .event_buttons .btn1 {
  top: 16%;
  left: 17%;
  width: 20%;
  animation: swing 1.8s ease-in-out infinite;
  animation-delay: 0.6s;
}

.event_sec .event_buttons .btn2 {
  top: 33%;
  left: 6%;
  width: 24%;
  animation: swing 1.8s ease-in-out infinite;
  animation-delay: 0.2s;
}

.event_sec .event_buttons .btn3 {
  top: 50%;
  left: 2%;
  width: 25%;
  animation: swing 1.8s ease-in-out infinite;
  animation-delay: 1s;
}

.event_sec .event_buttons .btn4 {
  top: 65%;
  left: 10%;
  width: 20%;
  animation: swing 1.8s ease-in-out infinite;
  animation-delay: 0.5s;
}

.event_sec .event_buttons .btn5 {
  top: 16%;
  right: 17%;
  width: 20%;
  animation: swing 1.8s ease-in-out infinite;
  animation-delay: 0.2s;
}

.event_sec .event_buttons .btn6 {
  top: 33%;
  right: 9%;
  width: 22%;
  animation: swing 1.8s ease-in-out infinite;
  animation-delay: 1s;
}

.event_sec .event_buttons .btn7 {
  top: 50%;
  right: 2%;
  width: 20%;
  animation: swing 1.8s ease-in-out infinite;
  animation-delay: 0.6s;
}

.event_sec .event_buttons .btn8 {
  top: 65%;
  right: 8%;
  width: 28%;
  animation: swing 1.8s ease-in-out infinite;
  animation-delay: 0.8s;
}

@keyframes swing {

  0%,
  100% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(15deg);
  }

  40% {
    transform: rotate(-10deg);
  }

  60% {
    transform: rotate(5deg);
  }

  80% {
    transform: rotate(-5deg);
  }
}

.game_sec {
  padding: 3rem;
}

.game_sec .box {
  padding: 10px;
  width: 90%;
  max-width: 900px;
  margin: auto;
  background-color: #60afcb;
  text-align: center;
  height: 50vh;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
}

.game_sec .temptitle {
  font-size: 32px;
  color: white;
  letter-spacing: 10px;
}

.game_sec .temp_subtitle {
  font-size: 20px;
  color: #010202;
}



@media (max-width: 1600px) {}

@media (max-width: 1280px) {
  .top-box .right .topic1 {
    font-size: 32px;
  }

  .top-box .right .topic2 {
    font-size: 32px;
  }

  .top-box .right .topic3 {
    font-size: 20px;
  }

  .sec_title {
    font-size: 32px;
  }

  .course_content .course_content_main .btn {
    font-size: 22px;
    line-height: 25px;
  }
}

@media (max-width: 980px) {
  .top-box {
    margin-top: 95px;
    flex-direction: column;
  }

  .top-box .left {
    width: 100%;
  }

  .top-box .right {
    width: 90%;
    text-align: center;
    color: #d3664a;
  }

  .top-box .right .topic1 {
    font-size: 1.8rem;
  }

  .top-box .right .topic2 {
    font-size: 1.8rem;
  }

  .top-box .right .topic3 {
    font-size: 1.2rem;
  }

  .top-box .right .btn {
    width: 65%;
    font-size: 1.5rem;
  }

  .news_sec .news_content_left .news_content_box .news_date_p {
    font-size: 1.3rem;
  }

  .news_sec .news_content_left .news_content_box .news_content_p {
    font-size: 1.5rem;
  }

  .course_content .course_content_main .btn {
    font-size: 1rem;
    line-height: 25px;
  }

  .course_content .course_content_main .content .content1 {
    width: 96%;
    margin: auto;
  }

  .course_content .course_content_main .content .content1 .sub_title {
    font-size: 1.6rem;
  }

  .course_content .course_content_left,
  .course_content_right {
    width: 15%;
  }

  .course_content .course_content_main .content p {
    font-size: 1.2rem;
    line-height: 1.8rem;
  }

  .course_content .course_content_main .content .content2 .content2_box {
    width: 100%;
    flex-direction: column;
  }

  .course_content .course_content_main .content .content2 .content2_box2 {
    width: 100%;
    flex-direction: column-reverse;
  }

  .course_content .course_content_main .content .content2 .content2_box .content2_box_left,
  .course_content .course_content_main .content .content2 .content2_box .content2_box_right,
  .course_content .course_content_main .content .content2 .content2_box2 .content2_box2_left,
  .course_content .course_content_main .content .content2 .content2_box2 .content2_box2_right {
    width: 100%;
    margin: auto;
  }

  .course_content .course_content_main .content .content2 .content2_box img {
    width: 100%;
  }

  .course_content .course_content_main .content .content2 .content2_box2 img {
    width: 100%;
    transform: translate(0, 0);
  }

  .news_sec .news_content {
    flex-direction: column-reverse;
  }

  .news_sec .news_content_left {
    width: 43%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .news_sec .news_content_left .news_content_box {
    margin: 10px 0;
  }

  .news_sec .news_content_right {
    width: 90%;
    margin: auto;
  }

  .news_sec .news_content_left {
    width: 90%;
    margin: auto;
  }

  .mobile {
    display: block;
  }

  .sec_title {
    margin: 20px auto 30px auto;
    font-size: 2rem;
  }

  .news_sec .news_content_right {
    position: relative;
    width: 95%;
    margin: 0 auto;
    padding-bottom: 50%;
    height: 0;
  }

  .news_sec .news_content_right iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .news_sec .main {
    margin: 30px 0 30px 0;
  }

  .news_sec .main .content {
    padding: 0 30px;
  }

  .news_sec .main .content p {
    text-align: justify;
  }

  .news_sec .main .content .rabbitleft {
    display: none;
  }

  .news_sec .main .content .rabbitright {
    display: none;
  }

  .news_sec .main .treeleft {
    display: none;
  }

  .news_sec .main .treeright {
    display: none;
  }

  .news_sec .main {
    padding: 30px 8px;
  }

  .news_sec .main .title {
    padding: 0 20px;
  }

  .news_sec .main .content {
    margin-top: 24px;
  }

  .news_sec .main .content .info {
    padding: 0 8px 8px 8px;
  }

  .news_sec .main .content .info a {
    flex-direction: column;
  }

  .news_sec .main .content .info a p {
    padding-bottom: 4px;
    line-height: 1.5;
  }

  .game_sec {
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  .sec_title {
    font-size: 1.8rem;
  }

  .course_content .course_content_main .content .content2 {
    width: 100%;
  }

  .course_content .course_content_main .content .content2 .content2_box,
  .course_content .course_content_main .content .content2 .content2_box2 {
    padding: 0px;
    width: 100%;
  }

  .course_content .course_content_main .content .content2 .content2_box .content2_box_left,
  .course_content .course_content_main .content .content2 .content2_box .content2_box_right,
  .course_content .course_content_main .content .content2 .content2_box2 .content2_box2_left,
  .course_content .course_content_main .content .content2 .content2_box2 .content2_box2_right {
    padding: 1rem;
  }

  .course_content .course_content_main .content .content2 p {
    font-size: 1.2rem;
    line-height: 1.8rem;
  }

  footer .travel .kinmen_web {
    flex-direction: column;
  }

  footer .travel .kinmen_web a,
  footer .travel .kinmen_mobile a {
    padding: 1.5rem 1rem;
  }

  .lightbox .lightbox_container .background-circle .name_box {
    padding: 1rem;
    font-size: 1.6rem;
    top: 10%;
    width: 100%;
    left: 0%;
  }

  .lightbox .lightbox_container .background-circle .lightboxdice1 {
    top: -10%;
  }

  .lightbox .lightbox_container .background-circle .lightboxdice3 {
    top: 85%;
  }

  .lightbox .lightbox_container .background-circle .time_place {
    top: 27%;

  }

  .lightbox .lightbox_container .background-circle .time_place .time_place_box .word {
    font-size: 1rem;
  }
  .lightbox .lightbox_container .background-circle .time_place .time_place_box .word_game {
    letter-spacing: 2px;
    font-size: 1rem;
    text-indent: 2rem;
    line-height: 1.5rem;
  }
  .lightbox .lightbox_container .background-circle .time_place .time_place_box .word1 {
    font-size: 1rem;
    line-height: 1.5rem;
    max-height: 15vh;
  }
  .lightbox .lightbox_container .background-circle .time_place .time_place_box .word1_small {
    font-size: 0.8rem;
    line-height: 1rem;
  }
  .lightbox .lightbox_container .background-circle .time_place .time_place_box .btn {
    border: 4px solid white;
    padding: 10px;
  }
  .lightbox .lightbox_container .background-circle .time_place .time_place_box {
    margin-bottom: 5px;
  }
  .lightbox .lightbox_container .background-circle .time_place .time_place_box .button_map {
    font-size: 1rem;
    width: 3rem;
    height: 3rem;
  }

  .game_sec .temp_subtitle {
    line-height: 2rem;
  }
}

/* 為每個錨點區域添加偏移量 */
#news,
#course,
#activity,
#onlieGame,
#course1,
#course2,
#course3,
#course4 {
  scroll-margin-top: 110px;
  /* 桌面版偏移量 */
}

/* 手機版調整 */
@media (max-width: 768px) {

  #news,
  #course,
  #activity,
  #onlieGame,
  #course1,
  #course2,
  #course3,
  #course4 {
    scroll-margin-top: 85px;
    /* 手機版偏移量 */
  }
}

/* 更小的手機螢幕 */
@media (max-width: 480px) {

  #news,
  #course,
  #activity,
  #onlieGame,
  #course1,
  #course2,
  #course3,
  #course4 {
    scroll-margin-top: 80px;
  }
}