/*管理画面*/
html {
  margin-top: 0 !important;
}
body.admin-bar .fixed-top{
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .fixed-top, body.admin-bar nav#mobile-menu{
    top: 46px;
  }
  body.admin-bar #menu-toggle{
    top: 70px;
  }

}
/*header*/
.fluid-box{
  width: 100vw;
  position: relative;
  /*left: 50%;
  transform: translateX(-50%);*/
  background-color: #f1f1f1;
  margin: 0;
  padding: 0 15px;  
}
#header-contact{
  background: #f1f1f1;
  position: relative;
  padding: 5px 0;
}
#header-contact a, #header-contact a:visited{
  font-size:85%;
  font-weight: 700;
  color: #0253C0 !important;
  text-decoration:none;
  transition: all 500ms ease-in-out;
}
#header-contact a:hover, #header-contact a:active{
  color: #666 !important;
}


@media (min-width: 1200px){
  .col-md-12#header-contact {
      max-width: 1140px;
    margin: auto;
  }
}
@media (min-width: 992px) and (max-width: 1199px){
  .col-md-12#header-contact {
      max-width: 960px;
    margin: auto;
  }
}
@media (min-width: 768px) and (max-width: 991px){
  .col-md-12#header-contact {
      max-width: 720px;
    margin: auto;
  }
}
@media (min-width: 576px) and (max-width: 767px){
  .col-md-12#header-contact {
      max-width: 540px;
    margin: auto;
  }
}

/* デフォルトで両方非表示 */
.logo-home,
.logo-other {
  display: none;
}

/* ホームでは白ロゴだけ表示 */
body.home .logo-home {
  display: inline;
}
body.home .logo-other {
  display: none;
}

/* ホーム以外では通常ロゴだけ表示 */
body:not(.home) .logo-other {
  display: inline;
}





/*Menu*/
body.menu-open {
  overflow: hidden;
}



.navbar {
  background-color: #7596B5 !important;
  height: 100px;
  padding: 0 1rem;
}
@media(max-width: 767px){
  .navbar{
    height: 80px;
  }
}

body:not(.home) .navbar {
  background-color: #fff !important;
}

.navbar-brand img {
  height: 50px;
  width: auto;
}

.navbar-nav .nav-link {
  color: #fff;
  padding: 0.5rem 1rem;
  font-weight: 500;
  display: inline-block;
}

.navbar-nav .nav-link:hover {
  color: #e0e0e0;
}



/* ナビゲーション内の全リンクを白に */
.navbar a,
.navbar-nav .nav-link {
  color: #fff !important;
}

body:not(.home) .navbar a,
body:not(.home) .navbar-nav .nav-link {
  color: #409590 !important;
}



/* ホバー時に少しトーンを落とす */
.navbar a:hover,
.navbar-nav .nav-link:hover {
  color: #e0e0e0 !important;
}

/*ナビゲーションフォント指定*/
.navbar-nav .nav-link {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.05em;
  line-height: 24px;
}

/* 初期状態では両方非表示にしておく */
.mobile-menu-icon img {
  display: none;
}

/* Top（Home）ページでは -2.svg を表示 */
body.home .mobile-menu-icon img[src*="-2.svg"] {
  display: inline;
}

/* Top以外のページでは -3.svg を表示 */
body:not(.home) .mobile-menu-icon img[src*="-3.svg"] {
  display: inline;
}

/* モバイルハンバーガーアイコン */
.mobile-menu-icon {
  background: none;
  border: none;
  position: fixed;
  top: 25px;
  right: 5%;
  padding: 0;
  z-index: 1100;
  cursor: pointer;
}
.mobile-menu-icon img {
  width: 32px;
  height: 32px;
}

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  min-width: 280px;
  height: 100vh;
  background-color: #409590;
  z-index: 1090;
  transition: right 0.3s ease-in-out;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* ✅ 上詰め */
  align-items: center;           /* ✅ 横方向中央寄せ */
  padding: 2rem 1.5rem;
}


.mobile-menu.active {
  right: 0;
}
.menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 2rem;
}
.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  text-align: left;
  width: max-content;
  transform: translateX(-40px);
}


.mobile-menu-list li {
  margin: 1rem 0;
}
.mobile-menu-list li a {
  color: white;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 37px;
}



/* アニメーション初期状態 */
.mobile-menu-list li,
.menu-close {
  opacity: 0;
}

/* アクティブ時にアニメーションを走らせる */
.mobile-menu.active .mobile-menu-list li,
.mobile-menu.active .menu-close {
  animation: fadeIn 0.5s forwards;
}

/* 順番に出す */
.mobile-menu.active .mobile-menu-list li:nth-child(1) { animation-delay: 0.2s; }
.mobile-menu.active .mobile-menu-list li:nth-child(2) { animation-delay: 0.35s; }
.mobile-menu.active .mobile-menu-list li:nth-child(3) { animation-delay: 0.5s; }
.mobile-menu.active .mobile-menu-list li:nth-child(4) { animation-delay: 0.65s; }
.mobile-menu.active .mobile-menu-list li:nth-child(5) { animation-delay: 0.8s; }
.mobile-menu.active .mobile-menu-list li:nth-child(6) { animation-delay: 0.95s; }
.mobile-menu.active .mobile-menu-list li:nth-child(7) { animation-delay: 1.1s; }

.mobile-menu.active .menu-close {
  animation-delay: 1.4s;
}

/* アニメーション定義 */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.wpml-ls-legacy-list-horizontal ul {
  display: flex;
  gap: 0; /* 縦線と間隔を別で制御 */
  list-style: none;
  padding: 0;
  margin: 0;
}

.wpml-ls-legacy-list-horizontal li {
  position: relative;
  padding: 0 8px;
}

.wpml-ls-legacy-list-horizontal li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #fff; /* メニューの色に合わせて調整 */
  padding-left: 8px;
  font-weight: 100;
}


@media(max-width: 767px){
  .wpml-ls{
    margin-top: auto;
    margin-bottom: 100px;
    margin-left: 25px;
    width: 100%;
    font-size: 1.25rem;
  }
  .wpml-ls-legacy-list-horizontal a:link,.wpml-ls-legacy-list-horizontal a:hover,.wpml-ls-legacy-list-horizontal a:visited{
    color:#fff;
  }
}



body:not(.home) .wpml-ls-legacy-list-horizontal li:not(:last-child)::after{
  color:#409590;
}