/* パンくずリスト（サイト共通） */
.breadcrumb {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 14px 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 0.4em;
  font-size: 0.85rem;
  color: var(--color-text);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "\203A";
  margin-left: 0.5em;
  color: var(--color-accent);
}

.breadcrumb a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.breadcrumb a:hover {
  color: var(--color-main);
  border-bottom-color: var(--color-main);
}

.breadcrumb li[aria-current="page"] {
  color: var(--color-main);
}

/* プライバシーポリシー・サイトマップ 共通スタイル */

.legal-hero {
  background-color: var(--color-panel);
  padding: 80px 20px 60px;
  text-align: center;
}

.legal-hero h1 {
  font-family: var(--font-heading);
  color: var(--color-main);
  font-size: 2.4rem;
  letter-spacing: 0.05em;
}

.legal-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 20px 100px;
  color: var(--color-text);
  font-family: var(--font-base);
  line-height: 1.9;
}

.legal-body p {
  margin-bottom: 1.6em;
}

.legal-body .legal-updated {
  text-align: right;
  font-size: 0.9rem;
  margin-bottom: 2.5em;
}

.legal-section {
  margin-bottom: 2.6em;
}

.legal-section h2 {
  font-family: var(--font-heading);
  color: var(--color-main);
  font-size: 1.4rem;
  border-left: 6px solid var(--color-accent);
  padding-left: 0.6em;
  margin-bottom: 0.9em;
}

.legal-section ol,
.legal-section ul {
  margin: 0 0 1.2em 1.4em;
}

.legal-section li {
  margin-bottom: 0.6em;
}

.legal-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.6em;
  font-size: 0.95rem;
}

.legal-section table th,
.legal-section table td {
  border: 1px solid var(--color-panel);
  padding: 0.8em 1em;
  text-align: left;
  vertical-align: top;
}

.legal-section table th {
  background-color: var(--color-bg);
  color: var(--color-main);
  white-space: nowrap;
}

.legal-contact {
  background-color: var(--color-bg);
  border-radius: 12px;
  padding: 1.6em 1.8em;
  margin-top: 0.5em;
}

/* フッター内 プライバシーポリシー・サイトマップ リンク */
.footer-legal {
  display: flex;
  justify-content: center;
  gap: 1.6em;
  margin-top: 0.8em;
  list-style: none;
}

.footer-legal a {
  color: inherit;
  text-decoration: underline;
}

/* サイトマップ */
.sitemap-list {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 20px 100px;
}

.sitemap-list .sitemap-group {
  margin-bottom: 2.4em;
}

.sitemap-list h2 {
  font-family: var(--font-heading);
  color: var(--color-main);
  font-size: 1.3rem;
  border-bottom: 2px solid var(--color-panel);
  padding-bottom: 0.5em;
  margin-bottom: 0.8em;
}

.sitemap-list ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6em 1.6em;
}

.sitemap-list ul ul {
  grid-template-columns: 1fr;
  margin: 0.5em 0 0.5em 1.2em;
}

.sitemap-list li {
  list-style: none;
}

.sitemap-list a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.sitemap-list a:hover {
  color: var(--color-main);
  border-bottom-color: var(--color-main);
}

@media (max-width: 600px) {
  .legal-hero h1 {
    font-size: 1.7rem;
  }

  .sitemap-list ul {
    grid-template-columns: 1fr;
  }

  /* SPは固定ヘッダー（.header: position:fixed / height:14vw）があるため、
     パンくずをその分だけ下げてヘッダー裏に隠れないようにする */
  .breadcrumb {
    margin-top: 14vw;
    padding: 10px 0 6px;
    font-size: 0.75rem;
  }

  /* パンくず直後にヒーローが来るページ（company/day/nursing/care-plan/recruit/support）は、
     .hero-area 側の margin-top:14vw と二重になるので詰める */
  .breadcrumb + .hero-area {
    margin-top: 8px;
  }

  /* パンくず直後が legal-hero（privacy/sitemap）のページは上パディングを圧縮 */
  .breadcrumb + .legal-hero {
    padding-top: 32px;
  }

  /* 404はパンくずが無いので固定ヘッダー分を自前で確保 */
  #notfound .legal-hero {
    padding-top: calc(14vw + 40px);
  }

  .notfound-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* =========================
   404ページ
========================= */
#notfound .legal-hero h1 {
  font-size: 4rem;
  line-height: 1;
}

.notfound-sub {
  margin-top: 0.5em;
  font-family: var(--font-base);
  font-size: 1.05rem;
  color: var(--color-text);
}

.notfound-body {
  text-align: center;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  margin-top: 2.6em;
}

.notfound-btn {
  display: inline-block;
  padding: 0.9em 2.4em;
  border-radius: 999px;
  background-color: var(--color-main);
  color: #fff;
  font-family: var(--font-base);
  text-decoration: none;
  transition: opacity 0.2s;
}

.notfound-btn:hover {
  opacity: 0.85;
}

.notfound-btn--ghost {
  background-color: transparent;
  color: var(--color-main);
  border: 1px solid var(--color-main);
}
