/* =========================================================================
   Test Co — Corporate Site Styles
   青基調 / 清潔感のあるデザイン / 4px グリッド
   ========================================================================= */

:root {
  /* Color — Primary (blue) */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;

  /* Color — Neutral */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;

  /* Semantic */
  --color-primary: var(--blue-700);
  --color-primary-hover: var(--blue-800);
  --color-text: var(--gray-900);
  --color-text-muted: var(--gray-500);
  --color-bg: var(--white);
  --color-surface: var(--gray-50);
  --color-border: var(--gray-200);

  /* Spacing (4px grid) */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-base: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 80px;

  /* Radius */
  --radius-btn: 6px;
  --radius-card: 12px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(29, 78, 216, 0.16);

  --max-width: 1200px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: "Noto Sans JP", "Inter", system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  font-size: 1rem;
}

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

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

ul {
  list-style: none;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

.section {
  padding-block: var(--sp-3xl);
}

.section--alt {
  background: var(--color-surface);
}

.section__head {
  text-align: center;
  max-width: 65ch;
  margin-inline: auto;
  margin-bottom: var(--sp-2xl);
}

.section__eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
}

.section__title {
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.section__desc {
  color: var(--color-text-muted);
  margin-top: var(--sp-md);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: var(--white);
  padding: var(--sp-sm) var(--sp-base);
  border-radius: var(--radius-btn);
  z-index: 1000;
}
.skip-link:focus {
  left: var(--sp-base);
  top: var(--sp-base);
}

/* Focus baseline */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

/* =========================================================================
   Header
   ========================================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-weight: 700;
}

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--color-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo__text {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.nav__menu a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 120ms ease-out;
}

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

.nav__cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding-inline: var(--sp-base);
  background: var(--color-primary);
  color: var(--white) !important;
  border-radius: var(--radius-btn);
  transition: background 120ms ease-out;
}

.nav__cta:hover {
  background: var(--color-primary-hover);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding-inline: var(--sp-lg);
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease-out, background 120ms ease-out, box-shadow 120ms ease-out;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--blue-100);
}
.btn--ghost:hover {
  background: var(--blue-50);
}

.btn--light {
  background: var(--white);
  color: var(--color-primary);
}
.btn--light:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--blue-100), transparent 60%),
    linear-gradient(180deg, var(--blue-50), var(--white));
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--sp-2xl);
  padding-block: var(--sp-3xl);
}

.hero__eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-base);
}

.hero__title {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin-top: var(--sp-lg);
  max-width: 48ch;
  color: var(--gray-700);
  font-size: 1.0625rem;
}

.hero__actions {
  margin-top: var(--sp-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.hero__visual {
  position: relative;
  height: 360px;
}

.hero__card {
  position: absolute;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.hero__card--1 {
  inset: 0 20% 30% 0;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
}
.hero__card--2 {
  width: 56%;
  height: 56%;
  right: 0;
  top: 12%;
}
.hero__card--3 {
  width: 44%;
  height: 40%;
  left: 12%;
  bottom: 0;
  background: linear-gradient(135deg, var(--blue-100), var(--white));
}

/* =========================================================================
   Stats
   ========================================================================= */
.stats {
  border-block: 1px solid var(--color-border);
  background: var(--white);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
  padding-block: var(--sp-2xl);
}

.stat {
  text-align: center;
}

.stat__num {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.stat__unit {
  font-size: 0.6em;
  margin-left: 1px;
}

.stat__label {
  display: block;
  margin-top: var(--sp-xs);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* =========================================================================
   Cards (Services)
   ========================================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, border-color 150ms ease-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-card);
  background: var(--blue-50);
  color: var(--color-primary);
  margin-bottom: var(--sp-base);
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.card__text {
  margin-top: var(--sp-sm);
  color: var(--gray-700);
  font-size: 0.9375rem;
}

/* =========================================================================
   Features
   ========================================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
}

.feature {
  position: relative;
  padding-top: var(--sp-lg);
  border-top: 2px solid var(--blue-100);
}

.feature__no {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-500);
}

.feature__title {
  margin-top: var(--sp-sm);
  font-size: 1.1875rem;
  font-weight: 700;
}

.feature__text {
  margin-top: var(--sp-sm);
  color: var(--gray-700);
  font-size: 0.9375rem;
}

/* =========================================================================
   About
   ========================================================================= */
.about {
  max-width: 720px;
  margin-inline: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.about__row {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.about__row:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}

.about__row dt {
  background: var(--gray-50);
  padding: var(--sp-base) var(--sp-lg);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.about__row dd {
  padding: var(--sp-base) var(--sp-lg);
  font-size: 0.9375rem;
}

/* =========================================================================
   CTA
   ========================================================================= */
.cta {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-800));
  color: var(--white);
}

.cta__inner {
  text-align: center;
  padding-block: var(--sp-3xl);
}

.cta__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.cta__text {
  margin-top: var(--sp-md);
  margin-inline: auto;
  max-width: 52ch;
  color: var(--blue-100);
}

.cta__inner .btn {
  margin-top: var(--sp-xl);
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-base);
  padding-block: var(--sp-xl);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  color: var(--white);
  font-weight: 700;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-lg);
}

.footer__nav a {
  font-size: 0.9375rem;
  color: var(--gray-300);
  transition: color 120ms ease-out;
}
.footer__nav a:hover {
  color: var(--white);
}

.footer__copy {
  width: 100%;
  font-size: 0.8125rem;
  color: var(--gray-500);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--sp-base);
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    display: none;
  }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-xl) var(--sp-lg);
  }
  .cards,
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav__toggle {
    display: flex;
  }
  .nav__menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: var(--sp-sm);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease-out, transform 200ms ease-out, visibility 200ms;
  }
  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__menu li a {
    display: block;
    padding: var(--sp-md) var(--sp-base);
    border-radius: var(--radius-btn);
  }
  .nav__menu li a:hover {
    background: var(--blue-50);
  }
  .nav__cta {
    height: auto;
    justify-content: center;
    margin-top: var(--sp-xs);
  }
  .about__row {
    grid-template-columns: 1fr;
  }
  .about__row dt {
    padding-bottom: 0;
    background: var(--white);
  }
}

/* Motion 軽減 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
