@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #ffffff;
  color: #2c3e50;
  font-family: "Playfair Display", "Noto Sans TC", "微軟正黑體", system-ui, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
}

.wrap {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.site-header {
  background-color: #457b9d;
  color: #fff;
  padding-block: clamp(18px, 4vw, 34px);
}
.site-header__title {
  font-size: clamp(22px, 5vw, 40px);
  line-height: 1.3;
  font-weight: 700;
}
.site-header__subtitle {
  margin-top: 4px;
  font-size: clamp(12px, 2.2vw, 18px);
  opacity: 0.9;
}

.section {
  padding-block: clamp(36px, 6vw, 72px);
}
.section--alt {
  background-color: #f2f6f9;
}
.section__title {
  color: #F38A0C;
  font-size: clamp(21px, 4vw, 34px);
  line-height: 1.35;
  font-weight: 700;
}
.section__lead {
  margin-top: 14px;
  max-width: 68ch;
  color: #4a5b6b;
  font-size: clamp(15px, 1.6vw, 18px);
}
.section__note {
  margin-top: 6px;
  color: #4a5b6b;
  font-size: clamp(14px, 1.4vw, 16px);
}

.about-grid {
  margin-top: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(22px, 3vw, 40px);
  align-items: stretch;
}

.card {
  --person-scale: .85;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  min-height: clamp(360px, 34vw, 460px);
  border-radius: 15px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg, #a8dadc, #457b9d);
  background-color: #307BE1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.card__title {
  font-size: clamp(28px, 4.4vw, 50px);
  line-height: 1.2;
  font-weight: 700;
}
.card__question {
  margin-top: 6px;
  font-size: clamp(19px, 3vw, 35px);
  font-weight: 700;
  color: #FFC12C;
  opacity: 0;
  transition: opacity 0.5s;
}
.card__bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.card__hint {
  color: #FFC12C;
  font-size: clamp(16px, 2vw, 25px);
  font-weight: 500;
  line-height: 1.45;
}
.card:hover .card__question, .card:focus-within .card__question {
  opacity: 1;
}

.person-stage {
  flex: none;
  width: calc(250px * var(--person-scale, 1));
  height: calc(350px * var(--person-scale, 1));
}

.person {
  position: relative;
  display: flow-root;
  width: 250px;
  height: 350px;
  border-radius: 0;
  padding-left: 25px;
  transform: scale(var(--person-scale, 1));
  transform-origin: top left;
  transition: transform 0.5s;
  cursor: pointer;
  outline: none;
}
.person .message {
  position: absolute;
  top: 24px;
  right: 100%;
  margin-right: 12px;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.person .hairs {
  position: relative;
  left: -20px;
  top: -55px;
  transition: transform 0.5s;
}
.person .hairs .hair1 {
  width: 150px;
  height: 180px;
  border-radius: 0;
  border-radius: 90px;
  box-shadow: inset -10px -10px 0px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  margin-left: 45px;
  margin-top: 80px;
  border-radius: 50px 50px 0 0/25px 25px 0 0;
}
.person .hairs .hair2 {
  width: 250px;
  height: 45px;
  border-radius: 0;
  border-radius: 22.5px;
  box-shadow: inset -10px -10px 0px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  margin-left: -5px;
  margin-top: -40px;
}
.person .hairs .hair3 {
  width: 150px;
  height: 25px;
  border-radius: 0;
  background-color: #307BE1;
  margin-left: 45px;
  margin-top: -70px;
}
.person .body {
  width: 200px;
  height: 170px;
  border-radius: 0;
  border-radius: 90px;
  margin-top: -40px;
  padding-top: 50px;
  background-color: #fff;
  box-shadow: inset -10px -10px 0px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.5s, background-color 2s 0.6s;
}
.person .body .eyes {
  position: relative;
  left: 30px;
  transition: transform 0.5s;
}
.person .body .eyes .eye {
  width: 50px;
  height: 25px;
  border-radius: 0;
  border-radius: 12.5px;
  display: inline-block;
  margin-right: 20px;
  margin-left: 5px;
  background-color: #fff;
  transition: border-radius 0.5s;
}
.person .body .eyes .eye .eyeball {
  width: 25px;
  height: 25px;
  border-radius: 0;
  border-radius: 12.5px;
  background-color: #457b9d;
  transition: margin-left 0.5s;
}
.person .body .mouth {
  width: 75px;
  height: 25px;
  border-radius: 0;
  border-radius: 12.5px;
  margin-left: 60px;
  margin-top: 15px;
  background-color: #F38A0C;
  transform: translateX(20px);
  transition: border-radius 0.5s;
}
.person:hover, .person:focus-visible {
  transform: scale(var(--person-scale, 1)) translateX(24px);
}
.person:hover .body, .person:focus-visible .body {
  box-shadow: inset -10px -10px 0px rgba(0, 0, 0, 0.1), -30px 10px rgba(0, 0, 0, 0.1);
  background-color: #fed9b7;
}
.person:hover .eyes, .person:focus-visible .eyes {
  transform: translateX(10px);
}
.person:hover .eyes .eyeball, .person:focus-visible .eyes .eyeball {
  margin-left: 20px;
}
.person:hover .mouth, .person:focus-visible .mouth {
  border-radius: 0 0 75px 75px/0 0 50px 50px;
}
.person:active .hairs, .person:focus .hairs {
  transform: translateY(-25px);
}
.person:active .mouth, .person:focus .mouth {
  border-radius: 0 0 75px 75px/0 0 50px 50px;
}
.person:active .body .eye, .person:focus .body .eye {
  border-radius: 50px 50px 0 0/25px 25px 0 0;
}
.person:active .message, .person:focus .message {
  opacity: 1;
}

.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  align-content: start;
}

.feature {
  padding: clamp(16px, 2.4vw, 24px);
  background-color: #fff;
  border: 1px solid rgba(69, 123, 157, 0.18);
  border-left: 6px solid #457b9d;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  color: #4a5b6b;
  font-size: clamp(14px, 1.5vw, 17px);
}
.feature__title {
  margin-bottom: 6px;
  color: #457b9d;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
}
.feature__points {
  margin: 0;
  padding-left: 1.4em;
}

.frame {
  margin-top: clamp(18px, 2.5vw, 28px);
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.frame iframe {
  display: block;
  width: 100%;
  border: 0;
}
.frame--image img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 480px) {
  .frame--image {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .frame--image img {
    width: 640px;
    max-width: none;
  }
}
.frame--video {
  aspect-ratio: 16/9;
}
.frame--video iframe {
  height: 100%;
}
.frame--h5p iframe {
  height: clamp(360px, 52vw, 640px);
}

.figure-hint {
  display: none;
  margin-top: 8px;
  color: #4a5b6b;
  font-size: 13px;
}
@media (max-width: 480px) {
  .figure-hint {
    display: block;
  }
}

.site-footer {
  background-color: #457b9d;
  color: #fff;
  padding-top: clamp(24px, 4vw, 40px);
  padding-bottom: 0;
}
.site-footer__inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer__title {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  margin-bottom: 6px;
}
.site-footer__contact {
  font-size: clamp(14px, 1.6vw, 17px);
  padding-bottom: clamp(24px, 4vw, 40px);
}
.site-footer__crew {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 6px;
}

.person-stage--xs {
  --person-scale: .26;
}

.person-stage--sm {
  --person-scale: .32;
}

.person-stage--md {
  --person-scale: .38;
}

@media (max-width: 1024px) {
  .card {
    --person-scale: .7;
  }
}
@media (max-width: 768px) {
  .card {
    --person-scale: .72;
    min-height: 340px;
  }
  .card__bottom {
    align-items: flex-end;
  }
  .site-footer__inner {
    justify-content: flex-start;
  }
}
@media (max-width: 480px) {
  .card {
    --person-scale: .5;
    min-height: 300px;
  }
  .card__hint {
    line-height: 1.35;
  }
  .person-stage--xs {
    --person-scale: .2;
  }
  .person-stage--sm {
    --person-scale: .25;
  }
  .person-stage--md {
    --person-scale: .3;
  }
  .site-footer__crew {
    margin-inline: auto;
  }
}
@media (hover: none) {
  .card__question {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
