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

/* ===== Base ===== */
:root {
  --bg:       #ffffff;
  --surface:  #f7f8fa;
  --border:   #e5e7eb;
  --text:     #171717;
  --muted:    #6b7280;
  --accent:   #2563eb;
  --font:     'Zen Kaku Gothic New', system-ui, sans-serif;
  --font-logo: 'Space Mono', monospace;
  --max-w:    960px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
  opacity: 0.8;
}

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

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.2s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== Intro ===== */
.intro {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

.intro .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.intro__logo {
  height: auto;
  width: min(360px, 70vw);
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.intro__catchcopy {
  font-family: var(--font-logo);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.d-flip {
  display: inline-block;
  transform: scaleX(-1);
}

.intro__tagline {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 2;
}

/* ===== Sections ===== */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ===== Tile grid (services) ===== */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tile {
  background: #00aaff;
  border: none;
  border-radius: 10px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 170, 255, 0.25);
}

.tile__icon {
  font-size: 1.6rem;
  line-height: 1;
}

.tile__title {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.45;
  color: #ffffff;
}

.tile__desc {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.7;
  margin-top: auto;
}

.note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== Cases ===== */
.case-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-card {
  border-left: 4px solid var(--accent);
  padding: 14px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

/* ===== Company info table ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

.info-table th {
  width: 9rem;
  color: var(--muted);
  font-weight: 500;
}

/* ===== Contact ===== */
.section p.text-muted {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.btn-contact {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn-contact:hover {
  opacity: 0.82;
  text-decoration: none;
}

.google-form {
  display: block;
  width: 100%;
  min-height: 580px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 8px;
}

/* ===== Helpers ===== */
.text-muted { color: var(--muted); }
.text-sm    { font-size: 0.85rem; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 24px;
}

.site-footer .container {
  max-width: 1000px;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
  .site-header .container {
    max-width: 100%;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    display: block;
    padding: 13px 24px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
  }

  .hamburger { display: flex; }

  .intro { min-height: auto; padding: 60px 0; }
  .intro__header { margin-bottom: 20px; }
  .intro__logo { width: min(240px, 60vw); }
  .intro__catchcopy { font-size: 0.9rem; margin-bottom: 16px; }
  .intro__tagline { font-size: 0.85rem; }

  .section { padding: 36px 0; }
  .section h2 { margin-bottom: 20px; }

  .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { padding: 20px 16px; }
  .tile__title { font-size: 1.05rem; }
  .tile__desc { font-size: 0.85rem; }

  .case-card { padding: 10px 16px; font-size: 0.85rem; }

  .note { margin-top: 16px; }

  .info-table th { width: 7rem; }

  .site-footer { margin-top: 12px; }
}
