/* assets/css/menu.css */
/*------------------------------------
 ナビゲーション
------------------------------------*/
.fixed-second-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030; /* Bootstrapのnavbarと同じ */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.fixed-second-nav .nav-tabs-custom .nav-link {
  background: rgba(255, 255, 255, 0.85); /* 背景色必須（透け防止） */
}

/* 余白確保 */
body.nav-scrolled-padding {
  padding-top: 60px; /* second-navの高さ分 */
}

.nav-tabs-custom {
  width: 100%;
  max-width: 1075px;
  margin: auto;
  display: flex;
  justify-content: space-between;
}
.nav-tabs-custom .nav-item {
  flex: 1;
  text-align: center;
}
.nav-tabs-custom .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all 0.2s ease;
  padding: 0.75rem;
  border-left: 1px solid #666;
}
.nav-tabs-custom li:last-child .nav-link {
  border-right: 1px solid #666;
}

.site-logo {
  width: 250px;
}
.hedtxt {
  width: 500px;
  margin: auto;
  padding: 0.75rem;
}

@media screen and (max-width: 991px) {
  .site-logo {
    width: 23vw;
  }
  .hedtxt {
    width: 50vw;
    margin: auto;
    padding: 0.5rem;
  }
}

@media screen and (max-width: 768px) {
  .site-logo {
    width: 150px;
    margin-left: 15px;
  }
  .hedtxt {
    display: none;
  }
}
.small,
small {
  font-size: 0.8rem;
}
/* 英語（span:first-child） */
.nav-tabs-custom .nav-link span:first-child {
  font-family: "adobe-garamond-pro", serif;
  font-weight: 300;
  font-size: 1rem;
  color: #b96b80;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* 日本語（span:last-child） */
.nav-tabs-custom .nav-link span:last-child {
  font-family: "a-otf-ryumin-pr6n", serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: #b96b80;
  margin-top: 0.2rem;
  line-height: 1.2;
}

/* hover */
.nav-tabs-custom .nav-link:hover {
  background-color: #f8eef1;
  text-decoration: none;
}

/* active */
.nav-tabs-custom .nav-link.active {
  background-color: #b96b80;
  color: #fff;
}
.nav-tabs-custom .nav-link.active span:first-child,
.nav-tabs-custom .nav-link.active span:last-child {
  color: #fff;
}

/*------------------------------------
 ナビゲーションバー関連
------------------------------------*/
.navbar.navbar-expand-lg {
  padding: 0;
}
.navbar-toggler {
  border: 0;
}

/* 電話リンク（ヘッダー右上の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ボタン（資料請求やお問い合わせ） */
.cta-txt {
  margin-bottom: 0;
  font-size: 0.85rem;
}
.cta-txt:before {
  display: block;
  content: "";
  height: 1px;
  background: #666;
  margin: 8px auto;
  text-align: center;
  width: calc(100% - 30px);
}
.cta-area div:first-child {
  border-right: 1px solid #666;
  text-align: center;
}
.ctaBtn {
  white-space: nowrap;
  color: #000;
  display: block;
  text-decoration: none;
}

.ctaBtn span:first-child {
  font-family: "a-otf-ryumin-pr6n", serif;
  font-size: 1rem;
  text-align: center;
  display: block;
}
.ctaBtn span:last-child {
  font-family: "adobe-garamond-pro", serif;
  font-size: 0.85rem;
  text-align: center;
  display: block;
}
.ctaBtn:hover {
  background: #b96b80;
  color: #fff;
}

/*------------------------------------
 オフキャンバスメニュー関連
------------------------------------*/
.offcanvas {
  will-change: transform, opacity;
}
.offcanvas.offcanvas-end {
  border-top: 1px solid #666 !important;
  border-bottom: 1px solid #666 !important;
}
/* 
.offcanvas.offcanvas-end {
  right: 0;
  max-width: 100vw;
  width: 100vw;
  box-sizing: border-box;
}
*/
.offcanvas-body {
  padding-right: 0; /* ここで溢れを潰す */
}
.offcanvas-body .navbar-nav {
  gap: 0rem; /* メニュー間のスペース（デフォルト） */
}
.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;
}

/* 詳細ボタン */
.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);
}

/*------------------------------------
 footer
------------------------------------*/
#footer_menu {
  margin-top: 1px;
  margin-bottom: 100px;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
}

#footer_menu .nav-tabs-custom .nav-link {
  padding: 2rem 0.75rem;
  letter-spacing: 0.1rem;
}

/* 英語（span:first-child） */
#footer_menu .nav-tabs-custom .nav-link span:first-child {
  font-family: "a-otf-ryumin-pr6n", serif;
  font-weight: 300;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.7;
}

/* 日本語（span:last-child） */
#footer_menu .nav-tabs-custom .nav-link span:last-child {
  font-family: "adobe-garamond-pro", serif;
  font-size: 0.9rem;
  font-weight: 300;
  margin-top: 0.2rem;
  line-height: 1.2;
}
@media screen and (max-width: 768px) {
  #footer_menu {
    margin-top: 0px;
    margin: 1px auto 50px auto;
    border: 0;
  }
  .offcanvas.offcanvas-end.show .offcanvas-body .navbar-nav .nav-item {
    border-bottom: 1px solid #ccc;
    padding-left: 0px;
  }
  #footer_menu .nav-tabs-custom .nav-link {
    padding: 0.75rem;
  }
  .footerNavi {
    margin-top: 50px;
  }
  .footerNavi .nav-item {
    margin: 0; /* 横余白 */
    position: relative;
  }

  .footerNavi .nav-link {
    color: #b96b80;
    font-size: 0.8rem;
    text-decoration: none;
    position: relative;
    display: inline-block; /* 高さ基準を安定させる */
    line-height: 1.4; /* 好みで調整 */
  }

  /* 縦線（文字より短く） */
  .footerNavi .nav-item:not(:last-child) .nav-link::after {
    content: "";
    position: absolute;
    right: 0; /* 線と文字の間隔 */
    top: 20%; /* 上から20% */
    bottom: 20%; /* 下から20% → 高さが文字より短くなる */
    width: 1px;
    background: #b96b80;
  }
}

/*------------------------------------
 サイドボタン
------------------------------------*/
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: #b96b80 1px solid;
  padding-top: 7px;
  margin-top: 7px;
}
aside ul li:nth-child(2) span {
  border-top: #fff 1px solid;
  padding-top: 7px;
  margin-top: 7px;
}
aside ul li:nth-child(1) {
  color: #b96b80;
  background: #fff;
  border: #b96b80 3px solid;
}
aside ul li:nth-child(2) {
  background: #b96b80;
  color: #fff;
  border: 3px solid #b96b80;
}

@media screen and (max-width: 768px) {
  .nav-tabs-custom .nav-link {
    border: 0;
    border-left: 1px solid #b96b80;
  }

  #footer_menu .navbar-nav {
    border-top: 1px solid #b96b80;
    border-bottom: 1px solid #b96b80;
  }

  aside ul li:nth-child(2) {
    background: #b96b80;
    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;
}
