/* ============================================================
   整体院 導 AI Systems — 統合LPサイト 共通デザインシステム
   ============================================================ */

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

/* ---------- CSS Variables ---------- */
:root {
  /* Background */
  --bg-primary: #060b14;
  --bg-secondary: #0d1520;
  --bg-card: #111a28;
  --bg-card-hover: #182438;

  /* Text — 高コントラスト設定 */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.82);
  --text-muted: rgba(255, 255, 255, 0.6);

  /* Brand Colors */
  --color-admu: #d4b88a;
  --color-logiction: #5b9cf6;
  --color-shiseviz: #2ad4ff;
  --color-purple: #9b8ef8;
  --color-emerald: #34d399;
  --color-line: #06C755;
  --color-danger: #ef4444;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #d4b88a, #5b9cf6, #2ad4ff);
  --gradient-admu: linear-gradient(135deg, #d4b88a, #b89a6a);
  --gradient-logiction: linear-gradient(135deg, #5b9cf6, #3b7ce6);
  --gradient-shiseviz: linear-gradient(135deg, #2ad4ff, #9b8ef8);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.2);

  /* Typography */
  --font-en: 'Outfit', sans-serif;
  --font-jp: 'Noto Sans JP', 'Outfit', sans-serif;

  /* Spacing */
  --section-padding: clamp(60px, 10vw, 120px) 0;
  --container-width: 1140px;
  --container-padding: 0 clamp(16px, 4vw, 40px);

  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Header */
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-jp);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  font-size: clamp(14px, 1.6vw, 16px);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}

ul, ol { list-style: none; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ---------- Section ---------- */
.section {
  padding: var(--section-padding);
}

.section-label {
  font-family: var(--font-en);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-jp);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.8;
}

.section-center {
  text-align: center;
}

.section-center .section-subtitle {
  margin: 0 auto;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(6, 11, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-base);
}

.site-header.scrolled {
  background: rgba(6, 11, 20, 0.96);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

.site-logo span {
  font-weight: 400;
  font-size: 11px;
  display: block;
  background: none;
  -webkit-text-fill-color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-top: -2px;
}

/* Desktop Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--transition-base);
  border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--bg-primary) !important;
  background: var(--gradient-brand);
  padding: 8px 20px !important;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .hamburger { display: none; }

  .site-header {
    height: auto;
    flex-direction: column;
  }

  .header-inner {
    height: 48px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 0;
    border-top: 1px solid var(--border-subtle);
    padding: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar { display: none; }

  .nav-links a {
    font-size: 12px;
    white-space: nowrap;
    padding: 10px 14px;
    flex-shrink: 0;
  }

  .nav-links a::after { display: none; }

  .nav-links a.active {
    border-bottom: 2px solid;
    border-image: var(--gradient-brand) 1;
  }

  .nav-cta {
    padding: 10px 14px !important;
    border-radius: 0 !important;
    font-size: 12px !important;
  }
}


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  color: var(--bg-primary);
  background: var(--gradient-brand);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: rgba(241, 245, 249, 0.05);
  border-color: rgba(241, 245, 249, 0.3);
}

.btn-line {
  color: #fff;
  background: var(--color-line);
}
.btn-line:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 199, 85, 0.3);
}

.btn-admu { background: var(--gradient-admu); color: #000; }
.btn-logiction { background: var(--gradient-logiction); color: #fff; }
.btn-shiseviz { background: var(--gradient-shiseviz); color: #000; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 32px);
  transition: var(--transition-base);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.tag-admu { background: rgba(200, 169, 122, 0.15); color: var(--color-admu); }
.tag-logiction { background: rgba(59, 130, 246, 0.15); color: var(--color-logiction); }
.tag-shiseviz { background: rgba(0, 200, 255, 0.15); color: var(--color-shiseviz); }
.tag-seo { background: rgba(16, 185, 129, 0.15); color: var(--color-emerald); }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  background: rgba(241, 245, 249, 0.04);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* ---------- Grid ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 3vw, 32px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 32px);
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Fade-up Animation ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-admu {
  background: var(--gradient-admu);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-logiction {
  background: var(--gradient-logiction);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-shiseviz {
  background: var(--gradient-shiseviz);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
  text-align: center;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.footer-brand {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(6, 11, 20, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta .btn {
  font-size: 13px;
  padding: 10px 24px;
}

/* ---------- Divider ---------- */
.section-divider {
  height: 1px;
  background: var(--border-subtle);
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: calc(var(--header-height) + 24px) 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
}
.breadcrumb a:hover {
  color: var(--text-primary);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-muted);
}
