/* ==========================================================================
   フッターセクション (サイバー格子文様 ✕ メカニカルパネル)
   ========================================================================== */

.wimax-footer-v2 {
  position: relative;
  /* プライマリーオレンジ ✕ サイバーグリッド文様背景 */
  background-color: var(--color-primary);
  background-image: 
    /* サイバーグリッド（方眼格子模様） */
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    /* ネオングラデーションブレンド */
    radial-gradient(circle at 50% 0%, rgba(255, 175, 0, 0.4) 0%, transparent 75%),
    linear-gradient(180deg, #ff5500 0%, #d43d00 100%);
  background-size: 30px 30px, 30px 30px, 100% 100%, 100% 100%;
  color: #ffffff;
  padding: 50px 0 100px;
  box-shadow: inset 0 10px 30px rgba(255, 205, 7, 0.4);
  overflow: hidden;
}

/* 上部境目の繊細な光るライン */
.footer-neon-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #ffffff 50%, transparent 100%);
  box-shadow: 0 0 12px #ffffff;
}

.footer-inner-v2 {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* --- 上段：ロゴ ＆ サポートパネル --- */
.footer-header-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-header-v2 {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-logo-wrap {
  width: 100%;
  max-width: 300px;
}

.footer-logo-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  /* filter: drop-shadow(0 4px 10px rgba(255, 230, 2, 0.578)); */
}

/* 洗練されたサイバーサポートパネル（ゲーム端末UI風） */
.footer-support-panel {
  position: relative;
  background: rgba(14, 17, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* 右上の角をカットしたスマートカッティング */
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  padding: 16px 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
}

/* 四隅のメカニカルピン */
.panel-corner {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: var(--color-primary);
  border-style: solid;
  pointer-events: none;
}

.panel-corner.top-left {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.panel-corner.bottom-right {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

/* パネルヘッダー */
.support-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

/* 点滅するステータスランプ */
.status-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00c6ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00c6ff;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.support-panel-tag {
  font-size: 10px;
  font-weight: 900;
  color: #00c6ff;
  letter-spacing: 1.5px;
  font-family: 'Arial Black', sans-serif;
}

.support-panel-ttl {
  font-size: 13px;
  font-weight: 700;
  color: #d0d0d0;
  margin: 0 0 6px;
}

.support-phone-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.support-phone-num {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Arial Black', sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.support-phone-num:hover {
  color: var(--color-primary);
}

.support-hours {
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 700;
  background: rgba(255, 107, 0, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 107, 0, 0.3);
}

/* --- 中段：ナビゲーション --- */
.footer-nav-v2 {
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
  padding: 20px 0;
}

.footer-nav-list-v2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 26px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-link-v2 {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.footer-nav-link-v2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.25s ease;
}

.footer-nav-link-v2:hover {
  color: #000000;
}

.footer-nav-link-v2:hover::after {
  width: 100%;
}

@media (min-width: 768px) {
  .footer-nav-link-v2 {
    font-size: 14px;
  }
}

/* --- 下段：コピーライト --- */
.footer-bottom-v2 {
  text-align: center;
  margin-top: 24px;
}

.footer-copyright-v2 {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
}
/* ========================================================================== 
   右下追従UI：在庫CTA / ページトップ
   CTA＝ブルーグラデーション。2要素は独立配置する。
   ========================================================================== */

/* --- 在庫数＋申し込みCTA --- */
.floating-stock-cta {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  width: 272px;
  padding: 10px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(rgba(63, 191, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 191, 255, 0.055) 1px, transparent 1px),
    linear-gradient(145deg, rgba(19, 31, 49, 0.97) 0%, rgba(8, 13, 24, 0.98) 58%, rgba(12, 18, 31, 0.98) 100%);
  background-size: 15px 15px, 15px 15px, 100% 100%;
  border: 1px solid rgba(73, 191, 255, 0.58);
  border-radius: 8px 4px 8px 4px;
  box-shadow:
    inset 0 0 24px rgba(0, 135, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.58),
    0 0 18px rgba(0, 149, 255, 0.16);
  backdrop-filter: blur(10px);
}

.floating-stock-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg,
      rgba(80, 205, 255, 0.16) 0 7px,
      transparent 7px 12px) left 12px top 7px / 82px 1px no-repeat,
    repeating-linear-gradient(90deg,
      rgba(80, 205, 255, 0.12) 0 6px,
      transparent 6px 11px) right 12px bottom 7px / 64px 1px no-repeat;
}

.floating-stock-cta__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  border-color: rgba(104, 218, 255, 0.92);
  border-style: solid;
  filter: drop-shadow(0 0 5px rgba(52, 190, 255, 0.52));
}

.floating-stock-cta__corner--tl {
  top: 4px;
  left: 4px;
  border-width: 2px 0 0 2px;
  border-radius:4px 0 0 0;
}

.floating-stock-cta__corner--br {
  right: 4px;
  bottom: 4px;
  border-width: 0 2px 2px 0;
  border-radius:0 0 4px 0;
}

.floating-stock-cta__stock {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-height: 40px;
  margin-bottom: 7px;
  padding: 1px 8px 3px;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.72);
}

.floating-stock-cta__prefix {
  margin-right: 7px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.floating-stock-cta__number {
  color: #ff9500;
  font-family: 'Arial Black', 'Noto Sans JP', sans-serif;
  font-size: 35px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow:
    0 2px 0 rgba(115, 44, 0, 0.92),
    0 0 9px rgba(255, 149, 0, 0.58);
}

.floating-stock-cta__unit {
  margin-left: 4px;
  font-size: 16px;
  font-weight: 900;
}

/* 申し込みCTA：必須ルールのブルーグラデーション */
.floating-stock-cta__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  overflow: hidden;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 7px 2px 7px 2px;
  background: linear-gradient(135deg, #00c8ff 0%, #008cff 48%, #0068ee 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -2px 0 rgba(0, 47, 135, 0.35),
    0 5px 12px rgba(0, 0, 0, 0.42),
    0 0 14px rgba(0, 174, 255, 0.46);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.floating-stock-cta__button::before {
  content: '';
  position: absolute;
  inset: 1px 2px auto;
  height: 42%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent);
  pointer-events: none;
}

.floating-stock-cta__button::after {
  content: '›';
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 22px;
  line-height: 1;
  opacity: 0.9;
}

.floating-stock-cta__button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -2px 0 rgba(0, 47, 135, 0.28),
    0 8px 17px rgba(0, 0, 0, 0.46),
    0 0 22px rgba(0, 194, 255, 0.68);
}

/* --- ページ上部へ戻るボタン：在庫CTAとは独立 --- */
.floating-page-top {
  position: fixed;
  right: 18px;
  /* bottom: calc(137px + env(safe-area-inset-bottom, 0px)); */
    bottom: 10px;
  z-index: 1101;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  gap: 2px;
  color: #dff6ff;
  text-decoration: none;
  background: linear-gradient(160deg, rgba(19, 33, 52, 0.96) 0%, rgba(7, 13, 24, 0.98) 100%);
  border: 1px solid rgba(78, 199, 255, 0.74);
  border-radius: 6px 2px 6px 2px;
  box-shadow:
    inset 0 0 16px rgba(0, 152, 255, 0.09),
    0 7px 18px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(0, 166, 255, 0.20);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-page-top::before,
.floating-page-top::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  pointer-events: none;
}

.floating-page-top::before {
  top: 3px;
  left: 3px;
  border-top: 1px solid #6dd8ff;
  border-left: 1px solid #6dd8ff;
  border-radius: 2px 0 0 0;
}

.floating-page-top::after {
  right: 3px;
  bottom: 3px;
  border-right: 1px solid #6dd8ff;
  border-bottom: 1px solid #6dd8ff;
  border-radius: 0 0 2px 0;
}

.floating-page-top__arrow {
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg) translate(2px, 2px);
  filter: drop-shadow(0 0 4px rgba(78, 204, 255, 0.72));
}

.floating-page-top__text {
  font-size: 9px;
  font-family: 'Arial Black', sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.floating-page-top:hover {
  transform: translateY(-2px);
  border-color: rgba(112, 220, 255, 1);
  box-shadow:
    inset 0 0 18px rgba(0, 166, 255, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.48),
    0 0 20px rgba(0, 183, 255, 0.38);
}

/* スマホ：画面占有率を抑えつつ、タップ領域は確保 */
@media (max-width: 767px) {
  /* スマホでは hero-action-row-sp が画面下部の固定CTAを担う。
     フッター最下部が固定CTAに隠れない分だけ余白を確保する。 */
  .wimax-footer-v2 {
    padding-bottom: calc(var(--hero-action-row-sp-height, 72px) + 24px + env(safe-area-inset-bottom, 0px));
  }

  /* 新しい画面下部固定CTAと内容・位置が重複するためスマホのみ非表示。
     PC表示は従来どおり維持する。 */
  .floating-stock-cta {
    display: none;
  }

  /* 画面下部固定CTAの直上に配置する。 */
  .floating-page-top {
    right: 10px;
    bottom: calc(var(--hero-action-row-sp-height, 72px) + 10px + env(safe-area-inset-bottom, 0px));
    z-index: 1201;
    width: 44px;
    height: 44px;
  }

  .floating-page-top__text {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-stock-cta__button,
  .floating-page-top {
    transition: none;
  }
}
