@charset "UTF-8";

body {
  background: linear-gradient(135deg, #232526 0%, #414345 100%);
  min-height: 100vh;
  font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif;
  color: #eee;
}

header {
  text-align: center;
  margin: 2rem 0 1rem 0;
}

h1 {
  font-size: 2.2rem;
  color: #00bcd4;
  letter-spacing: 0.08em;
  font-weight: bold;
  text-shadow: 0 2px 12px #222;
}

.gallery {
  background: rgba(34, 36, 38, 0.95);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  padding: 2rem;
  max-width: 480px;
  margin: 2rem auto;
  text-align: center;
}

.gallery > div {
  position: relative;
  margin-bottom: 1.5rem;
}

#main-image {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  transition: box-shadow 0.3s, transform 0.3s;
}

#main-image:hover {
  box-shadow: 0 8px 40px #00bcd4a0;
  transform: scale(1.03);
}

#caption {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 8px 24px;
  border-radius: 12px;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列にする */
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-items: center;
}

.thumb {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #444;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  background: #222;
}

.thumb:hover {
  border-color: #00bcd4;
  transform: scale(1.12);
  box-shadow: 0 4px 16px #00bcd4a0;
}

footer {
  text-align: center;
  margin-top: 2rem;
  color: #aaa;
  font-size: 0.95rem;
}

@media screen and (max-width: 640px) {
  .gallery {
    padding: 1rem;
    max-width: 98vw;
  }
  ul {
    gap: 8px;
  }
 
  }