/**
 * Component: header.css
 * Usage: ヘッダー・PCナビゲーション
 * Source: base.css から分割
 *
 * 構成:
 * - .bl_headerCont: ヘッダーコンテナ
 * - .bl_header_logo: ロゴ
 * - .bl_header_nav: PCナビゲーション
 * - .bl_headerDropdown: ドロップダウンメニュー
 * - .bl_megaMenu: メガメニュー
 */

/* ================================================
   ヘッダー（モバイルファースト）
   ================================================ */
.ly_header.is-scrolled {
  background: url('../../img/header_bg.webp') no-repeat center center/cover;
}
.bl_headerCont {
  width: 100%;
  display: flex;
}
@media screen and (max-width: 768px) {
  .bl_headerCont {
    padding: 0 15px;
  }
}
.sp_menu_open{
  display: none;
}
.bl_header_logo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: var(--font-sm);
  font-weight: var(--font-regular);
  letter-spacing: 0.1em;
  max-width: 70%;
}

.bl_header_logo h1,
.bl_header_logo p {
  font-size: 10px;
  color: var(--color-white);
  font-weight: var(--font-regular);
  font-feature-settings: 'palt';
}
@media screen and (min-width: 768px) {
  .bl_header_logo img {
    max-height: 26px;
  }
}

.bl_header_nav {
  display: flex;
  align-items: center;
  display: none;
}

.bl_header_nav_ul {
  display: flex;
  align-items: center;
}

.bl_header_nav_ul .bl_header_nav_ul_li > a {
  padding-inline: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.bl_header_nav_ul .bl_header_nav_actionBtn a {
  padding-inline: 12px;
  display: flex;
  line-height: 1;
}
 .bl_header_nav .el_blueBtn{
  display: none;
 }
/* ================================================
   ヘッダーナビ ドロップダウン
   ================================================ */
.bl_header_nav_ul_li__hasDropdown {
  position: relative;
  cursor: pointer;
}

.bl_headerDropdown_icon {
  transition: transform 0.3s ease;
}

.bl_header_nav_ul_li__hasDropdown:hover .bl_headerDropdown_icon {
  transform: rotate(180deg);
}

.bl_headerDropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 200px;
  background: var(--color-white);
  border-radius: 8px;
  padding: 4px;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.bl_header_nav_ul_li__hasDropdown:hover .bl_headerDropdown {
  opacity: 1;
  visibility: visible;
}
.bl_headerDropdown li:not(:last-child) {
  margin-bottom: 4px;
}
.bl_headerDropdown li a {
  display: block;
  padding: 14px 20px;
  white-space: nowrap;
  border-right: none;
  color: var(--color-primary);
}

.bl_headerDropdown li a:hover {
  background: var(--color-bg-highlight);
  font-weight: var(--font-bold);
  border-radius: 8px;
}

/* ================================================
   メガメニュー
   ================================================ */
.bl_header_nav_ul_li__hasMega {
  position: relative;
}

.bl_megaMenu {
  position: absolute;
  top: 100%;
  width: 688px;
  right: 0;
  transform: translateX(50%);
  max-width: 100vw;
  background: var(--color-white);
  border-radius: 8px;
  padding: 4px;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.bl_header_nav_ul_li__hasMega:hover .bl_megaMenu {
  opacity: 1;
  visibility: visible;
}

.bl_megaMenu_body {
  display: flex;
  gap: 0;
}

.bl_megaMenu_cats {
  width: 280px;
  flex-shrink: 0;
}

.bl_megaMenu_catItem {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 10px;
  cursor: pointer;
  border-radius: 8px 0 0 8px;
}

.bl_megaMenu_catItem:hover {
  font-weight: var(--font-bold);
  background: var(--color-bg-highlight);
}
.bl_megaMenu_catItem:hover img{
  transform: rotate(45deg);
}
.bl_megaMenu_catItem.is_active {
  font-weight: var(--font-bold);
  background: var(--color-bg-highlight);
}
.bl_megaMenu_catItem.is_active img{
  transform: rotate(45deg);
}

.bl_megaMenu_symptoms {
  flex: 1;
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 0 8px 8px 0;
  color: var(--color-primary);
  background: var(--color-bg-highlight);
}

.bl_megaMenu_symptomGroup {
  display: none;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
}

.bl_megaMenu_symptomGroup.is_active {
  display: flex;
}

.bl_megaMenu_symptomBtn {
  display: block;
  padding: 8px 16px;
  text-align: center;
  justify-content: center;
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: 8px;
  font-size: var(--font-sm);
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.bl_megaMenu_symptomBtn:hover {
  font-weight: var(--font-bold);
}
/* ================================================
   ヘッダーナビ ドロップダウン時のオーバーレイ
   ================================================ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.ly_header:has(.bl_header_nav_ul_li__hasDropdown:hover) + .overlay,
.ly_header:has(.bl_header_nav_ul_li__hasMega:hover) + .overlay {
  opacity: 1;
  visibility: visible;
}

@media screen and (min-width: 768px) {
  .ly_header {
    z-index: 1005;
    height: 64px;
    padding-left: 20px;
  }
}
/* ================================================
   Tablet (768px〜)
   ================================================ */
@media screen and (min-width: 768px) {


  .bl_header_logo h1,
  .bl_header_logo p {
    font-size: 10px;
  }

  .bl_headerCont {
    justify-content: space-between;
    overflow: visible;
  }

  .bl_header_logo {
    font-size: 18px;
  }

  .bl_header_logo img {
    max-height: 40px;
  }

  .bl_header_nav {
    display: flex;
    height: 100%;
    gap: 20px;
    margin-inline: auto 70px;
  }

  /* 768-1100: ナビリンク非表示、ハンバーガー表示 */
  .bl_header_nav_ul .bl_header_nav_ul_li a {

  }
  .bl_header_nav_ul {
    display: none;
  }

  .bl_header_nav_ul .bl_header_nav_actionBtn.bl_header_nav_actionBtn_myPage,
  .bl_header_nav_ul .bl_header_nav_actionBtn.bl_header_nav_actionBtn_contact {
    position: relative;
    height: 100%;
  }

  .bl_header_nav_ul .bl_header_nav_actionBtn a {
    position: relative;
    z-index: 1;
  }
}

/* ================================================
   PC (1024px〜)
   ================================================ */


/* ================================================
   Wide PC (1100px〜)
   ================================================ */
@media screen and (min-width: 1280px) {
  .bl_header_nav {
    margin-inline: unset;
    flex: 1;
    justify-content: end;
  }
  .bl_header_nav_ul .bl_header_nav_ul_li > a {
    padding: 20px;
    color: var(--color-white);
  }
  .bl_header_nav_ul {
    display: flex !important;
    justify-content: end;
    align-items: center;
    text-align: center;
    row-gap: 12px;
    height: 100%;
    flex: 1;
  }
  .bl_header_nav .el_blueBtn {
    display: flex;
    max-width: 310px;
    font-weight: 400;
    font-size: 1.25rem;
    width: 100%;
    gap: 8px;
    padding-inline: 30px;
    position: static;
    height: 64px;
    border-radius: 0 0 0 0;
    letter-spacing: 0.05em;
  }

  .bl_header_nav .el_blueBtn img {
    position: static;
    transform: none;
    width: 32px;
  }

}

/* ================================================
   Extra Wide PC (1380px〜)
   ================================================ */
@media screen and (min-width: 1380px) {
  .bl_header_nav_ul {
    display: flex;
    align-items: center;
  }
}
