/* ベースのスタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --logo-color: #1f4f96 ; /* ロゴカラー */
  --primary-color: #2459a9; /* メインカラー - より明るい青 */
  --secondary-color: #265daf; /* アクセントカラー - 鮮やかな青 */
  --gradient-start: #1f4f96; /* グラデーション開始色 */
  --gradient-end: #537dbd; /* グラデーション終了色 - 明るい水色 */
  --text-color: #333;
  --light-text: #fff;
  --bg-light: #f8f9fa;
  --bg-white: #fff;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

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

/* ヘッダー */
header {
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px; 
  margin: 0 auto;
  padding: 15px 20px; 
  width: 100%;
}

/* ロゴ画像のスタイル */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 60px; /* ロゴの右マージンを追加 */
  margin-left: 50px;
}

.logo-image {
  height: 32px; 
  width: auto; /* 縦横比を保持 */
  transition: opacity 0.3s ease;
}

.logo:hover .logo-image {
  opacity: 0.8;
}

/* 本家サイトに合わせたロゴサイズ調整 */
@media (max-width: 768px) {
  .logo-image {
    height: 20px; /* スマホ時は3分の1サイズ（30px → 20px） */
  }
  
  .logo {
    margin-right: 20px; /* モバイル時はマージンを小さく */
    margin-left: 15px; /* モバイル時は左マージンも調整 */
  }
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 50px; /* 間隔を広げる */
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 15px; /* フォントサイズを少し大きく */
  font-weight: 500;
  transition: color 0.3s;
  padding: 8px 0; /* パディングを増やす */
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

.search-box {
  display: flex;
  align-items: center;
  margin: 0 20px; /* マージンを増やす */
  border: 1px solid var(--border-color);
  border-radius: 25px; /* 角を少し丸く */
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.search-box:focus-within {
  box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.2);
}

.search-box input {
  padding: 10px 15px; /* パディングを増やす */
  border: none;
  outline: none;
  font-size: 14px; /* フォントサイズを大きく */
  width: 200px; /* 幅を広げる */
  border-radius: 25px 0 0 25px;
}

.search-box button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 15px; /* パディングを増やす */
  cursor: pointer;
  border-radius: 0 25px 25px 0;
  transition: background-color 0.3s;
}

.search-box button:hover {
  background: var(--secondary-color);
}

/* ヒーローセクション */
.hero {
  position: relative;
  height: 400px;
  color: white;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1.05);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}

.hero-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 20px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* フィルターセクション */
.filter-section {
  max-width: 1200px;
  margin: 40px auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow-color);
  padding: 20px;
  position: relative;
  top: -50px;
  z-index: 10;
}

/* タブ */
.tabs {
  display: flex;
  margin-bottom: 20px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tab {
  padding: 12px 20px;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 16px;
  flex: 1;
  text-align: center;
  transition: all 0.3s;
  font-weight: 500;
}

.tab.active {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  box-shadow: 0 2px 10px rgba(0, 120, 215, 0.3);
}

.tab:hover:not(.active) {
  background: #e8e8e8;
}

/* フィルターコンテナの共通スタイル */
.filter-container {
  background: var(--bg-light);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  display: none; /* 初期状態では非表示 */
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.filter-heading {
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 16px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-item {
  display: inline-block;
  padding: 8px 16px;
  background: white;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.filter-item:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-item.active {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  border-color: transparent;
}

/* 納入実績一覧 */
.delivery-records {
  max-width: 1200px;
  margin: 20px auto 60px;
  padding: 0 20px;
}

.delivery-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  position: relative;
}

.delivery-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.record-item {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  margin-bottom: 30px;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.record-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.record-images-container {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 200px;
}

.record-images {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
  height: 100%;
  scroll-snap-type: x mandatory; /* 追加: スクロールスナップを適用 */
}

.record-images::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.record-image-wrapper {
  flex: 0 0 100%;
  position: relative;
  height: 100%;
  scroll-snap-align: center; /* 追加: スクロール時に中央に配置 */
}

.record-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

/* 修正: ホバー時のみ適用する効果を画像のみに制限 */
.record-images-container:hover .record-image {
  transform: scale(1.05);
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 15px 15px 10px;
  font-size: 14px;
  /* 常に表示 */
  transform: translateY(0) !important; 
  transition: none; /* 修正: トランジション効果を削除 */
  z-index: 3; /* 重なり順序を確保するため追加 */
}

/* スマホ表示時のキャプション */
@media (max-width: 768px) {
  .image-caption {
    padding: 10px;
    font-size: 12px;
  }
}

.scroll-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
  z-index: 4; /* キャプションより上に表示 */
}

.scroll-arrow {
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.record-images-container:hover .scroll-arrow {
  opacity: 1;
}

.scroll-arrow:hover {
  background: white;
  transform: scale(1.1);
}

.record-info {
  padding: 20px;
}

.record-client {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.record-details {
  font-size: 14px;
  color: #666;
}

.record-detail {
  margin-bottom: 8px;
  display: flex;
  align-items: center; 
  flex-wrap: wrap; 
}

.video-link {
  display: inline-block;
  padding: 1px 6px;
  background: #ff0000e9; /* YouTube赤色 */
  color: white !important;
  border-radius: 15px;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.3s;
  vertical-align: middle;
  margin-top: 6px;
  cursor: pointer;
}

.video-link:hover {
  background: #cc00009a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.video-link i {
  margin-right: 5px;
}

.record-detail.description {
  display: block;
}

.record-detail span:first-child {
  font-weight: bold;
  margin-right: 3px;
  color: #555;
  flex-shrink: 0;
  min-width: 40px;
  display: inline-block; 
  align-self: flex-start; 
  padding-top: 3px; 
}

/* キーワードボタンのスタイル修正 */
.record-keywords,
.modal-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* キーワードボタンだけにスタイルを適用する */
.record-keywords span,
.modal-keywords span,
.record-keyword,
.modal-keyword {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: auto;
  margin-right: 5px;
  margin-bottom: 5px;
  padding: 3px 10px;
  background: #f0f0f0;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold; 
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  width: fit-content;
}

.record-keywords span:hover,
.modal-keywords span:hover,
.record-keyword:hover,
.modal-keyword:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.record-worksize,
.modal-worksize,
.record-product,
.modal-product {
  display: inline-block;
  font-weight: normal;
  margin-right: 5px;
  margin-bottom: 5px;
  padding: 3px 3px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

/* インディケーター */
.image-indicators {
  display: flex;
  justify-content: center;
  margin: 15px 0 5px;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ddd;
  margin: 0 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.indicator.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.indicator:hover:not(.active) {
  background-color: #bbb;
}

/* 検索結果なしメッセージ */
.no-results {
  text-align: center;
  padding: 60px 0;
  font-size: 18px;
  color: #666;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-top: 30px;
}

.no-results i {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 20px;
  display: block;
}

/* モーダルウィンドウのスタイル */
.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.85);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  position: relative;
  margin: 5% auto;
  padding: 25px;
  width: 90%;
  max-width: 1000px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #333;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close:hover {
  color: var(--primary-color);
  background-color: rgba(0, 0, 0, 0.05);
}

.modal-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-images {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  height: 450px;
  background-color: #f5f5f5;
  scroll-snap-type: x mandatory; /* 追加: スクロールスナップを適用 */
}

.modal-images::-webkit-scrollbar {
  height: 6px;
}

.modal-images::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.modal-images::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.modal-image-wrapper {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  scroll-snap-align: center; /* 追加: スクロール時に中央に配置 */
}

.modal-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.modal-image {
  max-width: 95%;
  max-height: 420px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.modal-image:hover {
  transform: scale(1.02);
}

.modal-caption {
  text-align: center;
  padding: 15px 0;
  font-size: 16px;
  color: var(--text-color);
  font-weight: 500;
}

.modal-scroll-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  pointer-events: none;
  z-index: 2;
}

.modal-scroll-arrow {
  background: white;
  color: var(--primary-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.modal-scroll-arrow:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.modal-indicators {
  display: flex;
  justify-content: center;
  margin: 15px 0;
  flex-wrap: wrap;
}

.modal-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 4px 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-indicator.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.modal-indicator:hover:not(.active) {
  background-color: #999;
}

.modal-info {
  margin-top: 20px;
  padding: 20px;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
  border-radius: 0 0 6px 6px;
}

.modal-info h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: var(--primary-color);
}

/* 動画モーダルのスタイル追加 */
.video-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.show {
  opacity: 1;
}

.video-modal-content {
  position: relative;
  margin: 3% auto;
  width: 90%;
  max-width: 900px;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.video-modal.show .video-modal-content {
  transform: scale(1);
}

.video-close {
  position: absolute;
  top: -50px;
  right: 0px;
  color: white;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: all 0.3s;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.video-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9のアスペクト比 */
  height: 0;
  overflow: hidden;
}

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

.video-title {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

/* フッター */
footer {
  background: linear-gradient(135deg, #0a1930, #203a60);
  padding: 60px 0 30px;
  margin-top: 80px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 20px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
}

.footer-title {
  color: white;
  margin-bottom: 20px;
  font-size: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: all 0.3s;
  display: inline-block;
}

.footer-section a:hover {
  color: white;
  transform: translateX(3px);
}

.copyright {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* レスポンシブ対応 */
/* スマホ表示時のヒーロー画像アスペクト比修正 */
@media (max-width: 768px) {
  .hero {
    /* 高さを調整して横長のアスペクト比を維持 */
    height: 95px; /* 高さを小さくして横長のアスペクト比を維持 */
  }
  
  .hero-bg {
    /* 画像の表示方法を修正 */
    object-fit: cover;
    object-position: center; /* 画像が中央に配置されるようにする */
    width: 100vw;
    height: auto;
  }
  
  /* ヒーローコンテンツのパディングも調整 */
  .hero-content {
    padding: 40px 20px; /* 上下のパディングを小さくする */
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px; /* モバイル時はパディングを元に戻す */
  }
  
  .nav-menu {
    margin-top: 15px;
    flex-wrap: wrap;
  }
  
  .nav-menu li {
    margin: 5px 15px 5px 0;
  }
  
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
  
  .tabs {
    flex-direction: column;
  }
  
  .tab {
    margin-bottom: 5px;
    border-radius: 4px;
  }
  
  .record-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .filter-section {
    top: -30px;
    margin-bottom: 20px;
  }

  .video-modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .video-close {
    top: -40px;
    font-size: 28px;
    width: 40px;
    height: 40px;
  }
}

/* ハンバーガーメニュースタイル */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 14px;/* 高さ */
  z-index: 101;
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

/* ナビゲーションコンテナスタイル */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* モバイル表示時のスタイル */
@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }
  
  .header-container {
    position: relative;
    padding: 15px 20px;
  }
  
  .nav-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 100;
    overflow-y: auto;
  }
  
  .nav-container.active {
    right: 0;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
    margin: 0 0 30px;
  }
  
  .nav-menu li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid #eee;
  }
  
  .nav-menu a {
    display: block;
    padding: 15px 0;
  }
  
  .language-select {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  
  /* ハンバーガーメニューがアクティブな場合のアニメーション */
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  /* スクロール禁止 */
  body.menu-open {
    overflow: hidden;
  }
  
  /* オーバーレイ */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 99;
  }
  
  .overlay.active {
    display: block;
  }
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* 表示時のアニメーション遅延を設定 */
.record-item {
  opacity: 0;
 }
 
 .record-item:nth-child(1) { animation-delay: 0.1s; }
 .record-item:nth-child(2) { animation-delay: 0.2s; }
 .record-item:nth-child(3) { animation-delay: 0.3s; }
 .record-item:nth-child(4) { animation-delay: 0.4s; }
 .record-item:nth-child(5) { animation-delay: 0.5s; }
 .record-item:nth-child(6) { animation-delay: 0.6s; }
 .record-item:nth-child(7) { animation-delay: 0.7s; }
 .record-item:nth-child(8) { animation-delay: 0.8s; }