/* ===== 株式会社フローテン 共通デザインシステム ===== */

/* Google Fonts インポート */
/* Google Fonts: loaded via link in HTML */

:root {
  /* 高発色カラーパレット */
  --bg-dark: #070913;
  --bg-card: rgba(18, 24, 43, 0.75);
  --bg-card-hover: rgba(28, 37, 65, 0.85);
  --bg-surface: #0f1526;
  
  --accent-primary: #6366f1;
  --accent-secondary: #06b6d4;
  --accent-violet: #8b5cf6;
  --accent-pink: #ec4899;
  
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);
  --grad-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
  --grad-fx: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
  --grad-text: linear-gradient(135deg, #ffffff 40%, #93c5fd 100%);
  
  --text-main: #f1f5f9;
  --text-muted: #b8c4d4;
  --text-subtle: #8899aa;
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(99, 102, 241, 0.4);
  
  --max-width: 1100px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  /* 3D 深度シャドウ */
  --shadow-3d: 0 16px 40px -10px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.08),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
  --shadow-3d-hover: 0 24px 50px -12px rgba(99, 102, 241, 0.35),
                    0 0 0 1px rgba(99, 102, 241, 0.5),
                    inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
  --shadow-fx: 0 20px 45px -10px rgba(16, 185, 129, 0.35),
               0 0 0 1px rgba(16, 185, 129, 0.5);
}

/* 基本リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* 背景アンビエント発光グラデーション */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  right: -100px;
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

/* === ナビゲーション (ガラスモルフィズム & 3D) === */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding: 14px 28px;
  background: rgba(15, 21, 38, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.logo a {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-badge {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.nav-links .nav-fx-btn {
  padding: 7px 16px;
  background: var(--grad-fx);
  color: #ffffff;
  border-radius: 20px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.nav-links .nav-fx-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* ボタン共通 */
.btn-primary {
  padding: 14px 32px;
  background: var(--grad-primary);
  color: #ffffff;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 35px rgba(99, 102, 241, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-secondary {
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.btn-fx {
  padding: 14px 32px;
  background: var(--grad-fx);
  color: #ffffff;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-fx);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-fx:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.5);
}

/* フッター */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: rgba(10, 14, 26, 0.95);
  margin-top: 80px;
  position: relative;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 28px 40px;
  display: grid;
  grid-template-columns: 1.1fr 2.7fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.footer-nav-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-nav-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: all 0.2s;
}

.footer-nav-col a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-subtle);
}

/* レスポンシブ */
@media (max-width: 860px) {
  nav {
    margin: 10px 16px;
    padding: 12px 20px;
  }
  .nav-links {
    display: none;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Accessibility: link visual indicators */
.nav-links a { position: relative; text-decoration: none; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  border-radius: 1px;
}
.nav-links a:hover::after,
.nav-links a:focus::after { transform: scaleX(1); }
.footer-nav-col a:hover,
.footer-nav-col a:focus { text-decoration: underline; text-underline-offset: 3px; }

/* Focus ring for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 3px;
  border-radius: 3px;
}

/* Screen-reader only */
.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;
}
