

.tool-icon-menu {
  position: relative;
  width: 100%;
  margin: 0;
  padding-bottom: 15px;
  border-bottom: 0;
  color: #452f24;
}

.tool-icon-menu::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 50%;
  height: 1px;
  background: #e8e0da;
  transform: translateX(-50%);
}

.tool-icon-menu__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12.5px 7.5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-icon-menu__list > li {
  flex: 0 0 calc((100% - 7.5px * 4) / 5);
  max-width: calc((100% - 7.5px * 4) / 5);
  min-width: 0;
  text-align: center;
}

.tool-icon-menu__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7.5px;
  max-width: 100%;
  vertical-align: top;
  text-decoration: none;
  color: inherit;
}

.tool-icon-menu__icon {
  display: block;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 47.5px;
  height: 47.5px;
}

.tool-icon-menu__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.tool-icon-menu__icon--empty {
  border: 0;
  border-radius: 0;
  background: rgba(154, 133, 120, 0.06);
}

.tool-icon-menu__name {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-align: center;
  color: #5c4033;
  white-space: nowrap;
}

.tool-icon-menu__link:hover .tool-icon-menu__name,
.tool-icon-menu__link:focus-visible .tool-icon-menu__name {
  color: #5c4033;
}

/* アイコンメニュー直下の投票バナー（上下区切り線） */
.tool-icon-menu--before-banner {
  padding-bottom: 15px;
}

.tool-icon-menu--before-banner::after {
  display: none;
}

.tarot-vote-top {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 10px 0 15px;
  box-sizing: border-box;
}

.tarot-vote-top::before,
.tarot-vote-top::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 50%;
  height: 1px;
  background: #e8e0da;
  transform: translateX(-50%);
}

.tarot-vote-top::before {
  top: 0;
}

.tarot-vote-top::after {
  bottom: 0;
}

.tarot-vote-top__hint {
  margin: 10px 0 0;
  color: #c97884;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
}

.tarot-vote-top__cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2.5px;
  gap: 7.5px;
  color: #c97884;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.04em;
  pointer-events: none;
  user-select: none;
}

.tarot-vote-top__cue-arrow {
  display: block;
  position: relative;
  width: 14px;
  height: 13.5px;
  animation: tarot-vote-top-arrow 1.6s ease-in-out infinite;
}

.tarot-vote-top__cue-arrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4.5px solid transparent;
  border-right: 4.5px solid transparent;
  border-bottom: 4.5px solid #c97884;
}

.tarot-vote-top__cue-arrow::after {
  content: "";
  position: absolute;
  top: 3.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 10px;
  background: #c97884;
}

@keyframes tarot-vote-top-arrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tarot-vote-top__cue-arrow {
    animation: none;
  }
}

.tarot-vote-top__link {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.tarot-vote-top__link:hover,
.tarot-vote-top__link:focus-visible {
  opacity: 0.92;
}

.tarot-vote-top__link:focus-visible {
  outline: 2px solid #9a8578;
  outline-offset: 2px;
}

.tarot-vote-top__img {
  display: block;
  width: 320px;
  height: 180px;
  max-width: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .tool-icon-menu {
    margin: 0;
    padding-bottom: 22.5px;
  }

  .tool-icon-menu__list {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12.5px 15px;
  }

  .tool-icon-menu__list > li {
    flex: 0 0 calc((100% - 15px * 9) / 10);
    max-width: calc((100% - 15px * 9) / 10);
  }

  .tool-icon-menu__icon {
    width: 52.5px;
    height: 52.5px;
  }

  .tool-icon-menu__name {
    font-size: 13.5px;
  }

  .tool-icon-menu--before-banner {
    padding-bottom: 22.5px;
  }

  .tarot-vote-top {
    padding: 17.5px 0 22.5px;
  }

  .tarot-vote-top__hint {
    margin-top: 12.5px;
    font-size: 15px;
  }

  .tarot-vote-top__cue {
    margin-top: 5px;
    font-size: 17.5px;
  }

  .tarot-vote-top__img {
    width: 480px;
    height: 270px;
  }
}
