:root {
  --ink: #17211f;
  --muted: #5b6763;
  --line: #dce3df;
  --paper: #ffffff;
  --soft: #f4f7f2;
  --soft-strong: #edf3ee;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --teal-deep: #083a36;
  --coral: #c94f3d;
  --gold: #b58b2a;
  --shadow: 0 18px 45px rgba(23, 33, 31, 0.12);
  --shadow-soft: 0 12px 30px rgba(23, 33, 31, 0.08);
  --shadow-strong: 0 24px 58px rgba(23, 33, 31, 0.16);
  --text-xs: 0.8rem;
  --text-sm: 0.92rem;
  --text-base: 1rem;
  --text-lg: 1.06rem;
  --heading-card-tight: clamp(1.08rem, 0.92vw + 0.94rem, 1.28rem);
  --heading-card: clamp(1.18rem, 1.12vw + 1rem, 1.42rem);
  --heading-section: clamp(1.9rem, 2.4vw + 1.25rem, 2.7rem);
  --heading-hero: clamp(2.6rem, 4.2vw + 1.2rem, 4.1rem);
  --heading-hero-mobile: clamp(2.15rem, 6vw + 0.8rem, 2.75rem);
  --body-measure: 62ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

:focus-visible {
  outline: 3px solid rgba(201, 79, 61, 0.72);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  color: #fff;
  background: rgba(16, 28, 26, 0.2);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.site-header.solid,
.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-size: var(--text-sm);
}

.brand-name {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: var(--text-sm);
  font-weight: 600;
}

.site-nav a {
  opacity: 0.9;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--teal);
}

.nav-contact {
  padding: 10px 16px;
  color: #fff;
  background: var(--coral);
  border-radius: 8px;
}

.site-nav .nav-contact:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(20px, 7vw, 96px) 80px;
  color: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 21, 19, 0.88), rgba(8, 21, 19, 0.5), rgba(8, 21, 19, 0.18)),
    linear-gradient(180deg, rgba(8, 21, 19, 0.24), rgba(8, 21, 19, 0));
}

.hero-content {
  position: relative;
  max-width: 940px;
  padding: 22px 0 22px 2px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.contact-hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: var(--heading-hero);
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  line-height: 1.8;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 700;
  backdrop-filter: blur(8px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.button.primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.28);
}

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

.button:hover {
  transform: translateY(-2px);
}

.button.primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 18px 34px rgba(11, 79, 74, 0.3);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 96px clamp(20px, 6vw, 88px);
}

.challenges,
.strengths,
.company {
  position: relative;
}

.challenges::before,
.strengths::before,
.company::before {
  content: "";
  display: block;
  grid-column: 1 / -1;
  width: 72px;
  height: 1px;
  margin-bottom: 26px;
  background: linear-gradient(90deg, var(--teal), rgba(15, 118, 110, 0));
}

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

.section-heading h2,
.cta h2,
.company-copy h2,
.contact-info h2 {
  margin: 0;
  font-size: var(--heading-section);
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  background: linear-gradient(180deg, var(--soft) 0%, var(--soft-strong) 100%);
  align-items: start;
}

.intro-grid {
  display: grid;
  gap: 20px;
  color: var(--muted);
  font-size: var(--text-lg);
}

.intro-grid p {
  margin: 0;
  max-width: var(--body-measure);
}

.solutions {
  display: grid;
  gap: 44px;
}

.solution-block,
.legacy {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.solution-block.reverse .solution-media {
  order: 2;
}

.solution-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.solution-copy {
  max-width: 640px;
}

.solution-number {
  color: var(--coral);
  font-weight: 900;
}

.challenge-grid,
.support-grid {
  display: grid;
  gap: 18px;
}

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

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

.challenge-grid article,
.support-card,
.legacy-points div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.challenge-grid article {
  min-height: 260px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
  container-type: inline-size;
}

.challenge-grid h3 {
  max-width: none;
  white-space: normal;
  text-wrap: balance;
  font-size: clamp(1rem, 8cqi, var(--heading-card-tight));
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.challenge-grid p {
  max-width: 30ch;
  line-height: 1.72;
}

.challenge-grid span {
  display: inline-grid;
  width: 42px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--coral);
  border-radius: 8px;
  font-weight: 900;
}

.support-card {
  overflow: hidden;
  padding: 0 26px 28px;
  box-shadow: var(--shadow-soft);
}

.support-card img {
  width: calc(100% + 52px);
  max-width: none;
  height: 220px;
  margin: 0 -26px 24px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.support-card .service-list {
  margin-top: 20px;
}

.support-card h3 {
  white-space: nowrap;
  font-size: var(--heading-card);
  line-break: strict;
  margin-bottom: 10px;
}

.solution-copy h3,
.challenge-grid h3,
.legacy-copy h2,
.legacy-points h3,
.case-feature h3,
.case-grid h3,
.strength-grid h3,
.process-list h3 {
  margin: 8px 0 12px;
  font-size: var(--heading-card);
  line-height: 1.3;
}

.solution-copy p,
.challenge-grid p,
.support-card p,
.legacy-copy p,
.legacy-points p,
.case-feature p,
.case-grid p,
.strength-grid p,
.process-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.support-card p,
.case-feature p,
.case-grid p,
.strength-grid p,
.process-list p,
.contact-info .note {
  max-width: var(--body-measure);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.service-list span {
  padding: 8px 12px;
  color: var(--teal-dark);
  background: #e8f3ef;
  border: 1px solid #c9e2da;
  border-radius: 8px;
  font-weight: 700;
  font-size: var(--text-sm);
}

.use-cases {
  background: linear-gradient(180deg, var(--soft) 0%, #f7faf8 100%);
}

.legacy {
  background: linear-gradient(180deg, var(--teal-dark) 0%, var(--teal-deep) 100%);
  color: #fff;
}

.legacy .eyebrow {
  color: #f2c45c;
}

.legacy-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
}

.legacy-points {
  display: grid;
  gap: 16px;
}

.legacy-points div {
  padding: 24px;
  color: var(--ink);
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: stretch;
}

.case-feature,
.case-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.case-feature {
  min-height: 100%;
  padding: 34px;
  color: #fff;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  box-shadow: var(--shadow-strong);
}

.case-feature p {
  color: rgba(255, 255, 255, 0.86);
}

.case-feature ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.case-feature li {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.case-label,
.case-grid span {
  color: var(--gold);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.case-grid article {
  min-height: 230px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.case-grid h3 {
  max-width: 14ch;
  white-space: nowrap;
  font-size: var(--heading-card-tight);
  line-height: 1.28;
}

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

.case-points li {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.case-points strong {
  color: var(--teal-dark);
  font-size: var(--text-xs);
}

.strengths,
.process {
  background: var(--paper);
}

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

.strength-grid article {
  min-height: 260px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.strength-grid span,
.process-list span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #cad4d0;
  box-shadow: var(--shadow-soft);
}

.process-list div {
  min-height: 240px;
  padding: 28px;
  background: var(--paper);
}

.process-list h3,
.strength-grid h3 {
  max-width: 12ch;
}

.process-list h3 {
  white-space: nowrap;
  font-size: var(--heading-card-tight);
  line-height: 1.28;
}

.strength-grid h3 {
  white-space: nowrap;
  font-size: var(--heading-card-tight);
  line-height: 1.28;
}

.company {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

dl {
  margin: 28px 0 0;
}

dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
}

.company-map iframe {
  width: 100%;
  min-height: 520px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.cta {
  margin: 0 clamp(20px, 6vw, 88px) 96px;
  padding: 56px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-deep) 100%);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
}

.cta .eyebrow {
  color: #f2c45c;
}

.cta h2 {
  max-width: 820px;
  margin-bottom: 26px;
}

.site-footer {
  padding: 28px clamp(20px, 6vw, 88px);
  color: #fff;
  background: #17211f;
}

.site-footer p {
  margin: 0;
}

.contact-page {
  padding-top: 72px;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 48px;
  align-items: center;
  padding: 80px clamp(20px, 6vw, 88px);
  background: linear-gradient(180deg, var(--soft) 0%, var(--soft-strong) 100%);
}

.contact-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: 1.8;
}

.contact-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  padding: 96px clamp(20px, 6vw, 88px);
  align-items: start;
}

.contact-info .note {
  margin-top: 24px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  font-size: var(--text-sm);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid #c8d3cf;
  border-radius: 8px;
  font: inherit;
  background: #fbfcfb;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: #fff;
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
  outline: none;
}

.form-message {
  margin: 0;
  color: var(--coral);
  font-weight: 800;
}

.form-message.success {
  color: var(--teal-dark);
}

.field-error {
  margin: -2px 0 0;
  color: var(--coral);
  font-size: var(--text-xs);
  font-weight: 800;
}

.contact-field-note {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.contact-summary div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-summary dt {
  color: var(--muted);
}

.contact-summary dd {
  white-space: pre-wrap;
  word-break: break-word;
}

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

.button.secondary-solid {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button.secondary-solid:hover {
  background: var(--soft);
}

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

.challenge-grid article:hover,
.support-card:hover,
.case-grid article:hover,
.strength-grid article:hover,
.legacy-points div:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow: var(--shadow);
}

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

  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    color: var(--ink);
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
  }

  .nav-contact {
    margin-top: 8px;
    text-align: center;
  }

  .intro,
  .solution-block,
  .legacy,
  .case-layout,
  .company,
  .contact-hero,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .solution-block.reverse .solution-media {
    order: 0;
  }

  .strength-grid,
  .challenge-grid,
  .support-grid,
  .case-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .support-card h3 {
    white-space: normal;
  }

  .challenge-grid h3,
  .challenge-grid p,
  .case-grid h3,
  .process-list h3,
  .strength-grid h3 {
    max-width: none;
  }

  .case-grid h3 {
    white-space: normal;
  }

  .strength-grid h3 {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    padding: 12px 16px;
  }

  .brand-name {
    font-size: var(--text-sm);
  }

  .hero {
    min-height: 88vh;
    padding: 108px 20px 64px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(12, 25, 22, 0.9), rgba(12, 25, 22, 0.66));
  }

  .hero h1,
  .contact-hero h1 {
    max-width: 100%;
    font-size: var(--heading-hero-mobile);
    line-height: 1.14;
  }

  .hero-lead,
  .contact-hero p:not(.eyebrow) {
    font-size: var(--text-base);
    line-height: 1.75;
  }

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

  .hero-points {
    gap: 8px;
  }

  .hero-points span {
    min-height: 34px;
    padding: 7px 12px;
    font-size: var(--text-sm);
  }

  .section {
    padding: 72px 20px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .strength-grid,
  .challenge-grid,
  .support-grid,
  .case-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .strength-grid article,
  .process-list div {
    min-height: auto;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .company-map iframe {
    min-height: 360px;
  }

  .cta {
    margin: 0 20px 72px;
    padding: 36px 24px;
  }

  .contact-hero,
  .contact-content {
    padding: 64px 20px;
  }

  .contact-form {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
