/* スイスイ集合 - 静的サイト共通スタイル
   Flutterアプリ側のブランドカラー(lib/utils/app_theme.dart)に合わせている。
   orange: #FF7A45 / purple: #7B5CFA */
:root {
  --orange: #FF7A45;
  --orange-light: #FFA76B;
  --purple: #7B5CFA;
  --purple-deep: #5E3FD1;
  --bg: #FFF7F0;
  --card: #FFFFFF;
  --teal: #17C3B2;
  --yellow: #FFC145;
  --pink: #FF5D8F;
  --text-dark: #2D2A45;
  --text-muted: #8A85A6;
  --header-gradient: linear-gradient(135deg, var(--orange), var(--purple));
  --radius: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-dark);
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--purple-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
.site-header {
  background: var(--header-gradient);
  color: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(94, 63, 209, 0.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { text-decoration: none; opacity: 0.92; }

.nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.nav a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.92;
}
.nav a:hover { opacity: 1; text-decoration: underline; }

.nav-cta {
  background: #fff;
  color: var(--purple-deep) !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700 !important;
}
.nav-cta:hover { text-decoration: none !important; opacity: 0.9; }

/* ハンバーガー(モバイル) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--purple-deep);
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
  }
  .nav.open { display: flex; }
  .site-header { position: relative; }
}

/* ヒーローセクション */
.hero {
  background: var(--header-gradient);
  color: #fff;
  padding: 64px 0 80px;
  text-align: center;
}
.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 16px;
  font-weight: 800;
}
.hero p {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 32px;
  opacity: 0.95;
}
.btn-primary {
  display: inline-block;
  background: #fff;
  color: var(--purple-deep);
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 999px;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.15s ease;
}
.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 999px;
  margin-left: 12px;
}
.btn-secondary:hover { text-decoration: none; background: rgba(255,255,255,0.15); }

/* コンテンツセクション */
.section {
  padding: 60px 0;
}
.section h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
  font-weight: 800;
  color: var(--purple-deep);
}
.section .lead {
  color: var(--text-muted);
  margin-bottom: 36px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(94,63,209,0.08);
}
.card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--text-dark);
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(94,63,209,0.06);
}
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--header-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.step h3 { margin: 0 0 6px; color: var(--text-dark); }
.step p { margin: 0; color: var(--text-muted); }

/* FAQ アコーディオン */
.faq-item {
  background: var(--card);
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(94,63,209,0.06);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--purple);
  margin-left: 12px;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-muted);
}
.faq-item.open .faq-a { display: block; }

/* 記事系ページ(プライバシー・利用規約等) */
.legal h2 { color: var(--purple-deep); margin-top: 36px; }
.legal p, .legal li { color: var(--text-dark); }
.legal ul { padding-left: 1.4em; }
.updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* 広告枠プレースホルダ */
.ad-slot {
  background: #fff;
  border: 2px dashed #E6E1F5;
  border-radius: 16px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 32px 0;
}
.ad-slot.leaderboard { min-height: 90px; max-width: 728px; margin: 32px auto; }
.ad-slot.rectangle { min-height: 250px; max-width: 300px; margin: 32px auto; }
.ad-slot.in-article { min-height: 120px; }

/* フッター */
.site-footer {
  background: var(--text-dark);
  color: #cfc9e8;
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.footer-grid a {
  color: #cfc9e8;
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #9c95c2;
  text-align: center;
}

/* 汎用 */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
