/* =========================================================
   Yutaka3DLab
   Main stylesheet
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --text: #15171a;
  --text-soft: #5f6670;
  --blue: #171d8f;
  --blue-hover: #10166f;
  --border: #e3e7ee;
  --card: #ffffff;
  --dark: #11131a;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(17, 19, 26, 0.08);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(227, 231, 238, 0.85);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

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

.hero {
  padding: 96px 0 84px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #aeb8ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--text-soft);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition: 160ms ease;
}

.button-primary {
  background: var(--blue);
  color: #fff;
}

.button-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.button-secondary {
  border-color: var(--border);
  background: #fff;
}

.button-secondary:hover {
  border-color: #cfd5df;
  transform: translateY(-1px);
}

.hero-note {
  margin: 0;
  color: #818791;
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.hero-mark {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: 36px;
  background:
    radial-gradient(circle at 30% 20%, rgba(23, 29, 143, 0.12), transparent 32%),
    linear-gradient(145deg, #f8f9fc, #eef1f7);
  box-shadow: var(--shadow);
}

.hero-mark img {
  width: min(68%, 280px);
  filter: drop-shadow(0 22px 34px rgba(23, 29, 143, 0.16));
}

.section {
  padding: 96px 0;
}

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

.section-dark {
  background: var(--dark);
  color: #fff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.section-heading > p:last-child {
  color: var(--text-soft);
  font-size: 1.08rem;
}

.centered {
  margin-inline: auto;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 30px rgba(17, 19, 26, 0.05);
  transition: 180ms ease;
}

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

.product-image {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eef2f8;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 24px;
}

.product-kicker {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-body p:not(.product-kicker) {
  color: var(--text-soft);
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.feature-number {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
}

.feature p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.review-card {
  margin: 0;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  text-align: center;
}

.stars {
  margin-bottom: 14px;
  color: #d7a800;
  letter-spacing: 0.14em;
}

.review-card p {
  margin-bottom: 16px;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.45;
}

.review-card footer {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.about-copy {
  color: #d6d8df;
  font-size: 1.08rem;
}

.about-signature {
  margin-top: 34px;
  color: #fff;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  transition: 160ms ease;
}

.platform-card strong {
  font-size: 1.12rem;
}

.platform-card span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.platform-card:hover {
  border-color: #c8ced9;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(17, 19, 26, 0.06);
}

.contact-line {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
  color: var(--text-soft);
}

.contact-line a {
  color: var(--blue);
  font-weight: 750;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-wrap p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

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

  .hero {
    padding-top: 68px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-mark {
    min-height: 300px;
  }

  .product-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .nav-wrap {
    min-height: 68px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding: 54px 0 66px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.6rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-mark {
    min-height: 240px;
    border-radius: 26px;
  }

  .section {
    padding: 72px 0;
  }

  .product-grid,
  .feature-grid,
  .platform-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 24px;
  }

  .review-card {
    padding: 28px 22px;
  }

  .contact-line,
  .footer-wrap {
    flex-direction: column;
    text-align: center;
  }
}
