:root {
  --navy: #1a2d4a;
  --navy-dark: #0f1f36;
  --navy-light: #2a4068;
  --off-white: #f5f7fa;
  --paper: #fafbfc;
  --white: #ffffff;
  --accent: #5b8ec4;
  --accent-soft: #e8f1fa;
  --text: #1a2332;
  --text-muted: #5a6578;
  --text-light: #8a94a6;
  --border: #e2e8f0;
  --border-soft: #eef2f7;
  --shadow-sm: 0 1px 3px rgba(26, 45, 74, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 45, 74, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 45, 74, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1120px;
  --header-height: 72px;
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: var(--navy);
}

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

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

.logo {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
}

.logo:hover {
  color: var(--navy-light);
}

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

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  box-shadow: var(--shadow-md);
  z-index: 99;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-soft);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a.active {
  color: var(--navy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-light);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--off-white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 500;
  color: var(--navy-light);
  margin-bottom: 20px;
}

.hero-subtext {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.75;
}

/* Sections */
.section {
  padding: 96px 24px;
}

.section-alt {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.card-grid:has(.app-card) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.section:has(.app-card) {
  padding-bottom: 128px;
}

.section:has(.contact-grid) {
  padding-bottom: 128px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: var(--accent-soft);
  border: 1px solid rgba(91, 142, 196, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--navy);
  flex-shrink: 0;
}

.card-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 2;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.35;
}

.card-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* What We Do — minor card polish */
.hero--workspace + .section .card {
  padding: 26px 28px;
}

.hero--workspace + .section .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border-color: rgba(91, 142, 196, 0.18);
  margin-bottom: 16px;
}

.hero--workspace + .section .card-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.25;
}

.hero--workspace + .section .card-title {
  margin-bottom: 8px;
}

.hero--workspace + .section .card-text {
  line-height: 1.6;
}

/* Product Areas — slightly more prominence */
.section-alt .card {
  padding: 28px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f6f9fc 100%);
  border-color: rgba(91, 142, 196, 0.14);
}

.section-alt .card-icon {
  width: 68px;
  height: 68px;
  border-radius: 17px;
  background: rgba(232, 241, 250, 0.9);
  border-color: rgba(91, 142, 196, 0.2);
  margin-bottom: 16px;
}

.section-alt .card-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.25;
}

.section-alt .card-title {
  margin-bottom: 8px;
}

.section-alt .card-text {
  line-height: 1.6;
}

/* Info items (studio section) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.info-item {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.info-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.info-item-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.info-item-text a {
  color: var(--navy-light);
  font-weight: 500;
  text-decoration: none;
}

.info-item-text a:hover,
.info-item-text a:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(91, 142, 196, 0.45);
  text-underline-offset: 2px;
}

/* Page header */
.page-header {
  background: linear-gradient(180deg, var(--off-white) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px 56px;
}

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

.page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 16px;
}

.page-intro {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.75;
}

/* App cards */
.app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.app-card-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0;
}

.app-card-working-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.working-title-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.01em;
}

.working-title-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-light);
  white-space: nowrap;
  line-height: 1.35;
}

.app-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--navy);
}

.badge-status {
  background: var(--off-white);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.app-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-top: 2px;
}

/* About page */
.section-about {
  padding-bottom: 128px;
}

.about-section-title,
.about-panel-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

.about-section-title {
  margin-bottom: 24px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.approach-card {
  background: linear-gradient(180deg, #fbfcfe 0%, #f8fafc 100%);
  border: 1px solid rgba(91, 142, 196, 0.14);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.approach-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

.approach-card-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.approach-card--full {
  grid-column: 1 / -1;
}

.about-panels {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 56px;
  max-width: 880px;
}

.about-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.about-panel-title {
  margin-bottom: 12px;
}

.about-panel-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.about-panel-text a {
  color: var(--navy-light);
  text-decoration: none;
}

.about-panel-text a:hover,
.about-panel-text a:focus-visible {
  text-decoration: underline;
}

/* About content */
.content-block {
  max-width: 720px;
}

.content-block h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--navy);
  margin: 48px 0 16px;
}

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

.content-block p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.content-block ul {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
}

.content-block li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.content-block a {
  color: var(--navy-light);
  text-decoration: none;
}

.content-block a:hover,
.content-block a:focus-visible {
  text-decoration: underline;
}

/* Privacy policy */
.policy-content {
  max-width: 720px;
}

.policy-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.policy-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin: 40px 0 12px;
}

.policy-content h2:first-of-type {
  margin-top: 0;
}

.policy-content p,
.policy-content li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.policy-content ul {
  margin: 0 0 16px 20px;
}

.policy-content a {
  color: var(--navy-light);
  font-weight: 500;
  text-decoration: none;
}

.policy-content a:hover,
.policy-content a:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(91, 142, 196, 0.45);
  text-underline-offset: 2px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item dt {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-item dd {
  font-size: 1rem;
  color: var(--text);
}

.contact-item dd a {
  color: var(--navy-light);
  font-weight: 500;
  text-decoration: none;
}

.contact-item dd a:hover,
.contact-item dd a:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(91, 142, 196, 0.45);
  text-underline-offset: 2px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  min-height: 112px;
  resize: vertical;
}

.support-section {
  margin-top: 64px;
  padding: 32px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.support-section h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.support-section p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.support-section a {
  color: var(--navy-light);
  font-weight: 500;
  text-decoration: none;
}

.support-section a:hover,
.support-section a:focus-visible {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(91, 142, 196, 0.45);
  text-underline-offset: 2px;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 24px 32px;
  margin-top: auto;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .logo {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 12px;
  display: inline-block;
}

.footer-brand .logo:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-contact p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 4px;
}

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

.footer-contact a:hover {
  color: var(--white);
}

.footer-nav h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Layout */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 56px 24px 72px;
  }

  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .section {
    padding: 64px 24px;
  }

  .section:has(.app-card) {
    padding-bottom: 96px;
  }

  .section-about {
    padding-bottom: 96px;
  }

  .section:has(.contact-grid) {
    padding-bottom: 96px;
  }

  .page-header {
    padding: 48px 24px 40px;
  }

  .card-grid:has(.app-card) {
    grid-template-columns: 1fr;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .approach-card--full {
    grid-column: auto;
  }

  .about-panel {
    padding: 24px;
  }

  .about-panels {
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card:hover {
    transform: none;
  }
}
