﻿:root {
  --blue: #0b4f8a;
  --blue-dark: #07365f;
  --blue-soft: #e8f1f8;
  --ink: #202832;
  --muted: #657382;
  --line: #d8e0e8;
  --bg: #f6f8fb;
  --white: #ffffff;
  --accent: #b78a32;
  --shadow: 0 14px 36px rgba(20, 38, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", Arial, sans-serif;
  line-height: 1.75;
  background: var(--white);
}

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

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar .container,
.site-header .container {
  width: min(1580px, calc(100% - 56px));
}

.topbar {
  background: var(--blue-dark);
  color: #dceaf5;
  font-size: 13px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
  font-weight: 700;
  color: var(--blue-dark);
}

.brand img {
  width: 118px;
  height: auto;
  object-fit: contain;
}

.brand span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  font-size: 19px;
  line-height: 1.25;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

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

.nav a {
  flex: 0 0 auto;
  min-width: max-content;
  padding: 12px 9px;
  color: #263544;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
}

.lang-switch {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  margin-left: 10px;
}

.lang-switch button {
  min-width: 42px;
  min-height: 32px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.lang-switch button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-dark);
  font-size: 24px;
}

.hero {
  position: relative;
  min-height: 620px;
  color: var(--white);
  background: linear-gradient(90deg, rgba(5, 28, 50, 0.88), rgba(5, 43, 80, 0.58), rgba(5, 43, 80, 0.12)), url("../images/machining-center.jpg") center/cover no-repeat;
}

.hero .container {
  display: grid;
  align-items: center;
  min-height: 620px;
  padding: 64px 0 92px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #d7e9f7;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.section .eyebrow,
.section-head .eyebrow,
.split .eyebrow {
  color: var(--blue);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.28;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 800;
}

.hero h1 span {
  display: block;
  margin-top: 12px;
  font-size: clamp(22px, 3vw, 34px);
  color: #e7f2fb;
}

.lead {
  margin: 22px 0 0;
  color: #f2f7fb;
  font-size: 19px;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-tags li,
.tag-list li {
  border: 1px solid rgba(255, 255, 255, 0.34);
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 700;
}

.tag-list li {
  border-color: var(--line);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
}

.btn.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.btn.light {
  border-color: var(--line);
  background: var(--white);
  color: var(--blue-dark);
}

.section {
  padding: 78px 0;
}

.section.alt {
  background: var(--bg);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
}

.section-title {
  color: var(--blue-dark);
  font-size: clamp(26px, 4vw, 38px);
}

.page-hero {
  padding: 84px 0;
  color: var(--white);
  background: linear-gradient(90deg, rgba(5, 28, 50, 0.86), rgba(5, 43, 80, 0.44)), url("../images/machining-center.jpg") center/cover no-repeat;
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #e5eef6;
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(20, 38, 58, 0.06);
}

.card-body {
  padding: 24px;
}

.card h3 {
  color: var(--blue-dark);
  font-size: 20px;
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.feature {
  padding: 24px;
  border-left: 4px solid var(--blue);
}

.feature strong {
  display: block;
  color: var(--blue-dark);
  font-size: 18px;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.data-table th,
.data-table td {
  border: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  width: 28%;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 7px;
  height: 7px;
  background: var(--blue);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: -42px;
  position: relative;
  z-index: 2;
  background: var(--line);
  box-shadow: var(--shadow);
}

.stat {
  padding: 26px;
  background: var(--white);
}

.stat b {
  display: block;
  color: var(--blue);
  font-size: 30px;
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.process {
  counter-reset: step;
}

.process-item {
  position: relative;
  padding: 24px 24px 24px 78px;
}

.process-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
}

.product-meta {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.product-meta b {
  color: var(--blue-dark);
}

.contact-box {
  padding: 30px;
  background: var(--blue-dark);
  color: var(--white);
}

.contact-box a {
  color: var(--white);
  font-weight: 700;
}

.form {
  display: grid;
  gap: 14px;
}

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

.form label {
  display: grid;
  gap: 6px;
  color: var(--blue-dark);
  font-weight: 700;
}

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

.form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
  color: var(--muted);
  font-size: 14px;
}

.form-status {
  min-height: 24px;
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.form-status.success {
  color: #0b6b3a;
}

.form-status.error {
  color: #a32d2d;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.68;
}

.required {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.footer {
  padding: 46px 0 24px;
  background: #182330;
  color: #d9e1e8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
}

.footer h3,
.footer h4 {
  color: var(--white);
}

.footer ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin: 7px 0;
}

.copyright {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #aeb8c1;
  font-size: 13px;
}

@media (max-width: 1320px) {
  .topbar .container {
    display: block;
  }

  .menu-button {
    display: block;
  }

  .lang-switch {
    margin-left: auto;
    margin-right: 10px;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .grid.cols-3,
  .grid.cols-4,
  .form-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .brand span {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero,
  .hero .container {
    min-height: 600px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    display: block;
  }

  .grid.cols-2,
  .stats {
    grid-template-columns: 1fr;
  }

  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .brand {
    font-size: 14px;
    gap: 8px;
  }

  .brand img {
    width: 96px;
    height: auto;
  }

  .brand span {
    max-width: 190px;
    font-size: 15px;
    white-space: normal;
  }

  .brand small {
    font-size: 10px;
  }
}


