/* === 共通スタイル === */
body {
  background: #fff;
  color: #222;
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  line-height: 1.75;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header {
  padding: 1rem 0 2rem;
  border-bottom: 1px solid #eee;
}

header h1 {
  font-size: 1.75rem;
  margin: 0;
  padding-left: 1rem;
  border-left: 4px solid #333;
}

nav {
  margin-top: 1rem;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.6;
}

section h2 {
  font-size: 1.4rem;
  font-weight: 500;
  border-left: 4px solid #000;
  padding-left: 0.75rem;
  margin: 2rem 0 1rem;
}

footer {
  text-align: center;
  margin: 4rem 0 2rem;
  font-size: 0.85rem;
  color: #aaa;
}

/* === グリッド・カード === */
.avatar-grid,
.world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.avatar-card,
.world-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  padding: 1rem;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.avatar-card:hover,
.world-card:hover {
  transform: translateY(-4px);
}

.avatar-card img,
.world-card img {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  background: #f8f8f8;
  margin-bottom: 0.5rem;
}

.avatar-card img {
  aspect-ratio: 3 / 4;
}

.world-card img {
  aspect-ratio: 4 / 3;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.world-card img:hover {
  filter: grayscale(0);
}

/* === 自己紹介レイアウト === */
.about-split {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2rem;
}

.about-split .column {
  flex: 1 1 45%;
  min-width: 280px;
  box-sizing: border-box;
}

.about-split .ja {
  border-right: 1px solid #ddd;
  padding-right: 2rem;
}

.about-split .en {
  padding-left: 2rem;
}

.profile-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin: 2rem 0;
  border-radius: 8px;
  background-color: #f8f8f8;
}

.intro-note {
  font-weight: bold;
  color: #444;
  margin-top: 1.5rem;
}

.about-split ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1.5rem;
}

.about-split li {
  list-style: disc;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .about-split .ja,
  .about-split .en {
    border: none;
    padding: 0;
  }
  nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
  .avatar-grid,
  .world-grid {
    grid-template-columns: 1fr;
  }
}

/* === ページロード時 光演出 === */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.9), transparent 70%);
  z-index: 9999;
  pointer-events: none;
  animation: lightFade 1.5s ease-out forwards;
}

@keyframes lightFade {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}
