:root {
  --ink: #050505;
  --muted-ink: #191c1a;
  --night: #10141f;
  --surface: #f5f5f5;
  --paper: #ffffff;
  --content: 1200px;
  --shadow: 0 4px 8px rgb(0 0 0 / 16%);
  --hero-line-color: rgb(16 20 31 / 5%);
  --accent-coral: #ff9a52;
  --accent-rose: #ff4f91;
  --accent-lilac: #c76cff;
  --problem-glow-teal: rgb(35 214 188 / 18%);
  --problem-glow-indigo: rgb(67 92 229 / 22%);
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--ink);
  background: transparent;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle, transparent 0 24px, var(--hero-line-color) 25px 26px, transparent 27px) 84% 22% / 58px 58px no-repeat,
    radial-gradient(circle, transparent 0 41px, var(--hero-line-color) 42px 43px, transparent 44px) 69% 86% / 92px 92px no-repeat,
    radial-gradient(circle, var(--hero-line-color) 0 4px, transparent 5px) 53% 47% / 10px 10px no-repeat,
    linear-gradient(var(--hero-line-color), var(--hero-line-color)) 8% 0 / 1px 54% no-repeat,
    linear-gradient(var(--hero-line-color), var(--hero-line-color)) 29% 0 / 1px 100% no-repeat,
    linear-gradient(var(--hero-line-color), var(--hero-line-color)) 57% 18% / 1px 82% no-repeat,
    linear-gradient(var(--hero-line-color), var(--hero-line-color)) 81% 0 / 1px 66% no-repeat,
    linear-gradient(var(--hero-line-color), var(--hero-line-color)) 94% 37% / 1px 63% no-repeat,
    linear-gradient(90deg, var(--hero-line-color), var(--hero-line-color)) 0 34% / 22% 1px no-repeat,
    linear-gradient(90deg, var(--hero-line-color), var(--hero-line-color)) 48% 73% / 39% 1px no-repeat;
  content: "";
  pointer-events: none;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 20px;
  border-bottom: 1px solid #ddd;
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(10px);
}
.brand {
  color: var(--muted-ink);
  font-family: "Noto Serif JP", serif;
  font-size: 1rem;
  text-decoration: none;
}
.section-shell, .hero__inner, .site-footer__inner {
  width: min(100% - 56px, var(--content));
  margin-inline: auto;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 44px 0 40px;
  background: transparent;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 24px; }
.hero h1 {
  order: 1;
  margin-bottom: 0;
  font-size: clamp(1.3rem, 5.6vw, 1.6rem);
  line-height: 1.6;
}
.hero__copy { display: contents; }
.hero__image {
  order: 2;
  width: 100%;
  height: auto;
  aspect-ratio: 707 / 482;
  object-fit: contain;
}
.hero .button { order: 3; width: 100%; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.button--outline { border: 2px solid var(--ink); background: transparent; }
.button--dark { background: #333; color: var(--paper); }
.button--light { background: var(--paper); color: var(--ink); }
.button--small { min-height: 48px; padding-inline: 20px; }

.problems {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 52px 0 44px;
  background: linear-gradient(118deg, #0a1020 0%, var(--night) 52%, #08151a 100%);
  color: var(--paper);
}
.problems::before {
  position: absolute;
  z-index: 0;
  inset: -38% -18%;
  background:
    radial-gradient(ellipse at 8% 92%, var(--problem-glow-indigo) 0%, transparent 46%),
    radial-gradient(ellipse at 94% 4%, var(--problem-glow-teal) 0%, transparent 41%),
    radial-gradient(circle at 58% 64%, rgb(103 72 210 / 8%) 0%, transparent 31%);
  animation: problem-aurora-shift 12s ease-in-out infinite alternate;
  content: "";
  pointer-events: none;
  transform-origin: center;
}
.problems .section-shell { position: relative; z-index: 1; }
.problem-title-accent {
  color: var(--accent-coral);
  background: linear-gradient(105deg, var(--accent-coral) 4%, var(--accent-rose) 58%, var(--accent-lilac) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-shell > h2 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 6vw, 2rem);
  line-height: 1.55;
  text-align: center;
}
.section-lead { margin: 0 auto 18px; max-width: 900px; font-size: .9rem; }
.credential-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 28px;
  padding: 0;
  list-style: none;
}
.credential-list li {
  padding: 5px 10px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
  color: rgb(255 255 255 / 82%);
  font-size: .72rem;
  line-height: 1.4;
}
.problem-grid { display: grid; gap: 20px; margin-bottom: 28px; }
.problem-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 14px;
  width: min(100%, 340px);
  margin-inline: auto;
}
.problem-item img { width: 56px; height: 56px; object-fit: contain; }
.problem-item h3 { margin: 0; font-size: 1.05rem; font-weight: 400; }
.problems .button { width: 100%; }

.services { padding: 52px 0 62px; }
.service-grid { display: grid; gap: 18px; margin-top: 18px; }
.service-card {
  min-height: 280px;
  padding: 20px 24px;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}
.service-card img { width: 82px; height: 82px; margin: 0 auto 10px; object-fit: contain; }
.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; line-height: 1.55; }
.service-card p { margin-bottom: 0; font-size: .88rem; line-height: 1.75; text-align: left; }

.about { padding: 52px 0 44px; background: var(--surface); }
.about__card { margin: 18px 0 20px; padding: 24px 22px; border-radius: 4px; background: var(--paper); }
.about__card h3 { margin-bottom: 4px; font-size: 1rem; }
.about__card p { font-size: .88rem; line-height: 1.8; }
.about .button { width: 100%; }

.contact-page { padding: 52px 0 64px; }
.contact-page__inner { width: min(100% - 40px, 720px); margin-inline: auto; }
.contact-page__header { margin-bottom: 28px; text-align: center; }
.contact-page__header h1, .contact-card--thanks h1 { margin-bottom: 12px; font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.5; }
.contact-page__header p, .contact-card--thanks p { margin-bottom: 0; font-size: .9rem; }
.contact-card { padding: 24px 20px; border-radius: 4px; background: var(--paper); box-shadow: var(--shadow); }
.contact-card form { display: grid; gap: 22px; }
.contact-card form > label { display: grid; gap: 7px; font-size: .9rem; font-weight: 700; }
.contact-card input, .contact-card textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #aaa;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.contact-card textarea { min-height: 180px; resize: vertical; }
.contact-card input:focus, .contact-card textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.contact-card button {
  min-height: 56px;
  padding: 12px 24px;
  border: 0;
  border-radius: 4px;
  background: #333;
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.contact-page--thanks { display: grid; min-height: 480px; place-items: center; }
.contact-card--thanks { text-align: center; }
.contact-card--thanks p { margin-bottom: 28px; }
.contact-card--thanks .button { width: 100%; }

.site-footer { padding: 44px 0 32px; }
.site-footer__inner { display: grid; gap: 16px; }
.footer-contact { align-self: start; font-size: .88rem; }
.copyright { margin: 120px 0 0; font-family: "Noto Serif JP", serif; font-size: .7rem; }
.mobile-only { display: initial; }
.desktop-only { display: none; }

@keyframes problem-aurora-shift {
  0% { opacity: .82; transform: translate3d(-2%, 2%, 0) scale(1); }
  52% { opacity: 1; transform: translate3d(2%, -1%, 0) scale(1.05); }
  100% { opacity: .88; transform: translate3d(-1%, -3%, 0) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .problems::before { animation: none; }
}

@media (min-width: 768px) {
  .site-header { height: 80px; padding-inline: max(40px, calc((100% - var(--content)) / 2)); }
  .brand { font-size: 1.15rem; }
  .hero { padding: 64px 0 80px; }
  .hero h1 { margin-bottom: 44px; font-size: 1.9rem; line-height: 1.8; }
  .hero .button { width: 295px; }
  .problems, .services, .about { padding-block: 64px; }
  .section-lead { text-align: center; }
  .problem-grid { grid-template-columns: repeat(3, 1fr); margin: 36px 0 38px; }
  .problem-item { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .problem-item img { width: 96px; height: 96px; }
  .problems .button, .about .button { display: flex; width: 295px; margin-inline: auto; }
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
  .service-card { min-height: 330px; padding: 24px; }
  .service-card img { width: 100px; height: 100px; }
  .about__card { max-width: 907px; margin: 34px auto 28px; padding: 40px 52px; }
  .contact-page { padding-block: 72px 88px; }
  .contact-card { padding: 40px 48px; }
  .contact-card--thanks .button { width: 295px; }
  .site-footer { padding-block: 42px; }
  .site-footer__inner { grid-template-columns: 1fr auto; min-height: 180px; }
  .footer-contact { justify-self: end; }
  .copyright { margin-top: 120px; }
  .mobile-only { display: none; }
  .desktop-only { display: initial; }
}

@media (min-width: 1140px) {
  .hero__inner { grid-template-columns: 480px 1fr; align-items: center; gap: 60px; }
  .hero__copy { display: grid; gap: 0; }
}
