/* SnapNote - 開発者サイト共通スタイル */

:root {
  --primary-blue: #007AFF;
  --primary-teal: #34C759;
  --gradient-start: #007AFF;
  --gradient-end: #5AC8FA;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --bg-light: #F7F9FC;
  --bg-white: #FFFFFF;
  --border-color: #E5EAF0;
  --shadow-color: rgba(0, 122, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.8;
  color: var(--text-primary);
  background: var(--bg-light);
  min-height: 100vh;
}

/* ヘッダー */
.header {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.header .app-name {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ナビゲーション */
.nav {
  background: var(--bg-white);
  padding: 1rem;
  box-shadow: 0 2px 10px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.nav-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary-blue);
}

/* 言語切替 */
.lang-switch {
  text-align: right;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.lang-switch a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--primary-blue);
  background: rgba(0, 122, 255, 0.1);
}

/* メインコンテンツ */
.main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* セクション */
.section {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px var(--shadow-color);
}

.section h2 {
  font-size: 1.25rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.section h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
}

.section p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.section ul,
.section ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.section li {
  margin-bottom: 0.5rem;
}

/* 日付表示 */
.date {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* アプリ紹介カード */
.app-card {
  text-align: center;
  padding: 2rem;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 122, 255, 0.3);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* 機能リスト */
.feature-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 12px;
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 0.9rem;
  margin: 0;
}

/* FAQ */
.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.faq-question::before {
  content: 'Q.';
  color: var(--primary-blue);
  font-weight: 700;
}

.faq-answer {
  color: var(--text-secondary);
  padding-left: 1.5rem;
}

.faq-answer::before {
  content: 'A.';
  color: var(--primary-teal);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* お問い合わせ */
.contact-box {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  background: var(--bg-white);
  border-radius: 8px;
  margin-top: 1rem;
  transition: box-shadow 0.2s ease;
}

.contact-email:hover {
  box-shadow: 0 4px 15px var(--shadow-color);
}

/* フッター */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--primary-blue);
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  margin: 0 0.75rem;
}

/* 注意書き */
.notice {
  background: #E8F4FD;
  border-left: 4px solid var(--primary-blue);
  padding: 1rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
}

.notice p {
  color: #0D47A1;
  margin: 0;
  font-size: 0.9rem;
}

/* レスポンシブ */
@media (max-width: 600px) {
  .header {
    padding: 1.5rem 1rem;
  }

  .header h1 {
    font-size: 1.25rem;
  }

  .nav-list {
    gap: 0.5rem 1rem;
  }

  .section {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .section h2 {
    font-size: 1.1rem;
  }

  .app-icon {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
}
