.site-header {
  width: 100%;
  padding: 0;
  position: relative; /* ← ここを変更 */
  top: auto;          /* ← stickyの位置指定を解除 */
  z-index: 1000;      /* 必要なら残してOK */
  transition: transform .3s ease;
  will-change: transform;
}

.header-hide-disabled .site-header { 
  transform: none; 
}

/* 暖簾コンテナ */
.noren-container {
    position: relative;
    width: 100%;
    height: 200px; /* PC表示の高さ */
    overflow: hidden;
}

/* 暖簾の背景 - 1枚の画像のみを使用 */
.noren-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/wp-content/themes/astra-child/images/noren_bg.png' );
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;
    z-index: 1;
}

/* ナビゲーション */
.noren-nav {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
max-width: 100%; 
}

/* メニューリスト */
.noren-menu {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    list-style: none;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* メニュー項目 */
.noren-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2.5rem; /* 相対単位に変更 */
}

/* ロゴコンテナ */
.logo-container {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0.625rem; /* 相対単位に変更 */
}

/* サイトロゴ */
.site-logo {
    width: 100%;
    text-align: center;
    position: relative;
    left: -30px;
}

/* ロゴ画像 */
.logo-image {
    max-width: 140%;
    height: auto;
    max-height: 320px;
}

/* 縦書きテキスト */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: #000;
    text-decoration: none;
    font-family: ta-fuga-fude, 'Yuji Syuku', serif;
    font-weight: 900;
    font-size: 20px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.vertical-text:hover {
    color: #e60012;
}

/* PC表示用テキストとSP表示用テキスト */
.sp-text {
    display: none;
}

.indent {
    display: block;
    margin-top: 30px; 
  }

/* 各メニュー項目の個別位置調整 */
.menu-item-1 {
    position: relative;
    left: -5px; /* 相対単位に変更 */
}

.menu-item-2 {
   
    position: relative;
    right: 55px /* 相対単位に変更 */
}

.menu-item-3 {
    
    left: 90px; /* 相対単位に変更 */
    position: relative;
    line-height: 1.2;
}

.menu-item-4 {
   
    position: relative;
    left: 40px; /* 相対単位に変更 */
}

.menu-item-5 {
    position: relative;
    right: 20px; /* 相対単位に変更 */
line-height: 1.2;
}

/* SP表示用のロゴ（初期状態では非表示） */
.sp-logo {
    display: none;
    position: absolute;
    top: 0.625rem; /* 相対単位に変更 */
    left: 0.9375rem; /* 相対単位に変更 */
    z-index: 3;
    width: 9.375rem; /* 相対単位に変更 */
}

.sp-logo .logo-image {
    max-height: 8rem; /* ロゴ画像を小さく（160px→96px相当） */
}

/* ハンバーガーメニュー（初期状態では非表示） */
.hamburger-menu {
    display: none;
    position: absolute;
    top: 1.25rem; /* 相対単位に変更 */
    right: 1.25rem; /* 相対単位に変更 */
    z-index: 3;
    width: 2.5rem; /* 相対単位に変更 */
    height: 2.5rem; /* 相対単位に変更 */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    display: block;
    width: 1.875rem; /* 相対単位に変更 */
    height: 0.1875rem; /* 相対単位に変更 */
    background-color: #333;
    margin: 0.375rem auto; /* 相対単位に変更 */
    transition: all 0.3s ease;
}




.hamburger-menu.active {
  top: 5px;
  right: 5px;
}


/* ハンバーガーメニューがアクティブ時の線のアニメーション */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(0.5625rem) rotate(45deg); /* 相対単位に変更 */
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-0.5625rem) rotate(-45deg); /* 相対単位に変更 */
}

/* タブレット対応（992px以下） */
@media (max-width: 992px) {
    .noren-container {
        height: 180px; /* タブレット表示の高さ */
    }
    
    /* 背景画像は同じものを使用し、サイズのみ調整 */
    .noren-bg {
        background-size: 100% auto;
    }

    .logo-image {
        max-width: 150%;
        max-height: 320px;
        padding-bottom: 30px;
    }
    
    
    .vertical-text {
        font-size: 18px; /* 相対単位に変更 (16px) */
        height: 80px;
    }

    .menu-item-1 {
        left: -20px;
    }
    

    
    
    .menu-item-2 {
        right: 55px;
    }
    
    .menu-item-3 {
       
        left:70px; /* 相対単位に変更 */
    }
    
    .menu-item-4 {
        
        left: 40px; /* 相対単位に変更 */
    }
    
    .menu-item-5 {
        
        right: 5px; /* 相対単位に変更 */
    }
}

/* 小型タブレット対応（768px以下） */
@media (max-width: 768px) {
    .noren-container {
        height: 160px; /* 小型タブレット表示の高さ */
    }

    
    /* 背景画像は同じものを使用し、サイズのみ調整 */
    .noren-bg {
        background-size: 110% auto;
    }

    .logo-image {
        max-width: 165%;
        padding-bottom: 58px;
        left: -20px;
        position: relative;
    }
    

    
    .vertical-text {
        font-size: 13px; /* 相対単位に変更 (14px) */
        height: 58px; /* 相対単位に変更 (90px) */
    }
    
    
    /* 小型タブレット用の各メニュー項目位置調整 */
    .menu-item-1 {
        left: -15px;
    }
    
    .menu-item-2 {
       
        right: 45px; /* 相対単位に変更 */
    }
    
    .menu-item-3 {
        
        left: 60px; /* 相対単位に変更 */
    }
    
    .menu-item-4 {
        
        left: 40px; /* 相対単位に変更 */
    }
    
    .menu-item-5 {
        
        right: -10px; /* 相対単位に変更 */
    }
}

/* スマートフォン対応（576px以下） */
@media (max-width: 576px) {
  .noren-container {
    height: 70px;
  }

  .noren-bg {
    background-image: url('/wp-content/themes/astra-child/images/noren_bg2.png');
    background-size: cover;
    background-position: center top;
  }

  .logo-image {
    max-width: 150%;
    left: 10px;
    position: relative;
  }

  .sp-logo {
    display: block;
    z-index: 3;
    width: 9rem;
  }

  .hamburger-menu {
    display: block;
    
    top: 20px;
    right: 25px;
    z-index: 9999;
    background: none;
    border: none;
    cursor: pointer;
  }

  .pc-text {
    display: none;
  }

  .sp-text {
    display: inline;
  }

  .noren-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 40%; 
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    transition: all 0.4s ease;
    z-index: 20;
    overflow-y: auto;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
  }

.noren-nav a {
  color: #000; /* 通常色（例：黒） */
  text-decoration: none;
}

.noren-nav a:hover {
  color: #EA3123; /* ホバー時の色（例：赤） */
}

  .noren-nav.active {
    right: 0;
  }

  .noren-menu {
    display: flex;
    flex-direction: column;
    padding: 4.375rem 1rem 1.25rem;
    height: auto;
  }

  .noren-item {
    width: 100%;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #eee;
    text-align: center;
    position: static;
  }

  .logo-container {
    display: none;
  }

  .vertical-text {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
    display: block;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 9;
  }

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

.site-header.header-hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}




/* 【修正用コード】タブレット表示でのヘッダー背景画像のはみ出しを修正 */
@media (max-width: 768px) and (min-width: 577px) {
  .noren-bg {
    background-size: contain !important;
  }
}


@media (max-width: 576px) {
    .sp-logo {
      width: 100%;
        display: flex;
        justify-content: center;
        left: 0;
    }

    .sp-logo .logo-image {
       max-height: 8rem;
    left: auto;
    position: static;
    max-width: 150%;
    }
}