/* ============================================================
   PayPulse — ブランド共通スタイル (Mobile-First v3)
   全HTMLページからリンクして使用する。
   ページ固有のスタイルは各ファイルの <style> で上書き可。
   ============================================================ */

/* ── リセット ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── ブランドカラー変数 ── */
:root {
  --blue:        #1a5fad;
  --blue-dark:   #0d3b6e;
  --orange:      #f97316;
  --text:        #1a2e4a;
  --text-light:  #64748b;
  --white:       #ffffff;
  --bg:          #f2ecd8;
  --border:      rgba(26, 95, 173, 0.25);
  --grid:        rgba(80, 130, 200, 0.1);
  --font-sans:   -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-mono:   'Courier New', Courier, monospace;
}

/* ── ベース ── */
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}

html { scroll-behavior: smooth; }

/* ── 共通ヘッダー（モバイルファースト） ── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(242, 236, 216, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── ロゴ ── */
.logo,
.logo:link,
.logo:visited {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 3px solid var(--blue);
  padding-bottom: 2px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── ナビグループ（ヘッダー右側コンテナ） ── */
.nav-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── テキストナビリンク（モバイルでも常に表示） ── */
/* :link / :visited を明示してブラウザデフォルト(紫・青)を上書き */
.nav-text-link,
.nav-text-link:link,
.nav-text-link:visited {
  display: inline;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.nav-text-link:hover  { color: var(--blue); }
.nav-text-link.active,
.nav-text-link.active:link,
.nav-text-link.active:visited { color: var(--blue); }

/* ── ヘッダー CTAボタン ── */
/* inline-block で背景・padding が正しく適用されるようにする */
.header-cta,
.header-cta:link,
.header-cta:visited {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .3px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .1s;
}
.header-cta:hover { background: #ea6a00; transform: translateY(-1px); }

/* ── デスクトップヘッダー（480px以上） ── */
@media (min-width: 480px) {
  header         { padding: 14px 24px; }
  .logo          { font-size: 22px; letter-spacing: 2px; }
  .nav-group     { gap: 16px; }
  .nav-text-link { font-size: 14px; }
  .header-cta    { padding: 9px 22px; font-size: 14px; }
}

/* ── 共通フッター ── */
footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--text-light);
  border-top: 1px solid var(--border);
}
footer a,
footer a:link,
footer a:visited { color: inherit; opacity: .7; text-decoration: underline; }
