:root {
  --ink: #303030;
  --brand-blue: #18549b;
  --brand-green: #39743b;
  --brand-orange: #e78a16;
  --brand-magenta: #a12078;
}
body { color: var(--ink); }
img { max-width: 100%; height: auto; }
small { color: var(--brand-blue); }
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eceaf3;
  box-shadow: 0 2px 12px rgba(35, 49, 62, .04);
}
#contact {
  scroll-margin-top: calc(var(--header-height, 150px) + 24px);
}
.brand { color: var(--ink); }
.visual-hero { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; background: #f8f7fc; }
.hero-copy { position: relative; z-index: 1; padding: 80px 6%; width: 57%; }
.hero-copy h1 { font-size: clamp(38px, 4.7vw, 72px); letter-spacing: -.055em; line-height: 1.3; margin: 25px 0; }
.hero-copy p { font-size: 19px; }
.hero-art { position: absolute; right: 0; top: 0; width: 49%; height: 100%; object-fit: cover; object-position: left top; }
.button { border-color: var(--brand-blue); }
.showcase, .history-visual { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 55px; max-width: 1250px; margin: auto; padding: 70px 30px; }
.showcase h2, .history-visual h2 { font-size: clamp(30px, 3.4vw, 48px); }
.showcase img { width: 100%; }
.card {
  background: #fff;
  border-color: var(--brand-blue);
  box-shadow: 0 8px 30px rgba(35, 49, 62, .09);
  border-radius: 6px;
}
.card img { width: 100%; height: 165px; object-fit: contain; margin: 20px 0 0; }
.contact { background: #f5f7f7; padding: 0 0 24px; }
.contact h3, .contact address { padding-inline: 24px; }
.store-photo { width: 100%; aspect-ratio: 1.7; object-fit: cover; display: block; }
.section .section { padding: 0; }
.heading { background: #f2f6fa; }
.heading h1, .heading p { width: 70%; }
.machine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.machine-grid figure { margin: 0; overflow: hidden; background: #f5f7f9; }
.machine-grid img { display: block; width: 100%; height: 240px; object-fit: contain; background: #64bc8b; }
figcaption { padding: 22px; font-weight: 650; }
.machines + .machines { padding-top: 0; }
.product-gallery { max-width: 1250px; padding: 40px 30px 80px; margin: auto; }
.product-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: center; padding: 60px 0; border-bottom: 1px solid #e9e5ef; }
.product-row:nth-child(even) .product-image { order: 2; }
.product-image { padding: 25px 0; }
.product-image img { width: 100%; display: block; }
.product-copy h2 { font-size: 38px; margin-block: 15px; }
.product-copy p { color: #50565c; }

.timeline strong { color: var(--brand-blue); }
footer { background: #303030; }
@media(max-width:750px) {
  .visual-hero { display: flex; flex-direction: column-reverse; min-height: auto; }
  .hero-art { position: static; width: 100%; height: 240px; object-fit: cover; object-position: center top; }
  .hero-copy { width: 100%; padding: 35px 24px 55px; }
  .showcase, .history-visual, .product-row { grid-template-columns: 1fr; gap: 20px; }
  .machine-grid { grid-template-columns: 1fr; }
  .machine-grid img { height: 230px; }
  .heading { background-image: none; }
  .heading h1, .heading p { width: 100%; }
  .product-row:nth-child(even) .product-image { order: 0; }
  .product-row { padding: 30px 0; }
  .product-copy h2 { font-size: 30px; }
}

.hero-copy{width:100%;max-width:1200px;margin:auto}.visual-hero{min-height:480px;background:#f2f6fa}.heading{background:#f2f6fa}.machine-grid img{background:white}.brand{display:flex;align-items:center;gap:10px}.brand img{width:48px;height:48px;object-fit:contain}.greeting{max-width:1000px}.greeting p{line-height:2;color:#50565c}.workflow-services{background:#f5f7f7;margin-bottom:60px}.workflow-services ul{display:grid;grid-template-columns:1fr 1fr;gap:20px;list-style:none;padding:0}.workflow-services li{padding:18px 22px;background:white;border-left:3px solid var(--brand-green)}@media(max-width:750px){.timeline article{align-items:flex-start;flex-direction:column;gap:0}.workflow-services ul{grid-template-columns:1fr}}

/* Logo colors distinguish service groups while keeping body text neutral. */
body {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
p, li {
  line-height: 1.85;
}
h1, h2, h3 {
  text-wrap: balance;
}
nav a:hover, nav a:focus-visible {
  color: var(--brand-blue);
}
a:focus-visible {
  outline-color: var(--brand-blue);
}
.brand:hover, .brand:focus-visible {
  color: var(--ink);
}
.heading {
  border-bottom: 3px solid var(--brand-blue);
}
.hero-copy h1 {
  font-size: clamp(34px, 4.4vw, 66px);
}
.card:nth-child(2) {
  border-color: var(--brand-green);
}
.card:nth-child(2) small {
  color: var(--brand-green);
}
.card:nth-child(3) {
  border-color: var(--brand-orange);
}
.card:nth-child(3) small {
  color: #965308;
}
.product-row {
  --section-color: var(--brand-blue);
}
.product-row:nth-child(4n + 2) {
  --section-color: var(--brand-green);
}
.product-row:nth-child(4n + 3) {
  --section-color: #965308;
}
.product-row:nth-child(4n + 4) {
  --section-color: var(--brand-magenta);
}
.product-copy small {
  color: var(--section-color);
  display: inline-block;
  border-bottom: 3px solid currentColor;
  padding-bottom: 6px;
}
.greeting p {
  margin-bottom: 1.7em;
}
figcaption {
  line-height: 1.65;
}
@media(max-width:750px) {
  .greeting br, .heading p br {
    display: none;
  }
  .greeting p {
    max-width: 36em;
  }
}

/* Navigation responds to pointer hover and keyboard focus without shifting layout. */
nav a {
  position: relative;
  padding-block: 9px;
  transition: color 180ms ease, transform 180ms ease;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}
nav a:hover, nav a:focus-visible {
  transform: translateY(-2px);
}
nav a:hover::after, nav a:focus-visible::after {
  transform: scaleX(1);
}
.greeting p, .history-visual p, .workflow-services li {
  font-size: 19px;
  line-height: 1.95;
}
.greeting {
  max-width: 1080px;
}
.timeline {
  --timeline-axis: 10px;
}
.timeline article {
  display: grid;
  grid-template-columns: 150px 1fr;
  position: relative;
  align-items: center;
  gap: 30px;
  padding: 32px 0 32px 58px;
  border-bottom: 0;
}
.timeline article::after {
  content: "";
  position: absolute;
  left: var(--timeline-axis);
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: #d2dce6;
}
.timeline article:first-child::after {
  top: 50%;
}
.timeline article:last-child::after {
  bottom: 50%;
}
.timeline article::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: var(--timeline-axis);
  top: 50%;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 50%;
  background: #315a7d;
  box-shadow: 0 0 0 1px #a6b9c9;
}
.timeline strong {
  color: #315a7d;
  font-size: 44px;
  font-weight: 700;
}
.timeline h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  color: #3f474e;
}
@media(max-width:750px) {
  .greeting p, .history-visual p, .workflow-services li {
    font-size: 18px;
    line-height: 1.9;
  }
  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 26px 0 26px 42px;
  }
  .timeline strong {
    font-size: 36px;
  }
  .timeline h2 {
    font-size: 22px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  nav a, nav a::after {
    transition: none;
  }
  nav a:hover, nav a:focus-visible {
    transform: none;
  }
}

/* Keep the current destination visible after pointer focus moves away. */
nav a[aria-current] {
  color: var(--brand-blue);
  font-weight: 700;
}
nav a[aria-current]::after {
  transform: scaleX(1);
}
.visual-hero {
  background: #fff;
}
.visual-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.68) 52%, rgba(255,255,255,.42)),
    url("assets/banner-home.webp");
  background-size: cover;
  background-position: center, center right;
  filter: saturate(.9) contrast(.9) brightness(1.06);
}
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 8px 24px 0;
  padding: 9px 15px;
  border: 1px solid #c5d4df;
  border-radius: 4px;
  background: #fff;
  color: var(--brand-blue);
  font-weight: 600;
}
.map-link:hover {
  background: #edf3f8;
}
.branch-alias {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: #646b72;
}

.phone-display {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.phone-display img {
  width: 150px;
  height: 28px;
  object-fit: contain;
}
button, input, select, textarea {
  font: inherit;
}
.inquiry-button, .inquiry-submit {
  cursor: pointer;
  border: 1px solid #315a7d;
  border-radius: 5px;
  background: #315a7d;
  color: #fff;
  padding: 11px 18px;
  font-weight: 600;
}
.inquiry-button {
  display: block;
  margin: 20px 24px 12px;
  width: calc(100% - 48px);
}
.inquiry-button:hover, .inquiry-submit:not(:disabled):hover {
  background: #23445f;
}
.inquiry-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
}
#inquiry-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 32px;
  border: 1px solid #dce5ec;
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(20, 35, 50, .22);
}
#inquiry-dialog::backdrop {
  background: rgba(20, 35, 50, .5);
}
.inquiry-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.inquiry-header h2 {
  margin: 8px 0 16px;
}
.dialog-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  padding: 0;
  cursor: pointer;
  border: 0;
  background: #f1f4f6;
  color: #303030;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  line-height: 1;
}
.dialog-close svg {
  display: block;
  width: 20px;
  height: 20px;
  pointer-events: none;
}
#inquiry-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
  font-weight: 600;
}
#inquiry-form input, #inquiry-form select, #inquiry-form textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #b7c6d1;
  border-radius: 5px;
  background: #fff;
  color: #303030;
  font-weight: 400;
}
#inquiry-form textarea {
  resize: vertical;
}
.inquiry-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-note, .inquiry-status {
  font-size: 14px;
  line-height: 1.7;
  color: #4d5e6b;
}
.inquiry-status {
  min-height: 24px;
}
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #18549b;
  outline-offset: 3px;
}
@media(max-width:750px) {
  #inquiry-dialog {
    padding: 24px 18px;
  }
  .inquiry-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Pale photographic banners keep heading contrast consistent across pages. */
.page-history .heading { --banner-image: url("assets/banner-history.webp"); }
.page-equipment .heading { --banner-image: url("assets/banner-equipment.webp"); }
.page-products .heading { --banner-image: url("assets/banner-services.webp"); }
.heading {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.65) 55%, rgba(255,255,255,.22)),
    var(--banner-image);
  background-size: cover;
  background-position: center, center right;
}
.workflow-services {
  max-width: 1190px;
  padding: 60px 48px;
  border: 1px solid #dce5ec;
  border-radius: 22px;
  background: linear-gradient(145deg, #f4f8fb, #fff);
  box-shadow: 0 14px 45px rgba(35, 62, 85, .06);
}
.workflow-services > h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -.04em;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 40px 0;
}
.workflow-services .process-steps li {
  position: relative;
  padding: 28px;
  background: #fff;
  border: 1px solid #dae4ec;
  border-radius: 14px;
}
.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: #315a7d;
  font-size: 16px;
  font-weight: 700;
}
.process-steps h3 {
  margin: 22px 0 10px;
  font-size: 25px;
}
.process-steps p {
  font-size: 16px;
  color: #596874;
  margin: 0;
}
.service-list-title {
  font-size: 20px;
  padding-top: 25px;
  border-top: 1px solid #dce5ec;
}
.workflow-services ul {
  gap: 12px 25px;
}
.workflow-services ul li {
  padding: 10px 0 10px 19px;
  position: relative;
  border: 0;
  background: transparent;
  font-size: 17px;
}
.workflow-services ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7a99b3;
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.65,.3,1);
}
.reveal.is-visible, .reveal:focus-within {
  opacity: 1;
  transform: none;
}
@media(max-width:750px) {
  .heading {
    background-image: linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.65)), var(--banner-image);
  }
  .workflow-services {
    width: calc(100% - 32px);
    padding: 32px 22px;
    border-radius: 16px;
  }
  .process-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media print {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
@media(max-width:750px) {
  .visual-hero::before {
    background-image:
      linear-gradient(0deg, rgba(255,255,255,.94), rgba(255,255,255,.68)),
      url("assets/banner-home.webp");
    background-position: center, 68% center;
  }
}
