@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600&display=swap");

#index > .float-nav {
  display: none;
}

.year-end-fair {
  position: fixed;
  right: -496px;
  bottom: 15px;
  z-index: 5;
  width: 496px;
  visibility: hidden;
  color: #333;
  font-family: "Yu Gothic", YuGothic, Helvetica, Arial, "Hiragino Kaku Gothic Pro", "Noto Sans JP", Meiryo, sans-serif;
  font-feature-settings: "palt";
  letter-spacing: 1.5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  transition: right .4s, visibility 0s .4s;
}

.year-end-fair.is-visible {
  right: 20px;
  visibility: visible;
  transition-delay: 0s;
}

.year-end-fair.is-dismissed {
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility 0s .2s;
}

.year-end-fair__link {
  display: flex;
  min-height: 153px;
  color: inherit;
  background: #fff;
  transition: none;
}

.year-end-fair__link:hover {
  opacity: 1;
}

.year-end-fair__photo {
  position: relative;
  flex: 0 0 153px;
}

.year-end-fair__photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.year-end-fair__text {
  flex: 1;
  min-width: 0;
  padding: 20px 70px 20px 25px;
}

.year-end-fair__label {
  margin-bottom: 2px;
  color: #A39890;
  font-family: Cinzel, "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 2px;
}

.year-end-fair__title {
  margin-bottom: 5px;
  color: #a18240;
  font-family: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.8;
}

.year-end-fair__description {
  font-size: 12px;
  line-height: 1.7;
}

.year-end-fair__text::before,
.year-end-fair__text::after {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  content: "";
}

.year-end-fair__text::before {
  right: 50px;
  width: 1px;
  height: calc(100% - 34px);
  background: #ccc;
}

.year-end-fair__text::after {
  right: 18px;
  width: 12px;
  height: 12px;
  background: #A39890;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 38% 50%);
}

.year-end-fair__close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #A39890;
  cursor: pointer;
}

.year-end-fair__close::before,
.year-end-fair__close::after {
  position: absolute;
  inset: 0;
  width: 12px;
  height: 1px;
  margin: auto;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.year-end-fair__close::after {
  transform: rotate(-45deg);
}

.year-end-fair__link:focus-visible,
.year-end-fair__close:focus-visible {
  outline: 2px solid #A39890;
  outline-offset: 2px;
}

@media screen and (max-width: 1000px) {
  .year-end-fair {
    right: -100%;
    width: calc(100% - 20px);
  }

  .year-end-fair.is-visible {
    right: 10px;
  }

  .year-end-fair__photo {
    flex-basis: 110px;
  }

  .year-end-fair__text {
    padding: 14px 37px 14px 18px;
  }

  .year-end-fair__label {
    margin-bottom: 1px;
    font-size: 12px;
    letter-spacing: 1px;
  }

  .year-end-fair__title {
    font-size: 14px;
    line-height: 1.5;
  }

  .year-end-fair__description {
    font-size: 10px;
  }

  .year-end-fair__text::before {
    right: 30px;
  }

  .year-end-fair__text::after {
    right: 11px;
    width: 9px;
    height: 9px;
  }
}

@media screen and (max-width: 768px) {
  .year-end-fair__link {
    min-height: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .year-end-fair,
  .year-end-fair.is-dismissed {
    transition: none;
  }
}
