/* 商品詳細ページ専用のスタイル */

/* レビューセクションスタイル */
.reviews-section {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.reviews-summary {
  display: flex;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.reviews-summary-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-right: 30px;
  border-right: 1px solid var(--border-color);
}

.average-rating {
  font-size: 48px;
  font-weight: bold;
  color: var(--dark-color);
  line-height: 1;
  margin-bottom: 10px;
}

.rating-stars-large {
  font-size: 24px;
  color: #ffc107;
  margin-bottom: 10px;
}

.total-reviews {
  color: var(--muted-color);
  font-size: 14px;
}

.reviews-summary-right {
  flex: 2;
  padding-left: 30px;
}

.rating-bars {
  width: 100%;
}

.rating-bar-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.rating-label {
  width: 40px;
  text-align: right;
  margin-right: 10px;
  font-size: 14px;
  color: var(--dark-color);
}

.rating-bar-container {
  flex: 1;
  height: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
  margin-right: 10px;
}

.rating-bar {
  height: 100%;
  background-color: #ffc107;
  border-radius: 5px;
}

.rating-count {
  width: 40px;
  font-size: 14px;
  color: var(--muted-color);
}

.reviews-list {
  margin-bottom: 30px;
}

.review-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.review-user {
  display: flex;
  align-items: center;
}

.user-icon {
  font-size: 24px;
  color: var(--muted-color);
  margin-right: 10px;
}

.user-name {
  font-weight: 500;
  color: var(--dark-color);
}

.review-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.rating-stars {
  color: #ffc107;
  margin-bottom: 5px;
}

.review-date {
  font-size: 12px;
  color: var(--muted-color);
}

.review-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.review-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 15px;
}

.review-actions {
  display: flex;
  justify-content: space-between;
}

.helpful-button,
.report-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted-color);
  transition: color 0.3s;
  padding: 0;
}

.helpful-button:hover {
  color: var(--primary-color);
}

.report-button:hover {
  color: #dc3545;
}

.helpful-button i,
.report-button i {
  margin-right: 5px;
}

.write-review {
  text-align: center;
  margin-bottom: 20px;
}

.write-review-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.write-review-button:hover {
  background-color: #c91e42;
}

.write-review-button i {
  margin-right: 8px;
}

.login-to-review {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted-color);
}

.login-to-review a {
  color: var(--primary-color);
  text-decoration: none;
}

.login-to-review a:hover {
  text-decoration: underline;
}

.more-reviews {
  text-align: center;
}

.more-reviews-button {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--dark-color);
  cursor: pointer;
  transition: background-color 0.3s;
}

.more-reviews-button:hover {
  background-color: #f8f8f8;
}

@media (max-width: 992px) {
  .reviews-summary {
    flex-direction: column;
  }

  .reviews-summary-left {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .reviews-summary-right {
    padding-left: 0;
  }
}

@media (max-width: 576px) {
  .reviews-section {
    padding: 20px 15px;
  }

  .review-header {
    flex-direction: column;
  }

  .review-rating {
    align-items: flex-start;
    margin-top: 10px;
  }

  .review-actions {
    flex-direction: column;
    gap: 10px;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.product-container {
  width: 100%;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin: 5px 0 0px 0;
  padding: 20px;
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 30px;
  box-sizing: border-box;
  overflow: hidden;
}

/* 商品メディアセクション */
.product-media {
  width: 100%;
}

/* 商品メディア内の商品情報 */
.product-media .product-title {
  font-size: 26px;
  margin-bottom: 5px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.4;
}

.product-media .product-id {
  display: block;
  margin-bottom: 20px;
  color: var(--muted-color);
  font-size: 14px;
}

/* 埋め込み動画スタイル - シンプルに再設計 */
.embedded-video {
  width: 100%;
  margin-bottom: 20px;
  position: relative; /* 子要素の基準点 */
  z-index: 0; /* 基準値 */
}

/* .video-containerのスタイルを一時的に削除 */

/* メディアタイトル下のボタン（必要に応じて使用） */
.video-controls {
  margin-top: 10px;
}

.video-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.video-button:hover {
  background-color: var(--primary-hover);
}

.video-button i {
  margin-right: 8px;
}

.thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.thumbnail {
  width: 100%;
  padding-top: 75%; /* アスペクト比 4:3 */
  position: relative;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.thumbnail.active {
  border-color: var(--primary-color);
}

.thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 商品説明 */
.product-description {
  margin: 20px 0;
  padding: 20px;
  background-color: #f9fafb;
  border-radius: 8px;
  line-height: 1.4em;
  color: #333;
  font-size: 15px;
}

.product-description p {
  margin-bottom: 10px;
}

.product-description p:last-child {
  margin-bottom: 0;
}

.product-description h2,
.product-description h3,
.product-description h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: bold;
}

.product-description ul,
.product-description ol {
  margin: 15px 0;
  padding-left: 25px;
}

.product-description li {
  margin-bottom: 8px;
}

/* 商品情報セクション */
.product-info {
  width: 100%;
  overflow: hidden;
  word-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
  padding-right: 10px;
}

.product-info * {
  max-width: 100%;
  word-wrap: break-word;
  word-break: break-word;
}

/* ログインステータス表示スタイル */
.login-status-box_header {
  background: white;
  border-radius: 8px;
  padding: 0;
  margin: 10px 0 10px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
  border: 1px solid #e5e7eb;
}


.login-status-box {
  background: white;
  border-radius: 8px;
  padding: 0;
  margin: 10px 0 0 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  width: 95%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
  border: 1px solid #e5e7eb;
}

/* ステータスリボンスタイル */
.status-ribbon {
  position: absolute;
  right: -40px;
  top: 20px;
  z-index: 1;
  width: 160px;
  overflow: hidden;
  height: 35px;
  text-align: center;
}

.status-ribbon span {
  position: absolute;
  display: block;
  width: 100%;
  background: #dc2626;
  color: white;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  line-height: 35px;
  transform: rotate(45deg);
  box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* 未ログイン状態のスタイル */
.login-prompt {
  padding: 20px;
}

.login-text {
  text-align: left;
}

.login-heading {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
  line-height: 1.4;
}

.highlight-text {
  color: #dc2626;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
}

.highlight-text_header {
  color: #dc2626;
  font-weight: bold;
  font-size: 18px;
}

.highlight-text_header_s {
  color: #444;
  font-weight: bold;
  font-size: 18px;
}

.headercolor{
  color: #df7d13;
}

.login-text p {
  font-size: 14px;
  margin: 0 0 20px;
  color: #666;
  line-height: 1.6;
  max-width: 100%;
}

.login-buttons {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  align-items: center;
}

.btn-login {
  background-color: #dc2626;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.btn-login_header {
  background-color: #f3f4f6;
  color: #444;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.btn-login i {
  margin-left: 6px;
  font-size: 12px;
  transition: transform 0.2s;
}

.btn-login:hover {
  background-color: #b91c1c;
  color: white;
  transform: translateY(-1px);
}

.btn-login:hover i {
  transform: translateX(3px);
}

a.btn-register_header {
    background-color: #dc2626;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;

    /* キラキラ対策・演出 */
    position: relative;
    overflow: hidden;
    isolation: isolate; /* ← これが親への影響を防ぐカギ */
    z-index: 1;
}

a.btn-register_header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    animation: shine 2.5s infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shine {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

.btn-register_header {
  background-color: #dc2626;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.btn-register:hover {
  background-color: #e5e7eb;
  color: #333;
}

/* ログイン状態のスタイル */
.login-status-box.logged-in {
  padding: 20px;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.user-points {
  font-size: 24px;
  color: #333;
  font-weight: 600;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.user-points span {
  font-size: 16px;
  font-weight: normal;
  margin-left: 2px;
  color: #666;
}

.user-points i {
  color: #f59e0b;
  margin-right: 8px;
  font-size: 26px;
}

.user-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 15px;
}

.btn-point-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 6px;
  background-color: #10b981;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-point-purchase i {
  font-size: 14px;
  color: white;
}

.btn-point-purchase:hover {
  background-color: #059669;
}

.btn-point-history {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 6px;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-point-history i {
  font-size: 14px;
  color: #666;
}

.btn-point-history:hover {
  background-color: #e5e7eb;
}

.btn-mypage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  color: white;
  background-color: #dc2626;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-mypage i {
  font-size: 14px;
  color: white;
}

.btn-mypage:hover {
  background-color: #b91c1c;
}

.point-info {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e5e7eb;
  width: 100%;
}

.point-bonus {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #7c2d12;
  border-radius: 6px;
}

.point-bonus i {
  color: #ea580c;
  margin-right: 8px;
  font-size: 16px;
}

.point-bonus strong {
  color: #dc2626;
  font-weight: 600;
  margin: 0 3px;
  font-size: 16px;
}

/* レスポンシブ対応 */
@media (max-width: 576px) {
  .login-prompt {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-heading {
    font-size: 15px;
  }

  .login-badge {
    font-size: 10px;
    padding: 3px 25px;
  }

  .login-buttons {
    width: 100%;
  }

  .btn-login,
  .btn-register {
    flex: 1;
    padding: 10px 15px;
  }

  .user-info {
    flex-direction: column;
    align-items: flex-start;
  }

  /* アバター削除 */

  .user-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .btn-mypage,
  .btn-point-history,
  .btn-point-purchase {
    padding: 8px 12px;
    width: 100%;
    justify-content: center;
  }
}

.product-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--dark-color);
  margin: 0 0 15px;
  line-height: 1.3;
  width: 100%;
}

.product-id {
  color: var(--muted-color);
  font-size: 14px;
  margin-bottom: 20px;
  display: block;
}

.product-meta {
  margin-bottom: 20px;
}

.rating-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 12px 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: 95%;
  box-sizing: border-box;
}

.rating-stars-wrapper {
  display: flex;
  flex-direction: column;
}

.stars {
  display: flex;
  align-items: center;
  color: #ffc107;
  font-size: 16px;
  margin-bottom: 5px;
}

.rating-value {
  font-weight: bold;
  color: var(--dark-color);
  margin-left: 8px;
  font-size: 18px;
}

.review-count {
  color: var(--primary-color);
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.review-count i {
  margin-left: 5px;
  font-size: 12px;
}

.review-count:hover {
  text-decoration: underline;
}

.rating-actions {
  display: flex;
  gap: 15px;
}

.favorite-button {
  display: flex;
  align-items: center;
  background-color: white;
  border: 1px solid #e0e0e0;
  color: var(--dark-color);
  cursor: pointer;
  font-size: 14px;
  padding: 8px 15px;
  border-radius: 30px;
  transition: all 0.2s;
}

.favorite-button i {
  margin-right: 8px;
  font-size: 16px;
  color: var(--primary-color);
}

.favorite-button:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.favorite-button:hover i {
  color: white;
}

.price-section {
  background-color: var(--light-color);
  padding: 12px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  width: 95%;
  margin-left: 0;
  margin-right: 20px;
  box-sizing: border-box;
}

.price-label {
  font-size: 14px;
  color: var(--muted-color);
  margin-bottom: 5px;
}

.price {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.price span {
  font-size: 16px;
  font-weight: normal;
}

.price.free-price {
  color: #28a745;
  font-size: 24px;
}

.points {
  font-size: 14px;
  color: var(--muted-color);
}

.cta-buttons {
  margin-bottom: 30px;
}

.buy-button {
  width: 95%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  margin: 0;
  margin-right: 20px;
  box-sizing: border-box;
}

.buy-button:hover {
  background-color: #c91e42;
}

.buy-button i {
  margin-right: 10px;
}

.buy-button:hover {
  background-color: #c91e42;
}

.product-details {
  margin-bottom: 0px;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
  overflow: hidden;
}

.detail-table tr {
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-wrap: nowrap;
}

.detail-table tr:last-child {
  border-bottom: none;
}

.detail-table th {
  text-align: left;
  padding: 10px 5px 10px 0;
  min-width: 80px;
  width: 35%;
  color: var(--muted-color);
  font-weight: normal;
  vertical-align: top;
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-table td {
  padding: 10px 0 10px 5px;
  color: var(--text-color);
  word-break: break-word;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.performer-link {
  color: var(--primary-color);
  text-decoration: none;
  margin-right: 10px;
  display: inline-block;
  max-width: calc(100% - 10px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.performer-link:hover {
  text-decoration: underline;
}

.tag-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

/* 商品詳細の外（下部）に表示される場合のみ上マージンを追加 */
.product-details > .tag-list {
  margin-top: 20px;
}

.tag-list .tag,
a.tag {
  display: inline;
  font-size: 14px;
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
  vertical-align: baseline;
  max-width: calc(100% - 8px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-list .tag:hover,
a.tag:hover {
  text-decoration: underline;
  color: var(--primary-color) !important;
}

/* モーダルウィンドウ共通スタイル */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.video-modal.active {
  display: flex;
}

.modal-content {
  width: 80%;
  max-width: 900px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

/* 動画モーダル */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 のアスペクト比 */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 画像モーダル */
.image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.image-wrapper img {
  max-width: 100%;
  max-height: 80vh;
  border: none;
  object-fit: contain;
}

/* メディアタイトル */
.media-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--dark-color);
  position: relative;
  padding-left: 12px;
}

.media-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* ナビゲーションボタン */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
  transition: background-color 0.3s;
}

.nav-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev-button {
  left: 10px;
}

.next-button {
  right: 10px;
}

/* 関連商品セクション */
.related-products {
  margin: 30px 0;
}

.section-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: var(--dark-color);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.product-card {
  position: relative;
  transition: transform 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-5px);
}

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

.product-card-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.product-card-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: var(--primary-color);
  color: white;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  z-index: 2;
}

.product-card-duration {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.product-card-info {
  /* パディングとbackground-colorを削除 */
}

.product-card-title {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 38px;
  color: #333;
}

.product-card-info {
  font-size: 12px;
  color: #999;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card-date {
  color: #999;
  font-size: 12px;
}

.product-card-price {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 12px;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
  .product-container {
    grid-template-columns: 1fr;
  }

  .thumbnails-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .product-container {
    padding: 15px 12px;
  }

  .thumbnails-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .thumbnails-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-title {
    font-size: 20px;
  }

  .price {
    font-size: 24px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ログインボタンのレスポンシブ対応 */
  .btn-mypage,
  .btn-point-history,
  .btn-point-purchase {
    width: 100%;
    padding: 12px 15px;
  }
}
