:root {
  --color-primary: #0EA5E9;
  --color-secondary: #38BDF8;
  --color-accent: #F97316;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --font-heading: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 2px 20px rgba(12, 74, 110, 0.06);
  --shadow-md: 0 12px 40px -12px rgba(12, 74, 110, 0.20);
  --shadow-lg: 0 30px 60px -20px rgba(12, 74, 110, 0.28);
  --radius: 16px;
  --radius-lg: 20px;
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  background: #ffffff;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--color-neutral-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(240, 249, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(12, 74, 110, 0.08);
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin-inline: auto;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
.primary-nav {
  position: fixed; inset: 64px 0 auto 0;
  background: #ffffff; padding: 1.25rem;
  display: none; flex-direction: column; gap: 0.5rem;
  border-bottom: 1px solid rgba(12, 74, 110, 0.08);
  box-shadow: var(--shadow-md);
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  color: var(--color-neutral-dark);
  padding: 0.6rem 0.25rem;
  font-weight: 500;
  position: relative;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.nav-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff !important;
  padding: 0.6rem 1.1rem !important;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
}
.nav-toggle {
  background: transparent; border: 0; padding: 0.5rem;
  color: var(--color-neutral-dark); cursor: pointer;
}

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; display: flex; flex-direction: row;
    background: transparent; padding: 0; border: 0; box-shadow: none;
    align-items: center; gap: 1.5rem;
  }
  .primary-nav a { padding: 0.4rem 0; }
  .primary-nav a:not(.nav-cta)::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
    height: 2px; background: var(--color-primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .primary-nav a:not(.nav-cta):hover::after,
  .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* === Hero — saas-spotlight === */
.hero {
  position: relative;
  padding: 3rem 1.25rem 4rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(56, 189, 248, 0.04));
}
.hero-glow {
  position: absolute; inset: -20% 30% auto -10%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.14), transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin-inline: auto;
  text-align: left;
}
.eyebrow {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--color-primary); font-weight: 600; margin-bottom: 0.75rem;
}
.hero h1 { max-width: 22ch; }
.lede {
  font-size: 1.15rem; max-width: 52ch; color: rgba(12, 74, 110, 0.85);
  margin-bottom: 1.75rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }

.hero-visual {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.hero.compact { padding-bottom: 2.5rem; }

@media (min-width: 900px) {
  .hero { padding: 5rem 1.5rem 5rem; }
  .hero-inner { text-align: center; margin-bottom: 3rem; }
  .hero .eyebrow { text-align: center; }
  .hero h1, .hero .lede { margin-inline: auto; }
  .cta-row { justify-content: center; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  border: 0; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(14, 165, 233, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(14, 165, 233, 0.55); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.7);
  color: var(--color-neutral-dark);
  border: 1px solid rgba(12, 74, 110, 0.15);
}
.btn-ghost:hover { transform: translateY(-2px); background: #fff; color: var(--color-neutral-dark); }
.btn-accent {
  background: var(--color-accent); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(249, 115, 22, 0.5);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(249, 115, 22, 0.55); color: #fff; }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* === Sections === */
.section { padding: 4rem 0; }
.section.intro.alt { background: var(--color-neutral-light); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { max-width: 24ch; margin-inline: auto; }
.section-sub { color: rgba(12, 74, 110, 0.75); max-width: 56ch; margin-inline: auto; }

/* === Grids === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* === Cards === */
.card {
  background: #fff;
  border: 1px solid rgba(12, 74, 110, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(56, 189, 248, 0.18));
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { margin: 0; color: rgba(12, 74, 110, 0.85); font-size: 0.98rem; }

/* === Split (image + text) === */
.split-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
.split-visual { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin: 0; }
.split-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .split-grid { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; }
}

/* === Testimonial === */
.testimonial-section { background: var(--color-neutral-light); }
.testimonial {
  text-align: center;
  margin: 0;
  padding: 1rem;
}
.testimonial .quote-mark {
  color: var(--color-accent); opacity: 0.6;
  margin: 0 auto 1rem;
}
.testimonial p {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.75;
  color: var(--color-neutral-dark);
}
.testimonial cite {
  display: block; margin-top: 1rem;
  font-style: normal; font-weight: 600;
  color: rgba(12, 74, 110, 0.75);
  font-size: 0.95rem;
}

/* === CTA Band === */
.cta-band {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.cta-band .btn-accent { color: #fff; }

/* === Contact block === */
.contact-band { background: var(--color-neutral-light); }
.contact-block {
  font-style: normal;
  background: #fff;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(12, 74, 110, 0.08);
  box-shadow: var(--shadow-sm);
  line-height: 1.9;
}

/* === Form === */
.contact-form {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(12, 74, 110, 0.08);
  box-shadow: var(--shadow-md);
}
.form-row { display: flex; flex-direction: column; margin-bottom: 1.25rem; }
.form-row label { font-weight: 600; margin-bottom: 0.4rem; font-size: 0.95rem; }
.form-row input, .form-row textarea {
  font-family: inherit; font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(12, 74, 110, 0.2);
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 0; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.form-consent {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin-bottom: 1.25rem; font-size: 0.9rem;
  color: rgba(12, 74, 110, 0.85);
}
.form-consent input { margin-top: 0.25rem; }
@media (min-width: 700px) {
  .contact-form { padding: 2.5rem 2.25rem; }
}

/* === FAQ === */
.faq details {
  background: #fff;
  border: 1px solid rgba(12, 74, 110, 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  font-weight: 600; cursor: pointer;
  font-family: var(--font-heading); font-size: 1.05rem;
  color: var(--color-neutral-dark);
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
}
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 0;
  font-size: 1.4rem; color: var(--color-primary);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 0.75rem; color: rgba(12, 74, 110, 0.85); }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(240, 249, 255, 0.9);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(240, 249, 255, 0.1);
}
.footer-logo img { height: 60px; filter: brightness(0) invert(1); }
.tagline { font-family: var(--font-heading); color: rgba(240, 249, 255, 0.85); }
.footer-nav, .footer-contact { display: flex; flex-direction: column; }
.footer-nav h3, .footer-contact h3 {
  color: #fff; font-size: 0.95rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 1rem;
}
.footer-nav a, .legal-links a {
  color: rgba(240, 249, 255, 0.75);
  padding: 0.3rem 0;
  font-size: 0.95rem;
}
.footer-nav a:hover, .legal-links a:hover { color: #fff; }
.footer-contact address { font-style: normal; line-height: 1.9; margin-bottom: 1rem; }
.footer-contact address a { color: rgba(240, 249, 255, 0.85); }
.legal-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-top: 0.5rem; }
.copyright { padding-top: 1.5rem; font-size: 0.85rem; color: rgba(240, 249, 255, 0.6); }
.copyright p { margin: 0; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr; }
}

/* === Cookie banner === */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  display: none; z-index: 9999;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 720px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.92rem; line-height: 1.6; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button {
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  padding: 0.55rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(240, 249, 255, 0.3);
  background: transparent; color: var(--color-neutral-light);
  cursor: pointer;
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent); border-color: var(--color-accent); color: #fff;
}
.cookie-banner__prefs {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid rgba(240, 249, 255, 0.15);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.cookie-banner__prefs label { font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs button {
  align-self: flex-start; margin-top: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 999px;
  background: var(--color-neutral-light); color: var(--color-neutral-dark);
  border: 0; font-weight: 600; cursor: pointer;
}

/* === Reveal on scroll === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
