@charset "utf-8";
/*******************************************************************************
 * Styles common to the Tanuki and Wrapper sites (essentially header and footer)
 ******************************************************************************/

/* Make the Bootstrap navbar collapse at 1030px:
 *  https://stackoverflow.com/questions/23347701/twitter-bootstrap-3-how-to-activate-navbar-collapse-on-small-devices
 *  https://stackoverflow.com/questions/18192082/bootstrap-3-navbar-collapse */
@media(max-width:1029.9px) {
    .navbar-header {
        float: none;
    }
    .navbar-left, .navbar-right {
        float: none !important;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-collapse.collapse-1030 {
        display: none;  /* should not be important otherwise the animation would not be able to display the menu on mobile. */
    }
    .navbar-nav {
        float: none!important;
        margin-top: 7.5px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .collapse.in {
        display: block !important;
    }
    .container-fluid>.navbar-collapse, .container-fluid>.navbar-header, .container>.navbar-collapse, .container>.navbar-header {
        margin-right: -15px;
        margin-left: -15px;
    }
    .navbar-form {
        padding: 10px 15px;
    }
}

@media(min-width:1030px) {
    .container-fluid>.navbar-collapse, .container-fluid>.navbar-header, .container>.navbar-collapse, .container>.navbar-header {
        margin-right: 0;
        margin-left: 0;
    }
    .navbar-form {
        width: auto;
        padding-top: 0;
        padding-bottom: 0;
        margin-right: 0;
        margin-left: 0;
        border: 0;
        -webkit-box-shadow: none;
        box-shadow: none;
    }
    ul.nav li.dropdown:hover > ul.dropdown-menu {
        display: block;
    }

    ul.nav.disabled li.dropdown:hover > ul.dropdown-menu {
        display: none;
    }
}

/* Lack in Bootstrap 3: https://gist.github.com/ohryan/b9593841c024c033783d */
.d-none {
    display: none!important;
}
.d-block {
    display: block!important;
}

@media (min-width: 992px) {
    .text-lg-left {
        text-align: left;
    }
    .d-lg-block {
        display: block!important;
    }
}

@media (min-width: 768px) {
    .d-md-block {
        display: block!important;
    }
    .d-md-none {
        display: none!important;
    }
}

@media (min-width: 576px) {
    .d-sm-block {
        display: block!important;
    }
    .d-sm-none {
        display: none!important;
    }
}

@media (min-width: 1030px) {
    .visible-1030 {
        display: block!important;
    }
    .hidden-1030 {
        display: none!important;
    }
}

@media (max-width: 1029.9px) {
    .visible-1030 {
        display: none!important;
    }
    .hidden-1030 {
        display: block!important;
    }
}

@media (max-width: 991.9px) {
    /* Fix a bug in bootstrap 3, when the width is > 767 and < 768 (with decimal). This would cause the sidebar to reappear. */
    .hidden-sm.hidden-xs {
        display: none!important;
    }
}

/* Addition to allow the menu to slide from left to right on mobiles: https://stackoverflow.com/questions/31641352/how-to-slide-nav-bar-from-left-instead-from-top */
@media(max-width:1029.9px) {
    body {
        position: relative;
    }

    #menu {
        z-index: 1500;
        position: absolute;
        left: 280px;
        margin: 0;
        margin-left: -280px;
        margin-top: 3px;
        width: 280px; /*example + never use min-width with this solution */
        /* height is set dynamically. */
        background-color: #262e1e;
    }

    #overlay {
        position: fixed; /* Sit on top of the page content */
        display: none; /* Hidden by default */
        width: 100%; /* Full width (cover the whole page) */
        height: 100vh; /* Full height of the viewport (include the height of the address bar on mobile which can hide when scrolling down). */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.33); /* Black background with opacity */
        z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
        cursor: pointer; /* Add a pointer on hover */
    }
}

/** General **/
html, body {
    overflow-x: hidden;
}

.xcontent {
    min-height: 500px;
    background-color: #ffffff;
    padding: 5px;
}

a:focus {
    outline: none;
}

.navbar {
    margin-bottom: 0 !important;
    font-family: 'Droid Sans', 'Lato', 'Arial', sans-serif !important;
    font-size: 11pt !important;
}

.navbar-nav .navbar-nav {
    margin: 0;  /* don't repeat the margins for navbar-nav inside another navbar-nav */
}

.fixed-position {
    position: fixed;
}

/** Header **/
header {
    z-index: 1000;
    position: relative;
    -webkit-box-shadow: 0px 4px 5px 0px rgb(0 0 0 / 14%), 0px 1px 10px 0px rgb(0 0 0 / 12%), 0px 2px 4px -1px rgb(0 0 0 / 20%);
    box-shadow: 0px 4px 5px 0px rgb(0 0 0 / 14%), 0px 1px 10px 0px rgb(0 0 0 / 12%), 0px 2px 4px -1px rgb(0 0 0 / 20%);
}

header.fixed-position, body.fixed-position {
    width: 100%; /* On some browsers, the width is fit to content when in fixed position. Force full width. */
}

header a:hover, header a:visited, header a:focus, header a:active {
    text-decoration: none !important;
}

header .navbar {
    max-width: 1020px;
    padding: 3px;
    margin: auto;
    border: none;
}

header.fixed-position .navbar {
    /* Allow full width when the menu appears otherwise the bars and menu would be shifted if the window's width is between 1020 and 1030px. */
    max-width: 1030px;
}

header .navbar .navbar-item {
    float: left;
}

header .navbar .navbar-nav > li > a,
header .navbar .navbar-item {
    display: block;
    color: #FFF;
    padding-left: 22px;
    padding-right: 22px;
    padding-top: 15px;
    padding-bottom: 15px;
}

header .navbar input.navbar-item {
    background: transparent;
    border: none;
    font-weight: normal;
}

.japanese header .navbar .navbar-nav > li > a,
.japanese header .navbar .navbar-item {
    /* font-size: 10pt; */ /* not on the tanuki website */
}

header .navbar .navbar-nav > li > a:hover,
header .navbar .navbar-nav > li > a:focus,
header .navbar .navbar-item:hover,
header .navbar .navbar-item:focus,
header .navbar .navbar-nav > .active > a,
header .navbar .navbar-nav > .active > a:hover,
header .navbar .navbar-nav > .active > a:focus,
.nav .open>a, .nav .open>a:hover, .nav .open>a:focus,
.dropdown-menu>li>a:hover, .dropdown-menu>li>a:focus {
    color: #fff;
    background-color: #c1d72e;
}

header .navbar .navbar-nav.disabled > li > a:hover {
    background-color: transparent;
}

header .navbar .navbar-toggle {
    margin-left: 15px;
    border-color: #c1d72e;
    color: #fff;
}

header .navbar .navbar-toggle:hover {
    background-color: #c1d72e;
}

header .navbar .navbar-toggle .icon-bar {
    background-color: #fff;
}

header .navbar .dropdown-menu {
    background-color: #262e1e;
}

header .navbar .dropdown-menu>li>a,
header .navbar .navbar-nav .open .dropdown-menu>li>a,
header .navbar .legal-menu>li>a {
    padding-top: 10px;
    padding-bottom: 10px;
    color: #fff;
}

header .navbar .legal-menu>li {
    list-style-type: none;
}

header .navbar .legal-menu>li>a {
    display: inline-block;
}

header .navbar .dropdown-menu input {
    width: 100%;
    text-align: left;
}

ul.nav li.dropdown a:hover > ul.dropdown-menu {
    display: block;
    background-color: #262626;
    color: #fff;
}

#nav-container-top {
    background-color: black;
}

#nav-container-top .container-fluid {
    display: inline-block;
    padding-right: 0;
}

#nav-container-top .navbar {
    background-color: black;
    min-height: 45px;
}

#nav-container-top .navbar-right {
    margin-right: 0;
    padding: 0 13px; /* 13 + 22 = 35 */
}

#nav-container-top .navbar-right .dropdown-menu {
    min-width: 0;
}

#nav-container-top .navbar .navbar-nav > li > a,
#nav-container-top .navbar .navbar-item {
    padding-top: 10px;
    padding-bottom: 9px;
}

#nav-container-top .navbar-right a .glyphicon {
    padding: 3px 0 3px 0;
}

/* The 'not-logged-in' class is added from wrapper.js. */
#nav-container-top li.login-menu.not-logged-in > .dropdown-toggle:before {
    content: '•';
    color: #759eee;
    font-weight: bold;
    line-height: 0;
}

#nav-container-top a:hover .glyphicon-user.logged-in,
#nav-container-top a:focus .glyphicon-user.logged-in {
    background-color: #c1d72e;
    box-shadow: none;
}

#nav-container-top .welcome {
    display: inline-block;
    padding: 10px 15px 9px 15px;
    margin-right: 10px;
    color: #dbe5f9;
    font-weight: bold;
   /* font-style: italic;
    font-family: serif; */
}

#btn-tanuki-website, #nav-container-top .navbar-brand {
    background: linear-gradient(to bottom left, #4e4e4e, #121212, black);
    position: relative;
    top: 3px;
    margin: -3px 0 0 0 !important;
}

#btn-tanuki-website:hover, #nav-container-top .navbar-brand:hover {
    background: linear-gradient(to bottom left, #606060, #242424, black);
}

#nav-container-top .navbar-brand {
    padding: 5px 25px 8px 15px !important;
    height: unset;
}

#nav-container-top .navbar-brand img {
    height: 30px;
    width: auto;
}

#btn-tanuki-website {
    padding: 6px 27px 12px !important;
}

#btn-tanuki-website img {
    height: 25px;
    width: auto;
}

@media(max-width:1029.9px) {
    #nav-container-top .navbar-right {
        float: right !important;
        margin-top: 0;
        margin-bottom: 0;
        padding-right: 0;
    }

    #nav-container-top .navbar-nav>li {
        float: left;    /* display horizontaly even on mobile. */
    }

    #nav-container-top .navbar .navbar-nav > li > a,
    #nav-container-top .navbar .navbar-item {
        padding-left: 15px;
        padding-right: 15px;
    }

    #nav-container-top .navbar-brand {
        padding-left: 1px !important;
        margin-left: 0 !important;
    }

    /* 'mobileTouched' and 'desktop' are classes dynamically toggled by wrapper.js */
    #nav-container-top .navbar-right .dropdown.desktop:hover>.dropdown-menu {
        display: block !important;
        right: 0;
        left: auto;
    }

    #nav-container-top .navbar-right .dropdown.desktop>a:hover,
    #nav-container-top .navbar-right .dropdown.desktop>a:focus {
        background-color: #c1d72e;
    }

    #nav-container-top .navbar-right .dropdown.mobileTouched>.dropdown-menu {
        display: block !important;   /* dropdown-menu should still work on mobile for the top bar. */
        right: 0;
        left: auto;
    }

    #nav-container-top .navbar-right .dropdown>a,
    #nav-container-top .navbar-right .dropdown>a:hover,
    #nav-container-top .navbar-right .dropdown>a:focus {
        background-color: transparent;
    }

    #nav-container-top .navbar-right .dropdown.mobileTouched>a,
    #nav-container-top .navbar-right .dropdown.mobileTouched>a:hover,
    #nav-container-top .navbar-right .dropdown.mobileTouched>a:focus {
        background-color: #c1d72e;
    }
}

@media (max-width: 479.9px) {
    #nav-container-top .navbar {
        min-height: 38px;
    }

    #nav-container-top .navbar .navbar-nav > li > a {
        padding: 7px 12px !important;
    }

    #nav-container-top .navbar-right a .glyphicon {
        padding-bottom: 2px;
    }

    #nav-container-top .navbar-brand img {
        height: 26px;
        width: auto;
    }

    #nav-container-top .navbar-brand {
        padding: 5px 12px 6px 1px !important;
    }

    #btn-tanuki-website {
        padding: 5px 12px 10px !important;
    }

    #btn-tanuki-website img {
        height: 22px;
        width: auto;
    }
}

@media (max-width: 369.9px) {
    #nav-container-top .navbar-brand {
        padding: 6px 6px 6px 1px !important;
        margin-right: 4px !important;
        margin-left: 4px !important;
        height: auto;
        width: 45px;
        overflow: hidden;
        background: black;
    }

    #nav-container-top .navbar-brand img {
        width: auto;
        transform: translateX(-56px);
    }
}

#nav-container-main {
    background-color: #262e1e;
}

#menu-container {
    float: left;
}

#menu .navbar .navbar-nav .open .dropdown-menu li a {
    padding-left: 50px !important; /* Indent submenus on mobile. */
}

@media (min-width: 1030px) {
    #menu .navbar-nav {
        margin-left: -10px;
    }

    #menu .navbar-nav > li > a,
    #menu .navbar-item {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* https://stackoverflow.com/questions/39780258/smooth-closing-animation-in-mobile-bootstrap-menu-drop-down */
@media (max-width: 1029.9px) {
    #menu {
      overflow-y: auto;
    -webkit-box-shadow: 4px 0px 5px 0px rgb(0 0 0 / 14%), 1px 0px 10px 0px rgb(0 0 0 / 12%), 2px 0px 4px -1px rgb(0 0 0 / 20%);
    box-shadow: 4px 0px 5px 0px rgb(0 0 0 / 14%), 1px 0px 10px 0px rgb(0 0 0 / 12%), 2px 0px 4px -1px rgb(0 0 0 / 20%);
    }

    #menu>.navbar-nav {
        /* Mobile devices often have a bottom bar which prevents from seing the bottom of the menu. Give this additional margin to let the user scroll down a little more. */
        margin-bottom: 110px;
    }

    #menu .navbar-nav > li > a {
        text-transform: uppercase;
    }

    #menu .navbar-nav > li > a:hover,
    #menu .navbar-nav > li > a:focus,
    #menu .navbar-item:hover,
    #menu .navbar-item:focus,
    #menu .navbar-nav > .active > a,
    #menu .navbar-nav > .active > a:hover,
    #menu .navbar-nav > .active > a:focus,
    #menu .nav .open>a, #menu .nav .open>a:hover, #menu  .nav .open>a:focus,
    #menu .dropdown-menu>li>a:hover, #menu .dropdown-menu>li>a:focus {
        background-color: transparent;
    }
    
    #menu .dropdown .dropdown-menu {
        -webkit-transition: max-height 0.6s, opacity 0.6s 0.2s, visibility 0s 0.6s;
        -moz-transition: max-height 0.6s, opacity 0.6s 0.2s, visibility 0s 0.6s;
        -ms-transition: max-height 0.6s, opacity 0.6s 0.2s, visibility 0s 0.6s;
        -o-transition: max-height 0.6s, opacity 0.6s 0.2s, visibility 0s 0.6s;
        transition: max-height 0.6s, opacity 0.6s 0.2s, visibility 0s 0.6s;
        max-height: 0;
        display: block;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
    }

    #menu .dropdown.open .dropdown-menu {
        -webkit-transition: max-height 0.9s, opacity 0.3s, visibility 0s;
        -moz-transition: max-height 0.9s, opacity 0.3s, visibility 0s;
        -ms-transition: max-height 0.9s, opacity 0.3s, visibility 0s;
        -o-transition: max-height 0.9s, opacity 0.3s, visibility 0s;
        transition: max-height 0.9s, opacity 0.3s, visibility 0s;
        max-height: 600px;  /* This value must be greater than any submenu, but not too big for the effect to remain nice. Please adjust when adding more items. */
        opacity: 1;
        visibility: visible;
    }

    #menu .navbar-nav .dropdown-menu {
        position: relative;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        -webkit-box-shadow: none;
        box-shadow: none;
        top: -10px;
        margin-bottom: -10px;
    }
    
    #menu .navbar-nav .dropdown-menu>li>a {
        padding-left: 50px !important; /* Indent submenus on mobile. */
    }

    .japanese #menu .navbar-nav .dropdown-menu>li>a {
        font-size: 8.5pt;
    }

    #menu .navbar-item {
        float: none;
        width: 100%;
        padding: 15px 22px;
        text-align: left;
        text-transform: uppercase;
    }

    #menu hr {
        margin: 10px 20px;
        border-color: #555a2f;
        border-style: inset;
        border-width: 1px;
    }
}

@media only screen and (max-width: 1029.9px) and (min-device-width: 1080px) { /* Only for desktop (mobiles already have a narrow scrollbar) */
    #menu::-webkit-scrollbar {
      width: 5px;
    }

    /* Track */
    #menu::-webkit-scrollbar-track {
      box-shadow: inset 0 0 5px grey;
      border-radius: 10px;
    }
     
    /* Handle */
    #menu::-webkit-scrollbar-thumb {
      background: #141924;
      border-radius: 5px;
    }

    /* Handle on hover */
    #menu::-webkit-scrollbar-thumb:hover {
      background: #b30000;
    }
}

/** Search **/
.navbar-form {
    border-top: none !important;
    border-bottom: none !important;
    padding: 10px 15px;
    margin: 0;
}

#nav-container-main .fa-search, .cse-search-box .fa-search {
    font-size: 18px;
}

.cse-search-box button.fa-search {
    border: none;
    color: white;
}

#nav-container-main .cse-search-box button.fa-search {
    background-color: #262e1e;
    margin-left: 14px;
}

footer .cse-search-box button.fa-search {
    background-color: #262626;
    margin-left: 8px;
}

@media(max-width:1029.9px) {
    /* Important to specify .cse-search-box because there is an input-group in the menu for mobile with different styles (account menu). */
    .cse-search-box .input-group {
        display: table;
        padding-left: 10px;
    }

    .navbar-form.cse-search-box .input-group .input-group-btn {
        width: 1%;
    }

    #nav-container-main .navbar-form {
        -webkit-box-shadow: none;
        box-shadow: none;
        margin: 0 !important;
    }
}

@media(max-width:1029.9px) {
    #toggle-search {
        display: none !important;
    }
    
    .cse-search-box {
        display: block !important;
    }
}

@media(min-width:1030px) {
    #toggle-search {
        margin-top: 1px;
        margin-bottom: 0;
    }

    #search-desktop:checked ~ .cse-search-box {
        display: block !important;
        position: absolute;
        right: 20px;
        bottom: -62px;
        padding: 10px 15px 15px 20px;
        background-color: #262e1e;
    }

    #search-desktop:checked ~ #toggle-search::before {
        content: "";
    }

    #search-desktop:checked ~ #toggle-search {
        padding-left: 25px;
        padding-right: 25px;
    }

    #menu-container {
        width: calc(100% - 257px);
        padding-right: 0;
    }
}

.cse-search-box .form-control {
    height: 30px;    /* important for firefox */
    background: #c1d72e !important;
    border: 1px solid #303d59;
    border-radius: 0;
    color: black;
}

.cse-search-box .form-control:focus {
    background: #f4ffae !important;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px #c1d72e;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px #c1d72e;
}

/** Container for main content **/
body>.container {
    width: 100%;
    max-width: 990px;   /* 990 - 2 * 15 padding */
    margin: 0 auto;
    padding: 0 15px;
    background: #fff;
}

@media (max-width: 409.9px) {
    body>.container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media (max-width: 319.9px) {
    body>.container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

/** footer **/
html.footerBottom, .footerBottom>body {
    height: 100%;
}

.footerBottom>body>footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}

footer {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    padding: 25px;
    padding-bottom: 10px;
}

@media (max-width: 991.9px) {
    footer {
        padding: 15px;
        padding-bottom: 25px;
    }
}

@media (max-width: 409.9px) {
    footer {
        padding-left: 5px;
        padding-right: 5px;
    }
}

@media (max-width: 319.9px) {
    footer {
        padding-left: 0;
        padding-right: 0;
    }
}

.footer {
    max-width: 1020px;
    margin: auto;
    color: #fff;
    text-align: center;
}

footer, .footer {
    background: #262626;
}

.footer ul, .footer ol { 
    margin: 0;
    padding: 0;
}

@media (min-width: 992px) {
  /* We have 1 column for the logos + 4 columns for the footer menu. Each should occupy 20%. */
    footer .col-md-2 {
        width: 20%;
    }
    footer .col-md-8 {
        width: 60%;
    }
    footer .col-md-pull-2 {
        right: 20%;
    }
    footer .col-md-push-8 {
        left: 60%;
    }
}

.footer a:link, .footer a:visited, .footer a:active {
    color: #fff;
}

.footer a:hover, .footer a:active {
    text-decoration: underline;
    background-color: transparent;
}

.footer-logo {
    margin: 10px 5%;
    max-width: 177px;
    width: 90%;
}

.footer .navbar-form {
    padding: 10px 0;
}

@media (max-width: 991.9px) {
    .footer-logo {
        width: 40%;
    }
}

.sitemap-container {
    clear: both;
    padding-top: 0.05px;
}

.sitemap {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: left;
    max-width: 434px;
    margin: auto;
}

@media (max-width: 991.9px) {
    .sitemap {
        max-width: 540px;
        margin-top: 20px;
    }
}

.sitemap > ul {
    margin: auto;
    width: 97.5%;
    display: -ms-flexbox;
    display: flex;
    list-style: none;
    justify-content: space-between;
}

.sitemap > ul > li a {
    color: #eee;
    padding: 0;
    display: inline;
    font-size: 12px;
}

.sitemap > ul > li strong {
    font-size: 13.5px;
}

#footer-col-right {
    min-width: 165px;
    margin-top: 15px;
}

.languages {
    font-size: 10.5px;
    margin-bottom: 15px;
}

@media (max-width: 991.9px) {
    .languages {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.languages ul a:link, .languages ul a:visited {
    text-decoration: none;
    color: #fff;
}

.languages ul a:hover, .languages ul a:active {
    text-decoration: underline;
    color: #fff;
}

.languages ul {
    list-style: none;
}

.languages li {
    display: inline;
    padding: 0 10px;
    border-right: 1px solid #000;
}

.languages li:last-child {
    border-right: none;
}

.copyright {
    font-size: 10.5px;
}
