/* 基本スタイリングと背景画像 */
body {
  background-color: #fafafa;
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "Osaka", sans-serif;
  font-size: 1.2em;
}

#top {
  background-image: url('../image/top_background.jpeg'); /* トップセクションの背景画像 */
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  height: 100vh;
  width: 100vw;
}

#top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3); /* ここで不透明度を調整 */
}

/* ナビゲーションバー */
.footer {
  background-color: #A9C4B8; /* ナビゲーションバーとフッターの背景色 */
  color: #363636;
}

/* ナビゲーションバーのアニメーション設定 */
.navbar {
  background-color: #A9C4B8; /* ナビゲーションバーとフッターの背景色 */
  position: fixed;
  width: 100%;
  transition: transform 0.5s ease, opacity 0.5s ease; /* アニメーションの追加 */
  transform: translateY(-100%);
  opacity: 0;
}

.navbar__other {
  background-color: #A9C4B8; /* ナビゲーションバーとフッターの背景色 */
  position: fixed;
  width: 100%;
  z-index: 30;
}

.navber__color {
  background-color: #A9C4B8;
}

.navbar.is-active {
  transform: translateY(0);
  opacity: 1;
}

.navbar-item, .footer a {
  color: #fff;
  font-weight: bold;
}

a.navbar-item:hover, a.navbar-item:focus {
  background-color: #fff;
  color: #A9C4B8;
}

.navbar-menu-bar-color {
  color: #fff;
}

/* トップセクション部分 */
.hero-body {
  position: relative;
  max-height: 100vh;
}

.top-images {
  max-height: 100%;
}

.top-logo {
  height: 50vh;  /* 画面の高さの50%に画像の高さを設定 */
  width: auto;
  object-fit: contain;
}

.top-logo.soft-appear-center {
  opacity: 0;
  animation: softAppear 1.5s ease-out forwards;
}

.top-upper-pic.soft-appear-upper {
  opacity: 0;
  animation: softAppear 2s ease-out 1s forwards;
}

.top-under-pic.soft-appear-under {
  opacity: 0;
  animation: softAppear 2.5s ease-out 1.5s forwards;
}

.top-upper-pic {
  max-width: 50%;
  max-height: 50%;
  object-fit: contain;
}

.top-under-pic {
  max-width: 50%;
  max-height: 50%;
  object-fit: contain;
}

@keyframes softAppear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.scroll {
  position: absolute;
  right: 3em;
  bottom: 2em;
  width: 3em;
  height: 3em;
  border: 1px solid #F5F5F5;
  border-radius: 50%;
  cursor: pointer;
}
.scroll:hover::before {
  background: rgba(255, 230, 64, 0.2);
  animation-play-state: paused;
}
.scroll::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3em;
  height: 3em;
  box-shadow: 0 0 0 0 rgba(255, 230, 64, 0.2);
  border-radius: 50%;
  opacity: 0;
  animation: ripple1 3s infinite;
}
.scroll span {
  width: 1em;
  height: 1em;
  position: absolute;
  top: 25%;
  left: 33%;
  transform: rotate(-45deg);
  border-left: 1px solid #F5F5F5;
  border-bottom: 1px solid #F5F5F5;
  z-index: 2;
}

@keyframes ripple1 {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  60% {
    box-shadow: 0 0 0 2em rgba(255, 230, 64, 0.2);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* セクションの背景色を交互に設定 */
.section:nth-child(even) {
  background-color: #FDFCED;
}

.section:nth-child(odd) {
  background-color: #ffffff;
}

/* セクションタイトルとテキスト */
.title, .subtitle, p {
  color: #363636; /* テキストの色 */
}

.section-title-image {
  max-width: 40%;
  max-height: 40%;
  object-fit: contain;
}

.section-image {
  max-width: 100%;
  max-height: 100%;
  position: relative;
}

.section-image img {
  object-fit: contain;
  top: 50%!important;           /* 上辺を親要素の中心に合わせる */
  left: 50%!important;          /* 左辺を親要素の中心に合わせる */
  transform: translate(-50%, -50%);
}

.section-image__overflow {
  width: 100%;
  padding-top: 100%!important;
  overflow: hidden;
}

.section-image__overflow img {
  height: unset!important;
  object-fit: contain;
}

.section-image__overflow img {
  object-fit: contain;
  top: 50%!important;           /* 上辺を親要素の中心に合わせる */
  left: 50%!important;          /* 左辺を親要素の中心に合わせる */
  transform: translate(-50%, -50%);
}


/* レスポンシブ地図のスタイリング */
.map-responsive {
  overflow:hidden;
  padding-bottom:56.25%;
  position:relative;
  height:0;
}

.map-responsive iframe {
  left:0;
  top:0;
  height:100%;
  width:100%;
  position:absolute;
}

/* LINE友だち追加ボタン */
.line-image {
  width: 45%;
  max-width: 180px;
}

/* メディアクエリでスマホビューのスタイルを調整 */
@media screen and (max-width: 425px) {
  .top-upper-pic {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
  }

  .top-under-pic {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
  }

  .scroll {
    position: absolute;
    left: calc(50% - 1.5em);
    bottom: 2em;
    width: 3em;
    height: 3em;
    border: 1px solid #F5F5F5;
    border-radius: 50%;
    cursor: pointer;
  }

  .section-title-image {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
  }
}
@media screen and (min-width: 426px) and (max-width: 768px) {
  .navbar-burger {
    display: block;
  }

  .navbar-menu {
    display: none;
  }

  .navbar-burger.is-active + .navbar-menu {
    display: block;
  }

  .navbar, .footer {
    background-color: #A9C4B8;
  }

  .top-logo {
    max-width: 60%;
  }

  .top-upper-pic {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
  }

  .top-under-pic {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
  }

  .scroll {
    position: absolute;
    right: 3em;
    bottom: 3em;
    width: 3em;
    height: 3em;
    border: 1px solid #F5F5F5;
    border-radius: 50%;
    cursor: pointer;
  }

  .section-title-image {
    max-width: 30%;
    max-height: 30%;
    object-fit: contain;
  }

  .section-image {
    width: 100%;
    padding-top: 65%!important;
    overflow: hidden;
  }

  .section-image img {
    height: unset!important;
    object-fit: contain;
  }

  .is-order-1-mobile {
    order: 1;
  }
  .is-order-2-mobile {
    order: 2;
  }
}

/* 大画面制御 */
@media screen and (min-width: 1216px) {
  .top-logo {
    max-width: 35%;
  }

  .top-upper-pic {
    max-width: 35%;
    max-height: 35%;
    object-fit: contain;
  }

  .top-under-pic {
    max-width: 35%;
    max-height: 35%;
    object-fit: contain;
  }
}
