/* Backoffice AI demand-gen layer
   - Minimal additions; follow existing theme patterns. */

.home-backoffice-sec {
  padding: 80px 0;
}

.backoffice-overview-sec,
.backoffice-proof-sec,
.backoffice-process-sec,
.backoffice-cta-sec,
.backoffice-lp-issues-sec,
.backoffice-lp-solution-sec,
.backoffice-lp-faq-sec,
.backoffice-lp-kpi-sec,
.backoffice-lp-docs-sec,
.backoffice-lp-steps-sec,
.backoffice-lp-cta-sec {
  padding: 64px 0;
}

/* Visual differentiation: "Why Safe" section gets a subtle tinted background
   to distinguish it from the Pain Points / Solution sections above */
.backoffice-lp-safety-sec {
  padding: 64px 0;
  background: linear-gradient(
    180deg,
    rgba(42, 120, 179, 0.04) 0%,
    rgba(47, 2, 124, 0.03) 100%
  );
}

.home-backoffice_grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.home-backoffice_card,
.downloads-card,
.events-card,
.backoffice-proof_card {
  background: #fff;
  border: 1px solid var(--home-card-border, rgba(219, 229, 242, 0.9));
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(20, 20, 40, 0.06);
}

.home-backoffice_card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.home-backoffice_card .home-card_text {
  margin-bottom: 14px;
}

.oprion-card {
  display: flex;
  flex-direction: column;
}

.oprion-card_cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.44);
  background: #fff;
  color: #2d2a6d;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 14px 24px rgba(20, 20, 40, 0.10);
}

.oprion-card_cta::after {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.9;
  margin-left: 10px;
  flex: 0 0 auto;
}

.oprion-card_cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(20, 20, 40, 0.16);
  background: rgba(99, 102, 241, 0.10);
  border-color: rgba(99, 102, 241, 0.60);
}

.oprion-card .home-card_text {
  margin-bottom: 14px;
}

.oprion-keep {
  white-space: nowrap;
}

.downloads-grid,
.events-grid,
.backoffice-proof_grid,
.backoffice-solution_grid,
.governance-grid {
  gap: 24px;
}

/* Fix: proof grid — 3 columns for hub pages */
.backoffice-proof_grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
}

.downloads-grid,
.events-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.downloads-open,
.webinar-open {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.downloads-form-sec,
.events-form-sec {
  padding: 80px 0;
}

.downloads-form .form-group,
.events-form .form-group {
  margin-bottom: 18px;
}

.downloads-form input,
.events-form input {
  width: 100%;
  border: 1px solid rgba(120, 120, 160, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}

.downloads-complete .home-cta_box,
.events-complete .home-cta_box {
  margin-top: 24px;
}

.backoffice-lp-table {
  width: min(880px, 100%);
  table-layout: fixed;
}

.backoffice-lp-table thead th {
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0f172a;
  text-align: left;
  background: rgba(42, 120, 179, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.backoffice-lp-table thead th + th {
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.backoffice-lp-table tbody th {
  width: 30%;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: #0f172a;
  text-align: left;
  vertical-align: top;
  background: rgba(248, 250, 252, 0.92);
}

.backoffice-lp-table td {
  padding: 16px 18px;
  color: #334155;
}

.backoffice-lp-table td::before {
  content: none;
}

.backoffice-lp-table tbody th + td {
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.backoffice-lp-table tr + tr th,
.backoffice-lp-table tr + tr td {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.backoffice-flow {
  width: min(1120px, 100%);
  margin: 56px auto 0;
  padding: 28px;
  border: 1px solid rgba(219, 229, 242, 0.95);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, #ffffff 100%);
  box-shadow: 0 16px 40px rgba(20, 20, 40, 0.08);
}

.backoffice-flow_steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.backoffice-flow_step {
  position: relative;
  list-style: none;
  padding: 24px;
  border: 1px solid rgba(219, 229, 242, 0.95);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 20, 40, 0.06);
}

.backoffice-flow_step:not(:last-child)::after {
  content: none;
}

.backoffice-flow_step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -26px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid #2f027c;
  transform: translateY(-50%);
}

.backoffice-flow_num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2A78B3 0%, #2f027c 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(47, 2, 124, 0.18);
}

.backoffice-flow_step .home-card_title {
  margin-top: 18px;
  margin-bottom: 12px;
}

.backoffice-flow_step .home-card_text {
  margin-bottom: 0;
}

.backoffice-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.backoffice-timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, rgba(42, 120, 179, 0.28) 0%, rgba(47, 2, 124, 0.36) 100%);
  z-index: 0;
}

.backoffice-timeline_item {
  position: relative;
  list-style: none;
  z-index: 1;
}

.backoffice-timeline_head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.backoffice-timeline_num {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2A78B3 0%, #2f027c 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(47, 2, 124, 0.2);
}

.backoffice-timeline_week {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.oprion-arch-map {
  width: min(1120px, 100%);
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.oprion-arch-map_pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}

.oprion-arch-map_pillar {
  position: relative;
  list-style: none;
  padding: 24px 20px 32px;
  border: 1px solid rgba(219, 229, 242, 0.95);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 20, 40, 0.06);
  z-index: 1;
}

.oprion-arch-map_pillar::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  width: 2px;
  height: 16px;
  background: linear-gradient(180deg, rgba(42, 120, 179, 0.28) 0%, rgba(47, 2, 124, 0.4) 100%);
  transform: translateX(-50%);
  z-index: 0;
}

.oprion-arch-map_pillar .home-card_title {
  margin-bottom: 10px;
}

.oprion-arch-map_pillar .home-card_text {
  margin-bottom: 0;
}

.oprion-arch-map_base {
  position: relative;
  z-index: 2;
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(219, 229, 242, 0.95);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, #ffffff 100%);
  box-shadow: 0 16px 40px rgba(20, 20, 40, 0.08);
}

.oprion-arch-map_base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, rgba(42, 120, 179, 0.3) 0%, rgba(47, 2, 124, 0.4) 100%);
  transform: translateY(-50%);
}

.oprion-arch-map_base .home-card_title {
  margin-top: 12px;
  margin-bottom: 12px;
}

.oprion-arch-map_base .home-card_text {
  margin-bottom: 0;
}

.home-process_timeline {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.home-process_timeline::before {
  left: 5%;
  right: 5%;
}

.backoffice-hub-flow .backoffice-flow_steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.oprion-related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.oprion-related-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 20px 22px;
  border: 1px solid rgba(219, 229, 242, 0.95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 20, 40, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.oprion-related-link:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 120, 179, 0.28);
  box-shadow: 0 16px 32px rgba(20, 20, 40, 0.1);
}

.oprion-related-link .home-card_title {
  margin-bottom: 0;
  line-height: 1.5;
}

.oprion-related-link_cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #2f027c;
  font-size: 13px;
  font-weight: 700;
}

.oprion-related-link_cta::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.oprion-fit-matrix {
  width: min(1120px, 100%);
  margin: 56px auto 0;
}

.oprion-fit-matrix_axis,
.oprion-fit-matrix_row {
  display: grid;
  grid-template-columns: 180px repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.oprion-fit-matrix_axis {
  margin-bottom: 18px;
}

.oprion-fit-matrix_axis::before {
  content: "";
}

.oprion-fit-matrix_axis span,
.oprion-fit-matrix_stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(42, 120, 179, 0.08);
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.oprion-fit-matrix_row + .oprion-fit-matrix_row {
  margin-top: 18px;
}

.oprion-fit-matrix_card {
  padding: 22px 20px;
  border: 1px solid rgba(219, 229, 242, 0.95);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 20, 40, 0.06);
}

.oprion-fit-matrix_card .home-card_title {
  margin-bottom: 10px;
}

.oprion-fit-matrix_card .home-card_text {
  margin-bottom: 0;
}

.oprion-theme-map {
  width: min(1120px, 100%);
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.oprion-theme-map_row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(219, 229, 242, 0.95);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 20, 40, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.oprion-theme-map_row:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 120, 179, 0.28);
  box-shadow: 0 16px 32px rgba(20, 20, 40, 0.1);
}

.oprion-theme-map_domain .home-card_label,
.oprion-theme-map_issue .home-card_text {
  margin-bottom: 0;
}

.oprion-theme-map_issue .home-card_title {
  margin-bottom: 8px;
}

.oprion-theme-map_row .oprion-related-link_cta {
  white-space: nowrap;
}

.oprion-layer-stack {
  position: relative;
  width: min(1040px, 100%);
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.oprion-layer-stack::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, rgba(42, 120, 179, 0.18) 0%, rgba(47, 2, 124, 0.24) 100%);
  transform: translateX(-50%);
}

.oprion-layer-stack_item {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 24px 24px 22px;
  border: 1px solid rgba(219, 229, 242, 0.95);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 20, 40, 0.06);
}

.oprion-layer-stack_item--01 {
  width: 100%;
}

.oprion-layer-stack_item--02 {
  width: 100%;
}

.oprion-layer-stack_item--03 {
  width: 100%;
}

.oprion-layer-stack_item--04 {
  width: 100%;
}

.oprion-layer-stack_item .home-card_title {
  margin-bottom: 12px;
}

.oprion-industry-matrix {
  width: min(1120px, 100%);
  margin: 56px auto 0;
}

.oprion-industry-matrix_head,
.oprion-industry-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1.2fr) minmax(0, 1fr) 240px;
  gap: 18px;
}

/* 3-col variant: drop the "導線" column, merge links into summary */
.oprion-industry-matrix--3col .oprion-industry-matrix_head,
.oprion-industry-matrix--3col .oprion-industry-row {
  grid-template-columns: 180px minmax(0, 1.2fr) minmax(0, 1fr);
}

.oprion-industry-matrix--3col .oprion-industry-links {
  margin-top: 10px;
}

.oprion-industry-matrix_head {
  margin-bottom: 14px;
}

.oprion-industry-matrix_head span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(42, 120, 179, 0.08);
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}

.oprion-industry-row + .oprion-industry-row {
  margin-top: 14px;
}

.oprion-industry-cell {
  padding: 20px;
  border: 1px solid rgba(219, 229, 242, 0.95);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 20, 40, 0.06);
}

.oprion-industry-cell--label .service-refresh_title,
.oprion-industry-cell--summary .service-refresh_text {
  margin-bottom: 0;
}

.oprion-industry-cell--label .service-refresh_title {
  margin-top: 10px;
}

.oprion-industry-cell--summary .service-refresh_text {
  color: #334155;
}

.oprion-industry-cell .oprion-chip_list {
  margin: 0;
}

.oprion-industry-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oprion-chip_list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.oprion-chip_list li {
  list-style: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(42, 120, 179, 0.12);
  background: rgba(248, 250, 252, 0.95);
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.oprion-proof-chart {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.oprion-proof-chart_item {
  padding: 24px;
  border: 1px solid rgba(219, 229, 242, 0.95);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 20, 40, 0.06);
}

.oprion-proof-chart_item .home-card_title {
  margin-bottom: 14px;
}

.oprion-proof-chart_compare {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

.oprion-proof-chart_metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oprion-proof-chart_meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oprion-proof-chart_meta span {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.oprion-proof-chart_meta strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.oprion-proof-chart_track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.7);
  overflow: hidden;
}

.oprion-proof-chart_bar {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.oprion-proof-chart_bar--before {
  background: rgba(148, 163, 184, 0.9);
}

.oprion-proof-chart_bar--after {
  background: linear-gradient(90deg, #2A78B3 0%, #2f027c 100%);
}

.oprion-proof-chart_item .home-card_text {
  margin-bottom: 0;
}

/* Case Studies: keep the original 3-row detail pattern */
.home-case-sec .home-case_detail {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 8px;
}

.home-case-sec .home-case_detail + .home-case_detail {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.home-case-sec .home-case_detail:not(:last-child)::after {
  content: none;
}

.home-case-sec .home-case_detail-label {
  min-height: auto;
}

.home-case-sec .home-case_detail-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: calc(1.7em * 3);
}

.backoffice-timeline_body .service-refresh_title,
.backoffice-timeline_body .home-card_title {
  margin-bottom: 12px;
}

.backoffice-timeline_body .service-refresh_text,
.backoffice-timeline_body .home-card_text {
  margin-bottom: 0;
}

.backoffice-timeline_body {
  min-height: calc(100% - 64px);
  padding: 22px;
  border: 1px solid rgba(219, 229, 242, 0.95);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 20, 40, 0.06);
}

.backoffice-timeline_body .home-card_title {
  margin-bottom: 12px;
}

.backoffice-timeline_body .home-card_text {
  margin-bottom: 0;
}

.downloads-form .form-actions,
.events-form .form-actions {
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.downloads-form .home-text_link,
.events-form .home-text_link {
  display: inline-block;
}

/* Fix: "Why Safe" (4 cards) → 4 columns; "Issues" (3 cards) → 3 columns */
.backoffice-bullets_grid {
  grid-template-columns: repeat(4, 1fr);
}
.backoffice-lp-issues-sec .backoffice-bullets_grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Fix: "What We Build" solution grid — 3 columns */
.backoffice-solution_grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
}

/* Fix: LP "90 Days" sections use only 3 cards but inherit repeat(5,1fr)
   from .home-process_grid; override to 3 columns on LP pages */
.backoffice-lp-steps-sec .home-process_grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Fix: Hub "How We Work" has 4 cards but .home-process_grid defaults to 5 */
.backoffice-process_grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Related LP cards — 2-column grid for sibling LP links */
.backoffice-related_grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 40px;
}

.backoffice-lp-related-sec {
  padding: 64px 0;
}

/* Fix: CTA buttons — allow text to fit without overflow */
.home-cta_actions .readmore-btn,
.service-cta_refresh-actions .readmore-btn {
  width: auto;
  min-width: 260px;
  padding: 0 28px;
  white-space: nowrap;
}

/* Fix: CTA actions — responsive grid adjustments */
@media screen and (max-width: 1200px) {
  .home-backoffice_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .backoffice-proof_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .backoffice-process_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .backoffice-bullets_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .backoffice-lp-issues-sec .backoffice-bullets_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .backoffice-solution_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .backoffice-related_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .backoffice-hub-flow .backoffice-flow_steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .backoffice-hub-flow .backoffice-flow_step:not(:last-child)::before {
    content: none;
  }
  .oprion-related-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .oprion-proof-chart {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* LP 90 Days: 3カードなので3列維持（style.cssの汎用2列に上書きされるのを防止） */
  .backoffice-lp-steps-sec .home-process_grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .home-backoffice-sec {
    padding: 56px 0;
  }

  .backoffice-overview-sec,
  .backoffice-proof-sec,
  .backoffice-process-sec,
  .backoffice-cta-sec,
  .backoffice-lp-issues-sec,
  .backoffice-lp-solution-sec,
  .backoffice-lp-faq-sec,
  .backoffice-lp-kpi-sec,
  .backoffice-lp-docs-sec,
  .backoffice-lp-steps-sec,
  .backoffice-lp-cta-sec,
  .backoffice-lp-related-sec,
  .backoffice-lp-safety-sec {
    padding: 48px 0;
  }

  .backoffice-bullets_grid {
    grid-template-columns: 1fr;
  }

  .backoffice-lp-issues-sec .backoffice-bullets_grid {
    grid-template-columns: 1fr;
  }

  .home-backoffice_grid {
    grid-template-columns: 1fr;
  }

  .backoffice-proof_grid {
    grid-template-columns: 1fr;
  }

  .backoffice-process_grid {
    grid-template-columns: 1fr;
  }

  .backoffice-solution_grid {
    grid-template-columns: 1fr;
  }

  .backoffice-related_grid {
    grid-template-columns: 1fr;
  }

  .backoffice-hub-flow .backoffice-flow_steps {
    grid-template-columns: 1fr;
  }

  .oprion-related-links {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .oprion-related-link {
    padding: 18px;
  }

  .oprion-proof-chart {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .oprion-proof-chart_item {
    padding: 18px;
  }

  .oprion-proof-chart_meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .oprion-proof-chart_meta strong {
    text-align: left;
  }

  .home-case-sec .home-case_details {
    gap: 8px;
  }

  .backoffice-lp-table,
  .backoffice-lp-table tbody,
  .backoffice-lp-table tr,
  .backoffice-lp-table th,
  .backoffice-lp-table td {
    display: block;
    width: 100%;
  }

  .backoffice-lp-table thead {
    display: none;
  }

  .backoffice-lp-table tbody th {
    padding: 14px 16px 8px;
  }

  .backoffice-lp-table td {
    padding: 0 16px 14px;
  }

  .backoffice-lp-table tbody th + td {
    border-left: 0;
  }

  .backoffice-lp-table tr + tr th,
  .backoffice-lp-table tr + tr td {
    border-top: 0;
  }

  .backoffice-lp-table tbody tr + tr {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .backoffice-flow {
    padding: 18px;
    border-radius: 18px;
  }

  .backoffice-flow_steps,
  .backoffice-timeline {
    grid-template-columns: 1fr;
  }

  .backoffice-flow_step {
    padding: 20px 18px;
  }

  .backoffice-flow_step:not(:last-child)::after {
    content: none;
  }

  .backoffice-flow_step:not(:last-child)::before {
    top: auto;
    right: auto;
    bottom: -34px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #2f027c;
    border-bottom: 0;
    transform: translateX(-50%);
  }

  .oprion-arch-map {
    margin-top: 40px;
    gap: 12px;
  }

  .oprion-arch-map_pillars {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .oprion-arch-map_pillar {
    padding: 18px 18px 24px;
  }

  .oprion-arch-map_base {
    padding: 20px 18px;
  }

  .oprion-arch-map_base::before {
    display: none;
  }

  .oprion-fit-matrix_axis,
  .oprion-fit-matrix_row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .oprion-fit-matrix_axis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
  }

  .oprion-fit-matrix_axis::before {
    display: none;
  }

  .oprion-fit-matrix_row + .oprion-fit-matrix_row {
    margin-top: 14px;
  }

  .oprion-theme-map {
    margin-top: 40px;
    gap: 12px;
  }

  .oprion-theme-map_row {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 12px;
  }

  .oprion-theme-map_row .oprion-related-link_cta {
    white-space: normal;
  }

  .oprion-industry-matrix {
    margin-top: 40px;
  }

  .oprion-industry-matrix_head {
    display: none;
  }

  .oprion-industry-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .oprion-industry-cell {
    padding: 18px;
  }

  .oprion-fit-matrix_stage {
    justify-content: flex-start;
  }

  .oprion-fit-matrix_card {
    padding: 18px;
  }

  .oprion-layer-stack {
    gap: 12px;
  }

  .oprion-layer-stack::before {
    display: none;
  }

  .oprion-layer-stack_item,
  .oprion-layer-stack_item--01,
  .oprion-layer-stack_item--02,
  .oprion-layer-stack_item--03,
  .oprion-layer-stack_item--04 {
    width: 100%;
  }

  .oprion-layer-stack_item {
    padding: 18px;
  }

  .backoffice-timeline {
    gap: 18px;
    margin-top: 40px;
  }

  .backoffice-timeline::before {
    top: 24px;
    bottom: 24px;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .backoffice-timeline_head {
    margin-bottom: 12px;
  }

  .backoffice-timeline_body {
    min-height: 0;
    padding: 18px;
  }

  .backoffice-lp-steps-sec .home-process_grid {
    grid-template-columns: 1fr;
  }

  /* Fix: Stack CTA buttons vertically on mobile */
  .backoffice-lp-cta-sec .home-cta_actions {
    flex-direction: column;
    align-items: center;
  }
  .backoffice-lp-cta-sec .home-cta_actions .readmore-btn {
    width: 100%;
    max-width: 320px;
  }

  /* Fix: CTA buttons — reset width for mobile stacking */
  .home-cta_actions .readmore-btn,
  .service-cta_refresh-actions .readmore-btn {
    width: 100%;
    min-width: 0;
    max-width: 320px;
    white-space: normal;
    padding: 12px 20px;
    height: auto;
    line-height: 1.4;
  }

  .downloads-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }

  .home-backoffice_card,
  .downloads-card,
  .events-card,
  .backoffice-proof_card {
    padding: 18px;
  }

  .home-backoffice_card {
    min-height: 330px;
  }

  .downloads-form .form-actions,
  .events-form .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .downloads-form .readmore-btn,
  .events-form .readmore-btn {
    width: 100%;
  }
}

/* ============================================================
   TOP Page Redesign: section backgrounds + new layout classes
   ============================================================ */

/* --- Section alternating backgrounds --- */
.home-summary-sec {
  background: var(--home-bg-light, #f6f8fc);
}

.home-strength-sec {
  background: linear-gradient(135deg, #0E226A 0%, #10216D 52%, #2A78B3 100%);
  color: #fff;
}

.home-strength-sec .sec-title_jp,
.home-strength-sec .home-sec_lead {
  color: #fff;
}

.home-strength-sec .text-grad_purple {
  background: none;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.7);
}

.home-case-sec {
  background: var(--home-bg-light, #f6f8fc);
}

.home-tech-sec {
  background: var(--home-bg-light, #f6f8fc);
}

.home-faq-sec {
  background: linear-gradient(180deg, rgba(42, 120, 179, 0.06) 0%, rgba(47, 2, 124, 0.06) 100%);
}

/* --- Case Studies: 2-column grid on TOP --- */
.home-case-sec .home-case_grid {
  grid-template-columns: repeat(2, 1fr);
}

/* --- Project Types: 3×2 grid + top accent bar --- */
.oprion-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.oprion-types-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--home-card-border, #dbe5f2);
  border-radius: 12px;
  padding: 28px 24px 24px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.oprion-types-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2A78B3 0%, #2f027c 100%);
  border-radius: 12px 12px 0 0;
}

.oprion-types-card:hover {
  box-shadow: 0 8px 24px rgba(14, 34, 106, 0.10);
  transform: translateY(-2px);
}

.oprion-types-card .home-card_label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--home-accent, #2A78B3);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.oprion-types-card .home-card_title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--home-text-primary, #0f172a);
  margin-bottom: 8px;
}

.oprion-types-card .home-card_text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--home-text-secondary, #475569);
  margin-bottom: 0;
}

/* 2-col variant for SERVICE Project Fit */
.oprion-types-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* --- Strength: number list (2×2, no card frame) --- */
.oprion-strength-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 48px;
}

.oprion-strength-list_item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* right-side items get left border */
.oprion-strength-list_item:nth-child(even) {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

/* remove bottom border on last row */
.oprion-strength-list_item:nth-last-child(-n+2) {
  border-bottom: none;
}

.oprion-strength-list_num {
  flex-shrink: 0;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.02em;
}

.oprion-strength-list_body {
  flex: 1;
  min-width: 0;
}

.oprion-strength-list_title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 8px;
}

.oprion-strength-list_text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

/* --- Process: compact step bar --- */
.oprion-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 48px;
  list-style: none;
  padding: 0;
  counter-reset: none;
  position: relative;
}

/* horizontal connecting line */
.oprion-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, #2A78B3 0%, #2f027c 100%);
  z-index: 0;
}

.oprion-steps_item {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 12px;
}

.oprion-steps_num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2A78B3 0%, #2f027c 100%);
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.oprion-steps_title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--home-text-primary, #0f172a);
  line-height: 1.5;
  margin-bottom: 6px;
}

.oprion-steps_text {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--home-text-secondary, #475569);
  margin-bottom: 0;
}

/* --- Tech Grid: 2×2 + left gradient bar --- */
.oprion-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.oprion-tech-grid_item {
  position: relative;
  background: #fff;
  border: 1px solid var(--home-card-border, #dbe5f2);
  border-radius: 12px;
  padding: 24px 24px 24px 32px;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.oprion-tech-grid_item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2A78B3 0%, #2f027c 100%);
  border-radius: 12px 0 0 12px;
}

.oprion-tech-grid_item:hover {
  box-shadow: 0 6px 20px rgba(14, 34, 106, 0.08);
}

.oprion-tech-grid_item .home-card_label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--home-accent, #2A78B3);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.oprion-tech-grid_item .home-card_title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--home-text-primary, #0f172a);
  margin-bottom: 12px;
}

.oprion-tech-grid_item .oprion-chip_list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.oprion-tech-grid_item .oprion-chip_list li {
  font-size: 0.8125rem;
  background: rgba(42, 120, 179, 0.08);
  color: var(--home-text-primary, #0f172a);
  padding: 4px 12px;
  border-radius: 20px;
  line-height: 1.5;
}

/* --- FAQ: accordion --- */
.oprion-faq-list {
  list-style: none;
  padding: 0;
  margin: 48px auto 0;
  max-width: 800px;
}

.oprion-faq-item {
  border-bottom: 1px solid var(--home-card-border, #dbe5f2);
}

.oprion-faq-item:first-child {
  border-top: 1px solid var(--home-card-border, #dbe5f2);
}

.oprion-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--home-text-primary, #0f172a);
  gap: 16px;
  transition: color 0.2s ease;
}

.oprion-faq-question:hover {
  color: var(--home-accent, #2A78B3);
}

.oprion-faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s ease;
}

.oprion-faq-icon::before,
.oprion-faq-icon::after {
  content: "";
  position: absolute;
  background: var(--home-accent, #2A78B3);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

/* horizontal bar */
.oprion-faq-icon::before {
  top: 50%;
  left: 4px;
  right: 4px;
  height: 2px;
  transform: translateY(-50%);
}

/* vertical bar (rotates to 0 when open) */
.oprion-faq-icon::after {
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 2px;
  transform: translateX(-50%);
}

.oprion-faq-question[aria-expanded="true"] .oprion-faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.oprion-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 4px;
}

.oprion-faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--home-text-secondary, #475569);
  margin: 0;
}

.oprion-faq-item.is-open .oprion-faq-answer {
  max-height: 300px;
  padding: 0 4px 20px;
}

/* ============================================================
   Responsive: TOP page redesign
   ============================================================ */
@media (max-width: 1200px) {
  .oprion-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .oprion-steps {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 0;
  }

  .oprion-steps::before {
    display: none;
  }

  .oprion-steps_item {
    width: 33.333%;
    flex: none;
  }

  .home-case-sec .home-case_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .oprion-types-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .oprion-strength-list {
    grid-template-columns: 1fr;
  }

  .oprion-strength-list_item {
    padding: 24px 16px;
    border-left: none !important;
  }

  .oprion-strength-list_item:nth-child(even) {
    border-left: none;
  }

  /* only last item has no bottom border */
  .oprion-strength-list_item:nth-last-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .oprion-strength-list_item:last-child {
    border-bottom: none;
  }

  .oprion-strength-list_num {
    font-size: 1.75rem;
  }

  .oprion-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .oprion-steps::before {
    display: none;
  }

  .oprion-steps_item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    padding: 16px 0;
    border-bottom: 1px solid var(--home-card-border, #dbe5f2);
  }

  .oprion-steps_item:last-child {
    border-bottom: none;
  }

  .oprion-steps_num {
    margin-bottom: 0;
    width: 36px;
    height: 36px;
    font-size: 0.8125rem;
    flex-shrink: 0;
  }

  .home-case-sec .home-case_grid {
    grid-template-columns: 1fr;
  }

  .oprion-tech-grid {
    grid-template-columns: 1fr;
  }

  .oprion-faq-question {
    font-size: 0.9375rem;
    padding: 16px 4px;
  }
}
