/* ============================================
   8-ame.com - Corporate Site
   Minimal / Professional
   ============================================ */

:root {
  --charcoal: #2D2D2D;
  --charcoal-light: #3D3D3D;
  --white: #FFFFFF;
  --off-white: #F5F5F5;
  --accent: #4A90D9;
  --accent-dark: #3A7BC8;
  --gray-100: #F0F0F0;
  --gray-200: #E0E0E0;
  --gray-400: #999999;
  --gray-600: #666666;
  --text-primary: #2D2D2D;
  --text-secondary: #666666;
  --max-width: 960px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-dark);
}

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

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--charcoal);
}

/* ---- Hero ---- */
.hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---- Section ---- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--charcoal);
  display: inline-block;
}

.section-lead {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

/* ---- Info Table ---- */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 160px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.info-table td {
  font-size: 0.95rem;
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--off-white);
  border-radius: 8px;
  padding: 32px 28px;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card .card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---- Contact ---- */
.contact-box {
  background: var(--off-white);
  border-radius: 8px;
  padding: 40px;
  max-width: 560px;
}

.contact-box dt {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.contact-box dd {
  font-size: 1rem;
  margin-bottom: 24px;
}

.contact-box dd:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-dark);
  color: var(--white);
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--gray-200);
  padding: 32px 24px;
  text-align: center;
}

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

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    gap: 20px;
  }

  .hero {
    padding: 56px 20px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 48px 20px;
  }

  .info-table th {
    width: 120px;
  }

  .contact-box {
    padding: 28px 24px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
