:root {
  --header-h: 0px;
  --safe-top: 0px;
  --subnav-h: 48px;
  --accent: #ff6b6b;
  --ink: #333;
  --muted: #666;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: var(--header-h);
}

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 999;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

#recommend {
  scroll-margin-top: 150px;
}

#first-entry {
  scroll-margin-top: 150px;
}

#profiles {
  scroll-margin-top: 0px;
}

#events {
  scroll-margin-top: -20px;
}

#gallery {
  scroll-margin-top: 150px;
}

@media (max-width: 768px) {
  #recommend {
    scroll-margin-top: 130px;
  }

  #first-entry {
    scroll-margin-top: 150px;
  }

  #profiles {
    scroll-margin-top: 0px;
  }

  #events {
    scroll-margin-top: 48px;
  }
}

@media (max-width: 768px) {
  #smooth-content {
    margin-top: 38px;
  }
}

.subnav__list {
  list-style: none;
  margin: 0 auto;
  padding: 0 16px;
  max-width: 1200px;

  display: flex;
  min-height: 48px;
}

.subnav__list > li {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
}

.subnav__list > li > .subnav__btn {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;

  padding: 10px 18px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;

  /* reset button style */
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
}

.subnav .subnav__btn:hover {
  color: var(--ink);
}

.subnav .subnav__btn.is-active,
.subnav .subnav__btn[aria-current="page"] {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05) inset;
}

.subnav.is-stuck {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* mobile: allow horizontal scroll if too many tabs */
@media (max-width: 768px) {
  .subnav__list {
    /* justify-content: flex-start; */
    /* overflow-x: auto; */
    /* -webkit-overflow-scrolling: touch; */
    padding: 0 !important;
  }

  .subnav__list > li > .subnav__btn {
    font-size: 12px;
    padding: 0;
  }
}

.anniversary20th {
  font-family: "Microsoft JhengHei";
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.page,
body,
html {
  overflow-x: hidden;
}

@media (max-width: 640px) {
  .kv-image {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .kv-image {
    margin-top: 30px;
  }
}

.anniversary20th .heading {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.anniversary20th .heading .heading-sub {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #666;
  font-weight: normal;
  line-height: 1;
  white-space: nowrap;
  z-index: 3;
}

#recommend .heading {
  margin: 30px 0;
}

.anniversary20th .event-heading {
  margin: 40px 0px 80px 0px;
}

@media (max-width: 640px) {
  .anniversary20th .event-heading {
    margin: 40px 0px 60px 0px;
  }
}

.anniversary20th .heading p {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(22px, 4.5vw, 32px);
  color: rgb(84, 84, 84);
  font-weight: bold;
  line-height: 1.856;
  text-align: center;

  display: inline-flex;
  align-items: center;
  gap: 3rem;
  padding-inline: 0.25rem;
}

.anniversary20th .heading p::before,
.anniversary20th .heading p::after {
  content: "";
  flex: 0 0 auto;
  width: clamp(28px, 6vw, 40px);
  height: clamp(28px, 6vw, 40px);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.anniversary20th .heading p::before {
  background-image: url("../image/dandelion_left.png");
}
.anniversary20th .heading p::after {
  background-image: url("../image/dandelion_right.png");
}

.anniversary20th .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: 50% 50%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #f6f6f6;
  z-index: 1;
  pointer-events: none;
  transition: none;
}

/* Mobile */
@media (max-width: 768px) {
  .anniversary20th .circle {
    width: 80px;
    height: 80px;
  }
}

.anniversary20th .title-line {
  --color: #f05164;
  --line-thickness: 2px;
  --gap: 5rem;

  display: flex;
  align-items: center;
  overflow: hidden;
  margin-block-start: 90px;
  margin-block-end: 20px;
  gap: var(--gap);
  font-size: 24px;
  font-weight: bold;
  color: var(--color);
  text-align: center;
}

.anniversary20th .title-line::before,
.anniversary20th .title-line::after {
  content: "";
  flex: 1;
  border-top: var(--line-thickness) solid var(--color);
  min-width: 30px;
}

.anniversary20th .title-line span {
  display: inline-block;
  white-space: normal;
  padding: 0 0.75rem;
  max-width: 100%;
}

@media (max-width: 768px) {
  .anniversary20th .title-line {
    margin-block-start: 50px;
    margin-block-end: 16px;
    font-size: 18px;
  }
}

.anniversary20th .image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 36px;
  margin-bottom: 36px;
}

.anniversary20th .grid-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.anniversary20th .grid-item img {
  width: 75px;
  height: auto;
  flex-shrink: 0;
}

.anniversary20th .grid-item .text h4 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.anniversary20th .grid-item .text p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .anniversary20th .image-grid {
    grid-template-columns: repeat(2, 2fr);
  }
}

@media (max-width: 768px) {
  .anniversary20th .image-grid {
    gap: 15px;
  }
}

@media (max-width: 640px) {
  .anniversary20th .image-grid {
    gap: 10px;
  }

  .anniversary20th .grid-item img {
    width: 70px;
    height: auto;
    flex-shrink: 0;
  }

  .anniversary20th .grid-item {
    gap: 8px;
  }
}

.anniversary20th .paragraph {
  padding: 20px;
}

/* Container: left→right responsive grid */
.anniversary20th .image-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.anniversary20th .image-card {
  position: relative;
  isolation: isolate;
}

/* Image */
.anniversary20th .image-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  border: 10px solid transparent;
  border-radius: 20px;
  background: linear-gradient(#0000, #0000) padding-box,
    linear-gradient(#eee, #eee) border-box;
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* .anniversary20th .image-card .image:hover {
  scale: 1.1;
} */

.anniversary20th .image-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.first-entry {
  position: relative;
}

.anniversary20th .image-card {
  display: flex;
  flex-direction: column;
  /* border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden; */
}

.anniversary20th .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
}

.anniversary20th .card-body h3 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.35;
  color: #333;
}

.anniversary20th .card-body p {
  margin: 0;
  color: #555;
  font-size: 12px;
}

.anniversary20th .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 8px;
  padding: 12px 36px;
  border: 2px solid #333;
  border-radius: 9999px; /* pill shape */
  background: #fff;
  font-weight: bold;
  font-size: 18px;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .anniversary20th .btn {
    padding: 10px 25px;
    font-size: 15px;
  }
}

.smaller-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f05164;
  color: #ffe210;
  font-size: 14px;
  font-weight: bold;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  line-height: 28px;
  text-align: center;
}

.anniversary20th .btn:hover {
  background: #ff005a;
  color: #fff;
}

.anniversary20th .btn:hover .smaller-cta-icon {
  background: #fff;
  color: #f05164;
}

.smaller-cta-icon .chev {
  --size: 8px;
  --thick: 2px;
  width: var(--size);
  height: var(--size);
  margin-left: -2px;
  translate: 0 0;
  border-right: var(--thick) solid currentColor;
  border-top: var(--thick) solid currentColor;
  transform: rotate(45deg);
}

.dialog {
  display: flex;
  align-items: flex-end;
  position: relative;
  margin-top: 60px;
}

.dialog-left {
  margin-left: 21px;
  position: relative;
}

.grandma-figure {
  --grandma-overlap: 185px;

  display: block;
  width: 100%;
  height: auto;
  margin-top: -185px;
  transform: translateY(var(--grandma-overlap));
  position: relative;
  z-index: 0; /* behind */
}

.dialog-bubble {
  width: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: #f7f7f7;
  border-radius: 35px 35px 35px 0px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.dialog-bubble p {
  margin: 0;
}

.dialog-right {
  position: absolute;
  right: 30px;
  margin-bottom: 25px;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .dialog-left {
    margin-left: 0;
  }

  .dialog-bubble {
    width: 80%;
    margin-bottom: 10px;
  }

  .dialog-bubble p {
    font-size: 14px;
    margin: 0;
  }
  .grandma-figure {
    width: 90%;
    z-index: 0;
    transform: translateY(100px);
    display: block;
  }

  /* Optional: hide the right sticker on mobile */
  .dialog-right {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grandma-figure,
  .dialog-bubble {
    transition: none;
  }
}

.impact {
  position: relative;
  width: 100%;
  min-height: 384px;
  z-index: 0;
}

.impact-container {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.impact-left {
  background: url("../image/impact-background-left.png") no-repeat left center;
  background-size: 92% 100%;
}

.impact-right {
  background: url("../image/impact-background-right.png") no-repeat right center;
  background-size: 92% 100%;
}

.impact-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.impact-kicker {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.02em;
  color: var(--muted);
  position: absolute;
  left: 0;
}

@media (max-width: 648px) {
  .impact-left {
    background-size: 100% 100%;
  }

  .impact-right {
    background-size: 100% 100%;
  }
}

@media (max-width: 768px) {
  .impact-kicker {
    font-size: 12px;
  }
}

.impact__icon {
  width: 177px;
  height: auto;
  display: block;
}

.impact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 28px 40px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.bold-underline {
  font-weight: bold;
  text-decoration: underline;
}

.stat {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}
.stat-eyebrow {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--muted);
}
.stat-value {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  line-height: 1.2;
  font-weight: 900;
  color: var(--accent);
  white-space: nowrap;
}

.stat-unit-blue {
  font-weight: 700;
  font-size: clamp(12px, 1.4vw, 16px);
  color: #09c4f6;
}
.stat-unit-orange {
  font-weight: 700;
  font-size: clamp(12px, 1.4vw, 16px);
  color: #f8862d;
}
.stat-unit-blue {
  color: #09c4f6;
}
.stat-unit-orange {
  color: #f8862d;
}

.stat-number-blue,
.stat-number-orange {
  font-size: clamp(2.5rem, 2vw, 3rem);
}

.stat-number-blue {
  color: #09c4f6;
}
.stat-number-orange {
  color: #f8862d;
}

.stat-suffix-blue,
.stat-suffix-orange {
  margin-left: 0.375rem;
  font-weight: bold;
  font-size: clamp(1.25rem, 1.5vw, 1.4rem);
  vertical-align: baseline;
}

.stat-suffix-blue {
  color: #09c4f6;
}
.stat-suffix-orange {
  color: #f8862d;
}

.stat-caption {
  margin: 6px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--muted);
  position: relative;
}

.stat-caption::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #dddddd;
  margin-top: 4px;
}

.stat--empty {
  visibility: hidden;
}

@media (max-width: 768px) {
  .stat--empty {
    display: none;
  }
}

/* map */
.map {
  position: relative;
}

.map-video {
  margin: 60px 0px;
}
/* map */

/* 董事長的話 */

.chairman-background {
  position: relative;
  display: flex;
  flex-direction: column;
}

.chairman-background .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: 50% 50%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fefefe;
  z-index: 1;
  pointer-events: none;
  transition: none;
}

.chairman-top {
  background: url("../image/profile_background_top.png") no-repeat center top;
  background-size: cover;
  height: 98px;
  flex-shrink: 0;
}

.chairman-top-bottom {
  margin-top: 40px;
}

.chairman-middle {
  flex: 1;
  background: url("../image/profile_background.png") repeat center top;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.chairman-bottom {
  background: url("../image/profile_background_bottom.png") no-repeat center
    bottom;
  background-size: cover;
  height: 98px;
  flex-shrink: 0;
}

.chairman-background .heading {
  margin: 70px 0;
}

.chairman-background .card {
  position: relative;
  background-color: #fff;
  border-radius: 20px;
  padding: 70px 30px;
  margin-bottom: 20px;
  max-height: 700px;
  z-index: 1;
}

@media (max-width: 1200px) {
  .chairman-background .card {
    max-height: none;
  }
}

.chairman-background .card .body {
  overflow-y: auto;
  max-height: calc(700px - 160px);
  padding-right: 10px;
}

.chairman-background .card .body::-webkit-scrollbar {
  width: 6px;
}

.chairman-background .card .body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.chairman-background .card .body::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.chairman-background .card .title {
  display: flex;
  align-items: center;
  gap: 50px;
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 800;
  color: #ff005a;
}

.chairman-background .card .title::after {
  content: "";
  flex: 1 1 auto;
  border-top: 2px solid #ff005a;
  transform: translateY(2px);
}

.chairman-background .card .body p {
  margin: 0 0 16px;
  font-size: 15px;
}
.chairman-background .card .body p:last-child {
  margin-bottom: 0;
}

.profile-aside {
  display: flex;
  justify-content: center;
  align-items: start;
}

.chairman-background .profile-aside {
  display: flex;
  justify-content: center;
  align-items: center;
}

.chairmans,
.profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 45px;
  align-items: stretch !important;
  justify-content: center;
  height: 100%;
}

/* Modal */

.hidden {
  display: none;
}

/* Modal basics */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto; /* allow scroll if content too long */
}

.modal.active {
  display: flex;
}

.modal-body {
  display: flex;
  flex-direction: row; /* side by side */
  gap: 20px;
  align-items: flex-start;
}

.modal-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.modal-image h3 {
  margin: 6px 0 4px;
}

.modal-image .role {
  margin: 0 0 12px;
  font-size: 14px;
  color: #444;
}

.modal-image img {
  width: 100%;
  max-width: 314px;
  height: auto;
}

.modal-text {
  flex: 1;
  overflow-y: auto;
  max-height: 58vh;
}

.modal-text::-webkit-scrollbar {
  width: 8px; /* scrollbar width */
}

.modal-text::-webkit-scrollbar-track {
  background: #f0f0f0; /* track color */
}

.modal-text::-webkit-scrollbar-thumb {
  background: #888; /* handle color */
  border-radius: 4px;
}

.modal-text::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.modal-text h3 {
  margin-top: 0;
}

.modal-item-content {
  aspect-ratio: 1001 / 599;
  width: 100%;
  max-width: 1001px;
  background: url("../image/recommend/modal/modal.png") center/cover no-repeat;
  background-origin: border-box;
  background-clip: border-box;
  box-sizing: border-box;
  position: relative;
}

.recommendModal .modal-icon {
  position: absolute;
  top: -25px;
  left: 70px;
  transform: translateX(-50%);
  z-index: 5;
}

.recommendModal p {
  margin: 0 0 8px !important;
}

.modal-inner {
  padding: 42px;
  height: 100%;
  box-sizing: border-box;

  display: flex;
  flex-direction: row;
  gap: 30px;

  overflow-y: auto;
}

.modal-item-content .roles {
  display: flex;
  flex-direction: column;
}

.modal-item-content img {
  max-width: 314px;
  margin-bottom: 15px;
}

.modal-item-content h3 {
  margin: 10px 0;
}

.close {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 45px;
  height: 45px;
  cursor: pointer;
  z-index: 10;
}

.close::before {
  content: " ";
  font-size: 28px;
  line-height: 48px;
  text-align: center;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 董事長的話 */

/* 各界暖心推薦 */

.recommend {
  position: relative;
}

.recommend .recommend-pc {
  display: grid;
}

.recommend-mobile {
  display: none !important;
}

.recommend .recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-items: center;
}

@media (max-width: 1024px) {
  .recommend .recommend-pc {
    display: none;
  }
  .recommend-mobile {
    padding-top: 20px !important;
    display: block !important;
    position: relative !important;
    padding-bottom: 50px !important;
    margin-bottom: 10px !important;
  }

  .recommend .recommend-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 8px;
  }

  .recommend-swiper {
    padding-bottom: 40px;
  }
}

.recommend-mobile .swiper-button-prev::after,
.recommend-mobile .swiper-button-next::after {
  color: #6b6b6b;
  font-size: 24px;
}

.recommend-mobile .swiper-button-prev {
  left: -2px;
}
.recommend-mobile .swiper-button-next {
  right: -2px;
}

.swiper-pagination-bullet {
  background: #e61556;
}

.recommend .recommend-card {
  text-align: center;
}

.recommend .image-border {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  padding: 6px;
  margin-bottom: 15px;
}

.recommend .image-border::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 4px solid #ff005a;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.recommend .image-border:hover::before {
  opacity: 1;
}

.recommend .image-wrapper {
  position: relative;
  width: 208px;
  height: 208px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.recommend .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 1;
}

.recommend .image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../image/recommend/hover-overlay.png") no-repeat center /
    cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.recommend .image-wrapper:hover::after {
  opacity: 1;
}

.recommend .image-border:hover {
  outline-color: #e61556;
}

.recommend .image-border:hover .image-wrapper::after {
  opacity: 1;
}

.recommend .profile-card h3 {
  font-size: 1.1rem;
  margin: 5px 0;
}

.name-with-spark {
  position: relative;
}

.name-with-spark .spark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1em;
  height: 1em;
  background: url(../image/mobile/small_dandelion.png) no-repeat center /
    contain;
  margin-left: 6px;
}

.recommend .profile-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

.recommend .name {
  font-weight: bold;
}

.recommend .role {
  margin-top: 4px;
  font-weight: bold;
}

.recommend .name {
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.recommend .spark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1em;
  height: 1em;
  background: url("../image/mobile/small_dandelion.png") no-repeat center /
    contain;
  margin-left: 6px;
}

@media (max-width: 768px) {
  .modal-item-content {
    aspect-ratio: 546 / 881;
    width: 100%;
    max-width: 546px;
    background: url("../image/recommend/modal/modal_m.png") center/cover
      no-repeat;
    background-origin: border-box;
    background-clip: border-box;
    box-sizing: border-box;
    position: relative;
  }

  .recommend .recommend-card {
    max-width: 180px;
  }

  .recommend .image-wrapper {
    width: 180px;
    height: 180px;
  }

  .modal-item-content img {
    max-width: 180px;
    margin-bottom: 0px;
  }

  .modal-image-larger {
    max-width: 240px !important;
    margin-bottom: 0px;
  }

  .modal-inner {
    padding: 25px;
    height: 100%;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    align-items: center;

    overflow-y: auto;
  }

  .modal-text {
    flex: unset;
    overflow-y: visible;
    max-height: none;
  }

  .modal-item-content h3 {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .recommend .image-wrapper {
    width: 140px;
    height: 140px;
  }
}

/* 各界暖心推薦 */

/* 見更美好的自己-夥伴群像 */

.profile-background {
  display: flex;
  flex-direction: column;
}

.profile-background .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: 50% 50%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fefefe;
  z-index: 1;
  pointer-events: none;
  transition: none;
}

.profile-top {
  background: url("../image/profile_background_top.png") no-repeat center top;
  background-size: cover;
  height: 98px;
  flex-shrink: 0;
}

.profile-top-bottom {
  margin-top: 40px;
}

.profile-middle {
  flex: 1;
  background: url("../image/profile_background.png") repeat center top;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.profile-middle .tablist {
  display: flex;
  gap: 88px;
  align-items: center;
  justify-content: center;

  width: max-content;
  margin-inline: auto;
}

.profile-middle .tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 40px;
  color: #fff;
  background-color: #505050;
  border: 0;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 20px 20px 0px 0px;
}

.profile-middle .tab[aria-selected="true"],
.profile-middle .tab.is-active {
  background-color: #ffffff;
  color: #000;
}

.profile-middle .tab .badge {
  inline-size: 24px;
  block-size: 24px;
  border-radius: 50%;
  background: #ff005a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  flex: 0 0 auto;
  position: relative;
}

.profile-middle .tab[aria-selected="true"] .badge,
.profile-middle .tab.is-active .badge {
  background-color: #aeaeae;
}

.profile-middle .tab[aria-selected="true"] .badge::before,
.profile-middle .tab.is-active .badge::before {
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.profile-middle .tab .badge::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-bottom: 3px;
  border-right: 2px solid #ffe210;
  border-bottom: 2px solid #ffe210;
  transform: rotate(45deg);
}

.profile-middle .tab-panel[hidden] {
  display: none;
}

.profile-bottom {
  background: url("../image/profile_background_bottom.png") no-repeat center
    bottom;
  background-size: cover;
  height: 98px;
  flex-shrink: 0;
}

.profile-background .heading {
  margin: 70px 0;
}

.profile-background .title::after {
  content: "";
  flex: 1 1 auto;
  border-top: var(--line-thickness) solid var(--color);
}

.profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 45px;
  align-items: start;
}

.portrait-wrapper {
  position: relative;
  display: inline-block;
  max-width: 303px;
}

.portrait {
  margin: 0;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #f4f4f4;
  position: relative;
  z-index: 2;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-layer {
  position: absolute;
  inset: 0;
  transform: translate(8px, -30px);
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
}

.portrait-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portrait-caption {
  margin-top: 16px;
  line-height: 1.7;
  text-align: center;
  font-size: 18px;
}

.portrait-caption .name {
  font-weight: bold;
}
.portrait-caption .role {
  margin-top: 4px;
  font-weight: bold;
}

.portrait-caption .spark {
  display: inline-block;
  margin-left: 6px;
  width: 1em;
  height: 1em;
  background: url("../image/mobile/small_dandelion.png") no-repeat center /
    contain;
}

.profile-background .card {
  background-color: #fff;
  border-radius: 20px;
  padding: 70px 30px;
  margin-bottom: 20px;
}

.profile-background .card .title {
  display: flex;
  align-items: center;
  gap: 50px;
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 800;
  color: #ff005a;
}

.profile-background .card .title::after {
  content: "";
  flex: 1 1 auto;
  border-top: 2px solid #ff005a;
  transform: translateY(2px);
}

.profile-background .card .body p {
  margin: 0 0 16px;
  font-size: 15px;
}
.profile-background .card .body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .portrait,
  .profile-aside {
    margin-inline: auto;
  }

  .profile-middle .tab {
    padding: 10px 10px;
  }

  .profile-middle .tablist {
    gap: 10px;
  }

  .portrait-layer {
    display: none;
  }

  .profile-background .card {
    padding: 24px;
  }
  .profile-background .card .title {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .profile-middle .tablist {
    gap: 5px;
  }
}

/* 見更美好的自己-夥伴群像 */

.event-list {
  list-style: none;
  margin: var(--event-list-margin, 30px 0px);
  padding: 0;
}

.event-list li {
  display: grid;
  grid-template-columns: auto 1fr; /* label takes natural width */
  align-items: start;
  gap: 6px 12px;
  margin: 6px 0;
}

.li-label {
  color: #555;
  font-weight: 600;
  text-align: left; /* ⬅️ align to the left */
}

.li-label::before {
  content: "．";
}

.li-label-colon {
  color: #555;
  font-weight: 600;
  text-align: left;
}

.li-label-colon::before {
  content: "．";
}

.li-label-colon::after {
  content: "：";
}

.li-body {
  line-height: 1.6;
}

@media (max-width: 480px) {
  .li-label {
    text-align: left;
  }
}

.event-section .container {
  display: flex;
  justify-content: center;
}

.number-card {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  box-sizing: border-box;

  /* use background-* pieces so overrides don't reset */
  background-image: var(--card-bg-img, url("../image/number-card.png"));
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%; /* frame scales to box */
  min-height: var(--card-min-h, 1021px);
}

/* 展覽活動 */
#event-panel-1 {
  --card-bg-img: url("../image/number-card.png");
  --card-min-h: 1021px;
  --cta-offset: -65px;
  --card-body-pad: 0px 69px;
}

/* 展場體驗 */
#event-panel-2 {
  --card-bg-img: url("../image/number-card-2.png");
  --card-min-h: 1074px;
  --cta-offset: -85px;
  --card-body-pad: 0px 69px 90px;
  --event-list-margin: 0px;
}

/* 社群活動 */
#event-panel-3 {
  --card-bg-img: url("../image/number-card-3.png");
  --card-min-h: 430px;
  --cta-offset: -30px;
  --card-body-pad: 0px 69px 90px;
  --event-list-margin: 0px;
}

/* 活化歷史
二十周年 */
#event-panel-4 {
  --card-bg-img: url("../image/number-card-4.png");
  --card-min-h: 900px;
  --cta-offset: -30px;
  --card-body-pad: 0px 69px 90px;
  --event-list-margin: 0px;
}

/* 傳承藝術 二十周年 */
#event-panel-5 {
  --card-bg-img: url("../image/number-card-5.png");
  --card-min-h: 891px;
  --cta-offset: -30px;
  --card-body-pad: 0px 69px 90px;
  --event-list-margin: 0px;
}

/* Title section */
.number-card-title {
  font-size: 24px;
  font-weight: bold;
  color: #f05164;
  margin-top: 32px;
  margin-left: 190px;

  min-height: calc(2 * 1.3em);
  max-height: calc(2 * 1.3em);

  -webkit-line-clamp: 2;
  line-clamp: 2;

  overflow-wrap: anywhere;
}

.number-card-body {
  position: relative;
  padding: var(--card-body-pad, 32px 69px);
}

.number-card-body .finish {
  position: absolute;
  top: 50px;
  left: 50%;
  width: 312px;
  height: auto;
  object-fit: contain;
  pointer-events: none;

  transform: translate(-50%, -50%);
}

/* Content section */
.number-card-content {
  font-size: 18px;
  font-weight: bold;
  color: #000;
}

.number-card-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 20px;

  border-radius: 16px; /* ⬅️ adjust the px value for more/less roundness */
  overflow: hidden; /* ensure rounded corners clip image content */
}

.event-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--cta-offset, 65px);
}

.cta-wrapper {
  display: flex;
  flex-direction: column; /* stack text above button */
  align-items: center;
  gap: 8px; /* spacing between text and button */
}

.cta-text {
  font-size: 14px;
  color: #838383;
  margin: 0;
  text-align: center;
  padding: 0px 16px;
  text-align-last: left;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 12px 36px;
  border: 2px solid #333;
  border-radius: 9999px; /* pill shape */
  background: #fff;
  font-weight: bold;
  font-size: 18px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #ff005a;
  color: #fff;
}

.cta-button:hover .cta-icon {
  background: #fff;
  color: #f05164;
}

.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f05164;
  color: #ffe210;
  font-size: 14px;
  font-weight: bold;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
}

.cta-icon .chev {
  --size: 9px;
  --thick: 2px;
  width: var(--size);
  height: var(--size);
  margin-left: -2px;
  translate: 0 0;
  border-right: var(--thick) solid currentColor;
  border-top: var(--thick) solid currentColor;
  transform: rotate(45deg);
}

.card-with-tabs {
  width: min(100%, 860px);
  margin: 0 auto;
}

.tab-nav {
  display: flex;
  align-items: center;
  border-radius: 20px 0;
}

.tab-spacer {
  flex: 0 0 140px;
}

.tab-button {
  display: flex;
  flex: 1;
  justify-content: flex-end;
}

.tab-btn {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 10px 16px;
  appearance: none;
  background: #e7e7e7;
  color: #333;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.25s, color 0.25s;
}

.tab-btn.is-active {
  background: #f7f7f7;
}

/* Hide text/number visually but keep their space & a11y */
.tab-btn.is-active .tab-num,
.tab-btn.is-active .tab-label {
  opacity: 0; /* preserves layout & keeps in accessibility tree */
}

/* Centered arrow overlay */
.tab-btn.is-active::after {
  content: "";
  position: absolute;
  inset: 0; /* fill button */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  pointer-events: none; /* click still hits button */
  background: url("../image/arrow-circle.png") no-repeat center / 22px 22px;
}

/* Your existing number & label styles */
.tab-num {
  font-weight: 800;
  font-size: clamp(18px, 3.2vw, 20px);
  letter-spacing: 0.02em;
}
.tab-label {
  font-size: clamp(14px, 2.2vw, 20px);
  line-height: 1.1;
  white-space: normal;
  text-align: left;
}

/* Optional variations per tab (you can theme each) */
/* .number-card--workshop .number-card-body {
  padding: 24px 48px;
}
.number-card--talk .number-card-header {
  padding: 24px 69px 0;
}
.number-card--talk .kicker {
  margin: 0 69px 8px;
  color: #666;
  font-weight: 700;
} */
.number-card--talk .hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 16px 0;
}

/* Utility for workshop 2-col layout */
.grid-two {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}
.lead {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.bullet {
  margin: 0;
  padding-left: 1.1em;
}
.media {
  margin: 0;
}
.media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.media figcaption {
  font-size: 12px;
  color: #777;
  text-align: center;
  margin-top: 6px;
}
.soft {
  border: 0;
  border-top: 1px solid #eee;
  margin: 16px 0;
}

.hyperlink {
  color: #0645ad;
  text-decoration: underline;
}

.branding-footer {
  --row-max: 1240px;
  --pad-y: 56px;
  --gap-x: clamp(16px, 3vw, 40px);
  --divider: #bab7b6;
  --label: #000000;
  background: #fff;
  margin-bottom: -60px;
}

.branding-footer__row {
  max-width: var(--row-max);
  margin: 0 auto;
  padding: var(--pad-y) 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-x);
  flex-wrap: nowrap;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 28px);
  flex-shrink: 1;
}

.divider {
  width: 1px;
  height: 42px;
  background: var(--divider);
  flex: 0 0 auto;
  opacity: 0.9;
}

.brand {
  height: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.brand-larger {
  height: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .brand {
    max-width: 120px;
  }
}

.brand-label {
  font-size: 16px;
  color: var(--label);
  letter-spacing: 0.05em;
  white-space: nowrap;
  margin-right: 4px;
}

@media (max-width: 1200px) {
  .branding-footer__row {
    flex-wrap: wrap;
    row-gap: 18px;
  }
  .divider {
    display: none;
  }
  .brand-group {
    flex-basis: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .brand {
    height: 80px;
  }
  .brand-group {
    gap: 12px;
  }
}

@media (max-width: 1250px) {
  .impact-container {
    padding: 20px 80px 20px 80px;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .impact__icon {
    max-width: 259px;
  }

  .impact-container {
    padding: 40px 100px 40px 100px;
  }

  .impact__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .impact__icon {
    max-width: 100px;
  }

  .impact-container {
    padding: 40px 60px 40px 60px;
  }

  .impact__grid {
    gap: 15px 20px;
  }
}

@media (max-width: 640px) {
  .impact__icon {
    max-width: 100px;
  }

  .impact-container {
    padding: 40px 20px 40px 20px;
  }

  .impact__grid {
    gap: 0px 20px;
  }
}

@media (max-width: 640px) {
  .card-with-tabs {
    width: unset;
  }

  .number-card {
    gap: 24px;
    padding: 24px 0;
    background-size: cover;
    background-position: left top;
  }

  .number-card-content {
    font-size: 14px;
  }

  .event-list {
    font-size: 14px;
  }

  .tab-spacer {
    flex: 0 0 0px;
  }

  .tab-btn {
    grid-template-columns: 1fr;
    place-items: center;
  }

  .tab-label {
    display: none;
  }

  /* Optional: shrink the big left offset title you had */
  .number-card-title {
    margin-top: 0px;
    margin-left: 200px;
    font-size: 18px;
  }

  #event-panel-1 {
    --card-bg-img: url("../image/mobile/number-card.png");
    --card-min-h: 780px;
    --card-body-pad: 55px 16px 28px;
    --cta-offset: -65px;
    --event-list-margin: 0px;
  }

  #event-panel-2 {
    --card-bg-img: url("../image/mobile/number-card-2.png");
    --card-min-h: 1050px;
    --card-body-pad: 55px 16px 28px;
    --cta-offset: -110px;
  }

  #event-panel-3 {
    --card-bg-img: url("../image/mobile/number-card-3.png");
    --card-min-h: 492px;
    --card-body-pad: 55px 16px 28px;
    --cta-offset: -24px;
  }

  #event-panel-4 {
    --card-bg-img: url("../image/mobile/number-card-4.png");
    --card-min-h: 800px;
    --card-body-pad: 55px 16px 28px;
    --cta-offset: -24px;
  }

  #event-panel-5 {
    --card-bg-img: url("../image/mobile/number-card-5.png");
    --card-min-h: 700px;
    --card-body-pad: 55px 16px 28px;
    --cta-offset: -24px;
  }
}

@media (max-width: 640px) {
  .number-card-title {
    margin-left: 130px;
    margin-top: 2px;
    margin-right: 20px;
  }
}

@media (max-width: 480px) {
  .number-card-title {
    margin-left: 130px;
  }
}

/* gallery */
.gallery-section {
  margin: 70px 0px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 20px;
  max-width: 1400px;
  margin: auto;
}

.photo-grid img {
  border-radius: 5px;
  display: block;
  transition: transform 0.3s ease;
}

.photo-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 5px;
}

.photo-item.hidden {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.photo-item.revealed {
  display: block;
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-grid img:hover {
  transform: scale(1.02);
}

.photo-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../image/gallery/overlay.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3;
  mix-blend-mode: hard-light;
  opacity: 0;
}

.photo-item:hover::after {
  opacity: 1;
}

@media (max-width: 1024px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-grid {
    gap: 5px;
  }
}

/* gallery */

/* carousel */
.carousel-wrapper .heading {
  margin: 70px 0px;
}

.carousel {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 100px;
}

.carousel .carousel-track {
  display: inline-flex;
  gap: 50px;
  will-change: transform;
  transform: translateX(0);
}

.carousel .card {
  cursor: pointer;
  position: relative;
  flex: 0 0 clamp(220px, 70vw, 450px);
  height: 240px;
  background: #f7f7f7;
  border-radius: 20px;
  padding: clamp(20px, 4vw, 40px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
}

.carousel .carousel-track:hover {
  animation-play-state: paused;
}

.carousel .card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #333;
  font-weight: bold;
}

.carousel .card h3 .spark {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 6px;
  background: url(../image/mobile/small_dandelion.png) no-repeat center /
    contain;
}

.carousel .card p {
  position: relative;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 5; /* show only 4 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel .card .see-more {
  margin-top: auto;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.8;
  color: #0077cc;
  text-align: right;
  cursor: pointer;
  text-decoration: underline;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.see-more {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px 0px 0px;
}

@media (max-width: 1024px) {
  .see-more {
    margin: 10px 0px 0px;
  }
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f05164; /* pink-red */
  color: #ffe210; /* yellow */
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-prev,
.carousel-next {
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
}

.carousel-prev i,
.carousel-next i {
  pointer-events: none;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #d93f52;
  transform: translateY(-50%) scale(1.2);
}

.carousel-prev {
  left: 30px;
}
.carousel-next {
  right: 30px;
}

@media (max-width: 768px) {
  .carousel-prev {
    left: 16px;
  }
  .carousel-next {
    right: 16px;
  }
}

.carousel-prev .chev,
.carousel-next .chev {
  --size: 14px;
  --thick: 2px;
  width: var(--size);
  height: var(--size);
  border-right: var(--thick) solid currentColor;
  border-top: var(--thick) solid currentColor;

  margin: 0;
  transform-origin: center;
}

.carousel-prev .chev {
  transform: rotate(-135deg) translate(-2px, 2px);
}

.carousel-next .chev {
  transform: rotate(45deg) translate(-1px, 1px);
}

/* carousel */

/* download */
.download-background {
  display: flex;
  flex-direction: column;
}

.download-background .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: 50% 50%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fefefe;
  z-index: 1;
  pointer-events: none;
  transition: none;
}

.download-top {
  background: url("../image/profile_background_top.png") no-repeat center top;
  background-size: cover;
  height: 98px;
  flex-shrink: 0;
}

.download-top-bottom {
  margin-top: 40px;
}

.download-middle {
  flex: 1;
  background: url("../image/profile_background.png") repeat center top;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.download-bottom {
  background: url("../image/profile_background_bottom.png") no-repeat center
    bottom;
  background-size: cover;
  height: 98px;
  flex-shrink: 0;
}

.download-background .heading {
  margin: 70px 0;
}

.download-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 80px 0px;
}

.download-section .btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;

  margin-top: 8px;
  padding: 12px 60px;
  border: 3px solid #545454;
  border-radius: 9999px; /* pill shape */
  background: #fff;
  font-weight: bold;
  font-size: 18px;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .download-section .btn {
    padding: 10px 25px;
    font-size: 15px;
  }
}

.download-icon {
  position: relative;
  width: 22px;
  height: 22px;
}

/* default state */
.download-icon::before,
.download-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 0.3s ease;
}

.download-icon::before {
  background-image: url("../image/download_icon.png");
  opacity: 1;
}

.download-icon::after {
  background-image: url("../image/download_icon_press.png");
  opacity: 0;
}

/* on hover, swap opacity */
.download-section .btn:hover .download-icon::before {
  opacity: 0;
}
.download-section .btn:hover .download-icon::after {
  opacity: 1;
}

/* download */

/* carousel modal */

.carousel.paused .carousel-track {
  animation-play-state: paused;
}

#carousel-modal .role {
  font-size: 24px;
  color: #f05164;
  margin: 0;
}

#carousel-modal .h3 {
  margin: 0;
}

#carousel-modal .name-with-spark {
  margin: 4px 0px 16px;
}

#carousel-modal .spark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1em;
  height: 1em;
  background: url("../image/mobile/small_dandelion.png") no-repeat center /
    contain;
  margin-left: 6px;
}

#carousel-modal .modal-item-content {
  max-width: 700px;
}

@media (max-width: 768px) {
  #carousel-modal .modal-inner {
    justify-content: flex-start;
  }

  #carousel-modal .modal-item-content h3 {
    font-size: 18px;
  }

  #carousel-modal p {
    line-height: 1.6;
  }
}

/* carousel modal */

/* color-block */

.color-block {
  position: absolute;
  width: 100;
  height: auto;
}

.color-block-left-01 {
  left: 0px;
  top: 680px;
}

.color-block-right-01 {
  right: 0px;
  top: 380px;
}

.color-block-left-02 {
  left: 0px;
  top: 800px;
}

.color-block-right-02 {
  right: 0px;
  top: 0px;
}

.color-block-left-03 {
  left: 0px;
  top: 550px;
  z-index: -1;
}

.color-block-right-03 {
  right: 0px;
  top: 160px;
  z-index: -1;
}

@media (max-width: 1024px) {
  .color-block {
    display: none;
  }
}

.vbox-tooltip {
  display: none !important;
}

/* color-block */
