/* ================================================================
   あなたのスマホにコンシェルジュ - 共通デザインシステム
   style.css
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* ────────────────────────────────────────────
   Design Tokens
──────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary:   #fafbff;
  --bg-secondary: #f2f4fb;
  --bg-tertiary:  #e8ecf8;

  /* Text */
  --text-main:    #0d0f18;
  --text-muted:   #5b6275;
  --text-subtle:  #9ba3bb;

  /* Brand */
  --primary:        #6366f1;
  --primary-dark:   #4f52d4;
  --secondary:      #8b5cf6;
  --line-green:     #06c755;
  --line-green-dark:#04a844;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --grad-brand-hover: linear-gradient(135deg, #4f52d4 0%, #7c4de5 100%);
  --grad-hero-glow: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 100%);

  /* Borders */
  --border:       rgba(220, 224, 240, 0.9);
  --border-focus: rgba(99, 102, 241, 0.4);

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(14,20,40,0.04);
  --shadow-sm: 0 2px 8px rgba(14,20,40,0.06);
  --shadow-md: 0 8px 24px rgba(14,20,40,0.08), 0 1px 4px rgba(14,20,40,0.04);
  --shadow-lg: 0 20px 48px rgba(14,20,40,0.10), 0 4px 12px rgba(14,20,40,0.05);
  --shadow-xl: 0 32px 64px rgba(14,20,40,0.12), 0 8px 20px rgba(14,20,40,0.06);

  /* Glass */
  --glass-bg:     rgba(255,255,255,0.78);
  --glass-border: rgba(255,255,255,0.65);

  /* Radius */
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-2xl: 40px;

  /* Glow accents */
  --primary-glow:  rgba(99,102,241,0.15);
  --green-glow:    rgba(6,199,85,0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans JP', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ────────────────────────────────────────────
   Navigation
──────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), var(--shadow-xs);
  transition: background 0.3s;
}

.nav-logo {
  font-weight: 900;
  font-size: 1rem;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.nav-logo img {
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid rgba(99,102,241,0.2);
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-logo:hover img { transform: scale(1.08) rotate(6deg); }

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.nav-logo-title {
  font-weight: 900;
  font-size: 0.92rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}
.nav-logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-cta {
  background: var(--line-green);
  color: #fff;
  border: none;
  padding: 10px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--green-glow);
  letter-spacing: -0.01em;
}
.nav-cta:hover {
  background: var(--line-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px var(--green-glow);
}

/* ────────────────────────────────────────────
   Footer
──────────────────────────────────────────── */
footer {
  background: linear-gradient(180deg, #090c14 0%, #0f1420 50%, #13172b 100%);
  color: #8892aa;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 40px 44px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
}

.footer-brand-title {
  font-weight: 900;
  font-size: 1rem;
  color: #e4e8f5;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.footer-brand-sub {
  font-size: 0.75rem;
  color: #5a6276;
}

.footer-brand-desc {
  color: #5e6880;
  font-size: 0.85rem;
  line-height: 1.85;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e4e8f5;
  margin-bottom: 24px;
}

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

.footer-links a {
  color: #6e7d96;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover {
  color: #a5b4fc;
  transform: translateX(3px);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.18), transparent);
  margin-bottom: 28px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #3e4a5e;
}

.footer-bottom a {
  color: #4e5e7a;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: #818cf8; }

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.14);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.73rem;
  color: #818cf8;
  margin-top: 20px;
}

/* ────────────────────────────────────────────
   Document pages (Privacy, Terms, Tokusho, Contact)
──────────────────────────────────────────── */
.doc-hero {
  padding: 140px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.doc-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: var(--grad-hero-glow);
  pointer-events: none;
}

.doc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.14);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.doc-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.doc-updated {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.doc-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

.doc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 52px 56px;
  box-shadow: var(--shadow-lg);
}

.doc-section h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 40px 0 14px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  border-left: 3px solid var(--primary);
}

.doc-section p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.85;
  font-size: 0.93rem;
}

.doc-section ul,
.doc-section ol {
  color: var(--text-muted);
  margin: 12px 0 18px 24px;
  font-size: 0.93rem;
}

.doc-section li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.doc-section a {
  color: var(--primary);
  text-decoration: none;
}
.doc-section a:hover {
  text-decoration: underline;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.doc-table th,
.doc-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: top;
  line-height: 1.7;
}

.doc-table th {
  width: 30%;
  background: var(--bg-secondary);
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  font-size: 0.85rem;
}

.doc-table td {
  color: var(--text-muted);
}

.doc-table tr:last-child th,
.doc-table tr:last-child td {
  border-bottom: none;
}

.doc-divider {
  height: 1px;
  background: var(--border);
  margin: 44px 0;
}

.doc-note {
  background: #fffbeb;
  border: 1px solid rgba(234,179,8,0.2);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.7;
  margin-bottom: 28px;
}

.doc-back {
  display: block;
  text-align: center;
  margin-top: 36px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.doc-back:hover { color: var(--primary); }

/* ────────────────────────────────────────────
   Shared UI atoms
──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.14);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
}

/* ────────────────────────────────────────────
   Animations
──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

@keyframes glowPulse {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50%     { opacity: 0.8; transform: scale(1.04); }
}

@keyframes chatSlide {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ────────────────────────────────────────────
   Responsive utilities
──────────────────────────────────────────── */
@media(max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media(max-width: 768px) {
  nav { padding: 12px 20px; }
  .footer-inner { padding: 60px 24px 36px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .doc-card { padding: 32px 24px; }
  .doc-table th { width: 40%; white-space: normal; }
}
