/* Puffer 公式サイト 共通スタイル。CLAUDE.md 2章のカラー/フォントトークンに準拠する */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Manrope:wght@500;700;800&display=swap');

:root {
  --bg-gradient-purple: #724aab;
  --bg-gradient-blue: #3967b3;
  --bg-deep-navy-purple: #12132c;
  --bg-deep-navy-blue: #030b1c;
  --bg-deepest: #010610;

  --cream: #f8f5ee;
  --cream-soft: #f1eadc;
  --cream-bright: #fbf4e6;

  --accent-yellow: #e8c552;

  --font-heading: 'Fredoka', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-body: 'Manrope', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--cream);
  background: linear-gradient(
    160deg,
    var(--bg-deep-navy-purple) 0%,
    var(--bg-deep-navy-blue) 55%,
    var(--bg-deepest) 100%
  );
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent-yellow);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー（全ページ共通ナビ） */
.site-header {
  padding: 20px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
}

.brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--cream-bright);
}

.brand:hover {
  text-decoration: none;
}

nav.site-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

nav.site-nav a {
  color: var(--cream-soft);
  opacity: 0.85;
}

nav.site-nav a:hover {
  opacity: 1;
  color: var(--accent-yellow);
}

/* ヒーロー（トップページのみ） */
.hero {
  text-align: center;
  padding: 56px 0 40px;
  background: linear-gradient(
    135deg,
    var(--bg-gradient-purple) 0%,
    var(--bg-gradient-blue) 100%
  );
  border-radius: 0 0 28px 28px;
}

.hero .logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 40px);
  color: var(--cream-bright);
  margin: 0 0 10px;
}

.hero p.tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(18px, 4vw, 22px);
  color: var(--cream);
  margin: 0 0 6px;
}

.hero p.desc {
  font-size: 15px;
  color: var(--cream-soft);
  opacity: 0.9;
  max-width: 480px;
  margin: 12px auto 0;
}

/* 本文セクション */
main {
  padding: 40px 0 60px;
}

section {
  margin-bottom: 40px;
}

h2,
h1.legal-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  color: var(--cream-bright);
  margin: 0 0 14px;
}

h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--accent-yellow);
  margin: 24px 0 8px;
}

p {
  font-size: 15px;
  color: var(--cream-soft);
  margin: 0 0 14px;
}

.updated {
  font-size: 12px;
  color: var(--cream-soft);
  opacity: 0.6;
  margin-bottom: 24px;
}

.legal-section {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(248, 245, 238, 0.08);
  margin-bottom: 18px;
}

.legal-section:last-child {
  border-bottom: none;
}

.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--accent-yellow);
  color: var(--bg-deepest);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

/* フッター（全ページ共通） */
footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(248, 245, 238, 0.08);
}

footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

footer nav {
  display: flex;
  gap: 16px;
  font-size: 13px;
  flex-wrap: wrap;
  justify-content: center;
}

footer nav a {
  color: var(--cream-soft);
  opacity: 0.85;
}

.attribution,
.copyright {
  font-size: 12px;
  color: var(--cream-soft);
  opacity: 0.55;
}

@media (min-width: 640px) {
  .hero {
    padding: 72px 0 56px;
  }
}
