/* ===================================================================
 * SWELL Header Switcher - LP Header Front CSS
 * =================================================================== */

.shs-lp-header {
  --shs-bg: #ffffff;
  --shs-text: #222222;
  --shs-height: 70px;
  --shs-logo-h: auto;

  position: relative;
  width: 100%;
  background-color: var(--shs-bg);
  color: var(--shs-text);
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, sans-serif;
}

.shs-lp-header.shs-sticky {
  position: sticky;
  top: 0;
}

.shs-lp-header.shs-border {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.shs-lp-header.shs-shadow {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.shs-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  height: var(--shs-height);
  margin: 0 auto;
  padding: 0 20px;
  gap: 20px;
}

.shs-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.shs-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}

/* ロゴ */
.shs-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.shs-logo-img {
  height: var(--shs-logo-h, auto);
  max-height: calc(var(--shs-height) - 20px);
  width: auto;
  display: block;
}

.shs-logo-text {
  font-size: 20px;
  font-weight: bold;
}

/* メニュー */
.shs-nav {
  display: flex;
}

.shs-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  align-items: center;
}

.shs-menu-item a {
  color: var(--shs-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.shs-menu-item a:hover {
  opacity: 0.7;
}

/* ボタン */
.shs-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shs-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: opacity 0.2s, transform 0.15s;
  background-color: #f0f0f0;
  color: #222;
  white-space: nowrap;
  flex-direction: column;
  line-height: 1.2;
}

.shs-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.shs-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
}

.shs-btn-sub {
  font-size: 10px;
  font-weight: normal;
  opacity: 0.85;
}

.shs-btn-emphasize {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: shs-pulse 2s infinite;
}

@keyframes shs-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* アイコン */
.shs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.shs-icon-line {
  background: #06c755;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
}

/* ハンバーガー */
.shs-burger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  margin-left: auto;
}

.shs-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--shs-text);
  transition: transform 0.3s, opacity 0.3s;
}

.shs-drawer-open .shs-burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.shs-drawer-open .shs-burger span:nth-child(2) {
  opacity: 0;
}
.shs-drawer-open .shs-burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ドロワー（スマホメニュー） */
.shs-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--shs-bg);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.shs-drawer-open .shs-drawer {
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.shs-drawer-inner {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shs-drawer-inner .shs-menu {
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.shs-drawer-inner .shs-menu-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.shs-drawer-inner .shs-menu-item a {
  display: block;
  padding: 14px 4px;
  font-size: 16px;
}

.shs-drawer-inner .shs-btns {
  flex-direction: column;
  align-items: stretch;
}

.shs-drawer-inner .shs-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 16px;
  text-align: center;
}

/* ===================================================================
 * レスポンシブ
 * =================================================================== */

@media (max-width: 959px) {
  .shs-inner {
    padding: 0 12px;
    gap: 8px;
  }

  /* sp_mode = hamburger */
  .shs-sp-hamburger > .shs-inner > .shs-right {
    display: none;
  }
  .shs-sp-hamburger.shs-sp-show-btns > .shs-inner > .shs-right {
    display: flex;
    gap: 6px;
  }
  .shs-sp-hamburger.shs-sp-show-btns > .shs-inner > .shs-right > .shs-nav {
    display: none;
  }
  .shs-sp-hamburger .shs-burger {
    display: flex;
  }
  .shs-sp-hamburger .shs-drawer {
    display: block;
  }

  /* sp_mode = visible */
  .shs-sp-visible > .shs-inner {
    overflow-x: auto;
  }
  .shs-sp-visible .shs-menu {
    gap: 16px;
  }
  .shs-sp-visible .shs-burger,
  .shs-sp-visible .shs-drawer {
    display: none;
  }

  /* sp_mode = hidden */
  .shs-sp-hidden > .shs-inner > .shs-right > .shs-nav {
    display: none;
  }
  .shs-sp-hidden .shs-burger,
  .shs-sp-hidden .shs-drawer {
    display: none;
  }

  /* sp_mode = logo_only */
  .shs-sp-logo_only > .shs-inner > .shs-right > .shs-nav {
    display: none;
  }
  .shs-sp-logo_only .shs-burger,
  .shs-sp-logo_only .shs-drawer {
    display: none;
  }
  .shs-sp-logo_only:not(.shs-sp-show-btns) > .shs-inner > .shs-right {
    display: none;
  }

  /* スマホで右側ボタンを表示しない指定 */
  .shs-lp-header:not(.shs-sp-show-btns) > .shs-inner > .shs-right > .shs-btns {
    display: none;
  }

  /* スマホサイズではボタンも小さく */
  .shs-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  .shs-btn-main {
    font-size: 13px;
  }
}

/* ===================================================================
 * SWELL本体ヘッダーとの競合回避
 * =================================================================== */

/* LPヘッダーが有効なページではSWELLヘッダーの隙間を消す */
.shs-lp-active .l-content {
  padding-top: 0;
  margin-top: 0;
}
