/* 会社のページ（サービスを分類ごとに一覧） */
.company-page { max-width: 960px; }
.company-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.company-head h1 { margin-bottom: 4px; }
.company-site { margin-left: 10px; font-size: 14px; }

/* まとめて依頼するバー（スクロールしても上に残る） */
.company-quote-bar { position: sticky; top: 8px; z-index: 5; display: flex; gap: 12px; align-items: center; justify-content: flex-end;
  background: #ffffffee; backdrop-filter: blur(4px); border: 1px solid #dfe7f0; border-radius: 12px; padding: 8px 12px; margin: 12px 0 4px;
  box-shadow: 0 2px 8px #10223f0d; }
.company-quote-bar .primary-button { padding: 8px 18px; font-size: 14px; }

/* 分類ごとのまとまり */
.cp-group { margin-top: 26px; }
.cp-group-title { font-size: 17px; margin: 0 0 10px; line-height: 1.5; }
.cp-crumb { display: block; font-size: 12px; font-weight: 600; color: #6b7a90; }
.cp-count { font-size: 12px; font-weight: 600; color: #6b7a90; background: #eef2f6; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }

/* サービスの一覧（カード） */
.cp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 0px solid #dfe7f0;
  border-radius: 5px;
 }
.cp-item { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 4px 12px; padding: 14px 16px; border-top: 1px solid #edf1f6; }
.cp-item:first-child { border-top: 0; }
.cp-item:hover { background: #f7fbff; }
.cp-item.no-check { grid-template-columns: 1fr auto; }
.cp-check { display: flex; align-items: center; justify-content: center; height: 100%; cursor: pointer; }
.cp-check input { width: 18px; height: 18px; accent-color: #0a86c9; cursor: pointer; }
.cp-name { display: flex; align-items: center; gap: 2px; font-weight: 700; font-size: 15px; line-height: 1.5; }
.cp-name a { color: #10223f; text-decoration: none; }
.cp-name a:hover { color: #0a86c9; text-decoration: underline; }
.cp-summary { margin: 4px 0 0; font-size: 13px; color: #5b6b80; line-height: 1.6; }
.cp-actions { white-space: nowrap; font-size: 13px; }
.cp-actions a { color: #0a86c9; text-decoration: none; font-weight: 600; }
.cp-actions a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .cp-item { grid-template-columns: 32px 1fr; }
  .cp-item.no-check { grid-template-columns: 1fr; }
  .cp-actions { grid-column: 2; }
  .cp-item.no-check .cp-actions { grid-column: 1; }
}

.company-link { color: inherit; text-decoration: none; border-bottom: 1px dotted #9aa9bb; }
.company-link:hover { color: #0a86c9; border-bottom-color: #0a86c9; }

/* ==========================================
   COMPANY SERVICES
   会社別サービス一覧ページ
========================================== */

.csv-page {
  --csv-blue: #168cf0;
  --csv-dark: #103565;
  --csv-text: #385b7c;
  --csv-muted: #7790a9;
  --csv-border: #dce9f6;
  width: 100%;
  min-width: 0;
  padding-bottom: 85px;
  background: #f7fbff;
  color: var(--csv-dark);
}

.csv-page *,
.csv-page *::before,
.csv-page *::after {
  box-sizing: border-box;
}

.csv-container {
  width: min(100% - 36px, 1100px);
  margin-inline: auto;
}

/* HERO */

.csv-hero {
  padding: 34px 0 78px;
  background-color: #eaf7ff;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.csv-breadcrumb {
  margin-bottom: 23px;
}

.csv-breadcrumb a {
  color: #1388e8;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.csv-breadcrumb a:hover {
  text-decoration: underline;
}

.csv-eyebrow,
.csv-section-eyebrow {
  display: block;
  margin-bottom: 0px;
  color: #168cf0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}

.csv-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.csv-hero-copy {
  min-width: 0;
}

.csv-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
}

.csv-title-row h1 {
  margin: 0;
  color: #103366;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.csv-hero-description {
  max-width: 800px;
  margin: 12px 0 0;
  color: #5f7d9b;
  font-size: 13px;
  line-height: 1.95;
}

.csv-website-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid #d2e7f9;
  border-radius: 24px;
  background: #fff;
  color: #087fe1;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(30, 100, 170, .06);
}

.csv-website-button svg {
  width: 16px;
  height: 16px;
}

.csv-website-button:hover {
  background: #eff8ff;
}

.csv-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}

.csv-hero-stats > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 4px 16px;
  border: 1px solid #d6eafa;
  border-radius: 5px;
  background: rgba(255, 255, 255, .85);
}

.csv-hero-stats strong {
  color: #087bdd;
  font-size: 21px;
  font-weight: 900;
}

.csv-hero-stats span {
  color: #6683a0;
  font-size: 11px;
}

/* MAIN */

.csv-main {
  position: relative;
  z-index: 1;
  margin-top: -40px;
}

/* SEARCH */

.csv-search-panel {
  margin-bottom: 33px;
  padding: 24px 28px;
  border: 1px solid #dceaf7;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(32, 102, 172, .07);
}

.csv-search-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.csv-search-top h2 {
  margin: 0 !important;
  color: #174270 !important;
  font-size: 18px !important;
  font-weight: 800;
}

.csv-search-top p {
  margin: 5px 0 0;
  color: #7891a8;
  font-size: 12px;
}

.csv-service-total {
  padding: 7px 13px;
  border-radius: 20px;
  background: #eaf6ff;
  color: #5480a5;
  font-size: 12px;
  white-space: nowrap;
}

.csv-service-total strong {
  color: #087fdf;
  font-size: 15px;
}

.csv-search-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.csv-search-field {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid #d0e1f0;
  border-radius: 5px;
  background: #fff;
}

.csv-search-field:focus-within {
  border-color: #168cf0;
  box-shadow: 0 0 0 4px rgba(22, 140, 240, .1);
}

.csv-search-field svg {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  color: #168cf0;
}

.csv-search-input {
  width: 100%;
  min-width: 0;
  min-height: 35px;
  padding: 12px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #2d5278;
  font-family: inherit;
  font-size: 14px;
}

.csv-search-input::placeholder {
  color: #9caec0;
}

.csv-search-clear {
  min-height: 35px;
  padding: 8px 15px;
  border: 1px solid #cfdfed;
  border-radius: 9px;
  background: #fff;
  color: #66839f;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.csv-search-clear:hover {
  background: #f0f8ff;
}

/* QUOTE BAR */

.csv-page .csv-quote-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0 0;
  padding: 5px 17px;
  border: 1px solid #d7eafa;
  border-radius: 5px;
  background: #f1f9ff;
}

.csv-quote-bar-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.csv-quote-bar-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #dfF1ff;
  color: #168cf0;
}

.csv-quote-bar-icon svg {
  width: 21px;
  height: 21px;
}

.csv-quote-bar-copy strong,
.csv-quote-bar-copy small {
  display: block;
}

.csv-quote-bar-copy strong {
  color: #244d76;
  font-size: 12px;
}

.csv-quote-bar-copy small {
  margin-top: 5px;
  color: #748da6;
  font-size: 11px;
  line-height: 1.65;
}

.csv-page .csv-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
  min-height: 35px;
  margin: 0;
  padding: 11px 21px;
  border: 1px solid #087dea;
  border-radius: 9px;
  background: linear-gradient(180deg, #3aaeff, #087aeb);
  color: #fff;
  font-family: inherit;
  font-size: 12px !important;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 7px 17px rgba(15, 125, 226, .14);
}

.csv-page .csv-primary-button:hover {
  filter: brightness(.97);
}

/* RESULTS */

.csv-results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 23px;
}

.csv-results-heading h2 {
  margin: 0 !important;
  color: #153d6d !important;
  font-size: 23px !important;
  font-weight: 800;
}

.csv-results-note {
  color: #7e93a9;
  font-size: 11px;
}

.csv-search-no-results {
  padding: 30px;
  border: 1px dashed #c5ddee;
  border-radius: 12px;
  background: #fff;
  color: #6988a5;
  font-size: 13px;
  text-align: center;
}

.csv-search-no-results[hidden],
.csv-group[hidden],
.csv-service-item[hidden] {
  display: none !important;
}

/* GROUP HEADINGS */

.csv-page .csv-group {
  margin: 0 0 55px;
  padding: 0;
  border: 0;
  background: transparent;
}

.csv-group-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 5px;
}

.csv-group-icon {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e5f3ff;
  color: #168cf0;
}

.csv-group-icon svg {
  width: 28px;
  height: 28px;
}

.csv-group-heading-copy {
  min-width: 0;
}

.csv-category-breadcrumb {
  margin-bottom: 0px;
  color: #6d89a5;
  font-size: 11px;
  line-height: 1.7;
  font-weight: normal;
}

.csv-page .csv-category-breadcrumb a {
  color: #168cf0;
}

.csv-page .csv-group .csv-group-heading h3,
.csv-page .csv-group .csv-group-heading .cp-group-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0878d8;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.5;
}

.csv-category-count {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  background: #e4f3ff;
  color: #2d75a9;
  font-size: 11px;
  font-weight: 800;
}

/* SERVICE LIST */

.csv-page .csv-service-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #dce9f6;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 7px 25px rgba(32, 102, 171, .055);
  list-style: none;
  overflow: hidden;
}

.csv-page .csv-service-item {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 21px 24px;
  border: 0;
  border-bottom: 1px solid #e7eef6;
  border-radius: 0;
  background: #fff;
}

.csv-page .csv-service-item:last-child {
  border-bottom: 0;
}

.csv-page .csv-service-item:hover {
  background: #fafdff;
}

.csv-page .csv-check {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  margin: 0;
  cursor: pointer;
}

.csv-page .csv-check input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: #168cf0;
}

.csv-page .csv-service-body {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.csv-page .csv-service-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 7px;
}

.csv-page .csv-service-name > a {
  color: #0879d9;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.65;
  text-decoration: none;
}

.csv-page .csv-service-name > a:hover {
  text-decoration: underline;
}

.csv-performer {
  margin-bottom: 7px;
  color: #7b91a7;
  font-size: 11px;
}

.csv-page .csv-service-summary {
  margin: 0;
  color: #68829d;
  font-size: 12px;
  line-height: 1.9;
}

.csv-page .csv-service-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 185px;
  gap: 11px;
  margin: 0;
  padding-left: 22px;
  border-left: 1px solid #e1eaf4;
}

.csv-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #087bdc;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.csv-detail-link:hover {
  text-decoration: underline;
}

.csv-compare-link {
  color: #7190ac;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.csv-compare-link:hover {
  color: #087bda;
  text-decoration: underline;
}

/* EMPTY */

.csv-empty {
  padding: 53px 20px;
  border: 1px solid #dce9f6;
  border-radius: 15px;
  background: #fff;
  text-align: center;
}

.csv-empty-icon {
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #eaf6ff;
  color: #168cf0;
}

.csv-empty-icon svg {
  width: 29px;
  height: 29px;
}

.csv-empty h2 {
  margin: 0 0 9px;
  color: #31577c;
  font-size: 20px;
}

.csv-empty p {
  color: #8095aa;
  font-size: 13px;
}

.csv-empty-link {
  display: inline-block;
  margin-top: 10px;
  color: #087edb;
  font-weight: 800;
  text-decoration: none;
}

/* MOBILE */

@media (max-width: 760px) {
  .csv-page {
    padding-bottom: 45px;
  }

  .csv-container {
    width: calc(100% - 26px);
  }

  .csv-hero {
    padding: 27px 0 65px;
    background-position: 70% center;
  }

  .csv-hero-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .csv-title-row h1 {
    font-size: 25px;
  }

  .csv-hero-description {
    font-size: 12px;
  }

  .csv-main {
    margin-top: -25px;
  }

  .csv-search-panel {
    padding: 18px 15px;
  }

  .csv-search-top h2 {
    font-size: 17px;
  }

  .csv-search-input {
    font-size: 16px;
  }

  .csv-page .csv-quote-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .csv-page .csv-primary-button {
    width: 100%;
  }

  .csv-results-heading h2 {
    font-size: 20px;
  }

  .csv-group-icon {
    flex-basis: 43px;
    width: 43px;
    height: 43px;
  }

  .csv-group-icon svg {
    width: 23px;
    height: 23px;
  }

  .csv-page .csv-group .csv-group-heading h3,
  .csv-page .csv-group .csv-group-heading .cp-group-title {
    font-size: 18px;
  }

  .csv-page .csv-service-item {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 14px;
  }

  .csv-page .csv-check {
    flex-basis: 23px;
    width: 23px;
    min-width: 23px;
  }

  .csv-page .csv-service-body {
    flex-basis: calc(100% - 35px);
  }

  .csv-page .csv-service-name > a {
    font-size: 13px;
  }

  .csv-page .csv-service-summary {
    font-size: 11px;
  }

  .csv-page .csv-service-actions {
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    flex: 1 1 100%;
    width: 100%;
    gap: 10px;
    margin-top: 4px;
    padding: 13px 0 0;
    border-left: 0;
    border-top: 1px solid #e8f0f7;
  }

  .csv-detail-link,
  .csv-compare-link {
    font-size: 11px;
  }

  .csv-results-note {
    display: none;
  }
}

/* ACCESSIBILITY */

.csv-page a:focus-visible,
.csv-page button:focus-visible,
.csv-page input:focus-visible {
  outline: 3px solid #168cf0;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .csv-page * {
    transition: none !important;
  }
}
