* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
body {
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.6;
}
a,
button,
input,
select,
textarea {
  outline: none;
}
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f5caca 0%, #9ecad8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav {
  display: flex;
  gap: 35px;
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.3s;
  letter-spacing: 0.5px;
}
.nav a:hover {
  color: #f5caca;
}
.header-trailing {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.5vw, 28px);
  margin-left: auto;
  flex-shrink: 0;
}
.header-social {
  display: flex;
  align-items: center;
  gap: 2px;
}
.header-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 10px;
  color: #444;
  text-decoration: none;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease;
}
.header-social__link:hover {
  color: #9f91ca;
  background: rgba(159, 145, 202, 0.12);
}
.header-social__link:focus-visible {
  outline: 2px solid rgba(159, 145, 202, 0.55);
  outline-offset: 2px;
}
.header-social__link svg {
  display: block;
}
.mobile-menu-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  padding-top: 24px;
  margin-top: 16px;
  border-top: 1px solid #eee;
}
.mobile-menu-social__link {
  display: flex;
  color: #333;
  padding: 8px;
  border-radius: 10px;
  text-decoration: none;
  transition:
    color 0.25s ease,
    background 0.25s ease;
}
.mobile-menu-social__link:hover {
  color: #9f91ca;
  background: rgba(159, 145, 202, 0.1);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: 0.3s;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s;
  z-index: 2001;
  padding: 80px 30px;
}
.mobile-menu.active {
  right: 0;
}
.mobile-menu a {
  display: block;
  padding: 15px 0;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.carousel {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 70px 40px 40px;
  margin-top: 0;
  overflow: hidden;
}
.carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  gap: 0;
  padding: 0;
}
.carousel-item {
  min-width: 100%;
  flex-shrink: 0;
  padding: 0 30px;
  box-sizing: border-box;
}
.carousel-content {
  width: 100%;
  aspect-ratio: 300 / 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.carousel-content h2,
.carousel-content p {
  position: relative;
  z-index: 1;
}
.slide-1 {
  background: linear-gradient(
    135deg,
    #fffbe8 0%,
    #fff5f5 30%,
    #f0f8fa 70%,
    #e8f4f8 100%
  );
}
.slide-2 {
  background: linear-gradient(135deg, #f5caca 0%, #ffd4d4 50%, #e8b3b3 100%);
}
.slide-3 {
  background: linear-gradient(135deg, #9ecad8 0%, #b8dce5 50%, #7ab8cc 100%);
}
.carousel-content h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.3;
}
.slide-1 h2 {
  background: linear-gradient(135deg, #f5caca 0%, #ff9999 50%, #f5caca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.slide-2 h2,
.slide-3 h2 {
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.carousel-content p {
  font-size: 1.1rem;
  font-weight: 500;
}
.slide-1 p {
  color: #666;
}
.slide-2 p,
.slide-3 p {
  color: rgba(255, 255, 255, 0.95);
}
.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #f5caca 0%, #e8b3b3 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(245, 202, 202, 0.4);
  transition: all 0.3s;
}
.carousel-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.carousel-dot.active {
  background: #9ecad8;
  transform: scale(1.3);
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  color: #9ecad8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.carousel-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}
.carousel-arrow.prev {
  left: 0;
}
.carousel-arrow.next {
  right: 0;
}

.news-section {
  max-width: 1200px;
  margin: 0px auto 40px;
  padding: 0 40px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #9ecad8;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #333;
  letter-spacing: 2px;
}
.view-all {
  text-decoration: none;
  color: #9ecad8;
  font-weight: 700;
  font-size: 1rem;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.view-all:hover {
  opacity: 0.7;
}
.news-carousel {
  position: relative;
  overflow: visible;
  padding: 0 60px;
}
.news-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  gap: 20px;
}
.news-card {
  min-width: 350px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.news-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f5caca 0%, #9ecad8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  object-fit: cover;
}
.news-content {
  padding: 25px;
}
.news-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 10px;
  font-weight: 600;
}
.news-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.5;
  color: #333;
}
.news-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
}

.about-section {
  max-width: 1200px;
  margin: 40px auto 20px;
  padding: 0 40px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  width: 100%;
  height: 400px;
  background: url("image.png") center/contain no-repeat;
  border-radius: 20px;
}
.about-content h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 25px;
  color: #333;
}
.about-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #666;
  margin-bottom: 15px;
}

.footer {
  background: #2c2c2c;
  color: white;
  padding: 40px 40px 20px;
  width: 100%;
  box-sizing: border-box;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}
.footer-section ul {
  list-style: none;
}
.footer-section li {
  margin-bottom: 12px;
}
.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}
.footer-section a:hover {
  color: white;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}
.footer-menu li {
  margin-bottom: 0;
}
.footer-section.social {
  display: flex;
  align-items: center;
}
.social-icon {
  color: #ccc;
  transition: color 0.3s;
}
.social-icon:hover {
  color: #1da1f2;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #999;
  font-size: 0.9rem;
}

.video-section {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 40px;
}
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.video-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}
.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}
.video-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f5caca 0%, #9ecad8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  object-fit: cover;
}
.video-title {
  padding: 15px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

.fanart-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 40px;
}
.fanart-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.fanart-card {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f5caca 0%, #9ecad8 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  transition: all 0.3s;
  cursor: pointer;
}
.fanart-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.fanart-note {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  margin-top: 15px;
}

.links-section.links-section--hidden,
.links-section[hidden] {
  display: none !important;
}
.links-section {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 40px;
  background: linear-gradient(135deg, #fffbe8 0%, #fff5f5 50%, #f0f8fa 100%);
  border-radius: 24px;
}
.links-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 30px;
  color: #333;
  letter-spacing: 2px;
}
.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px 20px;
  background: white;
  border-radius: 16px;
  text-decoration: none;
  color: #333;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.link-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.link-card.youtube:hover {
  color: #ff0000;
}
.link-card.twitter:hover {
  color: #1da1f2;
}
.link-card.tiktok:hover {
  background: linear-gradient(135deg, #6cf1ee 0%, #f3034e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.link-card.tiktok:hover svg path {
  fill: url(#tiktok-gradient);
}
.link-card.instagram:hover {
  color: #e4405f;
}
.link-card.marshmallow:hover {
  color: #f5caca;
}
.link-card svg {
  transition: transform 0.3s;
}
.link-card:hover svg {
  transform: scale(1.1);
}
.link-card span {
  font-size: 0.9rem;
}

.calendar-section {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 40px;
}
.calendar-container {
  width: 100%;
  height: 600px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.calendar-container iframe {
  width: 100%;
  height: 100%;
}

.footer-section.social {
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-hero {
  background: linear-gradient(
    135deg,
    #fffbe8 0%,
    #fff5f5 30%,
    #f0f8fa 70%,
    #e8f4f8 100%
  );
  padding: 72px 20px 28px;
  text-align: center;
}
.page-hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f5caca 0%, #ff9999 50%, #f5caca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.content-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 40px;
}
.content-section h2 {
  font-size: 2rem;
  font-weight: 900;
  color: #333;
  margin-bottom: 30px;
}
.content-section p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #666;
  margin-bottom: 15px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}
.profile-image {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f5caca 0%, #9ecad8 100%);
  border-radius: 20px;
}
.profile-info p {
  font-size: 1.1rem;
  line-height: 2;
  color: #666;
  margin-bottom: 10px;
}

.thanks-list,
.achievement-list {
  list-style: none;
  padding-left: 0;
}
.thanks-list li,
.achievement-list li {
  padding: 15px 20px;
  background: white;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.fanart-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 20px;
    max-width: 100%;
  }
  .logo {
    font-size: 1.2rem;
  }
  .header-trailing {
    gap: 8px;
  }
  .header-social__link {
    padding: 4px;
  }
  .header-social__link svg {
    width: 20px;
    height: 20px;
  }
  .nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .carousel {
    padding: 85px 10px 40px;
  }
  .carousel-item {
    padding: 0 5px;
  }
  .carousel-content {
    padding: 15px 10px;
  }
  .carousel-content h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .carousel-content p {
    font-size: 0.85rem;
  }
  .carousel-arrow {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
  .links-section {
    margin: 0 20px 40px;
    padding: 30px 20px;
  }
  .links-section h2 {
    font-size: 2rem;
  }
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .link-card {
    padding: 20px 15px;
  }
  .calendar-section {
    padding: 0 20px;
  }
  .calendar-container {
    height: 400px;
  }
  .news-section {
    margin: 40px auto 30px;
    padding: 0 20px;
  }
  .news-carousel {
    padding: 0 40px;
  }
  .news-card {
    min-width: 200px;
  }
  .news-content {
    padding: 12px;
  }
  .news-date {
    font-size: 0.7rem;
  }
  .news-title {
    font-size: 0.85rem;
  }
  .news-excerpt {
    font-size: 0.75rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-image {
    height: 250px;
  }
  .section-title {
    font-size: 2rem;
  }
  .video-section {
    padding: 0 20px;
  }
  .video-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .fanart-section {
    padding: 0 20px;
  }
  .fanart-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .footer {
    padding: 40px 20px 20px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 30px;
  }
}

/* ========== 案A Virtual Idol オーバーレイ ========== */
html.splash-a-lock,
body.splash-a-lock {
  overflow: hidden;
}

#stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

body.theme-idol-a {
  background: linear-gradient(165deg, #fff5fb 0%, #f0f7ff 45%, #fff8fc 100%);
}

.splash-a {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #050008;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.85s ease,
    visibility 0.85s;
}
.splash-a.splash-a--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-a__spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 30% at 50% 45%,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 230, 250, 0.35) 38%,
    transparent 72%
  );
  animation: idolSpot 2s ease-in-out infinite;
}
@keyframes idolSpot {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}
.splash-a__logo {
  position: relative;
  z-index: 2;
  max-width: min(72vw, 320px);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(255, 182, 213, 0.85));
  opacity: 0;
  transform: scale(0.88);
  animation: idolLogoIn 1s ease 0.35s forwards;
}
@keyframes idolLogoIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.carousel-content {
  position: relative;
}
.carousel-content .carousel-char {
  position: absolute;
  bottom: 0;
  right: 4%;
  height: min(78%, 220px);
  width: auto;
  max-width: 42%;
  object-fit: contain;
  object-position: bottom right;
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 8px 24px rgba(255, 182, 213, 0.35));
}
.slide-2 .carousel-char {
  opacity: 0.38;
  right: 2%;
}
.slide-3 .carousel-char {
  opacity: 0.4;
}

/* 遍歴 */
.history-section {
  --history-line: 0%;
  max-width: 800px;
  margin: 48px auto 72px;
  padding: 0 24px 56px;
  position: relative;
  z-index: 2;
}
.history-section__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #333;
  margin-bottom: 8px;
}
.history-section__lead {
  text-align: center;
  font-size: 0.92rem;
  color: #777;
  margin-bottom: 40px;
}
.history-track {
  position: relative;
  padding-bottom: 24px;
}
.history-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: var(--history-line);
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ffb7d5, #9fd4ff);
  border-radius: 4px;
  transition: height 0.12s linear;
  z-index: 0;
}
.history-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 26px);
  position: relative;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateX(-16px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.history-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 26px);
  transform: translateX(16px);
}
.history-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.history-dot {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #ffb7d5;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.history-item:nth-child(even) .history-dot {
  border-color: #9fd4ff;
}
.history-card {
  max-width: 320px;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 10px 36px rgba(180, 140, 200, 0.12);
  border: 1px solid rgba(255, 183, 213, 0.45);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.history-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(255, 182, 213, 0.22);
}
.history-card--award {
  border-color: #ffd36a;
  box-shadow:
    0 0 0 3px rgba(255, 215, 106, 0.4),
    0 14px 40px rgba(255, 200, 80, 0.25);
  background: linear-gradient(145deg, #fffef8, #fff8ff);
}
.history-ribbon {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #c9a227;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.history-date {
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 6px;
}
.history-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #333;
}
.history-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #666;
}

.history-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(25, 15, 35, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.28s,
    visibility 0.28s;
}
.history-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.history-modal-inner {
  background: #fff;
  border-radius: 18px;
  max-width: 420px;
  width: 100%;
  padding: 22px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}
.history-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
}
.history-modal-body video,
.history-modal-body audio {
  width: 100%;
  margin-top: 8px;
  border-radius: 12px;
}
.history-modal-placeholder {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.6;
}

.about-section {
  position: relative;
  z-index: 2;
}
.about-image--photo {
  background-color: #fff5fc;
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
  min-height: 400px;
}

@media (max-width: 768px) {
  .history-track::before {
    left: 14px;
    transform: none;
  }
  .history-item,
  .history-item:nth-child(even) {
    padding-left: 42px;
    padding-right: 0;
    justify-content: flex-start;
  }
  .history-dot {
    left: 14px !important;
  }
  .history-card {
    max-width: none;
  }
  .carousel-content .carousel-char {
    height: min(50%, 140px);
    opacity: 0.32;
  }
}
