/* 2026-11-26 下層ページ精査：事業ページ・モビリティ製品ページの追加ブロック（inc/mm-service-extras.php） */
.mm-svc-lineup, .mm-svc-extra { --mm-c: var(--service-color, #6323BC); padding: 56px 0; }
.mm-svc-lineup .section-title, .mm-svc-extra .section-title { margin-bottom: 24px; }
.mm-svc-extra .section-title + .section-lead { margin-top: -8px; }
.mm-svc-extra .section-title:not(:first-child) { margin-top: 48px; }

.mm-svc-lineup__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.mm-svc-lineup__card { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box;
  padding: 18px 44px 18px 20px; background: #fff; border: 1px solid #e3e0ea; border-radius: 12px; color: #1f1a2e; text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.mm-svc-lineup__card:hover { border-color: var(--mm-c); box-shadow: 0 6px 18px rgba(40, 20, 80, .10); transform: translateY(-2px); }
.mm-svc-lineup__card:focus-visible { outline: 2px solid var(--mm-c); outline-offset: 2px; }
.mm-svc-lineup__name { font-weight: 700; font-size: 16px; line-height: 1.4; }
.mm-svc-lineup__for { font-size: 13px; color: #5d5870; }
.mm-svc-lineup__arrow { position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-top: 2px solid var(--mm-c); border-right: 2px solid var(--mm-c); transform: rotate(45deg); }

.mm-svc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.mm-svc-cards li { padding: 22px 20px; background: #fff; border-radius: 12px; border-top: 3px solid var(--mm-c); box-shadow: 0 2px 10px rgba(40, 20, 80, .06); }
.mm-svc-cards h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.mm-svc-cards p { margin: 0; font-size: 14px; line-height: 1.8; color: #3d3850; }

.mm-svc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.mm-svc-steps li { padding: 20px; background: #fff; border-radius: 12px; border: 1px solid #e3e0ea; }
.mm-svc-steps__no { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--mm-c); }
.mm-svc-steps h3 { margin: 6px 0 8px; font-size: 16px; font-weight: 700; }
.mm-svc-steps p { margin: 0; font-size: 14px; line-height: 1.8; color: #3d3850; }

.mm-svc-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.mm-svc-tags li { padding: 6px 14px; font-size: 13px; background: #fff; border: 1px solid #d9d4e4; border-radius: 999px; color: #3d3850; }

.mm-svc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.mm-svc-stats li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px; background: #fff; border-radius: 12px; text-align: center; }
.mm-svc-stats strong { font-size: 22px; font-weight: 700; color: var(--mm-c); line-height: 1.3; }
.mm-svc-stats span { font-size: 13px; color: #5d5870; }

.mm-svc-text { margin: 0; font-size: 15px; line-height: 1.9; text-align: center; }
.mm-svc-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 28px; }
.mm-svc-extra .mm-svc-btns:first-child { margin-top: 0; }

/* 製品ページ（LP）：パンくずと下部ナビ */
.mm-svc-crumb { max-width: 1152px; margin: 0 auto; padding: 14px 16px; font-size: 13px; }
.mm-svc-crumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.mm-svc-crumb li { color: #5d5870; }
.mm-svc-crumb li + li::before { content: "›"; margin: 0 8px; color: #9a94aa; }
.mm-svc-crumb a { color: #3d3850; text-decoration: underline; text-underline-offset: 3px; }
.mm-svc-crumb a:hover { color: #6323BC; }
.mm-svc-lpnav { padding: 8px 16px 72px; background: #f6f5f9; }
.mm-svc-lpnav .mm-svc-lineup { padding-bottom: 8px; }
.mm-svc-lpnav .content-inner { max-width: 1040px; margin: 0 auto; }
.mm-svc-lpnav .section-title { text-align: center; font-size: 24px; font-weight: 700; }

@media (max-width: 767px) {
  .mm-svc-lineup, .mm-svc-extra { padding: 40px 0; }
  .mm-svc-stats { grid-template-columns: 1fr; }
  .mm-svc-stats strong { font-size: 20px; }
  .mm-svc-text { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .mm-svc-lineup__card { transition: none; } .mm-svc-lineup__card:hover { transform: none; } }

/* 2026-11-26 B-2: service hero — keep >=48px between the text column and the illustration at every PC width (1001px+).
   ≤1500px the image is a flex item (50%); >1500px it is absolute (right:20px, 50%), so the text column ends 72px before 50%. */
@media (min-width: 1001px) {
  .page-service-detail .page-head .page-head__text { width: calc(50% - 72px); flex: 0 0 calc(50% - 72px); }
  .page-service-detail .page-tagline { font-size: clamp(26px, 2.2vw, 36px); }
  .page-service-detail .page-head__text p { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.9; }
}

/* 2026-11-26 B-3: Japanese line breaking on service pages — break at phrase boundaries, no orphan characters */
.page-service-detail .page-tagline,
.page-service-detail .section-title,
.page-service-detail .service-strength__title,
.page-service-detail .service-flow__title,
.page-service-detail #service-solution p,
.mm-svc-extra h3, .mm-svc-lineup__name { word-break: auto-phrase; text-wrap: balance; }
.page-service-detail .page-head__text p,
.page-service-detail .section-lead,
.page-service-detail .service-strength__desc,
.page-service-detail .service-flow__desc,
.mm-svc-extra p, .mm-svc-text { word-break: auto-phrase; text-wrap: pretty; }

/* 2026-11-26 merged 開発実績: case stories under the works cards; right menu scrolls inside if taller than the viewport */
.mm-svc-cases { margin-top: 56px; }
.mm-svc-cases__title { font-size: 22px; font-weight: 700; margin: 0 0 20px; padding-left: 12px; border-left: 4px solid var(--service-color, #6323BC); line-height: 1.4; }
.page-anchor-nav { max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#service-work > .content-inner > .c-btn { margin-top: 48px; }

/* 2026-11-26 designer review: product page links (mobility) + works single button */
.mm-svc-prodlinks { margin: 32px 0 0; font-size: 15px; line-height: 2; text-align: center; }
.mm-svc-prodlinks span:first-child { font-weight: 700; margin-right: 4px; }
.mm-svc-prodlinks span[aria-hidden] { margin: 0 8px; color: #9a94aa; }
.mm-svc-prodlinks a { color: var(--service-color, #6323BC); text-decoration: underline; text-underline-offset: 3px; }
.mm-svc-prodlinks a:hover { text-decoration-thickness: 2px; }
.mm-svc-btns--works { margin: 48px 0 24px; }
