/* assets/css/menu.css */

/*------------------------------------
 ナビゲーションバー関連
------------------------------------*/

.navbar.navbar-expand-lg {
  padding-bottom: 0;
  padding-top: 0;
}
.navbar-toggler {
  border: 0;
  position: absolute;
  right: 10px;
  top: 10px;
}

.navbar-brand {
  position: relative;
  padding-left: 0.5rem;
}

.navbar-brand:after {
  position: absolute;
  display: block;
  top: 130px;
  text-align: center;
  margin: auto;
  content: "建築条件付土地／全8区画";
  font-size: 0.7rem;
  border: 1px solid #ccc;
  padding: 0.25rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  display: none;
}
.navbar-brand span {
  display: block;
  width: fit-content;
  font-size: 0.7rem;
  border: 1px solid #3c3c3c;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.25rem 1rem;
  margin: 10px auto 0 auto;
  /*display: none;*/
}

/* 電話リンク（ヘッダー右上のTEL表示など） */
.telLink {
  color: #9a8d75;
  font-size: 1.4rem;
  font-weight: 600;
  font-family: "fot-rodin-pron", sans-serif;
}
.telLink i {
  border: 1px solid #9a8d75;
  border-radius: 50%;
  padding: 0.5rem;
  background: #9a8d75;
  color: #fff;
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* CTAボタン（資料請求やお問い合わせ） */
.ctaBtn {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 0;
  top: -8px;
}

.ctaBtn a {
  background: rgba(73, 131, 92, 0.6);
  font-size: 0.8rem;
  width: 90px;
  height: 76px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  transition: background-color 0.3s ease;
  position: relative;
}

.ctaBtn a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(73, 131, 92, 0.8);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.2s ease-in;
  z-index: 0;
}

.ctaBtn a:hover::after {
  transform: scaleY(1);
}

.ctaBtn a span {
  position: relative;
  z-index: 1;
}

.ctaBtn i {
  margin: 10px 0 5px 0;
}
@media screen and (max-width: 991px) {
  .ctaBtn {
    position: static;
    margin-top: 3rem;
  }
}

.footerTel {
  color: #ff0000;
  text-decoration: none;
  font-size: 3rem;
  letter-spacing: 0.1rem;
  text-shadow: 1px 1px 0 #fff, -1px 1px 0 #fff, 1px -1px 0 #fff, -1px -1px 0 #fff;
}
.footerLink {
  margin: auto;
  text-align: center;
}

.shopinfo {
  margin: auto;
  text-align: center;
}
/*------------------------------------
 オフキャンバスメニュー関連
------------------------------------*/

.offcanvas {
  will-change: transform, opacity;
}
@media screen and (min-width: 991px) {
  .offcanvas-body {
    width: calc(100% - 180px);
  }
}
@media screen and (min-width: 768px) {
  body:not(#top) .navbar-brand span {
    display: none;
  }
}
.offcanvas-body .navbar-nav.mainmenu {
  gap: 1rem;
  margin: 13px auto;
}
.offcanvas-body .navbar-nav.mainmenu .nav-item:before {
  display: inline-block;
  content: "/";
  margin-right: 1rem;
}
.offcanvas-body .navbar-nav.mainmenu .nav-item:first-child:before {
  display: none;
}
.offcanvas-body .navbar-nav .nav-item {
  text-align: start;
  display: flex;
  position: relative;
  align-items: center;
}
.offcanvas-title {
  visibility: hidden;
}

/* ナビ内のテキスト装飾 */
.navbar-nav .nav-link {
  display: inline;
  font-family: "shippori-mincho", serif;
  white-space: nowrap;
  font-weight: 600;
  color: #000;
  display: block;
  font-size: 0.9rem;
}

/* 詳細ボタン */
.detailBtn {
  border-radius: 0;
  padding: 0.75rem 1rem;
  width: 300px;
}

/* フェードイン */
.nav-fade-in {
  animation: navFadeIn 0.5s ease forwards;
}
@keyframes navFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* スクロール後：濃い透過＋ぼかし */
.nav-scrolled {
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
}

/* スクロール時にナビを固定表示 */
.navbar.nav-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.logo {
  min-width: 200px;
}

/*------------------------------------
 サイドボタン
------------------------------------*/
aside,
aside ul {
  position: fixed;
  top: 20%;
  right: 0;
  z-index: 10;
}
aside ul li {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.1em;
  transition: 0.5s;
  padding: 0.5rem;
}
aside ul li span {
  display: block;
  text-align: center;
  font-size: 1.25rem;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
}

/* 各ボタンの装飾（1つ目・2つ目で色違い） */
aside ul li:nth-child(1) span {
  border-top: #2d2929 1px solid;
  padding-top: 7px;
  margin-top: 7px;
}
aside ul li:nth-child(2) span {
  border-top: #efe1a8 1px solid;
  padding-top: 7px;
  margin-top: 7px;
}
aside ul li:nth-child(1) {
  color: #2d2929;
  background: #fff;
  border: #2d2929 3px solid;
}
aside ul li:nth-child(2) {
  background: #2d2929;
  color: #efe1a8;
  border: 3px solid #2d2929;
}
@media screen and (max-width: 991px) {
  .offcanvas-body .navbar-nav.mainmenu {
    gap: 1.25rem;
  }
  .ctaBtn a {
    background: rgba(73, 131, 92, 0.6);
    font-size: 0.9rem;
    width: 50%;
    padding: 0 15px;
    white-space: nowrap;
    color: #fff;
    align-items: center;
    display: flex;
    text-align: center;
    text-decoration: none;
    gap: 1rem;
  }

  .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
  }
  .navbar-toggler {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0;
  }

  .navbar-toggler-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='%237cba91' viewBox='0 0 16 16'><path d='M1.5 12.5a.5.5 0 0 1 0-1h13a.5.5 0 0 1 0 1h-13zm0-4a.5.5 0 0 1 0-1h13a.5.5 0 0 1 0 1h-13zm0-4a.5.5 0 0 1 0-1h13a.5.5 0 0 1 0 1h-13z'/></svg>");
  }
  .btn-close {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0;
    background-color: #fff;
    --bs-btn-close-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' fill='%237cba91' viewBox='0 0 16 16'><path d='M2.146 2.146a.5.5 0 0 1 .708 0L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854a.5.5 0 0 1 0-.708z'/></svg>");
  }

  .offcanvas-body .navbar-nav.mainmenu .nav-item {
    justify-content: center;
  }
  .offcanvas-body .navbar-nav.mainmenu .nav-item .nav-link {
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
  }

  .offcanvas-body .navbar-nav.mainmenu .nav-item:before {
    display: none;
  }
  .offcanvas.offcanvas-end {
    background: var(--main-green);
  }
  aside ul li:nth-child(2) {
    background: #2d2929;
    color: #efe1a8;
    border: 3px solid #efe1a8;
  }
}
aside ul li a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
aside ul li:hover {
  opacity: 0.5;
}

/*------------------------------------
 ページトップに戻るボタン
------------------------------------*/
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}
.swiper-wrapper {
  margin-bottom: 50px;
}
/*------------------------------------
 レスポンシブ調整
------------------------------------*/
