/****************************************
* Header
****************************************/

header {
  height: auto;
  background:  #FFFFFF ;
  box-shadow: none;
  position: relative;
  z-index: 10;
}

header .grid.main {
  display: flex;
  padding-top: 1rem;
  padding-bottom: 1rem;
  grid-gap: 1rem;
}

header a#logo img {
  width: auto;
  max-height: 90px;
  margin: 0;
}

header a#logo .no-logo {
  width: 90px;
  height: 70px;
  background-color: #808080;
}

header .navigation-side {
  display: flex;
  margin-left: auto;
}

/****************************************
* Top Bar
****************************************/

header .top-bar {
  background: #EAE7E3 ;
}

header .top-bar > .grid {
  padding-top: 0;
  padding-bottom: 0;
}

/****************************************
* Navigation
****************************************/


nav ul {
  display: flex;
  flex-direction: row;
  justify-content: right;
  margin: 0;
}

nav ul > li:first-child {
  margin-left: auto;
}

nav ul > li > a {
  font-family: Noto Sans Jp;
  border: none;
  background: transparent ;
  color: #000000;
  font-size: 16px;
  font-weight: normal;
  line-height: 1em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav ul > li > a:hover {
  background-color: transparent;
  background-image: unset;
  color: #8d8d8d;
}

/****************************************
* Subnavigation
****************************************/

header .subnavigation {
  display: flex;
  justify-content: right;
}

header .top-bar .button {
  padding: .75rem;
  background: #c41230;
  color: #ffffff;
  font-size: 13px;
  line-height: 1em;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
}

header .top-bar .button:hover {
  background: #9d0e26;
  color: #ffffff;
}

header .subnavigation > li a {
  background: none;
  color: #000000;
  font-size: 14px;
  line-height: 1.5em;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0px;
}

header .subnavigation > li > a:hover {
  color: #8d8d8d;
}

header .subnavigation > li:first-child {
  margin-right: auto;
}

header .subnavigation > li {
  display: flex;
  margin-bottom: 0;
  margin-right: 1.5rem;
}

header .subnavigation > li:last-child {
  margin-right: 0;
}

header .subnavigation > li:last-child .button + .button {
  margin: 0 0 0 1px;
}

header .subnavigation > li > * {
  margin: auto 0;
  width: 100%;
}

header .subnavigation li::after {
  content: none;
}

nav {
  width: 100%;
  margin: auto;
}

nav ul > li {
  display: flex;
  margin-left: 1.5rem;
  margin-bottom: 0;
}

nav ul > li:first-child {
  margin-left: auto;
}

nav ul > li > a {
  width: auto;
  margin: auto;
}

/****************************************
*
* Mobile - max-width: 1139.98px;
*
****************************************/

@media (max-width: 1139.98px) {

  /****************************************
  * Header
  ****************************************/

  body {
    padding-top: 90px; /* Height of header */
  }

  header {
    position: fixed;
    min-height: 90px;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.15);
    z-index: 99;
  }

  header .grid.main {
    flex-direction: column;
    grid-gap: 0;
    height: 58px; /* Fits inside the header pocket */
    padding: 0;
  }

  header .logo-side {
    display: flex;
    align-items: center;
    flex: 0 0 100%;
    max-width: 100%;
    min-height: 90px;
    padding: 0 1.5rem;
  }

  header a#logo img {
    height: 71px;
  }

  header .navigation-side {
    display: block;
    width: 100%;
  }

  /****************************************
  * Top Bar
  ****************************************/

  header .top-bar .button {
    font-size: inherit;
  }

  /****************************************
  * Navigation
  ****************************************/

  nav {
    background: #ffffff;
    max-height: 0;
    overflow: hidden;
  }

  nav.off {
    max-height: 0 !important;
  }

  nav.animatable {
    transition: max-height 0.5s ease-out;
  }

  nav ul > li,
  nav ul > li > a,
  nav ul > li > a.button {
    font-size: 16px;
    color: #000000;
  }

  nav ul > li > a:hover,
  nav ul > li > a.button:hover {
    color: #000000;
  }

  nav ul > li > a {
    width: 100%;
    padding: 0.75rem;
    text-align: center;
  }

  #nav-toggle {
    position: fixed;
    padding: .5rem 1rem;
    top: 10px;
    right: 20px;
    border-radius: 3px;
    background: transparent;
    color: #000000;
    font-size: 36px;
    cursor: pointer;
  }

  nav div.navigation {
    padding-top: 1rem;
    max-height: calc(100vh - 91px); /* 91px = mobile header height */
    overflow: auto;
  }

  nav div.navigation ul {
    display: block;
  }

  nav div.navigation ul > li {
    margin-bottom: 0.5rem;
  }

  nav div.navigation > ul > li {
    margin: 0 0 0.5rem 0;
  }

  /****************************************
  * Subnavigation
  ****************************************/

  nav div.mobile > .subnavigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 1rem;
    padding: 1rem 2rem;
    background-color: #e8e8e8;
  }

  nav div.mobile > .subnavigation > li {
    margin: 0;
  }

  nav div.mobile > .subnavigation > li:last-child {
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
  }

  nav div.mobile > .subnavigation > li,
  nav div.mobile > .subnavigation > li > a {
    background-color: transparent;
  }

  nav div.mobile > .subnavigation > li > a,
  nav div.mobile > .subnavigation > li > a:hover {
    padding: 0.5rem 0;
    width: auto;
    font-size: 14px;
    color: #00529b;
  }

  nav div.mobile > .subnavigation > li > a.button {
    padding: .5rem 1rem;
    border-radius: inherit;
    border: inherit;
    background: #c41230;
    font-family: Noto Sans Jp;
    color: #ffffff;
    font-size: inherit;
    line-height: inherit;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: inherit;
  }
}

/****************************************
* Large Phone
****************************************/

@media(min-width: 567px) and (max-width: 1139.98px) {
  header nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: #FFFFFF ;
    box-shadow: 0px 3px 5px -5px rgba(0, 0, 0, 0.15);
    max-width: 350px;
  }
}

/****************************************
* Widescreen
****************************************/

@media(min-width: 1400px) {
  nav ul > li {
    margin-left: 2rem;
  }

  nav ul > li > a {
    font-size: 20px;
  }
}