/*
 * 下層ページ（privacy.html / consulting.html / website.html / system.html）の共通スタイル。
 *
 * サイト本体は1ページ構成でルーターを入れていないので、
 * 下層ページは public/ に置いた素のHTMLにしている。
 * そのため React 側の CSS は使えず、ここに同じ値を書いている。
 * 色を変えるときは src/styles/variables.css と合わせること。
 */

:root {
  --brand-dark: #01545a;
  --brand-navy: #004d99;
  --accent: #0072ff;
  --accent-2: #00c6ff;

  --page-bg: #f5f8fa;
  --surface: #ffffff;
  --border: #e2e8ef;

  --text: #333;
  --muted: #6b7280;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Helvetica Neue', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.9;
}

/* ===== ヘッダー ===== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: var(--brand-dark);
}

.page-header a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.page-header__nav {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

/* ===== 見出し部分 ===== */
.page-hero {
  padding: 44px 20px 32px;
  background: linear-gradient(135deg, #eaf4fb 0%, #f7fbff 60%, #ffffff 100%);
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 1.3rem + 1.2vw, 2.1rem);
  color: var(--brand-navy);
}

.page-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  text-wrap: balance;
}

/* ===== 本文 ===== */
main {
  max-width: 820px;
  margin: 0 auto 64px;
  padding: 0 20px;
}

section {
  margin-top: 36px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

/* ページ内に見出し部分を持たないページ（プライバシーポリシーなど）用 */
section > h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  color: var(--brand-navy);
}

.updated {
  margin: 0 0 24px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* 定義リスト（事業者情報・外部サービスの一覧） */
dl {
  margin: 0 0 12px;
}

dt {
  margin-top: 14px;
  font-weight: bold;
}

dt:first-child {
  margin-top: 0;
}

dd {
  margin: 2px 0 0 1.4em;
}

section > h2 {
  margin: 0 0 14px;
  padding-bottom: 8px;
  font-size: 1.12rem;
  color: var(--brand-navy);
  border-bottom: 1px solid var(--border);
}

section h3 {
  margin: 22px 0 6px;
  font-size: 1rem;
  color: var(--text);
}

section > h3:first-of-type {
  margin-top: 0;
}

section p {
  margin: 0 0 12px;
}

section p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

li {
  margin-bottom: 6px;
}

/* ===== できること一覧 ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  padding: 18px 20px;
  background: #fbfcfd;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  color: var(--brand-navy);
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ===== 進め方（番号付き） ===== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  margin-bottom: 18px;
  padding-left: 46px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.steps li:last-child {
  margin-bottom: 0;
}

.steps strong {
  display: block;
  color: var(--text);
}

.steps span {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ===== 注記 ===== */
.note {
  background: #fbfcfd;
  font-size: 0.93rem;
  color: var(--muted);
}

/* ===== 問い合わせへの誘導 ===== */
.cta {
  margin-top: 36px;
  padding: 30px 28px;
  text-align: center;
  background: linear-gradient(135deg, #eaf4fb 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.cta h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--brand-navy);
  border: none;
  padding: 0;
}

.cta p {
  margin: 0 0 18px;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.08s ease, filter 0.2s ease;
}

.button:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

/* ===== フッター ===== */
.page-footer {
  padding: 24px 20px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
}

.page-footer a {
  color: var(--brand-navy);
}

.page-footer p {
  margin: 6px 0;
}

@media (max-width: 600px) {
  section,
  .cta {
    padding: 20px 18px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ===== 見出し部分のボタン（帳票ページなど） ===== */
.page-hero__actions {
  margin-top: 20px;
}

/* ===== 料金表・比較表 =====
 * 横に広い表はスマホで収まらないので、必ず .price-table-wrap で包んで
 * 横スクロールできるようにする（ページ全体が横に伸びるのを防ぐため）。
 */
.price-table-wrap {
  overflow-x: auto;
  margin-bottom: 14px;
}

.price-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.price-table th,
.price-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.price-table thead th {
  background: var(--brand-navy);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.price-table tbody th {
  background: #f7f9fb;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.price-table tbody th small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}

.price-table td.price {
  white-space: nowrap;
  font-weight: 700;
  color: var(--brand-navy);
}

.price-note {
  font-size: 0.88rem;
  color: var(--muted);
}

/* 主ボタンの下に置く控えめなリンク */
.cta__sub {
  margin: 16px 0 0;
  font-size: 0.88rem;
}

@media (max-width: 600px) {
  .price-table {
    min-width: 520px;
  }
}
