/* ============================================
   header mobile update
   ============================================ */
@media screen and (max-width: 767px) {
  #header #header__logo {
    height: 53px;
  }

  #header #header__logo .header__logo2__repos img {
    top: 9px;
    left: 16px;
    width: 46px;
    height: 35px;
  }

  #header #header__navToggle {
    top: 9px;
    right: 16px;
    width: 42px;
    min-width: 42px;
    height: 37px;
    min-height: 37px;
  }

  #header #header__main:before {
    top: 9px !important;
    right: 16px;
    width: 42px;
    height: 37px;
    background-image: url(/promotion/tstosab/assets/images/w_icon_menu.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-left: none;
  }

  #header #header__navToggle + #header__main:before {
    background-image: url(/promotion/tstosab/assets/images/w_icon_menu.svg);
    background-position: center;
  }

  #header #header__navToggle:checked + #header__main:before {
    background-image: url(/promotion/tstosab/assets/images/w_icon_menu_close.svg);
    background-position: center;
  }

  #header.header2 #header__navToggle:not(:checked) + #header__main:after {
    display: none;
  }

  #header #header__myjcbLogin {
    display: none;
  }

  #header #header__myjcbLogin.is-mobile-inlined {
    display: block;
    position: static !important;
    pointer-events: auto;
    justify-content: flex-start;
    z-index: auto;
  }

  #header.is-open #header__main {
    height: calc(100vh - 53px);
    padding-right: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
  }

  #header #header__main {
    padding-top: 53px;
  }

  #header__navSearch.header__navSearch2 #header__navSearch__form {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 4px;
    border: none;
    outline: 1px solid #E2E8F0;
    outline-offset: -1px;
    margin: 20px 0;
    padding: 10px 10px 10px 12px;
    height: auto;
    position: static;
  }

  #header__navSearch.header__navSearch2 #header__navSearch__form button {
    position: static;
  }

  #header__navSearch.header__navSearch2 #header__navSearch__form input[type="search"] {
    flex: 1 1 0;
    height: 20px;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
    width: auto;
    outline: none;
  }

  #header__navSearch.header__navSearch2 #header__navSearch__form:focus-within {
    outline: 2px solid #0474D0;
    outline-offset: -2px;
  }

  #header__navSearch.header__navSearch2 #header__navSearch__form input[type="search"]::-webkit-search-cancel-button {
    display: none;
  }

  #header__navSearch.header__navSearch2 #header__navSearch__form .header__navSearch__clear {
    flex-shrink: 0;
    display: block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    margin-right: 16px;
    padding: 0;
    background-color: transparent;
    background-image: url(/promotion/tstosab/assets/images/w_icon_delete.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: default;
    opacity: 0.5;
    pointer-events: none;
  }

  #header__navSearch.header__navSearch2 #header__navSearch__form .header__navSearch__clear.is-visible {
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
  }

  #header__navSearch.header__navSearch2 #header__navSearch__form button[type="submit"] {
    flex-shrink: 0;
    align-self: stretch;
    width: 16px;
    box-sizing: content-box;
    padding: 0 0 0 16px;
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-left: 1px solid #E2E8F0;
    background-color: transparent;
    background-image: url(/promotion/tstosab/assets/images/w_icon_search.svg);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 16px 16px;
    cursor: pointer;
  }

  /* ---- Main nav ---- */
  #header .header__nav--main .header__nav-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #header .header__nav--main .header__nav__item__name {
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    margin: 0;
  }

  .header__nav__item__name--ic {
    padding-right: 0;
    padding-left: 0;
  }

  #header .header__nav--main .header__nav__item__name a {
    flex: 1;
    color: #0474D0;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    text-decoration: none;
    display: block;
  }

  #header .header__nav--main .header__nav__item__name--ic::before {
    display: none;
  }

  #header .header__nav--global .header__nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #header .header__nav--global .header__nav-list .header__nav__item {
    border-bottom: none;
  }

  #header .header__nav--global .header__nav__item__name--link {
    display: block;
    padding: 6px 0;
    border-bottom: 1px solid #D7D7D7;
    color: #0474D0;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
  }

  #header .header__nav--global .header__nav__item--newtab-group-start {
    margin-top: 16px;
  }

  #header .header__nav--global .header__nav__item__name--external {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    color: #0474D0;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
  }

  #header .header__nav--global .header__nav__item__name--external::after {
    content: '';
    top: 8px;
    right: 0;
    flex-shrink: 0;
    align-self: center;
    width: 19px;
    height: 19px;
    background-image: url(/promotion/tstosab/assets/images/w_icon_newtab.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  #header .header__nav--global .header__nav-list > .header__nav__item > .header__nav__item__cont__child-list .header__nav__item__cont__child__link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    color: #0474D0;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
  }

  #header .header__nav--global .header__nav-list > .header__nav__item > .header__nav__item__cont__child-list .header__nav__item__cont__child__link-btn::after {
    content: '';
    top: 8px;
    right: 0;
    flex-shrink: 0;
    align-self: center;
    width: 19px;
    height: 19px;
    background-image: url(/promotion/tstosab/assets/images/w_icon_newtab.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  #header .header__nav--global .label--pc {
    display: none;
  }

  #header .header__nav__item--accordion .header__nav__item__trigger {
    display: flex;
    align-items: center;
    width: 100%;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #0474D0;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
  }

  #header .header__nav__item--accordion .header__nav__item__trigger > span {
    flex: 1;
  }

  #header .header__nav__item--accordion .header__nav__item__trigger::after {
    content: '';
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background-image: url(/promotion/tstosab/assets/images/w_icon_plus.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  #header .header__nav__item--accordion.is-open .header__nav__item__trigger::after {
    background-image: url(/promotion/tstosab/assets/images/w_icon_minus.svg);
  }

  #header .header__nav--main .header__nav__item__sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #header .header__nav--main .header__nav__item__sub-list:not([hidden]) {
    display: flex;
    flex-direction: column;
  }

  #header .header__nav--main .header__nav__item__sub-link {
    display: block;
    padding: 6px 0 6px 20px;
    color: #0474D0;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
  }

  #header .header__nav--global .header__nav__item__cont__child-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #header .header__nav--global .header__nav__item__cont__child-list:not([hidden]) {
    display: flex;
    flex-direction: column;
  }

  #header .header__nav--global .header__nav__item__cont__child__link-btn {
    display: block;
    padding: 6px 0 6px 20px;
    color: #0474D0;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
  }

  .header__nav.header__nav--global.header__nav--global2 {
    padding: 16px 0 0;
  }


  #header__myjcbLogin #header__myjcbLoginItem--card, #header__myjcbLogin #header__myjcbLoginItem--login {
    margin: 0;
  }

  #header #header__myjcbLogin.is-mobile-inlined .header__myjcbLogin--inner {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 50px;
    padding: 0;
  }

  #header #header__myjcbLogin.is-mobile-inlined .header__myjcbLogin--inner > ul {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #header #header__myjcbLogin.is-mobile-inlined .header__myjcbLogin--inner > ul:first-child {
    order: 2;
  }

  #header #header__myjcbLogin.is-mobile-inlined .header__myjcbLogin--inner > ul:last-child {
    order: 1;
  }

  #header #header__myjcbLogin.is-mobile-inlined #header__myjcbLoginItem--login a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    padding: 8px 16px;
    background: #0474D0;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.7;
    letter-spacing: 0.42px;
    text-decoration: none;
    box-sizing: border-box;
    border: none;
  }

  #header #header__myjcbLogin.is-mobile-inlined #header__myjcbLoginItem--login a::before {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
  }

  #header #header__myjcbLogin.is-mobile-inlined #header__myjcbLoginItem--login a::after {
    content: '';
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background-image: url(/promotion/tstosab/assets/images/w_icon_newtab.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
  }

  #header #header__myjcbLogin.is-mobile-inlined #header__myjcbLoginItem--card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    background: #44962E;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.7;
    letter-spacing: 0.42px;
    text-decoration: none;
    box-sizing: border-box;
    border: none;
  }
}

/* ============================================
   header PC overrides for accordion items
   ============================================ */
@media print, screen and (min-width: 768px) {
  .label--mobile {
    display: none;
  }

  #header .header__nav--main2 .header__nav__item--accordion .header__nav__item__trigger {
    align-items: center;
    display: flex;
    font-size: 16px;
    padding: 0 14px;
    text-decoration: none;
    color: inherit;
    width: auto;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  #header .header__nav--main2 .header__nav__item--accordion .header__nav__item__trigger:hover {
    color: #008eed;
  }

  #header .header__nav--main2 .header__nav__item--accordion .header__nav__item__trigger::after {
    display: none;
  }

  #header .header__nav--main .header__nav__item__sub-list {
    display: none;
  }

  #header #header__outer {
    border-bottom: none;
  }

}

@media print {
  #header #header__inner {
    max-width: none !important;
    margin: 0 !important;
  }

  #header .header__nav--main2 .header__nav__item__name {
    font-weight: normal;
  }
}
