/*
Theme Name: Lightning Child
Template: lightning
*/

/*============================
  粒子背景の基本設定（非表示がデフォルト）
============================*/
#particles-js {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: transparent;
  pointer-events: none;
  will-change: transform, opacity;
}
#particles-js canvas {
  opacity: 1 !important;
}

/*============================
  全体構造を上に表示
============================*/
body, html {
  background: transparent !important;
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

main,
.site-content,
.wp-site-blocks,
.vk-blocks,
.container,
.page-header,
.site-footer {
  background: transparent !important;
  position: relative;
  z-index: 1;
  overflow: visible !important;
}

/* 擬似要素を無効化 */
.vk-blocks::before,
.page-header::before,
.site-footer::before {
  background: transparent !important;
  display: none !important;
}

/*============================
  ホバーアニメーション
============================*/
.hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 255, 204, 0.3);
}

.fade-in.hover:hover {
  transform: translateY(-5px) scale(1.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 255, 204, 0.3);
}

/*============================
  アンダーラインアニメーション
============================*/
.underline {
  position: relative;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  animation: fadeIn 1s ease 0.5s forwards;
}

.underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #ffffff, #00e5ff, #61c2ff, #00e5ff, #ffffff);
  background-size: 300% auto;
  animation: glowline 2s linear infinite;
  border-radius: 2px;
}

@keyframes glowline {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*============================
  左下に丸いCTAボタン（FAB風）
============================*/
#cta-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
}

#cta-fab a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background-color: #007aff;
  color: #fff;
  text-decoration: none;
  border-radius: 0%;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}

#cta-fab a:hover {
  background-color: #005fcc;
  transform: scale(1.1);
}

/*============================
  Lark節約計算機 UI スタイル
============================*/
#lark-calculator {
  font-family: sans-serif;
  padding: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  max-width: 640px;
  margin: auto;
  background: #fff;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
}

.employee-slider input[type="range"] {
  width: 100%;
  accent-color: #007bff;
}

.app-icons {
  margin-top: 1rem;
}

#appSelector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.5rem;
}

.app-icon {
  width: 64px;
  height: 64px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: border 0.2s;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-icon.selected {
  border-color: #007bff;
}

.app-icon.selected::after {
  content: "✔";
  position: absolute;
  top: -6px;
  right: -6px;
  background: white;
  color: #007bff;
  border-radius: 50%;
  font-size: 14px;
  padding: 2px 4px;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

.result-box {
  margin-top: 1rem;
  font-size: 1.2rem;
  text-align: center;
}

.saving-highlight {
  font-size: 1.5em;
  color: #007BFF !important; /* ← 強制的に上書き */
  font-weight: bold;
  border: 3px solid #007BFF;
  border-radius: 6px;
  padding: 0.5em 1em;
  background: #f0f8ff;
  display: inline-block;
}

input[type="range"] {
  accent-color: #007BFF;
  background: #61c2ff;
  height: 8px;
  border-radius: 5px;
  width: 100%;
}

#lark-calculator .description {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 1em;
}

#lark-calculator .note {
  font-size: 0.95em;
  margin-top: 1em;
  margin-bottom: 0.5em;
  color: #444;
}

#lark-calculator .disclaimer {
  font-size: 0.85em;
  color: #999;
  margin-top: 1.5em;
  border-top: 1px solid #ddd;
  padding-top: 1em;
}