/**
 * UI Components Styles
 * UIコンポーネント・画像効果・ホバーテキスト
 * Extracted from index.html for better maintainability
 */

.image, .image_cover {
  transition: box-shadow 0.3s ease-in-out;
}

a:hover .image, a:hover .image_cover {
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.image-container {
  position: relative;
  line-height: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.overlay-text {
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  padding: 20px;
}

.image-container:hover .overlay {
  opacity: 1;
}

.image_cover {
  border-radius: 8px;
  overflow: hidden;
  object-fit: cover;
  width: 100%;
  height: 250px;
}

.tab_content .image_cover {
  height: 200px;
  margin-bottom: 1rem;
}

.card-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card-image .image_cover {
  height: 200px;
}

.showcase-item .image_cover {
  height: 300px;
}

@media screen and (max-width: 991px) {
  .image_cover {
    height: 200px;
  }

  .showcase-item .image_cover {
    height: 250px;
  }
}

@media screen and (max-width: 767px) {
  .image_cover {
    height: 180px;
  }

  .tab_content .image_cover {
    height: 160px;
  }

  .showcase-item .image_cover {
    height: 200px;
  }
}

.learning-tool-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.learning-tool-link:hover {
  transform: translateY(-5px);
}

.learning-tool-link:hover .image_cover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}
