/* ========================================
   リセットCSS
   ======================================== */

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

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN',
    'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ========================================
   CSS変数（カラーパレット）
   ======================================== */

:root {
  /* プライマリカラー（緑色系 - モバイルアプリと統一） */
  --primary-color: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #4caf50;

  /* セカンダリカラー（オレンジ系 - モバイルアプリと統一） */
  --secondary-color: #ff9800;
  --secondary-dark: #e65100;
  --secondary-light: #ffb74d;

  /* テキストカラー */
  --text-primary: #212121;
  --text-secondary: #666666;
  --text-light: #999999;
  --text-white: #ffffff;

  /* 背景カラー */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-dark: #1b5e20;

  /* ボーダーカラー */
  --border-color: #e0e0e0;

  /* シャドウ */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ========================================
   タイポグラフィ
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* ========================================
   共通レイアウト
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* ========================================
   ヘッダー
   ======================================== */

header {
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-primary);
  font-weight: 500;
}

nav a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* ========================================
   フッター
   ======================================== */

footer {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 3rem 0 1rem;
}

footer a {
  color: var(--text-white);
}

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

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-copyright {
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ========================================
   ボタン
   ======================================== */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-white);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
  text-decoration: none;
}

/* ========================================
   カード
   ======================================== */

.card {
  background-color: var(--bg-primary);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

/* タブレット */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  nav ul {
    gap: 1rem;
  }

  .footer-nav {
    gap: 1rem;
  }
}

/* モバイル */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .section {
    padding: 2rem 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* ========================================
   アクセシビリティ
   ======================================== */

/* スキップリンク */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--text-white);
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* フォーカス表示 */
a:focus,
button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --border-color: #000000;
  }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-light: #808080;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --border-color: #404040;
  }
}

/* ========================================
   ランディングページ専用スタイル
   ======================================== */

/* ヒーローセクション */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  color: var(--text-white);
  padding: 6rem 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

/* 機能紹介セクション */
.features {
  background-color: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 50px;
  height: 50px;
  margin: 0 auto;
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* スクリーンショットセクション */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.screenshot-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.screenshot-item:hover {
  transform: scale(1.05);
}

.screenshot-item img {
  width: 100%;
  height: auto;
}

/* ダウンロードセクション */
.download {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: var(--text-white);
  text-align: center;
}

.download-description {
  font-size: 1.25rem;
  margin-bottom: 3rem;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.download-badge img {
  height: 60px;
  width: auto;
}

.download-qr p {
  font-size: 1rem;
  opacity: 0.9;
}

/* レスポンシブ: タブレット */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* レスポンシブ: モバイル */
@media (max-width: 480px) {
  .hero {
    padding: 4rem 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .download-badge img {
    height: 50px;
  }
}

/* ========================================
   ドキュメントページ専用スタイル
   ======================================== */

.document-page {
  padding: 4rem 0;
  background-color: var(--bg-secondary);
}

.document-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-primary);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.document-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}

.document-header h1 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.document-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.document-content section {
  margin-bottom: 3rem;
}

.document-content h2 {
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.document-content h3 {
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.document-content ul,
.document-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.document-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.document-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.document-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.document-content a:hover {
  color: var(--primary-dark);
}

/* 情報リスト */
.info-list {
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.info-list dt {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.info-list dd {
  margin-left: 0;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.info-list dd:last-child {
  margin-bottom: 0;
}

/* 注記 */
.note {
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--secondary-color);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

/* レスポンシブ: タブレット */
@media (max-width: 768px) {
  .document-content {
    padding: 2rem;
  }

  .document-content ul,
  .document-content ol {
    margin-left: 1.5rem;
  }
}

/* レスポンシブ: モバイル */
@media (max-width: 480px) {
  .document-page {
    padding: 2rem 0;
  }

  .document-content {
    padding: 1.5rem;
  }

  .document-header {
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
  }

  .document-content h2 {
    font-size: 1.5rem;
  }

  .document-content ul,
  .document-content ol {
    margin-left: 1rem;
  }
}

/* ========================================
   FAQ専用スタイル
   ======================================== */

.faq-section {
  margin-bottom: 3rem;
}

.faq-section h3 {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.faq-item {
  background-color: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
}

.faq-item h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.faq-item p {
  margin-bottom: 0.5rem;
}

.faq-item ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.faq-item li {
  margin-bottom: 0.25rem;
}

/* レスポンシブ: モバイル */
@media (max-width: 480px) {
  .faq-item {
    padding: 1rem;
  }
}

/* ========================================
   お問い合わせページ専用スタイル
   ======================================== */

.contact-info {
  font-size: 1.125rem;
}

.email-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.email-link:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.example-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-family: monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.example-box p {
  margin-bottom: 0.5rem;
}

.example-box strong {
  color: var(--primary-color);
}

/* レスポンシブ: モバイル */
@media (max-width: 480px) {
  .email-link {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
  }

  .example-box {
    padding: 1rem;
    font-size: 0.8125rem;
  }
}
