html{
  scroll-behavior: smooth;
}
body {
  font-size: 4rem;
  position: relative;
  overflow: hidden;
  color: #fff;
  width: 100vw;
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "Noto Sans JP",sans-serif;
  font-weight: 300;
  overflow-y: scroll;
  height: 100%;
  background-color: #ddd;
  border:none;
  letter-spacing: .03rem;
  min-width: 360px;
}
/*--------ナビゲーション-----------*/
header {
  text-align: justify;
  position: fixed;
  width: 120px;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10000;
  padding: 10px;
  color: #ffce53;
  background-color: #333;
}

#global-nav {
  width: 140px;
  height: 100%;
  position: fixed;
  top: 0;
  left: -140px;/*隠しておく*/
  z-index: 80;
  background-color: #333;
  display: flex;
  flex-direction: column;
 justify-content: flex-end;
  transition: all 0.5s;/*押されたとき*/
}
#global-nav ul {

  padding: 0px 10px 100px 0;
  
    text-indent: 8px;
  
}
#global-nav ul li {
 
  list-style: none;
}
#global-nav ul li a {
  display: block;
  width: 100%;
  font-size: 15px;
  box-sizing: border-box;
  color:#ffffff;
  text-decoration: none;
  padding: 9px 15px 10px 0;
  position: relative;
}
#global-nav ul li a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-top: solid 2px #ffffff;
  border-right: solid 2px #ffffff;
  transform: rotate(45deg);
  position: absolute;
  right: 11px;
  top: 16px;
}
/*押されたら*/
#nav_input:checked ~ #global-nav {
  left: 0;/*メニューを画面内へ*/
}
.sp_menu_title{
  display: none;
  font-size: 1.4rem;
  writing-mode: vertical-rl;
  font-family: Arial, Helvetica, "Noto Sans JP",sans-serif;
    color: #ddd;
  font-weight: 600;
  transform: rotate(180deg);
  letter-spacing: .3rem;
  padding-left: 10px;
}
.menu_title{
  font-size: 1.4rem;
  writing-mode: vertical-lr;
  font-family: YuMincho,"Hiragino Mincho ProN",serif;
  color: #ddd;
  font-weight: 600;
  height: 100vh;
  vertical-align: top;
  

}
.menu_title .small_title{
  font-size: 1rem;
  writing-mode: vertical-lr;
  font-family: YuMincho,	"Hiragino Mincho ProN",serif;
  color: #ddd;
  font-weight: 600;
  display: inline;
}
.menu_title span{
  display: block;
  transform: rotate(180deg);
  font-family: Arial, Helvetica, "Noto Sans JP",sans-serif;
  font-weight: 600;
  font-size: 3rem;
  letter-spacing: .3rem;
  padding-left: 10px;
  text-align: end;
}
.nav_btn{
  position: fixed;
  
 bottom: 50px;
  display: flex;
  height: 60px;
  width: 40px;
  justify-content: center;
  align-items: center;
  z-index: 90;
  background-color: #333;
}
.nav_btn span,
.nav_btn span:before,
.nav_btn span:after {
  content: '';
  display: block;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  background-color: #ffffff;
  position: absolute;
}
.nav_btn span:before {
  bottom: 8px;
}
.nav_btn span:after {
  top: 8px;
}
/*ハンバーガーメニューを押されたときの挙動*/
#nav_input:checked ~ .nav_btn span {
  background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
}
#nav_input:checked ~ .nav_btn span::before {
  bottom: 0;
  transform: rotate(45deg);
}
#nav_input:checked ~ .nav_btn span::after {
  top: 0;
  transform: rotate(-45deg);
}
.nav_hidden{
  display: none;
}
/*--------ナビゲーションここまで-----------*/

.container {
  height: 100%;
  width: calc(100vw - 120px);
  translate: 120px
}
/* inquiryの幅調整 */
#qa{
  max-height: 800px;
}
/* p5js埋め込み位置 */
.top{
  height: 100vh;
  padding:  0;
  align-items: center;
  margin: auto;
  vertical-align: middle;
}
.area {
  height: 100vh;
  padding: calc(100vh - 75vh) 0;
  align-items: center;
  margin: auto;
  vertical-align: middle;
 
}


.flex{
  display: flex;
  justify-content: space-around;
  align-items: center;
margin: auto;
max-width: 1250px;
}
.flex div{
  margin: auto;
  width: 40%;
  max-width: 500px;
  position: relative;
 
}
.flex .circles{
  max-height: 500px;
  isolation: isolate;
}
/* 丸とか三角とか */
.flex .circle{
  border-radius: 50%;
  /* background: rgba(255, 255, 255, 50); */
  /* opacity: .5; */
  width: 200px;
  height: 200px;
  mix-blend-mode: screen;
}

.flex .circle::before{
  content: "";
  display: block;
  position: absolute;
}
.flex .circle:nth-child(1){
 top: 100px;
 transition: all 1s;
 background-color: rgba(255, 0, 0, 100);
 
}
.flex .circle:nth-child(2){
  left: 75px;
  transition: all 1s;
  background-color: rgba(0, 255, 0, 100);

 }
 .flex .circle:nth-child(3){
  right: 75px;
  top: -200px;
  transition: all 1s;
  background-color: rgba(0, 0, 255, 100);

 }
 /* 親要素にhoverすると子要素があつまる */
 .flex .circles:hover .circle:nth-child(1){
  top: 150px;
 }
 .flex .circles:hover .circle:nth-child(2){
  top: -50px;
  left: 0px;
 }
 .flex .circles:hover .circle:nth-child(3){
  top: -250px;
  right: 0px;
 }

.flex .rect{
  background: #333;/*背景色*/
  text-align: center;
  vertical-align: middle;
  border: #ccc solid 1px;
  transition: .5s;
}
.flex .rect p{
  font-size: 1.1rem;
  padding: 30px 50px;
  font-weight: 500;
}
.flex .rect:hover{
background-color: #ddd;
}
.flex .rect p:hover{
  color: #333;
  font-weight: 600;
}
.flex .triangle{
  position: relative;
  margin-top: 80px;
  height: calc(300px + 5vh);
  transition: .5s;
  align-items: center;
  width: 280px;
  isolation: isolate;
}
.flex .triangle .up{
  content: " ";
  /* background: rgb(0, 255,255); */
  background: linear-gradient(
    0deg,
    rgb(255,255,255),
    rgb(255,0,255) 
  );
  height: calc(tan(60deg) * 280px / 2);
  width: 280px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  /* opacity: .5; */
  top: 10px;
  position: absolute;
  mix-blend-mode:multiply;


}
.flex .triangle .down{
  content: " ";
  /* background: rgb(255, 0,255); */
  background: linear-gradient(
    0deg,
    rgb(255,255,0),
    rgb(0,255,255) 
  );
  /* opacity: .5; */
  height: calc(tan(60deg) * 280px / 2);
  width: 280px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  position: absolute;
  top: 93px;
  transition: 1s;
  mix-blend-mode:difference;

}
.flex .triangle .down:hover{
transform: rotate(60deg);
transform-origin: 50% 33%;

}
.text, ul{
  font-size: 1rem;
  color: #223;
  text-align: left;
  top: 0; left: 0;
  box-sizing: border-box;
  line-height: 1.5rem;
  padding-bottom: 10px;
  font-weight: 500;
}
ul{
  text-indent: 10px;
  padding-top: 30px;
}
h2{
  font-size: 3rem;
  width: 100%;

  margin-bottom: 30px;
  max-width: 1130px;
  font-family: Arial, Helvetica, "Noto Sans JP",sans-serif;
  font-weight: 600;
  
}
.sub_title{
  font-family: YuMincho,"Hiragino Mincho ProN",serif;
  color: #ddd;
  font-weight: 600;
  display: block;
  font-size: 1.6rem;
  padding-top: 10px;
}

/* 各エリアの背景色 */
.area:nth-child(even) {
  background-color: #ddd;
}
.area:nth-child(odd) {
  background-color: #333;
}
/* 各エリアの文字色 */
.area:nth-child(even) h2, .area:nth-child(even) p, .area:nth-child(even) span,.area:nth-child(even) ul{
  color: #333;
}
.area:nth-child(odd) h2, .area:nth-child(odd) p, .area:nth-child(odd) span, .area:nth-child(odd) ul{
  color: #ddd;
}
.col{
  box-sizing: border-box;
}
/* コンペ部分リスト */
 #competition ul li{
  padding-top: 10px;
}
/*コンペ部分ボタン*/
.flex .buttons{
  max-width: 400px;
  max-height: 400px;
  margin: 20px;
  width: 40%;
  isolation: isolate; /* isolation がないと、背景色が考慮されてしまう */
}

.buttons li{
  font-size: 1.1rem;
  display: flex;
  height: 150px;
  width: 150px;

 position: relative;
  text-indent: 0;
  font-weight: 500;
  mix-blend-mode:screen;
}

.buttons li:nth-child(1){
  color: #eee;
  z-index: 3;
  top: 50px;
  transition: .5s;
}
.buttons li:nth-child(1):hover{
  color: #333;
  font-size: 1.3rem;
}
.buttons li:nth-child(1)::before{
  content: " ";
  background: #333;
  mix-blend-mode: screen;
  position: absolute;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  z-index: -1;
  border: solid 1px #ccc;
  transition: .5s;
}
.buttons li:nth-child(1):hover::before{
    background: #ffff00;
}

.buttons li:nth-child(2){
  color: #eee;
  z-index: 3;
  left: 150px;
  transition: .5s;
}
.buttons li:nth-child(2):hover{
  color: #333;
    font-size: 1.3rem;
}
.buttons li:nth-child(2)::before{
  content: " ";
  background: #333;
  mix-blend-mode: screen;
  position: absolute;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  z-index: -1;
  border: solid 1px #ccc;
  transition: .5s;
}
.buttons li:nth-child(2):hover::before{
  background: #00ffff;
}
.buttons li:nth-child(3){
  color: #eee;
  z-index: 3;
  top: -50px;
  transition: .5s;
  }
  .buttons li:nth-child(3):hover{
    color: #333;
    font-size: 1.3rem;
  }
.buttons li:nth-child(3)::before{
  content: " ";
  background: #333;
  position: absolute;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  z-index: -1;
  border: solid 1px #ccc;
  transition: .5s;
}
.buttons li:nth-child(3):hover::before{
  background: #ff00ff;
}
.buttons a{
  vertical-align: middle;
  margin: auto;
  text-align: center;
  line-height: 1.8rem;
}
/* フッター */
footer{
  font-size: .8rem;
  text-align: center;
  padding: 30px;
  line-height: 1.5rem;
  background-color: #333;
}
/*アーカイブ*/
.wrapper{
  background-color: #333;
  margin: auto;
  height: 100%;
  padding-top: 80px;
}
main{
  width: 90%;
  margin: auto;
  max-width: 1230px;
  text-align: center;
  
}
.flexCards{
  display: flex;
  flex-wrap: wrap;
  margin-left: 60px;
  margin-top: 80px;
}
.flexCards img{
  width: 180px;
 
}
.flexCards div{
  padding: 16px 25px 16px;
  background-color: #444;
  margin: 30px 60px 30px 0;
}
.caption{
  font-size: 1rem;
  padding: 10px;
}
.year{
  font-size: .8rem;
  padding-left: 10px;
}
@media screen and (max-height: 800px){
  header{
    width: 80px;
  }
  .menu_title span{
    font-size: 1.7rem;
    
  }
  .container{
    width: calc(100vw - 80px);
    translate: 80px;
  }
  .area{
    height: 100%;
  }
.flex{
  height: 90%;
}
  .flex div{
    min-width: 50px;
  }
  .flex .circle::before{
    padding-top: 100%;
  }
  h2{
    font-size: 1.8rem;
  }
  .sub_title{
    font-size: 1.2rem;
  }
  p.text{
    font-size: 1rem;
  }
  .area{
    padding: calc(100% - 95%) 0;
  }
  .nav_btn{
    bottom: 20px;
  }

  .buttons li{
    height: 120px;
    width: 120px;
  }
  
}
@media screen and (max-height: 500px){
  .menu_title span{
    font-size: 1rem;
  }
  .menu_title{
    font-size: 1rem;
  }
  .menu_title .small_title{
    font-size: .6rem;
  }

}


@media screen and (max-width: 1340px){
  main{
    max-width: 640px;
  }
}
@media screen and (max-width: 810px) {
  .container{
    width: calc(100vw - 60px);
    translate: 60px;
  }
  .area{
   height: 90%;
   margin: auto 0;
   padding: 100px 0;
  }
  .flex{
    flex-direction:column;
    height: 80%;
    
  } 
  .flex div{
    width: 60%;
  }
  .flex .circles{
    height: calc(300px + 5vh);
  }

  
  h2.title{
    font-size: 2.5rem;
    text-align: center;

  }
  h2{
    margin-bottom: 60px;
  }
  .menu_title span{
    font-size: 1.7rem;
  }
  .menu_title{
    font-size: 1.1rem;
    line-height: 1rem;
  }
  .sp_menu_title{
    display: none;
    
  }
  header{
    width: 60px;
  }
  #global-nav ul{
    padding-bottom: 100px;
  }
  #global-nav {
    width: 60px;
    left: -100px;/*隠しておく*/
    font-size: .8rem;
  }
  #global-nav ul li a{
    writing-mode: vertical-rl;
    height: 108px;
   text-align: center;
    display: inline;
    padding: 0 15px 0 0;
    
  }
  
  #global-nav ul li a::before {
    top: 50%;
  }
  .flex .rect p{
    font-size: 1rem;
    padding: 10px 20px;
  }
  .buttons ul{
    padding-top: 0;
  }
  footer p{
    font-size: .6rem;
    line-height: normal;
  }
  .flex .buttons{
    width: 90%;
  }
  .buttons li:nth-child(1){
    top: 0px;
    left: 15px;
       }
  .buttons li:nth-child(2){
      top:-25px;
      left: 135px;
        }
   .buttons li:nth-child(3){
    top:-25px;
    left: 15px;
    }
}

@media screen and (max-width: 710px) {
  

.flex{
  height: 90%;
}

.flex div{
  width: 80%;
}

p, ul{
  font-size: 1rem;
}
h2{
  font-size: 2rem;
}
.flex div.circle{
  width: 150px;
  height: 150px;
  
}
.flex .circle:nth-child(1){
  top: 75px;
 }
 .flex .circle:nth-child(2){
   left: 50px;
  }
  .flex .circle:nth-child(3){
   right: 50px;
   top: -150px;
 
  }
/* 親要素にhoverすると子要素があつまる */
.flex .circles:hover .circle:nth-child(1){
top: 125px;
}
.flex .circles:hover .circle:nth-child(2){
top: -25px;
left: 0px;
}
.flex .circles:hover .circle:nth-child(3){
top: -175px;
right: 0px;
}
.sub_title{
  font-size: 1.2rem;
  margin-bottom: 30px;
  
}
h2{
  margin-bottom: 20px;
}
.main{
width: 350px;
}
.flexCards{
  display: block;
  max-width: 350px;
  margin: auto;
}
.flexCards div{
  margin: 30px ;
}

}
/* スマホ */
@media screen and (max-height: 360px){
  .menu_title {
    display: none;
  }
  .sp_menu_title{
    display: block;
  }
  header {
    width: 80px;
  }
  
  #global-nav {
    width: 120px;
    left: -120px;/*隠しておく*/
  
  }
  #global-nav ul li a{
    font-size: 0.8rem;
    writing-mode:unset;
    display: block;
    height: auto;
    
  }
  ul{
    line-height: 1.3rem;
    
  }
 
}