/* ==========================================================================
   IGNICION Corporate Site — 2026 Redesign
   Palette: ignition crimson × navy (from brand mark) on warm paper / charcoal
   Type: Archivo (Latin display) × Zen Kaku Gothic New (JA)
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Tokens ---------- */
:root {
  --ink: #16181d;
  --ink-soft: #2b2e36;
  --paper: #faf8f5;
  --paper-2: #f2eee8;
  --red: #c81e3b;
  --red-deep: #a51530;
  --navy: #124887;
  --navy-deep: #0c2f5a;
  --mute: #696e77;
  --rule: #e3ded6;
  --rule-dark: rgba(255, 255, 255, 0.14);
  --font-display: "Archivo", "Zen Kaku Gothic New", sans-serif;
  --font-ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

body {
  font-family: var(--font-ja);
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

/* ---------- Layout primitives ---------- */
.wrap {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(4.5rem, 10vw, 7.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }

.sp-only { display: none; }
@media (max-width: 48rem) {
  .pc-only { display: none; }
  .sp-only { display: inline; }
}

/* Section kicker: brand shard + English label */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.kicker::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  background: var(--red);
  clip-path: polygon(38% 0, 100% 22%, 55% 100%, 0 68%);
}
.on-dark .kicker { color: #ff98ab; }

.section-title {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.4;
  letter-spacing: 0.05em;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.lead {
  max-width: 44rem;
  color: var(--mute);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.on-dark .lead { color: rgba(255, 255, 255, 0.72); }

/* Oversized ghost word behind sections */
.ghost {
  position: absolute;
  top: 0.5rem;
  right: -0.05em;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--rule);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}
.on-dark .ghost { -webkit-text-stroke-color: rgba(255, 255, 255, 0.09); }

/* Shard decorations (echo of the logo mark) */
.shard {
  position: absolute;
  pointer-events: none;
  clip-path: polygon(38% 0, 100% 22%, 55% 100%, 0 68%);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 1.05rem 2.1rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  overflow: hidden;
  transition: color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  cursor: pointer;
  z-index: 0;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
  z-index: -1;
}
.btn:hover { color: #fff; border-color: var(--red); }
.btn:hover::before { transform: scaleX(1); }
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--fill {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn--fill::before { background: var(--ink); }
.btn--fill:hover { border-color: var(--ink); }

.btn--light { border-color: #fff; color: #fff; }
.btn--light::before { background: #fff; }
.btn--light:hover { color: var(--navy-deep); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: 84rem;
}
.brand img { width: clamp(9rem, 14vw, 11rem); }

.global-nav { display: flex; align-items: center; gap: 2rem; }
.global-nav ul { display: flex; align-items: center; gap: 1.9rem; }
.global-nav li a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  padding-block: 0.4rem;
}
.global-nav li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.global-nav li a:hover::after,
.global-nav li.active a::after { transform: scaleX(1); transform-origin: left; }
.global-nav li.ext a::after { content: none; }
.global-nav li.ext a .ext-mark { color: var(--navy); font-size: 0.75em; margin-left: 0.2em; }
.global-nav li.ext a:hover { color: var(--navy); }

.nav-cta {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--red);
  padding: 0.75rem 1.5rem;
  transition: background 0.3s var(--ease-out);
}
.nav-cta:hover { background: var(--ink); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 3rem;
  height: 3rem;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 120;
}
.nav-toggle span {
  display: block;
  width: 1.75rem;
  height: 2px;
  background: var(--ink);
  margin-inline: auto;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

/* ---------- Hero (TOP) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(6rem, 14vw, 11rem) clamp(5rem, 12vw, 9rem);
  background:
    radial-gradient(56rem 32rem at 88% -12%, rgba(200, 30, 59, 0.07), transparent 62%),
    radial-gradient(40rem 26rem at -8% 108%, rgba(18, 72, 135, 0.06), transparent 60%),
    var(--paper);
}
.hero .ghost {
  top: auto;
  bottom: -0.06em;
  right: -0.04em;
  font-size: clamp(5rem, 17vw, 14rem);
}
.hero-copy { position: relative; max-width: 46rem; z-index: 1; }
.hero-catch {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  line-height: 1.32;
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
}
.hero-catch .accent { color: var(--red); }
.hero-sub {
  color: var(--mute);
  max-width: 38rem;
  margin-bottom: 2.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero .shard--a {
  width: clamp(7rem, 15vw, 13rem);
  height: clamp(7rem, 15vw, 13rem);
  top: 12%;
  right: 8%;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  opacity: 0.92;
  animation: drift 9s ease-in-out infinite;
}
.hero .shard--b {
  width: clamp(3rem, 6vw, 5rem);
  height: clamp(3rem, 6vw, 5rem);
  top: 46%;
  right: 22%;
  background: var(--navy);
  opacity: 0.85;
  animation: drift 11s ease-in-out infinite reverse;
}
.hero .shard--c {
  width: 2rem;
  height: 2rem;
  top: 22%;
  right: 30%;
  background: transparent;
  border: 1px solid var(--red);
  clip-path: none;
  transform: rotate(24deg);
  animation: drift 13s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -1.1rem; }
}

/* ---------- Feature cards (TOP: what we do) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.feature-card {
  background: var(--paper);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: background 0.35s var(--ease-out);
}
.feature-card:hover { background: #fff; }
.feature-card .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--red);
  display: block;
  margin-bottom: 1.1rem;
}
.feature-card h3 {
  font-weight: 900;
  font-size: 1.1875rem;
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}
.feature-card p { font-size: 0.9375rem; line-height: 1.95; color: var(--mute); }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.more-link .line {
  width: 3.25rem;
  height: 1px;
  background: var(--ink);
  transition: width 0.3s var(--ease-out), background 0.3s;
}
.more-link:hover { color: var(--red); }
.more-link:hover .line { width: 4.75rem; background: var(--red); }

/* ---------- Stepmate feature band ---------- */
.stepmate {
  background:
    radial-gradient(48rem 30rem at 110% 0%, rgba(56, 118, 218, 0.35), transparent 60%),
    radial-gradient(36rem 24rem at -10% 110%, rgba(200, 30, 59, 0.18), transparent 55%),
    linear-gradient(150deg, var(--navy-deep), #081c38 70%);
  color: #fff;
  overflow: hidden;
}
.stepmate .ghost { -webkit-text-stroke-color: rgba(255, 255, 255, 0.08); }
.stepmate-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  position: relative;
}
.stepmate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9ec3f5;
  border: 1px solid rgba(158, 195, 245, 0.4);
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.stepmate h2 {
  font-weight: 900;
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.stepmate .desc { color: rgba(255, 255, 255, 0.78); margin-bottom: 2rem; max-width: 34rem; }

.stepmate-points { display: grid; gap: 0.9rem; margin-bottom: 2.5rem; }
.stepmate-points li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}
.stepmate-points li::before {
  content: "";
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  translate: 0 -0.05rem;
  background: #4a8be0;
  clip-path: polygon(38% 0, 100% 22%, 55% 100%, 0 68%);
}
.stepmate-points strong { color: #fff; font-weight: 700; }

.stepmate-visual { position: relative; display: grid; place-items: center; }
.stepmate-visual .logo-tile {
  width: clamp(11rem, 22vw, 16rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.75rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, 0.35);
  rotate: -3deg;
  transition: rotate 0.5s var(--ease-out), translate 0.5s var(--ease-out);
}
.stepmate-visual:hover .logo-tile { rotate: 0deg; translate: 0 -0.4rem; }
.stepmate-visual .logo-tile img { width: 62%; }
.stepmate-visual .caption {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
}
.stepmate-visual .caption span { color: #7fb0ef; }

/* ---------- News ---------- */
.news-list { border-top: 1px solid var(--rule); }
.news-list a {
  display: flex;
  align-items: baseline;
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: 1.6rem 0.25rem;
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s var(--ease-out), padding-left 0.3s var(--ease-out);
}
.news-list a:hover { background: #fff; padding-left: 1rem; }
.news-list time {
  flex: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  color: var(--red);
}
.news-list h3 { font-weight: 500; font-size: 1rem; letter-spacing: 0.05em; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.cta-band .shard--a {
  width: 9rem; height: 9rem;
  top: -2rem; left: -2.5rem;
  background: var(--red);
  opacity: 0.55;
}
.cta-band .shard--b {
  width: 5rem; height: 5rem;
  bottom: -1rem; right: 6%;
  background: var(--navy);
  opacity: 0.6;
}
.cta-band h2 {
  font-weight: 900;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.5;
  margin-bottom: 1.1rem;
  position: relative;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2.25rem;
  position: relative;
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 9vw, 7rem);
  background:
    radial-gradient(44rem 26rem at 96% -20%, rgba(200, 30, 59, 0.07), transparent 60%),
    var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.page-hero .ghost { top: auto; bottom: -0.08em; }
.page-hero .en {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 0.9375rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9rem;
}
.page-hero h1 {
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.4;
  letter-spacing: 0.05em;
  position: relative;
}
.page-hero .sub { margin-top: 1.25rem; color: var(--mute); max-width: 42rem; position: relative; }

/* ---------- Service: issues ---------- */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.issue-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--rule);
  padding: 1.4rem 1.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.7;
  transition: border-color 0.3s var(--ease-out), translate 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.issue-card:hover {
  border-color: var(--red);
  translate: 0 -3px;
  box-shadow: 0 1rem 2rem rgba(22, 24, 29, 0.07);
}
.issue-card .icon {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--red);
  clip-path: polygon(38% 0, 100% 22%, 55% 100%, 0 68%);
}
.issue-card .icon svg { width: 1.15rem; height: 1.15rem; }

/* ---------- Service: main cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  counter-reset: svc;
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--red);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  counter-increment: svc;
  transition: translate 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.service-card:hover {
  translate: 0 -4px;
  box-shadow: 0 1.5rem 3rem rgba(22, 24, 29, 0.08);
}
/* Odd number of cards: let the last one span the full row */
.service-grid .service-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.service-card::before {
  content: "0" counter(svc);
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 1.6rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--rule);
}
.service-card .tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(18, 72, 135, 0.08);
  padding: 0.3rem 0.7rem;
  margin-bottom: 1.1rem;
}
.service-card h3 {
  font-weight: 900;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  padding-right: 2.5rem;
}
.service-card p { font-size: 0.9375rem; line-height: 2; color: var(--mute); }

/* ---------- Service: approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.approach-item { position: relative; padding-top: 1.5rem; }
.approach-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.75rem;
  height: 3px;
  background: var(--red);
}
.approach-item h3 {
  font-weight: 900;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.approach-item p { font-size: 0.9375rem; line-height: 2; color: var(--mute); }

/* ---------- Stepmate strip (service page) ---------- */
.stepmate-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--navy-deep), #0a2547);
  color: #fff;
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.stepmate-strip::after {
  content: "";
  position: absolute;
  right: -4rem;
  top: -4rem;
  width: 14rem;
  height: 14rem;
  background: rgba(74, 139, 224, 0.25);
  clip-path: polygon(38% 0, 100% 22%, 55% 100%, 0 68%);
}
.stepmate-strip .logo-mini {
  width: 4.5rem;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  display: grid;
  place-items: center;
}
.stepmate-strip .logo-mini img { width: 60%; }
.stepmate-strip h3 { font-weight: 900; font-size: 1.2rem; line-height: 1.6; margin-bottom: 0.4rem; }
.stepmate-strip p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); line-height: 1.9; }
.stepmate-strip .btn { position: relative; z-index: 1; }

/* ---------- About ---------- */
.prose { max-width: 46rem; }
.prose p { margin-bottom: 1.75rem; }
.prose p:last-child { margin-bottom: 0; }

.profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid var(--rule);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.profile .name-block .role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.5rem;
}
.profile .name-block .name {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: nowrap;
}
.profile .name-block .meta {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--mute);
  line-height: 1.9;
}
.profile .bio { font-size: 0.9375rem; line-height: 2.1; color: var(--ink-soft); }

/* ---------- Company table ---------- */
.company-table { border-top: 1px solid var(--rule); max-width: 52rem; }
.company-table tr { border-bottom: 1px solid var(--rule); }
.company-table th {
  width: 11rem;
  text-align: left;
  vertical-align: top;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  padding: 1.5rem 1rem 1.5rem 0.25rem;
  color: var(--ink);
  white-space: nowrap;
}
.company-table td {
  padding: 1.5rem 0.25rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* ---------- Contact ---------- */
.contact-notes {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 0.6rem;
}
.contact-notes li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--mute);
  line-height: 1.9;
}
.contact-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--red);
  clip-path: polygon(38% 0, 100% 22%, 55% 100%, 0 68%);
}

.contact-form { max-width: 46rem; }
.form-row { margin-bottom: 1.75rem; }
.form-row .label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.6rem;
}
.form-row .flag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 0.3rem 0.55rem;
  color: #fff;
  background: var(--mute);
}
.form-row .flag--req { background: var(--red); }
.form-row input,
.form-row textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  padding: 0.9rem 1.1rem;
  font-size: 1rem;
  line-height: 1.7;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-row textarea { min-height: 11rem; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 30, 59, 0.12);
}
.form-submit { margin-top: 2.5rem; }
.form-submit .btn { min-width: 16rem; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0 34%, var(--navy) 34% 52%, transparent 52%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}
.footer-brand img { width: 10rem; margin-bottom: 1.4rem; }
.footer-brand p { font-size: 0.875rem; line-height: 2; color: rgba(255, 255, 255, 0.6); }
.footer-nav { display: grid; gap: 0.8rem; text-align: right; }
.footer-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  transition: color 0.25s;
}
.footer-nav a:hover { color: var(--red); }
.footer-nav .ext-mark { font-size: 0.75em; opacity: 0.7; margin-left: 0.2em; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--rule-dark);
  padding-top: 1.75rem;
}
.footer-bottom small {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
}
.footer-sns a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.25s;
}
.footer-sns a:hover { color: #fff; }
.footer-sns svg { width: 1rem; height: 1rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  translate: 0 1.75rem;
  transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; translate: 0 0; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; translate: 0 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  .feature-grid { grid-template-columns: 1fr; }
  .issue-grid { grid-template-columns: 1fr 1fr; }
  .stepmate-inner { grid-template-columns: 1fr; }
  .stepmate-visual { justify-items: start; }
}

@media (max-width: 48rem) {
  body { font-size: 0.9375rem; }

  /* backdrop-filter makes the header the containing block for the
     fixed-position menu, trapping it inside the header bar — disable it here */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(250, 248, 245, 0.97);
  }

  .nav-toggle { display: flex; }
  .global-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s;
    z-index: 110;
  }
  .global-nav.is-open { opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; gap: 2rem; text-align: center; }
  .global-nav li a { font-size: 1.125rem; }
  .nav-cta { padding: 1rem 2.5rem; }
  body.nav-locked { overflow: hidden; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  /* Hero decorations: keep clear of text on narrow screens */
  .hero .shard--a { width: 5.5rem; height: 5.5rem; top: 4%; right: -1.25rem; opacity: 0.6; }
  .hero .shard--b, .hero .shard--c { display: none; }

  .issue-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .stepmate-strip { grid-template-columns: 1fr; text-align: left; }
  .profile { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { text-align: left; }
  .news-list a { flex-direction: column; gap: 0.3rem; padding-block: 1.25rem; }
  .company-table th { width: 8rem; padding-right: 0.5rem; }
}
