/* ===============================================================
   Components (Buttons / Hero / Animations / Floating CTA)
=============================================================== */

/* =========================
   Buttons
========================= */
.btn-header {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white) !important;
  padding: 12px 30px !important;
  border-radius: 40px !important;
  font-size: 15px !important;
  font-weight: bold;
  white-space: nowrap;
  transition: background-color 0.3s, transform 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-header:hover {
  background-color: var(--primary-color-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Joinボタン用：暗めの青 */
.btn-header-secondary {
  display: inline-block;
  background-color: #1e40af;
  /* 暗い青 */
  color: var(--white) !important;
  padding: 12px 30px !important;
  border-radius: 40px !important;
  font-size: 15px !important;
  font-weight: bold;
  white-space: nowrap;
  transition: background-color 0.3s, transform 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-header-secondary:hover {
  background-color: #1e3a8a;
  /* より暗い青 */
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* ボタンベース（他で使うかもしれないので残しておく） */
.btn.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.3s;
}

.btn.btn-primary:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
}

/* PC〜タブレット：ヒーロー中央CTA */
.hero-cta {
  margin-top: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-cta-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f9fafb;
  margin: 0;
}

.hero-cta-highlight {
  background: linear-gradient(to top,
      rgba(59, 130, 246, 0.4) 0%,
      rgba(59, 130, 246, 0.0) 60%);
  padding: 0 2px;
  border-radius: 4px;
}

.hero-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 44px;
  border-radius: 9999px;
  background: #3b82f6;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-cta-button:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.55);
}

.hero-cta-button:active {
  transform: translateY(0);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
}

/* =========================
   Hero (共通ベース：index/LPで使う)
========================= */
.hero-section {
  background-color: var(--dark-bg);
  position: relative;
  overflow: hidden;
  padding: 40px 0;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1.1;
  text-align: left;
  color: var(--white);
  padding-right: 40px;
  animation: fade-in-up 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 20px 0;
  max-width: 600px;
  word-break: keep-all;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: #e5e7eb;
  margin-top: 20px;
  margin-bottom: 0;
  max-width: 520px;
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 15px;
    line-height: 1.6;
  }
}

.hero-content p {
  font-size: clamp(16px, 2.5vw, 20px);
  max-width: 650px;
  margin: 0 0 28px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-image {
  flex: 1.1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slide-in-right 1.2s ease-out forwards;
  opacity: 0;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

/* =========================
   Animations (共通)
========================= */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Floating CTA (共通)
========================= */
.floating-cta {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(16px, env(safe-area-inset-bottom, 0px) + 8px);
  background: #3b82f6;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.35);
  z-index: 9999;
  max-width: calc(100% - 32px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: none;
  /* PCでは非表示、SPでだけ表示 */
}

.floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .floating-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }
}

/* =========================
   Responsive (Hero共通)
========================= */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .hero-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content,
  .hero-image,
  .hero-cta {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content {
    padding-right: 0;
    padding-bottom: 20px;
    text-align: center;
  }

  .hero-content h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
    word-break: keep-all;
  }

  .hero-image {
    margin: 0 auto 16px;
  }

  .hero-image img {
    width: 100%;
  }

  .hero-cta {
    margin-top: 16px;
    padding: 0 4px;
    align-items: center;
  }

  .hero-cta-button {
    width: 100%;
    max-width: 380px;
    font-size: 1.15rem;
    padding: 12px 16px;
    margin: 0 auto;
  }

  .hero-cta-text {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

.mini-voice-meta {
  white-space: pre-line;
}

@media (max-width: 768px) {

  .hero-section,
  .hero-container {
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
  }
}

/* =========================
   Strong CTA Block (In-page)
========================= */
.strong-cta-block {
  margin: 60px 0;
  padding: 40px 20px;
  background-color: var(--dark-bg, #111827);
  border-radius: 16px;
  text-align: center;
  color: var(--white, #fff);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.strong-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.strong-cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  color: var(--white, #fff);
}

.strong-cta-desc {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
  margin: 0;
  color: #e5e7eb;
}

.strong-cta-button-wrapper {
  margin-top: 10px;
  width: 100%;
}

.strong-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border-radius: 999px;
  background: #3b82f6;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.strong-cta-button:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.strong-cta-note {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 5px;
  color: #9ca3af;
}

@media (max-width: 768px) {
  .strong-cta-block {
    margin: 40px 0;
    padding: 30px 16px;
  }

  .strong-cta-title {
    font-size: 1.25rem;
  }

  .strong-cta-button {
    width: 100%;
    max-width: 320px;
  }
}