/*------------------------------
  Top Fv
------------------------------*/
.fv {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.fv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fv-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.fv-content h1 {
  font-size: 4rem;
  text-align: center;
}

.fv-content p {
  font-size: 2rem;
  font-weight: bold;
}

/* ===== スマートフォン以下 ===== */
@media screen and (max-width: 767px) {
  .fv-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }

  .fv-content p {
    font-size: 1.6rem;
  }
}

/*------------------------------
  Top News
------------------------------*/
.top-news {
  position: relative;
  padding: 150px 0 0;
  overflow: hidden;
}

.top-news__slider {
  overflow-x: auto;
  overflow-y: hidden;

  padding-left: max(calc((100vw - 960px) / 2), 60px);
  padding-right: max(calc((100vw - 960px) / 2), 60px);

  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.top-news__slider::-webkit-scrollbar {
  display: none;
}

.top-news__list {
  width: max-content;
  display: flex;
  gap: 36px;
  margin-bottom: 50px;
}

.news-card {
  flex: 0 0 290px;
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.news-card__thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd;
}

.news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.news-card:hover .news-card__thumb img{
  transform: scale(1.08);
}

.news-card__body {
  padding: 18px;
  transition: transform .4s ease;
}

.news-card:hover .news-card__body{
  opacity: .8;
}

.news-card__date {
  display: block;
  margin-bottom: 5px;
  font-size: 1.2rem;
  color: #7d7d7d;
}

.news-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.6;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  overflow: hidden;
}

.top-news .container .button-row {
  margin-bottom: 50px;
}

/* ===== スマートフォン以下 ===== */
@media screen and (max-width: 767px) {
  .top-news {
    position: relative;
    padding: 100px 0 0;
    overflow: hidden;
  }

  .top-news__slider {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-left: 20px;
    padding-right: 0;
    scrollbar-width: none;
  }

  .top-news__slider::-webkit-scrollbar {
    display: none;
  }

  .top-news__list {
    display: block;
    white-space: nowrap;
    font-size: 0;
    margin-bottom: 30px;
    padding-right: 20px; /* 最後の右余白 */
  }

  .news-card {
    display: inline-block;
    vertical-align: top;
    width: 240px;
    margin-right: 20px;
    font-size: 16px;
    white-space: normal;
  }

  .news-card:last-child {
    margin-right: 0;
  }

  .news-card__body {
    padding: 12px;
  }

  .news-card__date {
    font-size: 1rem;
  }

  .news-card__title {
    font-size: 1.2rem;
	height: calc(1.6em * 2);
  }

  .top-news .container .button-row {
    margin-bottom: 30px;
  }
}

/*------------------------------
  Top Reason
------------------------------*/
.top-reason {
  padding: 150px 0;
  background: url("../../img/bg_wood.jpg") repeat center bottom;
  background-size: 100% auto;
  position: relative;
}

.reason-list {
  display: flex;
  flex-direction: column;
}

.reason-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.reason-item__content {
  background: #fff;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.reason-item__number {
  font-size: 3rem;
  font-weight: bold;
  color: #728F61;
}

.reason-item__title {
  font-size: 2rem;
  font-weight: bold;
  color: #728F61;
  margin-bottom: 20px;
}

.reason-item__text {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.8;
}

.reason-item__content .button-row {
  margin-top: 30px;
}

.reason-item__image {
  background: #ddd;
  flex: 1;
}

.reason-item__image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.reason-item--reverse .reason-item__content {
  order: 2;
}

.reason-item--reverse .reason-item__image {
  order: 1;
}

/* ===== タブレット以下 ===== */
@media screen and (max-width: 1024px) {
  .reason-item__content {
    padding: 40px 20px;
  }

  .reason-item__number {
    font-size: 2.2rem;
  }

  .reason-item__title {
    font-size: 1.6rem;
  }

  .reason-item__text {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.8;
  }
}

/* ===== スマートフォン以下 ===== */
@media screen and (max-width: 767px) {
  .top-reason {
    padding: 100px 0;
  }

  .reason-item {
    grid-template-columns: 1fr;
  }

  .reason-item .reason-item__content {
    order: 2;
  }

  .reason-item .reason-item__image {
    order: 1;
  }
}

/*------------------------------
  Top Guide
------------------------------*/
.top-guide {
  padding: 150px 0 75px;
  background: #9DA486;
  color: #fff;
}

.top-guide__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.guide-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #d9d9d9;
}

.guide-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.guide-card:has(.link-arrow:hover) .guide-card__image img{
  transform: scale(1.08);
}

.guide-card .button-row {
  margin: 20px 0 0;
}

/* ===== スマートフォン以下 ===== */
@media screen and (max-width: 767px) {
  .top-guide {
    padding: 100px 0 50px;
  }

  .top-guide__list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .guide-card__image {
    aspect-ratio: 16 / 9;
  }
}

/*------------------------------
  Top Facility
------------------------------*/
.top-facility {
  padding: 75px 0 150px;
  background: #9DA486;
  color: #fff;
}

.facility-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.facility-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.facility-card__image {
  aspect-ratio: 16/7;
  background: #ccc;
}

.facility-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.facility-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.facility-card:has(.link-arrow:hover) .facility-card__image img{
  transform: scale(1.08);
}

.facility-card__content {
  width: 360px;
  position: absolute;
  top: 50%;
  left: 72px;
  transform: translateY(-50%);
  z-index: 2;
}

.facility-card__title {
  margin: 0 0 10px;
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 1.5;
}

.facility-card__text {
  margin: 0 0 20px;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.8;
}

.facility-card__content .button-row {
  justify-content: flex-start;
  margin: 0;
}

/* ===== スマートフォン以下 ===== */
@media screen and (max-width: 767px) {
  .top-facility {
    padding: 50px 0 100px;
  }

  .facility-card__image {
    aspect-ratio: 4/3;
  }

  .facility-card__content {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    text-align: center;
  }

  .facility-card__title {
    font-size: 1.8rem;
  }

  .facility-card__text {
    font-size: 1.4rem;
  }

  .facility-card__content .button-row {
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .facility-card__image {
    aspect-ratio: 3/4;
  }
}

/*------------------------------
  Top Youtube
------------------------------*/
.top-youtube {
  padding: 150px 0 75px;
}

.movie-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.movie-item {
  width: 100%;
}

.movie-item__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
}

.movie-item__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ===== スマートフォン以下 ===== */
@media screen and (max-width: 767px) {
  .top-youtube {
    padding: 100px 0 50px;
  }

  .movie-list {
    grid-template-columns: 1fr;
  }

  .movie-item:nth-of-type(n + 2) {
    display: none;
  }
}

/*------------------------------
  Top Instagram
------------------------------*/
.top-instagram {
  padding: 75px 0 150px;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.instagram-item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  transition: opacity .3s ease;
}

.instagram-item:hover {
  opacity: 0.85;
}

.instagram-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== スマートフォン以下 ===== */
@media screen and (max-width: 767px) {
  .top-instagram {
    padding: 50px 0 100px;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 30px;
  }

  /* SPは2×2=4枚のみ表示（5番目以降を非表示） */
  .instagram-item:nth-child(n + 5) {
    display: none;
  }
}