/* 基本設定 */
:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --secondary: #0ea5e9;
  --surface: #f5f7fb;
  --border: #e5e7eb;
  --success: #16a34a;
  --error: #dc2626;
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
.muted { color: var(--muted); }

.container {
  width: 100%;
  max-width: 1080px;
  padding: 0 16px;
  margin: 0 auto;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.logo { width: 28px; height: 28px; }
.brand-name { font-weight: 700; font-size: 18px; color: var(--text); }

.site-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  padding: 10px 8px;
  border-radius: 6px;
  color: var(--text);
}
.site-nav a.active { color: var(--primary); font-weight: 600; }
.site-nav a:hover { background: var(--surface); }

/* ヒーロー */
.hero {
  background: linear-gradient(135deg, #e0f2fe 0%, #f5f7fb 60%);
  padding: 64px 0 48px;
}
.hero h1 { font-size: 32px; margin: 0 0 12px; }
.hero .subhead { color: var(--muted); font-size: 16px; max-width: 720px; }
.hero-actions { display: flex; gap: 12px; margin-top: 16px; }

/* セクション */
.section { padding: 40px 0; }
.section.alt { background: var(--surface); }
.page-header { padding: 40px 0 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
.page-header h1 { margin: 0 0 8px; }

/* グリッドとカード */
.grid-2, .grid-3 {
  display: grid;
  gap: 16px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.card h3 { margin-top: 0; }

/* フロー */
.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-left: 20px;
}
.flow li { margin-bottom: 4px; }

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--surface); }

/* リスクリスト */
.risk-list {
  padding-left: 20px;
}
.risk-list li { margin-bottom: 6px; }

/* フォーム */
.form { max-width: 720px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: inline-block; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.2);
}
.error { color: var(--error); min-height: 1em; display: block; }
.form-actions { margin-top: 8px; }
.form-note { color: var(--muted); font-size: 14px; }
.notice {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.notice a { font-weight: 700; }

/* フッター */
.site-footer { border-top: 1px solid var(--border); margin-top: 20px; }
.footer-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  padding: 20px 0;
}
.footer-brand p { color: var(--muted); margin-top: 8px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-meta { padding: 0 0 20px; color: var(--muted); }

/* 教育警告バナー */
.edu-notice {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: #78350f;
  margin-bottom: 16px;
}

/* 参考引用カード */
.ref-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  background: #fff;
  margin-top: 12px;
}
.ref-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--text);
}
.ref-card ul {
  margin: 0;
  padding-left: 20px;
}

/* レスポンシブ */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}

/* =========================================
   新規追加スタイル (信頼性向上・運営感演出)
   ========================================= */

/* ニュースセクション */
.news-section {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.news-wrap {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.news-label {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
}
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.news-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  align-items: baseline;
}
.news-list time {
  font-family: monospace;
  color: var(--muted);
  font-size: 14px;
  min-width: 90px;
}
.news-list a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
}
.news-list a:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

/* ニュースレター */
.newsletter {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 60px 0;
}
.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}
.newsletter h3 {
  margin-top: 0;
  font-size: 24px;
}
.newsletter p {
  color: var(--muted);
  margin-bottom: 24px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
}
.newsletter-disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  display: block;
}

/* プロフィールカード (運営者情報) */
.profile-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}
.profile-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.profile-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.profile-info p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* 免責事項ボックス (強調) */
.disclaimer-box {
  border: 1px solid var(--border);
  background: #fffbeb; /* 薄い黄色 */
  padding: 20px;
  border-radius: 8px;
  margin: 24px 0;
  border-left: 4px solid #f59e0b;
}
.disclaimer-box h3 {
  margin-top: 0;
  color: #92400e;
  font-size: 18px;
}
.disclaimer-box p {
  margin-bottom: 0;
  color: #78350f;
  font-size: 15px;
}

/* クッキー同意バナー */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--border);
  padding: 16px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  backdrop-filter: blur(4px);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-text {
  max-width: 800px;
  color: var(--text);
}
.cookie-btn {
  background: var(--text);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}
.cookie-btn:hover {
  background: #000;
}

/* レスポンシブ調整 */
@media (max-width: 600px) {
  .news-wrap {
    flex-direction: column;
    gap: 8px;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .profile-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
