/*----------------------------------------
  Menu Ballot-Flurin (identique à PrestaShop)
  À charger après style.css
-----------------------------------------*/

#masthead {
  --bfa-c-n: #343434;
  --bfa-c-j: #F7D588;
  --bfa-c-jc: #FCF3D5;
  --bfa-c-mc: #E2CDAC;
  --bfa-f-b: "brownregular", sans-serif;
  --bfa-f-c: "ITC Clearface Std", serif;
  --bfa-shadow: 0 23px 46px 0 rgba(144, 103, 103, 0.11);
  --bfa-img: url("https://www.ballot-flurin.com/themes/classic-child/assets/img/");
}

#masthead #follow {
  transition: left 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}

#masthead .bfa_tout_voir {
  display: none;
}

/*---------- panneau commun ----------*/

#masthead .nav_panel {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: auto;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  font-family: var(--bfa-f-b);
  font-size: 1.4rem;
  background: var(--bfa-c-jc) no-repeat top right;
  box-shadow: 0 5px 6px 0 rgba(249, 190, 169, 0.29);
  transition: max-height 0.5s cubic-bezier(.25, .8, .25, 1), opacity 0.3s ease;
}

#masthead.scroll .nav_panel {
  top: 45px;
}

#masthead .nav_panel::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  background-color: #fff;
  top: 0;
  left: 0;
}

#masthead .nav_panel > .margin_auto {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  width: 1440px;
  max-width: 100%;
  padding: 30px 20px 40px;
}

#masthead .nav_panel .bfa_menu_colonne,
#masthead .nav_panel .nav_preparations_visuel {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#masthead .nav_panel > .margin_auto > .bfa_menu {
  flex: 1 1 auto;
}

/*---------- images différées ----------*/

#masthead.menu-assets .nav_panel {
  background-image: url("https://www.ballot-flurin.com/themes/classic-child/assets/img/deco_menu.jpg");
}

#masthead.menu-assets .prep_deco .deco_defaut {
  background-image: url("https://www.ballot-flurin.com/themes/classic-child/assets/img/menu/defaut.jpg");
}

#masthead.menu-assets .prep_deco .deco_indispensables {
  background-image: url("https://www.ballot-flurin.com/themes/classic-child/assets/img/menu/deco_indispensables.jpg");
}

#masthead.menu-assets .prep_deco .deco_moment_de_vie {
  background-image: url("https://www.ballot-flurin.com/themes/classic-child/assets/img/menu/deco_moment_de_vie.jpg");
}

#masthead.menu-assets .prep_deco .deco_sante {
  background-image: url("https://www.ballot-flurin.com/themes/classic-child/assets/img/menu/deco_sante.jpg");
}

#masthead.menu-assets .prep_deco .deco_apicosmetique {
  background-image: url("https://www.ballot-flurin.com/themes/classic-child/assets/img/menu/deco_apicosmetique.jpg");
}

#masthead.menu-assets .prep_deco .deco_hygiene {
  background-image: url("https://www.ballot-flurin.com/themes/classic-child/assets/img/menu/deco_hygiene.jpg");
}

#masthead.menu-assets .prep_deco .deco_miels {
  background-image: url("https://www.ballot-flurin.com/themes/classic-child/assets/img/menu/deco_miels.jpg");
}

#masthead.menu-assets #nav_event .nav_panel::before {
  background-image: url("https://www.ballot-flurin.com/themes/classic-child/assets/img/menu/bg_experience.jpg");
}

#masthead.menu-assets .nav_ruche.nav_panel::before {
  background-image: url("https://www.ballot-flurin.com/themes/classic-child/assets/img/menu/deco_ruche.jpg");
}

/*---------- Nos préparations ----------*/

#masthead .nav_preparations > .margin_auto {
  position: relative;
  z-index: 1;
}

#masthead .prep_deco {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 240px;
  height: 159px;
  pointer-events: none;
  z-index: 0;
}

#masthead .prep_deco span {
  position: absolute;
  inset: 0;
  background: no-repeat center center;
  background-size: contain;
  opacity: 0;
}

#masthead .prep_deco .deco_defaut {
  opacity: 1;
}

#masthead .nav_preparations:has(.bfa_menu_famille:hover) .deco_defaut {
  opacity: 0;
}

#masthead .nav_preparations:has(.menu_indispensables:hover) .deco_indispensables,
#masthead .nav_preparations:has(.menu_moment_de_vie:hover) .deco_moment_de_vie,
#masthead .nav_preparations:has(.menu_sante:hover) .deco_sante,
#masthead .nav_preparations:has(.menu_apicosmetique:hover) .deco_apicosmetique,
#masthead .nav_preparations:has(.menu_hygiene:hover) .deco_hygiene,
#masthead .nav_preparations:has(.menu_miels:hover) .deco_miels {
  opacity: 1;
}

#masthead .nav_preparations_menu {
  flex: 1 1 auto;
  min-width: 0;
}

#masthead .bfa_menu {
  display: flex;
  gap: 30px;
}

#masthead .bfa_menu,
#masthead .bfa_menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

#masthead .bfa_menu .bfa_menu_colonne {
  flex: 1 1 0;
  min-width: 0;
}

#masthead .bfa_menu .bfa_menu_familles {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

#masthead .bfa_menu .bfa_menu_famille + .bfa_menu_famille {
  position: relative;
  padding-top: 30px;
}

#masthead .bfa_menu .bfa_menu_famille + .bfa_menu_famille::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 150px;
  height: 1px;
  background-color: var(--bfa-c-mc);
}

#masthead .bfa_menu a {
  text-decoration: none;
}

#masthead .bfa_menu .bfa_menu_titre,
#masthead .bfa_menu .bfa_menu_lien {
  color: var(--bfa-c-n);
  position: relative;
  font-size: 1.3rem;
}

#masthead .bfa_menu .bfa_menu_titre {
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

#masthead .bfa_menu .bfa_menu_titre::after,
#masthead .bfa_menu .bfa_menu_lien::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 6px;
  background-color: var(--bfa-c-j);
  z-index: -1;
  transform: scale(0, 1);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(.785, .135, .15, .86);
}

#masthead .bfa_menu .bfa_menu_titre:hover,
#masthead .bfa_menu .bfa_menu_titre.actif,
#masthead .bfa_menu .bfa_menu_lien:hover,
#masthead .bfa_menu .bfa_menu_lien.actif {
  color: var(--bfa-c-n) !important;
}

#masthead .bfa_menu .bfa_menu_titre:hover::after,
#masthead .bfa_menu .bfa_menu_titre.actif::after,
#masthead .bfa_menu .bfa_menu_lien:hover::after,
#masthead .bfa_menu .bfa_menu_lien.actif::after {
  transform: scale(1, 1);
  transform-origin: left center;
}

#masthead .bfa_menu .bfa_menu_liens {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#masthead .bfa_menu .decal_top {
  margin-top: 20px;
}

#masthead .bfa_menu .menu_indispensables .bfa_menu_lien {
  font-weight: 600;
}

#masthead .bfa_menu .menu_groupe {
  margin-top: 22px;
}

#masthead #sep_h_menu {
  width: 1px;
  height: 256px;
  background-color: var(--bfa-c-mc);
  position: absolute;
  left: 0;
}

#masthead .nav_preparations_visuel {
  flex: 0 0 400px;
  max-width: 400px;
  text-align: center;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

#masthead .carte_apitherapeute {
  position: relative;
  display: block;
  overflow: hidden;
  width: 232px;
  height: 304px;
  box-shadow: var(--bfa-shadow);
  border-radius: 6px;
}

#masthead .carte_apitherapeute img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
  object-fit: cover;
}

#masthead .carte_apitherapeute::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.45) 100%);
}

#masthead .carte_apitherapeute .carte_kicker,
#masthead .carte_apitherapeute .carte_titre {
  position: absolute;
  left: 25px;
  right: 25px;
  z-index: 2;
  color: #fff;
  text-align: left;
  text-transform: uppercase;
}

#masthead .carte_apitherapeute .carte_kicker {
  top: 15px;
  font-size: 1.8rem;
  font-family: var(--bfa-f-c);
  text-transform: none;
}

#masthead .carte_apitherapeute .carte_kicker span {
  font-weight: bold;
  font-style: italic;
  position: relative;
  z-index: 0;
}

#masthead .carte_apitherapeute .carte_kicker span::before {
  content: "";
  position: absolute;
  transition: transform 0.45s cubic-bezier(.785, .135, .15, .86);
  transform-origin: left center;
  background-color: #fff;
  width: 100%;
  height: 2px;
  left: 0;
  right: 0;
  bottom: -2px;
  transform: scale(1, 1);
}

#masthead .carte_apitherapeute .carte_titre {
  bottom: 15px;
  font-size: 2rem;
  line-height: 2.8rem;
  font-weight: 600;
}

#masthead .carte_apitherapeute .carte_fleche {
  display: inline-block;
  top: 3px;
  width: 30px;
  height: 18px;
  position: relative;
  background: url("https://www.ballot-flurin.com/themes/classic-child/assets/img/white_arrow_right.png") no-repeat center center;
  background-size: contain;
}

#masthead .carte_apitherapeute:hover img {
  transform: scale(1.03);
}

#masthead .carte_apitherapeute:hover .carte_kicker span::before {
  transform-origin: right center;
  transform: scale(0, 1);
  background-color: var(--bfa-c-j);
}

#masthead .carte_texte {
  margin: 25px auto 0;
  max-width: 300px;
  font-family: var(--bfa-f-c);
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: var(--bfa-c-n);
}

/*---------- Expériences ----------*/

#masthead #nav_event .nav_panel::before {
  content: "";
  width: 240px;
  height: 159px;
  background: no-repeat center center;
  background-size: contain;
  position: absolute;
  left: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

#masthead #nav_event .menu_col_1 {
  font-size: 2.1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

#masthead #nav_event .menu_col_1 span {
  font-family: var(--bfa-f-c);
  margin-bottom: 15px;
  font-size: 2.8rem;
  width: 100%;
}

#masthead #nav_event .nav_panel a {
  position: relative;
  display: block;
  width: 232px;
  margin-top: 20px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bfa-c-n);
}

#masthead #nav_event .cache_img_menu {
  width: 232px;
  height: 104px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
  border-radius: 3px;
  box-shadow: var(--bfa-shadow);
}

#masthead #nav_event .cache_img_menu img {
  width: 232px;
  height: 104px;
  transition: transform 0.6s ease;
}

#masthead #nav_event .nav_panel a:hover img {
  transform: scale(1.03);
}

#masthead #nav_event .descri_menu {
  max-width: 300px;
  margin-top: 5px;
  font-family: var(--bfa-f-c);
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: var(--bfa-c-n);
  text-transform: none;
  font-weight: normal;
}

/*---------- Notre ruche ----------*/

#masthead .nav_ruche.nav_panel::before {
  content: "";
  width: 240px;
  height: 159px;
  background: no-repeat center center;
  background-size: contain;
  position: absolute;
  left: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

#masthead .nav_ruche .ruche_liste {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 40px;
  align-items: center;
}

#masthead .nav_ruche .ruche_liste > li {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#masthead .nav_ruche .ruche_item {
  text-align: center;
}

#masthead .nav_ruche .ruche_liste a {
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--bfa-c-n);
}

#masthead .nav_ruche .ruche_liste a span {
  position: relative;
}

#masthead .nav_ruche .ruche_liste a span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 6px;
  background-color: var(--bfa-c-j);
  z-index: -1;
  transform: scale(0, 1);
  transform-origin: right center;
  transition: transform 0.45s cubic-bezier(.785, .135, .15, .86);
}

#masthead .nav_ruche .ruche_liste a:hover,
#masthead .nav_ruche .ruche_liste a.actif {
  color: var(--bfa-c-n) !important;
}

#masthead .nav_ruche .ruche_liste a:hover span::after,
#masthead .nav_ruche .ruche_liste a.actif span::after {
  transform: scale(1, 1);
  transform-origin: left center;
}

#masthead .nav_ruche p.ruche_accroche {
  margin-bottom: 0;
}

#masthead .nav_ruche .ruche_intro {
  max-width: 230px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-right: 20px;
  text-align: center;
}

#masthead .nav_ruche .ruche_intro span.bigger {
  font-family: var(--bfa-f-c);
  font-size: 2.2rem;
  width: 100%;
  font-weight: bold;
}

#masthead .nav_ruche .ruche_intro .mini_nav {
  text-transform: none;
  font-weight: normal;
}

#masthead .nav_ruche .ruche_intro .mini_nav span::after {
  display: none;
}

/*---------- icône boutique ----------*/

#masthead .store_link {
  width: 22px;
  height: 22px;
  padding: 5px;
  background: url("https://www.ballot-flurin.com/themes/classic-child/assets/img/menu/store.jpg") no-repeat left center;
  background-size: contain;
  margin-right: 25px;
  transition: transform 0.3s ease;
}

#masthead .store_link:hover {
  transform: scale(0.95);
}

/*---------- ordinateur ----------*/

@media screen and (min-width: 1181px) {

  #masthead ul#first_nav_lvl li.nav_store {
    display: none;
  }

  #masthead .first_nav_item.is-open > .nav_panel,
  #masthead .first_nav_item:has(:focus-visible) > .nav_panel {
    opacity: 1;
    visibility: visible;
    max-height: 900px;
    pointer-events: all;
  }

  #masthead .first_nav_item.is-open > .nav_panel .bfa_menu_colonne,
  #masthead .first_nav_item.is-open > .nav_panel .nav_preparations_visuel,
  #masthead .first_nav_item:has(:focus-visible) > .nav_panel .bfa_menu_colonne,
  #masthead .first_nav_item:has(:focus-visible) > .nav_panel .nav_preparations_visuel {
    opacity: 1;
    transform: none;
  }

  #masthead .first_nav_item.is-open > .nav_panel .menu_col_1 { transition-delay: 0.11s; }
  #masthead .first_nav_item.is-open > .nav_panel .menu_col_2 { transition-delay: 0.17s; }
  #masthead .first_nav_item.is-open > .nav_panel .menu_col_3 { transition-delay: 0.23s; }
  #masthead .first_nav_item.is-open > .nav_panel .menu_col_4 { transition-delay: 0.29s; }
  #masthead .first_nav_item.is-open > .nav_panel .menu_col_5 { transition-delay: 0.35s; }
  #masthead .first_nav_item.is-open > .nav_panel .menu_col_6 { transition-delay: 0.41s; }
  #masthead .first_nav_item.is-open > .nav_panel .nav_preparations_visuel { transition-delay: 0.4s; }

  #masthead .first_nav_item.is-open > .nav_ruche .ruche_liste > li,
  #masthead .first_nav_item:has(:focus-visible) > .nav_ruche .ruche_liste > li {
    opacity: 1;
    transform: none;
  }

  #masthead .first_nav_item.is-open > .nav_ruche .ruche_liste > li:nth-child(1) { transition-delay: 0.22s; }
  #masthead .first_nav_item.is-open > .nav_ruche .ruche_liste > li:nth-child(2) { transition-delay: 0.29s; }
  #masthead .first_nav_item.is-open > .nav_ruche .ruche_liste > li:nth-child(3) { transition-delay: 0.36s; }
  #masthead .first_nav_item.is-open > .nav_ruche .ruche_liste > li:nth-child(4) { transition-delay: 0.43s; }
  #masthead .first_nav_item.is-open > .nav_ruche .ruche_liste > li:nth-child(5) { transition-delay: 0.5s; }
  #masthead .first_nav_item.is-open > .nav_ruche .ruche_liste > li:nth-child(6) { transition-delay: 0.57s; }
  #masthead .first_nav_item.is-open > .nav_ruche .ruche_liste > li:nth-child(7) { transition-delay: 0.64s; }
  #masthead .first_nav_item.is-open > .nav_ruche .ruche_liste > li:nth-child(8) { transition-delay: 0.71s; }

  #masthead .first_nav_item.is-open > div.f_nav::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -5px;
    width: 80px;
    height: 3px;
    background-color: var(--bfa-c-j);
  }
}

/*---------- mobile ----------*/

@media screen and (max-width: 1180px) {

  #masthead #sidebar_menu {
    align-items: stretch;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 40px;
  }

  #masthead #back_menu,
  #masthead #follow {
    display: none !important;
  }

  #masthead .store_link {
    display: none;
  }

  #masthead ul#first_nav_lvl li.first_nav_item {
    height: auto;
    display: block;
    border-bottom: 1px solid var(--bfa-c-mc);
  }

  #masthead ul#first_nav_lvl li.first_nav_item .f_nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-left: 0;
    padding: 15px 20px;
    white-space: normal;
    text-decoration: none;
  }

  #masthead ul#first_nav_lvl li.first_nav_item .f_nav.actif::after {
    display: none;
  }

  #masthead #nav_boutique > .f_nav::before,
  #masthead #nav_event > .f_nav::before,
  #masthead #nav_ruche > .f_nav::before,
  #masthead .bfa_menu_famille:has(.bfa_menu_liens) > .bfa_menu_titre::before {
    content: "";
    order: 2;
    width: 12px;
    height: 12px;
    background: url("https://www.ballot-flurin.com/themes/classic-child/assets/img/menu/arrow_down.png") no-repeat center center;
    background-size: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
  }

  #masthead .first_nav_item.is-open-mobile > .f_nav::before,
  #masthead .bfa_menu_famille.is-open > .bfa_menu_titre::before {
    transform: rotate(180deg);
  }

  #masthead ul#first_nav_lvl li.nav_store .f_nav {
    justify-content: flex-start;
    gap: 10px;
  }

  #masthead ul#first_nav_lvl li.nav_store .f_nav::before {
    content: "";
    width: 22px;
    height: 22px;
    background: url("https://www.ballot-flurin.com/themes/classic-child/assets/img/menu/store.jpg") no-repeat center center;
    background-size: contain;
    flex-shrink: 0;
  }

  #masthead .nav_panel {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: auto;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    pointer-events: all;
    z-index: auto;
    background: none;
    box-shadow: none;
    transition: max-height 0.35s ease;
  }

  #masthead .nav_panel::before,
  #masthead .nav_panel::after {
    display: none;
  }

  #masthead .nav_panel > .margin_auto {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 0 20px 10px;
  }

  #masthead .nav_panel .bfa_menu_colonne,
  #masthead .nav_panel .nav_preparations_visuel,
  #masthead .nav_panel .ruche_liste > li {
    opacity: 1;
    transform: none;
  }

  #masthead .first_nav_item.is-open-mobile > .nav_panel {
    max-height: 2000px;
  }

  #masthead .nav_preparations_visuel,
  #masthead .prep_deco {
    display: none;
  }

  #masthead .bfa_menu,
  #masthead .bfa_menu .bfa_menu_familles {
    flex-direction: column;
    gap: 0;
  }

  #masthead .bfa_menu .bfa_menu_famille + .bfa_menu_famille {
    padding-top: 0;
  }

  #masthead .bfa_menu .bfa_menu_famille + .bfa_menu_famille::before {
    display: none;
  }

  #masthead .bfa_menu .bfa_menu_famille {
    border-bottom: 1px solid var(--bfa-c-mc);
  }

  #masthead .bfa_menu .bfa_menu_colonne:last-child .bfa_menu_famille:last-child {
    border-bottom: none;
  }

  #masthead .bfa_menu .bfa_menu_titre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 12px 0;
  }

  #masthead .bfa_menu .bfa_menu_titre::after {
    display: none;
  }

  #masthead .bfa_menu .bfa_menu_liens {
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  #masthead .bfa_menu .bfa_menu_famille.is-open > .bfa_menu_liens {
    max-height: 800px;
    padding-bottom: 10px;
  }

  #masthead .bfa_menu .bfa_menu_lien {
    display: block;
    padding: 8px 0 8px 15px;
  } 

  #masthead .bfa_menu .menu_groupe,
  #masthead .bfa_menu .decal_top {
    margin-top: 0;
  }

  #masthead .bfa_tout_voir {
    display: block;
  }

  #masthead .bfa_tout_voir .bfa_menu_lien {
    font-weight: 600;
  }

  #masthead .nav_experiences .menu_col_1,
  #masthead .nav_experiences .cache_img_menu,
  #masthead .nav_experiences .descri_menu {
    display: none;
  }

  #masthead #nav_event .nav_panel a {
    width: auto;
    margin-top: 0;
    padding: 10px 0 10px 15px;
    text-transform: none;
    font-weight: normal;
  }

  #masthead .nav_ruche .ruche_liste {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  #masthead .nav_ruche .ruche_intro {
    display: none;
  }

  #masthead .nav_ruche .ruche_item {
    text-align: left;
  }

  #masthead .nav_ruche .ruche_liste a {
    text-align: left;
    text-transform: none;
    font-weight: normal;
    font-size: 1.3rem;
    padding: 10px 0 10px 15px;
  }
}

/*---------- panneau de recherche ----------*/

#masthead #search_menu {
  padding-top: 80px;
  font-family: var(--bfa-f-c);
  overflow-y: auto;
}

#masthead #search_menu p {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 1.4rem;
}

#masthead #header_search {
  width: 300px;
  max-width: 80%;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #000;
}

#masthead #header_search #search {
  border: none;
  padding-left: 30px;
  font-family: var(--bfa-f-b);
}

#masthead #header_search #loop {
  position: absolute;
  left: 0;
  top: 7px;
  width: 20px;
  height: 20px;
}

#masthead #illus_search {
  width: 80px;
  height: 94px;
  background: url("https://www.ballot-flurin.com/themes/classic-child/assets/img/bee_search.jpg") no-repeat center center;
  background-size: contain;
  margin-top: 30px;
}

#masthead #keyword_list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  width: 100%;
  min-width: 0;
  padding: 0 10px;
}

#masthead #keyword_list li {
  margin: 5px 10px;
  list-style: none;
} 

#masthead #keyword_list a,
#masthead .akina_search a.super_btn {
  display: inline-block;
  background-color: var(--bfa-c-j);
  color: var(--bfa-c-n);
  /*border-radius: 30px;*/
  text-decoration: none;
  font-family: var(--bfa-f-b);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#masthead #keyword_list a:hover,
#masthead .akina_search a.super_btn:hover {
  box-shadow: 0 0 12px 0 rgba(249, 190, 169, 1);
  transform: scale(1.03);
}

#masthead #keyword_list a {
  padding: 5px 13px;
  text-transform: capitalize;
  font-size: 1.1rem !important;
}

#masthead .akina_search {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 35px;
  margin-bottom: 20px;
}

#masthead .akina_search .illus_search_akina {
  width: 280px;
  height: 94px;
  background: url("https://www.ballot-flurin.com/themes/classic-child/assets/img/akina.jpg") no-repeat center center;
  background-size: contain;
} 

#masthead .akina_search p.bonus {
  max-width: 338px;
  padding: 0 5px 10px;
  font-family: var(--bfa-f-b);
  font-size: 1.1rem;
  line-height: 1.6rem;
}

#masthead .akina_search a.super_btn {
  max-width: 200px;
  padding: 10px;
  font-size: 1rem;
  font-weight: bold;
}

@media screen and (max-width: 1180px) {
  #masthead #illus_search {
    display: none;
  }
}