/* Company-only layout. Loaded after the shared theme to isolate legacy overrides. */
.ns-company-page .ns-container { max-width: 1200px; }
.ns-company-page .ns-narrow { max-width: 1040px; }
.ns-company-page .ns-hero--sub { padding-block: 52px 36px; min-height: 0; }
.ns-company-page .ns-section { padding-block: 52px; }
.ns-company-page section[id] { scroll-margin-top: 120px; }
.ns-company-page .ns-company-index {
  display: flex; flex-wrap: wrap; gap: 0 24px;
  padding-top: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.ns-company-index a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--color-dark); text-decoration: none; }
.ns-company-index a::after { content: "↓"; margin-left: 10px; color: var(--color-primary); }
.ns-company-index a:hover { text-decoration: underline; text-underline-offset: 5px; }
.ns-company-index a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }
.ns-company-page .ns-cosum__lead,
.ns-company-page .ns-message__body { font-size: 17px; line-height: 2; }
.ns-company-page .ns-message__body { max-width: 880px; margin-inline: auto; }
.ns-company-page .ns-message__body p { font-size: inherit; line-height: inherit; }
.ns-company-page .ns-strengths__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important; max-width: none !important;
}
.ns-company-page .ns-strength {
  min-width: 0; padding: 0 0 26px !important;
  text-align: left; border-radius: 4px; overflow: hidden;
}
.ns-company-page .ns-strength__photo {
  margin: 0 0 20px !important; aspect-ratio: 4 / 3 !important;
  max-height: none !important; border-radius: 0;
  background: #edeae7;
}
.ns-company-page .ns-strength__photo .ns-photo,
.ns-company-page .ns-strength__photo .ns-photo img {
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; object-position: 50% 50% !important; /* v1.82：枠いっぱいに中央合わせ（帯を出さない） */
}
.ns-company-page .ns-strength__icon { display: none; }
.ns-company-page .ns-strength__no {
  position: static !important; transform: none !important;
  display: block; margin: 22px 26px 10px;
  width: auto; height: auto; background: transparent;
  color: var(--color-primary); text-align: left;
}
.ns-company-page .ns-strength__title { padding: 0 26px !important; font-size: 23px !important; margin: 0 0 12px; }
.ns-company-page .ns-strength__desc { padding: 0 26px !important; font-size: 16px; line-height: 1.9; }
.ns-company-page .ns-strength:hover { transform: none; box-shadow: none; }
.ns-company-page .ns-history { --timeline-x: 140px; }
.ns-company-page .ns-history::before { left: var(--timeline-x); }
.ns-company-page .ns-history__item { grid-template-columns: 120px minmax(0, 1fr); gap: 48px; padding: 22px 0; }
.ns-company-page .ns-history__item::before { left: calc(var(--timeline-x) - 4px); top: 29px; box-sizing: border-box; }
.ns-company-page .ns-history__body { padding-left: 0; min-width: 0; }
.ns-company-page .ns-history__year { font-size: 15px; }
.ns-company-page .ns-history__title { font-size: 18px; line-height: 1.7; }
.ns-company-page .ns-history__body p { font-size: 16px; line-height: 1.85; }
.ns-company-page .ns-info-row { grid-template-columns: 180px minmax(0, 1fr); }
.ns-company-page .ns-info-row dt,
.ns-company-page .ns-info-row dd { padding: 18px 20px; font-size: 16px; line-height: 1.85; min-width: 0; overflow-wrap: anywhere; }
.ns-company-page .ns-info-row dd { margin: 0; }
.ns-company-page .ns-office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: none; }
.ns-company-page .ns-office-card { min-width: 0; border-radius: 4px; }
.ns-company-page .ns-office-card__photo { aspect-ratio: 4 / 3; background: #edeae7; }
.ns-company-page .ns-office-card__photo .ns-photo,
.ns-company-page .ns-office-card__photo .ns-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; } /* v1.82：枠いっぱいに中央合わせ */
.ns-company-page .ns-office__desc { font-size: 16px; line-height: 1.9; }
.ns-company-page .ns-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.ns-company-page .ns-access-item { min-width: 0; }
.ns-company-page .ns-access__addr { min-height: 3.8em; font-size: 15px; }
.ns-company-page .ns-map iframe { display: block; width: 100%; height: 320px; }
.ns-company-page .ns-strength__photo .ns-photo,
.ns-company-page .ns-office-card__photo .ns-photo { background: #f1efed; }
@media (min-width: 901px) {
  body:has(.ns-company-page) .ns-cw__bubble { right: 10px; bottom: 16px; }
  body:has(.ns-company-page) .ns-cw__dance-wrap { width: 112px; height: 164px; }
  body:has(.ns-company-page) .ns-cw__bubble-label { display: none; }
  body:has(.ns-company-page) .ns-cw__name { max-width: 118px; font-size: 10px; padding-inline: 5px; }
}
@media (max-width: 700px) {
  .ns-company-page .ns-hero--sub { padding-block: 34px 28px; }
  .ns-company-page .ns-section { padding-block: 34px; }
  .ns-company-page section[id] { scroll-margin-top: 100px; }
  .ns-company-page .ns-company-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
  .ns-company-index a { font-size: 14px; }
  .ns-company-page .ns-cosum__lead,
  .ns-company-page .ns-message__body { font-size: 16px; line-height: 1.95; }
  .ns-company-page .ns-strengths__grid,
  .ns-company-page .ns-office-grid,
  .ns-company-page .ns-access-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 24px !important; }
  .ns-company-page .ns-strength__title { font-size: 21px !important; padding-inline: 20px !important; }
  .ns-company-page .ns-strength__desc { padding-inline: 20px !important; }
  .ns-company-page .ns-strength__no { margin-inline: 20px; }
  .ns-company-page .ns-history { --timeline-x: 8px; }
  .ns-company-page .ns-history__item { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 0 18px 32px; }
  .ns-company-page .ns-history__item::before { top: 27px; }
  .ns-company-page .ns-history__body { padding-left: 0; }
  .ns-company-page .ns-info-row { grid-template-columns: minmax(0, 1fr); }
  .ns-company-page .ns-info-row dt { padding: 14px 16px 4px; }
  .ns-company-page .ns-info-row dd { padding: 0 16px 14px; }
  .ns-company-page .ns-access__addr { min-height: 0; }
  .ns-company-page .ns-map iframe { height: 280px; }
}
