/* ============================================
   HEADER.CSS
   LP専用ヘッダー
   guide.shosha-plus.com
   ============================================ */


/* ============================================
   HEADER BASE
   ============================================ */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 42, 55, 0.08);
  transition:
    background-color var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.lp-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(24, 33, 43, 0.06);
}

.lp-header__inner {
  width: min(100% - 48px, var(--container));
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}


/* ============================================
   LOGO
   ============================================ */
.lp-header__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.lp-header__logo img {
  display: block;
  width: auto;
  height: 40px;
  object-fit: contain;
}

.lp-header__logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 52px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  opacity: .95;
}


/* ============================================
   RIGHT AREA
   ============================================ */
.lp-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lp-header__official {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-text);
  transition: color var(--transition), opacity var(--transition);
}

.lp-header__official::after {
  content: "";
  width: 1em;
  height: 1em;
  margin-left: 6px;
  background: currentColor;
  opacity: .72;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3z'/%3E%3Cpath fill='black' d='M5 5h6v2H7v10h10v-4h2v6H5V5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3z'/%3E%3Cpath fill='black' d='M5 5h6v2H7v10h10v-4h2v6H5V5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lp-header__official:hover {
  color: var(--color-accent);
  opacity: 1;
}

.lp-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--color-cta);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 28px rgba(31, 42, 55, 0.14);
  transition:
    background-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.lp-header__cta:hover {
  background: var(--color-cta-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(226, 4, 27, 0.18);
  opacity: 1;
}


/* ============================================
   MOBILE CTA LABEL CONTROL
   ============================================ */
.lp-header__cta-text--short {
  display: none;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
  .lp-header__inner {
    width: min(100% - 32px, var(--container));
    min-height: 64px;
    gap: 12px;
  }

  .lp-header__logo img {
    height: 30px;
  }

  .lp-header__logo::after {
    bottom: -8px;
    width: 40px;
  }

  .lp-header__right {
    gap: 10px;
  }

  .lp-header__official {
    display: none;
  }

  .lp-header__cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.75rem;
    box-shadow: 0 8px 20px rgba(31, 42, 55, 0.12);
  }

  .lp-header__cta-text--full {
    display: none;
  }

  .lp-header__cta-text--short {
    display: inline;
  }
}
