:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef2ff;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe3ef;
  --navy: #14213d;
  --accent: linear-gradient(90deg, #ef476f 0%, #f78c6b 16%, #ffd166 32%, #7bd389 48%, #4cc9f0 64%, #6a4c93 82%, #d65db1 100%);
  --shadow: 0 18px 40px rgba(15, 23, 42, .08);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section.alt { background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); }
.section-head { max-width: 760px; margin-bottom: 42px; }
.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7c3aed;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(2.3rem, 4.8vw, 4.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.02em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 12px; color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(248, 250, 252, .86);
  border-bottom: 1px solid rgba(219, 227, 239, .8);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 8px #fff;
}
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: .95rem;
}
.nav a:hover { color: #7c3aed; }
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 52%, #d946ef 100%);
  box-shadow: 0 14px 30px rgba(124, 58, 237, .18);
}
.btn:hover { transform: translateY(-1px); }
.btn-secondary {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-sm { min-height: 40px; padding: 0 16px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 88px;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, .12), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(56, 189, 248, .12), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fd 100%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 34px;
  align-items: center;
}
.hero-copy .lead { font-size: 1.05rem; max-width: 760px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-card {
  display: grid;
  gap: 16px;
}
.stat-card,
.panel,
.service-card,
.work-card,
.flow-item,
.contact-form {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(219,227,239,.9);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.stat-card {
  padding: 24px;
}
.stat-card strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.hero-rings {
  position: absolute;
  inset: -60px auto auto -160px;
  width: 680px;
  height: 680px;
  pointer-events: none;
}
.hero-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 9px solid transparent;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
}
.hero-rings span:nth-child(1) { inset: 0; border-color: #ef476f; clip-path: inset(0 18% 18% 0); }
.hero-rings span:nth-child(2) { inset: 18px; border-color: #f78c6b; clip-path: inset(0 18% 18% 0); }
.hero-rings span:nth-child(3) { inset: 36px; border-color: #ffd166; clip-path: inset(0 18% 18% 0); }
.hero-rings span:nth-child(4) { inset: 54px; border-color: #7bd389; clip-path: inset(0 18% 18% 0); }
.hero-rings span:nth-child(5) { inset: 72px; border-color: #4cc9f0; clip-path: inset(0 18% 18% 0); }
.hero-rings span:nth-child(6) { inset: 90px; border-color: #d65db1; clip-path: inset(0 18% 18% 0); }

.about-grid,
.strength-grid,
.company-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.panel,
.service-card,
.work-card,
.flow-item,
.contact-form {
  padding: 28px;
}
.check-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before,
.work-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: var(--accent);
}
.strength-panel { min-height: 180px; }
.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #6d28d9;
  background: #f3e8ff;
  margin-bottom: 14px;
}
.flow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.flow-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.contact-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.contact-section h2,
.contact-section p,
.contact-section a,
.contact-section label,
.contact-section .eyebrow {
  color: #fff;
}
.contact-grid {
  align-items: start;
}
.contact-list {
  margin-top: 24px;
}
.contact-list a {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.contact-form {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}
.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.96);
  color: var(--text);
  font: inherit;
}
.form-note {
  margin-top: 12px;
  font-size: .9rem;
  color: rgba(255,255,255,.78) !important;
}
.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table th,
.company-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.company-table th {
  width: 130px;
  color: var(--text);
  font-size: .95rem;
}
.message-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.site-footer {
  padding: 28px 0;
  background: #0b1222;
  color: rgba(255,255,255,.88);
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .strength-grid,
  .company-grid,
  .contact-grid,
  .card-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }
  .nav {
    position: absolute;
    top: 78px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(300px, calc(100vw - 40px));
    padding: 16px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .menu-toggle { display: inline-block; }
  .hero { padding-top: 96px; }
  .hero-rings { width: 520px; height: 520px; left: -160px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1120px); }
  .section { padding: 72px 0; }
  .panel,
  .service-card,
  .work-card,
  .flow-item,
  .contact-form,
  .stat-card { padding: 22px; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; }
  .btn, .btn-secondary { width: 100%; }
}
