@charset "utf-8";

/*新しいフォントを入れる時に以下の文を使います
@font-face{
font-family:"tamanegi";
src:url(font/tamanegi.ttf);
}*/
body,
h1,
h2,
h3,
p,
ul,
ol {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  vertical-align: bottom;
}

* {
  box-sizing: border-box;
}

.inner {
  width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f0f0f0;
}

.g_nav {
  position: fixed;
  top: 0;
  width: 100vw;
  padding: 20px 0;
  background: rgb(0 0 0/0.4);
}

.g_nav_list {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.g_nav_item a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.g_nav_item a:hover {

  transition: 0.5s;
  color: green;
}

nav:has(.g_nav_list_sp) {
  display: none;
}


/*.hero {
  .mainviju img {
    height: 550px;
    width: 1280px;
    position: relative;
  }
}*/
/*メインビジュアルの２枚の写真の動かし*/
.mainviju {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;

}

.slide:nth-child(1) {
  animation: fade1 8s infinite;
}

.slide:nth-child(2) {
  animation: fade2 8s infinite;
}

@keyframes fade1 {
  0% {
    opacity: 1
  }

  45% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  95% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fade2 {
  0% {
    opacity: 0
  }

  45% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  95% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/**********************************/
main {
  background-color: #e5e5e0;

}

.hero-text {
  position: relative;
}

.hero-text h1 {
  font-size: 84px;
  margin-bottom: 10px;

}

.catch {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  color: white;
  text-align: center;
}

.hero-text p {
  margin-bottom: 10px;
  font-size: 18px;

}

.section_num1 {
  padding: 40px 20px;
  font-family: "tamanegi";
}

h2 {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.box {

  width: calc((100% / 4 ) - 10px);
  height: 300px;
  margin-bottom: 30px;
}

.box img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.works_list {
  display: flex;
 
  flex-wrap: wrap;
  margin-bottom: 30px;
  gap: 10px;
}

.section_num2 {
  padding: 40px 20px;
  background-color: #e5e5e0;
}

.boxy img {
  display: inline;
  width: 280px;
  height: 280px;
}

.grid-third {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.grid-fourth {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.section_num3 {
  padding: 40px 20px;
  background-color: #e5e5e0;
}

.linestamp_list {
  display: flex;
  justify-content: space-between;

  margin-bottom: 30px;
}

.button-container {
  text-align: center;

}

.insta-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #e1306c;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.line-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #e1306c;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  margin-top: 20px;
  transition: background-color 0.3s ease;

}

.skills {
  display: flex;
  justify-content: left;
  padding: 10px 20px;
  line-height: 3;

}

.skills li {
  /*display: flex;*/
  margin-bottom: 30px;
}

.skills p {
  font-size: 18px;
  white-space: nowrap;
}

.skills-left {
  width: 490px;
  list-style: none;
  margin-left: 40px;

}

.skills-left li,
.skills-right li {
  position: relative;
  line-height: 1.5;
  width: 70%;
  height: 50px;
  left: 70px;
}

.skills-left li::before,
.skills-right li::before {
  content: "";
  width: 50px;
  height: 50px;
  display: inline-block;
  background: url(../assets/images/picture_HTML.png) no-repeat center / contain;
  margin-right: 20px;
  position: absolute;
  left: -60px;
}

.skills-left li:nth-child(2)::before {
  background-image: url(../assets/images/picture_CSS.png);
}

.skills-left li:nth-child(3)::before {
  background-image: url(../assets/images/picture_Illust.png);
}

.skills-left li:nth-child(4)::before {
  background-image: url(../assets/images/picture_photps.png);
}

.skills-left li:nth-child(5)::before {
  background-image: url(../assets/images/picture_Excel.png);
}

.skills-left li:nth-child(6)::before {
  background-image: url(../assets/images/picture_VLLO.png);
}

.skills-right li:nth-child(1)::before {
  background-image: url(../assets/images/picture_VSC.png);
}

.skills-right li:nth-child(2)::before {
  background-image: url(../assets/images/picture_WP.png);
}

.skills-right li:nth-child(3)::before {
  background-image: url(../assets/images/picture_JS.png);
}

.skills-right li:nth-child(4)::before {
  background-image: url(../assets/images/picture_PP.png);
}

.skills-right li:nth-child(5)::before {
  background-image: url(../assets/images/picture_Procre.png);
}

.skills-right li:nth-child(6)::before {
  background-image: url(../assets/images/picture_Word.png);
}



.skills-right {
  width: 490px;
  list-style: none;
  margin-left: 40px;
}


.about-text {
  padding: 10px 30px;
}

/*問い合わせフォームを作ってみよう*/
.contact p {
  font-size: large;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

form {
  max-width: 500px;
  margin: auto;
}

label {
  display: block;
  margin-top: 1em;
}

input,
textarea {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.3em;
  box-sizing: border-box;
}

button {
  margin-top: 1em;
  padding: 0.7em 1.5em;
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #555;
}



.single-works .works_list img {
  width: 100%;
  height: 100%;
}

.single-works .works_list {
  margin-right: auto;
  margin-left: auto;
}
video{
  width: 100%;
}

/*topに戻るの実験中 */
.back-to-top {
  color: #fff;
  padding: 10px 5px 10px 15px;
  text-decoration: none;
  opacity: 0.7;
  display: inline-block;
  width: 100%;
  height: 100%;
}

.back-to-top:hover {
  opacity: 1;
}

.backtotop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 80px;
  height: 40px;
  background: #333;
  border-radius: 5px;
  z-index: 1000;
  text-align: center;
}
.backtotop::before{
  content: "↑";
  display: inline-block;
  color: #fff;
  position: absolute;
  left: 5px;
  top: 10px;
}
@media screen and (max-width:1220px){
  .inner {
    width: auto;
  }
}
@media screen and (max-width:767px) {

  .g_nav {
    display: none;

  }

  nav:has(.g_nav_list_sp) {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    z-index: 100000;
    background: black;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
  }

  .g_nav_list_sp {
    width: 100%;
    height: 100%;
    padding: 180px 30px 50px;
  }

  .g_nav_item_sp {
    line-height: 40px;
    width: 100%;
    border-bottom: 1px solid rgb(255 255 255/0.3);
  }

  .g_nav_item_sp a {
    color: #fff;
    padding: 10px 0;
    text-decoration: none;
    font-weight: bold;
    display: block;
    width: 100%;

  }

  nav:has(.g_nav_list_sp).open {
    right: 0;
  }

  .h_btn {
    width: 40px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1000000;
  }

  .h_btn span {
    width: 100%;
    height: 4px;
    background-color: white;
    border-radius: 2px;
  }

  .h_btn.active span:nth-child(1) {
    transform: translateY(13px) rotate(45deg);
  }

  .h_btn.active span:nth-child(2) {
    opacity: 0;
  }

  .h_btn.active span:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
  }

  .hero-text h1 {
    font-size: 48px;
    margin-bottom: 10px;
  }

  .box {

    width: calc((100% / 2) - 10px);
    height: 240px;

  }

  .box img {

    height: 160px;

  }

  .grid-third,
  .grid-fourth {
    flex-wrap: wrap;
  }

  .skills {
    flex-direction: column;
  }

  .skills-right,
  .skills-left {
    width: 100%;
    margin-left: 10px;

  }

  .skills p {
    white-space: wrap;
  }
  .linestamp_list{
    flex-wrap: wrap;
  }
}