@import './colors.css';

.header {
  background-color: var(--color-light-pink);
  box-shadow: none;
  border-bottom: 2px solid var(--color-pastel-pink);
  padding: 0;
  position: fixed;
  width: 100%;
  display: block;
  height: 70px;
}

.top_experience__banner img {
  border-radius: 10px;
  transform: scale(0.9);
  margin: 0 auto;
  padding: 0;
}
.header__accountWrap {
  display: flex;
}
.header__accountWrap:hover {
  opacity: 1;
}
.header__accountItem {
  width: 49px;
}
.header__accountItem a:hover {
  opacity: 0.5;
}
.header__myPage {
  text-align: center;
  color: var(--color-red);
}
.header__inputWrap {
  margin-left: 30px;
}
.header__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  background-color: var(--color-light-pink);
  width: 100%;
  border-top: 1px solid var(--color-red);
  border-bottom: 2px solid var(--color-pastel-pink);
}
.header__bottom li {
  position: relative;
  width: 25%;
  text-align: center;
  padding: 3px 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-red);
}
.header__bottom li:first-child::after{
  display: none;
}
.header__bottom li::after{
  position: absolute;
  content: "";
  left: 0;
  top: 50%;
  bottom: 50%;
  transform: translateY(-50%);
  height: 17px;
  width: 1px;
  background: var(--color-red);
}

.header__bottom li a {
  width: 100%;
  height: 100%;
  display: block;
}

.header-margin {
  margin-top: 70px;
}

.header__accountItem.-keep {
  position: relative;
}
.header__favorites {
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  text-align: center;
  background-color: var(--color-red);
  color: #fff;
  width: 18px;
  height: 18px;
  padding-top: 4px;
  position: absolute;
  top: -5px;
  right: 2px;
}

.header .red-select-wrapper .selected-display {
  min-width: 96px;
  @media screen and (max-width: 1023px) {
    min-width: 62px;
    padding: 2px 6px;

  }
}

/* Responsive styles */
@media screen and (min-width: 1024px) {
  .header_nav.is_open {
    height: 160px;
    opacity: 1;
    overflow: unset;
  }
  .top__bannerWrap {
    display: none;
  }
  .header__option {
    width: calc(98% - 212px);
  }
}

@media screen and (min-width: 768px) {
  .archive__button.-reSearch {
      width: 128px;
      height: 128px;
      bottom: 120px;
  }
  .archive__button.-reSearch:before {
      width: 50px;
      height: 50px;
      top: 24px;
  }
  .archive__buttonText {
      font-size: 24px;
      transform: translateY(24px) scale(0.9);
  }
  .c_button.-scroll:after {
      width: 92px;
      height: 92px;
      bottom: -48px;
  }
  .c_button.-scroll {
      width: 128px;
      height: 128px;
      right: 25px;
      font-size: 24px;
  }
}

.header__logoWrap {
  margin-right: auto;
  margin-left: 0;
  display: flex;
  align-items: end;
  gap: 8px;
  width: unset;
  @media screen and (max-width: 1023px) {
    gap: 4px;
  }
}

.header__inner {
  max-width: 1024px;
}

.header__button:hover:after {
  background-color: var(--color-red)
}

.header__sp__logo {
  width: 174px !important;
  min-width: 174px !important;
}

@media screen and (max-width: 1023px) {
  .header {
    height: 60px;
    transition: top 0.5s;
  }
  .header-margin {
    margin-top: 90px;
  }
  .header__top {
    height: 100%;
  }
  .header__accountWrap {
      margin-left: 0;
  }
  .header__sp__logo {
    width: 140px !important;
    min-width: 140px !important;
  }
  .header__inner {
      width: calc(100% - 30px);
      height: 100%;
  }
  .header__accountItem {
      width: 50px;
  }
  .header__iconWrap {
      width: 22px;
  }
}

/* ヘッダーメニュー挙動 */
.header_nav {
  position: fixed;
  opacity: 0;
}
.mask {
    opacity: 0;
    position: fixed;
    top: 0;
    min-height: 100vh;
    width: 100%;
    background-color: #dbdbdb;
    transition: 0.5s;
    z-index: -1;
}
.mask.active {
  opacity: 0.5;
  z-index: 4;
}
.header__hamburger{
  position: relative;
  cursor: pointer;
}

.header_wrap {
  display: flex;
  max-width: 1081px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  @media (max-width: 1023px) {
    padding: 0 1rem;
  }
}

.header_content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 100%;
}

.header_right {
    display: flex;
    align-items: center;
    justify-content: end;
    flex: 1;
    margin-left: auto;
}

.relative {
    position: relative;
}

.header_button {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.header_button a {
  width: 124px;
  height: 27px;
}

@media (min-width: 1024px) {
  .header_nav {
    max-width: 900px;
    width: 100%;
    height: 0;
    padding: 0 20px;
    overflow: hidden;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    transition: height 0.5s, 0.1s 1s;
    z-index: -2;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.6);
    background-color: #fff;
  }
  .header_nav.is_open {
    height: 220px;
    opacity: 1;
    overflow: unset;
  }
}

@media (max-width: 1023px) {
  .header_nav {
    width: 250px;
    height: 100%;
    max-height: 100vh;
    display: block;
    overflow-y: auto;
    padding-bottom: 35px;
    position: fixed;
    top: 0;
    right: -110%;
    left: auto;
    z-index: 6;
    transition: right 0.5s, opacity 0.1s 1s;
    opacity: 1;
    background: var(--color-red);
  }
  .header_nav:before {
    content: "";
    width: 250px;
    height: 65px;
    position: fixed;
    top: 0;
    right: -110%;
    left: auto;
    z-index: 6;
    background-color: var(--color-red);
  }
  .header_nav.is_open {
    right: 0;
    left: auto;
  }
  .header_nav.is_open:before {
    right: 0;
    left: auto;
    transition: right 0.5s;
    display: none !important;
  }
  .header__hamburger__sticky {
    height: 65px;
    position: sticky;
    top: 0;
    background: var(--color-red);
    z-index: 2;
  }
  .header__hamburger {
      width: 24px;
      height: 24px;
  }
  .header__hamburger__close {
    opacity: 0;
  }
  .header__hamburger__close.active {
    width: 32px;
    height: 32px;
    z-index: 8;
    position: absolute;
    top: 13px;
    right: 0;
    cursor: pointer;
    display: block;
    opacity: 1;
  }
  .header__bar {
    width: 14px;
    height: 2px;
    background-color: var(--color-red);
  }
  .header__bar:first-child {
      top: 6px;
  }
  .header__bar:nth-child(2) {
      top: 11px;
  }
  .header__bar:last-child {
      top: 16px;
  }
  .header__hamburger__close .header__bar.is_active:first-child {
      transform: translate(-50%, 4px) rotate(45deg);
      position: fixed;
      top: 1.5rem;
      right: 0.5rem;
      left: auto;
      width: 24px;
  }
  .header__hamburger__close .header__bar.is_active:last-child {
      position: fixed;
      top: 2.25rem;
      right: 0.5rem;
      left: auto;
      width: 24px;
  }
  .header__bottom__hamburger {
      display: flex;
      justify-content: center;
      align-items: center;
  }
  .header__bottom__menu {
      margin-left: 8px;
  }
  .header__favorites {
    right: 8px;
  }
  .header_nav__list {
    padding: 0 1rem 24px 1rem;
    margin: 0;
    position: relative;
  }
  .header_nav__anchor {
    padding: 0.875rem 0.35rem;
    font-size: 0.875rem;
    font-weight: 700;
    opacity: 1;
  }
  .header_nav__anchor::after{
    border: none;
  }
  .header_nav__item {
    border-bottom: 1px solid #fff;
  }
  .header__bottom__hamburger.js_hamburger{
    cursor: pointer;
  }
  .header_nav__tab {
    padding: 0.875rem 0.35rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid #FAE2ED;
    cursor: pointer;
    @media screen and (max-width: 768px) {
      opacity: 1 !important;
    }
  }
  .header_nav__tab::after{
    border: none;
  }
  .header_nav__tab:hover {
    opacity: 0.5;
  }
}
.accountWrap {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 8px;
}
.accountItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
}
.accountItem img {
  width: auto !important;
  height: 18px !important;
}
.accountItem span {
  color: var(--color-red);
  font-size: 8px;
  font-weight: 500;
  min-width: max-content;
}
.accountItem .countFavorites {
  position: absolute;
  width: 0.875rem;
  height: 0.875rem;
  background-color: var(--color-red);
  color: var(--color-light-pink);
  border-radius: 100%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.5rem;
  font-weight: 700;
  right: -5px;
  top: -5px;
}


.contentTitle {
  width: 125px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.contentTitle a {
  color: var(--color-red);
  font-size: 14px;
  font-weight: 500;
}

.borderContent {
  width: 1px;
  height: 17px;
  background: var(--color-red);
}

.header__button:hover:after {
  bottom: -2px !important;
  height: 2px !important;
}

.header_nav__list_tab {
  display: flex;
  flex-direction: column;
  position: relative;
}
