/* ============================================================
   top.css — TOPページ専用スタイル
   ============================================================ */

/* ---------- ヒーロースライダー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #FFFDF5;
}

.hero-slider {
  position: relative;
  width: 100%;
  /* PC: 横長バナー比率 */
  aspect-ratio: 16 / 5;
  overflow: hidden;
}

/* 全スライドを同じ absolute で重ねる → 高さ崩れなし */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active { opacity: 1; }

.hero-slide__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ---- スライダードット ---- */
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

/* スライダーナビ */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s;
}

.slider-arrow:hover { background: var(--color-white); }
.slider-arrow--prev { left: 12px; }
.slider-arrow--next { right: 12px; }

.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.slider-dot.is-active { background: var(--color-primary); }

/* ---------- お知らせ ＆ 園について（2カラム） ---------- */
.top-section-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 60px 0;
}

/* お知らせ */
.news-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
  border: 1px solid var(--color-border);
}

.news-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.news-card__more {
  font-size: 0.82rem;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
}

.news-list__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.88rem;
}

.news-list__item:last-child { border-bottom: none; }

.news-list__date {
  color: var(--color-text-light);
  font-size: 0.8rem;
  white-space: nowrap;
  padding-top: 2px;
}

.news-list__title {
  flex: 1;
  color: var(--color-text);
  line-height: 1.5;
  transition: color 0.2s;
}

.news-list__title:hover { color: var(--color-primary); }

/* 園について */
.about-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.about-card__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.about-card__text {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.8;
}

.about-card__img {
  width: 160px;
  height: 120px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.about-card__img.placeholder { width: 160px; height: 120px; }

/* ---------- 園での1日 ---------- */
.section-daily {
  background: var(--color-beige);
  padding: 60px 0;
}

.daily-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 12px;
}

.daily-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 88px;
  text-align: center;
  position: relative;
}

/* コネクター（矢印・ドット） */
.daily-item:not(:last-child)::after {
  content: attr(data-connector);
  position: absolute;
  right: -14px;
  top: 28px;
  font-size: 1rem;
  color: var(--color-primary);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -2px;
}

.daily-item__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.daily-item__icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.daily-item__icon svg {
  width: 34px;
  height: 34px;
}

/* アイコン背景カラー */
.daily-item__icon--arrival  { background: #FFF0DC; }
.daily-item__icon--morning  { background: #FFFAD4; }
.daily-item__icon--activity { background: #E8F5E0; }
.daily-item__icon--lunch    { background: #FFF3E0; }
.daily-item__icon--nap      { background: #EEF2FF; }
.daily-item__icon--snack    { background: #FFF0E0; }
.daily-item__icon--pickup   { background: #E0F4F8; }
.daily-item__icon--extended { background: #F0F0F0; }
.daily-item__icon--close    { background: #E8EAF6; }

.daily-item__time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
  font-family: var(--font-round);
}

.daily-item__label {
  font-size: 0.7rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* ---------- こだわり3カラム ---------- */
.section-features {
  padding: 60px 0;
  background: var(--color-cream);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.feature-card__num {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-round);
  font-size: 1.6rem;
  font-weight: 700;
  padding: 14px 20px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-card__num.orange { background: var(--color-orange); }
.feature-card__num.pink   { background: var(--color-pink); }

.feature-card__num-title {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-main);
  line-height: 1.3;
}

.feature-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.feature-card__img.placeholder { height: 180px; border-radius: 0; }

.feature-card__body {
  padding: 16px 20px 20px;
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.7;
}

/* ---------- フォトギャラリー ---------- */
.section-gallery {
  padding: 60px 0;
  background: var(--color-beige);
}

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

.gallery-more {
  font-size: 0.85rem;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
}

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

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.gallery-item img,
.gallery-item .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* ============================================================
   レスポンシブ（TOP）
   ============================================================ */
@media (max-width: 767px) {
  .hero-slider { height: auto; min-height: 320px; }

  /* SP: 縦長気味のバナー比率 */
  .hero-slider {
    aspect-ratio: 3 / 2;
  }

  .top-section-2col {
    grid-template-columns: 1fr;
    padding: 32px 0;
  }

  .about-card__body {
    grid-template-columns: 1fr;
  }

  .about-card__img.placeholder {
    width: 100%;
    height: 160px;
  }

  .daily-timeline {
    gap: 0;
    justify-content: flex-start;
  }

  .daily-item {
    min-width: 72px;
    flex: 0 0 auto;
  }

  .daily-item__icon {
    width: 52px;
    height: 52px;
  }

  .daily-item__icon svg {
    width: 26px;
    height: 26px;
  }

  .daily-item:not(:last-child)::after {
    right: -10px;
    font-size: 0.85rem;
  }

  .features-grid { grid-template-columns: 1fr; }

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

@media (min-width: 768px) and (max-width: 1024px) {
  .top-section-2col { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
