/* base */
.latexpage {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #111;
  line-height: 1.75;
  font-size: 16px;
}

/* headings */
.latexpage h1,
.latexpage h2,
.latexpage h3 {
  font-weight: 700;
  color: #111;
}

.latexpage h1 {
  font-size: 26px;
  margin: 0 0 14px;
  text-align: left;
}

.latexpage h2 {
  font-size: 22px;
  margin: 60px 0 14px;
  padding-left: 12px;
  border-left: 6px solid #71c044;  /* green accent bar */
}

.latexpage .h2-pink {
  color: #f22c92;
  border-left-color: #71c044;      /* pink title, green bar */
}

/* pros / cons heading with square dot */
.latexpage .feature--pros h3,
.latexpage .feature--cons h3 {
  font-size: 18px;
  margin: 20px 0 10px;
  padding-left: 1.4em;
  border: none;
  position: relative;
  line-height: 1.4;
}

.latexpage .feature--pros h3::before,
.latexpage .feature--cons h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #71c044;            /* green square dot */
}

/* text */
.latexpage p {
  margin: 0 0 12px;
  color: #111;
}

.latexpage .em-pink strong {
  color: #f22c92;
  font-weight: 700;
}

/* note box (green tone for nitrile page) */
.latexpage .hh-note-box {
  border: 1px solid #d7ebc6;
  border-left: 4px solid #71c044;
  padding: 10px 14px;
  border-radius: 4px;
  background: #f8fcf4;
  margin: 10px 0 16px;
}

.latexpage .hh-note-box .hh-note-title {
  margin: 0 0 6px;
  font-weight: 700;
  color: #3e6b1f;
  font-size: 0.95rem;
}

.latexpage .hh-note-box .hh-note-list {
  margin: 0;
  padding-left: 1.2em;
}

.latexpage .hh-note-box .hh-note-list li {
  margin: 2px 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* lineup image area */
.latexpage .img-full {
  width: 100%;
  height: auto;
  display: block;
}

.latexpage .lineup-figure {
  margin: 16px 0 0;
}

/* lineup image individual control */
.latexpage .img-lineup {
  max-width: 1000px;
  margin: 0 auto;
}

/* zoom hint (SP only) */
.latexpage .zoom-hint {
  display: none;
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 4px;
}

.latexpage .sp-only {
  display: none;
}

/* image wrapper (PC: no click) */
.latexpage .zoomable-img {
  display: block;
  pointer-events: none;
}

/* quality section: left-aligned text */
.latexpage .media--quality {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 18px;
  max-width: 100%;
  margin: 0;
  padding-left: 0;
}

.latexpage .media--quality .media__body {
  flex: 1 1 auto;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
}

.latexpage .media--quality .media__body p {
  margin: 0 0 12px !important;
  padding: 0 !important;
  text-indent: 0 !important;
}

/* figure width control */
.latexpage .media--quality .media__fig {
  flex: 0 1 auto;
  max-width: none;
  margin: 0;
}

.latexpage .media--quality .media__fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* intro block: weight-based types */
.latexpage .media--intro {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto 1.2em;
}

@media (min-width: 641px) {
  .latexpage .media--intro {
    grid-template-columns: 160px 1fr;
    gap: 18px;
  }
}

.latexpage .media--intro .media__img {
  width: 100%;
  height: auto;
  max-width: none;
}

.latexpage .lead-weight {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.7;
  font-weight: 700;
}

/* change "ニトリルグローブ" text color to green */
.latexpage .em-blue-xl strong {
  color: #71c044;
  font-size: 1.28em;
  font-weight: 700;
}

.latexpage .em-pink-xxl strong {
  color: #f22c92;
  font-size: 1.34em;
  font-weight: 700;
}

.latexpage .note {
  font-size: 90%;
  color: #555;
  margin: 6px 0 0;
  line-height: 1.9;
}

.latexpage .note--small {
  font-size: 86%;
  color: #666;
}

/* sample section */
.latexpage .sample-info {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  max-width: 100%;
  margin: 4px 0 0;
  padding-left: 0;
}

.latexpage .sample-info__text {
  flex: 1 1 auto;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
}

.latexpage .sample-info__text p {
  margin: 0 0 12px !important;
  padding: 0 !important;
  text-indent: 0 !important;
}

.latexpage .sample-info__fig {
  flex: 0 1 1000px;
  max-width: 640px;
  margin: 0;
}

.latexpage .sample-main-img {
  display: block;
  width: 100%;
  height: auto;
}

/* table base */
.latexpage .table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.latexpage .table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
  border: 1px solid #d7ebc6;     /* greenish border */
}

.latexpage .table th,
.latexpage .table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e3f2d8; /* greenish row border */
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}

.latexpage .table thead th {
  background: #f4fbf0;            /* light green header */
  color: #31561f;                  /* greenish text */
  font-weight: 700;
}

.latexpage .table-note {
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
}

/* CSV-style table: center align */
.latexpage .table--centered th,
.latexpage .table--centered td {
  text-align: center;
  vertical-align: middle;
}

.latexpage .table--small th,
.latexpage .table--small td {
  font-size: 0.8rem;
  height: 52px;
  padding: 8px 10px;
  line-height: 1.4;
}

/* product name links (same style as mask spec table) */
.latexpage #latex-products-table tbody td:first-child a {
  color: #004097;
  text-decoration: none;
  border-bottom: 1px dotted rgba(0, 64, 151, 0.35);
}

.latexpage #latex-products-table tbody td:first-child a:hover,
.latexpage #latex-products-table tbody td:first-child a:focus {
  text-decoration: none;
  border-bottom-color: transparent;
}

.latexpage #latex-products-table tbody td:first-child a:focus-visible {
  outline: 2px solid rgba(0, 64, 151, 0.35);
  outline-offset: 2px;
  border-bottom-color: transparent;
}

/* category buttons */
.latexpage .category-links {
  margin: 26px 0 38px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* category button: white bg, blue border/text */
.latexpage .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  color: #004097;
  background: #ffffff;
  border: 1px solid #004097;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* hover: blue bg, white text */
.latexpage .btn-link:hover,
.latexpage .btn-link:focus {
  background: #004097;
  color: #ffffff;
  border-color: #004097;
  text-decoration: none;
}

/* smartphone optimization */
@media (max-width: 640px) {
  .latexpage {
    font-size: 15px;
  }

  .latexpage h1 {
    font-size: 22px;
  }

  .latexpage h2 {
    font-size: 20px;
    margin: 28px 0 10px;
  }

  .latexpage .media--intro {
    grid-template-columns: 1fr;
  }

  /* SP only: larger text in note box */
  .latexpage .hh-note-box .hh-note-title,
  .latexpage .hh-note-box .hh-note-list li {
    font-size: 15px !important;
  }

  /* hide weight image on SP */
  .latexpage .media__img--weight {
    display: none !important;
  }

  /* SP only: show zoom hint and enable tap */
  .latexpage .sp-only {
    display: block;
  }

  .latexpage .zoomable-img {
    pointer-events: auto;
    cursor: zoom-in;
  }

  /* SP only: slightly larger font in table */
  #latex-products-table th,
  #latex-products-table td {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* quality section: stack vertical, 90% width image */
  .latexpage .media--quality {
    flex-direction: column;
    align-items: center;
  }

  .latexpage .media--quality .media__fig {
    flex: 0 1 auto;
    max-width: 90%;
    margin-top: 10px;
  }

  /* sample section: stack vertical */
  .latexpage .sample-info {
    flex-direction: column;
    align-items: center;
  }

  .latexpage .sample-info__fig {
    flex: 0 1 auto;
    width: 90%;
    max-width: none;
    margin-top: 10px;
  }

  /* button width on SP */
  .latexpage .btn-link {
    width: 90%;
    max-width: 320px;
  }
}
