:root {
  --primary: #4bd1fc;
  --primary-light: #8cedff;
  --primary-dark: #0098cc;
  --primary-bg: rgba(75, 209, 252, 0.1);
  --ink: #111418;
  --ink-light: #1e2329;
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --surface: #ffffff;
  --muted: #616e7c;
  --line: #111418;
  --line-light: #e4e7eb;
  
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-full: 0px;
  
  --font-sans: Inter, "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

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

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

/* Typography */
h1, h2, h3, h4 {
  margin-top: 0;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ink);
}

p {
  margin-top: 0;
  color: var(--muted);
}

.text-center { text-align: center; }

.inline-block {
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid var(--ink);
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: #ffffff;
  color: var(--ink);
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 var(--primary);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.125rem;
}

/* Combined Logo Styles */
.logo-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo-image {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 12px;
}

/* Wordmark CSS */
.logo-text {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
  letter-spacing: -0.02em;
}

.logo-text:hover {
  color: var(--ink);
}

.logo-text .highlight {
  color: var(--primary);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 2px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav {
  display: none;
  gap: 32px;
}

@media (min-width: 768px) {
  .nav { display: flex; }
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary-dark);
}

/* Hero Section (Centered like Base44) */
.hero {
  padding: 100px 0 80px;
  border-bottom: 2px solid var(--ink);
  background-color: var(--bg-soft);
  position: relative;
  overflow: hidden;
  text-align: center;
}

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

.hero-content {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 60px;
}

.hero-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.hero-text {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 1000px;
  margin: 0 auto 40px;
  color: var(--ink);
  font-weight: 500;
}

@media (min-width: 768px) {
  .pc-nowrap {
    white-space: nowrap;
  }
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image {
  width: min(1280px, calc(100vw - 32px));
  max-width: none;
}

.hero-image img {
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--primary);
  width: 100%;
}

/* Sections */
.section {
  padding: 100px 0;
  border-bottom: 2px solid var(--ink);
}

.bg-soft { background-color: var(--bg-soft); }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-subtitle {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 60px;
  color: var(--ink);
  font-weight: 500;
  text-align: center;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 2px solid var(--ink);
}

@media (min-width: 768px) {
  .features-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

.feature-card {
  background: var(--surface);
  padding: 40px;
  border: 1px solid var(--ink);
  transition: background-color 0.2s;
}

.feature-card:hover {
  background-color: var(--primary-bg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--ink);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* Big Features */
.big-feature {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 2px solid var(--ink);
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .big-feature {
    flex-direction: row;
  }
}

.big-feature-text {
  flex: 1;
  padding: 60px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 2px solid var(--ink);
}

@media (min-width: 768px) {
  .big-feature-text {
    border-bottom: none;
    border-right: 2px solid var(--ink);
  }
  .big-feature.reverse .big-feature-text {
    border-right: none;
    border-left: 2px solid var(--ink);
    order: 2;
  }
  .big-feature.reverse .big-feature-image {
    order: 1;
  }
}

.big-feature-text h3 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.big-feature-text p {
  font-size: 1.125rem;
  color: var(--ink);
}

.big-feature-image {
  flex: 1;
  background: var(--bg-soft);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.big-feature-image img {
  width: 100%;
  max-width: 440px;
  height: auto;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--primary);
}

/* CTA Section */
.cta-section {
  background: var(--ink);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.cta-section p {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 40px;
  font-weight: 600;
}

.cta-section .btn-primary {
  background-color: var(--primary);
  color: var(--ink);
  border: 1px solid var(--primary);
}

.cta-section .btn-primary:hover {
  background-color: var(--ink);
  color: var(--primary);
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0 var(--primary);
}

/* Footer */
.footer {
  background-color: var(--bg);
  padding: 48px 0;
  border-top: 1px solid var(--line-light);
  width: 100%;
}

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

.footer-copy {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 767px) {
  html,
  body {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .header {
    position: static;
  }

  .header-inner {
    height: 72px;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 48px;
  }

  .hero-content {
    margin-bottom: 36px;
  }

  .section {
    padding: 56px 0;
  }

  .section-subtitle {
    margin-bottom: 32px;
  }

  .feature-card {
    padding: 28px 24px;
  }

  .big-feature {
    margin-bottom: 32px;
  }

  .big-feature-text,
  .big-feature-image {
    padding: 32px 24px;
  }

  .big-feature-image {
    min-height: 160px;
  }

  .cta-section {
    padding: 56px 0;
  }

  .cta-section p {
    margin-bottom: 28px;
  }

  .footer {
    padding: 32px 0 calc(40px + env(safe-area-inset-bottom));
  }
}
