/* ============================================================
   キャリアカ 法務文書ページ 共通スタイル
   配置先: /hrtest/legal/legal-style.css
   ============================================================ */

:root {
  --navy: #0E1320;
  --navy-mid: #1A2236;
  --navy-soft: #2A3450;
  --navy-pale: #E8EBF0;
  --gold: #C9A653;
  --gold-light: #D9BC78;
  --text: #1A2236;
  --text-mute: #5A6478;
  --text-soft: #8A93A6;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FB;
  --border: #E2E5EC;
  --border-soft: #EEF0F4;
  --max-width: 880px;
  --content-max: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== ヘッダー ===== */
/* ===== ヘッダー(2026-05-18: SPA publicHeader と統一)
   SPA 側のヘッダー(.header)はライト背景 + ネイビーロゴ。
   legal ページは従来からネイビー背景なので、ダーク用ロゴを使用しつつ
   レイアウト(タグライン上 + ロゴ下)を SPA に合わせる。
   ===== */
.legal-header {
  background: var(--navy);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(201, 166, 83, 0.15);
}

.legal-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.legal-header a.legal-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  color: #FAFAFA;
  line-height: 1;
}

.legal-header-tagline {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(250, 250, 250, 0.72);
  letter-spacing: 0.08em;
}

.legal-header-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.legal-header-back {
  font-size: 12px;
  color: #FAFAFA;
  opacity: 0.85;
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(250, 250, 250, 0.28);
  border-radius: 4px;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.legal-header-back:hover {
  opacity: 1;
  border-color: var(--gold);
  background: rgba(201, 166, 83, 0.08);
}

/* ===== メインコンテンツ ===== */
.legal-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px 24px 80px;
  background: var(--bg);
  min-height: calc(100vh - 200px);
}

@media (min-width: 768px) {
  .legal-main {
    margin: 40px auto;
    padding: 72px 64px 80px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(14, 19, 32, 0.04), 0 8px 32px rgba(14, 19, 32, 0.06);
  }
}

.legal-eyebrow {
  font-family: 'Noto Serif JP', serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
  font-weight: 500;
}

.legal-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .legal-title { font-size: 32px; }
}

.legal-subtitle {
  font-size: 13px;
  color: var(--text-mute);
  margin: 0 0 40px;
  letter-spacing: 0.05em;
}

.legal-lead {
  font-size: 14px;
  color: var(--text);
  margin: 0 0 36px;
  padding: 20px 24px;
  background: var(--bg-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  line-height: 1.85;
}

/* ===== 章タイトル ===== */
h2.legal-part {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 56px 0 24px;
  padding: 16px 0;
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
}

h3.legal-section {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  line-height: 1.5;
}

h3.legal-section .num {
  color: var(--gold);
  font-family: 'Noto Serif JP', serif;
  margin-right: 8px;
}

/* ===== 本文 ===== */
.legal-main p {
  margin: 0 0 16px;
}

.legal-main ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.legal-main ul li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.legal-main ul li::marker {
  color: var(--gold);
}

.legal-main strong {
  color: var(--navy);
  font-weight: 700;
}

/* 強調ブロック（評価者の匿名性など） */
.legal-callout {
  background: linear-gradient(180deg, #FAF7EF 0%, #F8F3E5 100%);
  border: 1px solid rgba(201, 166, 83, 0.3);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 20px 0;
  font-size: 14px;
}

.legal-callout strong {
  color: var(--navy);
}

/* ===== テーブル（特商法・お問い合わせ窓口） ===== */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-soft);
  line-height: 1.75;
}

.legal-table th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--navy);
  width: 32%;
  white-space: nowrap;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 600px) {
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
    white-space: normal;
  }
  .legal-table th {
    border-bottom: none;
    padding-bottom: 4px;
    font-size: 12px;
    letter-spacing: 0.05em;
  }
  .legal-table td {
    padding-top: 0;
    padding-bottom: 14px;
  }
}

/* ===== 番号付きリスト（条文の項） ===== */
ol.legal-ol {
  margin: 0 0 20px;
  padding-left: 24px;
  counter-reset: legal-counter;
  list-style: none;
}

ol.legal-ol > li {
  counter-increment: legal-counter;
  margin-bottom: 14px;
  padding-left: 8px;
  position: relative;
}

ol.legal-ol > li::before {
  content: counter(legal-counter) ".";
  position: absolute;
  left: -22px;
  color: var(--gold);
  font-weight: 700;
  font-family: 'Noto Serif JP', serif;
}

ol.legal-paren {
  margin: 8px 0 16px;
  padding-left: 24px;
  list-style: none;
}

ol.legal-paren > li {
  margin-bottom: 6px;
  padding-left: 8px;
  position: relative;
  font-size: 14px;
  color: var(--text-mute);
}

/* ===== 末尾の制定日 ===== */
.legal-footer-meta {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mute);
  text-align: right;
  line-height: 2;
}

.legal-footer-meta .established {
  font-family: 'Noto Serif JP', serif;
  letter-spacing: 0.05em;
}

.legal-footer-meta .company {
  color: var(--navy);
  font-weight: 600;
}

/* ===== フッターナビ ===== */
.legal-footer-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 48px;
  text-align: center;
}

.legal-footer-nav h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 16px;
  font-weight: 500;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.legal-footer-links a {
  font-size: 13px;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.legal-footer-links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.legal-footer-links a.current {
  color: var(--gold);
  font-weight: 600;
  border-bottom-color: var(--gold);
}

.legal-copyright {
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 0.05em;
  margin-top: 16px;
}

/* ===== リンク全般 ===== */
.legal-main a {
  color: var(--navy-mid);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.legal-main a:hover {
  color: var(--gold);
}

/* ===== モバイル微調整 ===== */
@media (max-width: 480px) {
  body { font-size: 14px; }
  .legal-title { font-size: 24px; }
  h2.legal-part { font-size: 17px; margin: 40px 0 20px; }
  h3.legal-section { font-size: 15px; margin: 28px 0 12px; }
  .legal-main { padding: 40px 20px 60px; }
  .legal-header { padding: 12px 16px; }
  .legal-header-logo-img { height: 44px; }
  .legal-header-tagline { font-size: 9px; letter-spacing: 0.04em; }
  .legal-header-back { padding: 6px 10px; font-size: 11px; }
}
