@charset "utf-8";

/*====================================================================================================
  WHOLE
====================================================================================================*/

/*====================================================================================================
  #TOPPAGE
====================================================================================================*/
#toppage {
  position: relative;
  width: 100%;
}


/*====================================================================================================
  CONTENT
====================================================================================================*/

/*---------------------------------------------------------------------------
  .mainimg
---------------------------------------------------------------------------*/
#toppage .mainimg {
  width: 100%;
  background-image: url(../../image/top/mainimg-bg.svg);
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center bottom;
  position: relative;
}
#toppage ul.slide {
  margin: 0 auto;
  width: 96%;
  max-width: 2400px;
  list-style: none;
}
#toppage ul.slide img {
  width: 100%;
  height: auto;
  border-radius: clamp(10px, 3vw, 30px);
  object-fit: cover;
}
/* ドット */
.mainimg .slick-dots {
  position: absolute;
  bottom: 20px;
  z-index: 1001;
}
/* ドットの色とサイズ */
.mainimg .slick-dots li button:before {
  color: #ffffff;
  font-size: 14px;
  opacity: 0.5; 
}
/* 該当画像がアクティブ時のドット */
.mainimg .slick-dots li.slick-active button:before {
  color: var(--color-primary);
  opacity: 1;      /* アクティブ時はくっきり */
}

#toppage .content_wrap {
  position: relative;
  width: 100%;
}
#toppage .wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}
#toppage .wrap,
#toppage .catch {
  position: relative;
  z-index: 3;
}
#toppage h2,
#toppage h3 {
  width: 100%;
  font-family: "Zen Old Mincho", serif;
  font-weight: 900;
  line-height: 1;
  color: var(--color-heading);
}
#toppage h2 {
  font-size: clamp(1.5rem, 1.136rem + 1.55vw, 3rem); /* 375px:24px, 1920px:48px */
  text-align: center;
  margin-bottom: 2.5rem; /* 40px */
}
#toppage h3 {
  display: flex;
  font-size: clamp(1.313rem, 1.024rem + 1.23vw, 2.5rem); /* 375px:21px, 1920px:40px */
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem; /* 24px */
}
#toppage h3::before {
  content: "";
  display: block;
  width: 52px;
  height: 27px;
  background-image: url(../../image/h2-deco.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/*---------------------------------------------------------------------------
  .content_wrap .catch
---------------------------------------------------------------------------*/
#toppage .catch {
  width: 100%;
}
#toppage .catch_wrap {
  padding-top: var(--content-margin);
  margin-bottom: var(--content-margin);
  margin-top: -1px;
}
#toppage .catch_img {
  width: clamp(240px, 80vw, 664px);
  height: auto;
  margin: 0 auto;
  aspect-ratio: 1335 / 487;
}
#toppage .catch_img img {
  width: 100%;
  height: auto;
}

/*---------------------------------------------------------------------------
  .content_wrap .intro
---------------------------------------------------------------------------*/
#toppage .intro {
  width: 100%;
  position: relative;
  background-color: var(--color-primary);
  background-image: 
      url(../../image/top/catch-wave.svg), /* 下部曲線の画像 */
      url(../../image/top/bg-effect.png);  /* エフェクト画像 */
  background-size:
    100% auto,
    cover;
  background-position:
    center top,
    center;
  background-repeat:
    no-repeat,
    no-repeat;
  background-blend-mode:
    normal,
    multiply; /* 乗算 */
}
#toppage .intro::before {
  content: "";
  display: block;
  position: absolute;
  top: 15vw;
  left: 0;
  width: 100%;
  aspect-ratio: 1920 / 442;
  background-image: url(../../image/top/white-wave1.svg);
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center top;
  z-index: 0;
  pointer-events: none;
}
#toppage .intro::after {
  content: "";
  display: block;
  position: absolute;
  top: min(85vw, 2000px);  /* 85vw(1632/1920),800px小さい方を適用 */
  left: 0;
  width: 100%;
  aspect-ratio: 1920 / 297;
  background-image: url(../../image/top/white-wave2.svg);
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center bottom;
  z-index: 0;
  pointer-events: none;
}

/*---------------------------------------------------------------------------
  .info_wrap
---------------------------------------------------------------------------*/
#toppage .info_wrap {
  width: 100%;
  margin: 0 auto;
}
#toppage .info_inner {
  width: 100%;
  display: flex;
  gap: 40px;
  padding-inline: 4%;
  margin-bottom: var(--content-margin);
}
#toppage .info_inner:nth-of-type(2) {
  flex-direction: row-reverse;
}
#toppage .info_come {
  /* 1060px(1100px - gap40px) に対する 550px の割合 */
  width: calc((550 / 1060) * (100% - 40px));
}
#toppage .info_img {
  /* 1060px に対する 510px の割合 */
  width: calc((510 / 1060) * (100% - 40px));
  display: flex;
  align-items: flex-start;
}
#toppage .info_img_l,
#toppage .info_img_r {
width: 58.82%; /* 300px / 親510px = 58.82% */
  height: auto;
  aspect-ratio: 3 / 2; /* 元の 300x200 の比率を維持 */
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
#toppage .info_img_l img,
#toppage .info_img_r img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#toppage .info_img_l {
  position: relative;
  z-index: 1;
}
#toppage .info_img_r {
  position: relative;
  z-index: 2;
  margin-left: -19.6%; /* -100px / 親510px = -19.6% */
  margin-top: 30.39%;  /* 155px / 親510px = 30.39% (親の横幅基準で高さを確保) */
}

/* かえるボタン表示用 */
#toppage .info_img_l input[name="openWin"][type="image"],
#toppage .info_img_r input[name="openWin"][type="image"] {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 9999;
}

/*---------------------------------------------------------------------------
  .card_wrap
---------------------------------------------------------------------------*/
#toppage .card_wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: var(--content-margin);
}
#toppage .card_inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: calc((100% - 40px) / 3);
  max-width: 600px;
  padding: clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px) clamp(24px, 4vw, 48px);
  background: #fff;
  border-radius: 15px;
  border: 4px solid var(--color-beige);
}
#toppage .card_img {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
}
#toppage .card_img img {
  border-radius: 10px;
  border: 1px solid var(--color-beige);
}
#toppage .card_inner h4 {
  width: 100%; 
  text-align: center;
  font-weight: 700;
	font-size: clamp(1.188rem, 1.051rem + 0.58vw, 1.75rem); /* 375px:19px, 1920px:40px */
  color: var(--color-heading);
}

/*---------------------------------------------------------------------------
  .btn
---------------------------------------------------------------------------*/
#toppage .btn {
  text-align: center;
  margin-top: auto;
}

#toppage .btn a {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-width: 200px;
  padding: clamp(8px, 1.5vw, 16px) clamp(20px, 4vw, 40px);
  border: 2px solid var(--color-brown);
  border-radius: 15px;
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  overflow: hidden;
  background-image: linear-gradient(to right, var(--color-orange) 50%, var(--color-primary) 50%);
  background-size: 200% 100%;
  background-position: right center;
  transition: background-position 0.3s ease-in-out; /* hover時色変わりのスピード */
}
#toppage .btn a::after {
  content: "";
  display: block;
  width: 17px;
  height: 13px;
  background-image: url(../image/link-btn-arrow.svg); 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease-in-out;
}
#toppage .btn a:hover {
  background-position: left center;
}

#toppage .btn a:hover::after {
  transform: translateX(4px);
}

/*---------------------------------------------------------------------------
  .content_wrap .direction
---------------------------------------------------------------------------*/
#toppage .direction {
  background: var(--color-secondary);
}

/*---------------------------------------------------------------------------
  .news
---------------------------------------------------------------------------*/
#toppage .news {
  padding-bottom: var(--content-margin);
}
#toppage .news_wrap .btn {
  margin-bottom: 2rem;
}
/* 過去のお知らせがある時のみ表示 */
.news_wrap > p.past {
  display: none;
}
.news_wrap:has(.nendo_list li) > p.past {
  display: block;
}

/*---------------------------------------------------------------------------
  .schedule
---------------------------------------------------------------------------*/
#toppage .schedule {
  width: 100%;
  padding-top: calc(var(--content-margin) / 2);
  padding-inline: 2%;
  margin-bottom: var(--content-margin);
}
#toppage .schedule iframe {
  padding: 5%;
  background: #fff;
  border-radius: 15px;
  margin-bottom: calc(var(--content-margin) / 2);
}

/*---------------------------------------------------------------------------
  .area_link
---------------------------------------------------------------------------*/
#toppage .area_link {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: var(--content-margin);
}

/*---------------------------------------------------------------------------
  .sns_access
---------------------------------------------------------------------------*/
#toppage .sns_access {
  display: grid;
  column-gap: clamp(25px, 4vw, 50px);
  row-gap: var(--content-margin);
  grid-template-columns: 1fr 2fr;
  justify-content: center;
  padding-bottom: var(--content-margin);
}
#toppage .fb {
  width: auto;
  height: auto;
}

