:root {
  --navy: #10243d;
  --navy-2: #17385e;
  --blue: #1f78c8;
  --orange: #f28c28;
  --text: #17202a;
  --muted: #5b6673;
  --line: #dbe3ec;
  --bg: #ffffff;
  --soft: #f3f6f9;
  --soft-blue: #e9f3fb;
  --shadow: 0 18px 40px rgba(16, 36, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, 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;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  font-weight: 800;
  color: var(--navy);
}

.brand-logo {
  display: block;
  width: 180px;
  max-width: 42vw;
  height: auto;
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  width: 100%;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.header-cta {
  flex: 0 0 auto;
  padding: 10px 18px;
  color: #fff;
  background: var(--orange);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
}

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

.section {
  padding: 88px 0;
}

.section-band {
  background:
    linear-gradient(110deg, rgba(16, 36, 61, 0.96), rgba(23, 56, 94, 0.9)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 80px);
}

.hero {
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 58px 0 76px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.84rem;
  font-weight: 900;
}

.hero h1,
.section-head h2,
.contact-copy h2 {
  margin: 0;
  color: inherit;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 5vw, 4.7rem);
  font-weight: 900;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 36, 61, 0.18);
}

.button-primary {
  color: #fff;
  background: var(--orange);
}

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

.hero-points {
  display: grid;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.88);
}

.hero-points li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--orange);
  font-weight: 900;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.machine-illustration {
  position: relative;
  width: min(500px, 100%);
  aspect-ratio: 1 / 0.86;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 44px);
  box-shadow: var(--shadow);
}

.panel {
  position: absolute;
  left: 8%;
  top: 14%;
  width: 34%;
  height: 58%;
  padding: 16px;
  background: #f5f7fa;
  border: 5px solid #c6d2df;
  border-radius: 8px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.18);
}

.panel-top,
.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.panel-top span,
.panel-grid i {
  display: block;
  height: 12px;
  background: var(--orange);
  border-radius: 999px;
}

.panel-top span:nth-child(2) {
  background: var(--blue);
}

.panel-top span:nth-child(3) {
  background: #5fb46b;
}

.panel-screen {
  display: grid;
  place-items: center;
  height: 76px;
  margin: 18px 0;
  color: #d7f1ff;
  background: #132b45;
  border-radius: 6px;
  font-weight: 900;
}

.panel-grid i {
  height: 22px;
  background: #cfd9e3;
  border-radius: 4px;
}

.conveyor {
  position: absolute;
  right: 9%;
  bottom: 17%;
  display: flex;
  gap: 14px;
  align-items: center;
  width: 68%;
  height: 68px;
  padding: 14px 18px;
  background: #dbe4ed;
  border: 6px solid #8798aa;
  border-radius: 8px;
}

.conveyor span {
  flex: 1;
  height: 18px;
  background: #243a53;
  border-radius: 999px;
}

.robot-arm {
  position: absolute;
  right: 15%;
  top: 16%;
  width: 190px;
  height: 180px;
}

.arm-base,
.arm-joint,
.arm-link,
.arm-hand {
  position: absolute;
  background: var(--orange);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.16);
}

.arm-base {
  right: 0;
  bottom: 0;
  width: 70px;
  height: 42px;
  border-radius: 8px 8px 0 0;
}

.arm-joint {
  right: 28px;
  bottom: 37px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.arm-link {
  right: 54px;
  bottom: 75px;
  width: 124px;
  height: 24px;
  transform: rotate(-28deg);
  transform-origin: right center;
  border-radius: 999px;
}

.arm-hand {
  left: 9px;
  top: 41px;
  width: 44px;
  height: 34px;
  background: #f2f5f8;
  border-radius: 4px;
}

.wire {
  position: absolute;
  height: 4px;
  background: var(--blue);
  border-radius: 999px;
}

.wire-one {
  left: 39%;
  top: 45%;
  width: 36%;
  transform: rotate(-12deg);
}

.wire-two {
  left: 29%;
  top: 73%;
  width: 48%;
  background: var(--orange);
  transform: rotate(8deg);
}

.section-head {
  max-width: 790px;
  margin-bottom: 42px;
}

.section-head h2,
.contact-copy h2 {
  color: var(--navy);
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 900;
  line-height: 1.32;
}

.section-head p:not(.eyebrow),
.contact-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-muted {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - 1120px) / 2));
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  background: var(--soft);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(16, 36, 61, 0.06);
}

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--navy-2);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 900;
}

.info-card h3,
.flow h3 {
  margin: 0 0 10px;
  color: var(--navy);
  line-height: 1.45;
  font-size: 1.16rem;
}

.info-card p,
.flow p {
  margin: 0;
  color: var(--muted);
}

.solution-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.solution-list div {
  position: relative;
  padding: 18px 18px 18px 48px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.solution-list div::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--blue);
  border-radius: 4px;
  transform: translateY(-50%);
}

.mid-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding: 26px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
}

.mid-cta p {
  margin: 0;
  font-weight: 800;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.compare-column {
  padding: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.compare-general {
  background: #fff;
}

.compare-us {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.compare-column h3 {
  margin: 0 0 20px;
  font-size: 1.35rem;
}

.compare-column ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-column li {
  position: relative;
  padding-left: 28px;
}

.compare-column li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--orange);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.case-grid article {
  min-height: 150px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 8px;
}

.case-grid strong,
.case-grid span {
  display: block;
}

.case-grid strong {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.06rem;
}

.case-grid span {
  color: var(--muted);
  font-size: 0.94rem;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.flow article {
  position: relative;
  padding: 26px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(16, 36, 61, 0.06);
}

.flow span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  padding: 20px 24px;
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact-note {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding: 22px;
  background: var(--soft-blue);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
}

.contact-note strong {
  color: var(--navy);
}

.contact-note span {
  color: var(--muted);
}

.company-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.company-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.company-links a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

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

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

input,
textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #c8d3df;
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(31, 120, 200, 0.18);
  border-color: var(--blue);
}

textarea {
  resize: vertical;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--blue);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-links a:hover {
  color: var(--orange);
}

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

  .site-header {
    justify-content: space-between;
  }

  .hero-inner,
  .contact-section,
  .comparison {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

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

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

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

  .brand-logo {
    width: 136px;
    max-width: 38vw;
  }

  .header-cta {
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  .section,
  .hero-inner {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 62px 0;
  }

  .section-muted {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-inner {
    padding: 44px 0 58px;
  }

  .hero-actions,
  .form-actions,
  .mid-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    margin-top: 8px;
  }

  .card-grid,
  .solution-list,
  .flow {
    grid-template-columns: 1fr;
  }

  .section-head h2,
  .contact-copy h2 {
    font-size: clamp(1.62rem, 8vw, 2.15rem);
    line-height: 1.36;
  }

  .flow h3 {
    font-size: 1.08rem;
  }

  .info-card,
  .compare-column,
  .contact-form {
    padding: 22px;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
