﻿/* Wordpress用にheaderを下げる（完成後削除予定） */
/* body.admin-bar .lp-header {
  top: 32px;
} */

.lp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  min-height: 82px;
  padding: 10px clamp(28px, 3vw, 50px);
  background: #F36D30;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.lp-header-brand {
  display: flex;
  align-items: center;
  gap: clamp(14px, calc(3.33vw - 16px), 40px);
  min-width: 0;
}

.lp-header-product-type {
  flex: 0 0 auto;
  margin-left: clamp(0px, calc(1.92vw - 17.3px), 15px);
  color: #ffffff;
  font-family: "BIZ UDMincho", "BIZ UDPMincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(26px, calc(2.18vw + 10.6px), 42px);
  font-weight: 450;
  line-height: 1;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}

.lp-header-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.lp-header-logo-kyuma {
  gap: clamp(6px, .6vw, 10px);
  margin-left: clamp(-14px, calc(-.64vw - 3.2px), -9px);
}

.lp-header-logo img {
  display: block;
  height: auto;
  object-fit: contain;
}

.lp-header-logo .lp-header-WAKON-logo {
  width: clamp(70px, calc(5.13vw + 23.8px), 110px);
}

.lp-header-logo .lp-header-KYUMA-kanzi-logo {
  width: clamp(129px, calc(9.36vw + 44.8px), 202px);
}

.lp-header-logo .lp-header-KYUMA-logo {
  width: clamp(129px, calc(9.36vw + 44.8px), 202px);
  margin-left: clamp(-65px, calc(-2.95vw - 15.4px), -42px);
}

.lp-menu-toggle,
.lp-menu-button {
  display: none;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.4vw, 32px);
  margin-left: auto;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  color: #ffffff;
  white-space: nowrap;
}

.lp-header + main .nav {
  top: 82px;
}

@media (max-width: 1400px) {
  .lp-header {
    gap: 20px;
    padding-inline: 28px;
  }

}

.menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}

.menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible {
  color: #ffffff;
}

.menu a:hover::after,
.menu a:focus-visible::after {
  transform: scaleX(1);
}

@media (max-width: 1100px) {
  .lp-header {
    gap: 20px;
  }

  .menu {
    gap: 12px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  body.admin-bar .lp-header {
    top: 46px;
  }

  .lp-header {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px 12px;
    min-height: 49px;
    padding: 0 20px;
  }

  .lp-header-brand {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    gap: clamp(4px, 1.3vw, 14px);
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
  }

  .lp-header-product-type {
    display: block;
    margin-left: 0;
    font-size: clamp(14px, 3.2vw, 24px);
    line-height: 1;
    letter-spacing: .02em;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }

  .lp-header-logo .lp-header-WAKON-logo {
    width: clamp(32px, 7.2vw, 55px);
  }

  .lp-header-logo-kyuma {
    gap: clamp(4px, 1vw, 6px);
    margin-left: clamp(-9px, -1vw, -4px);
  }

  .lp-header-logo .lp-header-KYUMA-kanzi-logo {
    width: clamp(58px, 13.7vw, 105px);
  }

  .lp-header-logo .lp-header-KYUMA-logo {
    width: clamp(58px, 13.7vw, 105px);
    margin-left: clamp(-34px, -4.3vw, -17px);
  }

  .lp-menu-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .lp-menu-button {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 20px;
    height: 23px;
    margin-right: auto;
    cursor: pointer;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .lp-menu-button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
  }

  .lp-menu-button span {
    display: block;
    width: 20px;
    height: 1px;
    background: #ffffff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
    padding: 8px 0 2px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: visible;
    font-size: 14px;
    white-space: normal;
  }

  .menu a {
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .menu a::after {
    display: none;
  }

  .lp-menu-toggle:checked ~ .lp-menu-button span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .lp-menu-toggle:checked ~ .lp-menu-button span:nth-child(2) {
    opacity: 0;
  }

  .lp-menu-toggle:checked ~ .lp-menu-button span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .lp-menu-toggle:checked ~ .menu {
    display: flex;
  }

  .lp-header + main .nav {
    top: 49px;
  }
}

@media (max-width: 480px) {
  .lp-header {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 360px) {
  .lp-header {
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .lp-menu-button {
    width: 20px;
    height: 23px;
  }

}
