/* 自前フォント（Google Fontsの代わり。使用文字のみに絞った軽量版） */
@font-face{font-family:"Noto Sans JP";font-style:normal;font-weight:400 800;font-display:swap;src:url("/assets/fonts/NotoSansJP-subset.woff2") format("woff2");}
@font-face{font-family:"Manrope";font-style:normal;font-weight:400 800;font-display:swap;src:url("/assets/fonts/Manrope-subset.woff2") format("woff2");}

:root {
  --ink: #07111f;
  --muted: #748092;
  --line: #e3e8f0;
  --soft: #f7f9fc;
  --white: #fff;
  --blue: #2b78ff;
  --cyan: #45c7ff;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: .01em;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.en { font-family: "Manrope", sans-serif; letter-spacing: 0; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.94);
  border-color: rgba(219, 227, 239, .72);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 42px rgba(7,17,31,.08);
}
.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand-logo {
  width: auto;
  height: 42px;
}
.site-header:not(.is-scrolled) .brand-logo {
  filter: brightness(0) invert(1);
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.nav a {
  position: relative;
  padding: 8px 0;
}
.site-header:not(.is-scrolled) .nav a {
  color: rgba(255,255,255,.9);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width .24s ease;
}
.nav a:hover::after { width: 100%; }
.nav a.nav-contact {
  padding: 14px 22px;
  color: var(--white);
  background: linear-gradient(135deg, #1d4ed8 0%, #2b78ff 48%, #45c7ff 100%);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(43,120,255,.28);
}
.nav a.nav-contact:hover {
  box-shadow: 0 18px 38px rgba(43,120,255,.36);
}
.nav a.nav-contact::after { display: none; }

.hero {
  position: relative;
  min-height: clamp(680px, 88vh, 840px);
  padding: 108px 0 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3,14,30,.95) 0%, rgba(8,50,83,.78) 44%, rgba(22,29,55,.5) 100%),
    radial-gradient(circle at 70% 24%, rgba(207,250,254,.2), rgba(103,232,249,.1) 28%, rgba(7,17,31,0) 58%),
    linear-gradient(120deg, rgba(34,211,238,.18) 0%, rgba(125,211,252,.14) 42%, rgba(168,85,247,.09) 100%),
    url("/assets/hero/top.webp");
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, #000 58%, transparent);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 32%, rgba(236,254,255,.22), transparent 20%),
    linear-gradient(115deg, rgba(103,232,249,.13), rgba(186,230,253,.09) 44%, rgba(192,132,252,.1) 82%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  display: block;
  padding-top: 2vh;
}
.hero-copy-block {
  margin-left: 0;
  padding-left: 0;
  text-align: left;
}
.eyebrow {
  margin: 0 0 20px;
  color: var(--blue);
  font: 800 12px/1.3 "Manrope", sans-serif;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font: 800 clamp(54px, 8vw, 116px)/.9 "Manrope", sans-serif;
}
.hero h1 {
  transform: translateX(-.035em);
}
.hero h1 span { display: block; }
.hero-ja {
  margin: 28px 0 10px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(16px, 1.65vw, 23px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .02em;
  color: rgba(255,255,255,.84);
}
.lead {
  margin: 26px 0 0;
  max-width: 620px;
  font-size: clamp(17px, 1.75vw, 22px);
  font-weight: 700;
  line-height: 1.75;
  color: rgba(255,255,255,.86);
}
.hero-statement {
  margin: 0;
  max-width: 760px;
  color: rgba(255,255,255,.82);
}
.hero-statement p {
  margin: 0;
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 800;
  line-height: 1.9;
  letter-spacing: .02em;
}
.lead + .lead {
  margin-top: 14px;
  max-width: 560px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.72);
}
.hero .btn {
  border-color: rgba(255,255,255,.72);
  color: var(--white);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.hero .btn.primary {
  border-color: var(--white);
  color: var(--ink);
  background: var(--white);
}

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 104px 0; }
.section.gray { background: var(--soft); }
.section.dark { color: var(--white); background: var(--ink); }
.section-head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 58px;
  align-items: start;
  margin-bottom: 44px;
}
.section-title {
  margin: 0;
  font: 800 clamp(38px, 5.4vw, 76px)/.96 "Manrope", sans-serif;
}
.service-section-title {
  white-space: nowrap;
  font-size: clamp(24px, 3.2vw, 42px);
  letter-spacing: .01em;
}
.section-head p {
  margin: 8px 0 0;
  max-width: 690px;
  color: #3d4859;
  font-size: 15px;
  font-weight: 500;
}
.section-head .service-section-title + p {
  margin-top: 0;
}
.section-head.head-wide {
  grid-template-columns: max-content 1fr;
  column-gap: 8px;
}
.service-intro {
  max-width: 820px;
}
.service-intro h3 {
  margin: 0 0 24px;
  font-size: clamp(23px, 2.6vw, 36px);
  line-height: 1.55;
  letter-spacing: .01em;
}
.service-intro p {
  margin: 0 0 18px;
  max-width: 820px;
  color: #3d4859;
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
}
.service-intro p:last-child {
  margin-bottom: 0;
}
.dark .section-head p { color: rgba(255,255,255,.76); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn.primary { color: var(--white); background: var(--ink); }
.btn.light { color: var(--ink); background: var(--white); border-color: var(--white); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--white);
}
.service-card {
  position: relative;
  min-height: 340px;
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18,104,214,.07), transparent 42%),
    var(--white);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.service-card::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 26px;
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18,104,214,.42));
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(18,104,214,.25);
  box-shadow: 0 26px 70px rgba(7,17,31,.1), 0 0 0 1px rgba(18,104,214,.08);
}
.number {
  display: block;
  color: rgba(7,17,31,.88);
  font: 800 clamp(40px, 4vw, 58px)/.86 "Manrope", sans-serif;
  letter-spacing: -.055em;
}
.service-card h3 { margin: 26px 0 14px; font-size: 22px; line-height: 1.38; }
.service-card p { margin: 0; color: #4d596b; font-size: 14px; }
.service-card .service-lead {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: .01em;
}
.service-card ul { margin: 22px 0 0; padding: 0; list-style: none; font-size: 13px; font-weight: 700; }
.service-card li { padding: 7px 0; border-top: 1px solid #edf1f7; }

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 58px;
  align-items: center;
}
.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 28px 70px rgba(7,17,31,.14);
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.image-frame:hover img { transform: scale(1.05); }
.copy-block h2 { margin: 0 0 20px; font-size: clamp(30px, 4vw, 52px); line-height: 1.25; }
.copy-block p { margin: 0; color: #3b4658; font-size: 15px; }

.matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.matrix div {
  min-height: 132px;
  padding: 20px;
  color: var(--white);
  background: #111f33;
  border-radius: 6px;
}
.matrix div:nth-child(2) { background: #173b74; }
.matrix div:nth-child(3) { background: #244e8d; }
.matrix div:nth-child(4) { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.matrix strong { display: block; font: 800 21px/1.2 "Manrope", sans-serif; }
.matrix span { display: block; margin-top: 12px; font-size: 13px; opacity: .84; }

.page-hero {
  position: relative;
  min-height: 29vh;
  padding: 86px 0 38px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,17,31,.82), rgba(7,17,31,.52)), var(--page-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
  margin: 0;
  font: 800 clamp(24px, 2.8vw, 38px)/1.05 "Manrope", "Noto Sans JP", sans-serif;
  letter-spacing: .01em;
}
.page-hero p { max-width: 660px; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.82); }
.company-hero h1 { font-size: clamp(24px, 2.8vw, 38px); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.detail-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.detail-card h3 { margin: 0 0 12px; font-size: 21px; }
.detail-card p { margin: 0; color: #465267; font-size: 14px; }

.case-intro-section {
  padding-bottom: 78px;
}
.case-lead {
  max-width: 860px;
}
.case-lead h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.26;
  letter-spacing: .01em;
}
.case-lead p:not(.eyebrow) {
  margin: 0;
  max-width: 760px;
  color: #3d4859;
  font-size: 15px;
  font-weight: 500;
}
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 52px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--white);
}
.case-metrics div {
  min-height: 150px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(43,120,255,.08), transparent 52%),
    var(--white);
}
.case-metrics strong {
  display: block;
  font: 800 clamp(30px, 4vw, 56px)/1 "Manrope", sans-serif;
  letter-spacing: -.04em;
}
.case-metrics span {
  display: block;
  margin-top: 18px;
  color: #465267;
  font-size: 13px;
  font-weight: 800;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.case-card {
  position: relative;
  min-height: 360px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(140deg, rgba(7,17,31,.04), transparent 44%),
    var(--white);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.case-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(43,120,255,.28);
  box-shadow: 0 24px 64px rgba(7,17,31,.1);
}
.case-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  color: var(--blue);
  background: rgba(43,120,255,.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.case-card h3 {
  margin: 22px 0 14px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.42;
}
.case-card p {
  margin: 0;
  color: #465267;
  font-size: 14px;
}
.case-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.case-card li {
  padding: 7px 10px;
  color: #243044;
  background: #f0f4fa;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.case-capability {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 64px;
  align-items: start;
}
.case-capability h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.3;
}
.capability-list {
  border-top: 1px solid var(--line);
}
.capability-list div {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.capability-list span {
  color: var(--blue);
  font: 800 18px/1 "Manrope", sans-serif;
}
.capability-list p {
  margin: 0;
  color: #3d4859;
  font-size: 14px;
  font-weight: 600;
}

.company-table { border-top: 1px solid var(--line); }
.company-detail { max-width: 920px; }
.company-table dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  margin: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.company-table dt { color: var(--muted); font-weight: 500; }
.company-table dd { margin: 0; font-weight: 400; }
.business-list {
  margin: 0;
  padding-left: 1.15em;
}
.business-list li + li { margin-top: 10px; }

.contact-panel {
  padding: 40px;
  color: var(--white);
  background: linear-gradient(135deg, #07111f, #123a78 58%, #2b78ff);
  border-radius: 6px;
}
.contact-panel p { max-width: 720px; color: rgba(255,255,255,.82); }

footer {
  padding: 48px 0;
  color: rgba(255,255,255,.74);
  background: #050a14;
}
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}
footer .brand-logo { height: 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; font-weight: 800; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .nav { display: none; }
  .hero {
    min-height: 86vh;
    background:
      linear-gradient(180deg, rgba(3,14,30,.9), rgba(8,50,83,.6)),
      radial-gradient(circle at 64% 18%, rgba(207,250,254,.24), rgba(103,232,249,.1) 30%, transparent 60%),
      linear-gradient(135deg, rgba(34,211,238,.18), rgba(125,211,252,.13) 45%, rgba(168,85,247,.1)),
      url("/assets/hero/top.webp");
    background-size: cover;
    background-position: center top;
  }
  .hero-inner, .section-head, .split, .detail-grid, .case-grid, .case-metrics, .case-capability { grid-template-columns: 1fr; }
  .service-grid, .matrix { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .company-table dl { grid-template-columns: 1fr; gap: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== スマホ用メニュー（920px以下） ===== */
.menu-toggle { display: none; }
.mobile-menu { display: none; }
@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    width: 46px; height: 46px; padding: 0; border: 0; border-radius: 8px;
    background: transparent; cursor: pointer;
  }
  .menu-toggle span {
    display: block; width: 24px; height: 2px; border-radius: 2px;
    background: var(--white); transition: transform .3s ease, opacity .3s ease, background .3s ease;
  }
  .site-header.is-scrolled .menu-toggle span,
  body.menu-open .menu-toggle span { background: var(--ink); }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  body.menu-open .site-header {
    background: var(--white);
    border-color: rgba(219, 227, 239, .72);
    box-shadow: 0 16px 42px rgba(7,17,31,.08);
  }
  body.menu-open .site-header .brand-logo { filter: none; }

  .mobile-menu {
    display: flex; flex-direction: column;
    position: fixed; inset: 70px 0 auto; z-index: 49;
    max-height: calc(100vh - 70px); overflow-y: auto;
    padding: 8px 20px 28px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(7,17,31,.12);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu a {
    display: block; padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink); font-size: 16px; font-weight: 700;
  }
  .mobile-menu a.nav-contact {
    margin-top: 20px; padding: 16px; border: 0; border-radius: 999px; text-align: center;
    color: var(--white); background: linear-gradient(135deg, #123a78 0%, #2b78ff 55%, #45c7ff 100%);
  }
}
