/* main-visual */
.main-visual {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 50%;
  background: url("../images/ensha2026.avif") center / cover no-repeat;
}

.main-visual h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,140,105,0.9);
  padding: 0.9em 2em 1.2em;
  border-radius: 1.0em;
  color: #fff;
  font-size: clamp(1rem, 3vw, 2.2rem);
  line-height: 1.3;
  z-index: 2;
  text-align: center;
  white-space: normal; 
  
}
/* メインタイトル*/
.main-visual-main {
  display: block;
  white-space: nowrap;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic Pro', 'Yu Gothic', sans-serif;
}
/* サブタイトル */
.main-visual-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.65em;
  opacity: 0.9;
  font-weight: normal;
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic Pro', 'Yu Gothic', sans-serif;
}
@media (max-width: 768px) {
  .main-visual h2 {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
  }
}

/* 波型SVG */
.main-visual .main-visual-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 2;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.1));
}

.main-visual-wave svg {
  width: 100%;
  height: 100%;
  transform: rotate(180deg);
}

.main-visual-wave path {
  fill: #fffdf2 !important;
}

.top-greeting p {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic Pro", "Yu Gothic", sans-serif;
  line-height: 1.8;
  margin-bottom: 1em;
  font-size: 1rem;
}

/* カード全体リンク */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* デフォルト */
.card {
  display: block;
  text-decoration: none;
  background-color: #fff;
  border-radius: 20px;
  padding: 20px;
  flex: 1 1 calc(25% - 20px);
  max-width: 220px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.06);
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.card img.card-img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 15px;
}

.card h3 {
  color: #ff7b7b;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.card p {
  font-size: 0.9rem;
  color: #555;
}

/* タブレットサイズ */
@media (max-width: 768px) {
  .card {
    flex: 1 1 calc(50% - 20px);
    max-width: none;
  }
}

/* スマホサイズ */
@media (max-width: 400px) {
  .card {
    flex: 1 1 90%;
  }
}

/* カード内画像 */
.card img.card-img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

/* PCホバー時：画像ズーム */
.card:hover img.card-img {
  transform: scale(1.05);
}

/* タブレット・スマホ：タッチ時の軽いズーム */
@media (max-width: 768px) {
  .card:active img.card-img {
    transform: scale(1.03);
  }
}

@media (max-width: 400px) {
  .card:active img.card-img {
    transform: scale(1.02);
  }
}
/* ホバー（PC用） */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* タップ（スマホ用） */
.card:active {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  transition: transform 0.1s, box-shadow 0.1s;
}

/* ニュース */
.news-item {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 18px 22px;
  border-radius: 20px;
  margin-bottom: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}

.news-item span.news-date {
  flex-shrink: 0;
  width: 120px;
  font-weight: bold;
  color: #ff7b7b;
  text-align: left;
  margin-right: 10px;
}

.news-item span.news-text {
  flex: 1;
  text-align: left;
  line-height: 1.5;
}

.fixed-news {
  border: 2px solid #ff8c69;
  background-color: #fff5f0;
  font-weight: bold;
  display: block;
  text-align: left;
  width: 100%;
}
/* 日付が空の場合 */
.news-item span.news-date:empty::before {
  content: "お知らせ";
  color: #ff7b7b;
  font-weight: bold;
  display: inline-block;
  width: 80px;
  text-align: center;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .news-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-item span.news-date {
    width: auto;
    margin-right: 0;
    margin-bottom: 5px;
  }

  .news-item span.news-text {
    width: 100%;
  }

  /* スマホ左寄せ */
  .fixed-news {
    text-align: left;
    width: 100%;
  }
}
/* スマホ表示でもニュース項目を横幅いっぱいに */
@media screen and (max-width: 768px) {
  #news .news-item {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
  }

  /* ニュースリンクも横幅いっぱいに */
  #news .news-link {
    display: block;
    width: 100%;
  }
}
/* 見学・入園案内 */
.highlight-icon {
  background-color: #fff4f0;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.1rem;
  display: inline-block;
  line-height: 1.4;
}




/* アクセス */
.access iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 20px;
  margin-top: 20px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .main-visual h2 { font-size: 1.0rem; padding: 10px 16px; }
  .card { width: 45%; }
}

@media (max-width: 400px) {
  .card { width: 90%; }
}



/* トップページ用 フォトギャラリー */
.top-gallery-grid {
  display: block;
  margin: 40px auto;
  max-width: 1200px;
}

/* 行ごとの flex */
.top-gallery-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
/* 画像自体のスタイル */
.top-gallery-grid img {
  border-radius: 12px;
  object-fit: cover;
  width: 220px;
  height: auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.evaluation-text {
  text-align: left;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.evaluation-text.center {
  text-align: center !important;
}
/* 枠全体リンク化 */
.news-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ホバーで枠を強調する場合 */
.news-link:hover .news-item {
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  transition: 0.3s;
}
