/* =========================================================
   HQ Background: Layout
   key: header-standard
   name: ヘッダー｜一般的な厚み（スクロールイン）
   group: set
   type: layout
   layer: header
   value:
   selector:
   ========================================================= */

/* =========================================================
   Header Layout
   ========================================================= */

#fixed_header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transform: translateY(-100%);
}

/* CSS Scroll-driven animation */
@supports (animation-timeline: scroll()) {
  #fixed_header {
    animation: tpocs-header-scroll-in linear both;
    animation-timeline: scroll();
    animation-range: 80px 180px;
  }

  @keyframes tpocs-header-scroll-in {
    from {
      transform: translateY(-100%);
    }

    to {
      transform: translateY(0);
    }
  }
}

/* Fallback */
@supports not (animation-timeline: scroll()) {
  #fixed_header {
    transform: translateY(0);
  }
}

.l-header__inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.l-header__logo {
  margin: 0;
  flex: 0 0 auto;
}

.l-header__logoLink {
  display: block;
  text-decoration: none;
}

.l-header__logoImage {
  display: block;
  height: 60px;
  width: auto;
}

.l-header__nav {
  flex: 1 1 auto;
}

.l-header__menu {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.l-header__menu > li {
  display: block;
}

.l-header__menu > li > a {
  display: grid;
  place-items: center;
  min-height: 60px;
  padding: 0 20px;
  text-decoration: none;
  line-height: 1;
}

.l-header__actions {
  display: none;
  align-items: center;
}

.l-header__spToggle {
  display: none;
}

.l-header__toggle,
.l-header__phone {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
}

.l-header__toggleIcon--close {
  display: none;
}

/* =========================================================
   SP Layout
   ========================================================= */

@media (max-width: 767px) {

  .l-header__inner {
    min-height: 50px;
    justify-content: center;
    position: relative;
  }

  .l-header__logoImage {
    height: 50px;
  }

  .l-header__nav {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
  }

  .l-header__menu {
    display: block;
  }

  .l-header__menu > li > a {
    min-height: auto;
    padding: 12px 0;
  }

  .l-header__actions {
    display: flex;
  }

  .l-header__toggle {
    position: absolute;
    top: 0;
    left: 0;
  }

  .l-header__phone {
    position: absolute;
    top: 0;
    right: 0;
  }

  .l-header__spToggle:checked ~ .l-header__nav {
    display: block;
  }

  .l-header__spToggle:checked ~ .l-header__actions .l-header__toggleIcon--open {
    display: none;
  }

  .l-header__spToggle:checked ~ .l-header__actions .l-header__toggleIcon--close {
    display: block;
  }

}
