html{
  scroll-behavior: smooth;
}

:root{
  --main-bg-color: transparent;
  --main-font-color: #0f0f0f;
  --sub1-font-color: #ffffff;
  --main-button-color: #0f0f0f;
  --main-button-bg-color: transparent;
  --main-button-font-color: #ffffff;
  --main-shadow-color: #606060;
  --main-font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --cursor-default: default;
  --cursor-pointer: pointer;
}

@view-transition{
  navigation: auto;
}

body{
  max-width: 100vw;
  min-width: 100vw;
  font-family: var(--main-font-family);
  background-color: #ffffff;  
  overflow-x: hidden;
  margin: 0;
}

main{
  background: #ffffff;
  @media screen and (min-width: 961px){
    background-size: 100%;
  }
  @media screen and (max-width: 960px){
    background-position: center;
    background-size: 150%;
  }
}

a{
  text-decoration: none;
  cursor: var(--cursor-pointer);
}

.serif{
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.title{
  font-family: "WDXL Lubrifont JP N";
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  position: relative;
  padding: 40px 0;
  color: var(--main-font-color);
  @media screen and (min-width: 961px){
    left: 20vw;
    width: 60vw;
    font-size: 550%;
    height: 100px;
  }
  @media screen and (max-width: 960px){
    left: 0;
    width: 100vw;
    font-size: 300%;
    height: 80px;
    text-align: center;
  }
}

.subtitle{
  font-family: "WDXL Lubrifont JP N";
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  position: relative;
  color: var(--main-font-color);
  @media screen and (min-width: 961px){
    font-size: 200%;
    height: 100px;
  }
  @media screen and (max-width: 960px){
    left: 0;
    font-size: 150%;
    height: 80px;
    text-align: center;
  }
}

.nav-list #works{
  display: none;
}

@media screen and (min-width: 961px){
  .sp-only{
    display: none !important;
  }
  .bot-icons-container{
    transition: all 0.3s ease-in-out;
    transition-delay : 0.1s;
    position: fixed;
    bottom: 3vh;
    right: 1vw;
    margin: 0 0;
    z-index: 10005;
    width: 198px;
    height: 66px;
    transition: 0.3s ease-in-out;
  }
  .bot-icons-container.visible{
    opacity: 1;
    pointer-events: inherit;
  }
  .bot-icons-container.invisible{
    opacity: 0;
    pointer-events: none;
  }
  .bot-icons{
    width: 100%;
    height: 100%;
    list-style: none;
    align-items: center;
    font-size: 40px;
    display: grid;
    align-items: center;
    background: transparent;
    z-index: 10005;
    transition: all 0.3s ease-in-out;
    transition-delay : 0.1s;
    -webkit-text-stroke: 4px #ffffff;
    paint-order: stroke fill;
    margin: 0 0;
    padding: 0 0;
    grid-template-columns: auto auto auto;
    top: 0;
    right: 0;
  }
  .bot-icons li{
    margin: 0 0;
  }
  .icon{
    position: relative;
    display: grid;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: .2s cubic-bezier(.32,1.3,.54,1);
    cursor: var(--cursor-pointer);
    width: 60px;
    height: 60px;
  }
  .icon i{
    transition: .2s cubic-bezier(.32,1.3,.54,1);
    filter: drop-shadow(0 5px 3px var(--main-shadow-color));
  }
  .icon:hover, .icon:focus-visible{
    transform: translateY(-3px);
    i{
      filter: drop-shadow(0 8px 3px var(--main-shadow-color));
    }
  }
  .twitter{
    color: #1DA1F2;
  }
  .youtube{
    color: #DA1725;
  }
  .upward{
    color: #0f0f0f;
  }
  .icon.bord{
    border: 3px solid transparent;
  }
  .icon.nobord{
    border: 3px solid transparent;
    z-index: 10004;
  }
  .header-stuck{
    view-transition-name: header-stuck;
    position: fixed;
    z-index: 10010;
    object-fit: contain;
    top: 1vw;
    left: 1.5vw;
    width: 6vw;
    height: 6vw;
    cursor: var(--cursor-pointer);
    transition: .5s cubic-bezier(0.898, 0.204, 0.505, 0.975);
  }
  .header-stuck::before{
    content: '';
    position: absolute;
    display: flex;
    inset: 0;
    border-radius: 50%;
    width: 150%;
    height: 150%;
    background-color: #ffffff;
    transition: .25s cubic-bezier(.32, 1.3, .54, 1);
    z-index: -1;
    top: -25%;
    left: -25%;
  }
  .header-logo{
    position: relative;
    z-index: 10010;
    object-fit: contain;
    width: 100%;
    height: 100%;
  }
  .header-stuck:hover,
  .header-stuck:focus-within{
    transform: rotate(-380deg);
  }
  .header-bg{
    width: 100%;
    height: calc(1vh + 70px);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10000;
  }
  .nav-list-container {
    view-transition-name: nav-list-container;
    position: sticky;
    top: 1vh;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 10005;
    /* container-type: scroll-state; */
    height: 70px;
    transition: .25s cubic-bezier(.32, 1.3, .54, 1);
  }
  .nav-list-container.not-scrl{
    width: 70vw;
  }
  .nav-list-container.scrl{
    width: 50vw;
  }
  .nav-list-container::before{
    content: '';
    position: absolute;
    inset: 0;
    background-color: #ffffff;
    border-radius: 10000px;
    transition: .25s cubic-bezier(.32, 1.3, .54, 1);
    z-index: 1;
  }
  .nav-list-container.not-scrl::before{
    box-shadow: none;
  }
  .nav-list-container.scrl::before{
    box-shadow: 5px 5px 10px var(--main-shadow-color);
  }
  .nav-list{
    position: absolute;
    height: 70px;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    z-index: 2;
    transition: .25s cubic-bezier(.32, 1.3, .54, 1);
    container-type: scroll-state;
    width: 100%;
    @media screen and (max-width: 1366px){
      font-size: 80%;
    }
  }
  .nav-list li{
    transition: .25s cubic-bezier(.32, 1.3, .54, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .nav-list li::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    background-color: #0f0f0f;
    border-radius: 10000px;
    opacity: 0;
    transform: scale(0.8);
    transition: .25s cubic-bezier(.32, 1.3, .54, 1);
    z-index: 1;
    pointer-events: none;
    inset: 5px;
  }
  .nav-list li:hover::before,
  .nav-list li:focus-within::before{
    opacity: 1;
    transform: scale(1);
  }

  .nav-list li:first-child{
    display: none;
  }

  .nav-list li ul{
    position: absolute;
  }
  .nav{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #0f0f0f;
    font-size: 120%;
    z-index: 2;
    line-height: 1;
    cursor: var(--cursor-pointer);
    transition:
      color .2s cubic-bezier(.32, 1.3, .54, 1),
      transform .2s cubic-bezier(.32, 1.3, .54, 1);
  }
  .nav:hover, .nav:focus{
    color: #ffffff;
  }
}

@media screen and (max-width: 960px){
  .pc-only{
    display: none !important;
  }
  .header-bg{
    height: 75px;
    width: 100vw;
    top: 0;
    left: 0;
    position: relative;
    background-color: var(--main-bg-color);
  }
  .header-stuck{
    view-transition-name: header-stuck;
    width: 160px;
    height: 160px;
    position: absolute;
    top: 0;
    left: 2vw;
    z-index: 1000;
  }
  .nav-list-container{
    width: 100vw;
    height: 75px;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    box-shadow: 0 5px 5px var(--main-shadow-color);
  }
  .sp-header-logo{
    height: 90%;
    aspect-ratio: 1 / 1;
    top: 5%;
    left: 5%;
    position: absolute;
    object-fit: fill;
    z-index: 10;
  }
  input.humburger{
    display: none
  }
  label.humburger{
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
    right: 5%;
    z-index: 10;
    cursor: var(--cursor-pointer);
  }
  label.humburger span,
  label.humburger span::before,
  label.humburger span::after{
    content: '';
    display: block;
    height: 5px;
    width: 40px;
    background: #0f0f0f;
    transition: .3s ease-in-out;
    position: absolute;
    transform-origin: center center;
    right: 0;
  }
  label.humburger span::before {
    transform: translateY(-200%) rotate(0);
  }
  label.humburger span::after {
    transform: translateY(200%) rotate(0);
  }
  #humburger-check:checked ~ label.humburger span {
    background: transparent;
  }
  #humburger-check:checked ~ label.humburger span::before {
    transform: translateY(0) rotate(315deg);
  }
  #humburger-check:checked ~ label.humburger span::after {
    transform: translateY(0) rotate(-315deg);
  }
  .nav-list{
    position: fixed;
    height: 90vh;
    width: 90vw;
    top: 0;
    left: 0;
    transform: translateX(100vw);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9;
    transition: .5s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: right;
    padding: 10vh 0 0 10vw;
    margin: 0;
  }
  .nav-list::before{
    content: '';
    background-color: rgba(255, 255, 255, .7);
    display: inherit;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  #humburger-check:checked ~ .nav-list{
    transform: translateX(0);
  }
  .nav-list li{
    list-style: none;
  }
  .nav-list > li:not(.icons){
    padding: 15px 0;
    font-weight: bold;
    font-size: 120%;
  }
  .nav-list li:has(ul):not(.icons){
    padding: 15px 0 0 0;
  }
  .nav-list li.sp-only:not(.icons){
    padding: 15px 0 7px 0;
    font-weight: normal;
    font-size: 100%;
  }
  .nav-list a{
    color: #0f0f0f;
    letter-spacing: .05em;
    transition: .2s ease-in-out;
  }
  .nav-list li.icons{
    width: 60px;
    height: 100px;
    position: absolute;
    bottom: 3vh;
    right: 2vw;
  }
  .nav-list a:hover,
  .nav-list a:focus-visible{
    color: #1e73be;
  }

  .menu-icons{
    width: 100%;
    height: 100%;
    list-style: none;
    align-items: center;
    font-size: 40px;
    display: grid;
    align-items: center;
    background: transparent;
    z-index: 10005;
    transition: all 0.3s ease-in-out;
    transition-delay : 0.1s;
    -webkit-text-stroke: 4px #ffffff;
    paint-order: stroke fill;
    margin: 0 0;
    padding: 0 0;
    grid-template-rows: auto auto;
  }
  .menu-icons li{
    margin: 0;
    padding: 5px 0;
  }
  .icon{
    position: relative;
    display: grid;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: .2s cubic-bezier(.32,1.3,.54,1);
    cursor: var(--cursor-pointer);
    width: 40px;
    height: 40px;
    font-size: 40px;
    list-style: none;
  }
  .twitter{
    color: #18c9ff;
  }
  .youtube{
    color: #eb1616;
  }
  .icon.bord{
    border: 3px solid transparent;
  }
  .icon.nobord{
    border: 3px solid transparent;
    z-index: 10004;
  }
}

footer{
  view-transition-name: footer;
  width: 100vw;
  padding: 5vh 2vw;
  padding-left: 0;
  height: auto;
  width: auto;
  background-color: #3f3f3f;
  justify-content: center;
  align-items: center;
  position: relative;
  color: #ffffff;
  @media screen and (min-width: 961px){
    display: flex;
  }
}
footer .info{
  padding: 0 3vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-logo{
  height: max(200px, 8vw);
  width: max(200px, 8vw);
}
.catchphrase{
  margin: 2vh 0;
}
.chara{
  height: 32vw;
  width: 24vw;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.sitemap{
  @media screen and (min-width: 961px) {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 0 10px;
  }
  position: relative;
}
.sitemap ul{
  height: 100%;
  padding: 0;
  @media screen and (min-width: 961px){
    justify-self: left;
  }
  @media screen and (max-width: 960px){
    padding-left: 40px;
  }
}
.sitemap ul li:nth-child(1){
  font-size: 140%;
  font-weight: bold;
}
.sitemap ul li:not(:nth-child(1)){
  @media screen and (min-width: 961px){
    font-size: min(1.5vw, 100%);    
  }
  @media screen and (max-width: 960px){
    padding-left: 1em;
  }
}
footer .sitemap li{
  list-style: none;
  margin: 40px 0;
}
footer li a {
  color: #ffffff;
  display: inline;
  position: relative;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(#ffffff, #ffffff);
  background-repeat: no-repeat;
  background-position: right bottom 3px;
  background-size: 0% 2px;
  transition: background-size .5s cubic-bezier(0.22, 1, 0.36, 1);
}
footer li a:hover,
footer li a:focus-visible {
  background-position: left bottom 3px;
  background-size: 100% 2px;
}
footer .rclick-menu{
  display: none;
  position: absolute;
  background-color: #ffffff;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  padding: 5px 0;
  z-index: 1000;
  list-style: none;
  margin: 0;
  color: #0f0f0f;
  li{
    padding: 8px 24px;
    cursor: var(--cursor-pointer);
    font-family: sans-serif;
    font-size: 14px;
    transition: background-color 0.2s;
  }
  li:hover{
    background-color: #f0f0f0;
  }
}