/**
 * Showcase & Carousel Styles
 * ショーケース・カルーセル機能のスタイル
 * Extracted from index.html for better maintainability
 */

.image-showcase {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.showcase-item {
  position: absolute;
  width: 70%;
  max-width: 750px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease-in-out, z-index 0s linear 0.3s;
  cursor: pointer;
}

.showcase-item .image-container,
.showcase-item .image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-item.is-active-image {
  transform: translateX(0) scale(1.05);
  opacity: 1;
  z-index: 10;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.showcase-item.is-left-image {
  transform: translateX(-50%) scale(0.9);
  opacity: 0.7;
  z-index: 5;
  box-shadow: none;
}

.showcase-item.is-right-image {
  transform: translateX(50%) scale(0.9);
  opacity: 0.7;
  z-index: 5;
  box-shadow: none;
}

@media screen and (max-width: 767px) {
  .image-showcase {
    min-height: auto;
    position: static;
    display: block; /* ブロック要素として縦に並べる */
    padding-top: 20px;
  }

  .showcase-item {
    position: relative !important; /* absoluteを解除 */
    transform: none !important; /* transformをリセット */
    opacity: 1 !important; /* 透明度をリセット */
    z-index: auto !important; /* z-indexをリセット */
    width: 90%;
    margin: 0 auto 20px; /* 中央揃えと下マージン */
    left: auto !important;
    top: auto !important;
  }

  .showcase-item {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
  }
}

.learning-tools-showcase {
  position: relative;
  padding: 40px 0;
}

.showcase-tool-item .image_cover {
  display: block;
  margin: 0 auto;
  padding: 10px;  /* 画像周りに少しパディング */
}

.showcase-tool-item .image-container {
  position: relative;
  width: 100%;
  height: 250px;  /* 画像と同じ高さに設定 */
  margin-bottom: 1rem;
}

.section.is-inverse .image_cover {
  border-radius: 8px;
  overflow: hidden;
  object-fit: contain;  /* 画像全体を表示 */
  background-color: #ffffff;  /* 余白部分の背景色を白に */
  width: 100%;
  height: 250px;  /* 統一された高さ */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);  /* 軽い影を追加 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section.is-inverse .image_cover:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.showcase-content {
  overflow: hidden;
  position: relative;
}

.showcase-grid {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.showcase-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 20;
  pointer-events: none;
}

.showcase-nav-btn {
  position: absolute;
  background-color: rgba(255, 142, 72, 0.9);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-nav-btn:hover {
  background-color: #e67e3e;
  transform: scale(1.1);
}

.showcase-prev {
  left: -25px;
}

.showcase-next {
  right: -25px;
}

.showcase-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 142, 72, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: #ff8e48;
  transform: scale(1.2);
}

@media screen and (min-width: 992px) {
  .learning-tools-showcase .showcase-navigation,
  .learning-tools-showcase .showcase-indicators {
    display: none;
  }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
  .learning-tools-showcase .showcase-content {
    overflow: hidden;
  }

  .learning-tools-showcase .showcase-grid {
    display: flex !important;
    grid-template-columns: none !important;
    transition: transform 0.5s ease;
  }

  .showcase-tool-item {
    flex: 0 0 50%;
    padding: 0 1rem;
  }
}

@media screen and (max-width: 767px) {
  .showcase-prev {
    left: 10px;
  }

  .showcase-next {
    right: 10px;
  }

  .showcase-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .learning-tools-showcase .showcase-content {
    overflow: hidden;
    width: 100%;
  }

  .learning-tools-showcase .showcase-grid,
  .learning-tools-grid {
    display: flex !important;
    grid-template-columns: none !important;
    grid-column-gap: 0 !important;
    grid-row-gap: 0 !important;
    transition: transform 0.5s ease;
    align-items: flex-start;
    width: 100%;
  }

  .showcase-tool-item {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .learning-tools-showcase .showcase-navigation {
    z-index: 30;
  }

  @media (hover: none) and (pointer: coarse) {
    .learning-tools-showcase .showcase-nav-btn {
      opacity: 0.9;
      background-color: rgba(255, 142, 72, 0.95);
    }

    .learning-tools-showcase .showcase-nav-btn:active {
      transform: scale(0.95);
      background-color: #e67e3e;
    }
  }

  .section.is-inverse .image_cover {
    height: 200px;  /* モバイルでは少し小さく */
  }

  .showcase-tool-item .image-container {
    height: 200px;  /* モバイルでも同じ高さに */
  }
}

.orientation-title {
  color: #ff8e48;  /* オレンジ色 */
  margin-bottom: 2rem;
}

.orientation-showcase {
  position: relative;
  padding: 40px 0;
}

.orientation-showcase .showcase-content {
  overflow: hidden;
  position: relative;
}

.orientation-grid {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.showcase-orientation-item .image_cover {
  border-radius: 8px;
  overflow: hidden;
  object-fit: contain;
  background-color: #ffffff;
  width: 100%;
  height: 250px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 10px;
}

.showcase-orientation-item .image_cover:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.showcase-orientation-item .image-container {
  position: relative;
  width: 100%;
  height: 250px;
  margin-bottom: 1rem;
}

.orientation-showcase .showcase-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 20;
  pointer-events: none;
}

.orientation-showcase .showcase-nav-btn {
  position: absolute;
  background-color: rgba(255, 142, 72, 0.9);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orientation-showcase .showcase-nav-btn:hover {
  background-color: #e67e3e;
  transform: scale(1.1);
}

.orientation-showcase .showcase-prev {
  left: -25px;
}

.orientation-showcase .showcase-next {
  right: -25px;
}

.orientation-showcase .showcase-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.orientation-showcase .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 142, 72, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.orientation-showcase .indicator.active {
  background-color: #ff8e48;
  transform: scale(1.2);
}

@media screen and (min-width: 992px) {
  .orientation-showcase .showcase-navigation,
  .orientation-showcase .showcase-indicators {
    display: none;
  }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
  .orientation-showcase .showcase-content {
    overflow: hidden;
  }

  .orientation-grid {
    display: flex !important;
    grid-template-columns: none !important;
    transition: transform 0.5s ease;
  }

  .showcase-orientation-item {
    flex: 0 0 50%;
    padding: 0 1rem;
  }
}

@media screen and (max-width: 767px) {
  .orientation-showcase .showcase-content {
    overflow: hidden;
    width: 100%;
  }

  .orientation-grid {
    display: flex !important;
    grid-template-columns: none !important;
    grid-column-gap: 0 !important;
    grid-row-gap: 0 !important;
    transition: transform 0.5s ease;
    align-items: flex-start;
    width: 100%;
  }

  .showcase-orientation-item {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .showcase-orientation-item .image-container {
    height: 200px;
  }

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

  .orientation-showcase .showcase-prev {
    left: 10px;
  }

  .orientation-showcase .showcase-next {
    right: 10px;
  }

  .orientation-showcase .showcase-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

.learning-info-title {
  color: #ff8e48;  /* 学習ツールと同じオレンジ色 */
}

.learning-info-showcase {
  position: relative;
  padding: 40px 0;
}

.learning-info-showcase .showcase-content {
  overflow: hidden;
  position: relative;
}

.learning-info-grid {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.showcase-info-item .image_cover {
  border-radius: 8px;
  overflow: hidden;
  object-fit: contain;
  background-color: #ffffff;
  width: 100%;
  height: 250px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 10px;
}

.showcase-info-item .image_cover:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.showcase-info-item .image-container {
  position: relative;
  width: 100%;
  height: 250px;
  margin-bottom: 1rem;
}

.learning-info-showcase .showcase-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 20;
  pointer-events: none;
}

.learning-info-showcase .showcase-nav-btn {
  position: absolute;
  background-color: rgba(255, 142, 72, 0.9);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.learning-info-showcase .showcase-nav-btn:hover {
  background-color: #e67e3e;
  transform: scale(1.1);
}

.learning-info-showcase .showcase-prev {
  left: -25px;
}

.learning-info-showcase .showcase-next {
  right: -25px;
}

.learning-info-showcase .showcase-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.learning-info-showcase .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 142, 72, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.learning-info-showcase .indicator.active {
  background-color: #ff8e48;
  transform: scale(1.2);
}

@media screen and (min-width: 768px) {
  .learning-info-showcase .showcase-navigation,
  .learning-info-showcase .showcase-indicators {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .learning-info-showcase .showcase-content {
    overflow: hidden;
    width: 100%;
  }

  .learning-info-grid {
    display: flex !important;
    grid-template-columns: none !important;
    grid-column-gap: 0 !important;
    grid-row-gap: 0 !important;
    transition: transform 0.5s ease;
    width: 100%;
  }

  .showcase-info-item {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .showcase-info-item .image-container {
    height: 200px;
  }

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

  .learning-info-showcase .showcase-prev {
    left: 10px;
  }

  .learning-info-showcase .showcase-next {
    right: 10px;
  }

  .learning-info-showcase .showcase-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}
