/* サムネイルギャラリー CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.thumbnail-gallery {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 600px) {
  .thumbnail-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.thumbnail-item {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: #f0f0f0;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.thumbnail-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.thumbnail-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.thumbnail-item:hover .thumbnail-image-wrapper img {
  transform: scale(1.1);
}

.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 60%);
  padding: 10px;
  transition: background 0.3s ease;
  pointer-events: none;
}

.thumbnail-item:hover .thumbnail-overlay {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.3) 80%);
}

.thumbnail-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.thumbnail-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.thumbnail-text {
  flex: 1;
}

.thumbnail-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.thumbnail-description {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 599px) {
  .thumbnail-overlay {
    padding: 15px;
  }
  
  .thumbnail-icon {
    width: 40px;
    height: 40px;
  }
  
  .thumbnail-title {
    font-size: 18px;
  }
  
  .thumbnail-description {
    font-size: 13px;
  }
}