@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700;900&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* スーパー版: クリーンなブルー系 */
  --posla-blue: #2563eb;
  --posla-blue-deep: #1e40af;
  --posla-blue-light: #60a5fa;
  /* 飲食版: 赤・オレンジ系（調和） */
  --posla-orange: #f59e0b;
  --posla-orange-deep: #ea580c;
  --posla-red-accent: #dc2626;
  --posla-green: #10b981;
  --posla-warm-bg: #f8fafc;
  --premium-shadow: 0 20px 50px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.03);
}

/* Screen reader only - SEO & a11y */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 4px;
  z-index: 9999;
  padding: 12px 16px;
  background: var(--posla-blue);
  color: white;
  font-weight: bold;
  border-radius: 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 4px;
}

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  background-color: var(--posla-warm-bg);
  color: #1e293b;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
}

/* Premium Enhancements */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-gradient {
  background: linear-gradient(135deg, var(--posla-blue) 0%, #3b82f6 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradient-shimmer 4s linear infinite;
}

.bg-premium-gradient {
  background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
    var(--posla-warm-bg);
}

.shadow-premium {
  box-shadow: var(--premium-shadow);
}

/* Rich Enhancements */
.shadow-rich {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 15px -3px rgba(0, 0, 0, 0.06),
    0 20px 40px -10px rgba(37, 99, 235, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.02);
}

.shadow-rich-lg {
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.08),
    0 25px 50px -12px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 40px 80px -20px rgba(37, 99, 235, 0.12);
}

.card-glow {
  position: relative;
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(245, 158, 11, 0.08), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.bg-mesh {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(245, 158, 11, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(37, 99, 235, 0.06), transparent),
    var(--posla-warm-bg);
}

.bg-mesh-dark {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(59, 130, 246, 0.15), transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(245, 158, 11, 0.08), transparent 50%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2.5s ease-in-out infinite;
}

.hover-lift {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

/* Animations */
@keyframes gradient-shimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse-soft {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.01);
  }
}

.animate-pulse-soft {
  animation: pulse-soft 4s ease-in-out infinite;
}

/* Reveal on Scroll Preparation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Texture Effect */
.bg-grain {
  position: relative;
}

.bg-grain::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #cbd5e1, #94a3b8);
  border-radius: 10px;
  border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Tab Transitions */
.tab-content {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(15px);
}

.tab-content.active {
  opacity: 1;
  transform: translateY(0);
}

/* Problem & ROI section tabs */
.problem-content,
.roi-content {
  transition: opacity 0.4s ease;
}

.problem-content.hidden,
.roi-content.hidden {
  display: none !important;
}

/* モバイルビュー: 現場スマホUI優先・AI速報アイキャッチ維持 */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  /* ヒーロー内スマホ画像をモバイルで常に視界に入るサイズに */
  section:first-of-type .animate-float {
    width: 45% !important;
    opacity: 0.85;
  }
}

/* 業態テーマ切り替え（スーパー=ブルー / 飲食=オレンジ） */
body[data-theme="restaurant"] .glass,
body[data-theme="restaurant"] a:hover {
  --accent-hover: #f59e0b;
}
body[data-theme="restaurant"] #main-header a[href="#contact"] {
  background: linear-gradient(to right, #f59e0b, #ea580c) !important;
}
body[data-theme="super"] #main-header a[href="#contact"] {
  background: linear-gradient(to right, #2563eb, #1d4ed8) !important;
}

/* Interactive Buttons */
.btn-premium {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-premium:hover::after {
  width: 300%;
  height: 300%;
}