/* Revenue Growth Batch 1: restrained navigation and commerce clarity. */
.rg1-category-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 28px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(23, 40, 41, 0.18);
}

.rg1-category-guide p {
  margin: 0;
  color: #405758;
  font-size: 16px;
  line-height: 1.75;
}

.rg1-category-guide b {
  display: block;
  margin-bottom: 6px;
  color: #172829;
  font-size: 18px;
  line-height: 1.5;
}

.rg1-category-guide a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #176f69;
  color: #176f69;
  font-size: 16px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.rg1-category-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: end;
  margin: 0 0 32px;
  padding: 22px;
  border: 1px solid rgba(23, 40, 41, 0.16);
  background: #f7f4ed;
}

.rg1-category-search label {
  display: grid;
  gap: 8px;
  color: #294b49;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.rg1-category-search input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #607272;
  border-radius: 0;
  background: #fff;
  color: #172829;
  font: inherit;
  font-size: 16px;
}

.rg1-category-search output {
  color: #405758;
  font-size: 16px;
  line-height: 1.6;
  white-space: nowrap;
}

.rg1-category-search input:focus-visible,
.rg1-related a:focus-visible {
  outline: 3px solid #da8f25;
  outline-offset: 3px;
}

.rg1-related {
  padding: 64px 0 78px;
  border-top: 1px solid rgba(23, 40, 41, 0.14);
  background: #f7f4ed;
}

.rg1-related header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

.rg1-related h2 {
  margin: 0;
}

.rg1-related header > p {
  margin: 0;
  color: #405758;
  font-size: 16px;
  line-height: 1.75;
}

.rg1-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(23, 40, 41, 0.16);
  background: rgba(23, 40, 41, 0.16);
}

.rg1-related__grid a {
  display: grid;
  min-width: 0;
  min-height: 140px;
  align-content: start;
  gap: 6px;
  padding: 22px;
  background: #fffdf8;
  color: #172829;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.rg1-related__grid a:hover {
  text-decoration-color: currentColor;
}

.rg1-related__grid small,
.rg1-related__grid span {
  color: #536767;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.rg1-related__grid b {
  font-size: 18px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.rg1-related__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 24px;
}

.rg1-related__actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  color: #176f69;
  font-size: 16px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.rg1-page .v154-commerce {
  border-top: 4px solid #8f2727;
}

.rg1-page .v154-rakuten-cta {
  width: 100%;
  min-height: 52px;
  box-shadow: 0 6px 18px rgba(95, 30, 30, 0.13);
}

.rg1-page .v154-commerce-note {
  font-size: 16px;
}

@media (max-width: 720px) {
  .rg1-category-guide,
  .rg1-category-search,
  .rg1-related header,
  .rg1-related__grid {
    grid-template-columns: 1fr;
  }

  .rg1-category-guide {
    gap: 18px;
  }

  .rg1-category-search {
    padding: 18px;
  }

  .rg1-category-search output {
    white-space: normal;
  }

  .rg1-related {
    padding: 46px 0 56px;
  }

  .rg1-related__grid a {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rg1-page *,
  .rg1-page *::before,
  .rg1-page *::after {
    scroll-behavior: auto !important;
  }
}
