/* =================================================
   1. Header v3
================================================= */

.header_v3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
  pointer-events: auto;
}

.header_v3.is-visible {
  background: rgba(11, 15, 22, 0.78);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-left,
.header-logo {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.header-nav {
  display: flex;
  align-items: center;
}

.header-nav-list {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav-list a {
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.header-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-left: 20px;
}

.btn-header {
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, #ff8a00 0%, #ff5a00 100%);
  box-shadow: 0 8px 20px rgba(255, 90, 0, 0.35);
  text-decoration: none;
}

/* =================================================
   2. Burger / SP MENU
================================================= */

.header-burger {
  display: none;
  background: none;
  border: none;
  width: 34px;
  height: 26px;
  position: relative;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.header-burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fff;
  transition: 0.3s ease;
}

.header-burger span:nth-child(1) { top: 0; }
.header-burger span:nth-child(2) { top: 11px; }
.header-burger span:nth-child(3) { bottom: 0; }

.sp-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 2000;
}

.sp-menu.active {
  transform: translateX(0);
}

.sp-menu-nav {
  padding: 100px 30px 40px;
  text-align: center;
}

.sp-menu-nav ul {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.sp-menu-nav li {
  margin-bottom: 22px;
}

.sp-menu-nav a {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #000;
  text-decoration: none;
}

.sp-menu-cta a {
  display: block;
  margin: 14px auto;
  max-width: 240px;
  padding: 14px 0;
  border-radius: 999px;
  text-align: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff8a00 0%, #ff5a00 100%);
  box-shadow: 0 8px 20px rgba(255, 90, 0, 0.35);
}

.sp-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2100;
}

.sp-menu-close::before,
.sp-menu-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 3px;
  background: #000;
}

.sp-menu-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.sp-menu-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* =================================================
   Floating 共通ラッパー（役割分離）
================================================= */
.floating-wrap {
  position: relative; /* ← fixed をやめる */
  z-index: 9999;
  pointer-events: none;
}

.floating-pc {
  position: fixed;
  right: 40px;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
  z-index: 9999;
}

.floating-sp {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  pointer-events: auto;
  z-index: 9999;
}

/* =================================================
   PC Floating Buttons（完成形）
================================================= */

.floating-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
  pointer-events: auto; /* ← 親の none を打ち消す */
}

.btn-float {
  display: block;
  width: 160px;          /* ← サイズを明示 */
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-float:hover {
  transform: scale(1.06);
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
}


/* =================================================
   4. Responsive
================================================= */

@media screen and (max-width: 1024px) {
  .header_v3 {
    position: relative;
  }

  .header-nav,
  .header-cta {
    display: none !important;
  }

  .header-burger {
    display: block;
  }

  .header-inner {
    padding: 16px 20px;
    min-height: 64px;
  }
}

/* Floating 切り替え */

@media screen and (max-width: 768px) {
  .floating-pc {
    display: none !important;
  }
}

@media screen and (min-width: 769px) {
  .floating-sp {
    display: none !important;
  }
}