:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --ink: #111318;
  --ink-2: #4b5160;
  --ink-3: #8a90a0;
  --line: #e6e8ee;
  --line-strong: #cfd3dc;
  --orange: #f39800;
  --red: #e83828;
  --blue: #00a0e9;
  --accent: var(--orange);
  --radius: 18px;
  --max: 1120px;
  --font-ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Inter", var(--font-ja);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.3; letter-spacing: 0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.pc { display: none; }
@media (min-width: 768px) { .pc { display: inline; } }

/* Brand stripe */
.brand-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0 34%, var(--red) 34% 67%, var(--blue) 67% 100%);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 50px; width: auto; margin-left: -6px; }
.nav { display: none; align-items: center; gap: 32px; }
.nav a { color: var(--ink); font-size: 0.92rem; font-weight: 500; position: relative; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:not(.nav-cta):hover { text-decoration: none; }
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 10px 22px; border-radius: 999px;
  background: var(--ink); color: #fff !important; font-weight: 700;
  transition: background .2s, transform .2s var(--ease);
}
.nav-cta:hover { background: var(--red); text-decoration: none; transform: translateY(-1px); }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 767px) {
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 72px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    box-shadow: 0 20px 40px rgba(17, 19, 24, 0.08);
  }
  .nav.open a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav.open .nav-cta { margin-top: 14px; text-align: center; border: 0; }
}
@media (min-width: 768px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 104px 0 120px;
  background-color: #fff;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.75) 55%, rgba(255,255,255,0.2) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 900; line-height: 1.22; letter-spacing: 0.005em;
  margin-bottom: 28px;
}
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.32em; z-index: -1;
  background: linear-gradient(90deg, rgba(243,152,0,.35), rgba(232,56,40,.25));
  border-radius: 3px;
}
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 620px; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(46vw, 560px); height: auto; aspect-ratio: 1 / 1; opacity: 0.9; pointer-events: none;
  filter: drop-shadow(0 30px 60px rgba(17, 19, 24, 0.12));
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 14px)); } }
@media (max-width: 900px) { .hero-art { opacity: 0.18; right: -20%; width: 70vw; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(17,19,24,.18); }
.btn-primary:hover { background: var(--red); box-shadow: 0 14px 28px rgba(232,56,40,.28); }
.btn-primary::after { content: "→"; font-family: var(--font-en); transition: transform .2s var(--ease); }
.btn-primary:hover::after { transform: translateX(3px); }
.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 18px 38px; font-size: 1.05rem; font-family: var(--font-en); letter-spacing: 0.01em; }

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 900; letter-spacing: 0.005em; }
.section-desc { color: var(--ink-2); margin-top: 16px; max-width: 640px; }
@media (min-width: 900px) {
  .section-head.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
  .section-head.split .section-desc { margin-top: 0; }
}

.grid { display: grid; gap: 22px; }
.cards { grid-template-columns: 1fr; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px 30px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: var(--card-color, var(--orange));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(17, 19, 24, 0.08); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card--blue { --card-color: var(--blue); }
.card--red { --card-color: var(--red); }
.card--orange { --card-color: var(--orange); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--card-color, var(--orange)) 12%, #fff);
  color: var(--card-color, var(--orange));
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-2); font-size: 0.95rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.74rem; padding: 4px 11px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }

/* Features */
.features { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { position: relative; padding: 36px 28px 36px 96px; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) {
  .feature:nth-child(odd) { border-right: 1px solid var(--line); }
}
.feature-num {
  position: absolute; left: 24px; top: 34px;
  font-family: var(--font-en); font-weight: 800; font-size: 2rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
}
.feature h3 { font-size: 1.18rem; margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: 0.95rem; }

/* Steps */
.steps { display: grid; gap: 0; position: relative; }
.steps li { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.step-num {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-family: var(--font-en); font-weight: 700;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 0.93rem; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .steps li { flex-direction: column; gap: 18px; padding: 0; border: 0; position: relative; }
  .steps li::before {
    content: ""; position: absolute; left: 44px; right: -20px; top: 22px; height: 1px; background: var(--line-strong);
  }
  .steps li:last-child::before { display: none; }
}

/* About */
.about-table { margin: 0; border-top: 1px solid var(--line); }
.about-table > div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .about-table > div { grid-template-columns: 180px 1fr; gap: 24px; } }
.about-table dt { font-weight: 700; color: var(--ink-3); font-size: 0.9rem; }
.about-table dd { margin: 0; }

/* Contact */
.contact {
  position: relative; overflow: hidden; text-align: center;
  background: var(--ink); color: #fff;
}
.contact::before, .contact::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none;
}
.contact::before { width: 420px; height: 420px; left: -120px; top: -160px; background: var(--orange); }
.contact::after { width: 420px; height: 420px; right: -140px; bottom: -200px; background: var(--blue); }
.contact-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.contact .eyebrow { color: rgba(255,255,255,.75); }
.contact h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 900; }
.contact .section-desc { color: rgba(255,255,255,.78); margin: 16px auto 36px; }
.contact .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.contact .btn-primary:hover { background: var(--orange); color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0; background: #fff; }
.footer-inner { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.footer-logo { height: 40px; width: auto; margin-left: -5px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--ink-2); font-size: 0.88rem; }
.footer-nav a:hover { color: var(--ink); }
.copyright { font-family: var(--font-en); font-size: 0.8rem; color: var(--ink-3); }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .nav-toggle span, .reveal { transition: none; }
  .hero-art { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
