/* 優しいバリエーション1: 丸みと柔らかい色 */
.gentle-btn-1 {
  background: linear-gradient(135deg, #4fa8d8 0%, #6ba6e0 100%);
  border: none;
  border-radius: 25px;
  color: white;
  padding: 12px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 168, 216, 0.3);
  font-weight: 600;
  text-align: center;
}

.gentle-btn-1:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 168, 216, 0.4);
  background: linear-gradient(135deg, #3a9bd1 0%, #5b96d9 100%);
  color: white;
  cursor: pointer;
}
.m-lens-container {
  display: inline-block;
  position: relative;
}

.m-lens {
  position: absolute;
  z-index: 2;
  background: #fdd4b4;
  opacity: 0.1;
  height: 172px;
  width: 172px;
  display: none; /* ← JS で表示制御 */
}

.m-lens-container {
  max-width: 100%;
}

.m-lens-container img {
  display: block;
  width: 900px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;  /* 透かし入り画像は正方形 */
  object-fit: contain;
}

.zoom-area {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  border: 1px solid #ccc;
  height: 2000px;
  width: 2000px;
  overflow: hidden;
}

.zoom-area.active {
  display: block;
}
.card {
  position: relative;
  overflow: hidden;
  }
.priority-ribbon {
  position: absolute;
  top: 14px;
  left: -54px;
  width: 180px;

  /* background: rgba(180, 40, 50, 0.9); /* 少し抑えた赤 */
  /* color: #fff; */
  /* シャンパンゴールド */
  /* background: rgba(197, 156, 86, 0.9);  */
  /* color: rgba(255, 255, 255, 0.96); */

  background: rgba(30, 115, 115, 0.88); /* ティールブルー */
  color: rgba(255, 255, 255, 0.96);

  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;

  text-align: center;
  padding: 5px 0;

  transform: rotate(-45deg);
  transform-origin: center;

  z-index: 10;
  line-height: 1.4;

  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  pointer-events: none;
}

/* ライセンスの表示（クリックで説明のポップアップを出す） */
.license-info-btn {
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.license-info-btn:hover {
  background-color: #f5f5f5;
}

.license-info-btn .bi-info-circle {
  font-size: 0.85em;
  color: #757575;
}

.license-popover {
  max-width: 340px;
  font-size: 0.9em;
}

/* 同じ子供の作品（横スクロール） */
.same-child-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}

/* 右端のカードが少し見切れるようにして、続きがあることを示す */
.same-child-item {
  flex: 0 0 42%;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .same-child-item {
    flex-basis: 22%;
  }
}

@media (min-width: 992px) {
  .same-child-item {
    flex-basis: 15%;
  }
}
