/* Editorial presentation only: home services, home reasons, service directory.
   Load after the original stylesheet, compact.css, and top-reframe.css. */

#page-home #services,
#page-home #reasons,
#page-services #svc-business {
  padding: clamp(42px, 5vw, 64px) 0;
  opacity: 1;
  transform: none;
  animation: none;
}

/* These sections never depend on JavaScript to become visible. The ID scope
   intentionally outranks html.js .rv and the original card-hover rules. */
#page-home #services .rv,
#page-home #reasons .rv,
#page-services #svc-business .rv,
#page-home #services .motion-pending,
#page-home #reasons .motion-pending,
#page-services #svc-business .motion-pending {
  opacity: 1 !important;
  visibility: visible;
  transform: none;
  animation: none;
  transition: none;
}

#page-home #services .sec-head,
#page-home #reasons .sec-head,
#page-services #svc-business .sec-head {
  min-width: 0;
  max-width: none;
  margin: 0 0 28px;
  opacity: 1;
  transform: none;
}

#page-home #services .sec-head h2,
#page-home #reasons .sec-head h2,
#page-services #svc-business .sec-head h2 {
  margin: 0;
  padding-left: 15px;
  border-left: 4px solid var(--blue, #0b5aa6);
  color: var(--navy, #0a2e52);
  font-size: clamp(25px, 2.6vw, 32px);
  line-height: 1.5;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
}

#page-home #services .sec-head .en,
#page-home #reasons .sec-head .en,
#page-services #svc-business .sec-head .en {
  margin: 8px 0 0 19px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .12em;
  color: var(--blue, #0b5aa6);
}

#page-home #services .sec-head .lede,
#page-home #reasons .sec-head .lede,
#page-services #svc-business .sec-head .lede {
  max-width: 680px;
  margin: 12px 0 0 19px;
  color: var(--muted, #52677c);
  font-size: 15px;
  line-height: 1.85;
}

/* Explicit order keeps the newly added link after the existing ordered lede. */
#page-home #services .section-heading-link,
#page-home #reasons .section-heading-link,
#page-services #svc-business .section-heading-link {
  order: 4;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: calc(100% - 19px);
  margin: 13px 0 0 19px;
  padding: 3px 0;
  color: var(--blue, #0b5aa6);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
  transform: none;
}

#page-home #services a:focus-visible,
#page-home #reasons a:focus-visible,
#page-services #svc-business a:focus-visible {
  outline: 3px solid var(--blue, #0b5aa6);
  outline-offset: 4px;
}

/* HOME / SERVICES: horizontal at medium and small widths; no image cropping. */
#page-home #services.service-showcase {
  background: #fff;
}

#page-home #services.service-showcase .biz-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

#page-home #services.service-showcase .biz {
  display: grid;
  grid-template-columns: clamp(86px, 22vw, 160px) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  margin: 0;
  border: 1px solid var(--line, #d3deea);
  border-radius: 3px;
  background: #fff;
  color: var(--navy, #0a2e52);
  text-decoration: none;
  box-shadow: none;
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}

#page-home #services.service-showcase .biz-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 12px;
  aspect-ratio: auto;
  overflow: visible;
  background: #f1f5f8;
}

#page-home #services.service-showcase .biz-ph img {
  display: block;
  position: static;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 160px;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
  animation: none;
  transition: none;
}

#page-home #services.service-showcase .biz-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 18px 20px;
}

#page-home #services.service-showcase .biz-tag {
  color: var(--blue, #0b5aa6);
  font-family: var(--jp, sans-serif);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .05em;
  overflow-wrap: anywhere;
}

#page-home #services.service-showcase .biz h3 {
  min-width: 0;
  margin: 0;
  color: var(--navy, #0a2e52);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}

#page-home #services.service-showcase .biz p {
  min-width: 0;
  margin: 0;
  color: var(--muted, #52677c);
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

#page-home #services.service-showcase .biz-more {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  margin-top: auto;
  padding-top: 9px;
  color: var(--blue, #0b5aa6);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

#page-home #services.service-showcase .biz-more svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  transform: none;
  transition: none;
}

#page-home #services.service-showcase .biz-featured {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  border-top: 3px solid var(--blue, #0b5aa6);
  background: #f4f8fb;
}

#page-home #services.service-showcase .biz-featured .biz-ph {
  background: #eaf1f6;
  padding: 18px;
}

#page-home #services.service-showcase .biz-featured .biz-ph img {
  max-height: 300px;
}

#page-home #services.service-showcase .biz-featured .biz-body {
  align-self: center;
  gap: 10px;
  padding: 24px;
}

#page-home #services.service-showcase .biz-featured h3 {
  font-size: clamp(21px, 2.1vw, 27px);
}

#page-home #services.service-showcase .biz-featured .biz-more {
  margin-top: 6px;
}

/* HOME / REASONS: a quiet left-hand heading and a numbered editorial ledger. */
#page-home #reasons.proof-editorial {
  background: #f3f7fa;
  border-top: 1px solid var(--line, #d3deea);
  border-bottom: 1px solid var(--line, #d3deea);
}

#page-home #reasons.proof-editorial .reason-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  min-width: 0;
}

#page-home #reasons.proof-editorial .reason {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  min-width: 0;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--line, #d3deea);
  background: transparent;
  box-shadow: none;
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}

#page-home #reasons.proof-editorial .reason > div {
  min-width: 0;
}

#page-home #reasons.proof-editorial .reason .icwrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 34px;
  margin: 1px 0 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue, #0b5aa6);
  font-size: 20px;
}

#page-home #reasons.proof-editorial .reason .icwrap svg {
  width: 23px;
  height: 23px;
}

#page-home #reasons.proof-editorial .reason .no {
  margin: 0 0 5px;
  color: var(--blue, #0b5aa6);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .1em;
}

#page-home #reasons.proof-editorial .reason h3 {
  margin: 0 0 8px;
  color: var(--navy, #0a2e52);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#page-home #reasons.proof-editorial .reason p {
  margin: 0;
  color: var(--muted, #52677c);
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

#page-home #reasons.proof-editorial .reason:first-child {
  grid-column: 1 / -1;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 17px;
  margin-bottom: 8px;
  padding: 23px 25px;
  border: 0;
  border-left: 3px solid var(--cta, #e8590c);
  background: var(--navy, #0a2e52);
}

#page-home #reasons.proof-editorial .reason:first-child .icwrap {
  width: 38px;
  height: 38px;
  color: #fff;
  background: rgba(255, 255, 255, .09);
}

#page-home #reasons.proof-editorial .reason:first-child .no {
  color: #c5ddf0;
}

#page-home #reasons.proof-editorial .reason:first-child h3 {
  color: #fff;
  font-size: 20px;
}

#page-home #reasons.proof-editorial .reason:first-child p {
  color: #e2edf6;
}

/* SERVICES / DIRECTORY: consistent image-left rows, including former .rev rows.
   !important is limited to removing the inline image-slot aspect ratio. */
#page-services #svc-business.service-directory-editorial {
  background: #fff;
}

#page-services #svc-business.service-directory-editorial .svc-row,
#page-services #svc-business.service-directory-editorial .svc-row.rev {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  min-width: 0;
  padding: 25px 0;
  border: 0;
  border-bottom: 1px solid var(--line, #d3deea);
  background: transparent;
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}

#page-services #svc-business.service-directory-editorial .sec-head + .svc-row {
  border-top: 1px solid var(--line, #d3deea);
}

#page-services #svc-business.service-directory-editorial .svc-row > div:not(.svc-ph) {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  column-gap: 12px;
  min-width: 0;
}

#page-services #svc-business.service-directory-editorial .svc-ph,
#page-services #svc-business.service-directory-editorial .svc-row.rev .svc-ph {
  order: 0;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 100%;
  max-width: 240px;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 10px;
  aspect-ratio: auto !important;
  border-radius: 2px;
  overflow: visible;
  background: #f1f5f8;
}

#page-services #svc-business.service-directory-editorial .svc-ph img {
  display: block;
  position: static;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: 250px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
  animation: none;
  transition: none;
}

#page-services #svc-business.service-directory-editorial .svc-num {
  grid-column: 1;
  margin: 0;
  color: var(--blue, #0b5aa6);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .1em;
}

#page-services #svc-business.service-directory-editorial .svc-tag {
  grid-column: 2;
  margin: 0;
  color: var(--blue, #0b5aa6);
  font-family: var(--jp, sans-serif);
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}

#page-services #svc-business.service-directory-editorial .svc-row h3 {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 6px 0 10px;
  color: var(--navy, #0a2e52);
  font-size: clamp(21px, 2.1vw, 25px);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#page-services #svc-business.service-directory-editorial .svc-row p.desc {
  grid-column: 1 / -1;
  max-width: none;
  margin: 0 0 11px;
  color: var(--muted, #52677c);
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

#page-services #svc-business.service-directory-editorial .svc-items {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

#page-services #svc-business.service-directory-editorial .svc-items li {
  min-width: 0;
  gap: 7px;
  padding: 2px 0;
  color: var(--navy, #0a2e52);
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

#page-services #svc-business.service-directory-editorial .svc-items li svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  color: var(--blue, #0b5aa6);
}

#page-services #svc-business.service-directory-editorial .svc-row > div:not(.svc-ph) > p:last-child {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 7px 0 0;
}

#page-services #svc-business.service-directory-editorial .service-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 5px 0;
  color: var(--blue, #0b5aa6);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
  transform: none;
  transition: none;
}

@media (min-width: 1100px) {
  #page-home #services.service-showcase .biz-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  #page-home #services.service-showcase .biz-featured {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    align-items: center;
  }

  #page-home #services.service-showcase .biz-featured .biz-ph {
    margin-left: 18px;
    padding: 10px;
  }

  #page-home #services.service-showcase .biz-featured .biz-ph img {
    max-height: 310px;
  }

  /* Small photos accompany the Japanese titles; descriptions span the card.
     display:contents avoids a narrow paragraph beside each thumbnail. */
  #page-home #services.service-showcase .biz-compact {
    grid-template-columns: 62px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    column-gap: 12px;
    padding: 16px;
  }

  #page-home #services.service-showcase .biz-compact .biz-ph {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    padding: 0;
    background: transparent;
  }

  #page-home #services.service-showcase .biz-compact .biz-ph img {
    max-height: 78px;
  }

  #page-home #services.service-showcase .biz-compact .biz-body {
    display: contents;
  }

  #page-home #services.service-showcase .biz-compact .biz-tag {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin-bottom: 4px;
    font-size: 10px;
  }

  #page-home #services.service-showcase .biz-compact h3 {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-size: 17px;
    line-height: 1.55;
  }

  #page-home #services.service-showcase .biz-compact p {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.75;
  }

  #page-home #services.service-showcase .biz-compact .biz-more {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid var(--line, #d3deea);
    font-size: 12px;
  }
}

@media (min-width: 960px) {
  #page-home #reasons.proof-editorial > .wrap {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr);
    align-items: start;
    gap: clamp(30px, 4vw, 56px);
  }

  #page-home #reasons.proof-editorial .sec-head {
    margin: 10px 0 0;
  }
}

@media (max-width: 800px) {
  #page-services #svc-business.service-directory-editorial .svc-row,
  #page-services #svc-business.service-directory-editorial .svc-row.rev {
    grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
    gap: 24px;
    padding: 23px 0;
  }

  #page-services #svc-business.service-directory-editorial .svc-ph,
  #page-services #svc-business.service-directory-editorial .svc-row.rev .svc-ph {
    max-width: 200px;
  }
}

@media (max-width: 640px) {
  #page-home #services .sec-head,
  #page-home #reasons .sec-head,
  #page-services #svc-business .sec-head {
    margin-bottom: 23px;
  }

  #page-home #services.service-showcase .biz {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  #page-home #services.service-showcase .biz-ph {
    padding: 8px;
  }

  #page-home #services.service-showcase .biz-ph img {
    max-height: 124px;
  }

  #page-home #services.service-showcase .biz-body {
    gap: 6px;
    padding: 14px;
  }

  #page-home #services.service-showcase .biz h3 {
    font-size: 18px;
  }

  #page-home #services.service-showcase .biz p {
    font-size: 13px;
    line-height: 1.8;
  }

  #page-home #services.service-showcase .biz-featured {
    grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  }

  #page-home #services.service-showcase .biz-featured .biz-ph {
    padding: 10px;
  }

  #page-home #services.service-showcase .biz-featured .biz-ph img {
    max-height: 230px;
  }

  #page-home #services.service-showcase .biz-featured .biz-body {
    gap: 8px;
    padding: 18px 14px;
  }

  #page-home #services.service-showcase .biz-featured h3 {
    font-size: 20px;
  }

  #page-home #reasons.proof-editorial .reason-list {
    grid-template-columns: minmax(0, 1fr);
  }

  #page-home #reasons.proof-editorial .reason {
    gap: 12px;
    padding: 19px 0;
  }

  #page-home #reasons.proof-editorial .reason:first-child {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 13px;
    padding: 20px 17px;
  }

  #page-home #reasons.proof-editorial .reason:first-child .icwrap {
    width: 30px;
    height: 34px;
  }

  #page-home #reasons.proof-editorial .reason:first-child h3 {
    font-size: 19px;
  }

  /* The thumbnail sits beside the title, not beside the full description. */
  #page-services #svc-business.service-directory-editorial .svc-row,
  #page-services #svc-business.service-directory-editorial .svc-row.rev {
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: start;
    column-gap: 16px;
    row-gap: 0;
    padding: 22px 0;
  }

  #page-services #svc-business.service-directory-editorial .svc-row > div:not(.svc-ph) {
    display: contents;
  }

  #page-services #svc-business.service-directory-editorial .svc-ph,
  #page-services #svc-business.service-directory-editorial .svc-row.rev .svc-ph {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
    max-width: 84px;
    padding: 5px;
  }

  #page-services #svc-business.service-directory-editorial .svc-ph img {
    max-height: 110px;
  }

  #page-services #svc-business.service-directory-editorial .svc-num {
    grid-column: 2;
    grid-row: 1;
  }

  #page-services #svc-business.service-directory-editorial .svc-tag {
    grid-column: 2;
    grid-row: 2;
    margin-top: 2px;
  }

  #page-services #svc-business.service-directory-editorial .svc-row h3 {
    grid-column: 2;
    grid-row: 3;
    margin: 5px 0 0;
    font-size: 20px;
  }

  #page-services #svc-business.service-directory-editorial .svc-row p.desc {
    margin-top: 14px;
  }
}

@media (max-width: 400px) {
  #page-home #services.service-showcase .biz {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  #page-home #services.service-showcase .biz-body {
    padding: 12px;
  }

  #page-home #services.service-showcase .biz h3 {
    font-size: 17px;
  }

  #page-home #services.service-showcase .biz-featured {
    grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
  }

  #page-home #services.service-showcase .biz-featured .biz-body {
    padding: 15px 12px;
  }

  #page-home #services.service-showcase .biz-featured h3 {
    font-size: 18px;
  }

  #page-services #svc-business.service-directory-editorial .svc-items {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* No transforms are introduced for touch, coarse pointers, or reduced motion.
   Images never zoom; the only movement is a restrained two-pixel affordance. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #page-home #services.service-showcase .biz {
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  }

  #page-home #services.service-showcase .biz:hover {
    border-color: var(--blue, #0b5aa6);
    box-shadow: 0 5px 14px rgba(10, 46, 82, .07);
    transform: translateY(-2px);
  }

  #page-home #services.service-showcase .biz-more svg {
    transition: transform .18s ease;
  }

  #page-home #services.service-showcase .biz:hover .biz-more svg {
    transform: translateX(2px);
  }

  #page-home #services .section-heading-link:hover,
  #page-home #reasons .section-heading-link:hover,
  #page-services #svc-business .section-heading-link:hover,
  #page-services #svc-business.service-directory-editorial .service-more:hover {
    color: var(--navy, #0a2e52);
    text-decoration-thickness: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #page-home #services,
  #page-home #services *,
  #page-home #services *::before,
  #page-home #services *::after,
  #page-home #reasons,
  #page-home #reasons *,
  #page-home #reasons *::before,
  #page-home #reasons *::after,
  #page-services #svc-business,
  #page-services #svc-business *,
  #page-services #svc-business *::before,
  #page-services #svc-business *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    scroll-behavior: auto !important;
  }
}
