@charset "UTF-8";

/* カテゴリーバナー */
@media screen and (min-width: 768px) {
  .category-bnr-list {
    margin-top: 1rem;
    display: flex;
    gap: 7px;
    justify-content: space-between;
  }

  .category-bnr-list li {
    max-width: 408px;
  }

  .category-bnr-list img {
    border-radius: 4px;
  }
}

@media screen and (max-width: 767px) {
  .flickity-page-dots {
      display: none;
  }

  .flickity-button {
      display: none;
  }

  .category-bnr-list {
      margin-top: 1rem;
  }

  .category-bnr-list li {
      width: 270px;
      margin-right: 7px;
  }

  .category-bnr-list img {
      width: 100%;
      height: auto;
      border-radius: 0.4rem;
  }
}

/* ギフトページトップボタン */
.btn__container {
  width: 100%;
  margin-bottom: 6rem;
}

.g-btn__list {
  display: flex;
  margin: auto;
}

.g-btn__list--main {
  max-width: 540px;
  column-gap: 4rem;
  margin-top: 4rem;
}

.g-btn__list--main .g-btn {
  width: 250px;
  padding: 1.5rem 0;
  font-size: 1.6rem;
}

.g-btn {
  display: block;
  border: 1px solid #393c41;
  border-radius: 4px;
  text-align: center;
}

.g-btn.active {
  background-color: #79888b;
  border: 1px solid #79888b;
  color: #fff;
}

@media (any-hover: hover){
  .g-btn:hover {
    background-color: #79888b;
    border: 1px solid #79888b;
    color: #fff;
  }
}

.g-title {
  margin-top: 4rem;
  text-align: center;
  font-size: 2rem;
}

.g-btn__list--sub {
  justify-content: center;
  margin-top: 2rem;
  column-gap: 2rem;
  max-width: 1200px;
}

.g-btn__list--sub .g-btn {
  padding: 0.6rem 2rem;
  font-size: 1.4rem;
}

@media screen and (max-width: 767px) {
  .btn__container {
    padding: 0 1.5rem;
    margin-bottom: 4rem;
  }

  .g-btn__list--main {
    column-gap: 0;
    width: 100%;
    justify-content: space-between;
    margin-top: 4rem;
  }

  .g-btn__list--main .g-btn__item {
    width: calc((100% - 2rem) / 2);
  }

  .g-btn__list--main .g-btn {
    width: 100%;
    padding: 1.5rem 0;
    font-size: 1.6rem;
  }

  .g-title {
    margin-top: 4rem;
    font-size: 1.8rem;
  }

  .g-btn__container--sub {
    overflow: auto;
    padding-bottom: 1rem;
  }

  .g-btn__list--sub {
    column-gap: 0.8rem;
    width: 570px;
    justify-content: flex-start;
  }

  .g-btn__list--sub.small {
    width: 505px;
  }
}

/* ギフトページピックアップ */
.g-pickup__container {
  width: 760px;
  margin: 0 auto 12rem;
}

.g-pickup__title {
  font-size: 2rem;
  font-weight: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5rem;
}

.g-pickup__title:before , .g-pickup__title:after {
  border-top: 2px solid #393c41;
  content: "";
  width: 2em;
}

.g-pickup__title:before {
  margin-right: 0.3em;
}

.g-pickup__title:after {
  margin-left: 0.3em;
}

.g-pickup__item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.g-pickup__item:nth-last-of-type(even) {
  flex-direction: row-reverse;
}

.g-pickup__item + .g-pickup__item {
  margin-top: 8rem;
}

@media (any-hover: hover){
  .g-title__box:hover , g-addcart__area {
    opacity: 0.8;
    transition: 0.3s;
  }
  .g-pickup__img:hover {
    opacity: 0.5;
    transition: 0.3s;
  }
}

.g-pickup__img {
  width: calc((100% - 4rem) / 2);
}

.g-pickup__img img {
  border-radius: 4px;
}

.g-pickup__text {
  width: calc((100% - 4rem) / 2);
}

.g-productname {
  font-size: 1.6rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #393c41;
  position: relative;
  text-align: left;
}

.g-productname::after{
  position: absolute;
  top: 50%;
  right: 6px;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  content: "";
  transform: rotate(0deg) translate(-50%, -50%);
  border-top: solid 2px #393c41;
  border-right: solid 2px #393c41;
  transform: rotate(45deg);
}

.g-price {
  font-size: 1.4rem;
  font-weight: 400;
  text-align: right;
  margin-top: 0.6rem;
}

.g-detail {
  background-color: #fff;
  padding: 3rem;
  font-size: 1.4rem;
  border-radius: 4px;
  margin-top: 3rem;
}

.g-addcart__area {
  text-align: right;
  margin-top: 2rem;
}

.g-addcart__link {
  display: inline-block;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid #393c41;
  position: relative;
  padding-right: 1.8rem;
}

.g-addcart__link::after{
  position: absolute;
  top: 50%;
  right: 6px;
  width: 8px;
  height: 8px;
  margin-top: -5px;
  content: "";
  transform: rotate(0deg) translate(-50%, -50%);
  border-top: solid 1px #393c41;
  border-right: solid 1px #393c41;
  transform: rotate(45deg);
}

.g-comment-area {
  margin-top: 2rem;
}

.g-comment-tag {
  background-color: #000030;
  border-radius: 4px;
  padding: 0.3rem 1rem;
  display: inline-block;
  color: #fff;
  margin-bottom: 0.5rem;
}

.g-comment-name {
  margin-top: 0.5rem;
}

@media screen and (max-width: 767px) {
  .g-pickup__container {
    width: 100%;
    padding: 0 3rem;
    margin-bottom: 6rem;
  }

  .g-pickup__title {
    text-align: center;
  }

  .g-pickup__title:before , .g-pickup__title:after {
    content: none;
  }

  .g-pickup__item {
    width: 100%;
    flex-direction: column;
  }

  .g-pickup__item:nth-last-of-type(even) {
    flex-direction: column;
  }

  .g-pickup__item + .g-pickup__item {
    margin-top: 4rem;
  }
  
  .g-pickup__img {
    width: 100%;
  }
  
  .g-pickup__text {
    width: 100%;
    background-color: #fff;
    border-radius: 4px;
    padding: 2rem;
    margin-top: 2rem;
  }

  .g-productname {
    font-size: 1.4rem;
  }

  .g-productname::after{
    position: absolute;
    top: 50%;
    right: 6px;
    width: 10px;
    height: 10px;
    margin-top: -7px;
    content: "";
    transform: rotate(0deg) translate(-50%, -50%);
    border-top: solid 2px #393c41;
    border-right: solid 2px #393c41;
    transform: rotate(45deg);
  }

  .g-price {
    font-size: 1.2rem;
    font-weight: 400;
    text-align: right;
    margin-top: 0.6rem;
  }

  .g-detail {
    padding: 0;
    font-size: 1.4rem;
    margin-top: 2rem;
  }

  .g-addcart__link::after{
    margin-top: -4px;
  }
}

/* information */
.gift-category-info {
  padding: 27px 0;
  border-radius: 0 0 4px 4px;
  background: #fff;
}

.gift-category-info .text-holder {
  max-width: 760px;
  margin: auto;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .gift-category-info {
    padding: 20px 0;
  }

  .gift-category-info .text-holder {
    margin: auto 2rem;
    text-align: left;
  }
}

/* アコーディオンテキスト装飾 */
.header-brand .categoryInfo {
  display: flex;
  justify-content: center;
  position: relative;
  padding: 27px 0;
  border-radius: 0 0 4px 4px;
  background: #fff;
  /* cursor: pointer; */
}

.header-brand .categoryInfo .text-holder {
  position: relative;
  margin: auto;
  max-width: 1000px;
}

.header-brand .categoryInfo .text-holder .text {
  /* max-width: 760px; */
  /* max-height: 20px; */
}

.header-brand .categoryInfo .text-holder .read-more {
  position: absolute;
  top: 0;
  right: 0;
  -webkit-transform: translateX(100%);
          transform: translateX(100%);
}

.header-brand .categoryInfo .btn-read-more {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 40px;
}

.header-brand .categoryInfo .text-holder .text-line-1 {
  overflow: auto;
  text-overflow: clip;
  white-space: wrap;
}

/* .header-brand .categoryInfo.open .text-holder .text-line-1 {
  max-height: none;
  text-overflow: unset;
  white-space: normal;
} */

.header-brand .categoryInfo.open .text-holder .read-more {
  display: none;
}

.header-brand .categoryInfo.open .readmoreBtn {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

@media screen and (max-width: 767px) {
  .header-brand .categoryInfo {
    flex-direction: column;
    background: #fff;
    padding: 20px 0;
    position: relative;
    cursor: pointer;
  }
  
  .header-brand .categoryInfo .text-holder {
    margin: auto 20px;
    position: relative;
    font-size: 12px;
  }
  
  .header-brand .categoryInfo .text-holder .text {
    width: 100%;
    max-height: 20px;
  }
  
  .header-brand .categoryInfo .text-holder .read-more {
    font-size: 12px;
    text-align: center;
  }
  
  .header-brand .categoryInfo .btn-read-more {
    margin-top: 0px;
  }
  
  .header-brand .categoryInfo .text-holder .text-line-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* max-width: 360px; */
  }

  .header-brand .categoryInfo.open .text-holder .text-line-1 {
    text-overflow: unset;
    max-height: none;
    white-space: normal;
  }
  
  .header-brand .categoryInfo.open .text-holder .read-more {
    display: none;
  }

  .header-brand .categoryInfo .readmoreBtn {
    display: block;
    background: url(../images/icon/arrow_down_black.svg) no-repeat center center / 17px 10px;
    width: 100%;
    height: 30px;
    margin-bottom: -10px;
  }
  
  .header-brand .categoryInfo.open .readmoreBtn {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
  }
}
/* チャートへのリンク */
.categorylink-block {
  padding-top: 2.4rem;
}

.categorylink-block__inner {
  max-width: 400px;
  margin: 0 0 0 auto;
}

.categorylink__item {
  display: flex;
  justify-content: space-between;
}

.categorylink__item a {
  position: relative;
}

.categorylink__item a::before {
  position: absolute;
  content: "";
  background: url(../images/category/chartIcon.svg);
  background-size: 100%;
  background-repeat: no-repeat;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.8rem;
  left: -1.8rem;
}

.categorylink__item a span {
  text-decoration: underline;
}

@media screen and (max-width: 767px) {
  .categorylink-block {
    padding: 2.4rem;
  }

  .categorylink-block__inner {
    max-width: 300px;
  }

  .categorylink__item {
    gap: 2rem;
  }
  
  .categorylink__item a {
    font-size: 1rem;
  }

  .categorylink__item a::before {
    width: 1.2rem;
    height: 1.3rem;
    left: -1.7rem;
  }
}

/* チャート図モーダル化 */
.chartmodal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;   
  background-color: rgba(0,0,0,0.7);
}
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90vh;
  padding: 25px;
}
.chartModalImage {
  margin: 0 auto;
  overflow: auto;
}
.chartModalImage img {
  width: auto;
  max-width: 100%;
}
.modal-buttons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 15px;
}
.modal-button {
  max-width: 210px;
  width: 100%;
  text-align: center;
  position: relative;
  padding: 10px 30px;
  background-color: #2c2e33;
  border-radius: 4px;
  color: #fff;
  border: none;
  cursor: pointer;
}
.modal-button.chartModalcloseBtn::before,
.modal-button.chartModalcloseBtn::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 15%;
  width: 2px;
  height: 15px; 
  background: #fff;
}
.modal-button.chartModalcloseBtn::before {
  transform: translate(-50%,-50%) rotate(45deg);
}
.modal-button.chartModalcloseBtn::after {
  transform: translate(-50%,-50%) rotate(-45deg);
}

.modal-button.newtabBtn::before {
  position: absolute;
  content: '';
  top: 50%;
  right: 9%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: url(../images/icon/icon-target.svg) no-repeat center center / contain;
}
@media (max-width: 768px) {
  .modal-content {
    max-height: 65vh;
    padding: 15px;
  }
  .modal-buttons {
      display: flex;
      justify-content: center;
      gap: 10px;
  }

  .chartModalImage img {
    width: 100%;
  }
  .modal-button {
      flex: 1;
      padding: 12px 10px;
      font-size: 1.2rem;
  }
  .modal-button.chartModalcloseBtn::before,
  .modal-button.chartModalcloseBtn::after{
    height: 10px; 
  }
  .modal-button.newtabBtn::before {
    width: 10px;
    height: 10px;
    top: 54%;
    right: 9.5%;
  }
}