/* ===== Design C: Warm & Vibrant Magazine ===== */

/* ===== ヘッダー ===== */

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 0;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,107,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── 3カラムグリッド ── */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 300px 400px;
  gap: 15px;
  align-items: center;
  padding-bottom: 0;
  position: relative; z-index: 1;
}

/* 左テキスト */
.hero-text {}

.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 2px solid var(--yellow);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px; font-weight: 700;
  color: var(--orange);
  margin-bottom: 20px;
}
.hero-heading {
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero-heading em {
  font-style: normal;
  background: linear-gradient(135deg, var(--coral), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 14px; color: var(--text2);
  margin-bottom: 28px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-stats {
  display: flex; gap: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--gray2);
}
.hero-stat-num { font-size: 24px; font-weight: 900; color: var(--coral); }
.hero-stat-label { font-size: 11px; color: var(--gray3); white-space:nowrap; }

/* ── 中央：Swiperビジュアル（hero_mask_fill.svg マスク） ── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 24px;
}
.hero-swiper {
  width: 283px;
  height: 330px;
  flex-shrink: 0;
  /* SVGマスクで形状をクリップ */
  -webkit-mask-image: url('../img/hero_mask_fill.svg');
          mask-image: url('../img/hero_mask_fill.svg');
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  /* ソフトシャドウは外側ラッパーで表現 */
  background: transparent;
}
/* マスク外側のシャドウ用ラッパー */
.hero-visual::after {
  content: '';
  position: absolute;
  width: 283px; height: 330px;
  -webkit-mask-image: url('../img/hero_mask_fill.svg');
          mask-image: url('../img/hero_mask_fill.svg');
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  pointer-events: none;
  filter: drop-shadow(0 16px 40px rgba(240,100,70,0.25)) drop-shadow(0 4px 12px rgba(0,0,0,0.10));
  z-index: -1;
}
.hero-visual { position: relative; }

.hero-swiper .swiper-wrapper { height: 100%; }
.hero-swiper .swiper-slide {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #FFF5F0 0%, #FFEEE8 100%);
}

/* スライド画像 */
.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

/* ページネーション */
.hero-swiper .swiper-pagination {
  bottom: 8px;
}
.hero-swiper .swiper-pagination-bullet {
  background: var(--coral); opacity: 0.45;
  width: 8px; height: 8px;
}
.hero-swiper .swiper-pagination-bullet-active { opacity: 1; }

/* ── 右：カードグリッド ── */
.hero-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: 24px;
}
.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform .2s, box-shadow .2s;
  border: 2px solid transparent;
}
.hero-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--coral); }
.hero-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--orange), var(--coral));
  color: var(--white);
  border: none;
}
.hero-card.featured .hero-card-label { color: var(--white); }
.hero-card.featured .hero-card-sub { color: rgba(255,255,255,.85); font-size: 12px; }
.hero-card-icon { width: 60px; height: 60px; flex-shrink: 0; font-size: 26px; }
.hero-card-label { font-size: 1rem; font-weight: 700; color: var(--coral-d); }

/* ── 波アニメーション＋協賛エリア ── */
.hero-wave-area {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(147,197,253,0.18) 40%);
  margin-top: 8px;
}

/* 波SVGレイヤー */
.hero-wave {
  position: relative;
  width: 100%;
  height: 125px;
  overflow: hidden;
  line-height: 0;
}
.hero-wave__svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
}
/* 後ろの波：薄くゆっくり */
.hero-wave__svg--back {
  fill: rgba(147, 197, 253, 0.30);
  animation: wave-move 12s linear infinite;
}
/* 中間の波 */
.hero-wave__svg--mid {
  fill: rgba(99, 179, 237, 0.42);
  animation: wave-move 9s linear infinite reverse;
}
/* 前の波：濃くはっきり */
.hero-wave__svg--front {
  fill: rgb(126 205 241);
  animation: wave-move 7s linear infinite;
}

@keyframes wave-move {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── 協賛バー（波エリア内） ── */
.sponsor-bar {
  background: rgb(126 205 241);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: none;
  padding: 12px 0;
}
.sponsor-bar-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 20px;
  font-size: 14px; color: var(--coral-d); font-weight: 700;
}
.sponsor-logos { display: flex; gap: 12px; flex-wrap: wrap; }
.sponsor-logo-placeholder {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--gray2);
  border-radius: 8px;
  padding: 5px 14px; font-size: 12px; font-weight: 600; color: var(--text2);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ===== セクション共通 ===== */
.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px; gap: 12px;
}
.section-title {
  font-size: 22px; font-weight: 900; color: var(--text);
  padding-left: 14px;
  border-left: 4px solid var(--coral);
}
.section-link {
  font-size: 13px; font-weight: 700; color: var(--coral);
  display: flex; align-items: center; gap: 4px;
  padding: 6px 14px;
  background: var(--pink);
  border-radius: 999px;
  white-space: nowrap;
}
.section-link::after { content: '→'; }

/* ===== イベントグリッド ===== */
#events {
  background: rgb(126 205 241);
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-img {
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; position: relative; overflow: hidden;
}
/* 写真がある場合：画像でフル表示 */
.event-img--photo {
  font-size: 0; /* 絵文字テキストを隠す */
  background: #e8e8e8;
}
.event-img--photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .3s ease;
}
.event-card:hover .event-img--photo img { transform: scale(1.05); }

.event-img-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; opacity: .1;
}
.event-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--coral); color: var(--white);
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  z-index: 2;
}
/* 写真上のタグは半透明でぼかし */
.event-img--photo .event-tag {
  backdrop-filter: blur(4px);
  background: rgba(0,0,0,0.42);
}

/* ローディングプレースホルダー */
.event-card-placeholder {
  background: var(--gray1);
  border-radius: var(--radius);
  height: 220px;
  animation: placeholder-pulse 1.4s ease-in-out infinite;
}
@keyframes placeholder-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.event-body { padding: 16px; flex: 1; }
.event-date { font-size: 12px; color: var(--orange); font-weight: 700; margin-bottom: 6px; }
.event-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.5; }
.event-place { font-size: 12px; color: var(--gray3); }

/* ===== 週末どこ行く ===== */
.weekend { background: var(--peach); }
.weekend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.weekend-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.weekend-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--orange));
}
.weekend-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.weekend-icon { font-size: 40px; margin-bottom: 12px; }
.weekend-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.weekend-desc { font-size: 12px; color: var(--gray3); margin-bottom: 12px; }
.weekend-count {
  font-size: 12px; font-weight: 700; color: var(--coral);
  background: var(--pink); padding: 4px 12px; border-radius: 999px;
}

/* ===== MAPセクション ===== */
.map-section {
  background: linear-gradient(135deg, #2D3561 0%, #1A1F42 100%);
  color: var(--white);
  /* Leaflet の内部 z-index がヘッダーを超えないよう隔離 */
  isolation: isolate;
  position: relative;
  z-index: 0;
}
.map-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.map-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px; padding: 6px 14px;
  font-size: 12px; font-weight: 700; color: var(--yellow);
  margin-bottom: 16px;
}
.map-heading { font-size: 32px; font-weight: 900; margin-bottom: 16px; }
.map-desc { font-size: 14px; opacity: .85; margin-bottom: 24px; line-height: 1.8; }
.map-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.map-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.map-sponsor { font-size: 11px; opacity: .6; margin-top: 12px; }
.map-visual {
  background: rgba(255,255,255,0.08);
  border-radius: 20px; height: 280px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}
.map-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.map-placeholder-icon { font-size: 48px; margin-bottom: 8px; }
.map-placeholder-text { font-size: 16px; font-weight: 700; }
.map-pin {
  position: absolute;
  background: var(--yellow);
  color: #5A3D00; font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  display: flex; align-items: center; gap: 4px;
}

/* ===== 習い事 ===== */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}
.lesson-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.lesson-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lesson-icon { width: 44px; height: 44px; font-size: 28px; }
.lesson-title { font-size: 13px; font-weight: 700; color: var(--text); }
.lesson-count { font-size: 11px; color: var(--gray3); }
.lesson-sponsored {
  font-size: 10px; font-weight: 700;
  color: var(--orange); background: #FFF6EE;
  padding: 2px 8px; border-radius: 999px;
}

.lessons-featured { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.lesson-featured-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; gap: 16px; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 4px solid var(--orange);
}
.lesson-featured-icon { width: 50px; height: 50px; font-size: 32px; flex-shrink: 0; }
.lesson-featured-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.lesson-featured-info { font-size: 12px; color: var(--gray3); margin-bottom: 6px; }
.lesson-pr { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.pr-badge {
  background: var(--orange); color: var(--white);
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
}

/* ===== お店 ===== */
.shops { background: var(--gray1); }
.shops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.shop-card {
  background: var(--white);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform .2s, box-shadow .2s;
}
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shop-img {
  height: 100px; background: var(--peach);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; position: relative;
}
.shop-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--coral); color: var(--white);
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.shop-body { padding: 16px; }
.shop-category { font-size: 11px; color: var(--orange); font-weight: 700; margin-bottom: 4px; }
.shop-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.shop-desc { font-size: 12px; color: var(--text2); margin-bottom: 10px; line-height: 1.6; }
.shop-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-tag {
  font-size: 11px; font-weight: 600;
  background: var(--pink); color: var(--coral);
  padding: 3px 10px; border-radius: 999px;
}

/* ===== フォト ===== */
.photo-section { background: var(--white); }
.photo-header { text-align: center; margin-bottom: 32px; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.photo-card {
  aspect-ratio: 1;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.photo-card.upload {
  background: var(--gray1);
  flex-direction: column; gap: 8px;
  font-size: 28px; color: var(--gray3);
  font-weight: 700; font-size: 13px;
  cursor: pointer; transition: background .2s;
  border: 2px dashed var(--gray2);
}
.photo-card.upload:hover { background: var(--pink); border-color: var(--coral); color: var(--coral); }
.photo-card.upload::before { content: '📷'; font-size: 28px; }
.photo-sponsor { font-size: 12px; color: var(--gray3); text-align: center; margin-top: 16px; }
.photo-sponsor a { color: var(--coral); }
.photo-cta { text-align: center; margin-top: 24px; }

/* ===== ゲーム ===== */
.games { background: var(--peach); }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.game-card {
  background: var(--white);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform .2s, box-shadow .2s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-bg {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; position: relative;
}
.game-bg-1 { background: linear-gradient(135deg, #FFE66D, #FF9F43); }
.game-bg-2 { background: linear-gradient(135deg, #A29BFE, #6C5CE7); }
.game-bg-3 { background: linear-gradient(135deg, #74B9FF, #0984E3); }
.game-new {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.9);
  color: var(--coral); font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.game-body { padding: 16px; }
.game-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.game-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--coral), var(--orange));
  padding: 64px 0;
}
.cta-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-heading { font-size: 24px; font-weight: 900; color: var(--white); margin-bottom: 8px; }
.cta-desc { font-size: 14px; color: rgba(255,255,255,.9); line-height: 1.7; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== レスポンシブ ===== */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr 240px 360px; gap: 20px; }
  .hero-swiper { width: 240px; height: 280px; }
  .hero-visual::after { width: 240px; height: 280px; }
}
@media (max-width: 900px) {
  /* タブレット：テキスト＋スライダー2カラム、カードを非表示 */
  .hero-inner { grid-template-columns: 1fr 240px; gap: 24px; }
  .hero-side { display: none; }
  .hero-swiper { width: 230px; height: 270px; }
  .hero-visual::after { width: 230px; height: 270px; }
}
@media (max-width: 640px) {
  /* スマホ：1カラム */
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { padding-bottom: 0; }
  .hero-swiper { width: 220px; height: 257px; margin: 0 auto; }
  .hero-visual::after { width: 220px; height: 257px; }
  .hero-label { margin: 0 auto 20px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-side { display: none; }
  .hero-wave { height: 60px; }
}
@media (max-width: 1000px) {
  .map-inner { grid-template-columns: 1fr; }
  .map-visual { height: 200px; }
}
