/*
Theme Name: AIO - AI Solutions
Theme URI: https://aio-ne.info/
Author: 株式会社AIO
Author URI: https://aio-ne.info/
Description: 株式会社AIO公式テーマ - AI技術で未来を創る
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aio-theme
Tags: modern, ai, technology
*/

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Dark phase (Matrix hero) */
  --color-dark-bg: #0a0a0a;
  --color-matrix-green: #00ff41;
  --color-matrix-green-dim: rgba(0, 255, 65, 0.3);

  /* Light phase (after transition & all sections) */
  --color-bg: #ffffff;
  --color-bg-secondary: #f7f8fa;
  --color-bg-card: #ffffff;
  --color-accent: #1a1a2e;
  --color-accent-blue: #2563eb;
  --color-accent-cyan: #0ea5e9;
  --color-accent-gradient-start: #1a1a2e;
  --color-accent-gradient-end: #2563eb;
  --color-text-primary: #1a1a2e;
  --color-text-secondary: #555566;
  --color-text-muted: #999999;
  --color-border: #e2e5ea;
  --color-border-hover: #c0c5ce;

  --font-mono: 'Share Tech Mono', monospace;
  --font-sans: 'Noto Sans JP', sans-serif;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

/* ヒーロー画面でスクロールをロック */
html.scroll-locked {
  overflow: hidden;
}

html.scroll-locked body {
  overflow: hidden;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-cyan);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Typography
   ============================================ */
.font-mono {
  font-family: var(--font-mono);
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all 0.4s ease;
}

/* Header on dark hero (before scroll) */
.site-header .site-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.1em;
  transition: color 0.4s ease;
}

.site-header .site-logo span {
  color: var(--color-matrix-green);
  transition: color 0.4s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

.site-header.scrolled .site-logo {
  color: var(--color-text-primary);
}

.site-header.scrolled .site-logo span {
  color: var(--color-accent-blue);
}

.site-header.scrolled .main-nav a {
  color: var(--color-text-secondary);
}

.site-header.scrolled .main-nav a:hover {
  color: var(--color-text-primary);
}

.site-header.scrolled .main-nav a::after {
  background: var(--color-accent-blue);
}

.site-header.scrolled .menu-toggle span {
  background-color: var(--color-text-primary);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.4s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease, background 0.4s ease;
}

.main-nav a:hover {
  color: #ffffff;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Nav Dropdown (PC: hover, Mobile: accordion) */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0;
  padding-bottom: 4px;
  position: relative;
  transition: color 0.4s ease;
}

.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease, background 0.4s ease;
}

.nav-dropdown-toggle:hover {
  color: #ffffff;
}

.nav-dropdown-toggle:hover::after {
  width: 100%;
}

.nav-arrow {
  font-size: 0.7rem;
  margin-left: 0.2rem;
  transition: transform 0.3s;
  display: inline-block;
}

.nav-dropdown.open .nav-arrow {
  transform: rotate(180deg);
}

/* PC: hover dropdown */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.75rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
  min-width: 220px;
  z-index: 1000;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--color-text-primary);
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown-menu a:hover {
  background: var(--color-bg-secondary);
  color: var(--color-accent-blue);
}

.nav-dropdown-menu a::after {
  display: none;
}

/* Scrolled header: dropdown toggle color */
.site-header.scrolled .nav-dropdown-toggle {
  color: var(--color-text-secondary);
}

.site-header.scrolled .nav-dropdown-toggle:hover {
  color: var(--color-text-primary);
}

.site-header.scrolled .nav-dropdown-toggle::after {
  background: var(--color-accent-blue);
}

/* Audio Toggle Button (shared styles) */
.audio-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: opacity 0.3s;
  flex-shrink: 0;
  line-height: 1;
}

.audio-toggle:hover {
  opacity: 0.7;
}

.audio-toggle.muted {
  opacity: 0.4;
}

/* Header Audio Toggle */
.header-audio-toggle {
  order: 10;
  margin-left: 0.5rem;
}

/* Hero Audio Toggle (inside input wrapper) */
.hero-chat-input-wrapper .audio-toggle {
  font-size: 1.1rem;
  padding: 0.25rem 0.5rem;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-dark-bg);
}

#matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  will-change: contents;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  width: 90%;
}

/* Phase 1: 白文字（Matrix背景） */
.hero-question {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 2rem;
  min-height: 3rem;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  transition: color 1s ease, text-shadow 1s ease;
}

/* Phase 2: 黒文字（白背景） */
.hero-section.light-phase .hero-question {
  color: var(--color-text-primary);
  text-shadow: none;
}

.hero-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: #ffffff;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  transition: background-color 1s ease;
}

.hero-section.light-phase .hero-cursor {
  background-color: var(--color-text-primary);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Phase 2: Start Button */
.hero-start-container {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  margin-top: 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-start-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 60px;
  color: #ffffff;
  padding: 1.25rem 3rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: heroPulse 2s ease-in-out infinite;
}

.hero-start-btn:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
  animation: none;
}

.hero-start-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: background 0.3s ease;
}

.hero-start-btn:hover .hero-start-icon {
  background: rgba(255, 255, 255, 0.25);
}

.hero-start-text {
  /* text */
}

@keyframes heroPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
  }
}

/* Light phase start button */
.hero-section.light-phase .hero-start-btn {
  border-color: var(--color-accent);
  color: var(--color-accent);
  animation-name: heroPulseLight;
}

.hero-section.light-phase .hero-start-btn:hover {
  background: var(--color-accent);
  color: #ffffff;
}

.hero-section.light-phase .hero-start-icon {
  background: rgba(26, 26, 46, 0.1);
}

.hero-section.light-phase .hero-start-btn:hover .hero-start-icon {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes heroPulseLight {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(37, 99, 235, 0);
  }
}

/* Hero Chat Messages Area */
.hero-chat-messages {
  max-height: 0;
  overflow-y: auto;
  transition: max-height 0.4s ease;
  margin-bottom: 0;
  position: relative;
}

.hero-chat-messages.expanded {
  max-height: 300px;
  margin-bottom: 1rem;
}

.hero-chat-messages.collapsed {
  max-height: 0 !important;
  margin-bottom: 0 !important;
  overflow: hidden;
}

.hero-chat-close {
  display: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.35rem 1.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 20px;
  transition: all 0.3s;
}

.hero-chat-close:hover {
  background: var(--color-border);
  color: var(--color-text-primary);
}

.hero-chat-messages.expanded .hero-chat-close {
  display: block;
}

.hero-chat-messages .chat-msg {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 85%;
  text-align: left;
}

.hero-chat-messages .chat-msg.user {
  background: var(--color-accent);
  color: #ffffff;
  margin-left: auto;
  border-radius: 14px 14px 4px 14px;
}

.hero-chat-messages .chat-msg.bot {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  margin-right: auto;
  border-radius: 14px 14px 14px 4px;
  backdrop-filter: blur(10px);
}

.hero-chat-messages .chat-msg.bot.typing {
  color: var(--color-text-muted);
}

/* Chat Input - Light Phase */
.hero-chat-container {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-chat-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-chat-input-wrapper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #d0d5dd;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.hero-chat-input-wrapper:focus-within {
  border-color: var(--color-accent-blue);
  box-shadow: 0 2px 20px rgba(37, 99, 235, 0.15);
}

.hero-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.5rem;
  resize: none;
  line-height: 1.5;
  max-height: 80px;
  overflow-y: auto;
}

.hero-chat-input::placeholder {
  color: #aaa;
}

.hero-chat-send {
  background: var(--color-accent);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.hero-chat-send:hover {
  background: var(--color-accent-blue);
}

.hero-chat-send:active {
  transform: scale(0.95);
}

/* Suggestions */
.hero-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero-suggestion-btn {
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 25px;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.hero-suggestion-btn:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 26, 46, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.6s ease;
  text-align: center;
}

.scroll-indicator.visible {
  opacity: 1;
}

.scroll-indicator-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.scroll-indicator-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  margin: 0 auto;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(10px); opacity: 0.5; }
}

/* ============================================
   Glitch Effect (dark phase only)
   ============================================ */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: #00ff41;
  animation: glitch-1 2s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
  color: #999999;
  animation: glitch-2 3s infinite linear alternate-reverse;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, -3px); }
  100% { transform: translate(0); }
}

@keyframes glitch-2 {
  0% { transform: translate(0); }
  20% { transform: translate(3px, -3px); }
  40% { transform: translate(3px, 3px); }
  60% { transform: translate(-3px, -3px); }
  80% { transform: translate(-3px, 3px); }
  100% { transform: translate(0); }
}

/* ============================================
   Service Sections (Split Layout)
   ============================================ */
.service-section {
  position: relative;
  z-index: 1;
  background-color: var(--color-bg);
  padding: 0;
}

.service-section:nth-child(even) {
  background-color: var(--color-bg-secondary);
}

/* Full-width background video layout */
.service-split {
  position: relative;
  min-height: 100vh;
}

.service-split.reverse {
  /* Same layout - only animation direction differs */
}

/* Video column: clip-path で親セクション内でのみ表示 */
.service-video-col {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  clip: rect(0, auto, auto, 0);
  -webkit-clip-path: inset(0);
  clip-path: inset(0);
}

/* 動画本体を fixed で画面に貼り付ける（clip内でのみ有効） */
.service-video-col .video-placeholder {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Overlay to ensure text readability */
.video-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.35);
  z-index: 1;
}

.video-placeholder-label {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-text-muted);
  padding: 2rem;
  opacity: 0.5;
}

/* Hide label when video is present */
.video-placeholder:has(video) .video-placeholder-label {
  display: none;
}

.video-placeholder-label .label-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.video-placeholder-label h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.video-placeholder-label p {
  font-size: 0.8rem;
}

/* Animated gradient for placeholder (before video is added) */
.video-placeholder::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(37, 99, 235, 0.03),
    transparent,
    rgba(37, 99, 235, 0.03),
    transparent
  );
  animation: placeholderRotate 20s linear infinite;
  z-index: 0;
}

@keyframes placeholderRotate {
  to { transform: rotate(360deg); }
}

/* Chat column: on top of video */
.service-chat-col {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 700px;
  padding: 6rem 2rem 4rem;
}

/* Alternate alignment: odd sections left, even sections right */
/* セクション2,4,6（通常）: 左寄せ */
.service-split .service-chat-col {
  margin-left: 3rem;
  margin-right: auto;
}

/* セクション3,5（reverse）: 右寄せ */
.service-split.reverse .service-chat-col {
  margin-left: auto;
  margin-right: 3rem;
}

/* Bubbles need backdrop for readability on video */
.service-split .chat-bubble.ai {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  will-change: backdrop-filter;
}

.service-split .feature-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.service-split .steps-container {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.service-split .comparison-table {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.service-split .impact-list {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* Service inner for non-split sections */
.service-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.service-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent-blue);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--color-accent-blue);
}

.service-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.service-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 700px;
}

.service-concept {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent-blue);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.service-concept h3 {
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.service-concept p {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
}

/* 吹き出し内のimpact-listの余白 */
.chat-bubble .impact-list {
  margin-bottom: 0;
}

/* 吹き出し内のcomparison-tableの余白 */
.chat-bubble .comparison-table {
  margin-bottom: 0;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-blue));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-accent-blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.feature-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Before/After Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent-blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-bg-secondary);
}

.comparison-table td {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.comparison-table td:first-child {
  color: var(--color-text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.comparison-table .before {
  color: var(--color-text-muted);
}

.comparison-table .after {
  color: var(--color-accent-blue);
  font-weight: 500;
}

/* Steps */
.steps-container {
  display: flex;
  gap: 0;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.step-item {
  flex: 1;
  min-width: 200px;
  padding: 1.5rem;
  position: relative;
  text-align: center;
}

.step-item::after {
  content: '→';
  position: absolute;
  right: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent-blue);
  font-size: 1.5rem;
}

.step-item:last-child::after {
  display: none;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--color-accent-blue);
  opacity: 0.2;
  margin-bottom: 0.5rem;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.step-desc {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* Impact List */
.impact-list {
  list-style: none;
  margin-bottom: 1.25rem;
}

.impact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: nowrap;
}

.impact-list li::before {
  content: '▹';
  color: var(--color-accent-blue);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.impact-list strong {
  color: var(--color-text-primary);
  white-space: nowrap;
}

/* CTA */
.service-cta {
  text-align: center;
  padding: 1.25rem 0;
}

.service-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

.service-cta .text-matrix {
  color: var(--color-accent-blue);
}

.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-blue));
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
  color: #ffffff;
}

/* ============================================
   News / Blog Section
   ============================================ */
.news-section {
  padding: 6rem 2rem;
  background-color: var(--color-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.section-header .section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent-blue);
  letter-spacing: 0.2em;
}

.news-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.news-card-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-body {
  padding: 1.5rem;
}

.news-card-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent-blue);
  margin-bottom: 0.5rem;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.news-card-title a {
  color: var(--color-text-primary);
}

.news-card-title a:hover {
  color: var(--color-accent-blue);
}

.news-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.news-more {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================
   Case Study Section (Front Page)
   ============================================ */
.casestudy-section {
  padding: 6rem 2rem;
  background: var(--color-bg);
}

.casestudy-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

/* ============================================
   Case Study LP Styles
   ============================================ */
.lp-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-blue) 100%);
  padding: 120px 2rem 6rem;
  text-align: center;
  overflow: hidden;
}

.lp-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.lp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.lp-hero-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.lp-hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.lp-hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.lp-hero-cta {
  display: inline-block;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.lp-hero-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: #ffffff;
}

/* LP Sections */
.lp-section {
  padding: 6rem 2rem;
  background: var(--color-bg);
}

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

.lp-section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* LP Pricing */
.lp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.lp-pricing-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.lp-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.lp-pricing-recommended {
  border-color: var(--color-accent-blue);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
}

.lp-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-blue));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1.25rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.lp-pricing-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-accent-blue);
  margin-bottom: 0.5rem;
}

.lp-pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.lp-pricing-price {
  font-size: 1.1rem;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.lp-pricing-price strong {
  font-size: 1.75rem;
  color: var(--color-accent-blue);
}

.lp-pricing-init {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.lp-pricing-card ul {
  list-style: none;
  margin-bottom: 1.25rem;
}

.lp-pricing-card ul li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.lp-pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent-blue);
  font-weight: 700;
}

.lp-pricing-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.lp-pricing-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2rem;
  line-height: 1.8;
}

/* LP CTA Section */
.lp-cta-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-blue) 100%);
  text-align: center;
}

.lp-cta-title {
  font-size: 2rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.lp-cta-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.lp-cta-buttons .btn-cta {
  background: #ffffff;
  color: var(--color-accent);
  font-size: 1.1rem;
  padding: 1rem 3rem;
}

.lp-cta-buttons .btn-cta:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.lp-cta-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1.5rem;
}

/* ============================================
   LP Presentation Slider
   ============================================ */
.lp-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-card);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.lp-slider-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.lp-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lp-slide.active {
  opacity: 1;
}

.lp-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lp-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lp-slider-prev {
  left: 12px;
}

.lp-slider-next {
  right: 12px;
}

.lp-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.lp-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.lp-slider-dot.active {
  background: var(--color-accent-blue);
  transform: scale(1.3);
}

.lp-slider-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  z-index: 2;
}

/* ============================================
   Member Profile Page
   ============================================ */
.member-hero {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-blue) 100%);
  padding: 140px 2rem 5rem;
  text-align: center;
  position: relative;
}

.member-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.member-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.member-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.3);
  object-fit: cover;
  margin: 0 auto 1.5rem;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.member-name {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.member-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.member-section {
  padding: 5rem 2rem;
  background: var(--color-bg);
}

.member-inner {
  max-width: 800px;
  margin: 0 auto;
}

.member-bio {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2.5rem;
  line-height: 1.9;
}

.member-bio p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

.member-bio p:last-child {
  margin-bottom: 0;
}

/* Skills */
.member-skills {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.member-skill-group h4 {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--color-accent-blue);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.member-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.member-skill-tag {
  display: inline-block;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  transition: all 0.2s;
}

.member-skill-tag:hover {
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
}

/* Links */
.member-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.member-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all 0.3s;
}

.member-link-card:hover {
  border-color: var(--color-accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  color: var(--color-accent-blue);
}

.member-link-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.member-link-label {
  flex: 1;
  font-weight: 600;
  font-size: 1rem;
}

.member-link-arrow {
  color: var(--color-text-muted);
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.member-link-card:hover .member-link-arrow {
  transform: translateX(4px);
  color: var(--color-accent-blue);
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #ffffff;
}

/* ============================================
   Company Section
   ============================================ */
.company-section {
  padding: 6rem 2rem;
  background-color: var(--color-bg-secondary);
}

.company-table {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.company-table tr {
  border-bottom: 1px solid var(--color-border);
}

.company-table th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-accent-blue);
  width: 30%;
  vertical-align: top;
  font-weight: 400;
}

.company-table td {
  padding: 1.25rem 1.5rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
  padding: 6rem 2rem;
  background-color: var(--color-bg);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232563eb' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-submit {
  text-align: center;
  margin-top: 2rem;
}

/* ============================================
   Fixed Chat Panel (above input bar)
   ============================================ */
.fixed-chat-panel {
  position: fixed;
  bottom: 110px;
  left: 0;
  right: 0;
  z-index: 998;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  display: none;
}

.fixed-chat-panel.visible {
  display: block;
}

.fixed-chat-panel.expanded {
  max-height: 50vh;
}

.fixed-chat-close {
  display: block;
  margin: 0 auto 0.5rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.35rem 1.5rem;
  border-radius: 20px;
  transition: all 0.3s;
  max-width: 800px;
}

.fixed-chat-close:hover {
  background: var(--color-border);
  color: var(--color-text-primary);
}

.fixed-chat-panel.collapsed {
  max-height: 0 !important;
  overflow: hidden;
}

.fixed-chat-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.fixed-chat-toggle:hover {
  transform: scale(1.1);
}

.fixed-chat-toggle.has-messages {
  animation: togglePulse 2s ease-in-out infinite;
}

@keyframes togglePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.fixed-chat-messages {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  overflow-y: auto;
  max-height: 50vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-radius: 16px 16px 0 0;
}

.fixed-chat-messages .chat-msg {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 85%;
}

.fixed-chat-messages .chat-msg.user {
  background: var(--color-accent);
  color: #ffffff;
  margin-left: auto;
  border-radius: 14px 14px 4px 14px;
}

.fixed-chat-messages .chat-msg.bot {
  background: #f0f2f5;
  color: var(--color-text-primary);
  margin-right: auto;
  border-radius: 14px 14px 14px 4px;
}

.fixed-chat-messages .chat-msg.bot.typing {
  color: var(--color-text-muted);
}

/* ============================================
   Fixed Input Bar (Bottom of screen)
   ============================================ */
.fixed-input-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 1.5rem;
  display: none;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
}

.fixed-input-bar.visible {
  display: block;
}

.fixed-input-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.fixed-input-bar textarea {
  flex: 1;
  background: #f5f6f8;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 0.6rem 1.25rem;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  resize: none;
  line-height: 1.5;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.fixed-input-bar textarea:focus {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #ffffff;
}

.fixed-input-bar textarea::placeholder {
  color: var(--color-text-muted);
}

.fixed-input-bar button {
  background: var(--color-accent);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.fixed-input-bar button:hover {
  background: var(--color-accent-blue);
}

.fixed-input-bar button:active {
  transform: scale(0.95);
}

/* Body padding to not hide content behind input bar */
body.has-input-bar {
  padding-bottom: 110px;
}

/* ============================================
   Chat Bubble Styles (Service sections)
   ============================================ */
.chat-bubble {
  max-width: 85%;
  padding: 1.5rem 1.75rem;
  border-radius: 18px 18px 18px 4px;
  margin-bottom: 1.5rem;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}

.chat-bubble.ai {
  background: #f0f2f5;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  margin-right: auto;
}

.chat-bubble.ai-accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-blue));
  color: #ffffff;
  border: none;
  margin-right: auto;
}

.chat-bubble.ai-accent .chat-bubble-label {
  color: rgba(255, 255, 255, 0.7);
}

.chat-bubble.ai-accent h3,
.chat-bubble.ai-accent h4 {
  color: #ffffff;
}

.chat-bubble.ai-accent p {
  color: rgba(255, 255, 255, 0.9);
}

.chat-bubble-sender {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-accent-blue);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chat-bubble-sender::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-accent-blue);
  border-radius: 50%;
}

.chat-bubble h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.chat-bubble h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.chat-bubble p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.chat-bubble .text-gradient {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typing indicator animation */
.chat-typing {
  display: inline-flex;
  gap: 4px;
  padding: 0.75rem 1.25rem;
  background: #f0f2f5;
  border-radius: 18px;
  margin-bottom: 1rem;
  opacity: 0;
}

.chat-typing.visible {
  opacity: 1;
}

.chat-typing-dot {
  width: 8px;
  height: 8px;
  background: var(--color-text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.chat-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  background-color: var(--color-accent);
  color: #ffffff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Blog Archive
   ============================================ */
.archive-header {
  padding: 8rem 2rem 3rem;
  text-align: center;
  background: var(--color-bg-secondary);
}

.archive-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.archive-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: all 0.3s;
}

.pagination a:hover {
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
}

.pagination .current {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

/* ============================================
   Blog Single
   ============================================ */
.single-header {
  padding: 8rem 2rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.single-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent-blue);
  margin-bottom: 1rem;
}

.single-title {
  font-size: 2rem;
  line-height: 1.4;
  color: var(--color-text-primary);
}

.single-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.single-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
}

.single-content h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--color-accent);
}

.single-content p {
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.single-content ul,
.single-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--color-text-secondary);
}

.single-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.single-content blockquote {
  border-left: 3px solid var(--color-accent-blue);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--color-bg-secondary);
  border-radius: 0 8px 8px 0;
}

.single-content code {
  font-family: var(--font-mono);
  background: var(--color-bg-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--color-accent-blue);
}

.single-content pre {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.single-content pre code {
  background: none;
  padding: 0;
}

.single-content img {
  border-radius: 8px;
  margin: 1.5rem 0;
}

.post-navigation {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
}

.post-navigation a {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.post-navigation a:hover {
  color: var(--color-accent-blue);
}

/* ============================================
   404 Page
   ============================================ */
.error-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-404 h1 {
  font-family: var(--font-mono);
  font-size: 8rem;
  color: var(--color-accent-blue);
  opacity: 0.15;
  line-height: 1;
}

.error-404 p {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin: 1rem 0 2rem;
}

/* ============================================
   Scroll Animations (GSAP targets)
   ============================================ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.anim-fade-left {
  opacity: 0;
  transform: translateX(-40px);
}

.anim-fade-right {
  opacity: 0;
  transform: translateX(40px);
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet: full background video, narrower chat column */
@media (min-width: 769px) and (max-width: 1024px) {
  .service-chat-col {
    max-width: 600px;
    padding: 4rem 2rem 3rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    border-left: 1px solid var(--color-border);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav a {
    font-size: 1.125rem;
    color: var(--color-text-primary);
  }

  .main-nav a::after {
    background: var(--color-accent-blue);
  }

  /* Mobile: accordion style dropdown */
  .nav-dropdown {
    width: 100%;
  }

  .main-nav a,
  .nav-dropdown-toggle {
    text-align: center;
  }

  .nav-dropdown-toggle {
    color: var(--color-text-primary);
    font-size: 1.125rem;
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    margin-top: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
    max-height: 300px;
  }

  .nav-dropdown-menu a {
    padding: 0.5rem 1rem 0.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    border-left: 2px solid var(--color-border);
  }

  .nav-dropdown-menu a:hover {
    background: transparent;
    border-left-color: var(--color-accent-blue);
  }

  .hero-question {
    font-size: 1.25rem;
  }

  .header-audio-toggle {
    order: -1;
    margin-right: 0.5rem;
    margin-left: 0;
  }

  .hero-chat-input-wrapper {
    max-width: 100%;
    overflow: hidden;
  }

  .hero-chat-input {
    font-size: 16px !important;
    min-width: 0;
  }

  .hero-content {
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .hero-suggestions {
    flex-direction: column;
    align-items: center;
  }

  /* Mobile: hide video background, show as separate fixed banner */
  .service-section {
    overflow: visible !important;
  }

  /* Hide the grid-overlaid video on mobile */
  .service-video-col {
    display: none !important;
  }

  .service-chat-col {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 2rem 1.25rem 4rem !important;
  }

  .service-split .chat-bubble.ai,
  .service-split .feature-card,
  .service-split .steps-container,
  .service-split .impact-list {
    backdrop-filter: none;
    background: #f0f2f5;
  }

  .service-split .feature-card {
    background: #ffffff;
  }

  /* Mobile video banner: inserted via JS as fixed element */
  .mobile-video-banner {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: 180px;
    z-index: 50;
    display: none;
    overflow: hidden;
  }

  .mobile-video-banner.visible {
    display: block;
  }

  .mobile-video-banner .video-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .mobile-video-banner .video-placeholder::before {
    display: none;
  }

  .mobile-video-banner .video-placeholder::after {
    display: none;
  }

  .mobile-video-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Push chat content below fixed banner */
  .service-section.mobile-has-banner .service-chat-col {
    padding-top: 200px !important;
  }

  .service-section {
    padding: 0;
  }

  .service-title {
    font-size: 1.75rem;
  }

  .feature-grid {
    grid-template-columns: 1fr !important;
  }

  .steps-container {
    flex-direction: column;
  }

  .step-item::after {
    content: '↓';
    right: auto;
    bottom: -0.5rem;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .company-table th {
    padding-bottom: 0.25rem;
    border-bottom: none;
  }

  .fixed-input-bar {
    padding: 0.5rem 1rem;
  }

  .fixed-input-bar {
    max-width: 100vw;
    overflow: hidden;
  }

  .fixed-input-bar textarea {
    padding: 0.5rem 1rem;
    font-size: 16px;
    max-width: 100%;
    min-width: 0;
  }

  .chat-bubble {
    max-width: 92%;
    padding: 1rem 1.25rem;
  }

  .chat-bubble h3 {
    font-size: 1.25rem;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
  }

  /* Case Study Grid */
  .casestudy-section {
    padding: 4rem 1.25rem;
  }

  .casestudy-grid {
    grid-template-columns: 1fr;
  }

  /* LP Responsive */
  .lp-hero {
    min-height: 60vh;
    padding: 100px 1.25rem 4rem;
  }

  .lp-hero-title {
    font-size: 1.8rem;
  }

  .lp-hero-subtitle {
    font-size: 1rem;
  }

  .lp-section {
    padding: 4rem 1.25rem;
  }

  .lp-pricing-grid {
    grid-template-columns: 1fr;
  }

  .lp-cta-section {
    padding: 4rem 1.25rem;
  }

  .lp-cta-title {
    font-size: 1.5rem;
  }

  .lp-cta-buttons .btn-cta {
    font-size: 1rem;
    padding: 0.875rem 2rem;
  }

  /* Member Profile */
  .member-hero {
    padding: 110px 1.25rem 3rem;
  }

  .member-name {
    font-size: 1.6rem;
  }

  .member-avatar {
    width: 100px;
    height: 100px;
  }

  .member-section {
    padding: 3rem 1.25rem;
  }

  .member-bio {
    padding: 1.5rem;
  }

  /* LP Slider */
  .lp-slider-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .lp-slider-prev { left: 6px; }
  .lp-slider-next { right: 6px; }
}

@media (max-width: 480px) {
  .hero-question {
    font-size: 1rem;
  }

  .service-title {
    font-size: 1.5rem;
  }

  .single-title {
    font-size: 1.5rem;
  }

  .error-404 h1 {
    font-size: 5rem;
  }
}
