/* ============================================================
   おそうじニコッと LP - スタイルシート
============================================================ */
:root {
  --pink: #ec4d7f;
  --pink-dark: #d63369;
  --navy: #1a2e56;
  --navy-light: #223a6b;
  --blue-cta: #2f6fd6;
  --yellow: #ffd23f;
  --bg-cream: #fff8ee;
  --text-dark: #222;
  --shadow-soft: 0 6px 20px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  background: var(--bg-cream);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

#lp-main {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 0 40px rgba(0,0,0,0.08);
}

/* ---------- 画像セクション + ホットスポットボタン ---------- */
.img-section {
  position: relative;
  width: 100%;
  line-height: 0;
}

.lp-image {
  width: 100%;
  height: auto;
  display: block;
}

.hot-btn {
  position: absolute;
  display: block;
  cursor: pointer;
  border-radius: 999px;
  /* デバッグ用に見える枠線を消す。透明のクリック領域 */
  background: rgba(255,255,255,0);
  outline: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  z-index: 5;
}

.hot-btn:hover,
.hot-btn:focus-visible {
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.85);
}

.hot-btn:active {
  background: rgba(255,255,255,0.3);
}

/* ---------- 最終CTAセクション（フォーム廃止に伴う電話・LINE誘導） ---------- */
.final-cta-section {
  position: relative;
  background: linear-gradient(180deg, #fff0f5 0%, #fef6e4 100%);
  padding: 48px 20px;
  text-align: center;
}

.final-cta-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.final-cta-lead {
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  margin: 0 0 20px;
  line-height: 1.5;
}

.final-cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.final-cta-btn {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, filter 0.2s ease;
}
.final-cta-btn i { font-size: 24px; }
.final-cta-btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.4; }
.final-cta-btn small { font-weight: 500; font-size: 11px; opacity: 0.9; }

.final-cta-call { background: linear-gradient(135deg, #ff5e8e 0%, var(--pink-dark) 100%); }
.final-cta-line { background: linear-gradient(135deg, #4fd869 0%, #06c755 100%); }
.final-cta-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* ---------- 運営会社・代理店情報セクション ---------- */
.company-info-section {
  background: linear-gradient(160deg, #1a2e56 0%, #0f1d3a 100%);
  padding: 48px 20px 56px;
}

.company-info-wrap {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.company-card {
  background: linear-gradient(160deg, #24406f 0%, #1a2e56 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 26px 26px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.company-label {
  display: inline-block;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}
.company-label-orange { color: #ffb547; }
.company-label-pink { color: #ff7fa8; }

.company-name {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.4;
}

.company-detail {
  color: #c7d0e6;
  font-size: 14.5px;
  line-height: 1.9;
  margin: 0;
}

.company-links {
  text-align: center;
  margin-top: 6px;
}

.privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c7d0e6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.privacy-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ---------- 追従（フローティング）CTAバー ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
  background: linear-gradient(180deg, #16264a 0%, #0f1d3a 100%);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 20px rgba(0,0,0,0.35);
  transform: translateY(0);
  transition: transform 0.3s ease;
  border-top: 2px solid #2a3f6e;
}

.sticky-cta.hide {
  transform: translateY(100%);
}

.sticky-cta-title {
  margin: 0 0 7px;
  text-align: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta-arrow {
  color: var(--yellow);
  margin-right: 3px;
}

.sticky-cta-free {
  color: var(--yellow);
  font-weight: 900;
  font-size: 14px;
  margin: 0 1px;
}

.sticky-cta-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.sticky-btn {
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  animation: sticky-btn-bounce 2.2s ease-in-out infinite;
}

.sticky-btn-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.sticky-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.sticky-btn-text .sticky-btn-main {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sticky-btn-text small {
  display: inline-block;
  margin-top: 2px;
  background: var(--yellow);
  color: #5a3c00;
  font-weight: 800;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-btn-call {
  background: linear-gradient(135deg, #ff5e8e 0%, var(--pink-dark) 100%);
  animation-delay: 0s;
}
.sticky-btn-form {
  background: linear-gradient(135deg, #4c8bee 0%, var(--blue-cta) 100%);
  animation-delay: 0.15s;
}
.sticky-btn-line {
  background: linear-gradient(135deg, #4fd869 0%, #06c755 100%);
  animation-delay: 0.15s;
}

.sticky-btn:active { filter: brightness(0.92); }

/* キラッと光るシャインエフェクト */
.sticky-btn-shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.75) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  animation: sticky-btn-shine 2.6s ease-in-out infinite;
  pointer-events: none;
}
.sticky-btn-line .sticky-btn-shine {
  animation-delay: 1.3s;
}

@keyframes sticky-btn-shine {
  0% { left: -60%; }
  35% { left: 130%; }
  100% { left: 130%; }
}

/* ふわっと上下に動くアニメーション */
@keyframes sticky-btn-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-btn,
  .sticky-btn-shine {
    animation: none !important;
  }
}

/* ---------- トップに戻るボタン ---------- */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 100px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--pink);
  box-shadow: var(--shadow-soft);
  font-size: 18px;
  cursor: pointer;
  z-index: 998;
  display: none;
  align-items: center;
  justify-content: center;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--pink); color: #fff; }

/* ---------- ページ最下部の余白（追従バー分） ---------- */
body { padding-bottom: 96px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 480px) {
  .final-cta-lead { font-size: 17px; }
  .final-cta-btn { font-size: 14px; padding: 15px 10px; }
  .final-cta-btn i { font-size: 19px; }
  .company-name { font-size: 19px; }
  .company-card { padding: 22px 20px 20px; }
}

@media (max-width: 360px) {
  .sticky-cta-title { font-size: 10.5px; }
  .sticky-cta-free { font-size: 12px; }
  .sticky-btn { font-size: 10.5px; padding: 7px 4px; gap: 4px; }
  .sticky-btn-icon { width: 22px; height: 22px; font-size: 10px; }
  .sticky-btn-text small { font-size: 8px; padding: 1px 5px; }
}

@media (min-width: 700px) {
  .sticky-cta { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .sticky-cta-title { font-size: 15px; margin-bottom: 10px; }
  .sticky-cta-free { font-size: 17px; }
  .sticky-cta-buttons { gap: 14px; }
  .sticky-btn { font-size: 16px; padding: 14px 16px; gap: 12px; }
  .sticky-btn-icon { width: 40px; height: 40px; font-size: 18px; }
  .sticky-btn-text small { font-size: 12px; padding: 2px 10px; }
  .back-to-top { bottom: 108px; }
}
