/* 全体フォントはクラシック（EB Garamond） */
body {
  margin: 0;
  padding: 0;
  font-family: 'EB Garamond', serif;
  background: white;
  color: black;
  overflow-x: visible; /* 横にはみ出しも見えるように */
}

/* コンテンツのベース */
.container {
  position: relative; /* ← これで「右に浮かせる」要素の基準に */
  width: fit-content;
  margin: 100px auto 0 100px;
}

/* ナビゲーションを縦並びに */
nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

/* ナビゲーションリンクのスタイル */
nav a {
  text-decoration: none;
  color: black;
}

/* ？マークのスタイルとアニメーション */
.amatic {
  font-family: 'Amatic SC', cursive;
  font-size: 32px;
  position: absolute;
  top: 40px;
  right: -80px; /* 画面の右端から80px外にガチはみ出す */
  animation: swing 3s ease-in-out infinite;
  transform-origin: top center; /* 振り子の支点を上中央に */
}

/* ニコちゃんマーク :) のスタイル */
h1 {
  position: absolute;
  bottom: 60px;
  right: -120px; /* もっと右に120pxはみ出す */
  margin: 0;
  animation: swing 3s ease-in-out infinite;
  transform-origin: top center;
}

/* 振り子風に左右に揺れるアニメーション */
@keyframes swing {
  0%   { transform: rotate(10deg); }
  50%  { transform: rotate(-10deg); }
  100% { transform: rotate(10deg); }
}

/* popup 見た目 */
#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

#popup.hidden {
  display: none;
}

#popup-img {
  max-width: 80vw;
  max-height: 80vh;
  border: 12px solid #f0f0f0;
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 255, 255, 0.6) inset;
  border-radius: 10px;
  background: white;
  display: block;
}

#close {
  position: absolute;
  top: 25px;
  right: 25px;
  cursor: pointer;
  font-size: 30px;
  font-weight: bold;
  color: white;
  user-select: none;
  text-shadow: 0 0 5px black;
}
