/* Skeleton Screen Styles */

.skeleton-swiper-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.skeleton-swiper {
  display: flex;
  gap: 10px;
  padding: 20px 0;
}

.p-lift__itemWrap.skeleton-animate {
  background: #f0f0f0;
  min-height: 160px;
  flex: 1;
  max-width: calc(50% - 5px);
}

.skeleton-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}

.skeleton-title {
  height: 40px;
  background: #e0e0e0;
  border-radius: 4px;
}

.skeleton-price-wrap {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-price {
  height: 30px;
  background: #e0e0e0;
  border-radius: 4px;
  width: 70%;
}

.skeleton-button {
  height: 40px;
  background: #e0e0e0;
  border-radius: 4px;
}

.skeleton-link {
  display: inline-block;
  height: 20px;
  width: 180px;
  background: #e0e0e0;
  border-radius: 4px;
}

.skeleton-animate {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* NewsTopSP Skeleton - SP専用お気に入りニュース */
.skeleton-newstop-item {
  width: 100%;
  min-height: 90px;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 10px;
}

/* News Skeleton */
.p-news__item.skeleton-animate {
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  min-height: 200px;
}

.skeleton-image {
  width: 100%;
  height: 140px;
  background: #e0e0e0;
}

.skeleton-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-date {
  height: 16px;
  width: 100px;
  background: #e0e0e0;
  border-radius: 4px;
}

/* User Reviews Skeleton - PC版とSP版で適切なサイズ設定 */
.p-reviews__item.skeleton-animate {
  background: #f0f0f0;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  min-height: 420px;
  width: 100%;
}

.skeleton-review-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: #e0e0e0;
}

.skeleton-review-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.skeleton-resort-name {
  height: 20px;
  width: 140px;
  background: #e0e0e0;
  border-radius: 4px;
}

.skeleton-rating {
  height: 18px;
  width: 80px;
  background: #e0e0e0;
  border-radius: 4px;
}

.skeleton-comment {
  height: 16px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 6px;
}

.skeleton-comment.short {
  width: 75%;
}

.skeleton-meta {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.skeleton-meta-item {
  height: 16px;
  width: 100px;
  background: #e0e0e0;
  border-radius: 4px;
}

/* Article Banner Skeleton - SP版でも正確なサイズ */
.p-article__item.skeleton-animate {
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  gap: 15px;
  padding: 0;
  min-height: 100px;
}

.skeleton-article-image {
  width: 190px;
  height: 100px;
  background: #e0e0e0;
  flex-shrink: 0;
}

.skeleton-article-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  padding: 15px 15px 15px 0;
}

.skeleton-article-title {
  height: 18px;
  background: #e0e0e0;
  border-radius: 4px;
  width: 85%;
}

.skeleton-article-date {
  height: 14px;
  background: #e0e0e0;
  border-radius: 4px;
  width: 90px;
}

.p-article__banner.skeleton-animate {
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  display: block;
  margin-top: 20px;
  aspect-ratio: 728/90;
  width: 100%;
}

.skeleton-banner-image {
  width: 100%;
  height: 100%;
  background: #e0e0e0;
}

/* Notices Skeleton */
.p-notice__item.skeleton-animate {
  background: #f0f0f0;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 10px;
  min-height: 60px;
}

.skeleton-notice-content {
  display: flex;
  gap: 20px;
  align-items: center;
}

.skeleton-notice-date {
  height: 16px;
  width: 100px;
  background: #e0e0e0;
  border-radius: 4px;
  flex-shrink: 0;
}

.skeleton-notice-text {
  height: 18px;
  background: #e0e0e0;
  border-radius: 4px;
  flex: 1;
}

/* Ski Spot Info Skeleton - ゲレンデ速報セクション */
.skeleton-area-select {
  width: 100%;
  max-width: calc(640 / 1440 * 100vw);
  height: 68px;
  background: #e0e0e0;
  border-radius: 4px;
}

.skeleton-spot-item {
  width: 100%;
  height: 119px;
  background: #e0e0e0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px;
}

/* Responsive - SP版 */
@media (max-width: 767px) {
  .skeleton-swiper {
    flex-direction: column;
    padding: 15px 0;
  }

  .p-lift__itemWrap.skeleton-animate {
    max-width: 100%;
    min-height: 135px;
  }

  /* User Reviews Skeleton - SP版 */
  .p-reviews__item.skeleton-animate {
    min-height: 480px;
  }

  .skeleton-review-image {
    height: 250px;
  }

  .skeleton-review-content {
    padding: 15px;
  }

  /* Article Banner Skeleton - SP版 */
  .skeleton-article-image {
    width: 93px;
    height: 70px;
  }

  .skeleton-article-text {
    padding: 10px 10px 10px 0;
  }

  .skeleton-article-title {
    height: 16px;
    width: 90%;
  }

  .skeleton-article-date {
    height: 12px;
    width: 80px;
  }

  .p-article__banner.skeleton-animate {
    aspect-ratio: 320/100;
  }

  /* News Skeleton - SP版 */
  .p-news__item.skeleton-animate {
    min-height: 120px;
  }

  .skeleton-image {
    height: 70px;
  }

  /* Ski Spot Info Skeleton - SP版 */
  .skeleton-area-select {
    width: 100%;
    max-width: 100%;
    height: 52px;
  }

  .skeleton-spot-item {
    height: 82px;
    gap: 15px;
    padding: 6px 10px;
  }
}

/* Swiper Container固有のスケルトン */
.swiper-container-skeleton {
  width: 100%;
  overflow: hidden;
}

.swiper-wrapper-skeleton {
  display: flex;
  gap: 10px;
  padding: 10px 0;
}

.swiper-slide-skeleton {
  flex-shrink: 0;
  width: calc(50% - 5px);
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.swiper-slide-skeleton .skeleton-image {
  width: 100%;
  height: 100%;
  background: #e0e0e0;
}

@media (max-width: 767px) {
  .swiper-slide-skeleton {
    width: calc(100% - 20px);
  }
}
