@charset "UTF-8";

* {
  box-sizing: border-box;
}

html, body, header, footer, nav, h1, h2, h3, h4, h5, h6, a, p, span, ul, ol, li, figure, figcaption, dl, dt, dd, table, tr, th, td, section, article, aside, div, span, iframe, blockquote, time, small, button {
  margin: 0;
  padding: 0;
  line-height: 1.0;
  font-family: YakuHanJP, 'Outfit', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', '游ゴシック体', YuGothic, '游ゴシック', 'Yu Gothic', 'メイリオ', Meiryo, sans-serif;
  color: #444;
}

html {
  overflow-y: scroll;
}

body {
  background-color: #e8e8e8;
}

img {
  border: none;
  vertical-align: bottom;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  display: inline-block;
  word-break: break-word;
  line-height: 1.6;
}

p {
  line-height: 1.6;
}

/* Loading animation */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top-color: #29abe2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

header h1 {
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.0;
  transition: 0.2s;
}

header h1 a {
  line-height: inherit;
}

header h1.is-scrolled {
  opacity: 0;
}

section h3 {
  position: absolute;
  top: 3px;
  left: 6px;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.0;
  transition: 0.2s;
  color: #fff;
  text-shadow: 1px 1px 3px #444b;
  z-index: 1;
}

.content a {
  text-decoration: underline;
}

.content a[href]:hover {
  text-decoration: none;
}

/* .content a[href]:hover img {
  filter: brightness(1.10)
} */

.content {
  position: relative;
  top: 84px;
  max-width: 800px;
  overflow: hidden;
}

.intro {
  position: relative;
}

.intro::before, .intro::after{ 
  content: '';
  width: 36px;
  height: 36px;
  position: absolute;
  display: inline-block;
}

.intro::before{
  border-left: solid 3px #444;
  border-top: solid 3px #444;
  top: 0;
  left: 0;
}

.intro::after{
  border-right: solid 3px #444;
  border-bottom: solid 3px #444;
  bottom: 0;
  right: 0;
}

.sectionWrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.section {
  width: 100%;
  background-color: #fff;
  border-top: 3px solid #444;
  position: relative;
}

.section img {
  transition: transform 0.2s ease;
}

.section:hover img {
  transform: scale(1.05);
}

.sectionXX {
  order: -1;
}

.section:not(.close) {
  cursor: pointer;
}

.section__tags {
  line-height: 1.8;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.tag {
  color: #fff;
  background: #444;
  font-size: 12px;
  font-weight: bold;
  padding: 6.5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: background 0.3s;
}

.tag-dev {
  outline: 2px dotted #fff;
  outline-offset: -3.5px;
}

.tag-lib {
  outline: 2px solid #fff;
  outline-offset: -3.5px;
}

.tag span {
  color: #fff;
}

.icon {
  width: 16px;
  height: 16px;
}

.icon + span {
  display: none;
}

.modal__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 4px;
  line-height: 1.8;
}

.modal__tags .tag {
  font-size: 13px;
  padding: 7px;
  border-radius: 0;
}

.modal__tags .icon + span {
  display: block;
  margin-left: 3px;
}

.kv {
  aspect-ratio: 16 / 9;
  background-color: #888;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  overflow: hidden;
}

.kv:has(img) {
  aspect-ratio: auto;
}

aside {
  margin-left: auto;
  width: fit-content;
}

aside dl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: bold;
  padding: 6px 12px;
  background: #444;
  height: 36px;
}

aside dl dt {
  font-size: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

aside dl dd {
  color: #fff;
}

aside dd + dt {
  margin-left: 6px;
}


/* header */
header {
  position: fixed;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 70px;
}

nav {
  position: absolute;
  top: 70px;
  right: -200px;
  transition: 0.3s;
  z-index: 3;
}

nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
}

nav li {
  padding-top: 6px;
}

.header__btn {
  position: relative;
  min-width: 44px;
  height: 44px;
  border: solid 3px #444;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  cursor: pointer;
  z-index: 3;
}

.home .header__btn {
  border-color: #fff;
  background: transparent;
}

.header__btn span,
.header__btn span:before,
.header__btn span:after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 3px;
  background: #444;
  border-radius: 2px;
  transition: 0.3s;
}

.home .header__btn span,
.home .header__btn span:before,
.home .header__btn span:after {
  background: #fff;
}

.header__btn span:before {
  content: "";
  top: -7.5px;
}

.header__btn span:after {
  content: "";
  top: 10.5px;
}

.header__menu--slide {
  display: block;
  right: 10px;
}

.header__menu--slide+.header__btn span {
  background: transparent;
}

.header__menu--slide+.header__btn span:before {
  content: "";
  top: 0px;
  left: 0px;
  transform: rotate(135deg);
}

.header__menu--slide+.header__btn span:after {
  content: "";
  top: 0px;
  left: 0px;
  transform: rotate(225deg);
}

nav span {
  font-size: 20px;
  display: block;
  text-align: right;
  font-weight: bold;
  padding: 5px 0;
}

.home nav li:nth-child(1)>a,
.works nav li:nth-child(2)>a,
.about nav li:nth-child(3)>a,
.webgl nav li:nth-child(4)>a {
  pointer-events: none;
}

nav li>a {
  transition: 0.2s;
}

#overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 2;
  opacity: 0;
  transition: 0.2s;
  visibility: hidden;
}

.overlay--opacity1 {
  opacity: 1 !important;
  visibility: visible !important;
}

.outside {
  overflow: hidden;
  pointer-events: none;
}

.clickable {
  pointer-events: auto;
}

.fancybox-navigation .fancybox-button svg {
  color: #fff;
}

.fancybox-content {
  padding: 40px 10px;
}

.fancybox-slide--html {
  padding: 10px;
}

.fancybox-infobar {
  padding: 0 20px;
}

.fancybox-infobar * {
  color: #fff;
  text-shadow: 0 0 2px #000;
}

.mixitup-button {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto;
}

.mixitup-button .tag {
  height: 100%;
  transition: 0.1s;
}

.mixitup-button button:not(.mixitup-control-active) .tag:hover {
  background-color: #888;
}

.mixitup-button .all {
  outline: 2px #fff;
  outline-offset: -3.5px;
  border-radius: 0;
  width: 64px;
}

.mixitup-button .all span {
  margin: auto;
}

.mixitup-control-active .tag {
  background: #29abe2;
}

@media screen and (min-width: 640px) {
  .section {
    box-shadow: 4px 4px 4px #4444;
  }

  .mixitup-button {
    width: 100%;
  }
}

@media screen and (min-width: 768px) {
  aside dl dt {
    width: 40px;
    height: 20px;
    border-radius: 0;
  }

  nav {
    position: static;
    top: auto;
    right: auto;
    background: transparent;
    width: auto;
    padding: 0;
    display: flex;
  }

  nav ul {
    flex-direction: row;
    list-style: none;
  }

  nav li {
    padding-top: 0;
  }

  nav li>a:hover {
    transform: translateX(-4px);
  }

  nav span {
    font-size: 24px;
    text-align: center;
    text-shadow: 1px 1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, -1px -1px 0 #fff;
  }

  nav li:not(:last-child) span {
    padding-right: 18px;
  }

  .header__btn {
    display: none;
  }

  .content {
    top: 100px;
    max-width: 1800px;
    overflow: visible;
  }

  .sectionWrap {
    gap: 12px;
  }

  .section {
    flex-basis: calc(calc(100% - 12px) / 2);
  }

  .section__tags {
    gap: 4px;
  }

  .tag {
    font-size: 14px;
    padding: 7px;
    border-radius: 0;
  }

  .mixitup-button {
    gap: 8px
  }

  .mixitup-button .tag {
    font-size: 18px;
    padding: 10px;
  }
  
  .mixitup-button .tag .icon {
    width: 21px;
    height: 21px;
  }
  
  .mixitup-button .tag span {
    margin-left: 5px;
  }

  .modal__tags .tag {
    font-size: 16px;
    padding: 9px;
  }

  .icon + span {
    display: block;
    margin-left: 2px;
  }

  .fancybox-content {
    padding: 44px;
  }
}

.modal {
  display: none;
  max-width: 960px !important;
  width: 100%;
}

.link {
  display: block;
  font-size: 16px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin: 0 auto;
  padding: 16px;
  width: 200px;
  border: 3px solid #444;
  border-radius: 2px;
  transition: 0.1s;
  cursor: pointer;
}

.link:hover {
  background: rgba(222, 222, 222, 1.0);
  border-color: #888;
}

.modal__headline--fs {
  font-size: clamp(32px, 4vw, 84px);
}

.pre {
  overflow-x: scroll;
  background: #000;
  color:#fff;

}

@media screen and (min-width: 1200px) {
  .sectionWrap {
    gap: 16px;
  }

  .section {
    flex-basis: calc(calc(100% - 32px) / 3);
  }
}

.attention::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 100%;
  height: 100%;
  border-radius: 10px;
  z-index: -1;
  background: #29abe2;
  filter: blur(3px);
  animation: attention 1.2s linear infinite
}

@keyframes attention {
  0% {
      opacity: 0
  }

  5% {
      opacity: 1
  }

  60% {
      width: calc(100% + 60px);
      height: calc(100% + 60px);
  }

  80% {
      opacity: 0
  }

  100% {
      width: calc(100% + 60px);
      height: calc(100% + 60px);
      opacity: 0;
      filter: blur(6px)
  }
}