@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* 全体のフォント設定 */
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 781px) {
  .hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url(/assets/surface.jpg) no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  .hero-content {
    width: 781px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }

  .hero-left {
    flex: 1;
    text-align: left;
    padding-right: 40px;
    z-index: 2;
  }

  .hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1;
  }

  .logo-image {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
  }

  .hero-text {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
  }

  .hero-text h1 {
    font-size: 24px;
    line-height: 1.6;
    font-weight: normal;
    margin: 0;
    letter-spacing: 0.05em;
  }

  .screenshot-image {
    width: auto;
    height: 500px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }

  .coming-soon-button {
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }

  .app-store-icon {
    margin-right: 10px;
    font-size: 16px;
  }

  .app-store-badge {
    width: 180px;
    height: auto;
    margin-top: 20px;
  }

  .app-store-link {
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .app-store-link:hover {
    transform: translateY(-2px);
  }

  /* セクション1の背景画像設定 */
  .section1 {
    position: relative;
    width: 100%;
    top: 30px; /* 16:9のアスペクト比に基づく高さ */
    background: url(/assets/surface.jpg) no-repeat center center;
    background-size: cover;
    text-align: center;
    display: flex;
    flex-direction: column; /* 子要素を縦に配置 */
    justify-content: center; /* 縦方向の中央揃え */
    align-items: center; /* 横方向の中央揃え */
    height: calc(100vw * 9 / 16);
    max-height: 100vh;
  }

  .search-container {
    margin-top: 30px;
  }

  .search-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 5px;
  }

  #creature-search {
    width: 300px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
  }

  #creature-search:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 1);
  }

  .search-button {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    background-color: #FF6600;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .search-button:hover {
    background-color: #FF8533;
    transform: translateY(-2px);
  }

  .welcome-message-container {
    width: 100%;
    max-width: 780px;
    margin: 40px auto 0;
  }

  .welcome-message {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .welcome-message p {
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    text-align: center;
  }

  .highlight {
    color: #FF6600;
    font-weight: bold;
  }

  .main-content {
    padding: 40px 0;
    background-color: #f5f5f5;
    width: 100%;
  }

  .creature-type-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 20px;
  }

  .type-link {
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
  }

  .type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100px;
    transition: all 0.3s ease;
  }

  .type-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }

  .type-item span {
    font-size: 14px;
    text-align: center;
  }

  .type-link.active .type-item {
    background-color: #FF6600;
    color: white;
  }

  .type-link:hover .type-item {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .creatures-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 8px;
    row-gap: 16px;
    width: 1400px;
    margin: 0 auto;
    padding: 0;
    justify-items: center;
    align-items: center;
  }

  .creature-card {
    width: 220px;
    height: 240px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .photo-area {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 アスペクト比 */
    background: #f0f0f0;
    overflow: hidden;
  }

  .creature-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .creature-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }

  .creature-icon img {
    width: 20px;
    height: 20px;
  }

  .info-area {
    padding: 15px;
  }

  .creature-name {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
  }

  .location-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .stat-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .location-name {
    font-size: 12px;
    color: #666;
    flex: 1;
  }

  .stat-bar-container {
    width: 100px;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
  }

  .stat-bar {
    height: 100%;
    background: #FF6600;
    border-radius: 2px;
  }

  .pagination {
    margin-top: 40px;
    text-align: center;
  }

  .page-select {
    padding: 8px 20px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
  }

  footer {
    background: #333;
    color: white;
    padding: 20px;
    text-align: center;
  }

  .social-links {
    margin-bottom: 15px;
  }

  .social-icon {
    width: 24px;
    height: 24px;
    margin: 0 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }

  .social-icon:hover {
    opacity: 1;
  }

  .default-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
  }

  .default-image img {
    display: none;
  }

  /* What's Mog-log Section */
  .what-section {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
  }

  .what-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.05), transparent);
  }

  .what-content {
    width: 781px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 0;
  }

  .what-image {
    flex: 0 0 auto;
    width: 150px;
    padding-left: 100px;
  }

  .what-image::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(173, 216, 230, 0.1) 0%, rgba(173, 216, 230, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 50%;
  }

  .moglow-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
  }

  .moglow-image:hover {
    transform: translateY(-5px);
  }

  .what-text {
    flex: 1;
    padding-right: 100px;
  }

  .what-text h2 {
    font-size: 21px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.02em;
    position: relative;
  }

  .what-text h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    border-radius: 2px;
  }

  .what-text p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #505965;
    font-weight: 400;
  }

  .what-text p:first-of-type {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
  }

  .online-link {
    margin-top: 30px;
    text-align: right;
  }

  .online-link a {
    color: #3498db;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
  }

  .online-link a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
  }

  .online-link a:hover {
    color: #2ecc71;
  }

  .online-link a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }


.logo-image {
  width: 450px; /* 画像の幅 */
  height: auto; /* 高さを自動調整 */
}

.search-input {
  display: flex;
  align-items: center;
  background-color: clear;
  border-radius: 25px;
  padding: 5px 10px;
  position: relative;
}

#creature-search {
  border: none;
  outline: none;
  flex-grow: 1;
  padding: 10px;
  border-radius: 25px;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.9);
  width: 250px;
}

.search-button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: #FF6600;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
}

.search-button:hover {
  opacity: 1;
  transform: translateY(-50%) translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.2);
}

.search-input-wrapper {
  width: 100%;
  display: flex;
  gap: 10px;
  position: relative;
}

.autocomplete-items {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: white;
  border-radius: 16px;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  z-index: 102;
  display: none;
}

.autocomplete-items div {
  cursor: pointer;
  padding: 12px 24px;
  font-size: 14px;
  color: #333;
  transition: background-color 0.2s ease;
}

.autocomplete-items div:hover {
  background-color: rgba(255, 102, 0, 0.05);
}

/* スクロールバーのスタイル */
.autocomplete-items::-webkit-scrollbar {
  width: 8px;
}

.autocomplete-items::-webkit-scrollbar-track {
  background: #F0F0F0;
  border-radius: 4px;
}

.autocomplete-items::-webkit-scrollbar-thumb {
  background: #CCC;
  border-radius: 4px;
}

.autocomplete-items::-webkit-scrollbar-thumb:hover {
  background: #BBB;
}


  .autocomplete-items {
    right: 40px;
  }

  .autocomplete-items div {
    padding: 10px 16px;
    font-size: 13px;
  }


.welcome-message-container {
  position: relative;
  align-items: center;
  margin-top: 20px;
}

.welcome-message {
  padding: 15px 20px;
  background-color: rgba(255, 255, 255, 0.8); /* 半透明の白背景 */
  width: 780px;
  height: auto; /* 内容に合わせて高さを自動調整 */
  margin: 20px auto;
  border-radius: 10px; /* 角を丸く */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 軽い影をつける */
  color: #333; /* 文字色を濃いめに */
  font-size: 16px;
  line-height: 1.6;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8); /* 文字に軽い影をつけて読みやすく */
}

.welcome-message p {
  margin: 0;
  font-size: 18px;
  color: rgb(66, 65, 65);
  text-align: center;
}

.welcome-message a {
  color: orange;
  text-decoration: none;
}

.welcome-message a:hover {
  text-decoration: underline;
}

.social-links {
  text-align: center;
  margin-top: 30px; /* マスコットとメッセージとの間にスペースを追加 */
}

.social-icon {
  width: 30px;
  height: auto;
  margin-left: 20px;
}

.section4 {
  margin-top: 50px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.creature-type-nav {
  display: flex;
  overflow-x: auto;
  padding: 10px;
  background-color: #fff;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  gap: 30px;
  
  .type-link {
    text-decoration: none;
    color: #333;
    width: 80px;
    transition: transform 0.2s ease;
    
    &:hover {
      transform: translateY(-2px);
    }
    
    &.active {
      .type-item {
        background-color: #e6f3ff;
        border-color: #0066cc;
      }
    }
  }
  
  .type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    
    img {
      width: 30px;
      height: 30px;
      margin-bottom: 4px;
      transition: transform 0.3s ease;
    }
    
    span {
      font-size: 11px;
      white-space: normal;
      width: 100%;
      text-align: center;
      line-height: 1.2;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    
    &:hover {
      background-color: #f5f5f5;
      border-color: #0066cc;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      
      img {
        transform: scale(1.1);
      }
    }
  }
}

.creatures_grid {
  display: grid;
  /* gapを小さくする */
  gap: 5px;
  /* grid-template-columnsを調整して、カードの間隔を最適化 */
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  /* 中央寄せを追加 */
  justify-content: center;
}

.creatures_grid div {
  padding: 5px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.creature-card {
  width: 180px;
  height: 240px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

/* 写真エリア */
.photo-area {
  position: relative;
  width: 100%;
  height: 140px;
  background: black;
  overflow: hidden;
  display: flex;
  justify-content: center;  /* flex-startからcenterに変更 */
  align-items: center;
}

.creature-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  position: absolute;  /* 追加 */
  left: 50%;  /* 追加 */
  transform: translateX(-50%);  /* 追加 */
}

.creature-icon {
  position: absolute;
  top: 4px;
  left: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* 情報エリア */
.info-area {
  flex: 1;
  padding: 8px;  /* 12pxから8pxに変更 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;  /* 8pxから4pxに変更 */
  background: white;
}

.creature-name {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
  text-align: center;
  width: 100%;
  padding: 0 4px;  /* 8pxから4pxに変更 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 16px;  /* 最小の高さを設定 */
  line-height: 16px;  /* 行の高さを設定 */
  display: block;  /* インライン要素からブロック要素に変更 */
}

.location-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 8px;
  height: 60px;  /* 3件分の高さを確保 */
}

.stat-row {
  display: flex;
  align-items: center;
  height: 16px;
  gap: 4px;  /* 8pxから4pxに変更 */
  margin: 2px 0;
}

.location-name {
  width: 60px;
  font-size: 10px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-bar-container {
  flex: 1;
  height: 2px;  /* 3pxから2pxに変更 */
  background: #f0f0f0;
  border-radius: 1px;  /* 2pxから1pxに変更 */
  overflow: hidden;
  position: relative;
}

.stat-bar {
  height: 100%;
  background: #FF6600;
  border-radius: 1px;  /* 2pxから1pxに変更 */
  position: absolute;
  left: 0;
}

.stat-bar:nth-of-type(1) { background-color: #FF9500; }  /* オレンジ */
.stat-bar:nth-of-type(2) { background-color: #34C759; }  /* グリーン */
.stat-bar:nth-of-type(3) { background-color: #007AFF; }  /* ブルー */
.stat-bar:nth-of-type(4) { background-color: #AF52DE; }  /* パープル */
.stat-bar:nth-of-type(5) { background-color: #FF2D55; }  /* ピンク */

.stat-bar.empty {
  background-color: rgba(128, 128, 128, 0.3);
  width: 10%;
}

.count-badge {
  display: none;
}

.my-photo {
  opacity: 1;
}

.others-photo {
  opacity: 0.2;
  transition: opacity 0.2s;
}

/* ホバー時は少し濃くする */
.others-photo:hover {
  opacity: 0.4;
}

.creature-card:hover {
  transform: translateY(-2px);  /* ホバー時に少し浮き上がる */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);  /* ホバー時に影を強調 */
}

.creature-icon[data-type="サカナ"] {
  background: linear-gradient(to bottom right, #FFFFFF, #A8D8FF); /* 白から水色へ */
}

.creature-icon[data-type="ウニ"] {
  background: linear-gradient(to bottom right, #FFFFFF, #CCCCCC); /* 白からグレーへ */
}

.creature-icon[data-type="ウミウシ"] {
  background: linear-gradient(to bottom right, #FFFFFF, #98FFE6); /* 白から薄いエメラルドへ */
}

.creature-icon[data-type="エビカニ"] {
  background: linear-gradient(to bottom right, #FFFFFF, #FFA500); /* 白からオレンジへ */
}

.creature-icon[data-type="カメ"] {
  background: linear-gradient(to bottom right, #FFFFFF, #90EE90); /* 白から緑へ */
}

.creature-icon[data-type="クラゲ"] {
  background: linear-gradient(to bottom right, #FFFFFF, #DDA0DD); /* 白からムラサキへ */
}

.creature-icon[data-type="イソギンチャク"] {
  background: linear-gradient(to bottom right, #FFFFFF, #FFE135); /* 白から黄色へ */
}

.creature-icon[data-type="イカタコ"] {
  background: linear-gradient(to bottom right, #FFFFFF, #FF6B6B); /* 白から赤へ */
}

.creature-icon img {
  width: 18px;  /* 12px * 1.5 */
  height: 18px; /* 12px * 1.5 */
  object-fit: contain;
}

footer {
  background-color: #000000; /* フッターの背景色 */
  color: white; /* テキストの色 */
  padding: 5px 0; /* 上下のパディング */
  text-align: center; /* テキストを中央揃え */
}

.footer-content {
  max-width: 100%; /* コンテンツの最大幅 */
  margin: 0 auto; /* 中央に配置 */
}

.footer-content p {
  margin: 5px 0; /* 上下のマージン */
}

.social-links {
  margin-bottom: 5px; /* 下のマージン */
  /* ソーシャルリンクのスタイルを追加する場合はここに */
}

.default-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.default-image img {
  display: none;
}

.search-form-container {
  width: 781px;
  margin: 0 auto 30px;
  padding: 0;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 101;
}

.search-form {
  width: 100%;
  max-width: 460px;
  position: relative;
  background: #FFFFFF;
  border-radius: 100px;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.02),
    0 4px 8px rgba(0, 0, 0, 0.02);
}

.search-input {
  width: 100%;
  height: 30px;
  padding: 0 60px 0 24px;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  background: transparent;
  transition: all 0.25s ease;
}

.search-input:focus {
  outline: none;
}

.search-form:focus-within {
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.search-input::placeholder {
  color: #999;
  font-size: 14px;
}

.search-button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background-color: #FF6600;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
}

.search-button:hover {
  opacity: 1;
  transform: translateY(-50%) translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.2);
}

.autocomplete-items {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: white;
  border-radius: 16px;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.04),
    0 8px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  z-index: 102;
  display: none;
}

.autocomplete-items div {
  cursor: pointer;
  padding: 12px 24px;
  font-size: 14px;
  color: #333;
  transition: background-color 0.2s ease;
}

.autocomplete-items div:hover {
  background-color: rgba(255, 102, 0, 0.05);
}

.autocomplete-items div {
  padding: 10px 20px;
  font-size: 14px;
}

.creatures-grid {
  width: 781px;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  position: relative;
  z-index: 1;
}

.info-content {
  padding: 40px 0;
  background: #FFF1E5;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-container {
  width: 781px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 0;
  justify-content: center;
  align-items: center;
}

.info-item {
  flex: 1;
  display: flex;
  justify-content: center;
}

.info-image {
  width: 95%;
  max-width: 390px;
  height: auto;
  border-radius: 12px;
}

.app-store-container {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.coming-soon-button {
  display: inline-flex;
  align-items: center;
  background-color: #000000;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  border: none;
  transition: all 0.3s ease;
  cursor: default;
}

.app-store-icon {
  margin-right: 10px;
  font-size: 16px;
}

.ad-recruitment {
  font-size: 12px;
  color: #666666;
  text-align: center;
}



/* モーダル用のオーバーレイ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* モーダル内のカード */
.modal-card {
  width: 360px;
  height: 520px; /* 高さを少し増やして5本のバーを収納 */
  background: white;
  border-radius: 24px; /* 元の2倍 */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

/* モーダル内の写真エリア */
.modal-card .photo-area {
  height: 280px; /* 元の2倍 */
}

/* モーダル内の情報エリア */
.modal-card .info-area {
  padding: 16px;
  height: auto; /* 高さを自動調整に変更 */
}

.modal-card .creature-name {
  font-size: 18px; /* 元の2倍 */
  margin-bottom: 12px;
}

.modal-card .location-stats {
  height: 160px; /* 5本のバーを収納できるように高さを調整 */
  gap: 8px;
}

.modal-card .stat-row {
  height: 24px; /* バーの高さを少し小さくして5本入るように調整 */
  gap: 8px;
}

.modal-card .location-name {
  font-size: 16px; /* フォントサイズを少し小さく調整 */
  width: 200px;
}

.modal-card .stat-bar-container {
  height: 4px;
}

.modal-card .creature-icon {
  width: 36px;  /* 48pxから64pxに変更 */
  height: 36px;  /* 48pxから64pxに変更 */
  top: 20px;
  left: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card .creature-icon img {
  width: 36px;  /* 36pxから48pxに変更 */
  height: 36px;  /* 36pxから48pxに変更 */
  object-fit: contain;
}

/* アイコンの背景グラデーションも大きく */
.modal-card .creature-icon[data-type="サカナ"],
.modal-card .creature-icon[data-type="ウニ"],
.modal-card .creature-icon[data-type="ウミウシ"],
.modal-card .creature-icon[data-type="エビカニ"],
.modal-card .creature-icon[data-type="カメ"],
.modal-card .creature-icon[data-type="クラゲ"],
.modal-card .creature-icon[data-type="イソギンチャク"],
.modal-card .creature-icon[data-type="イカタコ"] {
  background-size: 200% 200%;
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  transition: background-color 0.3s ease;
  z-index: 1001;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* モーダルのフェードインアニメーション */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* モーダルが表示されているときにスクロールを無効化 */
body.modal-open {
  overflow: hidden;
}

/* top.css に追加 */
.default-creature-image {
  object-fit: contain !important;
  padding: 20px;
  background-color: #f8f9fa;
  width: 80% !important;
  height: 80% !important;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* photo-areaの背景色を調整 */
.photo-area {
  background: #f8f9fa;
}

/* 生物タイプごとの背景色を設定 */
.creature-card[data-type="サカナ"] .photo-area {
  background: linear-gradient(to bottom, #f8f9fa, #e3f2fd);
}

.creature-card[data-type="ウニ"] .photo-area {
  background: linear-gradient(to bottom, #f8f9fa, #f5f5f5);
}

.creature-card[data-type="ウミウシ"] .photo-area {
  background: linear-gradient(to bottom, #f8f9fa, #e0f7fa);
}

.creature-card[data-type="エビカニ"] .photo-area {
  background: linear-gradient(to bottom, #f8f9fa, #fff3e0);
}

.creature-card[data-type="カメ"] .photo-area {
  background: linear-gradient(to bottom, #f8f9fa, #e8f5e9);
}

.creature-card[data-type="クラゲ"] .photo-area {
  background: linear-gradient(to bottom, #f8f9fa, #f3e5f5);
}

.creature-card[data-type="イソギンチャク"] .photo-area {
  background: linear-gradient(to bottom, #f8f9fa, #fff8e1);
}

.creature-card[data-type="イカタコ"] .photo-area {
  background: linear-gradient(to bottom, #f8f9fa, #ffebee);
}

/* 共通の棒グラフカラー設定（メディアクエリの外に配置） */
.stat-row:nth-child(1) .stat-bar:not(.empty) {
  background-color: #FF9500;  /* オレンジ */
}

.stat-row:nth-child(2) .stat-bar:not(.empty) {
  background-color: #34C759;  /* グリーン */
}

.stat-row:nth-child(3) .stat-bar:not(.empty) {
  background-color: #007AFF;  /* ブルー */
}

.stat-row:nth-child(4) .stat-bar:not(.empty) {
  background-color: #AF52DE;  /* パープル */
}

.stat-row:nth-child(5) .stat-bar:not(.empty) {
  background-color: #FF2D55;  /* ピンク */
}

/* 0件の場合のスタイル */
.stat-bar.empty {
  background-color: rgba(128, 128, 128, 0.2);
  width: 10%;
}

@media (min-width: 781px) {
  /* Web版のグリッドカードの棒グラフスタイル */
  .creature-card .stat-bar-container {
    width: 100px;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
  }

  .creature-card .stat-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
  }

  /* Web版のモーダルの棒グラフスタイル */
  .modal-card .stat-bar-container {
    height: 4px;
    border-radius: 2px;
    margin-left: 10px;
  }

  .modal-card .stat-bar {
    border-radius: 2px;
  }
}

}

@media (max-width: 780px) {
  .hero-section {
    position: relative;
    width: 100%;
    height: 75vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(/assets/surface.jpg) no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    padding-bottom: 60px;
  }

  .hero-content {
    width: 100%;
    max-width: 370px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 60px;
    padding: 0 10px 40px;
    box-sizing: border-box;
  }

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

  .logo-image {
    width: 240px;
    height: auto;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
  }

  .hero-text {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
  }

  .hero-text h1 {
    font-size: 18px;
    line-height: 1.8;
    font-weight: normal;
    margin: 0;
  }

  .hero-right {
    width: 100%;
    max-width: 370px;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .screenshot-image {
    width: 200px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .what-section {
    position: relative;
    background: #ffffff;  /* グラデーションから純白に変更 */
    padding: 20px 0;
    margin-top: -50px;
    z-index: 2;
  }

  .what-content {
    width: 100%;
    max-width: 370px;
    margin: 0 auto;
    padding: 0 25px;
    box-sizing: border-box;
  }

  .what-image,
  .moglow-image {
    display: none;
  }

  .what-text {
    text-align: left;
    width: 100%;
    padding: 0;
  }

  .what-text h2 {
    font-size: 24px;
    color: #2193b0;
    margin-bottom: 20px;
    font-weight: 600;
  }

  .what-text p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 12px;
  }

  .what-text p:first-of-type {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 16px;
  }

  .online-link {
    margin-top: 20px;
    text-align: center;
  }

  .online-link a {
    display: inline-block;
    color: #2193b0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 20px;
    border: 1px solid #2193b0;
    border-radius: 50px;
    transition: all 0.3s ease;
  }

  .online-link a:hover {
    background: #2193b0;
    color: #ffffff;
  }

  .creatures-grid {
    width: 100%;
    max-width: 370px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
  }

  .creature-card {
    width: 110px;
    height: 150px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .creature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .photo-area {
    position: relative;
    width: 100%;
    height: 85px;
    background: #f8f9fa;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .creature-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .creature-photo.default-creature-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    padding: 8px;
  }

  .creature-icon {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }

  .creature-icon img {
    width: 12px;
    height: 12px;
  }

  .info-area {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .creature-name {
    font-size: 10px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    color: #333;
    line-height: 1.3;
    width: 100%;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .location-stats {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 4px;
  }

  .stat-row {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 12px;
  }

  .location-name {
    font-size: 9px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 45px;
  }

  .stat-bar-container {
    flex: 1;
    height: 2px;
    background: #f0f0f0;
    border-radius: 1px;
    overflow: hidden;
  }

  .stat-bar {
    height: 100%;
    background: #FF6600;
    border-radius: 1px;
  }

  .stat-bar.empty {
    background-color: rgba(128, 128, 128, 0.3);
    width: 10%;
  }

  .modal-only {
    display: none;
  }

  /* モーダル内のアイコンスタイル */
  .modal-overlay .modal-card .creature-icon {
    position: absolute;
    width: 32px;  /* 64pxから56pxに変更 */
    height: 32px;  /* 64pxから56pxに変更 */
    top: 20px;
    left: 20px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
  }

  .modal-overlay .modal-card .creature-icon img {
    width: 32px;  /* 48pxから40pxに変更 */
    height: 32px;  /* 48pxから40pxに変更 */
    object-fit: contain;
  }

  /* 生物タイプごとの背景グラデーション */
  .modal-overlay .modal-card .creature-icon[data-type="サカナ"] {
    background: linear-gradient(to bottom right, #FFFFFF, #A8D8FF);
  }

  .modal-overlay .modal-card .creature-icon[data-type="ウニ"] {
    background: linear-gradient(to bottom right, #FFFFFF, #CCCCCC);
  }

  .modal-overlay .modal-card .creature-icon[data-type="ウミウシ"] {
    background: linear-gradient(to bottom right, #FFFFFF, #98FFE6);
  }

  .modal-overlay .modal-card .creature-icon[data-type="エビカニ"] {
    background: linear-gradient(to bottom right, #FFFFFF, #FFA500);
  }

  .modal-overlay .modal-card .creature-icon[data-type="カメ"] {
    background: linear-gradient(to bottom right, #FFFFFF, #90EE90);
  }

  .modal-overlay .modal-card .creature-icon[data-type="クラゲ"] {
    background: linear-gradient(to bottom right, #FFFFFF, #DDA0DD);
  }

  .modal-overlay .modal-card .creature-icon[data-type="イソギンチャク"] {
    background: linear-gradient(to bottom right, #FFFFFF, #FFE135);
  }

  .modal-overlay .modal-card .creature-icon[data-type="イカタコ"] {
    background: linear-gradient(to bottom right, #FFFFFF, #FF6B6B);
  }

  .info-content {
    background: #FFF3E0;
    padding: 40px 0;
    width: 100%;  /* 追加：幅を100%に */
  }

  .info-container {
    width: 100%;
    max-width: 370px;
    margin: 0 auto;  /* 中央寄せを維持 */
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;  /* 左右にパディングを追加 */
    box-sizing: border-box;  /* 追加：ボックスサイズの計算方法を指定 */
  }

  .info-item {
    width: 100%;
    margin: 0 auto;  /* 追加：各アイテムも中央寄せ */
  }

  .info-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;  /* 追加：ブロック要素として表示 */
    margin: 0 auto;  /* 追加：画像も中央寄せ */
  }

  .app-store-container {
    width: 100%;
    max-width: 370px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .coming-soon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;  /* 追加: 暗めの背景色 */
    color: white;               /* 追加: 文字色を白に */
    padding: 12px 24px;        /* 追加: 内側の余白 */
    border-radius: 8px;        /* 追加: 角を丸く */
    margin-top: 20px;          /* 追加: 上部との余白 */
    font-size: 14px;           /* 追加: フォントサイズ調整 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  /* 追加: 軽い影をつける */
  }

  .app-store-icon {
    margin-right: 10px;
    font-size: 18px;  /* 追加: アイコンサイズを少し大きく */
  }

  .ad-recruitment {
    font-size: 12px;
    color: #666;
    text-align: center;
    width: 100%;
    margin-top: 15px;  /* 追加: ボタンとの余白 */
  }

  footer {
    background: #000;
    padding: 20px;
    text-align: center;
  }

  .social-links {
    margin-bottom: 15px;
  }

  .social-icon {
    width: 24px;
    height: 24px;
    margin: 0 10px;
    filter: brightness(0) invert(1);
  }

  .footer-content p {
    color: white;
    font-size: 12px;
    margin: 0;
  }

  /* 生物カードのグリッドセクションのタイトル */
  .value-section-title {
    background: #E8F5E9;
    color: #333;
    padding: 10px 20px;
    margin: 0;
    font-size: 14px;
    font-weight: normal;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .value-section-title .close-button {
    font-size: 18px;
    color: #666;
  }

  /* 機能説明セクション */
  .feature-section {
    background: #FFF3E0;
    padding: 40px 20px;
    text-align: center;
  }

  .feature-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.6;
  }

  .feature-image {
    width: 100%;
    max-width: 330px;
    margin: 20px auto;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  /* モーダル関連のスタイル */
  .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
  }

  .modal-card {
    width: 340px;
    height: 520px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
  }

  .modal-card .photo-area {
    height: 280px;
    background: #f8f9fa;
  }

  .modal-card .creature-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .modal-card .info-area {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;  /* 中央揃えに変更 */
  }

  .modal-card .creature-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-align: center;  /* 中央揃えに変更 */
    width: 100%;
  }

  .modal-card .location-stats {
    width: 100%;  /* 追加 */
    height: auto;
    gap: 10px;
    padding: 0;
  }

  .modal-card .stat-row {
    height: 20px;
    gap: 10px;
    margin: 0;
  }

  .modal-card .location-name {
    width: 120px;
    font-size: 14px;
    color: #666;
  }

  .modal-card .stat-bar-container {
    flex: 1;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
  }

  .modal-card .stat-bar {
    height: 100%;
    border-radius: 2px;
  }

  .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    cursor: pointer;
  }

  /* 検索フォーム */
  .search-form-container {
    width: 100%;
    max-width: 370px;
    margin: 0 auto 40px;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .search-form {
    width: 100%;
    max-width: 370px;
    position: relative;
  }

  input#creature-search.search-input {  /* セレクタをより具体的に */
    width: 100%;
    height: 40px;
    padding: 0 40px 0 15px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    background-color: white !important;  /* !importantを追加 */
    box-sizing: border-box;  /* 追加 */
  }

  .search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;  /* サイズを小さく */
    height: 30px;  /* サイズを小さく */
    border: none;
    border-radius: 50%;
    background: #FF6600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* オートコンプリート */
  .autocomplete-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
  }

  .autocomplete-items div {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
  }

  .autocomplete-items div:hover {
    background: #f8f8f8;
  }

  /* カードのホバー効果 */
  .creature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .creature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  /* 写真エリアの背景グラデーション */
  .photo-area {
    background: linear-gradient(to bottom, #f8f9fa, #f0f0f0);
  }

  /* デフォルト画像のスタイル */
  .default-creature-image {
    width: 80% !important;
    height: 80% !important;
    object-fit: contain;
    padding: 0;
  }

  /* アプリストアボタン */
  .app-store-badge {
    width: 140px;
    height: auto;
    margin-top: 20px;
  }

  /* SNSアイコン */
  .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
  }

  .social-icon {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
  }

  .social-icon:hover {
    opacity: 1;
  }

  .main-content {
    width: 100%;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa, #f5f5f5, #e3f2fd);  /* うっすらとした青みがかったグラデーション */
    position: relative;
    z-index: 1;
  }

  .info-content {
    width: 100%;
    padding: 40px 0;
    background: linear-gradient(135deg, #fff5e6, #fff0e0, #ffe4cc);  /* うっすらとしたオレンジ系グラデーション */
    position: relative;
    z-index: 1;
  }

  /* 検索フォームの背景を調整（必要な場合） */
  .search-form-container {
    position: relative;
    z-index: 2;
  }

  /* 生物カードグリッドの背景を透過（必要な場合） */
  .creatures-grid {
    position: relative;
    z-index: 2;
  }

  /* 共通の棒グラフスタイル */
  .stat-row:nth-child(1) .stat-bar:not(.empty) {
    background-color: #FF9500;  /* オレンジ */
  }

  .stat-row:nth-child(2) .stat-bar:not(.empty) {
    background-color: #34C759;  /* グリーン */
  }

  .stat-row:nth-child(3) .stat-bar:not(.empty) {
    background-color: #007AFF;  /* ブルー */
  }

  .stat-row:nth-child(4) .stat-bar:not(.empty) {
    background-color: #AF52DE;  /* パープル */
  }

  .stat-row:nth-child(5) .stat-bar:not(.empty) {
    background-color: #FF2D55;  /* ピンク */
  }

  /* 0件（empty）の場合のスタイル */
  .stat-bar.empty {
    background-color: rgba(128, 128, 128, 0.2);  /* 薄いグレー */
    width: 10%;  /* 最小幅を設定 */
  }

  /* グリッドカードの棒グラフスタイル調整 */
  .creature-card .stat-bar-container {
    flex: 1;
    height: 2px;  /* グリッドカードは細め */
    background: #f0f0f0;
    border-radius: 1px;
    overflow: hidden;
    margin-left: 4px;  /* 場所名との間隔を小さめに */
  }

  .creature-card .stat-bar {
    height: 100%;
    border-radius: 1px;
    transition: width 0.3s ease;
  }

  /* モーダルの棒グラフスタイル調整 */
  .modal-overlay .modal-card .stat-bar-container {
    height: 4px;  /* モーダルは太め */
    border-radius: 2px;
    margin-left: 10px;  /* 場所名との間隔を広めに */
  }

  .modal-overlay .modal-card .stat-bar {
    border-radius: 2px;
  }

  /* モバイル版のオートコンプリート候補を最前面に */
  #autocomplete-list {
    position: relative;
    z-index: 100;  /* カードより前面に表示 */
  }

  /* 生物カードのz-indexを設定 */
  .creature-card {
    position: relative;
    z-index: 1;
  }
}

.app-store-link {
  text-decoration: none;
  color: inherit;
}

.app-store-link:hover {
  opacity: 0.8;
}
