/* 基本リセットと共通スタイル */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f9fa;
}

/* 共通ヘッダー */
header {
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ヘッダーナビゲーション */
.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: #495057;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap; /* 文字の途中で意図しない改行を防ぐ */
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #1c7ed6;
}

.app-title-group {
  display: flex;
  align-items: center;
  gap: 12px; /* 全角スペースを使わずCSSで余白を作る */
}

/* モバイル表示時のスタイル調整 */
@media (max-width: 600px) {

  header {
    flex-direction: column; /* 上下に並べる */
    align-items: flex-start; /* 左寄せ */
    gap: 12px;
    padding: 10px 14px;
  }

  .app-title-group {
    width: 100%;
    gap: 8px;
  }

  .header-nav {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px; /* お問い合わせとボタンの間の余白 */
  }

  .nav-link {
    font-size: 0.8rem; /* スマホでは少し文字サイズを調整 */
    margin-left: auto; /* 左側に自動余白を入れて「お問い合わせ」を右寄せにする */
  }
}

/* ヒーローセクション内の正方形サムネイル画像装飾 */
.hero-thumbnail {
  margin: 20px auto 24px auto;
  display: flex;
  justify-content: center;
}

.hero-thumbnail img {
  width: 276px;
  height: 276px;
  object-fit: cover; /* 画像が歪まないように収める */
  border-radius: 14px; /* 軽めの角丸でおしゃれに */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* うっすら影を落として存在感を出す */
  border: 1px solid #e9ecef;
  max-width: 100%; /* スマホなど極端に狭い画面でもはみ出さない */
}

/* 本文内のインラインリンク */
.inline-link {
  color: #1c7ed6;
  text-decoration: underline;
  font-weight: 600;
}

.inline-link:hover {
  color: #155cb0;
}

h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a252c;
}

.badge {
  background: #e7f5ff;
  color: #1c7ed6;
  font-size: 0.75rem;
  padding: 2px 8px;
  font-weight: 600;
}

/* アプリ起動ボタン（共通CTA） */
.btn-primary {
  display: inline-block;
  background: #1c7ed6;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background: #155cb0;
}

/* === LP（index.html）用スタイル === */
.hero-section {
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
  padding: 60px 20px;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #1a252c;
}

.hero-sub {
  font-size: 1.1rem;
  color: #495057;
  margin-bottom: 28px;
}

.content-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}

h2 {
  font-size: 1.4rem;
  border-bottom: 2px solid #1c7ed6;
  padding-bottom: 8px;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #212529;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.feature-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid #e9ecef;
}

.feature-card h3 {
  font-size: 1.1rem;
  color: #1c7ed6;
  margin-bottom: 8px;
}

/* 共通フッター */
footer {
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  color: #868e96;
  background: #ffffff;
  border-top: 1px solid #e9ecef;
  margin-top: 60px;
}

/* フッターリンク群 */
.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  padding: 0;
}

.footer-links li a {
  color: #495057;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links li a:hover {
  color: #1c7ed6;
  text-decoration: underline;
}
