/* ===============================
   contents.directory™ shared base styles
   =============================== */

body {
  margin: 0;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow: hidden;
  padding-top: 32vh;
}

.ispo-typography {
  text-align: center;
  padding: 0 1.5rem;
  max-width: 760px;
}

.ispo-typography h1 {
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1.2s ease-out forwards;
  animation-delay: 0.3s;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.ispo-typography h1::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 0.25em;
  background: #fff;
  vertical-align: -0.1em;
  animation: blink 1.1s infinite steps(1, start);
}

@keyframes blink {
  50% { opacity: 0; }
}

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

.ispo-typography p {
  margin: 0.6rem 0;
  line-height: 1.9;
  color: #ccc;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
  font-size: 1rem;
}

.ispo-typography p:nth-of-type(1) { animation-delay: 1s; }
.ispo-typography p:nth-of-type(2) { animation-delay: 1.3s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

footer {
  position: fixed;
  bottom: 1rem;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  letter-spacing: 0.03em;
}

a {
  color: #999;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.2s ease, color 0.2s ease;
}

a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ---- system log (トップページ専用部分を除外できるよう残す) ---- */
#system-log {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 720px;
  max-height: 180px;
  overflow: hidden;
  text-align: left;
  line-height: 1.45;
  color: #888;
  font-family: "SFMono-Regular", Consolas, "Courier New", monospace;
  pointer-events: none;
}

#system-log p {
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 240ms ease, transform 240ms ease;
  font-size: 0.82rem;
}

#system-log p.visible {
  opacity: 1;
  transform: translateY(0);
}

.meta { color: #666; font-size: 0.7rem; margin-left: 0.6rem; }

.level-WARN { color: #ffb366; }
.level-INFO { color: #9fc1ff; }
.level-NOTICE { color: #9fe6c0; }
.level-DEBUG { color: #caaaff; }
.level-BOOT { color: #ffd280; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  body { padding-top: 24vh; }
  .ispo-typography h1 { font-size: 1.6rem; }
  .ispo-typography p { font-size: 0.95rem; line-height: 1.8; }
  footer { font-size: 0.8rem; bottom: 0.7rem; }
  #system-log {
    bottom: 4.5rem;
    width: 94%;
    max-width: 92%;
    max-height: 120px;
  }
  #system-log p { font-size: 0.75rem; line-height: 1.35; }
}