/******************************/
/* SLIDER */
/******************************/

.p-top__hero-inner{
  --bottom: 1px;
  padding-bottom: var(--bottom);
}

#slider div {
  width: 100%;
  max-width: 100%;
  height: auto;
}
#slider > div {
  display: none;
}
.bx-viewport #slider > div {
  display: block;
}
.bx-wrapper {
  z-index: 0;
}
.bx-wrapper img {
  max-width: none!important;
  width: 100vw;
  height: auto;
}
.bx-wrapper .bx-viewport {
  box-shadow: none !important;
  border: 0 !important;
  left: 0 !important;
}
.bx-wrapper .bx-pager {
  --space: -20px;
  bottom: var(--space) !important;
}


.bx-wrapper .bx-pager.bx-default-pager a {
  --space: 5px;
  --width: 6px;
  margin: 0 var(--space) !important;
  width: var(--width) !important;
  height: var(--width) !important;
  background-color: var(--color-grey)!important;
  border-radius: 50% !important;
}
.bx-wrapper .bx-pager.bx-default-pager a:hover, .bx-wrapper .bx-pager.bx-default-pager a.active {
  background: var(--color-black) !important;
}

.bx-wrapper .bx-controls-direction a {
  --width: 20px;
  --space: 15px;
  margin-top: 0!important;
  width: var(--width)!important;
  height: var(--width) !important;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  rotate: var(--rotate);
  translate: 0 -40%;
  background-image: none!important;
}

.bx-wrapper .bx-controls-direction .bx-prev{
  --rotate: 225deg;
  left: var(--space)!important;
}
.bx-wrapper .bx-controls-direction .bx-next{
  --rotate: 45deg;
  right: var(--space)!important;
}

@media screen and (min-width: 768px) {
  .p-top__hero-inner{
    --bottom: 10px;
    padding-bottom: var(--bottom);
  }
  .bx-wrapper .bx-controls-direction a {
    --width: 20px;
    --space: 25px;
  }
  .bx-wrapper .bx-pager {
    --space: -40px;
  }
  .bx-wrapper .bx-pager.bx-default-pager a {
    --width: 11px;
    --space: 10px;
  }
}

/**** ファーストビュー ****/
.p-top__hero{
  width: 100%;
  position: relative;
  overflow: clip;
}

/**** メッセージ ****/
.p-top__message{
  overflow-x: clip;
}

.p-top__message .l-container{
  position: relative;
}

.p-top__message-logo{
  margin-bottom: 40px;
  margin-inline: auto;
  width: min(100%, 94px);
  display: block;
  height: auto;
}

.p-top__message-p1{
  margin-bottom: 1em;
  font-size: var(--font-size-24);
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1.8;
}

.p-top__message-p1,
.p-top__message-p2{
  text-align: left;
  width: fit-content;
  margin-inline: auto;
}

.p-top__message-images{
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 27px;
}

.p-top__message-image{
  --position: static;
  --width: 200px;
  position: var(--position);
  display: block;
  width: var(--width);
  aspect-ratio: 1;
  height: auto;
}

.p-top__message-image--first{
  margin-top: 50px;
}

@media screen and (min-width: 768px) {
  .p-top__message-p1,
  .p-top__message-p2{
    text-align: center;
  }

  .p-top__message-image{
    --width: 300px;
    --position: absolute;
  }

  .p-top__message-image--first{
    --width: 322px;
    margin-top: 50px;
    bottom: -50px;
    right: calc( 50% + 350px);
  }

  .p-top__message-image--second{
    --width: 315px;
    top: 0;
    left: calc( 50% + 330px);
  }
}


/*** ニュース ***/

.p-top__news-title{
  --margin-bottom: 20px;
  margin-bottom: var(--margin-bottom);
  text-align: center;
}

.p-top__news-inner.l-container{
   width: min(100% - calc( var(--inner-padding) * 2 ), 740px);
}

.p-top__news-lists{
  margin-bottom: 50px;
}

.p-top__news-button{
  position: relative;
  display:block;
  width: fit-content;
  margin-inline-start: auto;
  font-family: var(--font-family-en2);
  font-size: var(--font-size-14);
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-bottom: 6px;
  color: #333!important;
}

.p-top__news-button::after{
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #333;
  transform: scale(0);
  transform-origin: center left;
  transition: transform .3s ease-out;
}


@media screen and (min-width: 768px) {
  .p-top__news-title{
    --margin-bottom: 60px;
  }
  .p-top__news-button:hover::after{
      transform: scale( 1 );
  }
}




/**** カテゴリー ****/

.p-top__category-title{
  margin-bottom: 60px;
}

.p-top__category-cards{
  --columns: repeat(2, 1fr);
  --gap: 30px 10px;
  display: grid;
  grid-template-columns: var(--columns);
  gap: var(--gap);
}

.p-top__category-card{
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  gap: 0;  
}

/* Firefox専用 */
@-moz-document url-prefix() {
  .p-top__category-card {
  	grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-row: auto;
  }
}

.p-top__category-card figure,
.p-top__category-card figcaption {
  display: contents;
}

.p-top__category-card figcaption a {
  cursor: pointer;
}

.p-top__category-card img{
  margin-bottom: 20px;
  display: block;
  width: 100%;
  aspect-ratio: 340 / 272;
  height: auto;
  background-color: aliceblue;
  border-radius: 40px;
}


.p-top__category-card h3{
  text-align: center;
  margin-bottom: 20px;
  font-size: var(--font-size-20);
  font-weight: 500;
}

.p-top__category-card p{
  margin-bottom: 30px;
}

.p-top__category-card-button{
  align-self: end;
}

@media screen and (min-width: 768px) {
  .p-top__category-cards{
    --columns: repeat( 3, 1fr);
    --gap: 60px 40px;
  }
}


/*** dog or cat ***/

.p-top__pet-select-title{
  margin-bottom: 30px;
  justify-content: center;
  display: flex;
  align-items: center;
  font-size: calc( 24 / 16 * 1rem);
  font-family: var(--font-family-en2);
  line-height: 1;
}

.p-top__pet-select-title span{
  font-size: calc( 100 / 50 * 1em);
  text-transform: capitalize;
  display: inline-block;
  padding: 0 .2em ;
}

.p-top__pet-select-options{
  --gap: 8px;
  width: min(100%, 860px);
  margin-inline: auto;
  display: flex;
  gap: var(--gap);
}

.p-top__pet-select-option{
  --bg-color: #E2DDD7;
  border: 2px solid var(--bg-color);
  width: calc( 50% - var(--gap) / 2 ) ;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: min( 80 / 1200 * 100vw, 80px) ;
  background-color: #fff;
  transition: background-color .3s ease-out;
  color: #333!important;
}

.p-top__pet-select-option:hover{
  background-color: var(--bg-color);
}

.p-top__pet-select-option figure{
  display: contents;
}

.p-top__pet-select-option img{
  margin-top: var(--margin-top);
  margin-inline: auto;
  display: block;
  height: auto;
}


.p-top__pet-select-option--dog img{
  --margin-top: 20px;
  width: calc( 257 / 405 * 100%);
}

.p-top__pet-select-option--cat img{
  --margin-top: 10px;
  width: calc( 105 / 405 * 100%);
}

.p-top__pet-select-option figcaption{
  text-align: center;
  font-family: var(--font-family-en2);
  font-size: var(--font-size-30);
}

@media screen and (min-width: 768px) {
  .p-top__pet-select-title{
    margin-bottom: 60px;
    font-size: calc( 50 / 16 * 1rem);
  }

  .p-top__pet-select-options{
    --gap: 50px;
  }
  .p-top__pet-select-option--dog img{
    --margin-top: 50px;
  }
  .p-top__pet-select-option--cat img{
    --margin-top: 20px;
  }
  
  
}

/*** brand ***/

.p-top__brand{
  padding: 60px 0;
  position: relative;
}

.p-top__brand::after,
.p-top__brand-bg{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.p-top__brand::after{
  content: "";
  background-color: rgb( 0 0 0 / .4);
  z-index: 1;
}

.p-top__brand-bg{
  z-index: 1;
  object-fit: cover;
}

.p-top__brand-inner{
  position: relative;
  z-index: 2;
  color:#fff;
}

.p-top__brand *{
  text-align: center;
}

.p-top__brand-title{
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 2;
  font-weight: 500;
  letter-spacing: .2em;
}

.p-top__brand-p1{
  margin-bottom: 30px;
  font-size: var(--font-size-40);
  font-family: var(--font-family-en2);
}

.p-top__brand-p2{
  margin-bottom: 40px;
}

.c-button-2.p-top__brand-button{
  margin-inline: auto;
  font-family: var(--font-family-en1);
  letter-spacing: .3em;
}

@media screen and (min-width: 768px) {
  .p-top__brand{
    padding: 100px 0;
  }

  .p-top__brand-title{
    margin-bottom: 30px;
  }

  .p-top__brand-p2{
    margin-bottom: 50px;
  }
}

/*** レコメンド　ランキング ***/

.p-top__recommend-title,
.p-top__rank-title{
  margin-bottom: 30px;
}

@media screen and (min-width: 768px) {
  .p-top__recommend-title,
  .p-top__rank-title{
    margin-bottom: 60px;
  }
}
