/* =========================================================
   HQ Background: Style
   key: ren-header-thick
   name: LG ラウンジ蓮
   group: set
   type: Style
   layer: header
   ========================================================= */

/* =========================================================
   Header Base
   ========================================================= */

#fixed_header {
  font-family: "Smythe", "Noto Sans JP", sans;
  transition: 0.5s;
  background: rgba(255, 255, 255, 0.8) url("../img/header_bg.png") repeat-x top
    left / 23px;
}

/* hidden checkbox */
#fixed_header .l-header__spToggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   PC
   ========================================================= */

@media (min-width: 768px) {
  #fixed_header {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }

  #fixed_header .l-header__logo {
    position: absolute;
    left: clamp(8px, 2vw, 24px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  #fixed_header .l-header__logoImage {
    margin: 0;
    height: 64px;
  }

  #fixed_header .l-header__nav {
    margin-left: 220px;
    display: block;
  }

  #fixed_header .l-header__menu.header_menu {
    position: absolute;
    right: 0;
    top: 0;
  }

  #fixed_header .l-header__menu.header_menu > li {
    float: left;
  }

  #fixed_header .l-header__menu.header_menu > li > a {
    display: block;
    box-sizing: border-box;
    height: 80px;
    padding: 30px 50px 0;
    font-size: 22px;
    line-height: 1;
    color: #000;
    border-left: 1px dotted #3d4979;
    text-decoration: none;
    font-family: "Smythe";
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
  }

  #fixed_header .l-header__menu.header_menu > li > a:hover,
  #fixed_header .l-header__menu.header_menu > li.current-menu-item > a {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      #fff 100%
    );
    border-bottom: 3px solid #3d4979;
  }

  .p-hero {
    margin-top: 80px;
  }
}

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

@media (max-width: 767px) {
  #fixed_header {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  }

  #fixed_header .l-header__inner.l-container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-left: 0;
    padding-right: 0;
  }

  #fixed_header .l-header__inner {
    min-height: 70px;
    position: relative;
  }

  #fixed_header .l-header__logo {
    position: static;
    transform: none;
  }

  #fixed_header .l-header__logoImage {
    margin: 0 0 0 10px;
    height: 40px;
  }

  .p-hero {
    margin-top: 70px;
  }

  /* -------------------------
     右側アクション
  ------------------------- */

  #fixed_header .l-header__actions {
    display: flex;
    align-items: stretch;
    margin-left: auto;
    position: relative;
    z-index: 10002;
  }

  #fixed_header .l-header__toggle,
  #fixed_header .l-header__phone {
    width: 56px;
    height: 70px;
    display: grid;
    place-items: center;
    border-left: 1px solid #fff;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      #fff 100%
    );
    color: #3d4979;
    text-decoration: none;
    cursor: pointer;
  }

  /* -------------------------
     ハンバーガー / 閉じる
  ------------------------- */

  #fixed_header .l-header__toggleIcon {
    display: block;
    line-height: 1;
  }

  #fixed_header .l-header__toggleIcon--open::before {
    content: "☰";
    font-size: 34px;
    line-height: 1;
  }

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

  #fixed_header .l-header__toggleIcon--close::before {
    content: "×";
    font-size: 48px;
    line-height: 1;
  }

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

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

  /* -------------------------
     TELアイコン
  ------------------------- */

  #fixed_header .l-header__phone .c-icon {
    width: 36px;
    height: 36px;
    transform: translate(-3px, 1px);

    filter: drop-shadow(0 0 1px currentColor) drop-shadow(0 0 1px currentColor)
      drop-shadow(0 0 1px currentColor);
  }

  /* -------------------------
     SPメニュー本体
  ------------------------- */

  #fixed_header .l-header__nav {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease;
    z-index: 10001;
  }

  #fixed_header .l-header__spToggle:checked ~ .l-header__nav {
    max-height: calc(100vh - 70px);
    opacity: 1;
    pointer-events: auto;
  }

  #fixed_header .l-header__menu.header_menu {
    position: static;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #3d4979;
  }

  #fixed_header .l-header__menu.header_menu > li {
    float: none;
    width: 100%;
  }

  #fixed_header .l-header__menu.header_menu > li > a {
    display: block;
    box-sizing: border-box;
    height: auto;
    padding: 18px 16px;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
    white-space: normal;
    font-family: "Smythe", "Noto Sans JP", sans;
    font-weight: 400;
    letter-spacing: 0;
  }
}
