/* =====================================================
   common.css — 全ページ共通スタイル
   テニス革命 | https://tennis.nekonikoban.org/
   ===================================================== */

/* ----- RESET & BASE ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a7a5e;
  --primary-light: #2da67e;
  --primary-pale: #e6f5f0;
  --accent: #e8763a;
  --accent-light: #f5a070;
  --text-dark: #1c2630;
  --text-mid: #3d5166;
  --text-light: #6b7d8f;
  --bg-white: #ffffff;
  --bg-pale: #f7fbf9;
  --bg-section: #f0f8f4;
  --border: #d4e8e0;
  --shadow-sm: 0 2px 8px rgba(26,122,94,.08);
  --shadow-md: 0 4px 20px rgba(26,122,94,.12);
  --shadow-lg: 0 8px 40px rgba(26,122,94,.16);
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Meiryo', sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ----- HEADER ----- */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 22px; height: 22px; fill: white; }
.logo-text { display: flex; flex-direction: column; }
.logo-main {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .04em;
  line-height: 1.2;
}
.logo-sub {
  font-size: .7rem;
  color: var(--text-light);
  letter-spacing: .06em;
}
.header-catch {
  font-size: .8rem;
  color: var(--text-mid);
  font-weight: 600;
  letter-spacing: .03em;
}
@media (max-width: 600px) { .header-catch { display: none; } }

/* 記事ページ用：ヘッダー幅を狭める */
.header-inner--article { max-width: 1000px; }

/* 記事ページ用：戻るリンク */
.back-link {
  font-size: .82rem;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.back-link:hover { text-decoration: underline; }

/* ----- FOOTER ----- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.6);
  padding: 36px 24px 20px;
  text-align: center;
  margin-top: 80px;
}
.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
}
.footer-desc {
  font-size: .82rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.8;
}
.footer-copy {
  font-size: .72rem;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
  margin-top: 20px;
}
