@charset "utf-8";

/*基本設定*/
html {
  font-size: 62.5%;
  /*以下フォントサイズはrem指定するブラウザごとに変化する。例：1.2rem＝12pxとなる。*/
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

img {
  width: 100%;
  max-width: 375px;
  /*今回は画像幅750pxが最大で書き出したので劣化を防ぐ*/
  height: auto;
}

a {
  display: block;
}

.sp_none {
  /*スマホでは表示させないものは全てこのクラスをつける*/
  display: none;
}

body {
  font-size: 1.6rem;
  line-height: 1.5;
  color: #212121;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

#wrap {
  width: 100%;
  min-width: 360px;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;

  overflow: hidden;
  box-sizing: border-box;
  border-left: 10px solid #36bf8d;
  background: #fffafa;
}

#works_page #wrap {
  padding-right: 70px;
}

#works {
  margin-top: 6.4rem;
}

#works_page #works,
#works_web main,
#works_flier main,
#works_logo main,
#works_banner main {
  margin-top: 3.2rem;
}

@media screen and (min-width:600px) {

  /*タブレット｜600~1024*/
  .sp_none {
    display: block;
  }

  #wrap {
    border: none;
    border-top: 8px solid #36bf8d;

  }

  #works {
    margin-top: 0;
  }
}

@media screen and (min-width:1024px) {

  /*PC｜1024~*/
  body {
    background: #fffafa;
    border-top: 8px solid #36bf8d;
  }

  #wrap {
    border-top: none;
    padding-right: 70px;
  }

  #works_web #wrap,
  #works_flier #wrap,
  #works_logo #wrap,
  #works_banner #wrap {
    max-width: 80%;
  }
}

/*見出し,fontの設定*/
h1,
h2,
h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2.8rem;
}

h1 {
  margin-top: 26px;
  font-size: 1.5rem;
}

#home h1 {
  margin-top: 30vh;
  font-size: 2.8rem;
}

@media screen and (min-width:600px) {

  /*タブレット｜600~1024*/
  h1,
  #home h1 {
    margin-top: 26px;
  }
}

/*headerの設定*/
header {
  height: 40vh;
}

header p {
  font-size: 1.2rem;
  margin-bottom: 6.8rem;
}

@media screen and (min-width:600px) {

  /*タブレット｜600~1024*/
  header {
    height: auto;
  }
}

/*worksの設定*/
#works {
  padding-bottom: 1.5em;
}

.works_list a,
.btn a {
  width: 80%;
  margin: 20px auto;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.29);
}

.works_list img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.btn a {
  max-width: 220px;
}

.works_list a:active,
.works_list a:hover,
.btn a:active,
.btn a:hover {
  box-shadow: inset 0 0 2px rgba(128, 128, 128, 0.1);
  transform: translateY(2px);
}

.btn {
  text-align: center;
}

#works .btn a,
footer .btn a {
  font-family: 'Josefin Sans', sans-serif;
  text-transform: uppercase;
  /*大文字表示*/
  width: 50%;
  margin: 1.5em auto;
  padding: 10px;
  background: #fff;
}

@media screen and (min-width:600px) {

  /*タブレット｜600~1024*/
  #works h2 {
    text-align: center;
  }

  #tab {
    font-family: 'Josefin Sans', sans-serif;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  #tab li {
    flex-basis: 120px;
    margin: 0 5px
  }

  #tab li a {
    background: #fff;
    padding: 5px;
    border-radius: 10px;
    filter: drop-shadow(2px 2px 0 #f4efac);
  }

  #tab li a:active,
  #tab li a:hover {
    transform: translateY(2px);
    filter: none;
    background: #f4efac;
  }

  .current {
    color: #36bf8d;
  }

  .works_list {
    width: 100%;
    max-width: 1080px;
    margin: 1.5em auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .works_list li {
    box-sizing: border-box;
  }

  .works_list a {
    width: 100%;
    height: 100%;
    max-height: 300px;
    margin: 0 auto;
  }

  #works .btn a {
    width: 25%;
  }
}

/*worksの下層ページの設定*/
#works_web h2+p {
  font-size: 1.6rem;
}


.description_box {
  padding-bottom: 1.5em;
}

.description {

  margin-left: auto;
  padding: 10px;
  background: #fff;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
  margin-top: 1.5em;
}

.description dl {
  margin: 5px 0 10px;
  padding-bottom: 1.5em;
}

.description dd {
  font-size: 1.4rem;
}

.link {
  padding: 1.5em 0;
  overflow: hidden;
  background: #fffafa;
}

.slider li {
  margin: 0 5px;
}

@media screen and (min-width:600px) {

  /*タブレット｜600~1024*/
  .works_box {
    display: flex;
    justify-content: space-evenly;
    align-content: center;
  }

  .sp_box {
    margin: 10px 20px 10px 0;
    width: 375px;
    height: 667px;
    flex-shrink: 0;
    overflow: hidden;
    background: url("../task-1/sp-1.jpg")no-repeat;
    background-size: 375px auto;
    border: 5px solid #212121;
    border-radius: 20px;
    filter: drop-shadow(2px 2px 0 #f4efac);
    animation: scroll 25s 2s ease-in-out infinite;
  }

  .movie_box {
    width: 40%;
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-left: 20px;
    gap: 20px;
  }

  .movie_box video {
    width: 100%;
    height: auto;
  }

  .description_box {
    margin: 3em 0;
    text-align: center;
  }

  .description {
    max-width: 95%;
  }

  .description dd {
    text-align: left;
  }

  #works_banner .description dl,
  #works_flier .description dl,
  #works_logo .description dl {
    display: flex;
  }
}

@keyframes scroll {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 -3622px;
  }
}

@media screen and (min-width:1024px) {

  /*pc｜1024~*/
  .description dl {
    display: flex;
    padding: 5px 10px;
    border-top: 1px dashed #f4efac;
  }

  .description dl:first-child {
    border-top: none;
  }

  .description dt {
    width: 10em;
    margin-right: 1em;
    flex-shrink: 0;
  }
  .description a:hover,
  .link a:hover {
    filter: saturate(1.5); 
  }

  .link {
    width: 80%;
    margin: 0 auto;
  }
}



/*footerの設定*/
footer {
  position: absolute;
  right: 0;
  top: -60px;
  width: 100vh;
  transform-origin: right bottom;
  transform: rotate(-90deg);
  text-align: center;

}

footer .copyright {
  padding: 10px;
  background: #36bf8d;
}

footer .copyright small {
  color: rgba(255, 255, 255, .9);
}

@media screen and (min-width:600px) {
  /*タブレット｜600~1024*/
}

/*navの設定*/
nav a {
  font-family: 'Josefin Sans', sans-serif;
  text-transform: uppercase;
  padding: 15px;
}

footer nav a {
  width: 60%;
  margin: 0 auto;
  border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

footer nav li:last-child a {
  border-bottom: none;
}

@media screen and (min-width:600px) {

  /*タブレット｜600~1024*/
  footer nav ul {
    display: flex;
    justify-content: center;
  }

  footer nav a {
    width: 100%;
    margin: 0 auto;
    border-bottom: none;
  }
}

/*ハンバーガーメニューボタン*/
.openbtn {
  position: fixed;
  right: 15px;
  top: 10px;
  z-index: 999;
  cursor: pointer;
  width: 42px;
  height: 42px;
}

/*ボタン内側*/
.openbtn span {
  position: absolute;
  display: inline-block;
  transition: all .5s;
  /*アニメーションの設定*/
}

.openbtn span:nth-of-type(2),
.openbtn span:nth-of-type(3) {
  height: 1px;
  background: #3567be;
  width: 40px;
}

#works_page .openbtn span:nth-of-type(2),
#works_page .openbtn span:nth-of-type(3) {
  background: #fff;
}

.openbtn span:nth-of-type(2) {
  bottom: 10px;
}

.openbtn span:nth-of-type(1) {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #3567be;
}

#works_page .openbtn span:nth-of-type(1) {
  color: #fff;
}

.openbtn span:nth-of-type(3) {
  bottom: 5px;
}

/*batsuクラスが付与される×になる、Menuは透過して消す*/
.openbtn.batsu span:nth-of-type(1) {
  /*MENU*/
  opacity: 0;
}

.openbtn.batsu span:nth-of-type(2) {
  transform: translate(0, 2px) rotate(30deg);
}

.openbtn.batsu span:nth-of-type(3) {
  transform: translate(0, -2px) rotate(-30deg);
}

/*パネルエリア*/
#HBG_nav.panelactive {
  position: fixed;
  z-index: 99;
  top: 0;
  width: 100%;
  margin-left: 10px;
  height: auto;
  background: #f4efac;
  transition: all .5s;
  /*3秒かけてアニメーション*/
}

@media screen and (min-width:600px) {

  /*タブレット｜600~1024*/
  #HBG_nav.panelactive {
    top: 0;
    right: 0;
    width: 50%;
  }
}

/*ナビゲーション
=============*/
#HBG_nav ul {
  display: none;
  /*はじめ消す*/
}

/*背景が出現後にナビゲーションを表示*/
#HBG_nav.panelactive ul {
  display: block;
  color: #212121;
  padding: 4em 20px 2.4rem;
}

#HBG_nav li {
  width: 90%;
}

#HBG_nav li a {
  display: block;
  padding-bottom: 1.5em;
}

#HBG_nav li a:active,
#HBG_nav li a:hover {
  color: #f4efac;
}

@media screen and (min-width:600px) {

  /*タブレット｜600~1024*/
  #G_nav {
    display: none;
  }
}

@media screen and (min-width:1025px) {

  /*PC：1,025px~*/
  .openbtn {
    display: none;
  }

  #G_nav {
    display: block;
    position: absolute;
    top: 26px;
    right: 20%;
  }

  #G_nav ul {
    display: flex;
    justify-content: space-between;
  }

  #G_nav a:hover {
    color: #36bf8d;
  }
}

/*iconフォント*/
@font-face {
  font-family: 'icomoon';
  src: url('fonts/icomoon.eot?vmrjeg');
  src: url('fonts/icomoon.eot?vmrjeg#iefix') format('embedded-opentype'), url('fonts/icomoon.ttf?vmrjeg') format('truetype'), url('fonts/icomoon.woff?vmrjeg') format('woff'), url('fonts/icomoon.svg?vmrjeg#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="icon-"],
[class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-phone:before {
  content: "\e942";
  margin-right: 5px;
  vertical-align: baseline;
}

.icon-mail2:before {
  content: "\ea84";
  margin-right: 5px;
  vertical-align: baseline;
}

.icon-facebook:before {
  content: "\ea90";
}

.icon-instagram:before {
  content: "\ea92";
}

.icon-twitter:before {
  content: "\ea96";
}