:root {
  --green-dark: #0f3d2e;
  --green-main: #1f6f54;
  --green-light: #a7d7c5;
  --bg-dark: #0b1f17;
}

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

body {
  font-family: "Segoe UI", sans-serif;
  background: #f3f7f5;
  color: #123;
  line-height: 1.8;
}

/* ===== Header ===== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background: rgba(15,61,46,0.9);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo-link {
  display: flex;       /* 中の画像を制御しやすくする */
  align-items: center;
  line-height: 0;      /* 下側の謎の隙間対策 */
  text-decoration: none;
}

.logo {
  height: 60px;
  display: block;      /* 画像特有のインラインの隙間を排除 */
}

.nav a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-light);
  transition: 0.3s;
}

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

/* ===== Map Hero ===== */
.map-hero {
  min-height: 100vh;
  padding-top: 120px;
  background: linear-gradient(
    rgba(15,61,46,0.9),
    rgba(15,61,46,0.9)
  );
  color: white;
  text-align: center;
}

.map-title {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.map-container {
  position: relative;
  max-width: 900px;
  margin: auto;
}

.world-map {
  width: 100%;
  opacity: 0.9;
  filter: drop-shadow(0 0 30px rgba(0,0,0,0.5));
}

/* ===== Cities ===== */
.city {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--green-light);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--green-light);
}

.city::after {
  content: attr(data-name);
  position: absolute;
  top: -28px;
  left: -20px;
  opacity: 0;
  color: white;
  font-size: 0.8rem;
  transition: 0.3s;
}

.city:hover::after {
  opacity: 1;
}

/* ===== Scroll Guide ===== */
.scroll-guide {
  margin-top: 2rem;
  opacity: 0.7;
}

/* ===== History ===== */
.history {
  background: #f3f7f5;
}

.era {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 100vh;
  padding: 5rem 2rem;
}

.era.dark {
  background: var(--bg-dark);
  color: white;
}

.era-title {
  position: sticky;
  top: 40%;
  font-size: 2.2rem;
  color: var(--green-main);
}

.era.dark .era-title {
  color: var(--green-light);
}

.era-content {
  max-width: 600px;
  animation: fadeUp 1s ease forwards;
}

.era-content h2 {
  margin-bottom: 1rem;
}

/* ===== Wiki ===== */
.wiki {
  background: var(--green-main);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.wiki-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background: white;
  color: var(--green-dark);
  text-decoration: none;
  border-radius: 999px;
  font-weight: bold;
}

/* ===== Footer ===== */
.footer {
  background: var(--green-dark);
  color: white;
  text-align: center;
  padding: 2rem;
}

.footer img {
  height: 36px;
  margin-bottom: 1rem;
}

/* ===== Animations ===== */
.fade-in {
  animation: fadeIn 2s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

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