/* 
 * ホームページ用カスタムCSS
 * 「たびのしるし」- 自然の美しさをテーマにしたデザイン
 */

/* ===== カスタム変数定義 ===== */
:root {
  --primary-color: #4CAF50;      /* 明るい自然な緑 */
  --secondary-color: #EF6C00;    /* 温かい夕焼けオレンジ */
  --tertiary-color: #0277BD;     /* 清流の青 */
  --light-green: #81C784;        /* ライトグリーン */
  --sky-blue: #64B5F6;          /* 空の青 */
  --surface-color: #F7F9F7;      /* わずかに緑がかった表面色 */
  --text-primary: #2E7D32;       /* 読みやすい緑系グレー */
  --text-secondary: #388E3C;     /* 補助テキスト用 */
}

/* ===== 全体のベース設定 ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-green) 50%, var(--sky-blue) 100%);
  min-height: 100vh;
  padding-top: 0; /* fixed navbarのための余白は各セクションで個別管理 */
}

/* ===== ヘッダー ===== */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  min-height: 56px; /* ナビゲーションバーの最小高さを保証 */
}

.navbar-brand-custom {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

/* ===== ヒーローセクション ===== */
.hero-section {
  padding: 8rem 0 6rem;
  color: white;
  text-align: center;
  padding-top: calc(8rem + 80px); /* fixed-topナビゲーション分も含めた上部余白 */
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  opacity: 0.95;
}

/* ===== ボタン ===== */
.btn-primary-custom {
  background: #fff;
  color: var(--primary-color);
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: var(--primary-color);
}

.btn-outline-custom {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* ===== セクション共通 ===== */
.section-padding {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

/* ===== 機能カード ===== */
.feature-card {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-card h5 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== お知らせセクション ===== */
.news-section {
  background: var(--surface-color);
}

.news-item {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.news-date {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.news-content {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

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

.download-section .section-title {
  color: white;
}

.store-btn {
  display: inline-block;
  border-radius: 13px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}

.store-btn:hover {
  transform: scale(1.05);
}

.store-btn img {
  height: 67px;
  width: 200px;
  border-radius: 13px;
}

/* リリース前ストアボタンスタイル */
.store-btn[style*="opacity: 0.7"] {
  pointer-events: none;
}

.store-btn[style*="opacity: 0.7"]:hover {
  transform: none !important;
}

/* ===== フッター ===== */
.footer-custom {
  background: #333;
  color: white;
  padding: 2rem 0;
  text-align: center;
}

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

.footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

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

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 0 4rem;
    padding-top: calc(4rem + 80px); /* スマホのナビバー分も含めた上部余白 */
  }
  
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
  
  .navbar-brand-custom {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 3rem 0 3rem;
    padding-top: calc(3rem + 90px); /* 小画面のナビバー分も含めた上部余白 */
  }
  
  .hero-title {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    padding: 0 2rem;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding: 0 2rem;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  
  .btn-primary-custom,
  .btn-outline-custom {
    display: block;
    margin: 0.5rem auto;
    width: fit-content;
    padding: 12px 25px;
    font-size: 0.95rem;
    max-width: 90%;
  }
  
  .navbar-brand-custom {
    font-size: 1.3rem;
  }
  
  .footer-links a {
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }
}

/* 超小画面（400px-479px）対応 */
@media (max-width: 479px) and (min-width: 401px) {
  .hero-title {
    font-size: 1.3rem;
    padding: 0 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    padding: 0 1.5rem;
  }
}

/* 極小画面（320px-400px）対応 */
@media (max-width: 400px) {
  .hero-section {
    padding: 2.5rem 0 3rem;
    padding-top: calc(2.5rem + 100px); /* 極小画面のナビバー分も含めた上部余白 */
  }
  
  .hero-title {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    padding: 0 1.5rem;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.8rem;
    padding: 0 1.5rem;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  
  .btn-primary-custom,
  .btn-outline-custom {
    padding: 12px 24px;
    font-size: 0.9rem;
    margin: 0.4rem auto;
    min-height: 44px; /* タッチ操作最小サイズ */
    min-width: 120px;
  }
  
  .section-title {
    font-size: 1.8rem;
    padding: 0 1rem;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  
  .feature-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .feature-card h5 {
    font-size: 1.1rem;
  }
  
  .feature-card p {
    font-size: 0.9rem;
  }
  
  .news-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .news-title {
    font-size: 1rem;
  }
  
  .store-btn img {
    height: 50px;
    width: 150px;
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-links a {
    margin: 0.25rem 0.5rem;
    font-size: 0.85rem;
  }
}

/* 横向き画面対応 */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    padding: 1.5rem 0;
    padding-top: calc(1.5rem + 70px); /* 横向き画面のナビバー分も含めた上部余白 */
  }
  
  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
}

/* ===== アニメーション ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== Bootstrapカスタマイズ ===== */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.text-primary-custom {
  color: var(--primary-color) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}