/* ============================================
   common.css : サイト全体共通スタイル v2
   金融信頼感・ネイビー基調・余白多め
   ============================================ */

/* ----- リセット ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd, table, th, td {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
table { border-collapse: collapse; width: 100%; }

/* ----- 変数 ----- */
:root {
  /* カラー：金融信頼感ベース */
  --c-bg:           #FFFFFF;
  --c-bg-soft:      #F8FAFC;
  --c-bg-section:   #F1F5F9;
  --c-text:         #0F172A;
  --c-text-mute:    #64748B;
  --c-text-light:   #94A3B8;
  --c-border:       #E2E8F0;
  --c-border-mid:   #CBD5E1;

  /* ブランドカラー */
  --c-navy:         #003D7A;
  --c-navy-light:   #1E5BA8;
  --c-navy-dark:    #002A55;

  /* アクセント（損失額・CTA限定） */
  --c-red:          #DC2626;
  --c-red-dark:     #B91C1C;

  /* ハイライト */
  --c-highlight:    #FEF3C7;  /* 黄色マーカー */
  --c-success:      #059669;

  /* レイアウト */
  --max-w:          1080px;
  --max-w-narrow:   720px;
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      16px;

  /* シャドウ */
  --sh-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --sh:    0 4px 12px rgba(15, 23, 42, 0.08);
  --sh-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --sh-lg: 0 16px 40px rgba(15, 23, 42, 0.14);

  /* タイポ */
  --font-base: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Yu Gothic Medium', 'Noto Sans JP', sans-serif;
  --font-num:  'Helvetica Neue', 'Arial', 'Yu Gothic', sans-serif;
}

/* ----- ベース ----- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text);
  background-color: var(--c-bg);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: normal;
  overflow-wrap: break-word;
}

/* ----- レイアウト ----- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.container--narrow { max-width: var(--max-w-narrow); }

/* ----- グローバルヘッダー ----- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  padding: 18px 0;
}
.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-header__logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-navy);
  letter-spacing: 0.02em;
}
.site-header__nav ul {
  display: flex;
  gap: 28px;
}
.site-header__nav a {
  font-size: 14px;
  color: var(--c-text-mute);
  transition: color 0.15s;
}
.site-header__nav a:hover { color: var(--c-navy); }

/* ----- グローバルフッター ----- */
.site-footer {
  background: var(--c-bg-section);
  padding: 40px 0 28px;
  margin-top: 80px;
  font-size: 13px;
  color: var(--c-text-mute);
  text-align: center;
  border-top: 1px solid var(--c-border);
}
.site-footer__nav { margin-bottom: 16px; }
.site-footer__nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer__nav a:hover { color: var(--c-navy); text-decoration: underline; }
.site-footer__copy { font-size: 12px; }

/* ----- 一般ページコンテンツ ----- */
.page-content { padding: 48px 0 60px; }
.page-content h1 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--c-navy);
  letter-spacing: 0.01em;
}
.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--c-navy);
  line-height: 1.5;
}
.page-content p { margin-bottom: 16px; }
.page-content ul.list, .page-content ol.list {
  padding-left: 24px;
  margin-bottom: 16px;
}
.page-content ul.list { list-style: disc; }
.page-content ol.list { list-style: decimal; }
.page-content table.info-table {
  margin: 16px 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.page-content table.info-table th,
.page-content table.info-table td {
  border: 1px solid var(--c-border);
  padding: 12px 16px;
  text-align: left;
  font-size: 15px;
}
.page-content table.info-table th {
  background: var(--c-bg-soft);
  white-space: nowrap;
  width: 30%;
  font-weight: 700;
}
.page-content a.link {
  color: var(--c-navy-light);
  text-decoration: underline;
}

/* ----- ユーティリティ ----- */
.sp-only { display: none; }
.pc-only { display: inline; }

/* ----- レスポンシブ ----- */
@media (max-width: 767px) {
  body { font-size: 15px; line-height: 1.8; }
  .container { padding-left: 18px; padding-right: 18px; }

  /* ヘッダー：縦スタックでスッキリ表示 */
  .site-header { padding: 12px 0; }
  .site-header__inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .site-header__logo {
    font-size: 17px;
    white-space: nowrap;
  }
  .site-header__nav ul {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .site-header__nav a {
    font-size: 12.5px;
    white-space: nowrap;
  }

  .page-content h1 { font-size: 22px; }
  .page-content h2 { font-size: 18px; margin-top: 32px; }
  .sp-only { display: inline; }
  .pc-only { display: none; }
}
