@charset "utf-8";
/* ============================================================================
   CSS information
   style info : あゆみ製薬採用サイト ヘッダー・ナビゲーション（navi.css）
   responsive : 1000px以下でSP、1001px以上でPC
   liquid     : コンテンツ幅 max 1000px、背景・フル幅要素は画面に追従
 ============================================================================ */

 #header_wrap {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  background:rgb(255, 255, 255,0.8);
  z-index: 1000;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

#header_wrap .inner{
  padding: 0;
}

#header_wrap .header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px 10px 55px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* ロゴエリア */
#header_wrap .logo-area {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: 20px;
}
/* ロゴエリア ロゴの天地位置を微調整*/
#header_wrap .logo-area .logo {
  margin-top: -12px;
}
@media (max-width: 1000px) {
  #header_wrap .logo-area .logo {
    margin-top: -10px;
  }
}



#header_wrap .site-type a,
#header_wrap .site-type a:hover {
  font-size: 1.4rem;
  color: #666;
  padding-left: 20px;
  border-left: 1px solid #ddd;
  text-decoration: none;
}

/* ヘッダーボタン */
#header_wrap .header-buttons {
  display: flex;
  gap: 15px;
}

#header_wrap .header-btn {
  padding: 5px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 300;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

#header_wrap .entry-btn,
#header_wrap .mypage-btn {
  background: var(--common_R);
  color: #ffffff;
}

#header_wrap .entry-btn:hover,
#header_wrap .mypage-btn:hover {
  background: var(--common_R-dk);
  text-decoration: none;
}




#header_wrap .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

#header_wrap .nav-list {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  --active-anchor: --nav-1;
  padding: 0;
  margin: 0;
}

#header_wrap .nav-link {
  display: block;
  padding: 5px 15px;
  text-decoration: none;
  color: #333;
  font-size: 1.4rem;
  text-align: center;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

#header_wrap .nav-link .arrow_circle {
  display: none;
}

#header_wrap .nav-link:hover {
  color: #ffffff;
  text-decoration: none;
}

/* アンカーポジショニングによる追従背景 */
#header_wrap .nav-list::before {
  content: '';
  position: absolute;
  position-anchor: var(--active-anchor);
  top: anchor(top);
  left: anchor(left);
  width: anchor-size(width);
  height: anchor-size(height);
  background-color: var(--common_R);
  border-radius: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-property: top, left, width, height, opacity;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

#header_wrap .nav-list.active::before {
  opacity: 1;
}

/* ハンバーガーメニューボタン（デフォルトは非表示） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 40px;
  height: 1px;
  background-color: #333;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* レスポンシブ対応（PCのみ適用） */
@media (min-width: 1001px) {
  #header_wrap {
    position: fixed;
    transition: all 1s ease;
  }
  /* スクロール時に小さくなるヘッダーの白帯 */
  #header_wrap.scrolled {
    top:-30px;
  }
  /* スクロール時に小さくなるヘッダー内の要素 */
  #header_wrap .inner {
    transition: all 1s ease;
    transform-origin: bottom left;
  }
    #header_wrap.scrolled .inner {
    transform: scale(.7);
  }

  /* グローバルナビゲーション */
  #header_wrap nav {
    padding-bottom: 10px;
  }
  /* スクロール時にナビゲーションの位置を調整 */
  #header_wrap header.scrolled ~ nav {
    transform: scale(.8) translateY(-35px);
    margin-bottom: -40px;
    margin-left: -5px;
  }
  
}

/* レスポンシブ対応 */
@media (max-width: 1000px) {
  #header_wrap .header-container {
      padding: 15px 20px;
  }

  #header_wrap .logo-area {
      gap: 10px;
  }
  #header_wrap .logo-area img {
    width: 180px;
}

  #header_wrap .site-type {
      font-size: 12px;
  }

  /* ヘッダーボタンを画面下部に固定 */
  #header_wrap .header-buttons {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 1002;
      background: rgb(255, 255, 255,0.8);
      padding: 15px 20px;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
      gap: 10px;
      justify-content: center;
  }

  #header_wrap .header-btn {
      padding: 5px 15px;
      font-size: 1.2rem;
      min-width: 10em;
      text-align: center;
  }

  /* ハンバーガーメニューを表示 */
  .hamburger {
      display: flex;
      position: fixed;
      top: 14px;
      right: 10px;
  }

  /* ナビゲーションをモバイル用に変更 */
  #header_wrap nav {
      position: fixed;
      top: 0;
      right: -100%;
      width: 280px;
      height: 100vh;
      background-color: #ffffff;
      box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
      transition: right 0.4s ease;
      z-index: 1000;
      overflow-y: auto;
  }

  #header_wrap nav.active {
      right: 0;
  }

  #header_wrap .nav-container {
      padding: 80px 20px 20px;
  }

  #header_wrap .nav-list {
      flex-direction: column;
      gap: 0;
  }

  /* アンカーポジショニング背景を非表示 */
  #header_wrap .nav-list::before {
      display: none;
  }

  #header_wrap .nav-item {
      width: 100%;
      border-bottom: 1px solid #f0f0f0;
  }

  #header_wrap .nav-item:last-child {
      border-bottom: none;
  }

  #header_wrap .nav-link {
      display: flex;
      align-items: center;
      padding: 10px 0px 10px 10px;
      text-align: left;
      font-size: 1.4rem;
  }

  #header_wrap .nav-link .arrow_circle {
      display: inline-flex;
      margin-left: auto;
      transform: scale(.5);
  }

  #header_wrap .nav-link:hover {
      background-color: #f5f5f5;
      color: var(--common_R);
  }

  /* オーバーレイ */
  .overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 999;
      opacity: 0;
      transition: opacity 0.4s ease;
  }

  .overlay.active {
      display: block;
      opacity: 1;
  }
}