/*
  KMC Website — Static CSS Export
  Design philosophy: Quiet Luxury Operations. Preserve ink navy, warm paper,
  fine technical lines, editorial asymmetry, and calm transitions.
*/
:root {
  --ink: #10243b;
  --ink-2: #1d3855;
  --paper: #f7f2e8;
  --paper-light: #fffaf0;
  --line: rgba(16, 36, 59, 0.16);
  --aqua: #7cc5d2;
  --muted: #506174;
  --texture: url("https://d2xsxph8kpxj0f.cloudfront.net/310519663384923944/m62utAMqGQR7AscAcpYj2S/kmc_abstract_grid_texture-gLoMX78AQvhKEG5zPfB74r.webp");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(16, 36, 59, 0.16) 0.7px, transparent 0.7px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

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

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(12, 35, 64, 0.07) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(180deg, rgba(12, 35, 64, 0.05) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--paper);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(246, 241, 230, 0.18);
  background: rgba(14, 31, 53, 0.84);
  padding: 12px 14px 12px 18px;
  color: var(--paper);
  box-shadow: 0 18px 60px rgba(8, 20, 36, 0.26);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(189, 222, 229, 0.48);
  color: #b7dce5;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.brand-text {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.primary-nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  align-items: center;
  color: rgba(247, 242, 232, 0.76);
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.primary-nav a {
  position: relative;
  padding: 10px 0;
  transition: color 0.28s ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  width: 0;
  height: 1px;
  background: #b7dce5;
  transition: width 0.35s ease;
}

.primary-nav a:hover {
  color: #fff;
}

.primary-nav a:hover::after {
  left: 0;
  right: auto;
  width: 100%;
}

.hero-section {
  position: relative;
  min-height: 760px;
  color: var(--paper);
  background: #0d2239;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 21, 35, 0.94) 0%, rgba(9, 21, 35, 0.72) 42%, rgba(9, 21, 35, 0.22) 100%),
    linear-gradient(180deg, rgba(9, 21, 35, 0.22) 0%, rgba(9, 21, 35, 0.76) 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: 760px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 64px;
  align-items: end;
  padding: 170px 0 92px;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow,
.panel-kicker,
.section-label span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--aqua);
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-label span::before {
  content: "";
  display: inline-block;
  width: 38px;
  height: 1px;
  background: currentColor;
}

.hero-copy h1 {
  margin: 22px 0 28px;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(3.3rem, 8vw, 7.4rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.98;
}

.lead {
  width: min(680px, 100%);
  color: rgba(247, 242, 232, 0.83);
  font-size: clamp(1rem, 1.65vw, 1.28rem);
  line-height: 2.05;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button-primary,
.button-ghost {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  font-weight: 700;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.button-primary {
  background: #f0e2c3;
  color: var(--ink);
}

.button-primary:hover {
  transform: translateY(-3px);
  background: #fff0cb;
}

.button-ghost {
  border: 1px solid rgba(247, 242, 232, 0.42);
  color: var(--paper);
}

.button-ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(183, 220, 229, 0.88);
  background: rgba(183, 220, 229, 0.09);
}

.hero-panel {
  border: 1px solid rgba(247, 242, 232, 0.26);
  background: rgba(13, 34, 57, 0.52);
  padding: 28px;
  box-shadow: 0 18px 64px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.panel-rule {
  width: 100%;
  height: 1px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--aqua), transparent);
}

.hero-panel dl {
  margin: 24px 0 0;
}

.hero-panel div:not(.panel-rule) {
  border-top: 1px solid rgba(247, 242, 232, 0.18);
  padding: 18px 0;
}

.hero-panel dt {
  color: rgba(247, 242, 232, 0.52);
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel dd {
  margin: 8px 0 0;
  color: #fff;
  line-height: 1.7;
}

.mission-section,
.services-section,
.strengths-section,
.profile-section,
.closing-section,
.process-section {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0;
}

.texture-section::before {
  content: "";
  position: absolute;
  inset: 40px max(-10vw, -80px);
  z-index: 0;
  opacity: 0.38;
  background-image: var(--texture);
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.section-index {
  position: absolute;
  top: 90px;
  left: 0;
  z-index: 1;
  color: rgba(15, 35, 58, 0.42);
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.mission-layout,
.strengths-layout,
.process-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(42px, 8vw, 94px);
  align-items: center;
}

.mission-copy,
.services-head,
.process-copy,
.strengths-sticky,
.profile-heading,
.closing-text {
  position: relative;
  z-index: 1;
}

.section-label h2,
.closing-text h2 {
  margin: 18px 0 0;
  color: var(--ink);
  font-family: "Shippori Mincho", serif;
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1.16;
}

.mission-copy p,
.services-head p,
.process-copy p,
.strengths-sticky p,
.profile-heading p {
  color: #3f5063;
  font-size: 1.02rem;
  line-height: 2.15;
}

.mission-copy p:first-of-type {
  margin-top: 34px;
}

.image-card,
.process-visual {
  position: relative;
  z-index: 1;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper-light);
  padding: 12px;
  box-shadow: 0 28px 80px rgba(16, 36, 59, 0.16);
}

.image-card::before,
.process-visual::before {
  content: "";
  position: absolute;
  inset: -18px 18px 18px -18px;
  z-index: -1;
  border: 1px solid rgba(124, 197, 210, 0.48);
}

.image-card img,
.process-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-card figcaption {
  color: rgba(16, 36, 59, 0.6);
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  padding: 12px 4px 2px;
  text-transform: uppercase;
}

.services-head {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 64px;
  align-items: end;
  margin-left: min(120px, 10vw);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 70px;
  border: 1px solid var(--line);
  background: var(--line);
}

.service-card {
  min-height: 360px;
  background: rgba(255, 250, 240, 0.9);
  padding: clamp(28px, 4vw, 42px);
  transition: transform 0.32s ease, background 0.32s ease, box-shadow 0.32s ease;
}

.service-card:hover {
  z-index: 2;
  transform: translateY(-10px);
  background: #fffdf6;
  box-shadow: 0 24px 70px rgba(16, 36, 59, 0.14);
}

.service-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(124, 197, 210, 0.5);
  color: #1b6b7b;
  margin-bottom: 38px;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 1.45rem;
}

.service-card h3,
.strength-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.65;
}

.service-card p,
.strength-item p {
  color: var(--muted);
  line-height: 2;
}

.process-section {
  grid-template-columns: 1fr 0.85fr;
}

.process-steps {
  display: grid;
  gap: 1px;
  margin-top: 38px;
  border: 1px solid var(--line);
  background: var(--line);
}

.process-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  background: rgba(255, 250, 240, 0.72);
  min-height: 72px;
}

.process-step span {
  height: 100%;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: #1b6b7b;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-weight: 700;
}

.process-step strong {
  padding: 0 24px;
  color: var(--ink);
  font-size: 1.05rem;
}

.strengths-layout {
  align-items: start;
}

.strengths-sticky {
  position: sticky;
  top: 140px;
}

.strength-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.strength-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 26px;
  border-top: 1px solid rgba(16, 36, 59, 0.2);
  padding: 32px 0;
}

.strength-item span {
  color: #1b6b7b;
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
}

.profile-card {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 54px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.82);
  padding: clamp(30px, 6vw, 72px);
  box-shadow: 0 28px 90px rgba(16, 36, 59, 0.11);
}

.profile-table {
  border-top: 1px solid rgba(16, 36, 59, 0.18);
}

.profile-table > div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  border-bottom: 1px solid rgba(16, 36, 59, 0.18);
  padding: 24px 0;
}

.profile-table span {
  color: rgba(16, 36, 59, 0.52);
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.profile-table strong {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.7;
}

.closing-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding-top: 60px;
}

.closing-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.closing-points span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.78);
  padding: 12px 16px;
  color: var(--ink);
  font-weight: 700;
}

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(16, 36, 59, 0.18);
  padding: 36px 0 48px;
  color: rgba(16, 36, 59, 0.72);
}

.site-footer div {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.site-footer strong {
  color: var(--ink);
  font-family: "IBM Plex Sans Condensed", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
}

.site-footer span,
.site-footer small {
  font-family: "IBM Plex Sans Condensed", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  clip-path: inset(12% 0 0 0);
  transition: opacity 0.86s cubic-bezier(0.2, 0.72, 0.18, 1), transform 0.86s cubic-bezier(0.2, 0.72, 0.18, 1), clip-path 0.86s cubic-bezier(0.2, 0.72, 0.18, 1);
}

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

@media (max-width: 980px) {
  .primary-nav {
    display: none;
  }

  .hero-grid,
  .mission-layout,
  .services-head,
  .process-section,
  .strengths-layout,
  .profile-card,
  .closing-section {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 36px;
    align-items: center;
    padding-bottom: 64px;
  }

  .hero-panel {
    max-width: 520px;
  }

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

  .services-head {
    margin-left: 0;
    gap: 24px;
  }

  .strengths-sticky {
    position: relative;
    top: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .hero-section,
  .hero-grid {
    min-height: 680px;
  }

  .hero-grid {
    width: min(100% - 28px, 1180px);
    padding-top: 130px;
  }

  .hero-copy h1 {
    font-size: clamp(2.85rem, 15vw, 4.2rem);
  }

  .lead {
    line-height: 1.9;
  }

  .mission-section,
  .services-section,
  .strengths-section,
  .profile-section,
  .closing-section,
  .process-section {
    width: min(100% - 28px, 1180px);
    padding: 86px 0;
  }

  .section-index {
    display: none;
  }

  .section-label h2,
  .closing-text h2 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .button-primary,
  .button-ghost {
    width: 100%;
  }

  .hero-panel,
  .service-card,
  .profile-card {
    padding: 24px;
  }

  .strength-item,
  .profile-table > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-footer,
  .site-footer div {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-up {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}
