/* =============================================================
fv
============================================================= */
.fv {
  padding-block: 0;
}

.fv-inner {
  position: relative;
  display: flex;
  flex-direction: column;
}

.fv-title {
  order: 1;
  margin-inline: auto;
}

.fv-image {
  position: relative;
  order: 0;
  margin-bottom: 80px;
}

.floating-banner {
  position: absolute;
  z-index: 5;
  right: 3%;
  bottom: -50px;
  width: clamp(150px, 20vw, 270px);
}
/* slider */
.fv-slider {
  height: 100%;
}
@keyframes zoomUp {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}
.fv-slider .swiper-slide-active img,
.fv-slider .swiper-slide-duplicate-active img,
.fv-slider .swiper-slide-prev img {
  animation: zoomUp 15s linear 0s normal both;
}
.fv-slider .swiper-slide img {
  max-height: 800px;
  height:auto;
  width: 100%;
}
/* responsive */
/* @media screen and (min-width: 600px) {
  .fv-image {
    min-height: 700px;
  }
} */

@media screen and (min-width: 1024px) {
  .fv-title {
    position: absolute;
    z-index: 5;
    top: 5%;
    left: 0%;
    width: clamp(80px, 10vw, 150px);
  }
  .fv-image {
    margin-bottom: 0;
  }
  .fv-image::before {
    content: "";
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
    background-color: var(--color--primary);
  }
	
	
/* 右側の 65px 幅のバー */
.fv-image::after{
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;                    /* →右寄せ */
  width: 60px;
  height: 100%;
  background-color: var(--color--primary);
}	
	
}
@media screen and (min-width: 2300px) {
  .fv-slider {
    max-height: 1000px;
  }
}
/* =============================================================
about
============================================================= */

.top-about-title {
  font-weight:900;
  font-size: clamp(1.25rem, 0.677rem + 1.3781vw, 2rem);
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: max(3.64vw, 20px);
  font-family: "Noto Serif JP",;
}
.top-about-box {
  /*display: flex;*//*動画が入ったら解除する*/
  width:100%;
  margin:0 auto;
  flex-direction: column;
  row-gap: 30px;
  margin-bottom: max(3.125vw, 70px);
}
.top-about-lead {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(0.8125rem, 0.585rem + 0.9709vw, 1.5rem);
  letter-spacing: -0.02em;
}
.top-about-movie {
  aspect-ratio: 320/190;
}
.top-about-list {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  margin-bottom: max(3.2vw, 60px);
}

.top-about-card {
  position: relative;
  padding: 1.2rem;
}
.top-about-card::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  content: "";
  width: 100%;
  height: 70%;
  border-radius: 10px;
}
.top-about-item:nth-of-type(1) .top-about-card:before {
  background-color: #00693e;
}
.top-about-item:nth-of-type(2) .top-about-card:before {
  background-color: #009a44;
}
.top-about-item:nth-of-type(3) .top-about-card:before {
  background-color: #8fc320;
}
.top-about-subtitle {
  color: #fff;
  text-align: center;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  font-weight: 900;
}

.top-about-subtitle-cap {
  color: #fff;
  text-align: center;
  letter-spacing: 0.2em;
  margin-top: -1rem;
  font-weight: 900;
  font-size:14px;
}

.top-about-figure {
  position: relative;
  box-shadow: 0 7px 5px #291a1347;
}
.top-about-figure figcaption {
  position: absolute;
  top: 8%;
  left: -10px;
  width: fit-content;
  white-space: nowrap;
  color: #fff;
  font-size: clamp(0.875rem, 0.8447rem + 0.1294vw, 1rem);
  line-height: 2;
  background-color: var(--color--primary);
  padding-inline: 1rem;
}

.top-about-sublist {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}
/* responsive */
@media screen and (min-width: 1024px) {
  .top-about {
    padding-top: 40px;
  }

  .top-about-title {
    letter-spacing: 0.3em;
  }
  .top-about-box {
    flex-direction: row;
    justify-content: flex-end;
    column-gap: 9%;
  }
  .top-about-lead {
    /*width: 60%;動画入ったらこっちに戻す*/
	  width: 100%;
  }
  .top-about-movie {
    max-width: 563px;
    width: 30%;
  }
  .top-about-list {
    flex-direction: row;
    column-gap: min(2.4%, 40px);
  }
  .top-about-figure figcaption {
    width: 90%;
  }
  .top-about-card {
    padding: 1.5rem 1.2rem;
  }
  .top-about-subtitle {
    margin-bottom: 1.5rem;
  }
}

/* =============================================================
news
============================================================= */
.top-news-title {
  border-bottom: 1px solid #dadada;
}
.top-news-list {
  display: flex;
  flex-direction: column;
  margin-bottom: max(3.2vw, 60px);
}

.top-news-item {
  border-bottom: 1px solid #e6e6e6;
}

.top-news-link {
  display: block;
  padding-block: 1rem;
}

.top-news-subtitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================================
event
============================================================= */

.top-event {
  background-color: var(--color--secondry);
}
.top-event-title {
  border-bottom: 1px solid #b5afa3;
}
.top-event-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(10px, 2.4%, 30px);
  row-gap: 2rem;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: max(3.2vw, 60px);
}

.top-event-subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 0;
}

/* responsive */
@media screen and (min-width: 1024px) {
  .top-event-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 270px));
  }
}

/* =============================================================
link
============================================================= */
.top-link {
  background-color: var(--color--secondry);
}
.top-link-title {
  border-bottom: 1px solid #3f3a33;
}
.top-link-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: space-around;
  column-gap: clamp(15px, 2vw, 30px);
  row-gap: clamp(15px, 2vw, 30px);
}

.top-link-item { background:#d5e5f2; padding:0em; text-align:center; border: solid 1px #EEE; box-shadow: 0 0 8px #BBB;}

.top-link-item > a{
display:block; padding:0; 
}


/* responsive */
@media screen and (min-width: 1024px) {
  .top-link-list {
    grid-template-columns: repeat(5, 1fr);
  }

}


@media screen and (max-width: 768px) {
.top-link-item > a{
font-size:14px;
}
}


/* =============================================================
access
============================================================= */
.top-access {
  background-color: var(--color--secondry);
}
.top-access-title {
  border-bottom: 1px solid #2b281f;
}
.top-access-map {
  height: 390px;
}

/* responsive */
@media screen and (min-width: 1024px) {
  .top-access-map {
    height: 600px;
  }
}

/* =============================================================
modal
============================================================= */

/* micromodal.js用のモーダルスタイル */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal[aria-hidden="true"] {
  display: none;
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-container {
  background-color: #fff;
  padding: 30px;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  overflow-y: auto;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--color--primary);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  background-color: var(--color--primary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.modal-close:hover {
  background-color: #1a0f0a;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #fff;
  transform-origin: center;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.modal-content {
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: #666;
  line-height: 1.7;
	height:70vh;
}

/* アニメーション用のスタイル */
@keyframes mmfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mmfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes mmslideIn {
  from {
    transform: translateY(15%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes mmslideOut {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10%);
  }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal-overlay {
  animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal-container {
  animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal-overlay {
  animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal-container {
  animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide .modal-container,
.micromodal-slide .modal-overlay {
  will-change: transform;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .modal-container {
    padding: 20px;
    margin: 20px;
    max-width: calc(100vw - 40px);
    width: calc(100vw - 40px);
  }

  .modal-title {
    font-size: 1.25rem;
  }
}

@media screen and (min-width: 1024px) {
  .modal-container {
    max-width: 900px;
    padding: 3rem;
  }
}
