/* ================================================================
   ExHub – common.css
   全ページ共通スタイル
   ================================================================ */

/* ============================================================
   CSS Custom Properties
============================================================ */
:root {
  /* Brand */
  --color-primary:    #2563EB;
  --color-accent:     #0EA5E9;
  --color-gradient:   linear-gradient(135deg, #0EA5E9 0%, #2563EB 100%);
  --color-shadow:     rgba(37, 99, 235, 0.22);

  /* Semantic */
  --color-white:       #FFFFFF;
  --color-bg:          #F8FAFC;
  --color-text:        #1E293B;
  --color-text-light:  #64748B;
  --border-radius:     12px;
  --shadow:            0 4px 24px rgba(0,0,0,0.08);
  --max-width:         1200px;

  /* Gray scale */
  --gray-50:   #F9FAFB;
  --gray-100:  #F3F4F6;
  --gray-200:  #E5E7EB;
  --gray-300:  #D1D5DB;
  --gray-400:  #9CA3AF;
  --gray-500:  #6B7280;
  --gray-600:  #4B5563;
  --gray-700:  #374151;
  --gray-800:  #1F2937;
  --gray-900:  #111827;

  /* LP legacy aliases */
  --accent-start:    #0EA5E9;
  --accent-end:      #2563EB;
  --accent-gradient: var(--color-gradient);
  --accent-shadow:   var(--color-shadow);
  --white:           #FFFFFF;
  --radius-card:     12px;
  --radius-btn:      8px;
  --max-w:           1200px;
}

/* ============================================================
   Reset & Base
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Hiragino Kaku Gothic ProN', 'YuGothic', sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

/* ============================================================
   Utilities
============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Scroll fade-in */
.fi {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fi.on  { opacity: 1; transform: translateY(0); }
.fi-d1  { transition-delay: 0.08s; }
.fi-d2  { transition-delay: 0.16s; }
.fi-d3  { transition-delay: 0.24s; }
.fi-d4  { transition-delay: 0.32s; }
.fi-d5  { transition-delay: 0.40s; }
.fi-d6  { transition-delay: 0.48s; }

/* ============================================================
   Navigation
============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 900;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo svg { flex-shrink: 0; -webkit-text-fill-color: initial; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
  padding: 4px 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gray-900); }
.nav-links a.active  { font-weight: 700; }

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Hamburger button */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
  transform-origin: center;
}
.nav-burger.is-active span:nth-child(1) { transform: translateY(7px)  rotate(45deg);  }
.nav-burger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0);           }
.nav-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Buttons
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.3;
}
.btn-primary {
  background: var(--color-gradient);
  color: white;
  box-shadow: 0 2px 10px var(--color-shadow);
}
.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-shadow);
}
.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
}
.btn-outline:hover { border-color: var(--gray-500); color: var(--gray-900); }
.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}
.btn-ghost:hover  { color: var(--gray-900); background: var(--gray-50); }
.btn-ghost-white  {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.22); }
.btn-white {
  background: white;
  color: var(--gray-900);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.btn-white:hover  { filter: brightness(0.96); }
.btn-lg           { padding: 14px 28px; font-size: 16px; border-radius: 10px; }

/* ============================================================
   Section Commons
============================================================ */
.section     { padding: 96px 0; }
.section-alt { background: var(--color-bg); }

.sec-head  { text-align: center; margin-bottom: 60px; }
.sec-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.sec-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.sec-sub {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 580px;
  margin: 0 auto;
}

/* ============================================================
   Card
============================================================ */
.card {
  background: white;
  border-radius: var(--border-radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: transform 0.22s, box-shadow 0.22s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.10);
}

/* AI badge */
.ai-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 100px;
  background: var(--color-gradient);
  color: white;
  letter-spacing: 0.06em;
  vertical-align: middle;
  margin-left: 6px;
  line-height: 1.4;
}

/* ============================================================
   Footer
============================================================ */
.footer {
  background: var(--gray-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 56px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer-brand { max-width: 260px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 900;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.footer-logo svg   { flex-shrink: 0; -webkit-text-fill-color: initial; }
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
}
.footer-cols       { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.38);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.28);
  transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.25); }

/* ============================================================
   Comparison Table Highlight Animation (LP shared)
============================================================ */
.tbl-wrap.tbl-lit .cmp th.c-ex { animation: exColPop 0.7s cubic-bezier(0.34,1.56,0.64,1) both; }
.tbl-wrap.tbl-lit .cmp td.c-ex { animation: exCellFade 0.5s ease both; }
.tbl-wrap.tbl-lit .cmp tbody tr:nth-child(1)  td.c-ex { animation-delay: 0.05s; }
.tbl-wrap.tbl-lit .cmp tbody tr:nth-child(2)  td.c-ex { animation-delay: 0.10s; }
.tbl-wrap.tbl-lit .cmp tbody tr:nth-child(3)  td.c-ex { animation-delay: 0.15s; }
.tbl-wrap.tbl-lit .cmp tbody tr:nth-child(4)  td.c-ex { animation-delay: 0.20s; }
.tbl-wrap.tbl-lit .cmp tbody tr:nth-child(5)  td.c-ex { animation-delay: 0.25s; }
.tbl-wrap.tbl-lit .cmp tbody tr:nth-child(6)  td.c-ex { animation-delay: 0.30s; }
.tbl-wrap.tbl-lit .cmp tbody tr:nth-child(7)  td.c-ex { animation-delay: 0.35s; }
.tbl-wrap.tbl-lit .cmp tbody tr:nth-child(8)  td.c-ex { animation-delay: 0.40s; }
.tbl-wrap.tbl-lit .cmp tbody tr:nth-child(9)  td.c-ex { animation-delay: 0.45s; }
.tbl-wrap.tbl-lit .cmp tbody tr:nth-child(10) td.c-ex { animation-delay: 0.50s; }
.tbl-wrap.tbl-lit .cmp tbody tr:nth-child(11) td.c-ex { animation-delay: 0.55s; }
@keyframes exColPop {
  0%   { box-shadow: inset 0 0 0 0 rgba(37,99,235,0); }
  55%  { box-shadow: inset 0 0 0 3px rgba(37,99,235,0.40); }
  100% { box-shadow: inset 0 0 0 0 rgba(37,99,235,0); }
}
@keyframes exCellFade {
  0%   { background: linear-gradient(135deg,rgba(14,165,233,0.24) 0%,rgba(37,99,235,0.24) 100%); }
  100% { background: linear-gradient(135deg,rgba(14,165,233,0.06) 0%,rgba(37,99,235,0.06) 100%); }
}

/* ============================================================
   FAQ Accordion (pricing page)
============================================================ */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--color-primary); }
.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: transform 0.3s ease, background 0.2s;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--color-gradient); color: white; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a-inner {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
}

/* ============================================================
   Responsive: Mobile Navigation Drawer
============================================================ */
@media (max-width: 900px) {
  .nav-burger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0; right: 0; bottom: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 24px 40px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 199;
    border-top: 1px solid var(--gray-100);
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
  }
  .nav-menu.is-open { transform: translateX(0); }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-bottom: 24px;
  }
  .nav-links li { border-bottom: 1px solid var(--gray-100); }
  .nav-links a   { display: block; padding: 15px 2px; font-size: 16px; color: var(--gray-800); }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .nav-actions .btn { width: 100%; text-align: center; justify-content: center; }
}

/* ============================================================
   Responsive: Common
============================================================ */
@media (max-width: 768px) {
  .section   { padding: 64px 0; }
  .sec-sub   { font-size: 16px; }
  .footer-top    { flex-direction: column; }
  .footer-cols   { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
