/* chara-gallery
-------------------------------------------*/

#page_title_chara p{
  font-size: calc(100px * 0.9);
}
.head-area{
  width: var(--page-width);
  margin: 0 auto;
  padding: 100px 0 200px;
}

/* Character Visual */
.character-visual{
  position: relative;
  width: min(1000px, 82%);
  margin: 7rem auto 0;
}
.character-visual > img{
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}
/* Decorations */
.character-visual .deco{
  position: absolute;
  display: block;
  pointer-events: none;
}
.deco-stripe{
  width: 200px;
  aspect-ratio: 1;
  top: -10%;
  left: -16%;
  border-radius: 50%;
  background: repeating-linear-gradient(
    125deg,
    var(--green) 0 8px,
    transparent 8px 23px
  );
  -webkit-mask-image: radial-gradient(circle, #000 68%, transparent 69%);
  mask-image: radial-gradient(circle, #000 68%, transparent 69%);
  animation: float 5s ease-in-out infinite;
}
.deco-circle{
  width: 65px;
  aspect-ratio: 1;
  right: -15%;
  top: 48%;
  border: 9px solid var(--orange);
  border-radius: 50%;
  animation: float 4s ease-in-out infinite;
}
.deco-dot{
  width: 135px;
  height: 135px;
  right: -5%;
  bottom: -12%;
  z-index: 2;
  background-image: radial-gradient(circle, #99dbd8 0 6px, transparent 0);
  background-size: 23px 23px;
  animation: float 6s ease-in-out infinite;
}
/* Floating Animation */
@keyframes float{
  0%, 100%{transform: translateY(0);}
  50%{transform: translateY(-15px);}
}

@media (max-width: 650px){
  
  .main_visual .img img{
    object-position: 80% center;
  }
  #page_title_chara p{
    font-size: calc(40px * 0.9);
  }
  .head-area{
    padding: 15% 0;
  }
  /* Character Visual */
  
  .character-visual{
    width: 96%;
    margin: 7rem auto;
  }
  .character-visual > img{
    border-radius: 10px;
  }
  .deco-stripe{
    width: 100px;
    left: -15%;
    top: -12%;
    background: repeating-linear-gradient(
      125deg,
      var(--green) 0 7px,
      transparent 7px 16px
    );
  }
  .deco-circle{
    width: 35px;
    border-width: 5px;
    right: -12%;
  }
  .deco-dot{
    width: 70px;
    height: 70px;
    right: -10%;
    bottom: -12%;
    background-size: 14px 14px;
    background-image: radial-gradient(circle, #96dcd9 0 3px, transparent 0px);
  }
}


/* Gallery Section */

.gallery-div{
  width: var(--page-width);
  margin: 0 auto;
}
.gallery-div h3{
  margin-bottom: 50px;
}

/* Gallery Grid */
.gallery-list{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.gallery-item{
  grid-column: span 2;
  display: block;
  overflow: hidden;
  border: 1px solid #ddd;
}
.gallery-item img{
  display: block;
  width: 100%;
  height: auto;
}

/* Work Scene */
.gallery-work .gallery-item:nth-child(4),
.gallery-work .gallery-item:nth-child(5){
  grid-column: span 3;
}

/* Sports */
.gallery-sports .gallery-list{
  grid-template-columns: repeat(6, 1fr);
  align-items: start;
  padding-bottom: 20px;
}
.gallery-sports .gallery-item:nth-child(1){
  grid-column: 1 / 3;
  grid-row: 1;
}
.gallery-sports .gallery-item:nth-child(2){
  grid-column: 3 / 5;
  grid-row: 1;
}
.gallery-sports .gallery-item:nth-child(3){
  grid-column: 5 / 7;
  grid-row: 1 / 3;
}
.gallery-sports .gallery-item:nth-child(4){
  grid-column: 1 / 5;
  grid-row: 2;
}
.gallery-sports .gallery-item:nth-child(5){
  grid-column: 1 / 4;
  grid-row: 3;
}
.gallery-sports .gallery-item:nth-child(6){
  grid-column: 4 / 7;
  grid-row: 3;
}

/* Season & Event */
.gallery-season .gallery-item:nth-child(1),
.gallery-season .gallery-item:nth-child(2){
  grid-column: span 3;
}

@media screen and (max-width: 650px){
  
  .chara-gallery .gallery-div{
    margin-bottom: -10%;
  }
  #main .gallery-div h3{
    margin-bottom: 25px;
    font-size: 24px;
    line-height: 1.25;
  }
  .gallery-list{
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .gallery-item,
  .gallery-work .gallery-item:nth-child(4),
  .gallery-work .gallery-item:nth-child(5),
  .gallery-season .gallery-item:nth-child(1),
  .gallery-season .gallery-item:nth-child(2){
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .gallery-sports .gallery-item{
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
  .gallery-sports .gallery-item:nth-child(3) img{
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    object-position: center 8%;
  }
}

/* Character More Button */

.chara-more{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: var(--page-width);
  min-height: 180px;
  padding: 30px 40px;
  margin: 0 auto 200px;
  overflow: hidden;
  text-decoration: none;
  line-height: 1.5;
  border-radius: 25px;
  background: var(--green);
  color: #fff;
}
.chara-more__text{
  position: relative;
  z-index: 1;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
}
.chara-more__arrow{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  transition: transform .3s ease;
}
.chara-more:hover .chara-more__arrow{
  transform: translate(4px,-4px);
}
.chara-more .deco{
  position: absolute;
  display: block;
  pointer-events: none;
  animation-name: float-soft;
}
@keyframes float-soft{
  0%, 100%{transform: translateY(0);}
  50%{transform: translateY(-10px);}
}
.chara-more .deco-stripe{
  width: 200px;
  aspect-ratio: 1;
  top: -45px;
  left: -5px;
  border-radius: 50%;
  background: repeating-linear-gradient(125deg, #fff 0 6px, transparent 6px 20px);
  -webkit-mask-image: radial-gradient(circle, #000 68%, transparent 69%);
  mask-image: radial-gradient(circle, #000 68%, transparent 69%);
}
.chara-more .deco-dot{
  background-image: radial-gradient(circle, #51c4be 0 6px, transparent 0);
  background-size: 26px 26px;
}
.chara-more .deco-dot-top{
  width: 160px;
  height: 80px;
  top: 0;
  left: 27%;
}
.chara-more .deco-dot-right{
  width: 106px;
  height: 96px;
  right: 12%;
  bottom: 20px;
  background-size: 20px 20px;
  background-image: radial-gradient(circle, #51c4be 0 4px, transparent 0);
}
.chara-more .deco-circle{
  width: 70px;
  aspect-ratio: 1;
  border: 8px solid var(--orange);
  border-radius: 50%;
}
.chara-more .deco-circle-top{
  top: 40px;
  right: 2%;
}
.chara-more .deco-circle-bottom{
  bottom: -55px;
  left: 14%;
}

@media (max-width: 650px){
  
  .chara-more{
    width: 90%;
    min-height: 150px;
    margin: 10% auto 40%;
    gap: 10px;
    border-radius: 12px;
  }
  .chara-more__text{
    font-size: 19px;
    letter-spacing: 0;
  }
  .chara-more__arrow{
    width: 24px;
    height: 24px;
  }
  .chara-more .deco-stripe{
    width: 80px;
    top: -10px;
    left: -15px;
    background: repeating-linear-gradient(125deg, #fff 0 5px, transparent 5px 13px);
  }
  .chara-more .deco-dot-top{
    width: 60px;
    height: 40px;
    left: 30%;
    background-size: 15px 15px;
    background-image: radial-gradient(circle, #51c4be 0 3px, transparent 4px);
  }
  .chara-more .deco-dot-right{
    width: 70px;
    height: 60px;
    right: 1%;
    bottom: 5px;
    background-size: 15px 15px;
    background-image: radial-gradient(circle, #51c4be 0 3px, transparent 4px);
  }
  .chara-more .deco-circle{
    width: 26px;
    border-width: 4px;
  }
  .chara-more .deco-circle-top{
    top: 8px;
    right: 10px;
  }
  .chara-more .deco-circle-bottom{
    bottom: -30px;
    left: 5%;
  }
}