@charset "utf-8";

/*初期設定*/
*,*:before,*:after{
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

ul,ol{
  list-style: none;
}

a{
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

img{
    display: block;
    max-width: 100%;
    height: auto;
}

body{
  -webkit-text-size-adjust: 100%;
  font-family: 'UD デジタル 教科書体 N-B', 'Noto Sans JP', sans-serif, serif;
  font-size: 16px;
  color: #333;
  line-height: 1.5em;
  letter-spacing: 0.1em;
}

h2{
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  color: #fff;
  text-align: center;
  font-family: 'GauFontRoot', 'Fredoka One', cursive;
  src: url("fonts/GAU_Root_Nomal.ttf") format('truetype');
  font-size: 24px;
  letter-spacing: 0.05em;
  line-height: 1.0em;
  font-weight: bold;
  text-shadow: 2px 4px 2px rgba(42,42,42,1.0);
}

h3,h4{
  margin-bottom: 24px;
  font-family: 'Reem Kufi', sans-serif;
  font-weight: bold;
  font-size: 24px;
  text-align: center;
}

h4{
  font-size: 18px;
}

/*ヘッダー*/
header{
  width: 100%;
  height: 64px;
  background: rgba(43,43,141,0.4);
  padding: 8px 16px;
  position: fixed;
  top: 0;
  z-index: 100;
}

h1{
  width: 120px;
  margin: auto;
  text-align: center;
}

#logo{
    margin: auto;
}

.gNav{
    display: none;
}

/*ハンバーガーメニュー*/
/*メニューボタン*/
.menuBtn{
  display: block;
  position: fixed;
  z-index: 3;
  right: 16px;
  top: 0;
  width: 42px;
  height: 52px;
  cursor: pointer;
  text-align: center;
}

.menuBtn span{
  display: block;
  position: absolute;
  width: 30px;
  height: 2px;
  left: 6px;
  background: #fff;
  transition: 0.3s ease-in-out;
}

.menuBtn span:nth-of-type(1){
  top: 10px;
}

.menuBtn span:nth-of-type(2){
  top: 20px;
}

.menuBtn span:nth-of-type(3){
  top: 30px;
}

.menuBtn span:nth-of-type(3)::after{
  content: "menu";
  position: absolute;
  top: 5px;
  left: 0;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif, serif;
  font-size: 10px;
  text-align: center;
}

/*メニューボタン 開閉後*/
.menuBtn.active span:nth-of-type(1){
  top: 16px;
  left: 6px;
  background: #fff;
  transform: rotate(-45deg);
}

.menuBtn.active span:nth-of-type(2),
.menuBtn.active span:nth-of-type(3){
  top: 16px;
  background: #fff;
  transform: rotate(45deg);
}

.menuBtn.active span:nth-of-type(3)::after{
  content: "close";
  transform: rotate(-45deg);
  top: 8px;
  left: 20px;
}

/*ナビメニュー*/
.navHbg{
  position: fixed;
  z-index: 1;
  padding-top: 64px;
  top: 0;
  right: 0;
  color: #fff;
  background: rgba(43,43,141,0.6);
  text-align: center;
  width: 100%;
  height: 100vh;
  opacity: 0;
  transition: opacity 0.3s ease,visibility 0.3s ease;
  display: flex;
  visibility: hidden;
}

.navHbg nav{
  width: 100%;
  height: 90%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;  
}

.navHbg nav ul{
  margin: 0 auto;
  padding: 0;
  width: 100%;
  display: block;
}

.navHbg nav ul li{
  padding: 0;
  width: 100%;
  transition: 0.4s all;
}

.navHbg nav ul li:last-of-type{
  padding-bottom: 0;
}

.navHbg nav ul li a{
  display: block;
  position: relative;
  padding: 1em 0;
  color: #fff;
  font-family: 'GauFontRoot', 'Fredoka One', cursive;
  src: url("fonts/GAU_Root_Nomal.ttf") format('truetype');
  font-size: 20px;
}

.navHbg ul li a::before{
  content: "";
  display: block;
  position: absolute;
  left: calc(50% - 80px);
  border-left: 8px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  top: calc(50% - 8px);
  transition: 0.6s;
  opacity: 0;
}

.navHbg ul li a::after{
  content: "";
  display: block;
  position: absolute;
  right: calc(50% - 80px);
  border-right: 8px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  top: calc(50% - 8px);
  transition: 0.6s;
  opacity: 0;
}

.navHbg ul li a:hover:before,
.navHbg ul li a:hover:after{
  opacity: 1;
  transform: rotateX(360deg);
}


.navHbg.active{
  opacity: 1;
  visibility: visible;
}

/*メインイメージ*/
#mainImg{
    position: relative;
    height: 300px;
}

#videoArea{
    position: relative;
    width: 100vw;
    height: 300px;
    overflow: hidden;
}

#video{
    position: absolute;
    z-index: -1;
    min-width: 100%;
    min-height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    height: 100%;
    object-fit: cover;
}

/*セクション*/
section{
  margin-top: 24px;
  margin-bottom: 40px;
  padding: 0 16px;
}

.linkMore{
  display: block;
  position: relative;
  width: 88px;
  height: 40px;
  margin: 32px auto 0;
  font-family: 'Reem Kufi', sans-serif;
  font-weight: bold;
  font-size: 18px;
  line-height: 32px;
  text-align: center;
  border: 2px solid currentColor;
  border-radius: 100vh;
  overflow: hidden;
}

.linkMore:before,
.linkMore:after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 20px solid #333;
  border-bottom: 20px solid #333;
  z-index: -1;
}

.linkMore:before{
  border-right: 20px solid transparent;
  transform: translateX(-100%);
}

.linkMore:after{
  border-left: 20px solid transparent;
  transform: translate(100%);
}

.linkMore:hover{
  color: #fff;
  transition: 0.5s ease-in-out;
}

.linkMore:hover:before{
  transform: translateX(-20%);
  transition: 0.5s ease-in-out;
  z-index: -1;
}

.linkMore:hover:after{
  transform: translateX(20%);
  transition: 0.5s ease-in-out;
  z-index: -1;
}

/*Top-About*/
.aboutImg{
  width: 176px;
  height: 176px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
}

.aboutContainer p{
  margin: auto;
  max-width: 600px;
}

/*Top-Skills*/
.iconContainer{
  text-align: center;
}

.skillIcon{
  display: inline-block;
  margin: 0 10px 20px;
  width: auto;
  height: 62px;
}

.skillText{
  margin: 0 auto 24px;
  max-width: 600px;
}

/*Top-Works*/
.sectionWorks{
  text-align: center;
}

.webdesignContainer li{
  margin: 0 auto 40px;
}

.webdesignImg{
  width: 296px;
  height: auto;
  border: 2px solid #19355f;
  box-shadow: 6px 6px 6px rgba(25,53,95,0.8);
}

/*Top-Flyer*/
.flyerContainer a{
  margin-bottom: 40px;
}

.flyerImg{
  width: 240px;
  height: auto;
  border: 2px solid #19355f;
  box-shadow: 6px 6px 6px rgba(25,53,95,0.8);
}

/*Top-Bunner*/
.bunnerImg{
  width: 300px;
  height: auto;
  margin: 0 auto;
  border: 2px solid #19355f;
  box-shadow: 6px 6px 6px rgba(25,53,95,0.8);
}

/*Top-Contact*/
.sectionContact p{
  text-align: center;
}

/*footer*/
footer{
  position: sticky;
  top: 100vh;
  height: 64px;
  padding-top: 40px;
  background: #5555a4;
  color: #fff;
  text-align: center;
  font-size: min(2.66vw, 16px);
}

/*index.html*/
#top footer{
  padding-top: 16px;
}

#top footer a{
  font-size: min(2.66vw, 12px);
}

/*about.html*/
.profile{
  display: flex;
  flex-wrap: wrap;
  width: 232px;
  margin: auto;
}

.profile dt{
  width: 35%;
}

.profile dd{
  width: 65%;
}

.profile dd::before{
  content: "：";
  padding-right: 5px;
}

.profileText{
  margin: 32px auto 0;
  max-width: 600px;
}

/*works.html*/
.worksContainer{
  text-align: center;
}

.listGroup{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 56px;
  row-gap: 40px;
}

.listGroup li{
  width: 300px;
}

/*works sub-page*/
#worksSub h3{
  line-height: 1.3em;
}

.webContainer{
  text-align: center;
  margin-bottom: 40px;
}

figcaption{
  position: relative;
  font-size: min(2.93vw, 16px);
  text-align: center;
  white-space: nowrap;
}

.sectionWebdesign figcaption::after{
  content: "";
  display: inline-block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-image: url("img/icon-link.svg");
  background-size: contain;
  width: min(3.2vw, 18px);
  height: min(3.2vw, 18px);
  margin-left: 3px;
}

.sectionWebdesign a{
  width: min(83.3%, 800px);
}

.sectionFlyer .webContainer > a{
  width: min(70%, 400px);
}

.flyerGroup,
.bunnerGroup{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 56px;
  row-gap: 40px;
}

.flyerGroup li{
  width: min(70%, 400px);
}

.bunnerGroup li{
  width: 300px;
}

.webImg{
  display: inline-block;
  margin-bottom: 16px;
}

.webMovie{
  width: 100%;
  max-width: 350px;
  margin-bottom: 16px;
}

.designInfo{
  width: 100%;
  max-width: 760px;
  margin: auto;
}

.designInfo dd{
  margin: 0 0 16px 16px;
}

/*contact.html*/
#contact span{
  color: #ff3d3d;
}

#contactForm{
  width: 80%;
  max-width: 480px;
  margin: 40px auto;
}

#contactForm dt{
  letter-spacing: 0.1em;
}

#contactForm dt span{
  margin-left: 4px;
}

#contactForm dd{
  margin: 8px 0 16px;
}

#contactForm input,
#contactForm textarea{
  width: 100%;
  padding: 5px;
  height: 40px;
}

#contactForm textarea{
  height: 240px;
}

#contactForm button{
  width: 80px;
  height: 32px;
  background: #4040C4;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-family: 'UD デジタル 教科書体 N-B', 'Noto Sans JP', sans-serif, serif;
  letter-spacing: 0.3em;
}

#contactForm button:hover{
  opacity: 0.8;
  transition: 0.8s;
  cursor: pointer;
}

/*メディアクエリ*/
/*960px以上*/
@media screen and (min-width:960px){
  /*ハンバーガーメニュー 非表示*/
  .menuBtn, .navHbg{
    display: none;
  }
  
  /*ヘッダー*/
  header{
    display: flex;
    justify-content: center;
    column-gap: 40px;
  }
  
  h1{
    margin: 0;
  }
  
  #gnavLeft{
    order: -1;
  }
  
  .gNav{
    display: block;
    width: 184px;
    height: 100%;
  }
  
  .gNav ul{
    display: flex;
    justify-content: space-between;
    column-gap: 20px;
  }
  
  .gNav ul li a{
    display: block;
    width: 100%;
    height: 48px;
    position: relative;
    color: #fff;
    font-family: 'GauFontRoot', 'Fredoka One', cursive;
    src: url("fonts/GAU_Root_Nomal.ttf") format('truetype');
    font-size: 20px;
    line-height: 48px;
  }
  
  .gNav ul li a::after{
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    border-bottom: 8px solid #fff;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    left: calc(50% - 8px);
    transition: 0.6s;
    opacity: 0;
  }
  
  .gNav ul li a:hover:after{
    opacity: 1;
    transform: rotateY(360deg);
  }
  
  /*Top-About*/
  .aboutContainer{
    display: flex;
    margin: auto;
    justify-content: center;
    align-items: center;
    max-width: 736px;
  }
  
  .aboutImg{
    margin: 0 48px 0 0;
  }
  
  /*Top-Skill*/
  .skillContainer{
    display: flex;
    margin: auto;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 24px;
  }
  
  .skillBox{
    width: calc(50% - 40px/2);
    max-width: 504px;
  }
  
  .skillText{
    margin-bottom: 0;
    padding: 0 16px;
  }
  
  /*Top-Works*/
  .worksContainer{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 24px;
  }
  
  .worksContainer li:last-child {
    margin-bottom: 0;
  }
  
  .worksBox{
    width: calc(30% - 24px/3);
    max-width: 320px;
  }
  
  /*About.html*/
  .profileContainer{
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .profile{
    margin: 0;
  }
  
  .profileText{
    max-width: 736px;
  }
  
  /*Works sub*/
  .designInfo{
    display: flex;
    flex-wrap: wrap;
    width: 75%;
    max-width: 960px;
    margin: auto;
  }

  .designInfo dt{
    width: 100px;
  }
  
  .designInfo dd{
    display: flex;
    width: calc(100% - 100px);
    margin: 0;
  }
  
  .designInfo dd::before{
    content: "：";
    padding-right: 5px;
  }
}

/*アニメーション設定*/
.fadeUp{
  animation-name: fadeUpAnime;
  animation-duration: 0.6s;
  animation-fill-mode: forwards;
  opacity: 0;
}

/*コンテンツ スクロール表示用アニメーション設定*/
@keyframes fadeUpAnime{
  from{
    opacity: 0;
    transform: translateY(100px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeUpTrigger{
  opacity: 0;
}