/* オーバーレイ本体（真っ白＋全画面） */
#intro-overlay {
  position: fixed;
  inset: 0;
  /* top, right, bottom, left: 0 */
  background: #fff;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* 実際の背景画像は ::before に載せる */
#intro-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  /* デフォルトは PC 用の画像 */
  background-image: var(--intro-pc);
  opacity: 0;
  /* 最初は透明 */
  transition: opacity 0.8s ease;
}

/* スマホ幅では SP 用画像に差し替え */
@media (max-width: 840px) {
  #intro-overlay::before {
    background-image: var(--intro-sp);
  }
}

/* 画像フェードイン用クラス */
#intro-overlay.show-image::before {
  opacity: 1;
}

/* 2秒後に全体をフェードアウトする用クラス */
#intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* イントロ中はスクロールさせない */
body.intro-active {
  overflow: hidden;
}


/* TOP */

#map {
  margin-top: 20px;
  height: 500px;
  border-radius: 14px;
}

.btn {
  cursor: pointer;
}

.btn p {
  font-size: 20px;
  font-weight: bold;
}

.kindLinks {
  margin-bottom: 10px;
}

@media (max-width: 440px) {
  .kindLinks {
    margin-bottom: -10px;
  }
}


footer .footer_inner h2 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.slider_item .img {
  aspect-ratio: 1/1;
  object-fit: cover;
  overflow: hidden;
}

.slider_item .img img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
}


.contents main .sec03 .event_box.first {
  padding-bottom: 130px;
}



/* イベント情報 */
.contents main .sec03 .event_list {
  padding: 0 10px;
  display: flex;
  gap: 20px;
}

.contents main .sec03 .event_list .event_box {
  margin-bottom: 5%;
  padding: 0px;
  width: 96%;
  display: inline-block;
  height: min-content;
}

@media screen and (max-width: 1353px) {
  .contents main .sec03 .event_list {
    padding: 0;
    flex-direction: column;
  }

  .contents main .sec03 .event_list .event_box {
    margin: 0 10px 10px;
    padding-top: 12px;
    width: calc(100% - 20px);
    display: block;
    height: auto;
  }
}

.contents main .sec03 .event_list .event_box .ttl {
  padding: 32px 24px;
  background-image: url(../images/event_box_bg.png);
  background-size: 92px 112px;
  background-repeat: no-repeat;
  background-position: top right;
}

.contents main .sec03 .event_list .event_box .event_wrap {
  padding: 0 20px 20px;
}


.event_sec {
  margin-top: 32px;
  padding-top: 8px;
  border-top: 1px solid #3FB0D3;
}

.ev {
  padding: 20px;
  border: 1px solid pink;
  border-radius: 12px;
  margin-top: 16px;
}

.sapporo .event_sec {
  border-top: 1px solid #E06073;
}

.event_sec:first-of-type {
  margin-top: 0;
}

.event_sec h3.tight {
  margin-top: 8px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.event_sec h4 {
  font-size: 1.2rem;
}

.btn+h4 {
  margin-top: 32px;
}

h4+.txt {
  margin-top: 8px;
}

.event_sec .tag {
  padding: 0 8px;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #E06073;
  border: 3px solid #E06073;
  border-radius: 20px;
}

@media screen and (max-width: 1020px) {
  .event_sec .tag {
    font-size: 0.85rem;
  }
}

.event_sec .impress {
  margin: 16px auto 0;
  padding: 0.5rem 0;
  width: 90%;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: #E06073;
  border: 6px solid #E06073;
  border-radius: 40px;
  line-height: 1.6rem;
}

.event_sec .impress.impress--hard {
  border-radius: 16px;
}

.event_sec .impress.impress--noborder {
  border: none;
}

.event_sec .impress--sm {
  font-size: 1rem;
}

.impress+.txt {
  margin-top: 24px;
}

@media screen and (max-width: 1020px) {
  .event_sec .impress {
    font-size: 1.1rem;
    border: 4px solid #E06073;
    line-height: 1.4rem;
  }

  .event_sec .impress--sm {
    font-size: 0.8rem;
  }
}

.contents main .sec03 .event_box .event_sec .btn a {
  margin: 20px auto 0;
  border-radius: 40px;
  width: 90%;
  font-weight: 900;
}

.contents main .sec03 .event_box .event_sec .btn.btn--sm a {
  margin: 20px auto 0;
  width: 80%;
  height: 42px;
  border-radius: 20px;
  font-size: 1rem;
}

.btn--sm+.btn--sm {
  margin-top: -10px;
}

@media screen and (max-width: 1020px) {
  .contents main .sec03 .event_box .event_sec .btn.btn--sm a {
    height: 36px;
    font-size: 0.85rem;
  }
}

.contents main .sec03 .event_box .txt {
  margin-bottom: 0;
  /* font-size: 1rem; */
}

.contents main .sec03 .event_box .txt.txt--mt {
  margin-top: 24px;
}

.contents main .sec03 .event_box .txt.txt--bold {
  font-weight: 700;
}

.contents main .sec03 .event_box .txt.txt--center {
  text-align: center;
}

@media screen and (max-width: 1020px) {
  .contents main .sec03 .event_box .txt {
    margin-top: 12px;
  }
}

.contents main .sec03 .event_box .event_sec .imgBox {
  margin-top: 24px;
}

.contents main .sec03 .event_box .event_sec .imgBox img {
  width: 100%;
  height: auto;
}

.contents main .sec03 .event_box .event_sec .imgBox .imgCaption {
  margin-top: -12px;
  font-size: 0.75rem;
  font-weight: 400;
  text-align: right;
}

/* チラシ */
.contents main .sec01 .area_inner .area_flyer {
  display: block;
  width: 100%;
  margin-top: 2rem;
}

.contents main .sec01 .area_inner .area_flyer img {
  width: 100%;
  height: auto;
}

.contents main .sec01 .area_inner .area_flyer+a {
  margin-top: 8px;
  display: block;
}

@media screen and (max-width: 1020px) {
  .contents main .sec01 .area_inner .area_flyer {
    margin-top: 1rem;
  }
}


/* search */
.pagenationArea {
  margin-top: 15px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.pagenationArea span,
.pagenationArea a {
  font-size: 20px;
}

.pagenationArea a {
  color: #4682b4;
}


/* detail */
.fair_item+.fair_item {
  margin-top: 45px;
}

.fair_item .img {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.fair_item .img img {
  width: 100%;
  height: auto;
}

.detail .mv img {
  width: 100%;
  height: auto;
}

.detail .mv .thumb ul li {
  flex-grow: 1;
}


/* 404 */
.page404_inner {
  min-height: 45vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 1020px) {
  .page404_inner {
    padding: 32px 16px !important;
    min-height: inherit;
  }
}