/* Custom CSS Variables for Gray Base with Blue Key Color */
:root {
  /* Color Palette */
  --background: #ffffff;
  --foreground: #1a1a1a;
  --card: #fafafa;
  --card-foreground: #1a1a1a;
  --popover: #ffffff;
  --popover-foreground: #1a1a1a;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --secondary: #6b7280;
  --secondary-foreground: #ffffff;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --accent: #3b82f6;
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e5e5e5;
  --input: #fafafa;
  --ring: rgba(37, 99, 235, 0.5);
}

/* Base Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
    "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Custom Tailwind Configuration */
.bg-background {
  background-color: var(--background);
}

.text-foreground {
  color: var(--foreground);
}

.bg-card {
  background-color: var(--card);
}

.text-card-foreground {
  color: var(--card-foreground);
}

.bg-primary {
  background-color: var(--primary);
}

.text-primary {
  color: var(--primary);
}

.text-primary-foreground {
  color: var(--primary-foreground);
}

.bg-secondary {
  background-color: var(--secondary);
}

.text-secondary {
  color: var(--secondary);
}

.text-secondary-foreground {
  color: var(--secondary-foreground);
}

.bg-muted {
  background-color: var(--muted);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.bg-accent {
  background-color: var(--accent);
}

.text-accent {
  color: var(--accent);
}

.text-accent-foreground {
  color: var(--accent-foreground);
}

.border-border {
  border-color: var(--border);
}

.border-input {
  border-color: var(--input);
}

.border-primary {
  border-color: var(--primary);
}

/* Rounded None Override */
.rounded-none {
  border-radius: 0 !important;
}

/* Text Balance */
.text-balance {
  text-wrap: balance;
}

/* Hover Effects */
.hover\:bg-primary\/90:hover {
  background-color: rgba(37, 99, 235, 0.9);
}

.hover\:bg-accent:hover {
  background-color: var(--accent);
}

.hover\:text-accent-foreground:hover {
  color: var(--accent-foreground);
}

/* Transition */
.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}


/* ========== Hero Swiper ========== */
.hero-swiper {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-swiper__wrapper {
  width: 100%;
  height: 100%;
}

.hero-swiper__slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-swiper__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}

.hero-swiper__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* ほんのり暗くしてテキスト可読性UP */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.20) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.30) 100%
  );
}

/* Swiperのフェード時のガタつきを抑制 */
.swiper,
.swiper-wrapper,
.swiper-slide {
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* フェード切替の黒幕が見えないように透明背景 */
.swiper-slide {
  background: transparent;
}

/* ヒーローコンテンツを中央配置 */
section.relative.overflow-hidden {
  position: relative;
  min-height: 100vh; /* フルスクリーン表示 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* テキストコンテナの調整 */
section.relative.overflow-hidden .max-w-6xl.mx-auto.text-center.relative.z-20 {
  position: relative;
  z-index: 20;
  color: var(--primary-foreground);
  padding: 2rem;
}


/* ===== Sticky CTA（下固定・スライドイン） ===== */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;

  transition-property: transform, opacity, visibility;
  transition-duration: 600ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);

  z-index: 9999;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
}

.sticky-cta--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-cta__close {
  cursor: pointer;
  transition: opacity 0.2s;
}

.sticky-cta__close:hover {
  opacity: 0.8;
}
