* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #fffdf8;
}

main {
  width: 656px;
  margin: 40px auto;
}

.main-container {
  position: relative;
}

/* メイン画像 */
.main-image {
  box-shadow: 0 18px 45px rgba(0,0,0,.15);
  display: block;
  width: 556px;
  height: 556px;
  object-fit: cover;
  border-radius: 50%;
  transition: opacity .3s ease;
}

.main-image.fade {
  animation: fade 1s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* コメント */
.comment {
  position: absolute;
  top: -20px;
  right: 0px;
  background-color: #fff;
  border-radius: 30px;
  z-index: 1000px;
  padding: 30px 40px;
  font-size: 24px ;
  border: 1px solid #aaa;
  transition-delay: 2s;
}

.comment,
.feel-1,
.feel-2 {
  opacity: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 6px 15px rgba(0,0,0,.12);
  transform: translateY(15px) scale(0.9); /* 下から浮き上がるUI */
  transition: opacity 1s ease, transform 1s ease;
}

.main-container:hover .comment,
.main-container:hover .feel-1,
.main-container:hover .feel-2 {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feel-1, .feel-2 {
  position: absolute;
  border-radius: 50%;
  border: 1px solid #aaa;
}

.feel-1 {
  top: 150px;
  right: 200px;
  padding: 10px 20px;
}

.feel-2 {
  top: 100px;
  right: 150px;
  padding: 15px 25px;
}


.button-area {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.button {
  all:unset;
  box-shadow: 0 5px 15px rgba(0,0,0,.08);
  width: 124px;
  border: 1px #ccc solid;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 12px;
  text-align: center;
  transition: background-color ease 0.4s;
}

.button:hover {
  transform: translateY(-3px);
  background-color: #ccc;
}

.thumbnails-container {
  margin: 30px 10px;
  padding: 0 10px;
  display: flex;
  gap: 8px;
  overflow-x: scroll;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}

.thumbnails-container::-webkit-scrollbar {
  height: 8px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 999px;
}

.thumbnails-container::-webkit-scrollbar-track {
  background: #eee;
}

.thumbnail {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  margin-top: 10px;
  transition: .3s;
}

.thumbnail:hover {
  opacity: 0.8;
  transform: translateY(-8px) scale(1.08);
}

.thumbnail.active {
  outline: 3px solid #4a90e2;
}
