:root {
  --ink: #171b1f;
  --muted: #626b73;
  --line: #d8dde1;
  --paper: #f5f6f5;
  --white: #ffffff;
  --steel: #263845;
  --deep: #0f232d;
  --accent: #b56b38;
  --blue: #2f6378;
  --shadow: 0 18px 42px rgba(18, 26, 32, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.75;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: linear-gradient(135deg, var(--deep), var(--blue));
  border-radius: 4px;
  font-weight: 850;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.25;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.6vw, 36px);
  color: #39444d;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition: 0.2s ease;
}

.main-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #eef1f2;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.lang-button {
  min-width: 38px;
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.lang-button.is-active {
  color: var(--white);
  background: var(--deep);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 17, 24, 0.9), rgba(6, 17, 24, 0.63) 52%, rgba(6, 17, 24, 0.24)),
    url("assets/metal-hero.png") center / cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 110px 0 130px;
}

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

.hero .eyebrow {
  color: #e8b17f;
}

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

h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 1.8vw, 21px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

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

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.09);
}

.section {
  position: relative;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0;
}

.anchor-target {
  position: absolute;
  top: -96px;
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.lead-section > p {
  margin: 6px 0 0;
  color: #354047;
  font-size: 18px;
}

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

.section-heading.centered {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
}

.service-section,
.contact-section {
  width: 100%;
  padding-right: max(18px, calc((100vw - 1120px) / 2));
  padding-left: max(18px, calc((100vw - 1120px) / 2));
  background: #e9eeee;
}

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

.service-card {
  min-height: 430px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.service-photo {
  min-height: 190px;
  background: url("assets/work03.jpg") center / cover;
}

.photo-alloy {
  background: url("assets/work02.jpg") center / cover;
}

.photo-logistics {
  background: url("assets/work04.jpg") center / cover;
}

.service-card-body {
  padding: 24px;
}

.card-number,
.strength-item span {
  color: var(--accent);
  font-weight: 900;
}

.service-card h3,
.strength-item h3,
.material-group h3 {
  margin: 14px 0 10px;
  font-size: 22px;
  line-height: 1.32;
}

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

.materials-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

.materials-visual {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: 24px;
  color: rgba(255, 255, 255, 0.9);
  background: url("assets/work01.jpg") center / cover;
  border-radius: 4px;
  font-weight: 800;
  text-align: center;
}

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

.material-group {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.material-group h3 {
  margin-top: 0;
}

.material-group ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #3f4b53;
  list-style: none;
}

.material-group li::before {
  color: var(--accent);
  content: "・";
}

.strengths-section {
  padding-top: 0;
}

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

.strength-item {
  padding: 26px;
  background: var(--white);
  border-top: 4px solid var(--deep);
  box-shadow: var(--shadow);
}

.strength-item h3 {
  margin-top: 8px;
}

.contact-form {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.contact-lead {
  max-width: 860px;
  margin: -12px auto 22px;
  padding: 22px 26px;
  color: #34414a;
  background: var(--white);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.contact-lead p {
  margin: 0;
}

.contact-lead p + p {
  margin-top: 6px;
}

.contact-lead a {
  display: inline-block;
  margin-top: 12px;
  color: var(--deep);
  font-weight: 850;
}

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

.contact-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-label b {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 22px;
  padding: 2px 7px;
  color: var(--white);
  background: var(--accent);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
}

.field-label b.optional {
  color: var(--muted);
  background: #e6ebed;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfc;
  font: inherit;
}

textarea {
  resize: vertical;
}

.confirm-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
  padding: 14px 16px;
  color: #34414a !important;
  background: #f3f6f6;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.confirm-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.contact-form .button {
  width: 100%;
}

.company-section {
  padding-bottom: 100px;
}

.company-table {
  margin: 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.company-table div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.company-table dt,
.company-table dd {
  margin: 0;
  padding: 20px 22px;
}

.company-table dt {
  color: var(--deep);
  background: #edf1f2;
  font-weight: 850;
}

.company-table dd {
  color: #333d45;
  font-weight: 650;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 30px clamp(18px, 4vw, 58px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--deep);
}

.site-footer strong {
  display: block;
  color: var(--white);
}

.site-footer p {
  margin: 5px 0 0;
}

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

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .lead-section,
  .materials-layout {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .strength-list,
  .materials-lists {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .language-switcher {
    margin-left: auto;
  }

  .hero {
    min-height: 690px;
  }

  .hero-content {
    padding-top: 78px;
    padding-bottom: 86px;
  }

  h1 {
    font-size: 40px;
  }

  .section {
    padding: 64px 0;
  }

  .service-section,
  .contact-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .form-grid,
  .company-table div,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .company-table dt,
  .company-table dd {
    padding: 14px 16px;
  }
}
