:root {
  --ink: #162126;
  --muted: #63717a;
  --line: #d8e1e3;
  --paper: #f6f3eb;
  --surface: #ffffff;
  --teal: #007d79;
  --teal-dark: #075a58;
  --amber: #d28a25;
  --coral: #c85d50;
  --graphite: #24333a;
  --blue: #306c9c;
  --shadow: 0 18px 40px rgba(18, 32, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.7;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(246, 243, 235, 0.94);
  box-shadow: 0 1px 0 rgba(22, 32, 38, 0.12);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.filters,
.process-tabs,
.task-tabs,
.case-tabs,
.case-task-tabs {
  display: flex;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 7px;
  font-size: 13px;
  letter-spacing: 0;
}

.nav {
  flex: 0 0 auto;
  gap: clamp(12px, 3vw, 30px);
  font-size: 14px;
  font-weight: 800;
}

.global-search {
  display: flex;
  min-width: 260px;
  max-width: 440px;
  flex: 1 1 300px;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}

.global-search input {
  min-height: 40px;
  width: 100%;
  border: 1px solid currentColor;
  border-radius: 7px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  padding: 150px clamp(20px, 5vw, 72px) 72px;
  overflow: hidden;
  align-items: center;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 18, 22, 0.84) 0%, rgba(10, 18, 22, 0.58) 42%, rgba(10, 18, 22, 0.12) 74%),
    linear-gradient(180deg, rgba(10, 18, 22, 0.12) 0%, rgba(10, 18, 22, 0.46) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.filters,
.process-tabs,
.task-tabs,
.case-tabs,
.case-task-tabs {
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.filter,
.case-tab {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 900;
}

.primary-action {
  padding: 12px 20px;
  color: #fff;
  background: var(--teal);
}

.secondary-action {
  padding: 11px 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 28px;
}

.section-heading.row {
  display: flex;
  max-width: none;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
}

.section-note {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.section-note.wide {
  max-width: 760px;
  margin-top: 12px;
}

.overview-grid,
.service-grid,
.case-grid {
  display: grid;
  gap: 18px;
}

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

.overview-grid article {
  min-height: 220px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric {
  display: block;
  margin-bottom: 18px;
  color: var(--teal-dark);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: 1;
}

.services,
.cases {
  background: #fff;
}

.search-box {
  display: grid;
  gap: 6px;
  width: min(360px, 100%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: flex-end;
}

.search-box input,
.search-box select {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 14px;
  color: var(--ink);
  background: #fff;
}

.filter,
.case-tab {
  border: 1px solid var(--line);
  padding: 9px 14px;
  color: var(--graphite);
  background: #fff;
  cursor: pointer;
}

.process-tabs {
  margin-bottom: 12px;
}

.task-tabs,
.case-task-tabs {
  margin-bottom: 16px;
}

.filter.active,
.case-tab.active {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.task-filter {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 13px;
}

.result-line {
  min-height: 26px;
  margin: 16px 0;
  color: var(--muted);
  font-weight: 800;
}

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

.service-card,
.case-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 35, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.service-title {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.service-title h3 {
  margin: 0;
}

.logo-badge {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-dark);
  background: #f4fbf9;
  font-size: 12px;
  font-weight: 900;
}

.tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #e4f2ef;
  font-size: 12px;
  font-weight: 900;
}

.card-link {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.service-card p,
.case-card p {
  margin: 0;
  color: var(--muted);
}

.provider {
  margin: 0 0 10px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 900;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.pill {
  border-radius: 999px;
  padding: 3px 8px;
  color: #3d4b52;
  background: #eef2f2;
  font-size: 12px;
  font-weight: 800;
}

.more-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.more-button {
  min-height: 44px;
  border: 1px solid var(--teal);
  border-radius: 7px;
  padding: 9px 18px;
  color: var(--teal-dark);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.detail-main {
  padding-top: 78px;
}

.detail-section {
  background: #fff;
}

.back-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.detail-hero {
  display: flex;
  gap: 18px;
  align-items: center;
}

.detail-logo {
  width: 58px;
  height: 58px;
  font-size: 15px;
}

.detail-lead {
  max-width: 880px;
  margin: 26px 0 28px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.detail-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-grid h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

.detail-action {
  margin-top: 28px;
}

.task-pill {
  color: #6a4a14;
  background: #f7ead4;
}

.news {
  background: #ecf0ed;
}

.news-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.news-item time {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.news-item h3 {
  margin: 0 0 5px;
}

.news-item p {
  margin: 0;
  color: var(--muted);
}

.news-source {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.page-button {
  min-width: 42px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--graphite);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.page-button.active {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.case-card h3 {
  margin-top: 10px;
}

.case-tabs {
  margin-bottom: 12px;
}

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

.case-card .industry {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.compare {
  background: #f1eee5;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: #fff;
  background: var(--graphite);
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #12191d;
  font-size: 13px;
}

.footer p {
  margin: 0;
}

@media (max-width: 1180px) {
  .service-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 900px;
    align-items: start;
  }

  .overview-grid,
  .service-grid,
  .case-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-heading.row,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: absolute;
    flex-direction: column;
    gap: 14px;
  }

  .hero {
    min-height: 980px;
    padding-top: 154px;
  }

  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 16px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .global-search {
    width: 100%;
    min-width: 0;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }
}
