/* ========================================
   Synlai Design System - Minimal / Refined
   ======================================== */

:root {
  /* Primary text and backgrounds */
  --color-text-primary: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-tertiary: #86868b;
  --color-bg-primary: #fbfbfd;
  --color-bg-secondary: #f5f5f7;
  --color-bg-white: #ffffff;
  --color-bg-dark: #1d1d1f;
  --color-bg-dark-secondary: #2d2d2f;

  /* Borders */
  --color-border-light: #d2d2d7;
  --color-border-subtle: #e8e8ed;

  /* Accent - muted green (used sparingly) */
  --color-accent: #2d8653;
  --color-accent-hover: #236b42;
  --color-accent-subtle: #f0f7f3;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.06);

  /* Max widths */
  --max-width-content: 980px;
  --max-width-wide: 1120px;
  --max-width-narrow: 680px;
}

/* ========== Reset & Base ========== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg-white);
  color: var(--color-text-primary);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ========== Header ========== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.header-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 26px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========== Buttons ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background: var(--color-text-primary);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  color: var(--color-text-primary);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-light);
}

.btn-outline:hover {
  border-color: var(--color-text-primary);
  opacity: 1;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-white {
  background: #ffffff;
  color: var(--color-text-primary);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  border-color: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

/* ========== Section Layout ========== */

section {
  padding: 120px 32px;
}

.section-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-label {
  display: inline-block;
  color: var(--color-text-tertiary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========== Page Header (subpages) ========== */

.page-header {
  background: var(--color-bg-primary);
  padding: 140px 32px 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.page-header p {
  color: var(--color-text-secondary);
  font-size: 17px;
}

/* ========== Content (terms, privacy, etc.) ========== */

.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 32px 120px;
}

.content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 32px 0 12px;
}

.content p {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
}

.content ul, .content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.content li {
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}

.update-date {
  text-align: right;
  color: var(--color-text-tertiary);
  font-size: 14px;
  margin-bottom: 32px;
}

/* ========== Footer ========== */

footer {
  background: var(--color-bg-dark);
  padding: 48px 32px 32px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: block;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-logo-img {
  height: 24px;
  width: auto;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  font-size: 13px;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ========== Tables ========== */

.company-table,
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr,
.info-table tr {
  border-bottom: 1px solid var(--color-border-subtle);
}

.company-table th, .company-table td,
.info-table th, .info-table td {
  padding: 20px 16px;
  text-align: left;
  vertical-align: top;
}

.company-table th,
.info-table th {
  background: var(--color-bg-secondary);
  font-weight: 600;
  width: 200px;
  color: var(--color-text-secondary);
}

.company-table td,
.info-table td {
  color: var(--color-text-primary);
}

/* ========== Icon Circle ========== */

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.icon-circle-dark {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

/* ========== Responsive ========== */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
  }

  .header-nav {
    display: none;
  }

  .header-cta .btn-ghost {
    display: none;
  }

  section {
    padding: 80px 20px;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .page-header {
    padding: 120px 20px 40px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .content {
    padding: 40px 20px 80px;
  }

  .company-table th, .company-table td,
  .info-table th, .info-table td {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }

  .company-table th, .info-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .company-table td, .info-table td {
    padding-top: 4px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
