:root {
  --blue: #153f8f;
  --blue-deep: #071a3d;
  --blue-bright: #2f80ed;
  --ink: #111318;
  --ink-soft: #202735;
  --muted: #5d6675;
  --line: #dbe3ef;
  --soft: #f3f7fb;
  --white: #ffffff;
  --cyan: #22a6b3;
  --shadow: 0 30px 90px rgba(8, 28, 64, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "Noto Sans JP", "Yu Gothic", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
  background: #f7f9fc;
  font-feature-settings: "palt" 1;
  text-rendering: geometricPrecision;
}

p,
h1,
h2,
h3 {
  word-break: auto-phrase;
  overflow-wrap: break-word;
  line-break: strict;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(219, 227, 239, 0.72);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  z-index: 11;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
  transition: transform 240ms ease, opacity 200ms ease, top 240ms ease;
}

.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 27px; }

.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 310px;
}

.brand-logo {
  display: block;
  width: min(310px, 38vw);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  color: #2d3441;
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  white-space: nowrap;
}

.nav-cta {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-weight: 700;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: clamp(56px, 8vw, 116px) clamp(20px, 6vw, 88px) 72px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(7, 26, 61, 0.07) 0%, transparent 28%),
    radial-gradient(circle at 76% 24%, rgba(47, 128, 237, 0.20), transparent 31%),
    radial-gradient(circle at 86% 74%, rgba(34, 166, 179, 0.14), transparent 28%),
    linear-gradient(135deg, #f9fbff 0%, #eef4fb 48%, #e6eef8 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 63, 143, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 63, 143, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.86) 52%, rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.project-copy h2,
.company-section h2,
.contact-section h2 {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 5.7vw, 78px);
  letter-spacing: 0.01em;
  line-height: 1.16;
}

.lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: #394252;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 500;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 750;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 16px 36px rgba(21, 63, 143, 0.24);
}

.button.secondary {
  color: var(--blue);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
}

.hero-graphic {
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(8, 28, 64, 0.08));
}

.tech-tags {
  position: absolute;
  left: 8px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.tech-tags span {
  padding: 7px 12px;
  border: 1px solid rgba(21, 63, 143, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 32px rgba(18, 45, 84, 0.08);
}

.section,
.project-section,
.company-section,
.contact-section {
  padding: clamp(72px, 9vw, 124px) clamp(20px, 6vw, 88px);
}

.intro {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(120deg, rgba(47, 128, 237, 0.16), transparent 34%),
    linear-gradient(135deg, #07101f 0%, #0e1830 52%, #081220 100%);
}

.intro p {
  max-width: 1060px;
  margin: 0;
  color: #f5f8fc;
  font-size: clamp(24px, 3.6vw, 48px);
  font-weight: 750;
  line-height: 1.44;
  letter-spacing: 0.01em;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.44fr 1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading h2,
.project-copy h2,
.company-section h2,
.contact-section h2 {
  font-size: clamp(32px, 4vw, 56px);
}

.project-copy h2 {
  max-width: 760px;
  font-size: clamp(31px, 3.55vw, 50px);
  line-height: 1.22;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 36px 34px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: background 200ms ease;
}

.service-card:hover {
  background: #fafcff;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border: 1px solid rgba(21, 63, 143, 0.18);
  color: var(--blue);
  background: linear-gradient(135deg, #f5f9ff 0%, #eaf1fb 100%);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-index {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 14px 0 14px;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.4;
}

.value-list h3 {
  margin: 46px 0 16px;
  font-size: 24px;
  font-weight: 760;
  line-height: 1.35;
}

.service-card p,
.project-copy p,
.value-list p,
.company-section p,
.contact-section p,
.company-info {
  color: var(--muted);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.95;
}

.project-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(243, 247, 251, 0.96)),
    linear-gradient(90deg, rgba(21, 63, 143, 0.05) 1px, transparent 1px);
  background-size: auto, 84px 84px;
}

.project-copy p {
  max-width: 720px;
  margin: 24px 0 0;
}

.project-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.project-panel {
  max-width: 480px;
  margin-left: 0;
  margin-right: auto;
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px 16px;
  border-bottom: 1px solid rgba(161, 185, 216, 0.46);
  margin-bottom: 12px;
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(34, 166, 179, 0.12);
  color: #0f6470;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.panel-meta {
  color: #5d6675;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.project-diagram {
  display: block;
  width: 100%;
  height: auto;
}

.value-section {
  background: var(--white);
}

.value-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.value-list div {
  min-height: 230px;
  padding: 30px;
  background: var(--white);
}

.value-list h3 {
  margin-top: 0;
}

.company-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
  background:
    linear-gradient(120deg, rgba(47, 128, 237, 0.16), transparent 38%),
    linear-gradient(135deg, #08111f 0%, #101a30 48%, #050b14 100%);
}

.company-section h2,
.company-section .eyebrow {
  color: var(--white);
}

.company-section p {
  max-width: 640px;
  margin-top: 24px;
  color: #c7d2e3;
}

.company-profile {
  display: flex;
  flex-direction: column;
}

.company-profile .eyebrow {
  margin-bottom: 40px;
  color: #5e91ff;
}

.company-info {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.company-info div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.company-info dt {
  color: #8fb1ff;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  align-self: center;
}

.company-info dd {
  margin: 0;
  color: #f4f7fb;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.company-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  color: #8fb1ff;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a6b3;
  box-shadow: 0 0 0 4px rgba(34, 166, 179, 0.18);
  animation: status-pulse 2.4s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 166, 179, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(34, 166, 179, 0.08); }
}

.company-section h2.philosophy {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 40px 0 0;
  font-size: inherit;
  font-weight: normal;
  line-height: 1.3;
  letter-spacing: 0;
}

.philosophy-item {
  display: block;
  position: relative;
}

.philosophy-index {
  display: block;
  margin-bottom: 12px;
  color: #5e91ff;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.philosophy-word {
  display: block;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.philosophy-gloss {
  display: block;
  margin-top: 12px;
  color: #b9c8e6;
  font-family: "Inter", "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.philosophy-outro {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background:
    radial-gradient(circle at 88% 24%, rgba(34, 166, 179, 0.14), transparent 24%),
    linear-gradient(135deg, #f8fbff 0%, #edf4fb 100%);
}

.contact-section p {
  max-width: 680px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 6vw, 88px);
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 940px) {
  .contact-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    padding: 14px clamp(16px, 4vw, 32px);
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px clamp(16px, 4vw, 32px) 24px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(8, 28, 64, 0.10);
    backdrop-filter: blur(20px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 240ms ease, opacity 200ms ease, visibility 0s linear 240ms;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 240ms ease, opacity 200ms ease;
  }

  .nav a {
    display: block;
    padding: 16px 14px;
    font-size: 15px;
    border-radius: 4px;
    border-bottom: 1px solid rgba(219, 227, 239, 0.5);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav a:active {
    background: rgba(21, 63, 143, 0.06);
  }

  .nav-cta {
    margin-top: 12px;
    padding: 14px 18px !important;
    border: 1px solid var(--line) !important;
    border-radius: 4px !important;
    text-align: center;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero,
  .project-section,
  .company-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .service-grid,
  .value-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 16px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: min(230px, 70vw);
  }

  .hero {
    padding-top: 44px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .metric.wide {
    grid-column: auto;
  }

  .company-info div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .panel-row {
    flex-direction: column;
  }

  .panel-row strong {
    text-align: left;
  }
}
