/* ==============================
   Design tokens
============================== */
:root {
  --color-main: #1B2D3C;
  --color-main-dark: #142431;
  --color-main-deep: #0D1E2B;
  --color-accent: #B22418;
  --color-accent-dark: #931B12;
  --color-bg: #F7F7F5;
  --color-bg-soft: #F0F0F0;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-soft: #4A4A4A;
  --color-text-subtle: #6E6E6E;
  --color-muted: #6E6E6E;
  --color-border: #DADADA;
  --color-line: #DADADA;
  --shadow-card: 0 20px 54px rgba(27, 45, 60, 0.10);
  --max-width: 1180px;
  --radius: 4px;
}

/* ==============================
   Base
============================== */
* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 16px;
  font-family:
    "Inter", "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.8;
}

body.is-menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ==============================
   Header / Navigation
============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 80px;
  padding: 0 max(24px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid rgba(218, 218, 218, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  transition:
    box-shadow 0.2s ease,
    min-height 0.2s ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  box-shadow: 0 12px 32px rgba(27, 45, 60, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 178px;
}

.logo-image {
  display: block;
  flex: 0 0 auto;
  width: 178px;
  max-width: 100%;
  height: auto;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.global-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: var(--radius);
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.global-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 6px;
  left: 13px;
  height: 2px;
  background: var(--color-main);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s ease;
}

.global-nav a:not(.nav-contact):hover,
.global-nav a:not(.nav-contact):focus-visible {
  color: var(--color-main);
  outline: none;
}

.global-nav a[aria-current="page"]:not(.nav-contact) {
  color: var(--color-main-dark);
}

.global-nav a:not(.nav-contact):hover::after,
.global-nav a:not(.nav-contact):focus-visible::after,
.global-nav a[aria-current="page"]:not(.nav-contact)::after {
  transform: scaleX(1);
}

.global-nav .nav-contact {
  margin-left: 8px;
  min-width: 176px;
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: none;
}

.global-nav .nav-contact:hover,
.global-nav .nav-contact:focus-visible {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(1px);
  outline: none;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.menu-button:hover,
.menu-button:focus-visible {
  border-color: var(--color-main);
  transform: translateY(1px);
  box-shadow: inset 0 2px 6px rgba(27, 45, 60, 0.08);
  outline: none;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-main-dark);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ==============================
   Hero
============================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  background: var(--color-main-deep);
}

.hero::before {
  content: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media picture {
  display: block;
  height: 100%;
}

.hero-media img {
  display: block;
  width: 112%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.68) contrast(0.96) sepia(0.08) brightness(1.03);
  transform: translateX(-8%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 760px;
  margin: 0 auto;
  padding: 96px 0 74px;
}

.hero-panel {
  width: min(551px, 100%);
  margin-left: auto;
  padding: 36px 38px 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: linear-gradient(
    135deg,
    rgba(13, 30, 43, 0.6),
    rgba(27, 45, 60, 0.42)
  );
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.12);
}

.hero-copy {
  margin-bottom: 22px;
}

.hero-copy,
.hero .hero-lead,
.hero .hero-actions {
  width: auto;
  max-width: none;
  margin-left: 0;
}

@media (min-width: 1041px) {
  .hero-copy h1 {
    margin-bottom: 0;
  }

  .hero .section-kicker {
    color: rgba(240, 240, 240, 0.92);
  }

  .hero-lead {
    margin-bottom: 28px;
  }
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  color: var(--color-main-deep);
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 760px;
  color: var(--color-white);
  font-size: clamp(2.25rem, 3.7vw, 2.75rem);
  font-weight: 700;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.hero h1 span {
  display: block;
}

.hero h1 .hero-title-narrow {
  display: none;
}

.keep-phrase {
  display: inline-block;
}

h2 {
  margin-bottom: 18px;
  color: var(--color-main-deep);
  font-size: clamp(2rem, 3.1vw, 2.625rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 12px;
  color: var(--color-main-deep);
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.9;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.hero .section-kicker {
  color: #F0F0F0;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions .button,
.cta-actions .button {
  min-width: 176px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(1px);
  outline: none;
}

.button-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: none;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--color-accent-dark);
}

.button-ghost {
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-main-dark);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--color-accent);
  background: var(--color-white);
  box-shadow: inset 0 2px 6px rgba(27, 45, 60, 0.08);
}

.hero .button-ghost {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  backdrop-filter: blur(12px);
}

.hero .button-ghost:hover,
.hero .button-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.12);
}

@media (min-width: 1041px) {
  .hero .button-ghost {
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.88);
    color: var(--color-main-deep);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .hero .button-ghost:hover,
  .hero .button-ghost:focus-visible {
    border-color: var(--color-white);
    background: var(--color-white);
    color: var(--color-main-dark);
    box-shadow: inset 0 2px 7px rgba(27, 45, 60, 0.1);
  }
}

.button-light {
  background: var(--color-white);
  color: var(--color-main-dark);
}

.button-light:hover,
.button-light:focus-visible {
  box-shadow: inset 0 2px 7px rgba(27, 45, 60, 0.1);
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--color-white);
}

.button-outline-light:hover,
.button-outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.16);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(650px, 100%);
  margin: 48px 0 0 auto;
  padding: 0 20px;
  border: 1px solid rgba(27, 45, 60, 0.38);
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(13, 30, 43, 0.52),
    rgba(13, 30, 43, 0.7)
  );
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.hero-stats div {
  display: grid;
  grid-template-columns: 38px minmax(108px, 1fr);
  grid-template-areas:
    "icon number"
    "icon label";
  column-gap: 14px;
  align-items: center;
  justify-content: start;
  min-height: 88px;
  padding: 12px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  text-align: left;
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stat-icon {
  grid-area: icon;
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.hero-stats dt {
  grid-area: number;
  color: var(--color-white);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-stats dt span {
  display: inline-block;
  min-width: 74px;
}

.hero-stats dd {
  grid-area: label;
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.hero-stats dd span {
  display: block;
}

/* ==============================
   Shared sections
============================== */
.section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 108px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading p:not(.section-kicker) {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.85;
}

.text-line {
  display: block;
}

.issue-section,
.strengths-section,
.flow-section {
  border-top: 1px solid var(--color-line);
}

/* ==============================
   Issues
============================== */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.issue-hint {
  width: min(720px, 100%);
  margin: 38px auto 0;
  padding: 32px 42px 34px;
  border: 1px solid rgba(27, 45, 60, 0.44);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 0 0 3px rgba(27, 45, 60, 0.05),
    0 14px 36px rgba(27, 45, 60, 0.05);
  text-align: center;
}

.issue-hint h3 {
  margin-bottom: 18px;
  color: var(--color-main-dark);
  font-size: 21px;
  font-weight: 700;
  white-space: nowrap;
}

.issue-hint p {
  margin-bottom: 24px;
  color: var(--color-text-soft);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.85;
  text-align: center;
  white-space: nowrap;
}

.issue-hint-actions {
  display: flex;
  justify-content: center;
}

.issue-card,
.service-card,
.case-card,
.flow-list li {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 10px 28px rgba(27, 45, 60, 0.045);
}

.issue-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 0;
}

.issue-card:nth-child(even) {
  background: linear-gradient(180deg, var(--color-white), var(--color-bg));
}

.issue-visual {
  display: block;
  width: 100%;
  height: clamp(204px, 16vw, 236px);
  box-sizing: border-box;
  padding: 14px;
  object-fit: contain;
  object-position: center;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg);
}

.issue-card-content {
  padding: 24px 24px 26px;
}

.issue-number {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--color-accent);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.issue-card h3 {
  font-size: 17px;
}

.issue-card p,
.service-card p,
.flow-list p,
.strength-item p {
  color: var(--color-muted);
  font-size: 14.5px;
  line-height: 1.8;
}

/* ==============================
   Services
============================== */
.services-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  padding: 112px max(24px, calc((100vw - var(--max-width)) / 2));
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.74) 0%,
      rgba(255, 255, 255, 0) 42%
    ),
    var(--color-bg);
}

.services-section::before {
  content: "";
  position: absolute;
  right: max(0px, calc((100vw - var(--max-width)) / 2 - 190px));
  bottom: -18px;
  width: min(50vw, 660px);
  height: min(50vw, 660px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%231B2D3C' stroke-width='3' opacity='.54'%3E%3Cpath d='M230 32 341 96v128l-111 64-111 -64v-128Z'/%3E%3Cpath d='M78 48 123 74v52l-45 26-45 -26v-52Z'/%3E%3Cpath d='M390 58 416 73v30l-26 15-26 -15v-30Z'/%3E%3Cpath d='M355 259 421 297v76l-66 38-66 -38v-76Z'/%3E%3Cpath d='M122 346 160 368v44l-38 22-38 -22v-44Z'/%3E%3C/g%3E%3Cg fill='%23C2C2C2' opacity='.22'%3E%3Cpath d='M160 110 281 180v140l-121 70-121 -70v-140Z'/%3E%3Cpath d='M325 127 397 168v84l-72 42-72 -42v-84Z'/%3E%3Cpath d='M432 108 467 128v40l-35 20-35 -20v-40Z'/%3E%3Cpath d='M200 376 248 404v56l-48 28-48 -28v-56Z'/%3E%3C/g%3E%3Cg fill='%231B2D3C' opacity='.1'%3E%3Cpath d='M422 208 465 233v50l-43 25-43 -25v-50Z'/%3E%3Cpath d='M92 330 120 346v32l-28 16-28 -16v-32Z'/%3E%3Cpath d='M380 14 399 25v22l-19 11-19 -11v-22Z'/%3E%3C/g%3E%3C/svg%3E")
    center / contain no-repeat;
  opacity: 0.34;
  pointer-events: none;
}

.services-section::after {
  content: "";
  position: absolute;
  top: 70px;
  left: max(12px, calc((100vw - var(--max-width)) / 2 - 110px));
  width: min(34vw, 410px);
  height: min(34vw, 410px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%231B2D3C' stroke-width='2.4' opacity='.42'%3E%3Cpath d='M158 35 239 82v92l-81 46-81 -46v-92Z'/%3E%3Cpath d='M289 22 312 35v26l-23 13-23 -13v-26Z'/%3E%3Cpath d='M70 198 118 226v56l-48 28-48 -28v-56Z'/%3E%3C/g%3E%3Cg fill='%23C2C2C2' opacity='.2'%3E%3Cpath d='M98 37 174 81v88l-76 44-76 -44v-88Z'/%3E%3Cpath d='M268 198 311 223v50l-43 25-43 -25v-50Z'/%3E%3C/g%3E%3C/svg%3E")
    center / contain no-repeat;
  opacity: 0.24;
  pointer-events: none;
}

.service-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1.08fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 34px;
}

.services-section .section-heading,
.services-section .section-action {
  position: relative;
  z-index: 1;
}

.service-feature-image {
  overflow: hidden;
  min-height: 390px;
  border-radius: 8px;
  background: var(--color-main-dark);
  box-shadow: 0 14px 34px rgba(27, 45, 60, 0.07);
}

.service-feature-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.78) contrast(0.94) sepia(0.06) brightness(1.01);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  margin: 0;
}

.service-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  min-height: 118px;
  padding: 26px 30px;
}

.service-card:nth-child(2) {
  background: linear-gradient(180deg, var(--color-bg), var(--color-white));
}

.service-card:nth-child(3) {
  border-color: var(--color-border);
}

.service-icon {
  display: block;
  grid-row: 1 / 4;
  align-self: center;
  width: 58px;
  height: 58px;
  margin: 0;
  border: 0;
  object-fit: contain;
  opacity: 1;
  filter: none;
}

.service-card h3,
.service-card p {
  grid-column: 2;
}

.service-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.section-action,
.case-action {
  display: flex;
  justify-content: center;
}

.section-action {
  margin-top: 56px;
}

.case-action {
  margin-top: 58px;
}

.arrow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: min(100%, 300px);
  min-height: 58px;
  padding: 0 34px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.arrow-button:hover,
.arrow-button:focus-visible {
  transform: translateY(1px);
  outline: none;
}

.arrow-button-light {
  border: 1px solid rgba(27, 45, 60, 0.46);
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-main-dark);
}

.arrow-button-light:hover,
.arrow-button-light:focus-visible {
  border-color: var(--color-main);
  background: var(--color-white);
  box-shadow: inset 0 2px 6px rgba(27, 45, 60, 0.08);
}

.issue-hint .arrow-button-light {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: none;
}

.issue-hint .arrow-button-light:hover,
.issue-hint .arrow-button-light:focus-visible {
  border-color: var(--color-accent-dark);
  background: var(--color-accent-dark);
  color: var(--color-white);
}

.arrow-button-dark {
  border: 1px solid rgba(178, 36, 24, 0.7);
  background: var(--color-accent);
  color: var(--color-white);
}

.arrow-button-dark:hover,
.arrow-button-dark:focus-visible {
  border-color: var(--color-accent-dark);
  background: var(--color-accent-dark);
}

/* ==============================
   Strengths
============================== */
.strength-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 44%);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.strength-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-line);
}

.strength-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--color-line);
}

.strength-item:first-child {
  border-top: 0;
}

.strength-number {
  color: var(--color-accent);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.strength-copy {
  max-width: 560px;
}

.strength-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: 0 18px 44px rgba(27, 45, 60, 0.09);
}

.strength-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 30, 43, 0.02), rgba(13, 30, 43, 0.16)),
    linear-gradient(90deg, rgba(13, 30, 43, 0.1), transparent 54%);
  pointer-events: none;
}

.strength-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(0.96);
}

/* ==============================
   Case studies
============================== */
.cases-section {
  width: 100%;
  max-width: none;
  padding: 112px max(24px, calc((100vw - var(--max-width)) / 2));
  background: linear-gradient(135deg, #0d1e2b 0%, #111e2a 45%, #1B2D3C 100%);
}

.cases-section h2 {
  color: var(--color-white);
  font-size: clamp(2.35rem, 3.7vw, 3.2rem);
  line-height: 1.22;
}

.cases-section .section-heading p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.72);
}

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

.case-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-color: var(--color-border);
  background: var(--color-white);
  box-shadow: 0 8px 24px rgba(27, 45, 60, 0.07);
  padding: 0;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(27, 45, 60, 0.13);
}

.case-card:hover .case-visual img {
  transform: scale(1.05);
}

.case-visual {
  position: relative;
  height: clamp(200px, 17vw, 260px);
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--color-bg-soft);
}

.case-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 30, 43, 0.02), rgba(13, 30, 43, 0.14)),
    linear-gradient(90deg, rgba(13, 30, 43, 0.06), transparent 46%);
  pointer-events: none;
}

.case-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(0.96) brightness(0.98);
  transition: transform 0.4s ease;
}

.case-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 26px 22px;
}

.case-label {
  margin-bottom: 14px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
}

.case-card h3 {
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  color: var(--color-main);
  font-weight: 600;
  line-height: 1.55;
}

.case-card dl,
.case-card dd {
  margin: 0;
}

.case-card dl {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 20px;
}

.case-card dt {
  margin-bottom: 4px;
  color: var(--color-main-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.case-card dd {
  color: var(--color-muted);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.78;
}

.case-card-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
  margin-top: auto;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 700;
}

.case-card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.case-card-link::after {
  content: "";
  width: 24px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: skewX(-34deg);
  transition:
    width 0.2s ease,
    transform 0.2s ease;
}

.case-card-link:hover,
.case-card-link:focus-visible {
  color: var(--color-accent-dark);
  outline: none;
}

.case-card-link:hover::after,
.case-card-link:focus-visible::after {
  width: 30px;
  transform: skewX(-34deg) translateX(2px);
}

/* ==============================
   Flow
============================== */
.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: visible;
}

.flow-list li {
  position: relative;
  min-height: 238px;
  padding: 30px 30px 30px 28px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(27, 45, 60, 0.045);
}

.flow-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -21px;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(27, 45, 60, 0.52);
  border-right: 2px solid rgba(27, 45, 60, 0.52);
  transform: translateY(-50%) rotate(45deg);
}

.flow-icon {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  object-fit: contain;
}

.flow-list li:nth-child(even) {
  background: var(--color-bg);
}

.flow-list span {
  display: block;
  margin-bottom: 10px;
  color: var(--color-main);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.flow-list h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

/* ==============================
   CTA
============================== */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 112px 24px;
  background: #1B2D3C;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/contact-consulting-bg.webp") center / cover no-repeat;
  opacity: 0.58;
  filter: saturate(0.82) contrast(0.92) brightness(0.95);
  transform: scale(1.01);
}

.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(27, 45, 60, 0.13), transparent 42%),
    linear-gradient(
      135deg,
      rgba(13, 30, 43, 0.86) 0%,
      rgba(27, 45, 60, 0.72) 45%,
      rgba(13, 30, 43, 0.9) 100%
    );
}

.cta-inner {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  color: var(--color-white);
  line-break: strict;
  text-wrap: balance;
}

.cta-inner p:not(.section-kicker) {
  max-width: 650px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.74);
  line-break: strict;
  line-height: 1.85;
  text-wrap: pretty;
}

.cta-actions {
  justify-content: center;
}

/* ==============================
   Footer
============================== */
.site-footer {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 22px 54px;
  padding: 28px max(24px, calc((100vw - var(--max-width)) / 2));
  border-top: 1px solid var(--color-line);
  background: var(--color-white);
  color: var(--color-muted);
}

.footer-logo {
  margin-bottom: 6px;
}

.footer-logo .logo-image {
  width: 168px;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--color-text-subtle);
  font-size: 13px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  width: 100%;
}

.footer-nav a {
  color: var(--color-text-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--color-main);
}

.copyright {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
  text-align: center;
  white-space: normal;
}

/* ==============================
   Contact page
============================== */
.contact-page-body {
  background:
    linear-gradient(135deg, rgba(240, 240, 240, 0.72), transparent 38%),
    var(--color-bg);
}

.contact-main {
  background:
    linear-gradient(90deg, rgba(27, 45, 60, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(27, 45, 60, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

.contact-form-section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 104px 0 112px;
}

.contact-form-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(500px, 1.26fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.contact-form-intro {
  padding-top: 12px;
}

.contact-form-intro h1 {
  margin-bottom: 22px;
  color: var(--color-main-deep);
  font-size: clamp(2.2rem, 3.4vw, 3.1rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.contact-form-intro > p {
  color: var(--color-text-soft);
  font-size: 15.5px;
  line-height: 1.9;
}

.contact-info-list {
  display: grid;
  gap: 0;
  margin: 44px 0 0;
  border-top: 1px solid var(--color-line);
}

.contact-info-list div {
  padding: 22px 0;
  border-bottom: 1px solid var(--color-line);
}

.contact-info-list dt {
  margin-bottom: 6px;
  color: var(--color-main-dark);
  font-size: 14px;
  font-weight: 700;
}

.contact-info-list dd {
  margin: 0;
  color: var(--color-muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.contact-form {
  padding: clamp(28px, 3.4vw, 40px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 56px rgba(27, 45, 60, 0.09);
}

.form-demo-note {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid rgba(191, 36, 25, 0.22);
  border-radius: var(--radius);
  background: rgba(191, 36, 25, 0.06);
  color: var(--color-main-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field span,
.form-check span {
  color: var(--color-text-soft);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.55;
}

.form-field em {
  margin-left: 4px;
  color: var(--color-main);
  font-size: 12px;
  font-style: normal;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
  font-size: 14.5px;
  line-height: 1.6;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-field input,
.form-field select {
  padding: 0 14px;
}

.form-field textarea {
  min-height: 160px;
  padding: 13px 14px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-main);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 45, 60, 0.12);
  outline: none;
}

.form-check {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 24px 0 0;
}

.form-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-main);
}

.form-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  margin-top: 30px;
}

.form-status {
  margin: 0;
  color: var(--color-main-dark);
  font-size: 14px;
  font-weight: 700;
}

/* ==============================
   Lower pages
============================== */
.lower-page {
  background: var(--color-white);
}

.lower-hero {
  position: relative;
  overflow: hidden;
  padding: 24px max(24px, calc((100vw - var(--max-width)) / 2)) 82px;
  border-bottom: 1px solid var(--color-line);
  background:
    linear-gradient(135deg, rgba(240, 244, 239, 0.92), rgba(255, 255, 255, 0) 42%),
    var(--color-white);
}

.lower-hero::before {
  content: "";
  position: absolute;
  left: max(18px, calc((100vw - var(--max-width)) / 2 - 56px));
  top: 116px;
  width: min(34vw, 340px);
  height: min(34vw, 340px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cg fill='none' stroke='%231B2D3C' stroke-width='2.2' opacity='.32'%3E%3Cpath d='M195 45 286 98v104l-91 52-91 -52v-104Z'/%3E%3Cpath d='M326 22 349 35v26l-23 13-23 -13v-26Z'/%3E%3Cpath d='M270 216 329 250v68l-59 34-59 -34v-68Z'/%3E%3C/g%3E%3Cg fill='%23C2C2C2' opacity='.16'%3E%3Cpath d='M110 120 188 165v90l-78 45-78 -45v-90Z'/%3E%3Cpath d='M310 200 343 219v38l-33 19-33 -19v-38Z'/%3E%3C/g%3E%3Cg fill='%231B2D3C' opacity='.08'%3E%3Cpath d='M305 106 341 127v42l-36 21-36 -21v-42Z'/%3E%3C/g%3E%3C/svg%3E")
    center / contain no-repeat;
  pointer-events: none;
}

.breadcrumb,
.lower-hero-layout {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  margin-bottom: 52px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-text-subtle);
  font-size: 12.5px;
  font-weight: 600;
  line-break: strict;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.breadcrumb li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 10px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.62;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--color-main-dark);
  outline: none;
}

.lower-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(430px, 1.04fr);
  gap: clamp(42px, 6vw, 76px);
  align-items: center;
}

.lower-hero-copy {
  min-width: 0;
}

.lower-hero-copy h1 {
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 3.25vw, 3.5rem);
  line-height: 1.22;
  line-break: strict;
  text-wrap: balance;
}

.lower-hero-copy h1 span {
  display: block;
}

.service-page .lower-hero-copy h1 span {
  white-space: nowrap;
}

.cases-page .lower-hero-copy h1 {
  font-size: clamp(2.35rem, 3vw, 3.25rem);
}

.lower-hero-copy > p {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--color-text-soft);
  font-size: 16px;
  line-break: strict;
  line-height: 2;
  text-wrap: pretty;
}

.lower-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lower-hero-actions .button {
  min-width: 176px;
}

.lower-hero-media {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(27, 45, 60, 0.18), rgba(255, 255, 255, 0)),
    var(--color-bg-soft);
  box-shadow: 0 20px 48px rgba(27, 45, 60, 0.1);
}

.lower-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 30, 43, 0.01), rgba(13, 30, 43, 0.14)),
    linear-gradient(90deg, rgba(13, 30, 43, 0.1), transparent 56%);
  pointer-events: none;
}

.lower-hero-media img,
.service-detail-card img,
.case-list-card img,
.related-case-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.82) contrast(0.95) sepia(0.04) brightness(1.02);
}

.service-detail-card img {
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  height: 100%;
  max-height: none;
  padding: 14px;
  object-fit: contain;
}

.lower-section,
.detail-section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.lower-section + .lower-section,
.detail-section + .detail-section {
  border-top: 1px solid var(--color-line);
}

.lower-section-soft {
  width: 100%;
  max-width: none;
  padding: 96px max(24px, calc((100vw - var(--max-width)) / 2));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0) 46%),
    var(--color-bg);
}

.lower-section-soft + .lower-section {
  border-top: 0;
}

.lower-section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.lower-section-heading-center {
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.lower-section-heading h2,
.detail-heading h2 {
  margin-bottom: 0;
}

.lower-section-heading p:not(.section-kicker) {
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.85;
}

.lower-section-heading-center h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin: 18px 0 0;
  background: var(--color-accent);
}

.case-list-card,
.numbered-card,
.support-card,
.result-card,
.related-case-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 12px 30px rgba(27, 45, 60, 0.05);
}

.service-detail-copy p,
.flow-step p,
.case-list-card dd,
.detail-heading p,
.numbered-card p,
.support-card p,
.result-card p,
.related-case-card h3 {
  color: var(--color-muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.service-detail-list {
  display: grid;
  gap: 0;
}

.service-detail-block {
  padding-block: 8px;
}

.service-detail-block + .service-detail-block {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.service-detail-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.service-detail-number {
  color: var(--color-accent);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.service-detail-title {
  margin: 0;
  font-size: 22px;
  color: var(--color-main);
}

.service-detail-card {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  grid-template-areas:
    "media copy"
    "aside aside";
  align-items: start;
  overflow: hidden;
  min-height: 0;
}

.service-detail-card figure {
  grid-area: media;
  display: grid;
  place-items: center;
  align-self: start;
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  min-height: 0;
  overflow: hidden;
}

.service-detail-copy,
.service-detail-aside {
  padding: 34px 38px;
}

.service-detail-copy {
  grid-area: copy;
}

.service-detail-copy p {
  margin: 0;
}

.service-detail-copy p + p {
  margin-top: 12px;
}

.service-detail-aside {
  grid-area: aside;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-self: stretch;
  padding: 24px;
  background: transparent;
}

.service-detail-recommend,
.service-detail-outcome {
  min-height: 100%;
  padding: 22px 24px;
  border: 1px solid rgba(27, 45, 60, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.service-detail-aside-title {
  margin: 0 0 18px;
  color: var(--color-main-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.scope-list,
.recommend-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-list li,
.recommend-list li {
  position: relative;
  padding-left: 28px;
  color: var(--color-text-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.scope-list li::before,
.recommend-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-main);
}

.scope-list li::after,
.recommend-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.42em + 3px);
  width: 4px;
  height: 7px;
  border-right: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(45deg);
}

.recommend-list {
  gap: 14px;
}

.recommend-list li {
  font-size: 14.5px;
}

.service-detail-outcome {
  margin-top: 0;
  border-left: 3px solid var(--color-accent);
  background: rgba(240, 240, 240, 0.60);
}

.service-detail-outcome-label {
  margin: 0 0 7px;
  color: var(--color-main-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-detail-outcome p:last-child {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.8;
}

.section-support .lower-section-heading {
  max-width: 920px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.section-support .support-card {
  display: flex;
  flex-direction: column;
  min-height: 272px;
  padding: 36px 28px 32px;
  border-color: rgba(27, 45, 60, 0.14);
  box-shadow: 0 10px 24px rgba(27, 45, 60, 0.035);
  text-align: center;
}

.support-card__icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
}

.support-card__icon img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.support-card__title {
  margin: 0;
  color: var(--color-main-deep);
  font-size: 21px;
  line-height: 1.45;
  text-align: center;
}

.support-card__title::after {
  content: "";
  display: block;
  height: 1px;
  margin: 20px 0 0;
  background: var(--color-line);
}

.support-card__text {
  margin: 20px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
}

.support-flow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 220px;
  padding: 34px 20px 28px;
  border: 1px solid rgba(27, 45, 60, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(240, 240, 240, 0.42), rgba(255, 255, 255, 0) 48%),
    var(--color-white);
  box-shadow: 0 12px 26px rgba(27, 45, 60, 0.045);
  text-align: center;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -15px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(27, 45, 60, 0.38);
  border-right: 1px solid rgba(27, 45, 60, 0.38);
  transform: translateY(-50%) rotate(45deg);
}

.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(27, 45, 60, 0.08);
  color: var(--color-main);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.flow-step h3 {
  margin-bottom: 12px;
  color: var(--color-main-deep);
  font-size: 16px;
  line-height: 1.55;
}

.flow-step p {
  margin-bottom: 0;
  line-height: 1.9;
}

.case-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0 0 52px;
  padding: 0;
  list-style: none;
}

.case-filter-list button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 24px;
  border: 1px solid rgba(27, 45, 60, 0.36);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-main-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.case-filter-list button:hover,
.case-filter-list button:focus-visible {
  border-color: var(--color-main);
  transform: translateY(1px);
  outline: none;
}

.case-filter-list .is-active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: none;
}

.case-filter-status {
  margin: -34px 0 36px;
  color: var(--color-text-subtle);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.case-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 34px;
}

.case-list-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
}

.case-list-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(27, 45, 60, 0.13);
}

.case-list-card:hover figure img {
  transform: scale(1.05);
}

.case-list-card.is-hidden {
  display: none;
}

.case-list-card figure {
  margin: 0;
  height: clamp(220px, 17vw, 280px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(27, 45, 60, 0.16), rgba(255, 255, 255, 0)),
    var(--color-bg-soft);
}

.case-list-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-list-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 30px 28px 28px;
}

.case-industry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
}

.case-industry::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 1px solid rgba(27, 45, 60, 0.48);
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(27, 45, 60, 0.48) 45%, rgba(27, 45, 60, 0.48) 55%, transparent 55%),
    linear-gradient(180deg, transparent 45%, rgba(27, 45, 60, 0.48) 45%, rgba(27, 45, 60, 0.48) 55%, transparent 55%);
}

.case-list-card h2 {
  margin-bottom: 22px;
  font-size: 22px;
  line-break: strict;
  line-height: 1.55;
  text-wrap: balance;
}

.case-list-card h2 .text-line {
  white-space: nowrap;
}

.case-list-card dl,
.case-list-card dd {
  margin: 0;
}

.case-list-card dl {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  line-break: strict;
  text-wrap: pretty;
}

.case-list-card dt {
  margin-bottom: 4px;
  color: var(--color-main-dark);
  font-size: 13px;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
  margin-top: auto;
  color: var(--color-main-dark);
  font-size: 14px;
  font-weight: 700;
}

.case-list-card .text-link {
  color: var(--color-accent);
}

.case-list-card .text-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.text-link::after {
  content: "";
  width: 24px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: skewX(-34deg);
  transition:
    width 0.2s ease,
    transform 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--color-main);
  outline: none;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  width: 30px;
  transform: skewX(-34deg) translateX(2px);
}

.hero-label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 14px;
}

.hero-label-row .section-kicker {
  margin-bottom: 0;
}

.industry-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(27, 45, 60, 0.28);
  border-radius: 999px;
  background: rgba(240, 244, 239, 0.9);
  color: var(--color-main-dark);
  font-size: 12px;
  font-weight: 700;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin: 32px 0 0;
  padding: 0;
}

.hero-meta div {
  position: relative;
  padding-left: 30px;
}

.hero-meta div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(27, 45, 60, 0.5);
  border-radius: 3px;
  background: var(--color-white);
}

.hero-meta dt {
  display: inline;
  margin-right: 8px;
  color: var(--color-text-soft);
  font-size: 13px;
  font-weight: 700;
}

.hero-meta dd {
  display: inline;
  margin: 0;
  color: var(--color-main-deep);
  font-size: 15px;
  font-weight: 700;
}

.case-detail-hero .lower-hero-media {
  min-height: 386px;
}

.case-detail-page .lower-hero-copy h1 {
  font-size: clamp(2.2rem, 2.85vw, 3.05rem);
  line-height: 1.28;
}

.detail-section {
  max-width: 1110px;
}

.detail-section-soft {
  width: 100%;
  max-width: none;
  padding: 88px max(24px, calc((100vw - 1110px) / 2));
  background: var(--color-bg);
}

.detail-heading {
  margin-bottom: 28px;
}

.detail-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 16px;
  background: var(--color-accent);
}

.detail-heading p {
  margin: 18px 0 0;
  line-break: strict;
  text-wrap: pretty;
}

.detail-heading h2,
.numbered-card h3,
.support-card h3,
.result-card h3,
.related-case-card h3 {
  line-break: strict;
  text-wrap: balance;
}

.numbered-card p,
.support-card p,
.result-card p,
.related-case-card h3 {
  line-break: strict;
  text-wrap: pretty;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.overview-grid div {
  min-height: 112px;
  padding: 26px 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 10px 28px rgba(27, 45, 60, 0.045);
}

.overview-grid dt {
  margin-bottom: 8px;
  color: var(--color-main-dark);
  font-size: 13px;
  font-weight: 700;
}

.overview-grid dd {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.detail-card-grid {
  display: grid;
  gap: 18px;
}

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

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

.numbered-card,
.support-card,
.result-card {
  padding: 28px;
}

.numbered-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--color-main);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
}

.support-card > span {
  display: block;
  margin-bottom: 18px;
  color: var(--color-accent);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

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

.result-card {
  text-align: center;
}

.result-card h3 {
  margin-bottom: 14px;
  font-size: 20px;
  line-height: 1.55;
}

.result-number {
  margin-bottom: 10px;
  color: var(--color-main);
  font-size: clamp(2.5rem, 4.6vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.scope-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
}

.scope-list li {
  min-height: 64px;
  padding: 20px 24px 20px 52px;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.scope-list li:nth-child(3n) {
  border-right: 0;
}

.scope-list li:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.scope-list li::before {
  left: 24px;
  top: 24px;
}

.scope-list li::after {
  left: 29px;
  top: 27px;
}

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

.related-case-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  grid-template-areas:
    "image label"
    "image title"
    "image link";
  column-gap: 18px;
  align-items: center;
  padding: 14px;
}

.related-case-card figure {
  grid-area: image;
  width: 116px;
  height: 92px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg-soft);
}

.related-case-card p {
  grid-area: label;
  margin-bottom: 4px;
  color: var(--color-main);
  font-size: 12px;
  font-weight: 700;
}

.related-case-card h3 {
  grid-area: title;
  margin-bottom: 8px;
  color: var(--color-main-deep);
  font-weight: 700;
}

.related-case-card .text-link {
  grid-area: link;
  margin-top: 0;
  font-size: 12.5px;
}

.related-back-action {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.related-back-action .button {
  min-width: 260px;
}

.top-back-action {
  display: flex;
  justify-content: center;
  width: min(var(--max-width), calc(100% - 48px));
  margin: -28px auto 88px;
}

.top-back-action .button {
  min-width: 260px;
}

/* ==============================
   Motion
============================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

/* ==============================
   Responsive
============================== */
@media (max-width: 1040px) {
  .site-header {
    min-height: 72px;
  }

  .menu-button {
    display: block;
  }

  .global-nav {
    position: fixed;
    top: 72px;
    right: 18px;
    left: auto;
    display: grid;
    gap: 2px;
    width: min(310px, calc(100vw - 36px));
    padding: 10px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: none;
  }

  .global-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity 0.18s ease,
      transform 0.18s ease;
  }

  .global-nav a,
  .global-nav .nav-contact {
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .global-nav a:not(.nav-contact)::after {
    content: none;
  }

  .global-nav a:not(.nav-contact):hover,
  .global-nav a:not(.nav-contact):focus-visible {
    background: var(--color-bg-soft);
    color: var(--color-main-dark);
  }

  .global-nav .nav-contact {
    margin-top: 4px;
    justify-content: center;
  }

  .hero {
    min-height: 0;
    overflow: hidden;
    background: var(--color-white);
  }

  .hero::before {
    content: none;
  }

  .hero::after {
    content: none;
  }

  .hero-media {
    position: relative;
    inset: auto;
    height: clamp(480px, 62vw, 600px);
    overflow: hidden;
  }

  .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        180deg,
        rgba(13, 30, 43, 0.01) 0%,
        rgba(13, 30, 43, 0.05) 58%,
        rgba(13, 30, 43, 0.22) 100%
      ),
      linear-gradient(
        90deg,
        rgba(13, 30, 43, 0.05),
        transparent 42%,
        rgba(13, 30, 43, 0.08)
      );
    pointer-events: none;
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    object-position: 48% center;
    transform: none;
  }

  .hero-inner {
    display: block;
    min-height: 0;
    margin-top: 0;
    padding: 0 0 64px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-panel {
    width: 100%;
    margin-left: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-copy {
    width: min(470px, 56vw);
    max-width: none;
    /* タブレットでは見出しだけを写真に重ね、本文とCTAは写真下に配置する */
    margin: clamp(-252px, -24vw, -206px) 0 0 auto;
    padding: 28px 30px;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(
      135deg,
      rgba(13, 30, 43, 0.62),
      rgba(27, 45, 60, 0.42)
    );
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 3.4vw, 2.2rem);
    line-height: 1.26;
    text-shadow: none;
  }

  .hero h1 span[aria-hidden="true"] {
    white-space: nowrap;
  }

  .hero h1 .hero-title-wide {
    display: block;
  }

  .hero h1 .hero-title-narrow {
    display: none;
  }

  .hero-lead {
    width: min(650px, 100%);
    max-width: none;
    margin: clamp(40px, 5vw, 60px) auto 0;
    color: var(--color-text-soft);
    margin-bottom: 0;
    text-align: center;
    text-shadow: none;
  }

  .hero .hero-actions {
    width: min(650px, 100%);
    max-width: none;
    gap: 14px;
    justify-content: center;
    margin: 22px auto 0;
  }

  .hero-actions .button {
    min-width: 196px;
    min-height: 58px;
    padding: 0 30px;
    font-size: 16px;
  }

  .hero .button-ghost {
    border-color: var(--color-border);
    background: var(--color-white);
    color: var(--color-main-dark);
    backdrop-filter: none;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: min(650px, 100%);
    max-width: none;
    margin: clamp(34px, 6vw, 64px) auto 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: linear-gradient(
      90deg,
      rgba(13, 30, 43, 0.88),
      rgba(20, 36, 49, 0.96)
    );
    box-shadow: 0 16px 38px rgba(13, 30, 43, 0.18);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-stats div {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 32px 42px 34px;
    grid-template-areas:
      "icon"
      "number"
      "label";
    row-gap: 8px;
    align-items: center;
    align-content: center;
    justify-items: center;
    justify-content: center;
    min-height: 136px;
    padding: 18px 14px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    text-align: center;
  }

  .hero-stat-icon {
    display: block;
    width: 32px;
    height: 32px;
  }

  .hero-stats dt {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: clamp(1.9rem, 3.6vw, 2.4rem);
  }

  .hero-stats dt span {
    min-width: 0;
  }

  .hero-stats dd {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 34px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
    font-size: 12px;
  }

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

  .flow-list {
    grid-template-columns: 1fr;
    gap: 42px;
    width: min(760px, 100%);
    margin-inline: auto;
    overflow: visible;
  }

  .flow-list li {
    min-height: 0;
  }

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

  .case-visual {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    margin: 0;
  }

  .service-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-feature-image {
    min-height: 0;
    aspect-ratio: 1.85;
  }

  .strength-layout {
    grid-template-columns: 1fr;
  }

  .strength-photo img {
    min-height: 360px;
  }

  .contact-form-layout {
    grid-template-columns: 1fr;
  }

  .contact-form-intro h1 {
    white-space: normal;
  }

  .flow-list li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -29px;
    left: 50%;
    z-index: 2;
    width: 14px;
    height: 14px;
    border-top: 0;
    border-right: 2px solid rgba(27, 45, 60, 0.52);
    border-bottom: 2px solid rgba(27, 45, 60, 0.52);
    border-left: 0;
    transform: translateX(-50%) rotate(45deg);
  }
}

@media (max-width: 860px) {
  .hero-media img {
    object-position: 58% center;
  }
}

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

  .logo {
    min-width: 0;
  }

  .logo-image {
    width: 150px;
  }

  .hero-inner,
  .section {
    width: min(100% - 36px, var(--max-width));
  }

  .hero {
    min-height: 0;
    background: var(--color-white);
  }

  .hero::before {
    content: none;
  }

  .hero-media {
    position: relative;
    inset: auto;
    height: clamp(440px, 116vw, 520px);
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    object-position: center bottom;
    transform: none;
  }

  .hero-media::before {
    content: none;
  }

  .hero-media::after {
    z-index: 2;
    background:
      linear-gradient(
        180deg,
        rgba(13, 30, 43, 0.01) 0%,
        rgba(13, 30, 43, 0.03) 52%,
        rgba(13, 30, 43, 0.14) 78%,
        rgba(13, 30, 43, 0.22) 100%
      ),
      linear-gradient(
        90deg,
        rgba(13, 30, 43, 0.04),
        rgba(13, 30, 43, 0.01) 44%,
        rgba(13, 30, 43, 0.04)
      );
  }

  .hero-inner {
    display: block;
    min-height: 0;
    margin-top: 0;
    padding: 0 0 34px;
    border: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-panel {
    width: 100%;
    margin-left: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  h1 {
    font-size: clamp(1.9rem, 8vw, 2rem);
    line-height: 1.35;
  }

  h2 {
    font-size: clamp(1.625rem, 7vw, 2rem);
    line-height: 1.4;
  }

  h3 {
    font-size: 18px;
  }

  .hero-copy {
    width: min(100%, 336px);
    max-width: none;
    margin: clamp(-144px, -34vw, -122px) 0 0;
    padding: 14px 16px;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(
      135deg,
      rgba(13, 30, 43, 0.6),
      rgba(27, 45, 60, 0.38)
    );
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  .hero .section-kicker {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .hero h1 .hero-title-wide {
    display: block;
  }

  .hero h1 .hero-title-narrow {
    display: none;
  }

  .hero h1 {
    margin-bottom: 0;
    font-size: clamp(24px, 6.2vw, 28px);
    line-height: 1.28;
    letter-spacing: -0.015em;
    text-shadow: none;
  }

  .hero-lead {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 32px auto 0;
    padding: 20px 4px 0;
    border: 0;
    background: transparent;
    color: var(--color-main-deep);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.85;
    text-shadow: none;
  }

  .hero-lead::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: var(--color-accent);
    transform: translateX(-50%);
  }

  .hero-lead .keep-phrase {
    display: inline;
  }

  .hero-lead-mark {
    display: inline;
    font-weight: 800;
    background-image: linear-gradient(
      transparent 62%,
      rgba(178, 36, 24, 0.28) 62%
    );
    background-repeat: no-repeat;
    background-size: 100% 100%;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .hero .hero-actions {
    width: 100%;
    max-width: none;
    gap: 12px;
    margin-top: 14px;
  }

  .hero .button-ghost {
    border-color: var(--color-border);
    background: var(--color-white);
    color: var(--color-main-dark);
  }

  .hero-actions .button,
  .cta-actions .button {
    width: 100%;
    min-width: 0;
  }

  .hero-actions .button {
    min-height: 56px;
    font-size: 16px;
  }

  .hero-stats {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 22px;
    padding: 0;
    background: linear-gradient(
      90deg,
      rgba(13, 30, 43, 0.9),
      rgba(20, 36, 49, 0.98)
    );
    box-shadow: 0 14px 30px rgba(13, 30, 43, 0.16);
  }

  .hero-stats div {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 24px 34px 30px;
    grid-template-areas:
      "icon"
      "number"
      "label";
    row-gap: 6px;
    align-items: center;
    align-content: center;
    justify-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 14px 6px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 0;
    text-align: center;
  }

  .hero-stat-icon {
    display: block;
    width: 24px;
    height: 24px;
  }

  .hero-stats div:last-child {
    border-right: 0;
  }

  .hero-stats dt {
    font-size: clamp(1.65rem, 8vw, 2.05rem);
  }

  .hero-stats dt span {
    min-width: 0;
  }

  .hero-stats dd {
    min-height: 30px;
    margin: 0;
    text-align: center;
    font-size: 10px;
    line-height: 1.35;
  }

  .section,
  .services-section,
  .cases-section,
  .contact-form-section {
    padding-block: 76px;
  }

  .contact-form-section {
    width: min(100% - 36px, var(--max-width));
  }

  .contact-form-intro h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 1.28;
    white-space: nowrap;
  }

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

  .contact-form {
    padding: 24px;
  }

  .form-submit-row .button {
    width: 100%;
  }

  .issue-grid,
  .case-grid,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .issue-hint {
    padding: 26px 22px 28px;
  }

  .issue-hint h3 {
    font-size: 19px;
    white-space: normal;
  }

  .issue-hint p {
    white-space: normal;
  }

  .issue-hint .arrow-button {
    min-width: 100%;
  }

  .service-card,
  .flow-list li {
    padding: 24px;
  }

  .case-card {
    display: block;
  }

  .service-card {
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 16px;
  }

  .service-icon {
    width: 46px;
    height: 46px;
  }

  .arrow-button {
    width: 100%;
  }

  .service-showcase {
    gap: 18px;
  }

  .service-feature-image {
    aspect-ratio: 1.35;
  }

  .service-card h3 {
    font-size: 18px;
  }

  .case-visual {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    margin: 0;
  }

  .strength-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px 18px;
  }

  .strength-photo img {
    min-height: 260px;
  }

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

  .footer-nav {
    display: none;
  }

  .copyright {
    justify-self: center;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 1040px) {
  .lower-hero {
    padding-top: 22px;
    padding-bottom: 70px;
  }

  .lower-hero-layout {
    grid-template-columns: minmax(0, 0.98fr) minmax(320px, 1.02fr);
    gap: 0;
  }

  .lower-hero-media,
  .case-detail-hero .lower-hero-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .support-grid,
  .case-list-grid,
  .overview-grid,
  .detail-card-grid-four,
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "media copy"
      "aside aside";
    align-items: stretch;
  }

  .service-detail-card figure {
    grid-row: auto;
    min-height: 0;
    align-self: stretch;
    aspect-ratio: unset;
  }

  .service-detail-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .service-detail-copy {
    border-bottom: 0;
    padding: 28px 30px;
  }

  .detail-card-grid-three,
  .scope-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-flow-list {
    grid-template-columns: 1fr;
    gap: 56px;
    width: min(760px, 100%);
    margin-inline: auto;
  }

  .flow-step {
    min-height: 0;
  }

  .flow-step:not(:last-child)::after {
    content: "";
    top: auto;
    bottom: -32px;
    right: 50%;
    transform: translateX(50%) rotate(135deg);
    width: 8px;
    height: 8px;
    border-top: 1px solid rgba(27, 45, 60, 0.30);
    border-right: 1px solid rgba(27, 45, 60, 0.30);
  }

  .scope-list li,
  .scope-list li:nth-child(3n),
  .scope-list li:nth-last-child(-n + 3) {
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
  }

  .scope-list li:nth-child(2n) {
    border-right: 0;
  }

  .scope-list li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .related-case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .lower-hero-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .lower-hero-copy h1 {
    font-size: clamp(2.1rem, 7vw, 3rem);
  }

  .case-filter-list {
    justify-content: flex-start;
  }

  .case-list-grid,
  .support-grid,
  .detail-card-grid-three,
  .detail-card-grid-four,
  .result-grid,
  .overview-grid,
  .support-flow-list,
  .scope-list {
    grid-template-columns: 1fr;
  }

  .service-detail-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "copy"
      "aside";
  }

  .service-detail-card figure {
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .service-detail-copy,
  .service-detail-aside {
    padding: 28px;
  }

  .service-detail-copy,
  .service-detail-aside {
    border-left: 0;
  }

  .service-detail-aside {
    grid-template-columns: 1fr;
  }

  .scope-list li,
  .scope-list li:nth-child(2n),
  .scope-list li:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .scope-list li:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .lower-hero {
    padding: 18px 18px 58px;
  }

  .breadcrumb {
    margin-bottom: 36px;
  }

  .breadcrumb ol {
    font-size: 12px;
    line-height: 1.7;
  }

  .lower-hero-copy h1 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 1.32;
  }

  .lower-hero-copy > p {
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.9;
  }

  .lower-hero-actions .button {
    width: 100%;
    min-width: 0;
  }

  .lower-hero-media,
  .case-detail-hero .lower-hero-media {
    aspect-ratio: 1.28;
  }

  .lower-section,
  .detail-section {
    width: min(100% - 36px, var(--max-width));
    padding-block: 76px;
  }

  .lower-section-soft,
  .detail-section-soft {
    padding: 76px 18px;
  }

  .lower-section-heading {
    margin-bottom: 34px;
  }

  .support-grid {
    gap: 16px;
  }

  .section-support .support-card {
    min-height: 0;
    padding: 30px 24px;
  }

  .support-card__icon {
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
  }

  .support-card__icon img {
    width: 54px;
    height: 54px;
  }

  .support-card__title {
    font-size: 21px;
  }

  .service-detail-copy h3 {
    font-size: 20px;
  }

  .flow-step {
    min-height: 0;
    padding: 28px 24px;
  }

  .case-filter-list {
    gap: 10px;
    margin-bottom: 34px;
  }

  .case-filter-list button {
    min-height: 36px;
    padding: 0 16px;
    font-size: 12.5px;
  }

  .case-filter-status {
    margin: -18px 0 28px;
    text-align: left;
  }

  .case-list-card h2 {
    font-size: 20px;
  }

  .case-list-card-body,
  .numbered-card,
  .support-card,
  .result-card {
    padding: 24px;
  }

  .detail-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .detail-heading::after {
    width: 48px;
    height: 2px;
    background: var(--color-accent);
  }

  .overview-grid div {
    min-height: 0;
    padding: 22px;
  }

  .hero-meta {
    display: grid;
    gap: 12px;
  }

  .scope-list li {
    min-height: 0;
    padding: 18px 20px 18px 48px;
  }

  .scope-list li::before {
    left: 20px;
    top: 22px;
  }

  .scope-list li::after {
    left: 25px;
    top: 25px;
  }

  .related-case-card {
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 14px;
  }

  .related-case-card figure {
    width: 96px;
    height: 86px;
  }

  .related-back-action .button {
    width: 100%;
    min-width: 0;
  }

  .top-back-action {
    width: min(100% - 36px, var(--max-width));
    margin: -18px auto 64px;
  }

  .top-back-action .button {
    width: 100%;
    min-width: 0;
  }
}
