body {
  font-family: sans-serif;
  text-align: center;
  background: #fafafa;
  margin: 0;
}

.slideshow-container {
  width: 100%;
  max-width: 1200px;
  position: relative;
  margin: auto;
  overflow: hidden;
}

.slideshow {
  display: flex;
  transition: transform 1s ease-in-out;
}

.slide {
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(255, 255, 255);
  text-align: center;
  text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.7);
  z-index: 10;
  font-size: 1.3vw;
  opacity: 0; /* テキストはデフォルトで非表示 */
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.slide.active .text-overlay {
  transform: translate(-50%, -50%);
  animation: fadeIn 1s ease-out forwards;
  animation-delay: 0.5s;
}

.slide-link {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  transition: opacity 0.3s ease;
}

.slide-link:hover {
  opacity: 0.8;
}

.slide-link img {
  width: 35px;
  height: auto;
  border-radius: 7px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 以下、mainコンテンツのスタイル (変更なし) */
main { padding: 20px; }
.categories { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.card { border: 1px solid #ddd; padding: 10px; max-width: 300px; }
.btn {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  margin-top: 15px;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.btn:hover { background-color: #0056b3; }
footer { margin-top: 40px; }


.card img {
  width: 100%;
  height: auto;
  display: block;
}
.app-icon {
  max-height: 180px;  /* 👈 画像の最大の高さを指定（この数値は調整してください） */
  width: auto;       /* 縦横比を保つ */
  object-fit: contain; /* 画像が枠内に収まるように調整 */
}

/* LP全体の基本設定 */
.lp-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.7;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
}

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

/* ヘッダー */
.lp-header {
  background-color: #fff;
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
  text-align: center;
}
.lp-header h1 {
  margin: 0;
  font-size: 24px;
  color: #2c3e50;
}
.lp-header p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #555;
}

/* ヒーローセクション */
.lp-hero {
  text-align: center;
  padding: 60px 20px;
  background-color: #ffffff;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.lp-hero h1 {
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 20px;
}
.lp-hero p {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 30px;
}
.lp-hero-image {
  max-width: 200px;
  margin-top: 30px;
  border-radius: 20px; /* アイコンの形に合わせて調整 */
}

/* Appleストアボタン (仮) */
.lp-apple-btn {
  display: inline-block;
  background-color: #007aff;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s;
}
.lp-apple-btn:hover {
  background-color: #005ecb;
}

/* 悩みセクション */
.lp-problem {
  background: #fff;
  padding: 40px;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.lp-problem h2 {
  text-align: center;
  margin-top: 0;
}
.lp-problem ul {
  list-style-type: '✅'; /* チェックマーク */
  padding-left: 20px;
  max-width: 500px;
  margin: 30px auto;
}
.lp-problem ul li {
  padding-left: 10px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.lp-solution {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #007aff;
  margin-top: 30px;
}

/* 機能紹介セクション */
.lp-features {
  margin-top: 30px;
}
.lp-features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
}
.lp-feature-item {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  gap: 30px; /* 画像とテキストの間隔 */
}
.lp-feature-item.reverse {
  flex-direction: row-reverse; /* 交互配置 */
}
.lp-feature-item img {
  width: 250px; /* スクリーンショットのサイズ */
  height: auto;
  border: 1px solid #ddd;
  border-radius: 10px;
  flex-shrink: 0; /* 画像が縮まないように */
}
.lp-feature-item h3 {
  font-size: 1.5rem;
  color: #007aff;
  margin-top: 0;
}

/* CTAセクション */
.lp-cta {
  background: #2c3e50;
  color: #ffffff;
  text-align: center;
  padding: 60px 30px;
  border-radius: 10px;
  margin-top: 30px;
}
.lp-cta h2 {
  font-size: 1.8rem;
  margin-top: 0;
}
.lp-cta p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}
.lp-cta .lp-apple-btn {
  background-color: #fff;
  color: #007aff;
}
.lp-cta .lp-apple-btn:hover {
  background-color: #eee;
}

/* フッター */
.lp-footer {
  text-align: center;
  padding: 40px 20px;
  margin-top: 30px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #777;
}
.lp-footer nav {
  margin-bottom: 15px;
}
.lp-footer nav a {
  color: #555;
  text-decoration: none;
  margin: 0 10px;
}
.lp-footer nav a:hover {
  text-decoration: underline;
}

/* モバイル対応 (レスポンシブ) */
@media (max-width: 768px) {
  .lp-hero h1 {
      font-size: 1.8rem;
  }
  .lp-feature-item,
  .lp-feature-item.reverse {
      flex-direction: column; /* 縦積みにする */
      text-align: center;
  }
  .lp-feature-item img {
      width: 100%;
      max-width: 250px; /* スマホでも大きすぎないように */
      margin-bottom: 20px;
  }
}
.card img.app-icon {
  max-height: 180px;  /* 高さを制限 */
  width: auto;       /* 横幅は自動 */
  object-fit: contain; /* アスペクト比を保ったまま枠内に収める */
  margin-left: auto;   /* 中央寄せ */
  margin-right: auto;  /* 中央寄せ */
}