
.lead-text {
  font-family: 'Yomogi', cursive;
  text-align: center;
  color: #eee;
  font-size: 1.2rem;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
}

.spf-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 画面幅に合わせて自動調整 */
  gap: 30px;
  padding: 20px;
  justify-items: center; 
}

.gallery-item {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  cursor: pointer;
  position: relative;
}

.polaroid {
  background: #fff;
  padding: 15px 15px 30px 15px; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  border: 1px solid #ddd;
}

.polaroid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3; 
  object-fit: cover; 
  border: 1px solid #ccc;
  margin-bottom: 15px;
}

.polaroid .caption {
  font-family: 'Yomogi', cursive;
  color: var(--text-main);
  text-align: left;
  line-height: 1.4;
}

.polaroid .tag {
  display: inline-block;
  background: var(--rainbow);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 50px;
  margin-bottom: 5px;
  font-family: sans-serif;
}

.polaroid::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(-5deg);
  width: 100px;
  height: 30px;
  background: var(--tape-color);
  opacity: 0.8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 1;
}

.rotate-left { transform: rotate(-3deg); }
.rotate-right { transform: rotate(3deg); }

.gallery-item:hover {
  transform: scale(1.05) rotate(0deg);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  z-index: 10; 
}
.spf-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important; 
  gap: 10px; 
  padding: 10px;
}

@media (max-width: 767px) {
  .polaroid {
    padding: 8px 8px 15px 8px !important; 
  }
  .polaroid img {
    margin-bottom: 8px !important;
  }
  .polaroid .caption {
    font-size: 0.6rem !important; 
  }
  .polaroid .tag {
    font-size: 0.5rem !important; 
    padding: 1px 4px !important;
  }
  .rotate-left { transform: rotate(-1.5deg); }
  .rotate-right { transform: rotate(1.5deg); }
}

/* 開催概要カードのスタイル */
.event-info-card {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  font-family: 'Yomogi', cursive;
}

.event-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.info-img {
  max-width: 300px;
  width: 100%;
  border-radius: 10px;
  border: 3px solid #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.event-text {
  flex: 1;
  min-width: 250px;
  font-size: 1.1rem;
}

.event-description {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dashed #ccc;
}