:root {
  --magenta: #e6007e;
  --dark-blue: #003a76;
  --bg-white: #ffffff;
  --text-black: #333333;
  --light-gray: #f2f2f2;
}

* {
  box-sizing: border-box;
}

#anniversary-wrap {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans JP', sans-serif !important;
  color: var(--text-black);
  line-height: 1.8 !important;
  font-size: 16px !important;
  position: relative;
}

/* Background layer behind fireworks */
#anniversary-wrap::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-white);
  z-index: -2;
  pointer-events: none;
}

#anniversary-wrap p {
  font-size: 1.6rem !important;
  line-height: 1.8 !important;
  margin-bottom: 1.5em;
}

/* App Container */
#app {
  padding-top: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}



#anniversary-wrap .subtitle {
  color: var(--magenta) !important;
  font-weight: 700 !important;
  font-size: 1.8rem !important;
  margin-top: 10px !important;
  letter-spacing: 0.1em !important;
}

#anniversary-wrap .section-title img,
#anniversary-wrap .title-message img {
  height: 54px !important;
  width: auto !important;
  max-width: none !important;
}

/* Animations */
.observe {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  width: auto;
}

.observe.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fireworks Background (Subtle) */
.fireworks-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.firework {
  position: absolute;
  opacity: 0;
  animation: firework-subtle 3s infinite;
}

.firework.fw-01 {
  width: 277px;
}

.firework.fw-02 {
  width: 490px;
}

.firework.fw-03 {
  width: 242px;
}

.firework.fw-04 {
  width: 165px;
}

.firework.fw-05 {
  width: 320px;
}

.firework.fw-06 {
  width: 112px;
}

#anniversary-wrap .firework img {
  width: 100% !important;
  height: auto !important;
  display: block;
}

@keyframes firework-subtle {
  0% {
    transform: scale(0.05);
    opacity: 0;
  }

  100% {
    transform: scale(0.5);
    opacity: 1;
  }
}

/* Anniversary Video */
.anniversary-video {
  width: 100%;
  margin: 0;
  margin-bottom: 20px;
  line-height: 0;
}

.anniversary-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}


/* KV Section */
.kv-section {
  padding: 80px 0;
}

.logo-25th img {
  max-width: 320px;
  width: 100%;
  margin-bottom: 60px;
}



.message-content {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  text-align: left;
}

#anniversary-wrap .text-body {
  flex: 1;
  font-size: 1.0rem !important;
  line-height: 2.2 !important;
}

.message-illust {
  flex: 1;
  max-width: 500px;
  width: 100%;
}

/* History Section */
.history-section .section-title {
  margin-bottom: 0px;
}

.history-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 50px 0;
}

.history-timeline-wrapper {
  display: inline-block;
  padding-left: 5vw;
  padding-right: 5vw;
  position: relative;
}

#anniversary-wrap .timeline-strip {
  height: 600px !important;
  width: auto !important;
  max-width: none !important;
  display: block;
}

#anniversary-wrap .timeline-asset {
  position: absolute !important;
  z-index: 5 !important;
  pointer-events: none;
  transform-origin: top left;
  margin: 0 !important;
}

#anniversary-wrap .timeline-asset img {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  display: block;
}

/* Specific Positions (Recalculated Factor: 0.72376, Offset: 5vw) */
#asset-fukidashi01 {
  left: calc(138px + 5vw);
  top: 229px;
}

#asset-fukidashi02 {
  left: calc(1236px + 5vw);
  top: 229px;
}

#asset-fukidashi03 {
  left: calc(1439px + 5vw);
  top: 229px;
}

#asset-fukidashi04 {
  left: calc(1737px + 5vw);
  top: 229px;
}

#asset-img01 {
  left: calc(194px + 5vw);
  top: 146px;
}

#asset-img02 {
  left: calc(332px + 5vw);
  top: 166px;
}

#asset-img03 {
  left: calc(518px + 5vw);
  top: 127px;
}

#asset-img04 {
  left: calc(586px + 5vw);
  top: 72px;
}

#asset-img05 {
  left: calc(694px + 5vw);
  top: 226px;
  z-index: 10 !important;
}

#asset-img06 {
  left: calc(736px + 5vw);
  top: 139px;
}

#asset-img07 {
  left: calc(895px + 5vw);
  top: 386px;
}

#asset-img08 {
  left: calc(1144px + 5vw);
  top: -38px;
}

#asset-img09 {
  left: calc(1282px + 5vw);
  top: 15px;
}

#asset-img10 {
  left: calc(1171px + 5vw);
  top: 410px;
}

#asset-img11 {
  left: calc(1331px + 5vw);
  top: 426px;
}

#asset-img12 {
  left: calc(1558px + 5vw);
  top: 170px;
}

#asset-img13 {
  left: calc(1980px + 5vw);
  top: 491px;
}

#asset-img14 {
  left: calc(2003px + 5vw);
  top: 224px;
}

#asset-img15 {
  left: calc(2083px + 5vw);
  top: 159px;
}

#asset-img16 {
  left: calc(2299px + 5vw);
  top: 443px;
}

#asset-img17 {
  left: calc(2358px + 5vw);
  top: 61px;
}

#asset-img18 {
  left: calc(2527px + 5vw);
  top: 109px;
}

/* Scale Up Animation (Final size: 36%) */
.scale-up {
  opacity: 0;
  transform: scale(0.14);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scale-up.is-visible {
  opacity: 1;
  transform: scale(0.36);
  animation: asset-bounce 4s infinite ease-in-out;
}

/* Staggered delays for a more "lively" look */
.timeline-asset:nth-of-type(2n) {
  animation-delay: 0.5s;
}

.timeline-asset:nth-of-type(3n) {
  animation-delay: 1.2s;
}

.timeline-asset:nth-of-type(4n) {
  animation-delay: 0.8s;
}

.timeline-asset:nth-of-type(5n) {
  animation-delay: 2.1s;
}

@keyframes asset-bounce {

  0%,
  100% {
    transform: scale(0.36);
  }

  50% {
    transform: scale(0.39);
  }
}

/* Works Section */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.works-container {
  margin-top: 60px;
  width: 100%;
}

.work-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.work-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.work-item:hover img {
  transform: scale(1.1);
}

.work-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  text-align: center;
}

.work-item:hover .work-info {
  opacity: 1;
}

.work-date {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 5px;
}

.work-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
}

/* Links Section */
.links-section {
  padding: 40px 0 80px;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.btn-magenta {
  display: inline-block;
  padding: 20px 60px;
  background-color: var(--magenta);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: all 0.3s;
}

.btn-magenta:hover {
  transform: translateY(-5px);
}

.copyright {
  border-top: 1px solid #ddd;
  padding-top: 30px;
  color: #999;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .message-content {
    flex-direction: column;
    text-align: center;
  }

  #anniversary-wrap .timeline-strip {
    height: 450px !important;
  }

  .firework.fw-01 {
    width: 208px;
  }

  .firework.fw-02 {
    width: 368px;
  }

  .firework.fw-03 {
    width: 181px;
  }

  .firework.fw-04 {
    width: 125px;
  }

  .firework.fw-05 {
    width: 241px;
  }

  .firework.fw-06 {
    width: 85px;
  }


  /* Responsive Scaling for History Assets (Height: 450px, Scale: 27%) */
  #anniversary-wrap .scale-up.is-visible {
    transform: scale(0.27) !important;
    animation: asset-bounce-sp 4s infinite ease-in-out;
  }

  @keyframes asset-bounce-sp {

    0%,
    100% {
      transform: scale(0.27);
    }

    50% {
      transform: scale(0.30);
    }
  }

  #anniversary-wrap .scale-up {
    transform: scale(0.1) !important;
  }

  #asset-fukidashi01 {
    left: calc(104px + 5vw);
    top: 172px;
  }

  #asset-fukidashi02 {
    left: calc(927px + 5vw);
    top: 172px;
  }

  #asset-fukidashi03 {
    left: calc(1079px + 5vw);
    top: 172px;
  }

  #asset-fukidashi04 {
    left: calc(1303px + 5vw);
    top: 172px;
  }

  #asset-img01 {
    left: calc(146px + 5vw);
    top: 110px;
  }

  #asset-img02 {
    left: calc(249px + 5vw);
    top: 125px;
  }

  #asset-img03 {
    left: calc(389px + 5vw);
    top: 95px;
  }

  #asset-img04 {
    left: calc(440px + 5vw);
    top: 54px;
  }

  #asset-img05 {
    left: calc(521px + 5vw);
    top: 170px;
  }

  #asset-img06 {
    left: calc(552px + 5vw);
    top: 104px;
  }

  #asset-img07 {
    left: calc(671px + 5vw);
    top: 290px;
  }

  #asset-img08 {
    left: calc(858px + 5vw);
    top: -29px;
  }

  #asset-img09 {
    left: calc(962px + 5vw);
    top: 11px;
  }

  #asset-img10 {
    left: calc(878px + 5vw);
    top: 308px;
  }

  #asset-img11 {
    left: calc(998px + 5vw);
    top: 320px;
  }

  #asset-img12 {
    left: calc(1169px + 5vw);
    top: 128px;
  }

  #asset-img13 {
    left: calc(1485px + 5vw);
    top: 368px;
  }

  #asset-img14 {
    left: calc(1502px + 5vw);
    top: 168px;
  }

  #asset-img15 {
    left: calc(1562px + 5vw);
    top: 119px;
  }

  #asset-img16 {
    left: calc(1724px + 5vw);
    top: 332px;
  }

  #asset-img17 {
    left: calc(1769px + 5vw);
    top: 46px;
  }

  #asset-img18 {
    left: calc(1895px + 5vw);
    top: 82px;
  }
}

@media (max-width: 768px) {
  .logo-25th img {
    max-width: 200px !important;
  }

  #anniversary-wrap .section-title img,
  #anniversary-wrap .title-message img {
    height: 32px !important;
  }

  #anniversary-wrap .history-section .section-title img {
    height: 75px !important;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .message-content {
    gap: 20px;
  }

  #anniversary-wrap .works-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  #anniversary-wrap .work-date {
    margin-bottom: 2px !important;
  }

  .firework.fw-01 {
    width: 209px;
    top: 2% !important;
    left: -10% !important;
  }

  .firework.fw-02 {
    width: 369px;
    top: 8% !important;
    right: -20% !important;
  }

  .firework.fw-03 {
    width: 183px;
    top: 25% !important;
    left: 70% !important;
  }

  .firework.fw-04 {
    width: 125px;
    top: 15% !important;
    left: -15% !important;
  }

  .firework.fw-05 {
    width: 242px;
    top: 40% !important;
    right: -15% !important;
  }

  .firework.fw-06 {
    width: 84px;
    top: 30% !important;
    left: 5% !important;
  }
}