@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho&display=swap');

  body {
    font-family: 'Shippori Mincho', sans-serif;
  }

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* 他の要素よりも上に表示されるようにz-indexを指定 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 20px;
  background-color: rgba(255, 255, 255, 0.9); /* 50%の透明度 */
  color: #000000;
}

/* 初期状態は非表示 */
.show-on-scroll {
  opacity: 0;
  transition: opacity 0.2s;
}

/* 画面内に入ったら表示 */
.show-on-scroll.is-visible {
  opacity: 1;
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .header_list_nav li {
    padding: 10px 20px !important;
}
}

@media only screen and (max-width: 767px) {
  /* ここにモバイル向けのスタイルを記述 */
}

.header_nav {
  order: 2; /* 右に配置するために順序を指定 */
}

.header_list_nav {
  list-style: none;
  padding: 0;
  display: flex;
}

.header_list_nav li {
  text-align: center;
  padding: 10px 30px;
  position: relative;
}

.header_list_nav li::before {
  content: '';
  position: absolute;
  top: 50%;
  bottom: 50%;
  left: 0;
  transform: translateY(-50%);
  border-left: 1px solid #786a53;
  height: 15px; /* 高さを100%に設定 */
}

.header_list_nav li:last-child::before {
  content: none;
}

.header_list_nav a {
  text-decoration: none;
  color: #000000;
}

.header_list_nav span {
  display: block;
}

.logo img {
  width: 120px; /* ロゴのサイズに合わせて調整 */
  height: auto;
}

@media only screen and (max-width: 767px) {
  .logo img {
    width: 100px;
    height: auto;
    margin: 5px 0;
  }
}

.tit{
  font-size: 15px;
  margin-top: -1em; /* 上の間隔を調整 */
    margin-bottom: 0.2em; /* 下の間隔を調整 */
}
.eng {
  font-size: 12px;
  color: #b19972;
}

.header_contact{
  background: linear-gradient(to bottom right, #5b4430, #b9a37e, #5b4430);
  border: 1px solid #efe6d6; /* 白い線で囲む */
  box-shadow: 0 0 0 2px #8a7767; /* 茶色の線で囲む */
  height: 100%;
  margin-top: 10px;
}

.header_contact a{
  color: #fff;
}


/* ハンバーガーメニュー */
@media only screen and (max-width: 767px) {
  /* ヘッダー全体のスタイル */
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
  }

  /* ロゴのスタイル */
  .header_area_logo {
    order: 1;
  }

  .logo img {
    width: 120px;
    height: auto;
  }

  /* ハンバーガーメニューのスタイル */
  .menu-toggle {
    order: 2;
    cursor: pointer;
    display: none; /* 通常は非表示 */
  }

  .bar {
    width: 30px;
    height: 2px;
    background-color: #786a59;
    margin: 6px 0;
  }

  /* メニューのスタイル */

  /* アニメーション */
  @keyframes slideInRight {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(0);
    }
  }
  
  @keyframes slideOutRight {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(100%);
    }
  }
  
  /* ハンバーガーメニューがクリックされたときのアニメーション */
  .header_nav.show {
    display: block;
  
  }

  /* ナビゲーションが非表示にされたときのアニメーション */
  .header_nav.slideOutRight {
    animation: slideOutRight 0.3s ease forwards;
  }

  .header_nav {
    left: auto;
    right: 0;
    display: none; /* 通常は非表示 */
    position: absolute;
    top: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* 50%の透明度 */
    width: 80%;
    padding: 10px 20px 30px 20px;
    height: 100vh; /* 画面の高さに合わせる */
  }

  .header_list_nav {
    display: block;
    list-style: none;
    padding: 0;
    margin-right: 0;
    height: 100%;
  }

  .header_contact {
    display: inline-block; /* インラインブロック要素に変更 */
    margin: 0 auto; /* 左右のマージンを自動で調整して中央に配置 */
  }

  .header_list_nav li {
    margin-bottom: 10px;
    justify-content: center;
    align-items: center;
  }

  .header_list_nav li::before{
    display: none;
  }

  .header_nav ul {
    text-align: center;
  }
  .header_list_nav a {
    text-decoration: none;
    color: #000;
  }

  .header_contact {
    display: inline-block; /* インラインブロック要素に変更 */
    margin: 10px auto; /* 左右のマージンを自動で調整して中央に配置 */
    height: 45px;
  }

  .header_contact a{
    color: #fff;
  }

/* メディアクエリ: ハンバーガーメニューを表示する条件 */
  .menu-toggle {
      display: block; /* ハンバーガーメニューを表示 */
  }

  .header_nav.show {
      display: block; /* メニューが表示されている時にのみ表示 */
  }

  /* ハンバーガーメニューアイコン */
  .menu-toggle .bar:nth-child(1) {
    transform-origin: center;
    transition: transform 0.2s ease;
  }

  .menu-toggle .bar:nth-child(2) {
    transform-origin: center;
  }

  .menu-toggle .bar:nth-child(3) {
    transform-origin: center;
    transition: transform 0.2s ease;
  }

  /* ハンバーガーメニューをクリックした際のバツマークのアニメーション */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px)  rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}