/* Top-page layout overrides; legacy form and completion pages keep their styles. */
/* jQuery owns scroll animation and probes html.scrollTop synchronously first.
   Override Bootstrap's :root smooth scrolling so the probe selects html correctly. */
html:root {
  scroll-behavior: auto;
}

.lp-page {
  overflow-wrap: anywhere;
}

/* Keep the header in normal flow so wrapping or zoom cannot cover the page. */
.lp-page header {
  position: static;
  background: #fff;
}

.lp-page img {
  max-width: 100%;
  height: auto;
}

.lp-page .row > * {
  min-width: 0;
}

.lp-page #header_top .row {
  align-items: center;
}

.lp-page #header_top .right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
}

.lp-page #header_top .right p {
  float: none;
  margin: 10px 0;
}

.lp-page #header_top .btn-none {
  white-space: normal;
}

.lp-page #header_top .hover-color {
  max-width: 100%;
}

.lp-page #title_header {
  height: auto;
}

.lp-page .top-box {
  padding: 40px 0;
}

.lp-page .top-btn {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 650px;
}

.lp-page .top-btn li {
  flex: 1 1 220px;
  width: auto;
  max-width: 300px;
  margin: 0;
  padding: 0;
  font-weight: 700;
}

.lp-page .top-btn a {
  display: block;
  padding: 12px;
  color: #fff;
  text-decoration: none;
}

.lp-page .service_box {
  width: calc(100% - 32px);
  max-width: 1000px;
}

.lp-page .object_box {
  width: 100%;
  justify-content: center;
}

/* Slick's moving track is intentionally wider than its own clipped viewport. */
.lp-page #corp .autoplay {
  min-width: 0;
  overflow: hidden;
}

.lp-page #main_box .row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lp-page #main_box .row > div {
  width: auto;
}

.lp-page #main_box .back-color-s {
  height: auto !important; /* Override the legacy narrow-screen fixed height. */
  min-height: 100%;
}

.lp-page #main_box .hover-color,
.lp-page #price .hover-color,
.lp-page #flow .hover-color {
  width: 100%;
  max-width: 300px;
}

.lp-page #price .scroll-spy {
  width: 100%;
  overflow: visible;
}

.lp-page #price .table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.lp-page #price th,
.lp-page #price td {
  padding: 10px 8px;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.lp-page #price .table th,
.lp-page #price .table td {
  font-size: 14px;
}

.lp-page #price th {
  width: 23%;
}

.lp-page #price td:last-child {
  width: 28%;
}

.lp-page .minimum-price {
  margin: 24px 0;
  padding: 20px;
  border-left: 5px solid #3300ff;
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
}

.lp-page .minimum-price strong {
  font-size: 20px;
}

.lp-page #price .minimum-price-amount {
  display: inline-block;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  color: inherit;
  background: none;
  font-size: inherit;
}

.lp-page .minimum-price p:last-child {
  margin-bottom: 0;
}

.lp-page #price .largepaper2 {
  max-width: 100%;
  padding: clamp(16px, 3vw, 40px);
}

.lp-page .largepaper2 .back-g p {
  width: auto;
}

.lp-page #flow .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
}

.lp-page #flow .flow-box {
  width: auto;
  margin: 30px 0 0;
}

.lp-page #flow .middle-icon {
  width: auto;
  padding: 60px 4px 0;
}

/* Marks share a plain white panel; no cropping, recoloring, or stretching. */
.lp-page #pre_footer {
  background: #f4f6f8;
}

.lp-page .certification-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.lp-page .certification-panel {
  padding: 24px;
  background: #fff;
}

.lp-page .certification-marks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.lp-page .certification-iso {
  width: 100%;
}

.lp-page .certification-iso-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.lp-page #pre_footer .certification-privacy {
  display: block;
  width: 160px;
  margin: 0;
}

.lp-page #pre_footer .certification-eqa {
  width: 46%;
  max-width: 180px;
  margin: 0;
}

.lp-page #pre_footer .certification-anab {
  width: 36%;
  max-width: 120px;
  margin: 0;
}

.lp-page #pre_footer .certification-caption {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.lp-page .certification-list {
  padding-left: 1.25em;
}

.lp-page #pre_footer .certification-copy,
.lp-page #pre_footer .certification-copy p,
.lp-page #pre_footer .certification-list li {
  font-size: 16px;
  line-height: 1.7;
}

.lp-page .certification-list li {
  margin-bottom: 16px;
}

.lp-page #page-top {
  right: 12px;
  z-index: 10;
}

.lp-page #page-top a {
  height: auto;
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.lp-page footer {
  padding: 16px 60px;
}

@media (max-width: 767px) {
  /* Inline bottom values from the existing scroll animation have no effect here. */
  .lp-page #page-top {
    position: static;
    width: fit-content;
    max-width: 100%;
    margin: 24px auto;
  }

  .lp-page #header_top .right {
    justify-content: center;
  }

  .lp-page #header_top .left {
    text-align: center;
  }

  .lp-page #title_header p {
    padding: 0 0 16px;
  }

  .lp-page #main_box .row,
  .lp-page #flow .row,
  .lp-page .certification-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-page #main_box .row > div {
    margin-top: 16px !important;
    margin-bottom: 16px !important;
  }

  .lp-page #price .largepaper2 .row {
    display: flex;
    flex-direction: column;
  }

  .lp-page #price .largepaper2 .row > div {
    width: 100%;
  }

  .lp-page #price .largepaper2 .back-g {
    padding: 12px;
  }

  .lp-page #flow .flow-box {
    margin-top: 16px;
  }

  .lp-page #flow .middle-icon {
    padding: 0;
    text-align: center;
    transform: rotate(90deg);
  }

  .lp-page #pre_footer .container {
    max-width: 100%;
    padding: 0 16px;
  }

  .lp-page .certification-panel {
    padding: 20px;
  }
}
