:root {
  --bg: #eef8ff;
  --bg-2: #dff2ff;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(74, 155, 255, 0.14);
  --text: #0d2745;
  --muted: #58738f;
  --accent: #00a8db;
  --accent-2: #5d8bff;
  --accent-3: #4fd1c7;
  --shadow: 0 20px 60px rgba(65, 116, 168, 0.14);
  --radius: 24px;
  --max: 1180px;
  --header-h: 76px;
  --hero-dark: #0f2844;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI Variable", "Noto Sans JP", "Hiragino Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(93, 139, 255, 0.18), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(0, 168, 219, 0.16), transparent 22%),
    linear-gradient(180deg, #f7fcff 0%, var(--bg) 42%, #f4fbff 100%);
  line-height: 1.7;
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(88, 115, 143, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 115, 143, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(247, 252, 255, 0.82);
  border-bottom: 1px solid rgba(93, 139, 255, 0.1);
}

.site-header .wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(0, 168, 219, 0.18);
  position: relative;
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.brand-mark::before {
  width: 10px;
  height: 10px;
  top: 8px;
  left: 8px;
}

.brand-mark::after {
  width: 18px;
  height: 18px;
  right: 6px;
  bottom: 6px;
  opacity: 0.35;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy small,
.eyebrow,
.section-label,
.mini,
.tag,
.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
}

.brand-copy small,
.mini,
.stat-label {
  color: var(--muted);
}

.brand-copy small {
  margin-bottom: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible,
.link-row a:hover,
.link-row a:focus-visible {
  color: var(--text);
}

.nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  pointer-events: none;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(0, 168, 219, 0.16);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(93, 139, 255, 0.08);
}

.header-cta:hover,
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(93, 139, 255, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
}

.hero,
.page-hero {
  padding: 42px 0 30px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 42px;
  min-height: calc(100vh - var(--header-h) - 34px);
}

.eyebrow,
.section-label {
  color: var(--accent);
  display: inline-block;
}

.eyebrow {
  margin-bottom: 18px;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.page-hero h1 {
  max-width: 12ch;
}

.hero p,
.lead,
.card p,
.use-case p,
.about-card p,
.contact-card p,
.visual-copy p,
.page-hero p,
.page-intro p,
.simple-card p {
  color: var(--muted);
}

.hero p,
.page-hero p {
  margin: 0;
  max-width: 700px;
  font-size: clamp(1rem, 1.3vw, 1.16rem);
}

.hero-actions,
.contact-actions,
.page-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions,
.contact-actions,
.page-actions {
  margin-top: 32px;
}

.button {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(0, 168, 219, 0.22);
}

.button.secondary {
  border-color: rgba(93, 139, 255, 0.15);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.stat,
.card,
.panel,
.use-case,
.about-card,
.contact-card,
.compare-card,
.deliverable,
.visual-card,
.placeholder-card,
.simple-card,
.timeline-card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(93, 139, 255, 0.12);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.stat {
  padding: 18px;
}

.stat strong {
  display: block;
  margin-top: 10px;
  font-size: 1.16rem;
}

.hero-visual {
  min-height: 620px;
  border-radius: 34px;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(95, 214, 255, 0.18), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(124, 141, 255, 0.22), transparent 26%),
    linear-gradient(160deg, #16355a 0%, var(--hero-dark) 68%, #14314f 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 64px rgba(16, 44, 78, 0.26);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}

.hero-badge,
.hero-note,
.hero-image,
.hero-abstract {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.hero-badge,
.hero-note {
  padding: 18px;
}

.hero-badge strong,
.hero-note strong {
  display: block;
  margin-bottom: 8px;
}

.hero-image img,
.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image.main {
  grid-column: 1 / span 2;
  min-height: 260px;
}

.hero-image.side {
  min-height: 170px;
}

.hero-abstract {
  min-height: 170px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(8, 40, 74, 0.42), rgba(20, 58, 98, 0.28)),
    url("image/abstract_tech_lines.jpg") center / cover;
  position: relative;
}

.hero-abstract::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 30, 54, 0.18), rgba(9, 30, 54, 0.52));
}

.hero-abstract > * {
  position: relative;
  z-index: 1;
}

.hero-abstract-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.96);
}

.hero-abstract-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-abstract-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-abstract-tags span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.section {
  padding: 48px 0;
}

.section-header {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 28px;
}

.section h2,
.page-section h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0;
}

.visual-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-top: 10px;
}

.visual-card {
  min-height: 320px;
}

.visual-card.tall {
  min-height: 420px;
}

.visual-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.placeholder-stack {
  display: grid;
  gap: 18px;
}

.value-layout,
.about-grid,
.contact-grid,
.footer-grid,
.simple-grid,
.page-grid {
  display: grid;
  gap: 22px;
}

.value-layout {
  grid-template-columns: 0.82fr 1.18fr;
}

.about-grid {
  grid-template-columns: 1.12fr 0.88fr;
}

.contact-grid {
  grid-template-columns: 1.06fr 0.94fr;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
}

.page-grid {
  grid-template-columns: 0.88fr 1.12fr;
}

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

.panel,
.about-card,
.contact-card,
.deliverable,
.simple-card,
.timeline-card {
  padding: 28px;
}

.intro-panel {
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

.tag-list,
.deliverable-list,
.contact-list,
.footer-links,
.page-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag,
.deliverable-list li,
.footer-links a,
.page-list li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(93, 139, 255, 0.12);
}

.cards-2,
.cards-3,
.timeline-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card,
.use-case,
.compare-card {
  padding: 24px;
}

.index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  margin-bottom: 16px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 700;
}

.pain-card {
  min-height: 180px;
}

.pain-card p {
  color: var(--text);
  font-size: 1.02rem;
}

.pain-summary,
.cta-strip,
.page-intro {
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 168, 219, 0.08), rgba(93, 139, 255, 0.08));
  border: 1px solid rgba(93, 139, 255, 0.12);
}

.cta-strip,
.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-strip h3,
.simple-card h3,
.timeline-card h3 {
  margin: 6px 0 0;
}

.quote {
  margin-top: 16px;
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.contact-side {
  display: grid;
  gap: 18px;
}

.contact-card strong.mail {
  display: inline-block;
  margin: 14px 0;
  font-size: 1.08rem;
}

.link-row a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(93, 139, 255, 0.12);
  color: var(--muted);
}

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(93, 139, 255, 0.1);
  background: rgba(255, 255, 255, 0.56);
}

.footer-note li,
.contact-list li {
  position: relative;
  padding-left: 18px;
  margin-top: 10px;
  color: var(--muted);
}

.footer-note,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.footer-note li::before,
.contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 168, 219, 0.34);
}

.footer-copy {
  color: var(--muted);
  margin: 18px 0 0;
}

.page-shell {
  min-height: 100vh;
}

.page-hero .wrap {
  display: grid;
  gap: 24px;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(93, 139, 255, 0.12);
  color: var(--accent);
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.page-section {
  padding: 16px 0 48px;
}

.simple-card ul,
.timeline-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.simple-card li,
.timeline-card li {
  margin-top: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-shell .reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .hero-grid,
  .visual-band,
  .value-layout,
  .about-grid,
  .contact-grid,
  .footer-grid,
  .page-grid,
  .simple-grid {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    position: static;
  }

  .hero-visual {
    min-height: auto;
  }
}

@media (max-width: 840px) {
  .nav,
  .header-cta {
    display: none;
  }

  .page-shell .site-header .wrap {
    padding: 12px 0;
    align-items: flex-start;
  }

  .page-shell .nav,
  .page-shell .header-cta {
    display: inline-flex;
  }

  .page-shell .nav {
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 0.88rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(93, 139, 255, 0.12);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav a {
    width: 100%;
    padding: 12px 6px;
  }

  .site-header.is-open .header-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero h1,
  .page-hero h1 {
    max-width: none;
  }
}

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

  .cards-2,
  .cards-3,
  .compare-grid,
  .hero-meta,
  .hero-visual,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: block;
    padding: 18px;
  }

  .hero-image.main,
  .hero-image.side,
  .hero-abstract,
  .hero-badge,
  .hero-note {
    min-height: 180px;
    margin-bottom: 14px;
  }

  .section,
  .page-section {
    padding: 40px 0;
  }

  .cta-strip,
  .page-intro {
    align-items: flex-start;
    flex-direction: column;
  }
}
