:root {
  --ink: #182334;
  --muted: #667085;
  --line: #d9e0ea;
  --soft: #f4f7fb;
  --panel: #ffffff;
  --navy: #133c68;
  --deep: #0e253f;
  --blue: #1f77d0;
  --sky: #e7f2ff;
  --yellow: #f5b942;
  --shadow: 0 18px 45px rgba(17, 34, 57, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #eef3f8;
  color: var(--ink);
  font-family: Inter, "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

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

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

.site-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 34, 57, 0.12);
}

.top-note {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 24px;
  background: var(--deep);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.top-note span {
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  align-items: center;
  min-height: 84px;
  padding: 0 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 24px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--deep));
  color: #fff;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 34px;
  color: #344054;
  font-size: 15px;
  font-weight: 800;
}

.header-actions,
.hero-actions,
.contact-actions {
  display: flex;
  gap: 12px;
}

.header-actions {
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.button-primary {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #1d2530;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.button-ghost {
  background: #fff;
  color: var(--ink);
}

.button-large {
  min-width: 188px;
  min-height: 58px;
  font-size: 17px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.82fr);
  gap: 54px;
  min-height: 650px;
  align-items: center;
  padding: 76px 68px 54px;
  background:
    linear-gradient(90deg, rgba(11, 29, 48, 0.96) 0%, rgba(15, 48, 78, 0.88) 43%, rgba(15, 48, 78, 0.5) 68%, rgba(15, 48, 78, 0.18) 100%),
    url("../images/生成画像1.png") center right / cover no-repeat,
    linear-gradient(135deg, #dae4ef 0%, #f7fafc 100%);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(245, 185, 66, 0.45);
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.18);
  color: #ffe3a5;
  font-size: 14px;
  font-weight: 900;
}

.hero h1 {
  margin: 24px 0 20px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.14;
}

.lead {
  max-width: 690px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.85;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.trust-row div,
.improve-card,
.recruit-points article {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.trust-row div {
  padding: 18px;
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  box-shadow: var(--shadow);
  filter: saturate(0.9) contrast(1.02);
}

.improve-card {
  position: absolute;
  bottom: -38px;
  width: calc(50% - 10px);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.improve-card strong,
.improve-card span {
  display: block;
}

.improve-card strong {
  color: var(--navy);
}

.improve-card span {
  margin-top: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.card-one {
  left: 0;
}

.card-two {
  right: 0;
}

.section {
  padding: 84px 68px;
}

.section:nth-of-type(even) {
  background: #fff;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
  margin-bottom: 58px;
}

.section-heading.compact {
  margin-bottom: 30px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.section-kicker.yellow {
  color: var(--yellow);
}

.section h2,
.recruit h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.14;
}

.section-heading > p,
.recruit-copy p {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card,
.info-card,
.contact-card,
.flow-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.08);
}

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

.service-card span,
.flow-grid span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 14px;
  background: var(--sky);
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

.service-card h3 {
  margin: 24px 0 12px;
  font-size: 28px;
}

.service-card p,
.info-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.75;
}

.tags {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.tags em {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: #344054;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.works-section {
  background: var(--soft);
}

.works-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
  gap: 28px;
}

.work-photo {
  display: grid;
  min-height: 190px;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    repeating-linear-gradient(135deg, rgba(31, 119, 208, 0.1) 0 2px, transparent 2px 22px),
    #eef6ff;
  color: #475467;
  font-size: 20px;
  font-weight: 900;
}

.work-photo.large {
  position: relative;
  min-height: 320px;
}

.work-photo.large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.work-photo.large figcaption {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.work-photo-stack {
  display: grid;
  gap: 28px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flow-grid article {
  display: flex;
  min-height: 120px;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.flow-grid strong {
  display: block;
  font-size: 22px;
}

.flow-grid p {
  margin: 6px 0 0;
  color: var(--muted);
}

.recruit {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
  padding: 84px 68px;
  background: #164873;
  color: #fff;
}

.recruit-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.recruit-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.recruit-points article {
  min-height: 120px;
  padding: 24px;
}

.recruit-points strong,
.recruit-points span {
  display: block;
}

.recruit-points strong {
  font-size: 22px;
}

.recruit-points span {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.company-contact {
  background: #fff;
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-card,
.contact-card {
  padding: 28px;
  background: #f8fbff;
}

.info-card h3,
.contact-card h3 {
  margin: 0 0 18px;
  font-size: 24px;
}

.phone {
  display: block;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900;
}

.site-footer {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 68px;
  background: var(--deep);
  color: #fff;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .site-header,
  .hero,
  .section,
  .recruit,
  .site-footer {
    padding-right: 28px;
    padding-left: 28px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

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

  .trust-row,
  .service-grid,
  .flow-grid,
  .recruit-points {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .top-note,
  .hero-actions,
  .contact-actions,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header,
  .hero,
  .section,
  .recruit,
  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .top-note {
    gap: 10px;
    text-align: center;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-actions .button {
    flex: 1;
  }

  .hero-media {
    margin-bottom: 54px;
  }

  .improve-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .trust-row,
  .service-grid,
  .flow-grid,
  .recruit-points {
    grid-template-columns: 1fr;
  }

  .section,
  .recruit {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .brand span:last-child {
    font-size: 20px;
  }
}
