/**
 * public/css/preview-home-v3.css
 * AiMO AIビルメンテナンス業務アシスタント — V3 プレビュー専用スタイルシート
 *
 * - ディープネイビー背景 + シアンネオンライティング
 * - 高級感のあるグラスモフィズム (backdrop-filter)
 * - 日本語タイポグラフィ最適化 (Noto Sans JP / Hiragino)
 * - PC優先レスポンシブデザイン
 * - クリーン2DイラストとHTML/CSS鮮明タグオーバーレイの完全同期
 */

@charset "UTF-8";

/* 1. CSS変数定義 (Color Palette & Tokens) */
:root {
  --bg-deep: #050e26;
  --bg-darker: #020716;
  --bg-card: rgba(8, 22, 52, 0.72);
  --bg-card-hover: rgba(12, 32, 75, 0.85);
  
  --neon-cyan: #00f0ff;
  --neon-cyan-hover: #38f6ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.35);
  --neon-cyan-soft: rgba(0, 240, 255, 0.15);
  --neon-blue: #0080ff;
  --neon-purple: #7928ca;

  --text-primary: #ffffff;
  --text-secondary: #c0d1eb;
  --text-muted: #8aa0c4;
  --text-cyan: #38f6ff;
  --text-dark: #0b1f3d;

  --glass-border: rgba(0, 240, 255, 0.22);
  --glass-border-strong: rgba(0, 240, 255, 0.6);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --neon-box-glow: 0 0 20px rgba(0, 240, 255, 0.3);

  --font-base: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Segoe UI', Roboto, sans-serif;
  --font-mono: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
}

/* 2. リセット & ベーススタイル */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-base);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* 3. 固定グラスヘッダー (Sticky Glass Header) */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 14, 38, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(3, 9, 26, 0.95);
  border-bottom-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 4px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  border-radius: 8px;
  box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.brand-bar {
  width: 4px;
  background: var(--neon-cyan);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--neon-cyan);
}
.brand-bar.b1 { height: 12px; }
.brand-bar.b2 { height: 20px; }
.brand-bar.b3 { height: 16px; }

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ffffff 40%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan-glow);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  border-radius: 2px;
}

.header-cta-btn {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(0, 128, 255, 0.4) 100%);
  border: 1px solid var(--neon-cyan);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px var(--neon-cyan-soft);
}

.header-cta-btn:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.35) 0%, rgba(0, 128, 255, 0.6) 100%);
  box-shadow: 0 0 20px var(--neon-cyan-glow);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 1.3rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.mobile-nav-drawer {
  display: none;
}

/* 4. メインヒーローセクション (Hero Section) */
.hero-section {
  position: relative;
  padding: 50px 0 70px;
  background: radial-gradient(circle at 75% 30%, rgba(0, 240, 255, 0.08) 0%, transparent 60%),
              linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-darker) 100%);
  overflow: hidden;
}

.hero-backdrop-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(2, 7, 22, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 0.95fr 1.45fr;
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 2;
}

/* 左側カラム: タイポグラフィ & アクション */
.hero-left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--neon-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  width: fit-content;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 240, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.hero-main-title {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

.highlight-ai {
  color: var(--neon-cyan);
  background: linear-gradient(135deg, #ffffff 10%, var(--neon-cyan) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-right: 4px;
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-cyan);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.hero-body-text {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-primary-glow {
  background: linear-gradient(135deg, #00f0ff 0%, #0080ff 100%);
  border: none;
  color: #03102b;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary-glow:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.75), 0 8px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #38f6ff 0%, #1a90ff 100%);
}

.btn-secondary-glass {
  background: rgba(8, 24, 60, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.btn-secondary-glass:hover {
  background: rgba(12, 36, 85, 0.85);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px var(--neon-cyan-soft);
  transform: translateY(-2px);
}

.hero-notice-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.home-error-banner {
  background: rgba(255, 60, 60, 0.15);
  border: 1px solid rgba(255, 80, 80, 0.5);
  color: #ff9999;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
}

/* 右側カラム: クリーン 2D イラスト + 画像外カテゴリ説明バー (Right Column) */
.hero-right-column {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 820px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(4, 12, 32, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 240, 255, 0.2);
}

.hero-illustration-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* 5. 建物対象カテゴリ説明バー (画像外HTML配置: STEP 10-J) */
.hero-bldg-legend-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  width: 100%;
  max-width: 820px;
  padding: 12px 24px;
  background: rgba(4, 12, 32, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 240, 255, 0.1);
}

.bldg-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  display: inline-block;
  flex-shrink: 0;
}

.legend-title {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.legend-desc {
  color: var(--neon-cyan);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  opacity: 0.95;
}

.legend-sep {
  color: rgba(0, 240, 255, 0.3);
  font-size: 0.85rem;
  user-select: none;
}

/* 従来の画像上オーバーレイは非表示化 (STEP 10-J: 新規画像に統合済み) */
.tag-overlay,
.bubble-overlay {
  display: none !important;
}

/* 6. セクション共通レイアウト (Section Wrappers) */
.section-wrapper {
  max-width: 1360px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px;
}

.section-pretitle {
  color: var(--neon-cyan);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  word-break: keep-all;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.0rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 7. 主要機能セクション (CORE FEATURES: 5 Cards Grid) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px 24px;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.15);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.badge-verified {
  background: rgba(0, 200, 120, 0.2);
  border: 1px solid rgba(0, 200, 120, 0.5);
  color: #4ef0a0;
}
.badge-ai {
  background: rgba(0, 240, 255, 0.2);
  border: 1px solid rgba(0, 240, 255, 0.6);
  color: #38f6ff;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}

.dev-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 8px;
}

/* 8. 業務フローセクション (WORKFLOW: 4 Steps) */
.workflow-section {
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-deep) 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  position: relative;
}

.workflow-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 24px 20px;
  position: relative;
  transition: all 0.25s ease;
}

.workflow-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px var(--neon-cyan-soft);
  transform: translateY(-2px);
}

.workflow-step-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--neon-cyan);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}

.workflow-step-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.workflow-step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* 9. 導入メリットセクション (WHY AiMO: 4 Merits) */
.merits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.merit-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.merit-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.merit-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.merit-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.merit-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.merit-desc {
  font-size: 0.90rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 10. デモ体験コールアウト (Demo CTA Section) */
.cta-banner-wrapper {
  background: linear-gradient(135deg, rgba(8, 26, 68, 0.85) 0%, rgba(2, 10, 30, 0.95) 100%);
  border: 1px solid var(--neon-cyan);
  border-radius: 24px;
  padding: 60px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 240, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.cta-banner-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
}

.cta-banner-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}

/* 11. フッター (Site Footer) */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 380px;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--neon-cyan);
}

.footer-info-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.80rem;
  color: var(--text-muted);
}

/* 12. トースト通知スタイル */
.v3-preview-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(5, 18, 44, 0.95);
  border: 1px solid var(--neon-cyan);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.90rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px var(--neon-cyan-glow);
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.v3-preview-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* 13. レスポンシブ対応 (Responsive Adjustments) */
@media (max-width: 1100px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-left-column {
    text-align: center;
    align-items: center;
  }
  .hero-cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .nav-menu, .header-cta-btn {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .mobile-nav-drawer {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(3, 9, 26, 0.98);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 24px;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  .mobile-nav-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 8px 0;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  #workflow .section-title {
    word-break: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  .mobile-menu-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

