@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* デザインシステム変数 */
:root {
  --primary-color: #004bb1;
  --primary-hover: #003680;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ベーススタイル */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.8;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ヘッダースタイル（ロゴのみ、history.backのリンク） */
header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-logo-link {
  display: inline-block;
  transition: var(--transition-smooth);
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 8px;
}

.header-logo-link:hover {
  opacity: 0.75;
  background-color: rgba(0, 75, 177, 0.04);
  transform: translateY(-1px);
}

.header-logo-link img {
  height: 40px;
  width: auto;
  display: block;
}

/* メインコンテンツレイアウト */
main {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 24px;
}

/* パンくずリスト風の戻る案内 */
.back-navigation {
  margin-bottom: 24px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  background: none;
}

.back-btn:hover {
  color: var(--primary-color);
  transform: translateX(-4px);
}

.back-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* 記事カード */
.policy-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 48px;
  margin-bottom: 40px;
}

@media (max-width: 640px) {
  .policy-card {
    padding: 24px;
  }
  main {
    margin: 20px auto;
  }
}

/* タイトルスタイル */
.policy-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 20px;
  line-height: 1.4;
}

.policy-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #3b82f6);
  border-radius: 2px;
}

/* セクション項目 */
.policy-section {
  margin-bottom: 32px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 24px;
}

.policy-section:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.policy-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.policy-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 2px;
  margin-top: 3px;
  flex-shrink: 0;
}

.policy-section-body {
  color: var(--text-main);
  font-size: 0.975rem;
  padding-left: 12px;
}

/* テーブルスタイル */
.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.policy-table th,
.policy-table td {
  padding: 12px 16px;
  text-align: left;
}

.policy-table th {
  background-color: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
  width: 30%;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.policy-table td {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

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

/* 外国・オプトアウト等のカード表示 */
.info-sub-card {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
}

.info-sub-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
}

.info-sub-card ul {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.info-sub-card li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.info-sub-card li:last-child {
  margin-bottom: 0;
}

/* 外部リンクボタン */
.link-button-container {
  margin-top: 12px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.link-button:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.link-button svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* フッター */
footer {
  text-align: center;
  padding: 24px 0 40px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
