/* Reset */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans JP',sans-serif;line-height:1.6;}
a{text-decoration:none;color:#333;}
ul{list-style:none;}

/* Header */
header {
  width: 100%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
  padding: 15px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
}

/* ロゴ画像のスタイル */
.logo img {
    height: 60px; /* PCサイズ */
    width: auto;
    transition: height 0.3s ease;
}

/* タブレットサイズ */
@media (max-width: 1024px) {
  .logo img {
    height: 50px;
  }
  
  #globalNav {
    gap: 20px;
  }
}

/* スマホサイズ */
@media (max-width: 767px) {
  .logo img {
    height: 40px;
  }
  
  .hamburger {
    display: block;
  }
  
  #globalNav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-left: 0;
  }
  
  #globalNav.active {
    right: 0;
  }
  
  #globalNav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }
  
  #globalNav a::after {
    display: none;
  }
}

.logo-text {
    font-family: 'YuMincho', 'Yu Mincho', '游明朝', 'YuMincho', 'Yu Mincho', serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
/* ナビゲーション */
#globalNav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 40px; /* ロゴとの間隔を調整 */
}

#globalNav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding: 5px 0;
}

#globalNav a:hover {
  color: #8b5a2b;
}

#globalNav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #8b5a2b;
  transition: width 0.3s ease;
}

#globalNav a:hover::after {
  width: 100%;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  position: relative;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #333;
  transition: all .3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }
.hamburger.active span{background:#b60020;}
.hamburger.active span:nth-child(1){transform:translateY(8.7px) rotate(45deg);}
.hamburger.active span:nth-child(2){opacity:0;}
.hamburger.active span:nth-child(3){transform:translateY(-8.7px) rotate(-45deg);}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-out, visibility 0.2s;
}

body.menu-open .overlay {
  opacity: 1;
  visibility: visible;
}

/* SP menu */
@media(max-width:860px){
  #globalNav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
  }      
  
  #globalNav.is-active {
    right: 0;
  }      
  
  .hamburger {
    display: flex;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1101;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  
  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    transition: all 0.3s;
  }
  
  .hamburger.is-active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  
  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-47deg);
  }
  
  /* メニューオープン時の背景 */
  body.menu-open {
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
  }
  
  /* オーバーレイのスタイル */
  #menuOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  #menuOverlay.is-active {
    display: block;
    opacity: 1;
  }
  
  /* メニューリンクのスタイル */
  #globalNav a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    color: #333;
    border-bottom: 1px solid #eee;
    width: 100%;
  }
  
  #globalNav a:hover {
    color: #b60020;
  }
}



