html {
  scroll-behavior: smooth;
}

.pc_only {
  display: block;
}

.sp_only {
  display: none;
}

.footer {
  width: 100%;
  height: 38.1rem;
  background: linear-gradient(to right, #462300, #C99846);
  padding-top: 2.6rem;
}


.footer_wrapper {
  width: 29rem;
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -0.4rem 1.6rem rgba(0, 0, 0, 0.15);
  position: fixed;
  bottom: 1.7rem;
  right: 10.5rem;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.footer_wrapper.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.footer_wrapper.top {
  display: none;
}

.three_line {
  width: 3.4rem;
  height: 1.8rem;
  margin-right: 1.3rem;
  flex-shrink: 1;
}

.footer_toc_box_inner {
  width: 29.3rem;
  height: 4.7rem;
  align-items: center;
  padding-left: 1.1rem;
  margin-left: 1rem;
}

.footer_toc {
  font-size: 1.8rem;
  font-weight: 400;
  font-family: "Noto Serif JP", serif;
  color: #323232;
  flex-shrink: 0;
}

.footer_toc_box {
  background-color: #fff;
  width: 100%;
  height: 6rem;
  display: flex;
  align-items: center;
  z-index: 1002;
  cursor: pointer;
  box-sizing: border-box;
}

.footer_toc_panel {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  background: #fff;
  transition: max-height 0.3s ease;
  box-shadow: 0 -0.4rem 1.6rem rgba(0, 0, 0, 0.15);
  z-index: 1001;
}

.footer_toc_panel_inner {
  min-height: 12rem;
  width: 100%;
  padding: 1.5rem;
  background-color: #535353;
}


.footer_wrapper.is-open .footer_toc_panel {
  max-height: 60vh;
  overflow-y: auto;
}

.footer_wrapper.is-open .to_toc .f_arrow {
  transform: translate(-50%, -50%) rotate(135deg);
}

.footer_logo {
  width: 22.3rem;
  height: 7.2rem;
  margin: 0 auto;
}

.footer_logo_img {
  width: 22.3rem;
  height: 7.2rem;
  object-fit: contain;
  margin: 0 auto;
}

.footer_flex {
  display: flex;
  align-items: center;
}

.footer_list {
  font-size: 1.7rem;
  font-weight: 700;
  font-family: "Shippori Mincho", serif;
  gap: 3.6rem;
  margin: 2.4rem auto 4.5rem;
  color: #fff;
  justify-content: center;
  letter-spacing: 0.1em;
}

.footer_list li {
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-menu-link {
  display: inline-block;
  position: relative;
}

.footer-menu-link.active,
.footer-menu-link.is-selected {
  color: #C99846;
}

.footer-menu-link.active::after,
.footer-menu-link.is-selected::after {
  content: "";
  width: 70%;
  height: 0.1rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
}

.footer_same_facility {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: "Shippori Mincho", serif;
  color: #fff;
  text-align: center;
  margin-bottom: 0.6rem;
}

.footer_same_group {
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(to right, rgba(70, 141, 175, 0.25), rgba(249, 189, 197, 0.25));
  padding: 1.1rem 9.5rem;
  z-index: 3;
}

.footer_bg_band {
  width: 51.6rem;
  height: 7.9rem;
  background-color: #000;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer_same_group_inner {
  width: 32.6rem;
  height: 5.6rem;
  align-items: center;
  gap: 0.3rem;

}

.ft_logo2 {
  width: 5.4rem;
  height: 5.6rem;
}

.footer_title {
  font-size: 3.2rem;
  font-weight: 700;
  font-family: "Shippori Mincho", serif;
  color: #fff;
  position: relative;
  z-index: 4;
  letter-spacing: 0.14em;
}

.footer_flower {
  width: 13.3rem;
  height: 13.3rem;
  position: absolute;
  bottom: -1rem;
  left: -3rem;
  pointer-events: none;
}

.footer_copy {
  font-size: 1.3rem;
  font-weight: 500;
  font-family: "Noto Serif JP", serif;
  color: #fff;
  text-align: center;
  margin-top: 4.7rem;
}

.to_top {
  position: fixed;
  bottom: 1.5rem;
  right: 2rem;
  width: 6.3rem;
  height: 6.3rem;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  overflow: hidden;
}

.to_top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.to_top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(to bottom, #5C330B, #C26C16);
  filter: brightness(0.75);
  z-index: 0;
  pointer-events: none;
}

.to_top a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.f_arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.2rem;
  height: 1.2rem;
  transform: translate(-50%, -50%) rotate(-45deg);
  z-index: 1;
}

.f_arrow::before {
  content: "";
  position: absolute;
  top: 0rem;
  right: 0rem;
  background: #fff;
  width: 2.5rem;
  height: 0.2rem;
}

.f_arrow::after {
  content: "";
  position: absolute;
  top: 0rem;
  right: 0rem;
  background: #fff;
  width: 0.2rem;
  height: 2.5rem;
}


/* 目次リスト */
.footer_toc_list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer_toc_item {
  display: flex;
  align-items: center;
}

.footer_toc_item::before {
  content: "";
  display: block;
  margin-right: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  background-color: #fff;
  border-radius: 50%;
}

.footer_toc_link {
  display: block;
  padding: 1rem 0;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #FFF;
  text-decoration: none;
  font-family: "Noto Serif JP", serif;
}

.footer_toc_link:hover {
  opacity: 0.7;
}

.footer_toc_category {
  margin-top: 1.2rem;
  padding: 0.8rem 0;
  font-size: 1.8rem;
  font-weight: 700;
  font-family: "Noto Serif JP", serif;
}

.footer_toc_category:first-child {
  margin-top: 0;
}

.footer_toc_category_link {
  color: #fff;
  text-decoration: none;
}

.footer_toc_category_link:hover {
  opacity: 0.7;
}

.footer_toc_empty {
  font-size: 1.4rem;
  color: #666;
  line-height: 1.6;
}

@media screen and (max-width:699.98px) {
  .pc_only {
    display: none;
  }

  .sp_only {
    display: block;
  }

  .footer {
    width: 100%;
    height: fit-content;
    background: linear-gradient(to right, #462300, #C99846);
    padding-top: 4.9rem;
    margin-bottom: 0rem;
    padding-bottom: 6.6rem;
  }

  .footer_logo {
    width: 19.5rem;
    height: 7.1rem;
    margin: 0 auto;
  }

  .footer_logo_img {
    width: 19.5rem;
    height: 7.1rem;
    object-fit: contain;
    margin: 0 auto;
  }

  .footer_flex {
    display: flex;
  }

  .footer_list {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: "Shippori Mincho", serif;
    gap: 4.1rem;
    width: 27.3rem;
    margin: 4rem auto 8rem;
    color: #fff;
    flex-direction: column;
    letter-spacing: 0.1em;
  }

  .footer_same_facility {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: "Shippori Mincho", serif;
    color: #fff;
    text-align: center;
    margin-bottom: 0.6rem;
    letter-spacing: 0.1em;
  }

  .footer_same_group {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(to right, rgba(70, 141, 175, 0.25), rgba(249, 189, 197, 0.25));
    padding: 0rem;
    z-index: 3;
  }

  .footer_bg_band {
    width: 35.3rem;
    height: 6.5rem;
    background-color: #000;
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }

  .footer_same_group_inner {
    width: 35.3rem;
    height: 6.5rem;
    align-items: center;
    gap: 0.3rem;
    justify-content: flex-end;
    padding: 0 0.5rem;

  }

  .ft_logo2 {
    width: 4.5rem;
    height: 4.7rem;
  }

  .footer_title {
    font-size: 3.2rem;
    font-weight: 700;
    font-family: "Shippori Mincho", serif;
    color: #fff;
    position: relative;
    z-index: 4;
    letter-spacing: 0.14em;
  }

  .footer_flower {
    width: 8.2rem;
    height: 8.2rem;
    position: absolute;
    bottom: 0rem;
    left: -3rem;
  }

  .footer_copy {
    font-size: 1.3rem;
    font-weight: 500;
    font-family: "Noto Serif JP", serif;
    color: #fff;
    text-align: center;
    margin-top: 8rem;
  }


  .footer_wrapper,
  .footer_wrapper *,
  .footer_overlay {
    box-sizing: border-box;
  }

  .footer_wrapper {
    width: 29rem;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -0.4rem 1.6rem rgba(0, 0, 0, 0.15);
    position: fixed;
    bottom: 0;
    left: 0;
    right: auto;
    z-index: 1001;
    margin-left: 1rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .footer_wrapper.top {
    display: none;
  }

  .footer_toc_box {
    background-color: #fff;
    width: 100%;
    height: 6rem;
    display: flex;
    align-items: center;
    z-index: 1002;
    cursor: pointer;
    box-sizing: border-box;
  }

  .footer_toc_panel {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    transition: max-height 0.3s ease;
    box-shadow: 0 -0.4rem 1.6rem rgba(0, 0, 0, 0.15);
    z-index: 1001;
  }

  .footer_toc_panel_inner {
    min-height: 12rem;
    width: 100%;
    padding: 1.5rem;
    background-color: #535353;
  }

  .footer_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 37.5rem;
    max-width: 100vw;
    height: 100vh;
    background: rgba(50, 50, 50, 0.3);
    z-index: 1000;
  }

  .footer_overlay.is-open {
    display: block;
  }

  .footer_wrapper.is-open .footer_toc_panel {
    max-height: 60vh;
    overflow-y: auto;
  }

  .footer_wrapper.is-open .to_toc .f_arrow {
    transform: translate(-50%, -50%) rotate(135deg);
  }

  .three_line {
    width: 3.4rem;
    height: 1.8rem;
    margin-right: 1.3rem;
  }

  .footer_toc_box_inner {
    width: 29.3rem;
    height: 4.7rem;
    align-items: center;
    padding-left: 1.1rem;
    margin-left: 1rem;
  }

  .footer_toc {
    font-size: 1.8rem;
    font-weight: 400;
    font-family: "Noto Serif JP", serif;
    color: #323232;
  }


  .to_toc {
    position: relative;
    width: 4.7rem;
    height: 4.7rem;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 1rem;
    z-index: 3;
    pointer-events: none;
    display: none;
  }

  .to_toc::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: transparent;
    filter: brightness(0.75);
    z-index: 0;
  }

  .f_arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.2rem;
    height: 1.2rem;
    transform: translate(-50%, -50%) rotate(-45deg);
    z-index: 1;
  }

  .to_toc .f_arrow::before {
    content: "";
    position: absolute;
    top: 0rem;
    right: 0rem;
    background: #323232;
    width: 2rem;
    height: 0.2rem;
  }

  .to_toc .f_arrow::after {
    content: "";
    position: absolute;
    top: 0rem;
    right: 0rem;
    background: #323232;
    width: 0.2rem;
    height: 2rem;
  }

  /* 上に戻るボタン */
  .to_top {
    width: 4.7rem;
    height: 4.7rem;
    bottom: 0.5rem;
  }

  .to_top .f_arrow::after {
    width: 0.2rem;
    height: 2rem;
  }

  .to_top .f_arrow::before {
    width: 2rem;
    height: 0.2rem;
  }


  /* 目次リスト */
  .footer_toc_list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }

  .footer_toc_item {
    display: flex;
    align-items: center;
  }

  .footer_toc_item::before {
    content: "";
    display: block;
    margin-right: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: #fff;
    border-radius: 50%;
  }

  .footer_toc_link {
    display: block;
    padding: 1rem 0;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #FFF;
    text-decoration: none;
    font-family: "Noto Serif JP", serif;
  }

  .footer_toc_link:hover {
    opacity: 0.7;
  }

  .footer_toc_category {
    margin-top: 1.2rem;
    padding: 0.8rem 0;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: "Noto Serif JP", serif;
  }

  .footer_toc_category:first-child {
    margin-top: 0;
  }

  .footer_toc_category_link {
    color: #fff;
    text-decoration: none;
  }

  .footer_toc_category_link:hover {
    opacity: 0.7;
  }

  .footer_toc_empty {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.6;
  }
}