#main-title {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  white-space: normal;       /* 折り返しを許可 */
  word-break: break-word;    /* 長い単語でも折り返し */
  line-height: 1.4;
  margin-bottom: 16px;
}

body {
  font-family: sans-serif;
  padding: 20px;
  background-color: #f5f5f5;
  max-width: 768px;
  margin: auto;
}

#digimon-ui {
  max-width: 768px;
  margin: auto;
}

input[type="text"] {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  font-size: 16px;
  margin-bottom: 20px;
}

.three-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.column {
  flex: 1;
  background: #fff;
  border: 1px solid #ccc;
  padding: 6px;
  min-height: 80px;
  min-width: 0;
  overflow-y: auto;
}

.column h3 {
  margin-top: 0;
  font-size: 16px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  text-align: center;
  margin-bottom: 6px;
}

.digimon-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  cursor: pointer;
  margin-bottom: 0px;
  font-size: 14px;
  padding: 5px;
  border-radius: 5px;
  transition: background 0.2s;
}

.digimon-block:hover {
  background-color: transparent;
}

.digimon-block img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 0 4px 0;
  vertical-align: middle;
}

.selected {
  background-color: #ffd759;
}

.digimon-block.selected {
  background-color: #ffd759 !important;
  transition: background 0.1s ease;
}

@media (min-width: 768px) {
  /* タイトルのフォントサイズを大きく */
  #main-title {
    font-size: 20px;
  }

  /* 3列を横並びにする設定 */
  .three-column {
    flex-direction: row; /* 横並びに上書き */
  }

  /* 列の最小高さを大きく設定 */
  .column {
    min-height: 450px; /* PC用の高さに上書き */
    /* PC表示で2列目を均等にしたい場合は flex: 1; を記述 */
    /* 今回は元々 .column に flex: 1; があるので不要 */
  }
  
  .digimon-block:hover{
    background-color: #eee;
  }
}

.arrow {
  white-space: pre-wrap;
  text-align: center;
  font-size: 14px;
  color: #000000;
  margin: 4px 0;
}

#searchBox {
  font-size: 16px;
  border-radius: 5px;
  position: relative;
  z-index: 10;
  border: 1px solid #333; /* 枠線色 */
}

/* サジェストボックス全体の背景・枠線など */
.suggestion-box {
  position: absolute;
  background-color: #fef6e4; /* 背景色 */
  border: 1px solid #ffb703; /* 枠線色 */
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  width: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 各候補の文字色・背景色 */
.suggestion-box div {
  padding: 6px 10px;
  cursor: pointer;
  color: #333;               /* 文字色 */
  background-color: #fff;    /* 通常背景色 */
}

/* ホバー時の色 */
.suggestion-box div:hover {
  background-color: #ffd759; /* ホバー背景色 */
  color: #000;               /* ホバー文字色 */
}

#affiliate-footer {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: nowrap;
  margin-top: 10px;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  margin-bottom: 0px;
}

.affiliate-container {
  max-width: 100%;
  padding: 10px;
}

/* CSSファイル (style.css) に追加 */
.empty-message {
  text-align: center;
  padding: 20px 0;
  color: #888; /* グレー系の文字色 */
  font-size: 16px;
  font-weight: normal;
}

/* 2列目を目立たせるための設定 */
#selectedColumn {
  background-color: #ffeaa7;
}
#developer-link-area {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 0px;
}

#developer-link-area p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  color: #333;
}

#developer-link-area a {
  margin-top: 5px;
  font-size: 16px;
  font-weight: normal;
  color: #007bff;
  text-decoration: none;
}

#developer-link-area a:hover {
  text-decoration: underline;
}