/* 星空 (Hoshizora) */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  background: linear-gradient(135deg, #000814 0%, #001d3d  50%, #003566 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;

  /* Hide scrollbars */
  -ms-overflow-style: none; 
  scrollbar-width: none; 
  padding-bottom: 4rem;
}

body::-webkit-scrollbar {
  display: none;
}

a {
    color: #60a5fa !important;
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: 1px solid transparent;
}

a em {
    color: #60a5fa !important;
}
a:hover em {
    color: #d8b4fe !important;
}

a:hover {
    color: #d8b4fe !important;
    border-bottom-color: rgba(167, 139, 250, 0.5);
}

a:active {
    color: #f1f5f9;
}

/* Underline animation effect */
a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #60a5fa, #c084fc);
    transition: width 0.2s ease-out;
}

a:hover::after {
    width: 100%;
}

.hoshizora-container {
  width: 90vw;
  max-width: 800px;
  aspect-ratio: 16/9;
  background: #001428;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 20, 40, 0.8), 
              0 0 40px rgba(135, 206, 235, 0.2);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  margin: 2rem auto;
  flex-shrink: 0;
}

.star-field {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0;
  transform-origin: center;
  animation: twinkle var(--duration, 4s) ease-in-out infinite;
}

.star-warm { background: #ffd700; }
.star-cool { background: #87ceeb; }
.star-white { background: #ffffff; }
.star-amber { background: #ffb347; }
.star-ice { background: #b6e5ff; }

@keyframes twinkle {
  0% {
    opacity: 0.08;
    transform: scale(1);
  }
  45% {
    opacity: 1;
    transform: scale(1.35);
  }
  55% {
    opacity: 0.9;
    transform: scale(1.15);
  }
  100% {
    opacity: 0.06;
    transform: scale(1);
  }
}

.content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.title {
  color: #ffffff;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

.subtitle {
  color: #87ceeb;
  font-size: clamp(0.875rem, 2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.status {
  color: #ffb347;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: lighter;
  letter-spacing: 0.1em;
  opacity: 0.6;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 179, 71, 0.3);
  border-radius: 20px;
  background: rgba(255, 179, 71, 0.1);
  backdrop-filter: blur(10px);
}

.story-section {
 
    /* transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); */
    margin-top: 4rem;
    padding: 0 2rem;
}

.story-container {
    max-width: 800px;
    margin: 0 auto;
}

.story-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.story-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    color: #f8f9fa;
    letter-spacing: 0.1em;
    font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

.story-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 0.5rem;
    letter-spacing: 0.2em;
    text-transform: lowercase;
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.story-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-left: 1px solid rgba(148, 163, 184, 0.2);
    padding-left: 2rem;
    position: relative;
}

.story-card::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 2rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #60a5fa, #a78bfa);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.story-marker {
    font-size: 0.75rem;
    color: #60a5fa;
    font-weight: 500;
    min-width: 2rem;
    text-align: center;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin-top: 0.25rem;
}

.story {
    margin: 0;
    line-height: 1.8;
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 300;
}

.story strong {
    color: #f1f5f9;
    font-weight: 500;
}

.story em {
    color: #a78bfa;
    font-style: normal;
    font-weight: 400;
}

.story-footer {
    margin-top: 3rem;
    text-align: center;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.3), transparent);
    margin-bottom: 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.footer-text {
    font-size: 0.8rem;
    color: #64748b;
    letter-spacing: 0.1em;
    font-family: 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', sans-serif;
}
.footer-date {
    font-size: 0.75rem;
    color: #94a3b8;
    letter-spacing: 0.05em;
    font-weight: 300;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
}
.footer-licenses {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.3rem;
}
.footer-copyright, .footer-license {
    font-size: 0.7rem;
    color: #64748b;
    letter-spacing: 0.05em;
    font-weight: 300;
}

.footer-license a {
    color: #60a5fa !important;
    text-decoration: none;
    font-size: inherit;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 3s ease-out;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delayed {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in-delayed.animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.bottom-star-field {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45vh; /* Bottom half of viewport */
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.bottom-star-field .star {
    opacity: 0.8;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  }
  to {
    text-shadow: 0 0 30px rgba(135, 206, 235, 0.8);
  }
}

@media (max-width: 768px) {
  .hoshizora-container {
    width: 95vw;
    /* aspect-ratio: 4/3; */
  }
  
  .content {
    padding: 1.5rem;
  }

  .story-section {
      padding: 0 1rem;
      margin-top: 3rem;
  }
  
  .story-title {
      font-size: 2rem;
  }
  
  .story-card {
      flex-direction: column;
      gap: 1rem;
      padding-left: 1rem;
  }
  
  .story-marker {
      align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .hoshizora-container {
    aspect-ratio: 16/9;
  }
  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
  }
}


/* Gratitude Section */
.gratitude-section {
  padding: 4rem 2rem 4rem 2rem;
  text-align: center;
  background: transparent;
}

.gratitude-container {
  max-width: 100%;
  margin: 0 auto;
  width: fit-content;
}

.gratitude-text {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: lighter;
  color: #e2e8f0c0;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  opacity: 0.9;
  white-space: nowrap;
  overflow: visible;
} 
.gratitude-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.gratitude-fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
  .gratitude-section {
    padding: 4rem 1rem 3rem 1rem;
  }
  
  .gratitude-text {
    font-size: clamp(1.2rem, 5vw, 2rem);
    letter-spacing: 0.02em;
  }
  
  .gratitude-subtitle {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .gratitude-text {
    font-size: clamp(1rem, 4vw, 1.5rem);
    letter-spacing: 0.01em;
  }
}