/* ==========================================================================
   WWF campaign header
   --------------------------------------------------------------------------
   This file is intentionally header-only. Keep shared page/module styles in
   modules.css, and add only navigation/header rules here.
   ========================================================================== */

:root {
  --wwf-header-black: #000;
  --wwf-header-white: #fff;
  --wwf-header-off-white: #f8f8f8;
  --wwf-header-orange: #f89834;
  --wwf-header-red-orange: #f36c42;
  --wwf-header-yellow: #fec01e;
  --wwf-header-yellow-bright: #ffe600;
  --wwf-header-grey: #97999c;
  --wwf-header-light-grey: #f8f8f8;
  --wwf-header-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
  --wwf-header-width: 1420px;
  --wwf-header-font: 游ゴシック, "Yu Gothic", 游ゴシック体, YuGothic, "Hiragino Sans", メイリオ, Meiryo, sans-serif;
  --wwf-body-font: 游ゴシック, "Yu Gothic", 游ゴシック体, YuGothic, "Hiragino Sans", メイリオ, Meiryo, sans-serif;
}

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */

.visually-hidden {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  white-space: nowrap;
  width: 1px;
  word-wrap: normal;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static !important;
  white-space: normal;
  width: auto;
}

/* --------------------------------------------------------------------------
   Header shell
   -------------------------------------------------------------------------- */

.site_header {
  color: var(--wwf-header-black);
  font-family: var(--wwf-body-font);
  position: sticky;
  box-shadow: var(--wwf-header-shadow);
  left: 0;
  top: 0;
  width: 100%;
  z-index: 50;
}

.site_header *,
.site_header *::before,
.site_header *::after {
  box-sizing: border-box;
}

.site_header a {
  color: inherit;
  text-decoration: none;
}

.site_header a:hover,
.site_header a:focus-visible,
.site_header button:hover,
.site_header button:focus-visible {
  outline: 0;
  text-decoration: underline;
  text-decoration-color: #000000;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.site_header .content {
  align-items: center;
  display: flex;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

.header_top_bar {
  background: var(--wwf-header-black);
  color: var(--wwf-header-white);
  font-family: var(--wwf-header-font);
  font-size: 23px;
  height: 50px;
  overflow: visible;
  position: relative;
  transition: height 300ms, transform 300ms;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .header_top_bar {
    display: none;
  }
}

.header_top_bar .content {
  justify-content: flex-end;
  min-height: 50px;
  text-align: right;
}

.header_top_bar .search {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.header_top_bar .search span {
  display: inline;
}

.header_main {
  background: var(--wwf-header-white);
  position: relative;
  z-index: 10;
}

.header_main > .content {
  align-items: flex-end;
  min-height: 67px;
}

.logo_panda_planet {
  display: block;
  flex: 0 0 auto;
  margin: 5px 0;
  position: relative;
  transition: height 300ms, margin 300ms, width 300ms;
  width: auto;
  z-index: 30;
}

.logo_panda_planet .panda_logo {
  float: left;
  height: auto;
  margin-right: 10px;
  max-height: 100%;
  max-width: none;
  width: auto;
}

/* --------------------------------------------------------------------------
   Icons drawn in CSS to avoid loading the original icon font.
   -------------------------------------------------------------------------- */

.site_header .icon-search,
.site_header .fa-bars {
  display: inline-block;
  font-family: inherit;
  font-size: 0;
  line-height: 0;
  position: relative;
  vertical-align: middle;
}

.site_header .icon-search {
  height: 1.45em;
  width: 1.45em;
}

.site_header .icon-search::before {
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  display: block;
  height: 1.05em;
  width: 1.05em;
}

.site_header .icon-search::after {
  background: currentColor;
  content: "";
  display: block;
  height: 2px;
  position: absolute;
  right: -0.45em;
  top: 0.88em;
  transform: rotate(45deg);
  transform-origin: left center;
  width: 0.7em;
}

.site_header .fa-bars {
  height: 18px;
  width: 24px;
}

.site_header .fa-bars::before,
.site_header .fa-bars::after {
  background: currentColor;
  content: "";
  display: block;
  height: 3px;
  left: 0;
  position: absolute;
  width: 24px;
	border-radius: 100px;
}

.site_header .fa-bars::before {
  box-shadow: 0 8px 0 currentColor;
  top: 1px;
}

.site_header .fa-bars::after {
  top: 17px;
}

/* --------------------------------------------------------------------------
   Main navigation
   -------------------------------------------------------------------------- */

.menu--main {
  flex: 1 1 auto;
  min-width: 0;
	margin-bottom: 1px;
}

.main_nav > ul {
  background: var(--wwf-header-white);
  display: flex;
  gap: 0;
  height: 65px;
  justify-content: flex-start;
  list-style: none;
  margin: 0 0 -1px 10px;
  padding: 0;
}

.main_nav > ul > li {
  display: flex;
  margin: 0;
  padding: 0;
}

.main_nav > ul > li > span,
.main_nav .top-level-destination {
  color: var(--wwf-header-black);
  display: block;
  font-family: var(--wwf-header-font);
  font-size: 1rem;
  height: 65px;
  line-height: 1;
  min-height: 65px;
  padding: 21px 15px;
  position: relative;
  text-transform: uppercase;
}

.main_nav .has_dropdown {
  cursor: pointer;
}

.main_nav > ul > li > span.has_dropdown::before {
  content: "";
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--wwf-header-grey);
  bottom: 12px;
  display: block;
  height: 0;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  transition: transform 160ms ease;
  width: 0;
}

.main_nav > ul > li > span.has_dropdown.dropdown_open::before {
  transform: rotate(180deg);
}

.main_nav .dropdown {
  background: var(--wwf-header-white);
  box-shadow: none;
  display: block;
  left: 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  padding: 0 40px;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transition: opacity 180ms ease, visibility 180ms ease;
  visibility: hidden;
  width: 100%;
  z-index: 10;
}

.main_nav .dropdown_open + .dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

@media (min-width: 1024px) {
  .main_nav > ul > li > span.has_dropdown:hover::before {
    border-top-color: var(--wwf-header-black);
    transform: scale(1.5);
  }

  .main_nav > ul > li:hover > .dropdown {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .main_nav > ul > li:hover > span.has_dropdown::before {
    border-top-color: var(--wwf-header-black);
    transform: scale(1.5);
  }
}

.main_nav .dropdown_inner {
  list-style: none;
  margin: 0 auto;
  padding: 15px 0;
  width: 95%;
}

.main_nav .dropdown_li {
  display: grid;
  gap: 28px 40px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.main_nav .col {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main_nav .col li + li {
  margin-top: 12px;
}

.main_nav .col a {
  display: inline-block;
  font-size: 0.875rem;
  line-height: 1.35;
  padding: 7px;
}

/* --------------------------------------------------------------------------
   Fundraising buttons
   -------------------------------------------------------------------------- */

.adopt_donate_buttons {
  flex: 0 0 50%;
  margin-left: auto;
  position: relative;
  width: 50%;
}

.menu_fundraising_items {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.menu_fundraising_0 {
  align-items: center;
  display: flex;
  flex: 0 1 50%;
  justify-content: center;
  width: 30%;
	max-width: 180px;
  min-width: 0;
  order: 1;
}

.menu_fundraising_1 {
  display: flex;
  order: 0;
}

.site_header .btn {
  border: 0;
  box-shadow: none;
  color: var(--wwf-header-black);
  display: block;
  flex: 1 1 0;
  font-family: var(--wwf-header-font);
  line-height: 1;
  margin: 0;
  min-width: 0;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 250ms, color 250ms;
}
.site_header .btn::before{
	content: none;
}

.site_header .btn:hover,
.site_header .btn:focus-visible {
  background: var(--wwf-header-black);
  box-shadow: none;
  color: var(--wwf-header-white);
  text-decoration: none;
  transform: none;
}

.site_header .btn--large {
  font-size: 1rem;
  min-height: 80px;
  padding: 30px;
}

.site_header .btn--1 {
  background: var(--wwf-header-orange);
}

.site_header .btn--2 {
  background: var(--wwf-header-red-orange);
  border-color: var(--wwf-header-orange);
  box-shadow: inset 0 -2px var(--wwf-header-orange);
}

.site_header .btn--4 {
  background: var(--wwf-header-yellow);
  border-color: var(--wwf-header-yellow-bright);
  box-shadow: inset 0 -2px var(--wwf-header-yellow-bright);
}

.site_header .btn--hover_fixed:hover,
.site_header .btn--hover_fixed:focus-visible {
  transform: none;
}

.site_header .menu_search {
  align-items: center;
  background: var(--wwf-header-off-white);
  display: flex;
  justify-content: center;
  min-width: 63px;
  padding-left: 22px;
  padding-right: 22px;
}

/* --------------------------------------------------------------------------
   Search and newsletter panels
   -------------------------------------------------------------------------- */

.header_search,
.header_newsletter {
  background: var(--wwf-header-white);
  box-shadow: none;
  display: none;
  height: 100%;
  left: 0;
  padding: 0 570px 0 40px;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 20;
}

.header_search_desktop {
  display: none;
}

body.search_visible .site_header > .header_main .header_search:not(.header_search_desktop),
body.newsletter_visible .site_header > .header_main .header_newsletter {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.header_search_input {
  flex: 1 1 auto;
}

.search-api-block-form form {
  align-items: center;
  display: flex;
  gap: 14px;
}

.search-api-block-form form > .js-form-type-search {
  flex: 1 1 auto;
}

.header_search input.form-search {
  background: var(--wwf-header-white);
  border: 0;
  font-family: var(--wwf-header-font);
  font-size: 40px;
  line-height: 1;
  padding: 0;
  text-transform: uppercase;
  width: 100%;
}

.site_header .btn--minimal,
.header_search input.btn.form-submit {
  background: var(--wwf-header-white);
  border: 0;
  box-shadow: none;
  cursor: pointer;
  font-family: var(--wwf-header-font);
  font-size: 24px;
  min-height: 0;
  padding: 15px 20px;
}

.menu-btn-wrap {
  align-items: flex-start;
  display: flex;
}

.close_icon {
  background: transparent;
  border: 0;
  color: transparent;
  cursor: pointer;
  display: block;
  height: 20px;
  line-height: 0;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-indent: 100%;
  white-space: nowrap;
  width: 40px;
}

.close_icon::before,
.close_icon::after {
  background: var(--wwf-header-black);
  content: "";
  display: block;
  height: 1px;
  left: 0;
  position: absolute;
  top: 50%;
  width: 100%;
}

.close_icon::before {
  transform: rotate(45deg);
}

.close_icon::after {
  transform: rotate(-45deg);
}

.header_newsletter .newsletter p {
  font-size: 1.6rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Mobile menu
   -------------------------------------------------------------------------- */

.menu_toggle {
  background: transparent;
  border: 0;
  color: var(--wwf-header-black);
  cursor: pointer;
  display: none;
  font-family: var(--wwf-header-font);
  font-size: 22px;
  gap: 8px;
  line-height: 1.5;
  padding: 15px 0 15px 19px;
  position: relative;
  text-transform: uppercase;
  z-index: 10;
}

@media (max-width: 1023px) {
  .header_main > .content {
    flex-wrap: wrap;
    justify-content: space-between;
    min-height: 67px;
  }

  .logo_panda_planet {
    margin-right: 16px;
  }

  .logo_panda_planet .panda_logo {
    width: auto;
  }

  .menu_toggle {
	display: flex;
	align-items: center;
	height: 72px;
	padding: 0 15px !important;
  }

  .menu--main {
    flex-basis: 100%;
    margin-left: 0;
    max-height: 0;
    opacity: 0;
    order: 5;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 280ms ease, opacity 220ms ease, visibility 220ms ease;
    visibility: hidden;
    width: 100%;
	  margin-bottom: 0;
  }

  body.menu_open .site_header .menu--main {
    max-height: 900px;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  body.menu_open .site_header .adopt_donate_buttons {
	display: block;
  }
	.adopt_donate_buttons{
		flex: 0 0 40%;
	}

  .main_nav {
    height: auto;
    width: 100%;
  }

  .main_nav > ul {
    border-top: 1px solid var(--wwf-header-light-grey);
    display: block;
    height: auto;
    margin: 0;
    overflow: visible;
    padding: 12px 0;
    width: 100%;
  }

  .main_nav > ul > li {
    display: block;
  }

  .main_nav > ul > li > span,
  .main_nav .top-level-destination {
    height: auto;
    justify-content: space-between;
    min-height: 48px;
    padding: 18px 0 18px 40px;
    width: 100%;
  }

  .main_nav > ul > li > span.has_dropdown::before {
    border-top-color: var(--wwf-header-black);
    bottom: auto;
    left: 13px;
    right: auto;
    top: 25px;
  }

  .main_nav .dropdown {
    box-shadow: none;
    display: block;
    left: auto;
    max-height: 0;
    min-width: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 30px;
    pointer-events: none;
    position: static;
    top: auto;
    transition: max-height 240ms ease, opacity 180ms ease, visibility 180ms ease;
    visibility: hidden;
    width: auto;
  }

  .main_nav .dropdown_open + .dropdown {
    max-height: 600px;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .main_nav .dropdown_inner {
    padding: 0;
    width: 100%;
  }

  .main_nav .dropdown_li {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .menu_fundraising_items,
  .menu_fundraising_0 {
    align-items: stretch;
    display: grid;
    gap: 8px;
  }

  .menu_fundraising_0 {
    display: contents;
    max-width: none;
  }

  .site_header .btn--large {
    justify-content: center;
    width: 100%;
	  padding: 15px;
  }
	.mod-body .btn::before{
		content: none;
	}
	.site_header .btn--large{
		min-height: 72px;
		display: flex;
	}
	.logo_panda_planet{
		margin: 0;
	}
}

@media (max-width: 640px) {
  .site_header .content {
    width: 100%;
  }

  .header_top_bar {
    display: block;
  }

  .header_main > .content {
    min-height: 64px;
  }

  .logo_panda_planet .panda_logo {
    width: 64px;
  }

  .main_nav > ul > li > span,
  .main_nav .top-level-destination {
    font-size: 1rem;
  }

  .header_search,
  .header_newsletter {
    padding: 16px;
  }

  body.search_visible .site_header > .header_main .header_search:not(.header_search_desktop),
  body.newsletter_visible .site_header > .header_main .header_newsletter,
  .search-api-block-form form {
    display: block;
  }

  .header_search input.form-search,
  .site_header .btn--minimal,
  .header_search input.btn.form-submit {
    font-size: 2rem;
    width: 100%;
  }

  .search-api-block-form form .form-actions,
  .menu-btn-wrap {
    margin-top: 12px;
  }

  .close_icon {
    justify-content: center;
    width: 100%;
  }
}
