/* 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff; /* 全体の背景を白に */
  color: #0f1419; /* Twitter風の少し柔らかい黒文字 */
  overflow-x: hidden;
}

/* ヒーローエリア */
.hero {
  height: 40vh; /* スッキリした高さに変更 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #f7f9fa; /* Twitterの背景やタイムラインに使われる薄いグレー */
  border-bottom: 1px solid #eff3f4;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  color: #1d9bf0; /* Twitterメインブルー（水色） */
  font-weight: 800;
}

.hero p {
  color: #536471; /* Twitterのサブテキスト色（グレー） */
  font-size: 1rem;
}

.arrow {
  margin-top: 1rem;
  font-size: 1.5rem;
  color: #1d9bf0;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* タイムライン全体のコンテナ */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* 中央を貫く下向きの矢印（線） */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #cfd9de; /* Twitterのボーダー色 */
  transform: translateX(-50%);
}

/* 線の先端を矢印にする */
.timeline-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid #1d9bf0; /* 矢印の先端を水色に */
}

/* 各タイムラインの行（外枠） */
.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: 5rem;
}

/* 左側のアイテムは左寄せ */
.timeline-item.left {
  left: 0;
  padding-right: 2.5rem;
}

/* 右側のアイテムは右寄せ */
.timeline-item.right {
  left: 50%;
  padding-left: 2.5rem;
}

/* 年度のラベル (20XX年) */
.time-label {
  font-size: 1.4rem;
  font-weight: bold;
  color: #1d9bf0; /* 年代も水色で強調 */
  margin-bottom: 0.5rem;
}

/* コンテンツ（画像＋説明の並び） */
.timeline-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #ffffff;
  padding: 1.2rem;
  border-radius: 16px; /* Twitterのカード風に丸みを強めに */
  border: 1px solid #eff3f4; /* 枠線を薄いグレーに */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.05); /* 柔らかい陰影 */
  transition: background-color 0.2s;
}

/* ホバーした時に少しグレーにしてTwitterのクリック感を出す */
.timeline-content:hover {
  background-color: #f7f9fa;
}

.meme-image {
  flex: 1.2;
}

.meme-image img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #eff3f4;
}

.meme-desc {
  flex: 1;
}

.meme-desc h2 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #0f1419;
  font-weight: 700;
}

.meme-desc p {
  font-size: 0.9rem;
  color: #536471; /* 説明文は読みやすいグレー */
  line-height: 1.6;
}

/* ★スクロール連動アニメーションの設定 */
.timeline-item {
  view-timeline-name: --item-fade;
  view-timeline-axis: block;
  animation-timeline: --item-fade;
  animation-range: entry 10% cover 35%;
  animation-fill-mode: both;
}

/* 左側から出てくるアニメーション */
.timeline-item.left {
  animation-name: fadeInLeft;
}

/* 右側から出てくるアニメーション */
.timeline-item.right {
  animation-name: fadeInRight;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* スマホ対応：画面が狭いときは中央の線を左側に寄せて1列にする */
@media (max-width: 900px) {
  .timeline-line {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 45px !important;
    padding-right: 0 !important;
    margin-bottom: 3rem;
  }
  .timeline-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .timeline-item.right {
    animation-name: fadeInLeft;
  }
}

/* フッター */
footer {
  text-align: center;
  padding: 3rem;
  color: #536471;
  font-size: 0.9rem;
  border-top: 1px solid #eff3f4;
  background-color: #f7f9fa;
}
/* 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff; /* 全体の背景を白に */
  color: #0f1419; /* Twitter風の少し柔らかい黒文字 */
  overflow-x: hidden;
}

/* ヒーローエリア */
.hero {
  height: 40vh; /* スッキリした高さに変更 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #f7f9fa; /* Twitterの背景やタイムラインに使われる薄いグレー */
  border-bottom: 1px solid #eff3f4;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  color: #1d9bf0; /* Twitterメインブルー（水色） */
  font-weight: 800;
}

.hero p {
  color: #536471; /* Twitterのサブテキスト色（グレー） */
  font-size: 1rem;
}

.arrow {
  margin-top: 1rem;
  font-size: 1.5rem;
  color: #1d9bf0;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* タイムライン全体のコンテナ */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* 中央を貫く下向きの矢印（線） */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #cfd9de; /* Twitterのボーダー色 */
  transform: translateX(-50%);
}

/* 線の先端を矢印にする */
.timeline-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid #1d9bf0; /* 矢印の先端を水色に */
}

/* 各タイムラインの行（外枠） */
.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: 5rem;
}

/* 左側のアイテムは左寄せ */
.timeline-item.left {
  left: 0;
  padding-right: 2.5rem;
}

/* 右側のアイテムは右寄せ */
.timeline-item.right {
  left: 50%;
  padding-left: 2.5rem;
}

/* 年度のラベル (20XX年) */
.time-label {
  font-size: 1.4rem;
  font-weight: bold;
  color: #1d9bf0; /* 年代も水色で強調 */
  margin-bottom: 0.5rem;
}

/* コンテンツ（画像＋説明の並び） */
.timeline-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #ffffff;
  padding: 1.2rem;
  border-radius: 16px; /* Twitterのカード風に丸みを強めに */
  border: 1px solid #eff3f4; /* 枠線を薄いグレーに */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.05); /* 柔らかい陰影 */
  transition: background-color 0.2s;
}

/* ホバーした時に少しグレーにしてTwitterのクリック感を出す */
.timeline-content:hover {
  background-color: #f7f9fa;
}

.meme-image {
  flex: 1.2;
}

.meme-image img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #eff3f4;
}

.meme-desc {
  flex: 1;
}

.meme-desc h2 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #0f1419;
  font-weight: 700;
}

.meme-desc p {
  font-size: 0.9rem;
  color: #536471; /* 説明文は読みやすいグレー */
  line-height: 1.6;
}

/* ★スクロール連動アニメーションの設定 */
.timeline-item {
  view-timeline-name: --item-fade;
  view-timeline-axis: block;
  animation-timeline: --item-fade;
  animation-range: entry 10% cover 35%;
  animation-fill-mode: both;
}

/* 左側から出てくるアニメーション */
.timeline-item.left {
  animation-name: fadeInLeft;
}

/* 右側から出てくるアニメーション */
.timeline-item.right {
  animation-name: fadeInRight;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* スマホ対応：画面が狭いときは中央の線を左側に寄せて1列にする */
@media (max-width: 900px) {
  .timeline-line {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 45px !important;
    padding-right: 0 !important;
    margin-bottom: 3rem;
  }
  .timeline-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .timeline-item.right {
    animation-name: fadeInLeft;
  }
}

/* フッター */
footer {
  text-align: center;
  padding: 3rem;
  color: #536471;
  font-size: 0.9rem;
  border-top: 1px solid #eff3f4;
  background-color: #f7f9fa;
}
/* ==========================================
   追加：ネットミームについての説明セクション
   ========================================== */
.about-section {
  max-width: 800px; /* タイムラインより少しきゅっと引き締まった幅に */
  margin: 4rem auto 0 auto;
  padding: 0 2rem;
  
  /* スクロールアニメーション（下からふわっと出現） */
  view-timeline-name: --about-fade;
  view-timeline-axis: block;
  animation-name: fadeInUp;
  animation-timeline: --about-fade;
  animation-range: entry 10% cover 30%;
  animation-fill-mode: both;
}

.about-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid #eff3f4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 12px 32px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* 「About」の青いバッジ */
.badge {
  display: inline-block;
  background-color: #e8f5fe; /* 薄い水色 */
  color: #1d9bf0; /* Twitterブルー */
  font-size: 0.85rem;
  font-weight: bold;
  padding: 0.2rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.about-card h2 {
  font-size: 1.8rem;
  color: #0f1419;
  margin-bottom: 1.2rem;
  font-weight: 800;
}

.about-card p {
  font-size: 1rem;
  color: #536471;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-card p:last-child {
  margin-bottom: 0; /* 最後の段落の余白をリセット */
}

/* 浮き上がるアニメーションの使い回し（なければ追記） */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ==========================================
   追加：別ページへのナビゲーションボタン
   ========================================== */
.nav-section {
  max-width: 1000px;
  margin: 0 auto 6rem auto;
  padding: 0 2rem;
}

.nav-container {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #eff3f4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 12px 32px rgba(0, 0, 0, 0.05);
}

.nav-container h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f1419;
  margin-bottom: 1.5rem;
}

/* ボタンを横並びにする（スマホでは縦並び） */
.nav-buttons {
  display: flex;
  gap: 1.5rem;
}

/* ボタン自体のスタイル（Twitterのメニュー風） */
.nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background-color: #ffffff;
  border: 1px solid #cfd9de;
  border-radius: 12px;
  text-decoration: none; /* 下線を消す */
  color: #0f1419;
  transition: all 0.2s ease;
}

/* マウスを乗せたときの動き */
.nav-btn:hover {
  background-color: #f7f9fa;
  border-color: #1d9bf0; /* 枠線を水色に */
  transform: translateY(-2px); /* 少し上に浮き上がらせる */
}

.btn-icon {
  font-size: 1.8rem;
}

.btn-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.btn-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f1419;
}

/* ボタン内の説明文 */
.btn-sub {
  font-size: 0.85rem;
  color: #536471;
  margin-top: 0.2rem;
}

.btn-arrow {
  font-size: 1.2rem;
  color: #1d9bf0; /* 矢印を水色に */
  font-weight: bold;
  transition: transform 0.2s;
}

.nav-btn:hover .btn-arrow {
  transform: translateX(4px); /* ホバー時に矢印が右に動く遊び心 */
}

/* スマホ対応：画面が狭いときはボタンを縦に並べる */
@media (max-width: 768px) {
  .nav-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}