@charset "UTF-8";

.container {
    background-color: var(--primary-white);
    position: relative;
}

/*==========================
Header
==========================*/

.header {
    display: flex;
    justify-content: center;
    position: relative;
}

.topIcon {
    width: 22rem;
    height: 6rem;
    position: absolute;
    top: 2.5rem;
    left: 4.1rem;

}

.title_header {
    width: 80.8rem;
    height: 34.3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    border-left: 0.4rem solid var(--primary-black);
    border-right: 0.4rem solid var(--primary-black);
    border-bottom: 0.4rem solid var(--primary-black);
    border-radius: 0 0 2rem 2rem;
    box-shadow: 0.6rem 0.6rem 0 0 var(--primary-gray);
    background-image: url(../image/TOP/BG_TOP.jpg);
    background-repeat: repeat;
    background-size: 15rem 15rem;
    position: relative;
    overflow: clip;
    transform: translateY(-100%);
    animation: bounceDown 0.7s ease-out 1.1s forwards;
}

@keyframes bounceDown {
    0% {
        transform: translateY(-100%);
    }
    50% {
        transform: translateY(6%);
    }
    65% {
        transform: translateY(-3%);
    }
    80% {
        transform: translateY(1%);
    }
    95% {
        transform: translateY(-1%);
    }
    100% {
        transform: translateY(0);
    }
}


.title_header::after {
    content: "";
    display: block;
    width: 100%;
    height: 4rem;
    background: url(../image/GALLERY/Gizagiza_header.png) repeat;
    background-repeat: repeat-x;
    position: absolute;
    top: -2rem;
    background-size: contain;
}

.decolation_header {
    background-color: var(--primary-black);
    color: var(--primary-white);
    width: 100%;
    height: 5.6rem;
    font-family: "pf-videotext";
    font-size: 3.6rem;
    font-weight: 400;
    letter-spacing: -0.198rem;
    display: flex;
    justify-content: center;
}

.title_GALLERY {
    padding: 3.1rem 7.1rem 5rem 7.1rem ;
}

.title_GALLERY_sp {
    display: none;
}

.menuIcon {
    width: 7rem;
    height: 8.2rem;
    position: fixed;
    top: 2.5rem;
    right: 6.3rem;
    z-index: 100;
    mix-blend-mode: difference;
    cursor: pointer;
}

/* Header sp */
@media screen and (max-width: 768px) {

    .topIcon {
        display: none;
    }

    .title_header {
        width: 24.4rem;
        height: 9.6rem;
        border-left: 0.2rem solid var(--primary-black);
        border-right: 0.2rem solid var(--primary-black);
        border-bottom: 0.2rem solid var(--primary-black);
        border-radius: 0 0 1rem 1rem;
        box-shadow: 4px 4px 3px 0 var(--primary-gray);
    }

    .title_header::after {
        height: 1.2rem;
        top: -0.6rem;
    }

    .decolation_header {
        height: 1.9rem;
        font-size: 1rem;
        letter-spacing: -0.055rem;
        position: absolute;
        top: 1.5rem;
    }

    .title_GALLERY {
        display: none ;
    }

    .title_GALLERY_sp {
        display: block;
        padding: 1.7rem 2.5rem ;
    }

    .menuIcon {
        width: 3.3rem;
        height: 4rem;
        top: 1.2rem;
        right: 1.6rem;
    }
  
  }
  /* sp 768px */

/* 円形クロージングアニメーション用 */
.circle-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2001;
    pointer-events: none;
    display: none;
  }
  
  .circle-transition.active {
    display: block;
  }
  
  .circle-transition svg {
    width: 100%;
    height: 100%;
  }
  
  .circle-transition.closing {
    animation: none;
  }
  
  .circle-transition.opening {
    animation: none;
  }


/*==========================
Illust
==========================*/

.illust {
    margin-top: 12rem;
    display: flex;
    border-top: 0.2rem solid var(--primary-black);
    border-bottom: 0px solid var(--primary-black);
}

.category_illust {
    width: 8.4rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: var(--primary-black);
    color: var(--primary-white);
    font-size: 8rem;
    font-weight: 700;
    position: relative;
    padding: 2rem;
}

.categoryName {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    line-height: 1;
    position: sticky;
    top: 0;

}

.contents_illusts {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    width: calc(100% - 8.4rem );
    background-color: var(--primary-black);
    gap: 0.2rem;
}

.illust_img {
  cursor: pointer;
}

.illust_img img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    opacity: 0.95;
	-webkit-transition: -webkit-transform 0.35s;
	transition: transform 0.35s;
	-webkit-transform-origin: 50% 50%;
	transform-origin: 50% 50%;
}

.illust_img img:hover {
	-webkit-transform: scale3d(0.95,0.95,1);
	transform: scale3d(0.95,0.95,1);
}

/* Illust sp */
@media screen and (max-width: 768px) {

    .illust {
        margin-top: 3.7rem;
        border-top: 1px solid var(--primary-black);
        border-bottom: 0px solid var(--primary-black);
    }

    .category_illust {
        width: 2.9rem;
        font-size: 2.6rem;
    }
    
    .contents_illusts {
        grid-template-columns: repeat(2,1fr);
        width: calc(100% - 2.9rem);
        gap: 1px;
    }
    
  }
  /* sp 768px */


/*==========================
Works
==========================*/

.works {
    margin-top: 12rem;
    display: flex;
    border-top: 0.2rem solid var(--primary-black);
    border-bottom: 0.2rem solid var(--primary-black);
}

.illust_img {
    background-color: var(--primary-black);
}

/* Works sp */
@media screen and (max-width: 768px) {

    .works {
        margin-top: 3.7rem;
        border-top: 1px solid var(--primary-black);
        border-bottom: 0px solid var(--primary-black);
    }

    .category_works {
        width: 2.9rem;
        font-size: 2.6rem;
    }
    
    .contents_works {
        grid-template-columns: repeat(2,1fr);
        width: calc(100% - 2.9rem);
    }
    
  }
  /* sp 768px */


/*==========================
Modal
==========================*/

.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0,0.4);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  display: none;
}

.modal.active{
  display: flex;
}

.content_modal {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 100rem 1fr;
    place-items: center;
}

.btn_prev_modal {
    background-image: url(../image/GOODS/Arrow_prev.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    z-index: 3;
    overflow: hidden;
    transition: color 0.5s ease;
    transition-duration: 1s;
    width: 6rem;
    height: 8rem;
    aspect-ratio: 44 / 57;
    display: flex;
    align-items: center;
}

.btn_prev_modal:hover {
    transform: scale(1.1)
}

.btn_next_modal {
    background-image: url(../image/GOODS/Arrow_next.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    z-index: 3;
    overflow: hidden;
    transition: color 0.5s ease;
    transition-duration: 1s;
    width: 6rem;
    height: 8rem;
    aspect-ratio: 44 / 57;
    display: flex;
    align-items: center;
}

.btn_next_modal:hover {
    transform: scale(1.1)
}

.window_modal {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: none;
  position: relative;
}

.window_modal.active {
  display: flex;
}

.btn_close_modal {
    content: "";
    display: block;
    width: 6rem;
    height: 6rem;
    background: url(../image/MENU/Icon_close.svg) no-repeat center / cover;
    position: fixed;
    top: 2.5rem;
    right: 7.5rem;
    cursor: pointer;
    transition-duration: .4s;
    z-index: 500;
}

.btn_close_modal:hover {
    transform: scale(1.08);
}

.illust_modal {
 text-align: center;
 position: relative;
}

.illust_modal img {
  width: auto;
  height: auto;
  max-height: 75vh;
  border: 0.2rem solid var(--primary-black);
  box-shadow: 1.5rem 1.5rem 0 0 var(--primary-gray);
  object-fit: cover;
}

.name_modal {
    font-family: "zen-kaku-gothic-new";
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-white);
    line-height: 4.5rem;
    text-align: center;
    z-index: 500;
    margin-top: 3rem;
}

a.window_modal .name_modal{
    text-decoration:underline;
    text-decoration-color: var(--primary-white);
} 

.illust_modal:nth-of-type(19)::after {
    content: "";
    display: block;
    background-image: url(../image/GOODS/Icon_link.svg);
    background-size: cover;
    width: 3.2rem;
    height: 3.2rem;
    position: absolute;
    right: 0;
    top: 0;
}

/* Modal sp */
@media screen and (max-width: 768px) {

.content_modal {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 26.4rem 1fr;
}

.btn_prev_modal {
    background-image: url(../image/GOODS/Arrow_prev_sp.svg);
    width: 2.3rem;
    height: 3.1rem;
}

.btn_next_modal {
    background-image: url(../image/GOODS/Arrow_next_sp.svg);
    width: 2.3rem;
    height: 3.1rem;
}

.btn_close_modal {
    width: 3.3rem;
    height: 3.3rem;
    top: 1.2rem;
    right: 1.6rem;
}

.illust_modal img {
  height: auto;
  max-height: 60vh;
  border: 0.1rem solid var(--primary-black);
  box-shadow: 0.6rem 0.6rem 0 0 var(--primary-gray);
}

.name_modal {
    font-size: 1.4rem;
    line-height: 1;
    z-index: 500;
    margin-top: 1rem;
}
    
  }
  /* sp 768px */

/*==========================
Btn_links
==========================*/

.buttons {
    width: 100%;
    height: 24.6rem;
    background-color: var(--primary-white);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.buttons::after {
    content: "";
    display: block;
    width: 18.4rem;
    height: 23.8rem;
    background: url(../image/GALLERY/Emoji_MANURU_!.png) no-repeat center / cover;
    position: absolute;
    right: 15.8rem;
    bottom: -4rem;
    animation: bainbain 1.2s linear 0s infinite forwards;

}

@keyframes bainbain {
          0% { transform: translateY(0); }
          5% { transform: translateY(1px); }
         20% { transform: translateY(-7px); }
         35% { transform: translateY(0); }
         45% { transform: translateY(-4px); }
         60% { transform: translateY(0px); }
         70% { transform: translateY(-1px); }
         75% { transform: translateY(0); }
        100% { transform: translateY(0); }
    
}

.btn_pageTransition {
    width: 59.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn_goodsPage {
  width: 28.7rem;
  height: 8.7rem; 
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-black);
  color: var(--primary-black);
  -webkit-text-stroke-width: 0.2rem;
  -webkit-text-stroke-color: var(--primary-white);
  text-shadow: 0.3rem 0.3rem 0 var(--primary-white);
  font-size: 4rem; 
  font-weight: 900;
  letter-spacing: -0.2rem;
  border: 0.2rem solid var(--primary-black);
  box-shadow: 0.6rem 0.6rem 0 0 var(--primary-gray);
  overflow: hidden;
  position: relative;
  z-index: 1;
  flex-direction: row-reverse;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.btn_goodsPage::before {
  content: "";
  width: 1.95rem;
  height: 2.6rem;
  background: url(../image/TOP/Button_Arrow.svg) no-repeat center / cover;
  margin-left: 2rem;
}

.btn_goodsPage::after {
  background: var(--primary-orange);
  position: absolute;
  top: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
  transform: scale(0, 1);
  transform-origin: left top;
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
  z-index: -1;
}

.btn_goodsPage:hover {
  color: var(--primary-white);
  -webkit-text-stroke-color: var(--primary-black); 
  -webkit-text-stroke-width: 0.2rem;
  text-shadow: 0.4rem 0.4rem 0 var(--primary-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.btn_goodsPage:hover::after {
 transform: scale(1,1);
}

.btn_aboutPage {
  width: 28.7rem;
  height: 8.7rem; 
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-black);
  color: var(--primary-black);
  -webkit-text-stroke-width: 0.2rem;
  -webkit-text-stroke-color: var(--primary-white);
  text-shadow: 0.3rem 0.3rem 0 var(--primary-white);
  font-size: 4rem; 
  font-weight: 900;
  letter-spacing: -0.2rem;
  border: 0.2rem solid var(--primary-black);
  box-shadow: 0.6rem 0.6rem 0 0 var(--primary-gray);
  overflow: hidden;
  position: relative;
  z-index: 1;
  flex-direction: row-reverse;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.btn_aboutPage::before {
  content: "";
  width: 1.95rem;
  height: 2.6rem;
  background: url(../image/TOP/Button_Arrow.svg) no-repeat center / cover;
  margin-left: 2rem;
}

.btn_aboutPage::after {
  background: var(--primary-blue);
  position: absolute;
  top: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
  transform: scale(0, 1);
  transform-origin: left top;
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
  z-index: -1;
}

.btn_aboutPage:hover {
  color: var(--primary-white);
  -webkit-text-stroke-color: var(--primary-black); 
  -webkit-text-stroke-width: 0.2rem;
  text-shadow: 0.4rem 0.4rem 0 var(--primary-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.btn_aboutPage:hover::after {
 transform: scale(1,1);
}

/* Btn_links sp */
@media screen and (max-width: 768px) {

    .buttons {
        height: 25rem;
        position: relative;
    }

    .buttons::after {
        content: "";
        display: block;
        width: 13rem;
        height: 13rem;
        background: url(../image/GALLERY/Emoji_MANURU_!_sp.png) no-repeat center / cover;
        position: absolute;
        right: 11.6rem;
        bottom: -2.5rem;
    }

    .btn_pageTransition{
        width: 15.6rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: absolute;
        top: 2.2rem;
    }

    .btn_goodsPage {
        width: 100%;
        height: 4.2rem; 
        background-color: var(--primary-orange);
        color: var(--primary-white);
        -webkit-text-stroke-width: 0.1rem;
        -webkit-text-stroke-color: var(--primary-black);
        text-shadow: 0.2rem 0.2rem 0 var(--primary-black);
        font-size: 2.4rem; 
        font-weight: 900;
        letter-spacing: -0.168rem;
        border: 2px solid var(--primary-black);
        box-shadow: 0.6rem 0.6rem 0 0 var(--primary-gray);
      }

      .btn_goodsPage::before {
        content: "";
        width: 1.4rem;
        height: 1.9rem;
        margin-left: 1.2rem;
      }

      .btn_goodsPage::after {
        background: var(--primary-black);
        transition: unset ;
      }

      .btn_goodsPage:hover {
        color: var(--primary-black);
        -webkit-text-stroke-color: var(--primary-white); 
        -webkit-text-stroke-width: 0.1rem;
        text-shadow: 0.2rem 0.2rem 0 var(--primary-white);
      }

      .btn_aboutPage {
        margin-top: 1.5rem;
        width: 100%;
        height: 4.2rem; 
        background-color: var(--primary-blue);
        color: var(--primary-white);
        -webkit-text-stroke-width: 0.1rem;
        -webkit-text-stroke-color: var(--primary-black);
        text-shadow: 0.2rem 0.2rem 0 var(--primary-black);
        font-size: 2.4rem; 
        font-weight: 900;
        letter-spacing: -0.168rem;
        border: 2px solid var(--primary-black);
        box-shadow: 0.6rem 0.6rem 0 0 var(--primary-gray);
      }

      .btn_aboutPage::before {
        content: "";
        width: 1.4rem;
        height: 1.9rem;
        margin-left: 1.2rem;
      }

      .btn_aboutPage::after {
        background: var(--primary-black);
        transition: unset ;
      }

      .btn_aboutPage:hover {
        color: var(--primary-black);
        background-color: var(--primary-black);
        -webkit-text-stroke-color: var(--primary-white); 
        -webkit-text-stroke-width: 0.1rem;
        text-shadow: 0.2rem 0.2rem 0 var(--primary-white);
      }

  }
  /* sp 768px */

/* Safariのみに適用する調整 */
@supports (-webkit-hyphens:none) {
  /* Safari専用 */
  .btn_goodsPage,
  .btn_aboutPage {
    text-shadow: 0.25rem 0.25rem 0 var(--primary-black);
  }

  .btn_goodsPage:hover,
  .btn_aboutPage:hover {
    text-shadow: 0.3rem 0.3rem 0 var(--primary-black);
}
     @media screen and (max-width: 768px) {
      .btn_aboutPage,
      .btn_goodsPage {
        text-shadow: 0.21rem 0.15rem 0 var(--primary-black);
      }

      .btn_aboutPage:hover,
      .btn_goodsPage:hover {
            text-shadow: 0.21rem 0.15rem 0 var(--primary-white);
  }
  }
}
