/* 全体のコンテナを最大幅に設定 */
body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  font-family: 'Arial', sans-serif;
}

/* ヘッダーのスタイル */
header {
  width: 100%;
  background: url('images/header.png') center center no-repeat;
  background-size: cover;
  padding: 0 0 20px;
  color: white;
  text-align: center;
  position: relative;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 470px;
  box-sizing: border-box;
}

.header-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* メニューバーのスタイル */
nav {
  width: 100%;
  background-color: #FF69B4;
  position: relative;
  z-index: 999;
  box-sizing: border-box;
}

nav ul.menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  border-radius: 0;
  justify-content: center;
  width: 100%;
  background-color: #FF69B4;
  box-sizing: border-box;
}

nav ul.menu li a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

nav ul.menu li a:hover {
  background-color: #FF1493;
  color: white;
}

/* コンテンツエリアのスタイル */
section.section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 20px 40px;
  box-sizing: border-box;
  background-color: #f9f9f9;
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h1 {
  font-size: 2.5em;
  color: #333;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 1.2em;
  color: #666;
}

/* カードレイアウト */
/* カードレイアウト */
.card-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr)); /* 横3列表示 */
  gap: 20px;
  justify-content: center;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h2 {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 10px;
}

.card-content p {
  font-size: 1em;
  color: #666;
}

/* 機能カード */
.feature-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-content: center;
}

.feature-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  min-width: 250px;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.feature-card h2 {
  font-size: 1.4em;
  color: #333;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 1em;
  color: #666;
}

/* スクリーンショットカード */
.screenshot-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 20px;
  justify-content: center;
}

.screenshot-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.screenshot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.screenshot-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
  cursor: pointer;
}

.screenshot-content {
  padding: 20px;
}

.screenshot-content h3 {
  font-size: 1.3em;
  color: #333;
  margin-bottom: 10px;
}

.screenshot-content p {
  font-size: 1em;
  color: #666;
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  animation: scaleIn 0.3s ease-in-out;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.modal-close:hover {
  color: #FF69B4;
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* CTAボタン */
.cta-button {
  text-align: center;
  margin: 40px 0;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #FF69B4;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
  background-color: #FF1493;
  transform: scale(1.05);
}

/* 動画カード */
.video-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* フッターのスタイル */
footer {
  width: 100%;
  text-align: center;
  padding: 20px 0;
  background-color: #FF69B4;
  color: white;
  box-sizing: border-box;
  margin-top: 50px;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
  .feature-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .screenshot-container {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  header {
    padding: 0 0 20px;
    height: 250px;
  }

  nav ul.menu {
    flex-direction: column;
    padding: 10px 0;
  }

  nav ul.menu li {
    text-align: center;
    padding: 10px 0;
  }

  section.section {
    padding: 420px 15px 40px;
  }

  .section-header h1 {
    font-size: 2em;
  }

  .section-header p {
    font-size: 1em;
  }

  .card-container, .feature-container, .screenshot-container {
    grid-template-columns: 1fr;
  }

  .screenshot-img {
    max-width: 100%;
  }

  .video-card {
    max-width: 100%;
  }

  .btn {
    padding: 10px 20px;
    font-size: 1em;
  }

  .modal-content {
    max-width: 95%;
    max-height: 95%;
  }
}

/* フェードインアニメーション */
.card, .feature-card, .screenshot-card, .video-card {
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}
.card:nth-child(1), .feature-card:nth-child(1), .screenshot-card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2), .feature-card:nth-child(2), .screenshot-card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3), .feature-card:nth-child(3), .screenshot-card:nth-child(3) { animation-delay: 0.3s; }
.screenshot-card:nth-child(4) { animation-delay: 0.4s; }
.screenshot-card:nth-child(5) { animation-delay: 0.5s; }
.screenshot-card:nth-child(6) { animation-delay: 0.6s; }
.screenshot-card:nth-child(7) { animation-delay: 0.7s; }
.screenshot-card:nth-child(8) { animation-delay: 0.8s; }
.screenshot-card:nth-child(9) { animation-delay: 0.9s; }
.screenshot-card:nth-child(10) { animation-delay: 1.0s; }
.screenshot-card:nth-child(11) { animation-delay: 1.1s; }
.screenshot-card:nth-child(12) { animation-delay: 1.2s; }
.screenshot-card:nth-child(13) { animation-delay: 1.3s; }
.screenshot-card:nth-child(14) { animation-delay: 1.4s; }

/* ─── スマホ対応 ─── */
@media (max-width: 576px) {
  /* ヘッダーをしっかり表示 */
  header {
    display: block !important;
    padding: 10px 0;
  }
  .header-container {
    padding: 0 10px;
    text-align: center;
  }
  .header-image {
    display: inline-block;
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
  }

  /* セクション間の余白調整 */
  .section {
    padding: 20px 10px;  /* 上下 20px、左右 10px */
  }
  .section + .section {
    margin-top: 10px;    /* セクション同士の隙間を縮小 */
  }

  /* メニューを横スクロールバー化 */
  nav {
    position: relative;
    background: #333;
  }
  .menu {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
    white-space: nowrap;
  }
  .menu li {
    flex: 0 0 auto;
    margin-right: 1rem;
  }
  .menu a {
    display: inline-block;
    padding: 8px 12px;
    white-space: nowrap;
  }
  .menu::-webkit-scrollbar {
    height: 4px;
  }
  .menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
  }
}



.feature-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  /* 画面幅に対して左右に5vw分ずつ余白を持たせる */
  max-width: 1100px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 5vw;        /* ←ここが重要 */
  box-sizing: border-box;
}
.feature-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px #0002;
  padding: 1.5rem;
  min-width: 260px;
  max-width: 320px;
  flex: 1 1 320px;
  box-sizing: border-box;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.8em;
  color: #0078d7;
}
.feature-card p {
  font-size: 1rem;
  color: #333;
  margin: 0;
}

/* タブレット2列 */
@media (max-width: 1024px) {
  .feature-container {
    max-width: 700px;
    padding: 0 2vw;
  }
  .feature-card {
    flex: 1 1 45%;
    max-width: 48%;
  }
}
/* スマホ1列 */
@media (max-width: 700px) {
  .feature-container {
    max-width: 96vw;
    padding: 0 1vw;
  }
  .feature-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}