@import url(reset.css);

html {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
}


body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  font-family: "DM Sans", "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--color1);
}

:root {
  --color1: #ffffff;
  --color2: #1a1a1a;
  --color3: #e63946;
  --color4: #eeeeee;
  --color5: #999999;
  --color6: #fff8f0;
  --color7: #faf3e0;
}

.wrapper {
  /* max-width: 1200px; */
  margin: 0 auto; /*置中*/
  padding-top: 80px;
}


/*----------------------------P1_Part-------------------------------*/


.page1 .aside-circle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  margin-right: 8px;
}

.wrapper-p1 {
  display: flex;
  justify-content: center;
  background-color: var(--color1);
  margin-bottom: 100px;
  padding-left: 8px;
  padding-right: 8px;

}

.hero-container-l {
  width: 450px;
  height: 750px;
  margin-top: 50px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

/* 圓點樣式 */

.hero-dot {
  display: block;
  width: 22px;
  cursor: pointer;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* .hero-dot.active {
  opacity: 1;
} */

.hero-dot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.5;
  transition: all 0.3s;
  filter: grayscale(100%);
}

.hero-dot.active img {
  opacity: 1;
  filter: none;
  content: url(../pics/Oval1.png);
}

#content li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

#content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.75s ease;
  height: 100%;
}

#content li {
  width: 100%;
  height: 100%;
  list-style: none;
}

/*如果要改變img的寬高，外面要多包一層*/
.hero-container-r {
  margin-right: 8px;
  width: 100%;
  max-width: 611px;
  height: 605px;
  margin-top: 120px;
  position: relative;
  border-radius: 8px;
  box-shadow: 3px 3px 7px 0px rgb(192 192 192);
}

.hero-pic-r {
  display: block;
  position: absolute;
  object-fit: cover;
  z-index: 1;
  border-radius: 8px;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.hero-title {
  z-index: 50;
  width: 500px;
  color: var(--color2);
  font-family: "DM Sans", sans-serif;
  font-weight: bold;
  font-size: 4.5em;
  position: absolute;
  top: 108px;
  left: -84px;
  line-height: 80px;
  pointer-events: none;
  text-shadow: 2px 2px 4px var(--color1), 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-title .colorful {
  color: var(--color3);
}

.wrapper-p1 .pr1 {
  font-size: 1.25em;
  position: absolute;
  top: 286px;
  left: 130px;
  line-height: 32px;
  font-weight: normal;
}
.wrapper-p1 .pr1 .desktop-break {
  display: none;
}

.wrapper-p1 .pr2 {
  font-size: 1em;
  position: absolute;
  top: 410px;
  left: 130px;
  line-height: 24px;
}

.wrapper-p1 .herop1button {
  display: block;
  text-decoration: none;
  color: var(--color1);
  width: 176px;
  height: 54px;
  background-color: var(--color3);
  border-radius: 8px;
  text-align: center;
  line-height: 54px;
  font-size: 1.1em;
  position: absolute;
  top: 510px;
  left: 130px;
  z-index: 2;
}

/*----------------------------P2_Part-------------------------------*/
.page2 {
  width: 100%;
  margin: 0 auto;
}

.wrapper-p2-text {
  /* padding-left: 40px; */
}

.wrapper-p2-text-break{
  display: none;
}

.wrapper-p2 {
  display: flex;
  align-items: center;
  background-color: var(--color1);
  position: relative;
  gap: 100px;
  margin: 0 auto 220px;
  max-width: 1200px;
  width: 90%;
  /* padding: 0 40px; */
}

.page2 .wrapper-p2 .p2-l {
  width: 306px;
  height: 291px;
  /* margin: 162px 36px 0 40px; */
  position: relative;
}

.wrapper-p2 .p2-l h2 {
  color: var(--color2);
  font-weight: bold;
  font-size: 3.5em;
  line-height: 64px;
  color: var(--color3);
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px var(--color1), 4px 4px 8px rgba(0, 0, 0, 0.15);
}

.wrapper-p2 .p2-l .pr1 {
  font-size: 1.25em;
  line-height: 32px;
  font-weight: normal;
  margin-bottom: 32px;
}

.wrapper-p2 .p2-l .pr2,
.wrapper-p2 .p2-l .pr3 {
  font-size: 1em;
  font-weight: normal;
  margin-bottom: 20px;
}

.wrapper-p2 .p2-l .pr3 {
  margin-bottom: 40px;
}


.wrapper-p2 .herop2button {
  display: block;
  text-decoration: none;
  color: var(--color1);
  width: 176px;
  height: 54px;
  background-color: var(--color3);
  border-radius: 8px;
  text-align: center;
  line-height: 54px;
  font-size: 1.1em;
  position: absolute;
  left: 40%;
  top: 115%;

}

.wrapper-p2 .p2-r {
  margin-right: 0 auto;
  width: 100%;
  max-width: 700px;
  height: 480px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  margin-top: 110px;
  box-shadow: 3px 3px 7px 0px rgb(192 192 192);
}

.wrapper-p2 .p2-r .p2imgr {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 70%;
}
/*----------------------------P3_Part-------------------------------*/

.page3 {
  /* height: 780px; */
}

.wrapper-p3 {
  display: flex;
  position: relative;
  justify-content: center;
  background-color: var(--color1);
  margin-bottom: 120px;

}

.wrapper-p3 h2 {
  position: absolute;
  top: 15px;
  left: 50%; /* 從左邊50% 開始 */
  transform: translateX(-50%); /* 往左移自己寬度的一半 */
  font-weight: bold;
  font-size: 3.5em;
  line-height: 64px;
  color: var(--color6);
  text-shadow: 2px 2px 4px var(--color2), 4px 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}


.wrapper-p3 .herop3button {
  display: block;
  text-decoration: none;
  color: var(--color1);
  width: 176px;
  height: 54px;
  background-color: var(--color3);
  border-radius: 8px;
  text-align: center;
  line-height: 54px;
  font-size: 1.1em;
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translatex(-50%);
  z-index: 10;
}

.wrapper-p3 ul {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  max-width: 1200px;
}

.wrapper-p3 li {
  position: relative;
  object-fit: cover;
  transition: 0.5s;
  flex: 1;
  overflow: hidden;
}

.wrapper-p3 li:hover {
  flex-grow: 3;
}

.wrapper-p3 img {
  object-fit: cover;
  width: 100%;
  height: 780px;
  display: block;
}

.wrapper-p3 .h3-1,
.h3-2,
.h3-3,
.h3-4 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 5px;
  font-weight: bold;
  font-size: 2.5em;
  line-height: 48px;
  color: var(--color6);
  text-shadow: 2px 2px 4px var(--color2), 4px 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.wrapper-p3 .p-1,
.p-2,
.p-3,
.p-4 {
  position: absolute;
  top: 55%;
  transform: translateY(-51%);
  left: 10px;
  font-weight: bold;
  font-size: 1em;
  line-height: 100%;
  color: var(--color6);
  text-shadow: 2px 2px 4px var(--color2), 4px 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/*----------------------------P4_Part-------------------------------*/
.page4 {
  /* height: 600px; */
  box-sizing: border-box;
  position: relative;
  background-color: var(--color1);
}

.wrapperp4 {
  /* height: 600px; */
  display: flex;
  padding-top: 200px;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  position: relative;
  margin-bottom: 360px;

}

.wrapperp4 h3 {
  font-size: 2.5em;
  font-weight: bold;
  line-height: 48px;
  margin-bottom: 20px;
  color: var(--color3);
}

.wrapperp4 p {
  display: block;
  margin-bottom: 10px;
  font-size: 1em;
  line-height: 24px;
  font-weight: bold;
  color: var(--color5);
}

.wrapperp4 h4 {
  color: var(--color2);
  font-weight: bold;
  font-size: 1.5em;
  line-height: 32px;
  margin-bottom: 10px;
}

.wrapperp4 h5 {
  color: var(--color2);
  font-weight: bold;
  font-size: 1em;
  line-height: 24px;
}

.page4 .p5pic {
  width: 450px;
  position: absolute;
  top: 90px;
  left: 52%;
  transform: translateX(-55%);
  z-index: 2;
  animation: float-container 3s ease-in-out infinite;
}

  @keyframes float-container {
  0% {
    transform: translateX(-55%);
  }
  50% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(-55%);
  }
  }

.page4 .p5pic img {
  width: 450px;
  object-fit: contain;
  opacity: 0.4;
}



