/* assets/css/menu.css */

/*------------------------------------
 ナビゲーションバー関連
------------------------------------*/
.navbar.navbar-expand-lg {
  padding: 0;
}
.navbar-toggler {
  border: 0;
}
.navbar-brand img {
  max-width: 20vw;
}

/* 電話リンク（ヘッダー右上の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 {
  font-size: 0.8rem;
  border-radius: 0;
  white-space: nowrap;
  min-width: 120px;
  padding: 1rem 0.5rem;
  font-family: "shippori-mincho", serif;
}

/*------------------------------------
 オフキャンバスメニュー関連
------------------------------------*/
.offcanvas {
  will-change: transform, opacity;
}

.offcanvas.offcanvas-end {
  right: 0;
  max-width: 100vw;
  width: 100vw;
  box-sizing: border-box;
}

.offcanvas-body {
  padding-right: 0; /* ここで溢れを潰す */
}
.offcanvas-body .navbar-nav {
  gap: 2rem; /* メニュー間のスペース（デフォルト） */
}
.offcanvas.offcanvas-end.show .offcanvas-body .navbar-nav {
  gap: 0rem; /* 開いた時にスペースを詰める */
}
.offcanvas-body .navbar-nav .nav-item {
  text-align: start;
}
.offcanvas-title {
  visibility: hidden;
}
.offcanvas.offcanvas-end.show .offcanvas-body .navbar-nav .nav-item {
  border-bottom: 1px solid #ccc;
  padding-left: 20px;
}

/* ナビ内のテキスト装飾 */
.navbar-nav .nav-link span:first-child {
  display: block;
  font-family: "zedou", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1vw + 0.4rem, 1rem);
  color: #000;
  white-space: nowrap;
  letter-spacing: 0.1rem;
}
.navbar-nav .nav-link span:last-child {
  display: inline;
  font-family: "hiragino-kaku-gothic-pron", sans-serif;
  font-size: clamp(0.7rem, 1vw + 0.4rem, 0.7rem);
  white-space: nowrap;
  font-weight: 300;
  color: #000;
}

/* 詳細ボタン */
.detailBtn {
  border-radius: 0;
}

/* デフォルト：うっすら透過 */
header nav {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: none;
  transition: background-color 0.3s, backdrop-filter 0.3s;
}

/* フェードイン */
.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 {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
}

/*------------------------------------
 サイドボタン
------------------------------------*/
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: 768px) {
  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;
}

/*------------------------------------
 レスポンシブ調整
------------------------------------*/
@media screen and (max-width: 991px) {
  .navbar-brand img {
    max-width: 65vw;
  }
}
