/* CSS変数（グローバルスタイル） */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-header-blue: #1976d2;
  --bg-button-primary: #4CAF50;
  --bg-button-primary-hover: #45a049;
  --text-primary: #000051;
  --text-secondary: #666;
  --text-inverse: #ffffff;
  --border-color: #ccc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'M PLUS 1', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ヘッダー */
.header {
  padding: 0.75rem 2rem;
  background-color: var(--bg-header-blue);
  color: var(--text-inverse);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-title {
  font-size: 1.3rem;
  font-weight: bold;
}

.header-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-nav a {
  color: var(--text-inverse);
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.25s;
}

.header-nav a:hover {
  opacity: 0.8;
}

.header-btn-wrapper {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-donation-btn {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  font-weight: normal;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.header-donation-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.header-btn {
  padding: 0.5rem 1.5rem;
  background-color: var(--bg-button-primary);
  color: var(--text-inverse);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.header-btn:hover {
  background-color: var(--bg-button-primary-hover);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
  transform: translateY(-2px);
}

.header-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* メインコンテンツ */
.main-content {
  flex: 1;
  padding: 0;
  padding-top: 70px; /* ヘッダーの高さ分のパディング */
  padding-bottom: 80px; /* フッターの高さ分のパディング */
}

.container {
  max-width: 100%;
  margin: 0;
  width: 100%;
}

/* フッター */
.footer {
  padding: 0.75rem 2rem;
  background-color: var(--bg-header-blue);
  color: var(--text-inverse);
  text-align: center;
  font-size: 0.85rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.footer-links {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-inverse);
  text-decoration: none;
  margin: 0 1rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-btn {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  font-weight: normal;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* ボタン共通スタイル */
.btn-primary {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  background-color: var(--bg-button-primary);
  color: var(--text-inverse);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.25s;
}

.btn-primary:hover {
  background-color: var(--bg-button-primary-hover);
}

.btn-container {
  margin-top: 2rem;
  text-align: center;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }
  
  .header-title {
    font-size: 1rem;
  }
  
  .header-nav {
    position: static;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
  
  .header-nav a {
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  .header-btn-wrapper {
    margin-left: 0;
    width: 100%;
    text-align: center;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
  }
  
  .header-btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
    background-color: #388e3c;
  }
  
  .header-donation-btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    background-color: #ffffff;
    color: #1976d2;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
  }
  
  .main-content {
    padding-bottom: 0;
  }
  
  .footer {
    position: relative;
  }
  
  .footer-links a {
    display: inline-block;
    padding: 0.75rem 1rem;
    min-height: 48px;
    min-width: 48px;
    line-height: 1.5;
    margin: 0.5rem;
    text-align: center;
  }
}
