body.index .footer-imageBg {
  height: 55vh !important;
  min-height: 55vh !important;
  bottom: auto !important;
  top: 0 !important;
}

body.index .footer-text_box {
  min-height: 55vh !important;
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0 !important;
}

.p-footer {
  position: relative;
}

.footer-main {
  position: relative;
  z-index: 1;
  background: #fff;
}

.copyright {
  background-color: #644747;
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 15px 0;
  font-size: 10px;
}

.footer-parallax_content {
  min-height: 600px;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  font-size: 1.8rem;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
  font-family: 'Yuji Syuku', serif;
  line-height: 4rem;
}

.footer-parallax_content .footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.footer-parallax_content .footer-text_box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 73dvh;
  color: white;
  text-align: center;
  font-size: 3rem;
}

.footer-parallax_content.footer-img_bg {
  background-image: url(../images/footer.webp);
}

.more-btn-footer {
  background: white;
  border: 2px solid #707070;
  color: #707070;
  padding: 6px 45px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 68vh;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.more-btn-footer:hover {
  background: #f0f0f0;
}


/* モバイル版 */
.sectionInner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip: rect(auto, auto, auto, auto)
}

.footer-imageBg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35vh;
  background-image: url(../images/footer.webp);
  background-size: cover;
  background-position: center bottom;
  z-index: -10;
  pointer-events: none;
}

/* デフォルト：PC表示 */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

@media screen and (max-width: 768px) {
  .footer-container {
    height: 740px;
    overflow: hidden;
  }

  .footer-imageBg {
    position: fixed;
    height: 200px;
    min-height: 100vh;
    top: auto;
    bottom: 0;
    transform: translateZ(0);
    background-position: center bottom;
  }

  .footer-overlaySp {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
  }

  .footer-text_box {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 750px;
    color: white;
    text-align: center;
    font-size: 2rem;
    line-height: 2.8rem;
    font-family: 'Yuji Syuku', serif;
    margin-bottom: 59px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }
}

@media screen and (max-width: 480px) {
  .footer-container {
    height: 460px;
    overflow: hidden;
  }

  .footer-imageBg {
    height: 240px;
  }

  .footer-text_box {
    font-size: 1.3rem;
    line-height: 2rem;
    min-height: 485px;
  }
}

/* モーダル全体 */
.modal {
  display: none;
  position: fixed;
  z-index: 11000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
}

/* モーダルボックス */
.modal-content {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 40px 30px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  font-family: 'Noto Serif JP', serif;
  animation: slideFade 0.5s ease-out;
  position: relative;
  z-index: 1;

  border: 1px solid #f3f3b4;
  box-shadow:
    0 0 0 1px #f3f3b4,
    0 8px 16px rgba(0, 0, 0, 0.08),
    0 0 18px rgba(243, 243, 180, 0.3);
}

/* メニューリスト */
.footer-nav-wrap {
  position: relative;
  z-index: 10;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin: 18px 0;
}

.footer-nav-list li a {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
  color: #5e5240;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.footer-nav-list li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, #f3f3b4, #eae7a3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 2px;
  opacity: 0.9;
}

.footer-nav-list li a:hover {
  color: #b49a5d;
  transform: scale(1.05);
}

.modal .close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 28px;
  color: #a8a8a8;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal .close-btn:hover {
  color: #cabf7c;
}

.footer-nav-list li a:hover {
  color: #cabf7c;
}

.footer-nav-list li a:hover::after {
  transform: scaleX(1);
}

@media screen and (max-width: 1024px) {
  .more-btn-footer {
    top: 62%;
    padding: 8px 40px;
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  .more-btn-footer {
    top: 58%;
    padding: 6px 30px;
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .more-btn-footer {
    top: 315px;
    padding: 6px 20px;
    font-size: 0.85rem;
  }
}

/* フッターメニュー全体 */
.fixed-menu {
  display: none;
}

@media screen and (max-width: 767px) {
  .fixed-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, #e8e4d9, #f2f1ed);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #ccc;
    z-index: 9999;
  }

  .fixed-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #4e4e4e;
    font-size: 11px;
    width: 25%;
    transition: all 0.3s ease;
  }

  .fixed-menu a:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    opacity: 0.85;
  }

  .fixed-menu img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;

    background-color: #ffffff;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  }

  .fixed-menu span {
    color: #3b3b3b;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-size: 11px;

  }

  .fixed-menu-space {
    height: 73px;
  }

  .fixed-menu .divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, #bbb, #eee);
    opacity: 0.4;
  }


  .fixed-menu {
    animation: fadeUp 0.6s ease 0.3s both;
  }

}

@keyframes slideFade {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

