@charset "utf-8";
/* ============================================================================================================
   TOP > お知らせ・イベント情報（template-parts/top/news-event.php）
   ※SCSSのコンパイル環境を通していないため、当ファイルは素のCSSで直接編集する
   ※色は style.css（scss/setting/_color.scss）の値に準拠
      $green01: #003600 ／ $green02: #CEF4D2 ／ $green03: #41BB7B
   ※SP表示は 375px 基準の vw 換算（旧 size_sp() 相当）
   ※見出しは共通クラス section-hgroup / section-heading を使用（style.css側）
============================================================================================================ */

.top-news-event {
  padding: 100px 0 110px;
  background: #003600 url(../img/top/bg_movie.png) no-repeat center/cover;
}

/* ------------------------------------------------------------
   top-intro に残る余白と背景を削除

   このセクションは中身を順次非表示にしてきた結果、実質 top-contents
   （歴史・文化スポット巡りのスライダー）だけが残っている。
   ・intro内のお知らせ(top-intro__news)を非表示 → その重なり分の padding-top
   ・キャッチコピー／動画／リード文を非表示 → top-intro_comingsoon が空箱として残り、
     margin-top:80px + margin-bottom:40px のぶん bg_intro.jpg が帯状に見える
   これらを 0 にして、背景が覗く隙間をなくす。
   （top-contents 自身が padding: 76px 0 80px を持つため、セクションの余白は確保される）
------------------------------------------------------------ */
.top-intro {
  padding-top: 0;
  padding-bottom: 0;
}

/* 中身が全て非表示になり、余白だけ残った空箱 */
.top-intro_comingsoon {
  display: none;
}

/* 背景が濃緑のため、共通見出し(style.css)の文字色を白へ上書きする（top-movie と同じ扱い） */
.top-news-event .section-heading.en,
.top-news-event .section-heading.ja {
  color: #fff;
}

.top-news-event__inner {
  max-width: 1280px;
  width: 100%;
  padding: 0 40px;
  margin: 0 auto;
}

/* カード一覧
------------------------------------------------------------ */
.top-news-event__list {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-align-items: stretch;
  align-items: stretch;
  gap: 30px 20px;
  width: 100%;
  margin-top: 50px;
}

.top-news-event__card {
  width: calc((100% - 60px) / 4);
}

.top-news-event__cardLink {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-flex-direction: column;
  flex-direction: column;
  height: 100%;
  padding: 14px 16px 20px;
  background: #fff;
}

.top-news-event__cardCat {
  font-size: 14px;
  font-size: 0.875rem;
  line-height: 1.42857;
  letter-spacing: 0.04em;
  text-align: center;
  -webkit-align-self: flex-end;
  align-self: flex-end;
  min-width: 96px;
  padding: 3px 14px;
}

.top-news-event__cardCat.is-event {
  background: #F7C9AC;
}

.top-news-event__cardCat.is-news {
  background: #CEE7F4;
}

.top-news-event__cardDate {
  font-size: 14px;
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  display: block;
  margin-top: 10px;
}

.top-news-event__cardTtl {
  font-size: 17px;
  font-size: 1.0625rem;
  line-height: 1.58824;
  letter-spacing: 0.02em;
  font-weight: 700;
  margin-top: 6px;
  /* 2行で固定。1行でも2行分の高さを確保し、超過分は「...」で省略 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 3.1765em;
}

.top-news-event__cardThumb {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 62%;
  margin-top: 14px;
  overflow: hidden;
}

.top-news-event__cardThumb img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.top-news-event__cardArea {
  font-size: 14px;
  font-size: 0.875rem;
  line-height: 1.42857;
  letter-spacing: 0.04em;
  text-align: center;
  display: inline-block;
  min-width: 120px;
  padding: 4px 14px;
  margin-top: 14px;
  background: #CEF4D2;
}

.top-news-event__cardMonths {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-align-content: flex-start;
  align-content: flex-start;
  gap: 6px;
  margin-top: 10px;
  /* タグの数が違ってもカード内の位置がズレないよう2行分を確保 */
  min-height: 52px;
}

.top-news-event__cardMonths li {
  font-size: 13px;
  font-size: 0.8125rem;
  line-height: 1.46154;
  letter-spacing: 0.02em;
  text-align: center;
  min-width: 44px;
  padding: 2px 8px;
  background: #F9C7DE;
}

.top-news-event__cardTxt {
  font-size: 14px;
  font-size: 0.875rem;
  line-height: 1.71429;
  letter-spacing: 0.04em;
  margin-top: 12px;
  /* 3行で固定。4行目以降は「...」で省略し、3行未満でも高さを確保する */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 5.1429em;
}

.top-news-event__cardMore {
  font-size: 14px;
  font-size: 0.875rem;
  line-height: 1.42857;
  letter-spacing: 0.06em;
  text-align: right;
  margin-top: auto;
  padding-top: 14px;
}

.top-news-event__cardMore:after {
  content: ">>>";
  margin-left: 4px;
}

/* 記事が0件のとき（背景が濃緑のため文字は白） */
.top-news-event__none {
  font-size: 21px;
  font-size: 1.3125rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-align: center;
  color: #fff;
  padding: 60px 0 10px;
}

/* もっと見るボタン（TOPの既存ボタン top-event__btn に合わせる）
------------------------------------------------------------ */
.top-news-event__btnWrap {
  text-align: center;
  margin-top: 50px;
}

.top-news-event__btn {
  font-size: 18px;
  font-size: 1.125rem;
  line-height: 1.44444;
  letter-spacing: 0.1em;
  text-align: left;
  display: inline-block;
  position: relative;
  max-width: 244px;
  width: 100%;
  padding: 17px 0 19px 47px;
  border-radius: 11px;
  /* 背景が濃緑のため、ボタンは白地＋濃緑文字にする */
  color: #003600;
  background: #fff;
}

.top-news-event__btn:before {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  z-index: 1;
  width: 20px;
  height: 20px;
  background: url(../img/top/arw_btn-more.svg) no-repeat center/cover;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

/* ============================================================================================================
   タブレット（〜1024px）
============================================================================================================ */
@media (max-width: 1024px) {
  .top-news-event {
    padding: 70px 0 80px;
  }
  .top-news-event__inner {
    padding: 0 30px;
  }
  .top-news-event__card {
    width: calc((100% - 20px) / 2);
  }
}

/* ============================================================================================================
   SP（〜767px）※375px基準のvw換算
============================================================================================================ */
@media (max-width: 767px) {
  .top-news-event {
    padding: 12vw 0 13.33333vw;
  }
  /* TOPの既存セクション（top-contents / top-event）と同じく中央寄せにする */
  .top-news-event__inner {
    max-width: 88vw;
    padding: 0;
  }
  /* 見出しは共通(style.css)の指定に任せる（SP: 28px相当） */
  .top-news-event__list {
    display: block;
    margin-top: 8vw;
  }
  .top-news-event__card {
    width: 100%;
  }
  .top-news-event__card:nth-of-type(n + 2) {
    margin-top: 6.4vw;
  }
  .top-news-event__cardLink {
    padding: 3.73333vw 4.26667vw 5.33333vw;
  }
  .top-news-event__cardCat {
    font-size: 13px;
    font-size: 3.46667vw;
    min-width: 24vw;
    padding: 0.8vw 3.73333vw;
  }
  .top-news-event__cardDate {
    font-size: 13px;
    font-size: 3.46667vw;
    margin-top: 2.66667vw;
  }
  .top-news-event__cardTtl {
    font-size: 18px;
    font-size: 4.8vw;
    line-height: 1.55556;
    margin-top: 1.6vw;
    min-height: 3.11111em;
  }
  .top-news-event__cardThumb {
    padding-top: 54.54545%;
    margin-top: 3.73333vw;
  }
  .top-news-event__cardArea {
    font-size: 14px;
    font-size: 3.73333vw;
    min-width: 34.66667vw;
    padding: 1.06667vw 4.26667vw;
    margin-top: 3.73333vw;
  }
  .top-news-event__cardMonths {
    gap: 1.6vw;
    margin-top: 2.66667vw;
    min-height: 13.6vw;
  }
  .top-news-event__cardMonths li {
    font-size: 13px;
    font-size: 3.46667vw;
    min-width: 12.26667vw;
    padding: 0.53333vw 2.13333vw;
  }
  .top-news-event__cardTxt {
    font-size: 14px;
    font-size: 3.73333vw;
    line-height: 1.71429;
    margin-top: 3.2vw;
  }
  .top-news-event__cardMore {
    font-size: 14px;
    font-size: 3.73333vw;
    padding-top: 3.73333vw;
  }
  .top-news-event__btnWrap {
    margin-top: 9.33333vw;
  }
  .top-news-event__btn {
    font-size: 19px;
    font-size: 5.06667vw;
    line-height: 1.42105;
    letter-spacing: 0.1em;
    text-align: center;
    max-width: 88vw;
    padding: 5.06667vw 0 5.33333vw;
    border-radius: 2.66667vw;
  }
  .top-news-event__btn:before {
    right: 6.02667vw;
    width: 5.33333vw;
    height: 5.33333vw;
  }
  .top-news-event__none {
    font-size: 18px;
    font-size: 4.8vw;
    padding: 10.66667vw 0 2.66667vw;
  }
}

/* 先頭固定の記事に付けるピンアイコン（inc/news_event_pinned.php）
------------------------------------------------------------ */
.top-news-event__cardLink {
  position: relative;
}

.top-news-event__cardPin {
  position: absolute;
  top: 12px;
  left: 14px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: #CEF4D2;
  color: #003600;
}

@media (max-width: 767px) {
  .top-news-event__cardPin {
    top: 3.2vw;
    left: 3.73333vw;
    width: 6.93333vw;
    height: 6.93333vw;
    padding: 1.33333vw;
  }
}
