/* ============================================
   common/css/base.css
   全ページ共通のベーススタイル・共通コンポーネント。
   (ヘッダー/フッター/カード/ボタン/sr-only 等)
   ============================================ */

body {
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* スクリーンリーダー専用(視覚的には非表示・SEO/アクセシビリティ用の見出しに使用) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */

.header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-indigo);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 16px;
}

.header__title {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  color: var(--color-text-primary);
}

/* ---------- Main / layout ---------- */

.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
}

.section-heading {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  text-align: center;
}

/* ---------- Buttons ---------- */

.btn-primary {
  width: 100%;
  height: 50px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-control);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
}

.btn-primary:active {
  background: var(--color-accent-dark);
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
}

.link-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: var(--color-surface-sunken);
  border-radius: var(--radius-control);
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  text-align: center;
}

/* ---------- 広告プレースホルダー ----------
   広告読み込み前後でレイアウトが崩れないよう、最小限のスタイルに留める。
   実際の広告タグは別途組み込む想定(本ファイルには含まない)。
------------------------------------------------- */
.ad-slot {
  min-height: 1px;
}

/* ---------- Footer ---------- */

.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px 32px;
  text-align: center;
  font-size: 11px;
  color: var(--color-text-muted);
}
