:root {
  --theme: darkolivegreen;
  --theme-deep: #2f3f20;
  --theme-soft: #687c52;
  --paper: #f4f6ef;
  --ink: #1a1f16;
  --card: #ffffff;
  --line: #d7dbc9;
  --accent: #b7d49a;
  --surface-glass: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(85, 107, 47, 0.22), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(168, 190, 134, 0.2), transparent 35%),
    linear-gradient(135deg, #f2f4ea 0%, #fbfbf8 55%, #edf0e0 100%);
  font-family: "Segoe UI", "Yu Gothic UI", "Meiryo", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

#root {
  min-height: 100vh;
  position: relative;
}

.last-updated {
  position: relative;
  z-index: 3;
  width: min(980px, 92vw);
  margin: 12px auto 0;
  color: #3f5030;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  animation: drift 14s ease-in-out infinite alternate;
}

body::before {
  top: -80px;
  left: -60px;
  background: radial-gradient(circle at 40% 30%, rgba(183, 212, 154, 0.5), rgba(85, 107, 47, 0.14));
}

body::after {
  right: -100px;
  bottom: -100px;
  background: radial-gradient(circle at 60% 50%, rgba(104, 124, 82, 0.4), rgba(183, 212, 154, 0.16));
  animation-delay: 1.2s;
}

.app-shell {
  width: min(980px, 92vw);
  margin: 40px auto 56px;
  border: 1px solid var(--line);
  background: var(--surface-glass);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 24px 60px rgba(34, 47, 22, 0.16);
  border-radius: 22px;
  overflow: hidden;
  animation: rise 0.7s ease-out;
  position: relative;
  z-index: 2;
}

.particle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}

.particle-layer canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero {
  padding: 42px 30px 30px;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 12px,
      rgba(255, 255, 255, 0.12) 12px,
      rgba(255, 255, 255, 0.12) 24px
    ),
    linear-gradient(120deg, var(--theme) 0%, var(--theme-deep) 100%);
  color: #f7f9f2;
  position: relative;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 65%);
  z-index: -1;
}

h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.3vw, 2.45rem);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.subtitle {
  margin-top: 10px;
  opacity: 0.94;
  font-size: clamp(0.96rem, 2vw, 1.08rem);
  letter-spacing: 0.02em;
}

.intro {
  margin-top: 10px;
  color: rgba(247, 249, 242, 0.9);
  font-size: 0.95rem;
  max-width: 720px;
}

main {
  padding: 26px 24px 34px;
  position: relative;
}

.timeline {
  display: grid;
  gap: 18px;
  perspective: 1000px;
}

.year-card {
  position: relative;
  border: 1px solid var(--line);
  border-left: 8px solid var(--theme);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 236, 0.84));
  padding: 14px 16px 14px 18px;
  transform: translateY(18px) scale(0.985) perspective(800px) rotateX(0deg) rotateY(0deg);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 12px 28px rgba(47, 63, 32, 0.12);
  will-change: transform;
  overflow: hidden;
  cursor: default;
}

.year-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.46) 45%, transparent 70%);
  transform: translateX(-70%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.year-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1) perspective(800px) rotateX(0deg) rotateY(0deg);
  transition-delay: var(--delay, 0s);
}

.year-card:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 20px 40px rgba(47, 63, 32, 0.2);
  border-color: #b7c49e;
}

.year-card:hover::before {
  transform: translateX(120%);
}

.year {
  margin: 0 0 8px;
  color: var(--theme-deep);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  border-bottom: 1px dashed #c5ccb4;
  padding-bottom: 6px;
}

ul {
  margin: 0;
  padding-left: 1.25rem;
}

li {
  margin: 0.45rem 0;
  font-size: 0.97rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.year-card:hover li {
  color: #2d4920;
}

.inline-link {
  color: var(--theme-deep);
  text-decoration-color: rgba(47, 63, 32, 0.45);
  text-underline-offset: 2px;
  font-weight: 600;
}

.inline-link:hover {
  color: var(--theme);
  text-decoration-color: rgba(85, 107, 47, 0.72);
}

.ripple {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(183, 212, 154, 0.5) 0%, rgba(183, 212, 154, 0.18) 45%, transparent 75%);
  transform: scale(0);
  animation: ripple 650ms ease-out forwards;
}

footer {
  padding: 16px 24px 22px;
  color: #3f5030;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcf8 0%, #f3f5ea 100%);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(28px, -22px, 0) scale(1.08);
  }
}

@keyframes ripple {
  from {
    transform: scale(0);
    opacity: 0.7;
  }
  to {
    transform: scale(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .year-card {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .app-shell {
    margin: 20px auto 30px;
    border-radius: 12px;
  }

  .hero {
    padding: 30px 18px 22px;
  }

  main {
    padding: 18px 14px 22px;
  }

  .year-card {
    padding: 12px 12px 12px 14px;
  }

  li {
    font-size: 0.92rem;
  }

  body::before,
  body::after {
    width: 240px;
    height: 240px;
    filter: blur(14px);
  }

  .intro {
    font-size: 0.88rem;
  }
}
