@charset "UTF-8";
/* ================================================================
   トップページ 新セクション用CSS
   対象: 追従サイドバナー / ヒーロー / 3連オーバーラップバナー / ニュース
   ※ CSS変数は header_footer.css の :root と共存
================================================================ */

/* フロントページ全体ラッパー（イラストの絶対配置基準） */
.front-page-main {
  position: relative;
  overflow-x: clip;
  background: var(--bg-color);
}

/* ================================================================
   ヒーローセクション（CSSクロスフェードスライダー）
   - 画像は position:absolute で重ねてクロスフェード
   - アニメーションは front-page.php のインラインスタイルで動的生成
================================================================ */
.hero-section {
  position: relative;
  height: 78vh;
  min-height: 500px;
  max-height: 860px;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: opacity;
}

/* キャッチコピー */
.hero-content {
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0 6vw;
  color: #fff;
}

.hero-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;          /* WCAG: 最小16px */
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 10px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;          /* WCAG: 最小16px */
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* スクロール誘導ライン */
.hero-scroll-indicator {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.hero-scroll-indicator__line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8));
  animation: hero-scroll-line 2s ease-in-out infinite;
}

@keyframes hero-scroll-line {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

@media (max-width: 960px) {
  .hero-section {
    height: 70vh;
  }
  .hero-content {
    bottom: 90px;
    padding: 0 5vw;
  }
}

/* ================================================================
   3連オーバーラップバナー
   ヒーローに margin-top: -60px でネガティブマージン
================================================================ */
.overlap-banners {
  position: relative;   /* イラストの絶対配置基準 */
  z-index: 30;
  margin-top: -60px;
}

.overlap-banners__inner {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 5px 30px; /* 見切れ防止と下部スクロール用の余白 */
  scrollbar-width: none;
}
.overlap-banners__inner::-webkit-scrollbar {
  display: none;
}

/* スマホ専用スライドナビゲーション */
.overlap-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 2vw; /* スマホでの両端からの距離 */
  pointer-events: none; /* 空白部分はクリック透過 */
  z-index: 10;
}

.overlap-nav__btn {
  pointer-events: auto; /* ボタン本体はクリック可能 */
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #E5E5E5;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #32373C;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: opacity 0.3s ease, background 0.2s ease;
  padding: 0;
  font-size: 16px;
}

.overlap-nav__btn:active {
  background: #f5f5f5;
}

/* オーバーラップカード */
.overlap-card {
  flex: 0 0 85%; /* スマホでは85%の幅でスライド */
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  padding: 24px;
  text-decoration: none;
  color: #32373C;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 120px;
}

.overlap-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

.overlap-card__badge {
  display: inline-block;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 13px;          /* バッジは視覚ラベルのため最小例外 */
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
  width: fit-content;
}

.overlap-card__badge--dark {
  background-color: #3a4a3a;
  color: #fff;
}

.overlap-card__badge--accent {
  background-color: #C2D725;
  color: #2a3600;
}

.overlap-card__title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #32373C;
  line-height: 1.5;
  margin: 0 0 8px;
}

.overlap-card__desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: #666;
  margin: 0 0 8px;
}

.overlap-card__arrow {
  font-size: 16px;
  color: #C2D725;
  font-weight: 700;
  margin-top: auto;
  align-self: flex-end;
  position: absolute;
  bottom: 16px;
  right: 16px;
}
@media(min-width:580px){
  .overlap-card{
    flex: 0 0 45%;
  }
}
@media (min-width: 768px) {
  .overlap-banners{
    padding: 0 5vw;
  }
  .overlap-banners__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
    overflow-x: visible;
  }
  .overlap-card {
    flex: auto; /* PC表示ではFlex幅指定を解除 */
  }
  .overlap-banners {
    margin-top: -72px;
  }
}

/* ================================================================
   新着情報セクション
================================================================ */
.news-section {
  padding: 72px 0 80px;
}

.news-section__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 5vw;
}

/* ニュースグリッド: SP=1列, PC=2列 */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
  }
}

/* 各記事カード */
.news-card {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.news-card__link {
  display: block;
  padding: 18px 4px;
  text-decoration: none;
  color: #32373C;
  transition: opacity 0.2s ease;
}

.news-card__link:hover {
  opacity: 0.7;
}

/* メタ行（日付＋バッジ） */
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.news-card__date {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: #888;
  letter-spacing: 1px;
  white-space: nowrap;
}

.news-card__badge {
  display: inline-block;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  background-color: #C2D725;
  color: #2a3600;
  white-space: nowrap;
}

/* タイトル（2行で省略） */
.news-card__title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #4D4600;
  line-height: 1.6;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 抜粋（2行で省略して縦長を防ぐ） */
.news-card__excerpt {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: #777;
  line-height: 1.75;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 「一覧を見る」ボタン */
.news-section__more {
  display: flex;
  justify-content: flex-end;
  margin-top: 36px;
}

/* ================================================================
   装飾イラスト（ナツハゼ：紫の実）
   .front-page-main（position:relative）を基準に右端に配置
================================================================ */
.hero-ill-wrap {
  /* SP: 非表示（画面幅が狭いとレイアウトが崩れるため） */
  display: none;
  pointer-events: none;
}

.hero-ill {
  display: block;
  width: 180px;
  height: auto;
  /* 自然な揺れ感アニメーション */
  animation: ill-float 6s ease-in-out infinite;
}

@keyframes ill-float {
  0%   { transform: translateY(0px)   rotate(0deg); }
  50%  { transform: translateY(-8px)  rotate(1.5deg); }
  100% { transform: translateY(0px)   rotate(0deg); }
}

/* タブレット以上で表示 */
@media (min-width: 768px) {
  .hero-ill-wrap {
    display: block;
    /* .front-page-main（position:relative）を基準に絶対配置
       ヒーロー(78vh)の下端付近 + バナーと重なる位置 */
    position: absolute;
    top: calc(78vh - 120px); /* ヒーロー下端あたりに位置 */
    right: 0;
    /* ノーマルフローを占有しない */
    width: 0;
    height: 0;
    overflow: visible;
    z-index: 35;
  }

  .hero-ill {
    position: absolute;
    top: 0;
    right: 8px; /* 右端から少し内側 */
    width: 200px;
  }
}

@media (min-width: 1200px) {
  .hero-ill-wrap {
    top: calc(78vh - 140px);
  }
  .hero-ill {
    width: 260px;
    right: 16px;
  }
}
