/* 部品開発委託事業部 詳細ページ用の上書きCSS */
.service-development-page main::before {
  content: "DEVELOPMENT" !important;
}
.service-development-page .it-doc-strip {
  background: linear-gradient(90deg, #0057ff, #006cff 42%, #00aacc) !important;
}
.development-overview-card {
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr) !important;
}
.development-overview-visual {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid rgba(0, 87, 255, 0.12);
  background: rgba(255, 255, 255, 0.34);
}
.development-overview-visual img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}
.development-contact-cta {
  gap: 12px !important;
  flex-wrap: wrap;
}
.development-contact-cta a:first-child {
  background: var(--ink) !important;
}
.development-contact-cta a:first-child:hover {
  background: var(--blue-dark) !important;
}
@media (max-width: 1024px) {
  .development-overview-card {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 760px) {
  .development-overview-visual,
  .development-overview-visual img {
    min-height: 240px;
  }
  .development-contact-cta a {
    width: 100%;
  }
}

/* v3: 画像表示は元に戻し、見出し・タグ・青線のみ調整 */
.service-development-page .hero h1 {
  white-space: nowrap !important;
  font-size: clamp(42px, 4.8vw, 64px) !important;
}

.service-development-page .it-service-copy-panel .tech-list {
  display: none !important;
}

.service-development-page .it-service-copy-panel .strong-lines {
  padding-left: 0 !important;
  border-left: 0 !important;
}

.service-development-page .it-service-copy-panel {
  border-left: 0 !important;
}

@media (max-width: 1024px) {
  .service-development-page .hero h1 {
    font-size: clamp(38px, 5.6vw, 56px) !important;
  }
}

@media (max-width: 760px) {
  .service-development-page .hero h1 {
    white-space: normal !important;
    font-size: clamp(34px, 12vw, 52px) !important;
    line-height: 1.12 !important;
  }
}


/* v4: 赤丸で指定された表示画像のみ削除した後のレイアウト調整 */
.service-development-page .hero {
  background:
    linear-gradient(135deg, rgba(5, 12, 28, 0.98), rgba(0, 46, 120, 0.82)),
    linear-gradient(90deg, rgba(0, 87, 255, 0.22), transparent 58%) !important;
}

.service-development-page .development-overview-card,
.service-development-page .it-service-grid,
.service-development-page .it-dx-layout,
.service-development-page .it-case-board {
  grid-template-columns: 1fr !important;
}

.service-development-page .development-overview-card,
.service-development-page .it-service-grid,
.service-development-page .it-dx-layout,
.service-development-page .it-case-board {
  justify-items: center !important;
}

.service-development-page .it-overview-text,
.service-development-page .it-service-copy-panel,
.service-development-page .it-dx-text-card,
.service-development-page .it-case-text {
  width: min(100%, 780px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.service-development-page .it-case-board {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.service-development-page .it-closing-card {
  margin-top: 48px;
}

@media (max-width: 760px) {
  .service-development-page .it-overview-text,
  .service-development-page .it-service-copy-panel,
  .service-development-page .it-dx-text-card,
  .service-development-page .it-case-text {
    width: 100% !important;
  }

  .service-development-page .it-closing-card {
    margin-top: 36px;
  }
}


/* v5: ヒーロー下の全体エリアにHOMEページと同じ考え方の固定背景を適用 */
.service-development-page main {
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.72) 0%, rgba(255, 255, 255, 0.66) 48%, rgba(241, 247, 255, 0.72) 100%),
    url("../../media/image_25.jpeg") center center / cover no-repeat fixed !important;
}

.service-development-page .section,
.service-development-page .section:nth-of-type(even) {
  background: transparent !important;
}

.service-development-page .section > .wrap {
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 760px) {
  .service-development-page main {
    background:
      linear-gradient(180deg, rgba(247, 251, 255, 0.78) 0%, rgba(255, 255, 255, 0.72) 48%, rgba(241, 247, 255, 0.78) 100%),
      url("../../media/image_25.jpeg") center top / cover no-repeat scroll !important;
  }
}

/* v6: ページ全体をHOMEページと同じ固定背景にし、前面カードの視認性を強化 */
body.service-development-page {
  background-color: #edf5ff !important;
  background-image: url("../../media/image_25.jpeg") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

body.service-development-page .hero {
  background:
    linear-gradient(135deg, rgba(5, 12, 28, 0.82), rgba(0, 46, 120, 0.58)),
    linear-gradient(90deg, rgba(0, 87, 255, 0.22), transparent 58%) !important;
}

body.service-development-page main {
  background:
    linear-gradient(
      180deg,
      rgba(247, 251, 255, 0.68) 0%,
      rgba(255, 255, 255, 0.62) 46%,
      rgba(241, 247, 255, 0.68) 100%
    ) !important;
}

body.service-development-page .section,
body.service-development-page .section:nth-of-type(even) {
  background: transparent !important;
}

.service-development-page .it-overview-card,
.service-development-page .it-service-copy-panel,
.service-development-page .it-dx-text-card,
.service-development-page .it-case-text {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.92),
      rgba(232, 244, 255, 0.84)
    ) !important;
  border-color: rgba(0, 87, 255, 0.18) !important;
  box-shadow: 0 18px 48px rgba(4, 27, 69, 0.13) !important;
  backdrop-filter: blur(10px) !important;
}

.service-development-page .it-closing-card {
  background:
    linear-gradient(
      90deg,
      rgba(225, 240, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ) !important;
  border-color: rgba(0, 87, 255, 0.2) !important;
  box-shadow: 0 18px 48px rgba(4, 27, 69, 0.12) !important;
  backdrop-filter: blur(10px) !important;
}

@media (max-width: 760px) {
  body.service-development-page {
    background-position: center top !important;
    background-size: cover !important;
    background-attachment: scroll !important;
  }

  body.service-development-page .hero {
    background:
      linear-gradient(135deg, rgba(5, 12, 28, 0.86), rgba(0, 46, 120, 0.64)),
      linear-gradient(90deg, rgba(0, 87, 255, 0.24), transparent 64%) !important;
  }

  body.service-development-page main {
    background:
      linear-gradient(
        180deg,
        rgba(247, 251, 255, 0.74) 0%,
        rgba(255, 255, 255, 0.68) 46%,
        rgba(241, 247, 255, 0.74) 100%
      ) !important;
  }

  .service-development-page .it-overview-card,
  .service-development-page .it-service-copy-panel,
  .service-development-page .it-dx-text-card,
  .service-development-page .it-case-text,
  .service-development-page .it-closing-card {
    background: rgba(255, 255, 255, 0.92) !important;
  }
}

/* v7: 固定背景上のカード間余白を整理 */
.service-development-page .section {
  padding-top: clamp(78px, 8vw, 118px) !important;
  padding-bottom: clamp(78px, 8vw, 118px) !important;
}

.service-development-page .section + .section {
  margin-top: clamp(10px, 2.2vw, 26px) !important;
}

.service-development-page .section .wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: clamp(26px, 3vw, 42px) !important;
}

.service-development-page .section-title {
  margin-bottom: 0 !important;
}

.service-development-page .blue-line {
  margin-top: -14px !important;
  margin-bottom: 4px !important;
}

.service-development-page .development-overview-card,
.service-development-page .it-service-grid,
.service-development-page .it-dx-layout,
.service-development-page .it-case-board {
  row-gap: clamp(24px, 3vw, 42px) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.service-development-page .it-overview-card,
.service-development-page .it-overview-text,
.service-development-page .it-service-copy-panel,
.service-development-page .it-dx-text-card,
.service-development-page .it-case-text,
.service-development-page .it-closing-card {
  padding: clamp(30px, 3.2vw, 46px) !important;
}

.service-development-page .it-overview-card,
.service-development-page .it-service-copy-panel,
.service-development-page .it-dx-text-card,
.service-development-page .it-case-text {
  margin-top: clamp(6px, 1vw, 14px) !important;
  margin-bottom: clamp(6px, 1vw, 14px) !important;
}

.service-development-page .it-closing-card {
  margin-top: clamp(36px, 5vw, 72px) !important;
  padding-top: clamp(34px, 3.5vw, 52px) !important;
  padding-bottom: clamp(34px, 3.5vw, 52px) !important;
}

.service-development-page .venture-title,
.service-development-page .strong-lines {
  margin-bottom: clamp(18px, 2vw, 28px) !important;
}

.service-development-page .intro-text,
.service-development-page .service-copy p,
.service-development-page .text-block p,
.service-development-page .closing {
  margin-top: 0 !important;
}

.service-development-page .case-list {
  display: flex !important;
  flex-direction: column !important;
  gap: clamp(14px, 1.6vw, 22px) !important;
}

.service-development-page .case-list > div {
  margin: 0 !important;
}

@media (max-width: 760px) {
  .service-development-page .section {
    padding-top: 58px !important;
    padding-bottom: 58px !important;
  }

  .service-development-page .section + .section {
    margin-top: 6px !important;
  }

  .service-development-page .section .wrap {
    gap: 22px !important;
  }

  .service-development-page .blue-line {
    margin-top: -8px !important;
    margin-bottom: 0 !important;
  }

  .service-development-page .it-overview-card,
  .service-development-page .it-overview-text,
  .service-development-page .it-service-copy-panel,
  .service-development-page .it-dx-text-card,
  .service-development-page .it-case-text,
  .service-development-page .it-closing-card {
    padding: 24px !important;
  }

  .service-development-page .it-closing-card {
    margin-top: 32px !important;
  }

  .service-development-page .case-list {
    gap: 12px !important;
  }
}

/* === Mobile shared menu/footer layout fix === */
@media (max-width: 760px) {
  .menu-btn {
    display: block !important;
    position: relative !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
    z-index: 2147483003 !important;
    pointer-events: auto !important;
  }

  .menu-btn span {
    display: block !important;
    position: absolute !important;
    left: 10px !important;
    width: 22px !important;
    height: 1.5px !important;
    background: var(--ink, #0a0c10) !important;
    opacity: 1 !important;
    transform: none !important;
    transform-origin: center !important;
    transition: top 0.25s, transform 0.25s, opacity 0.2s !important;
  }

  .menu-btn span:nth-child(1) {
    top: 13px !important;
  }

  .menu-btn span:nth-child(2) {
    top: 20px !important;
  }

  .menu-btn span:nth-child(3) {
    top: 27px !important;
  }

  .menu-btn span:nth-child(n + 4) {
    display: none !important;
  }

  .menu-btn.open span:nth-child(1),
  body.mobile-menu-open .menu-btn span:nth-child(1) {
    top: 20px !important;
    transform: rotate(45deg) !important;
  }

  .menu-btn.open span:nth-child(2),
  body.mobile-menu-open .menu-btn span:nth-child(2) {
    top: 20px !important;
    opacity: 0 !important;
    transform: scaleX(0) !important;
  }

  .menu-btn.open span:nth-child(3),
  body.mobile-menu-open .menu-btn span:nth-child(3) {
    top: 20px !important;
    transform: rotate(-45deg) !important;
  }

  body.mobile-menu-open {
    overflow: hidden !important;
  }

  body.mobile-menu-open > nav,
  body.mobile-menu-open nav {
    height: var(--mobile-menu-offset, 58px) !important;
    min-height: 58px !important;
    padding: 0 16px !important;
    background: rgba(245, 243, 238, 0.92) !important;
    backdrop-filter: blur(14px) !important;
    border-bottom: 0.5px solid var(--border, rgba(10, 12, 16, 0.11)) !important;
    z-index: 2147483000 !important;
    isolation: isolate !important;
    overflow: visible !important;
  }

  body.mobile-menu-open .header-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    height: 100% !important;
    color: var(--ink, #0a0c10) !important;
    text-decoration: none !important;
  }

  body.mobile-menu-open .header-brand-logo {
    display: block !important;
    width: 76px !important;
    height: 30px !important;
    object-fit: contain !important;
  }

  body.mobile-menu-open .header-brand-name {
    font-family: var(--body, "Noto Sans JP", sans-serif) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    color: var(--ink, #0a0c10) !important;
    white-space: nowrap !important;
  }

  body.mobile-menu-open .nav-cta {
    display: none !important;
  }

  body.mobile-menu-open .nav-links.open {
    position: fixed !important;
    inset: var(--mobile-menu-offset, 58px) 0 auto 0 !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: calc(100vh - var(--mobile-menu-offset, 58px)) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 20px 16px 28px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    background: rgba(245, 243, 238, 0.98) !important;
    border-bottom: 1px solid var(--border, rgba(10, 12, 16, 0.11)) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
    z-index: 2147483001 !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  body.mobile-menu-open .nav-links.open li {
    position: relative !important;
    z-index: 2147483002 !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    pointer-events: auto !important;
  }

  body.mobile-menu-open .nav-links.open a {
    position: relative !important;
    z-index: 2147483002 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    padding: 14px 4px !important;
    box-sizing: border-box !important;
    color: var(--muted, #6a6a6a) !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border, rgba(10, 12, 16, 0.11)) !important;
    box-shadow: none !important;
    font-size: 12px !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    pointer-events: auto !important;
  }

  body.mobile-menu-open .nav-links.open a.active,
  body.mobile-menu-open .nav-links.open a:hover,
  body.mobile-menu-open .nav-links.open a:focus-visible {
    color: var(--ink, #0a0c10) !important;
    background: transparent !important;
    border-bottom-color: var(--blue, #0057ff) !important;
  }

  body > footer,
  footer {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    align-items: center !important;
    gap: 24px !important;
    width: 100% !important;
    padding: 48px 20px 50px !important;
    margin: 0 !important;
    background: var(--ink, #0a0c10) !important;
    color: #fff !important;
    text-align: center !important;
    border-top: 12px solid var(--blue, #0057ff) !important;
    box-sizing: border-box !important;
  }

  footer .footer-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
    color: #fff !important;
  }

  footer .footer-logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    color: #fff !important;
    font-family: var(--display, "Bebas Neue", sans-serif) !important;
    font-size: 22px !important;
    line-height: 1 !important;
    letter-spacing: 0.14em !important;
    white-space: nowrap !important;
  }

  footer .footer-logo span {
    color: var(--blue, #0057ff) !important;
  }

  footer .footer-company-name {
    margin: 0 !important;
    color: #fff !important;
    font-family: var(--body, "Noto Sans JP", sans-serif) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
  }

  footer .footer-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: min(100%, 654px) !important;
    margin: 0 !important;
    padding: 0 10px !important;
    list-style: none !important;
    box-sizing: border-box !important;
  }

  footer .footer-nav li {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  footer .footer-nav a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 54px !important;
    height: 54px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.035) !important;
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.18em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  footer .footer-nav a:hover,
  footer .footer-nav a:focus-visible {
    color: #fff !important;
    border-color: rgba(0, 87, 255, 0.85) !important;
    background: rgba(0, 87, 255, 0.18) !important;
    transform: none !important;
  }

  footer .footer-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 18px 0 0 !important;
  }

  footer .footer-social {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  footer .footer-social a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 62px !important;
    height: 62px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  footer .footer-social a:hover,
  footer .footer-social a:focus-visible {
    border-color: rgba(0, 87, 255, 0.9) !important;
    background: rgba(0, 87, 255, 0.2) !important;
    transform: none !important;
  }

  footer .footer-social img {
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    filter: brightness(0) invert(1) !important;
  }

  footer .footer-copy {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.52) !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    text-align: center !important;
    white-space: normal !important;
  }
}
