@charset "utf-8";

/* 共通部分 */
body {
  font-family: "Noto Sans JP";
  color: #4d4d4d;
  line-height: 1.6rem;
  letter-spacing: 0.2rem;
}
main {
  max-width: 1200px;
  margin: 0 auto;
}
section {
  margin-top: 180px;
}
.page-title {
  font-size: 4rem;
  font-weight: 600;
  color: #4d4d4d;
  text-align: center;
  margin-bottom: 80px;
  letter-spacing: 3.6rem;
}
.page-title span {
  color: rgb(178, 218, 206);
}
.sub-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 25px;
}
.sub-title::after {
  content: "";
  width: 100px;
  height: 2px;
  background-color: #4d4d4d;
  display: block;
  margin: 26px auto 0;
}
#global-nav {
  display: none;
}

/* header */
header {
  height: 100px;
  background-color: rgb(178, 218, 206);
}
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
header h1 img {
  width: 140px;
}
header nav ul {
  display: flex;
}
header ul li {
  font-weight: bold;
  line-height: 100px;
  margin-left: 40px;
}
header a:hover {
  color: #ffffff;
  transition: 0.2s;
}

.mainvisual {
  width: 100%;
  height: 650px;
  position: relative;
  text-align: center;
}
.mainvisual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mainvisual h1 {
  position: absolute;
  width: 100%;
  top: 40%;
  left: 0;
  color: #ffffff;
  font-size: 2.7rem;
  letter-spacing: 1.5rem;
  font-weight: 600;
}

/* main */
/* About */
.about {
  position: relative;
  margin-top: 800px;
  padding-bottom: 130px;
}
.about h2 span {
  color: #ffffff;
}
.about h2 {
  position: absolute;
  z-index: 1;
  top: 65px;
  right: 65px;
  margin: 0;
}
.about img {
  width: 62%;
  height: 400px;
  object-fit: cover;
  object-position: 0 80%;
  position: absolute;
}
.about .text {
  position: relative;
  background-color: rgb(178, 218, 206);
  z-index: -10;
  left: 40%;
  top: 80px;
  width: 61%;
  height: 400px;
  box-shadow: inset 0 0 5px 5px #ffffff;
}
.about .text p {
  text-align: center;
  margin-left: 190px;
  padding-top: 140px;
  line-height: 2.1rem;
  letter-spacing: 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.more {
  margin-top: 100px;
  display: inline-block;
  font-weight: 600;
  position: absolute;
  right: 20px;
  bottom: 0;
}
.more::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #4d4d4d;
  border-right: 2px solid #4d4d4d;
  transform: rotate(45deg);
  margin-right: 40px;
}
.more:hover {
  text-decoration: underline;
  transform: scale(1.1);
  transition: 0.3s;
}

/* works */
.works .sub-title::after {
  display: none;
}
.flex {
  display: flex;
  justify-content: space-around;
  padding-top: 50px;
  text-align: center;
}
.website,
.design {
  width: 45%;
  /* 最初は非表示 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
  transition: opacity 2.5s, visibility 1s, transform 1s;
}
.flex img {
  width: 100%;
  height: 65%;
  margin-bottom: 20px;
  object-fit: cover;
}
.works .more {
  position: sticky;
  margin-top: 50px;
  padding-right: 20px;
}
.works .flex ~ p {
  text-align: right;
  display: block;
}

/* photos */
.photos h2 ~ p {
  display: block;
  padding-top: 50px;
  margin-left: 5px;
  margin-bottom: 5px;
  font-size: 0.8rem;
}
.photos ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: space-between;
  margin-bottom: 40px;
  margin-top: -300px;
}
.photos li {
  width: 23%;
  height: 250px;
  margin-bottom: 35px;
}
.photos li a {
  width: 100%;
}
.photos li a:hover {
  filter: brightness(1.1);
}
.photos li a > img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  margin-bottom: 10px;
}
.color {
  background-color: rgb(178, 218, 206);
  opacity: 0.6;
  width: 75%;
  height: 300px;
  position: relative;
  z-index: -1;
  left: 12%;
  top: 100px;
}
.photos ul ~ p {
  text-align: right;
  display: block;
}
.photos .more {
  position: sticky;
  margin-top: 50px;
  margin-right: 10px;
}
.photos a > img {
  width: 20px;
  height: 20px;
  margin: 0 10px 4px 5px;
}

/* footer */
footer {
  margin-top: 90px;
  padding: 120px 0 5px 0;
  background-color: rgb(178, 218, 206);
}
footer .page-title span {
  color: #ffffff;
}
footer .flex {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  padding-top: 50px;
  justify-content: space-around;
}
.contact-img img {
  border-radius: 50%;
  object-fit: cover;
  width: 250px;
  height: 250px;
}
footer p {
  margin-bottom: 70px;
}
footer .more {
  position: relative;
  bottom: 90px;
}
footer a:hover {
  color: #ffffff;
}
footer .flex ~ p {
  text-align: center;
  margin: 90px 0 10px 0;
}

/* リンク共通 */
.more {
  /* 最初は非表示 */
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100px);
  transition: opacity 2s, visibility 1s, transform 1s;
}

/* ページトップに移動 */
/* ボタン */
#to-top {
  width: 50px;
  height: 50px;
  background-color: #979797;
  border: solid 1px #4d4d4d;
  border-radius: 50%;
  position: fixed;
  right: 25px;
  bottom: 25px;
  opacity: 0;
  transition: 1s;
}
#to-top::after {
  content: "";
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 13px solid #fff;
  position: relative;
  left: 16px;
  bottom: 6px;
}

/* サブページ */
/* 共通 */
.sub-page {
  margin-top: 140px;
  padding-bottom: 100px;
}
footer a ~ p small {
  display: block;
  background-color: rgb(178, 218, 206);
  margin-top: 0;
  padding-bottom: 10px;
}

/* aboutページ */
.about-topimg {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: 0 85%;
  position: relative;
  top: -85px;
  z-index: -1;
}
.history-img {
  float: left;
  width: 100%;
}
.history-text {
  background-color: #ffffff;
  padding: 50px 60px 50px 60px;
  float: right;
  position: relative;
  z-index: 1;
  margin: -140px 20px 60px 0;
  max-width: 750px;
  /* 最初は非表示 */
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 2s, visibility 1s, transform 1.5s;
}
.hobby-img {
  width: 80%;
  position: relative;
  z-index: -1;
  float: right;
}
.hobby-img img {
  width: 100%;
  height: 1000px;
  opacity: 0.8;
  object-fit: cover;
  object-position: 0 80%;
}
.hobby-text {
  float: left;
  position: relative;
  z-index: 1;
  background-color: #ffffff;
  margin-top: -960px;
  width: 450px;
  padding: 90px 50px 90px 40px;
  /* 最初は非表示 */
  opacity: 0;
  /* visibility: hidden; */
  transform: translateX(100px);
  transition: opacity 2.5s, visibility 1s, transform 1.5s;
}
.hobby-text span,
.history-text span {
  font-size: 1.2rem;
  letter-spacing: 0.8rem;
  line-height: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  opacity: 0.8;
}
.about-footer {
  margin-top: 2100px;
  padding: 0;
  height: 70px;
  text-align: center;
}
.about-footer a {
  margin: 0;
  line-height: 70px;
  font-weight: 700;
}

/* worksページ */
.works-topimg img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: 0 40%;
  position: relative;
  top: -85px;
  z-index: -1;
}
/* 共通部分 */
.self-made-img,
.reproduction-img {
  width: 57%;
  height: 400px;
  margin-top: 80px;
}
.self-made-img img,
.reproduction-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;
}
.sub-page h3 {
  text-align: center;
  margin-bottom: 50px;
}
.self-made-img a:hover,
.reproduction-img a:hover {
  filter: brightness(1.1);
}
.container-left {
  /* 最初は非表示 */
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50px);
  transition: opacity 1s, visibility 1s, transform 1.5s;
}
.container-right {
  /* 最初は非表示 */
  opacity: 0;
  visibility: hidden;
  transform: translateX(50px);
  transition: opacity 1s, visibility 1s, transform 2.5s;
}
.container {
  /* 最初は非表示 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50px);
  transition: opacity 1s, visibility 1s, transform 1.5s;
}

/* 自作HP */
.self-made-img {
  float: left;
}
.self-made-text {
  width: 90%;
  height: 450px;
  float: right;
  background-color: rgb(178, 218, 206);
  position: relative;
  z-index: -1;
  margin-top: -360px;
  margin-bottom: 80px;
  text-align: left;
  padding: 70px 40px 20px 50%;
}
.self-made-text-inner,
.reproduction-text-inner {
  width: 100%;
}

/* 模写コーディング */
.reproduction-img {
  float: right;
  margin-bottom: 150px;
}
.reproduction-text {
  width: 90%;
  height: 450px;
  float: left;
  background-color: rgb(178, 218, 206);
  position: relative;
  z-index: -1;
  margin-top: -500px;
  padding: 70px 50% 20px 40px;
  margin-bottom: 80px;
  text-align: left;
}
/* 広告・バナー */
.container {
  background-color: rgb(178, 218, 206);
  margin-top: 1350px;
  padding-top: 80px;
  text-align: center;
}
/* リスト共通 */
.container ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 50px;
}
.container ul li {
  width: 40%;
  margin-bottom: 40px;
}
.container li img {
  width: 100%;
  object-fit: cover;
}
.container ul li a:hover {
  filter: brightness(1.1);
}

.container ul li p {
  padding: 15px 0;
  font-weight: 500;
  font-size: 1.1rem;
}
.container ul ~ p {
  display: inline-block;
  text-align: center;
  width: 600px;
}
/* バナー */
.container .banner {
  align-items: center;
  margin-top: 100px;
  flex-wrap: wrap;
}
.container .banner li p {
  padding: 30px 0;
}
/* チラシ */
.container .paper li {
  width: 25%;
}
.works-footer {
  padding: 0;
  height: 70px;
  text-align: center;
  margin-top: 0;
}
.works-footer a {
  margin: 0;
  line-height: 70px;
  font-weight: 700;
}

/* photosページ */
.photos-topimg img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: 0 40%;
  position: relative;
  top: -85px;
  z-index: -1;
}
.edit-photo p {
  text-align: center;
  margin-bottom: 100px;
}
.edit-photo h3 span {
  font-size: 2rem;
  color: rgb(178, 218, 206);
  margin-right: 20px;
}
.edit-photo ul {
  display: flex;
  justify-content: space-around;
  margin: 30px 0 100px -95px;
}
.edit-photo ul::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 17px;
  border-top: 4px solid rgb(178, 218, 206);
  border-right: 4px solid rgb(178, 218, 206);
  transform: rotate(45deg);
  position: relative;
  top: 170px;
  left: 50%;
}
.edit-photo ul li {
  width: 40%;
}
.edit-photo ul li img {
  width: 100%;
  height: 100%;
}

/* contactページ */
.contact-page {
  padding: 140px 20px 50px 20px;
}
.contact-page h2 ~ p {
  text-align: center;
}
.contact-page a {
  text-decoration: underline;
  font-weight: 700;
}
.form {
  padding: 40px 60px;
  max-width: 900px;
  margin: 50px auto 0;
  transform: translateY(20px);
  transition: opacity 1s, visibility 1s, transform 2s;
  transition-timing-function: ease-in-out;
}
/* 背景画像をフェードイン */
.fadein-img {
  background: #ffffff url(../imges/IMG_2221.jpg) center;
  opacity: 0.9;
  border-radius: 12px;
  box-shadow: inset 0 0 10px 10px #ffffff;
  visibility: visible;
  transform: translate(0);
}

.form input,
.form textarea {
  background-color: #ffffff;
  opacity: 0.7;
  border: 1px solid #4d4d4d;
  border-radius: 5px;
  margin-left: 10px;
  width: 90%;
  margin-bottom: 30px;
}
.form table {
  width: 100%;
  margin: 40px 0 20px 0;
}
.form tr th {
  width: 20%;
}
.form input {
  height: 50px;
}
.form textarea {
  height: 150px;
}
/* 送信ボタン */
.form p {
  text-align: center;
}
.form p input {
  width: 160px;
  height: 60px;
  background-color: #4d4d4d;
  border: 1px solid #4d4d4d;
  color: #ffffff;
  opacity: 1;
  letter-spacing: 0.3rem;
}
.form p input:hover {
  transform: scale(1.04);
  transition: 0.4s;
  background-color: rgb(178, 218, 206);
  opacity: 0.9;
  color: #4d4d4d;
  font-weight: 600;
}

.contact-footer {
  padding: 0;
  height: 70px;
  text-align: center;
  margin-top: 0;
}
.contact-footer a {
  margin: 0;
  line-height: 70px;
  font-weight: 700;
}

/* 共通 */
/* フェードインで横から表示 */
.fadein-x {
  opacity: 1;
  visibility: visible;
  transform: translate(0);
}
.fadein-y {
  opacity: 1;
  visibility: visible;
  transform: translate(0);
}

/* レスポンシブ */
@media screen and (max-width: 640px) {
  /* 共通部分 */
  body {
    letter-spacing: 0.1rem;
  }
  section {
    margin-top: 20px;
  }
  .page-title {
    letter-spacing: 1.5rem;
    font-size: 2rem;
  }
  .sub-page {
    margin-top: 40px;
    padding-bottom: 0;
  }
  .about a::before,
  .photos a::before,
  footer a::before {
    margin-right: 20px;
  }
  /* トップページ */
  .mainvisual video {
    height: 80vh;
  }
  .mainvisual h1 {
    letter-spacing: 0.5rem;
    font-size: 1.5rem;
  }
  .about,
  .about img,
  .about h2,
  .about a {
    position: static;
  }
  .about {
    margin-top: 700px;
    padding-bottom: 80px;
    text-align: right;
  }
  .about h2 {
    margin-bottom: 80px;
  }
  .about h2 span {
    color: rgb(178, 218, 206);
  }
  .about img {
    width: 100%;
    height: 300px;
  }
  .about .text {
    width: 80%;
    text-align: center;
    height: 160px;
    top: -20px;
    left: 11%;
  }
  .about .text p {
    margin: 0;
    padding-top: 50px;
    letter-spacing: 0.2rem;
    font-weight: 500;
    line-height: 1.4rem;
    font-size: 0.9rem;
  }
  .about a {
    margin-top: 0;
  }
  .about-footer {
    margin-top: 10px;
  }

  .works .flex {
    display: block;
    padding-top: 10px;
  }
  .website,
  .design {
    margin: 0 auto;
    width: 80%;
    font-size: 0.9rem;
  }
  .website {
    margin-bottom: 80px;
  }

  .photos {
    margin-top: 80px;
  }
  .photos h2 ~ p {
    display: block;
    padding: 0 0 0 20px;
    margin-bottom: 0;
    font-size: 0.5rem;
  }
  .photos ul {
    padding: 0 20px;
    margin-top: -640px;
    margin-bottom: 0;
  }
  .photos ul ~ p {
    font-size: 0.8rem;
  }
  .photos li {
    width: 48%;
    height: 150px;
    margin-bottom: 50px;
    font-size: 0.8rem;
    line-height: 1rem;
  }
  .color {
    height: 640px;
    top: 40px;
  }

  footer {
    height: 600px;
    margin-top: 60px;
    padding-top: 60px;
  }
  footer .flex {
    padding: 0 10px;
    display: block;
  }
  footer .flex p {
    margin-bottom: 30px;
  }
  footer .flex img {
    width: 150px;
    height: 150px;
  }
  footer .flex ~ p {
    margin-top: 20px;
    font-size: 10px;
  }

  /* ページトップに移動 */
  /* ボタン */
  #to-top {
    width: 35px;
    height: 35px;
    background-color: #979797;
    border: solid 1px #4d4d4d;
    border-radius: 50%;
    position: fixed;
    right: 25px;
    bottom: 25px;
    opacity: 0;
    transition: 1s;
  }
  #to-top::after {
    content: "";
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 11px solid #fff;
    position: relative;
    left: 11px;
    bottom: 14px;
  }

  /* aboutページ */
  .history-img {
    width: 100%;
    height: 200px;
    padding: 0 20px;
  }
  .about-topimg {
    height: 100%;
    float: initial;
  }
  .history-text {
    margin-top: -20px;
    padding: 0 20px;
    float: initial;
    background-color: initial;
    width: 100%;
    font-size: 0.8rem;
  }
  .hobby-img {
    position: relative;
    float: initial;
    opacity: 0.4;
    width: 100%;
    right: 0;
  }
  .hobby-img img {
    object-position: center 80%;
  }
  .hobby-text {
    position: absolute;
    float: initial;
    width: 80%;
    background-color: initial;
    padding: 60px 0 0 20px;
    font-size: 0.8rem;
  }
  .hobby-text span {
    letter-spacing: 0.4rem;
    font-size: 1rem;
  }

  /* workページ */
  .works-page {
    margin-top: 20px;
    padding: 0 20px;
  }
  .works-topimg {
    width: 100%;
    height: 200px;
  }
  .works-topimg img {
    height: 100%;
  }
  .self-made-img,
  .reproduction-img {
    margin: 0 auto;
    margin-top: 320px; /*トップimgとの間隔*/
    width: 90%;
    height: 300px;
    float: initial;
  }
  .self-made-text,
  .reproduction-text {
    width: 100%;
    height: 590px;
    float: initial;
    margin-top: -670px; /*画像の位置調整*/
    margin-bottom: 400px;
    padding: 50px;
    font-size: 0.9rem;
  }
  .reproduction-text {
    margin-bottom: 50px;
  }
  .sub-page h3 {
    font-size: 1.2rem;
  }
  .self-made-img img,
  .reproduction-img img {
    height: 200px;
  }
  .container {
    margin-top: 50px;
    padding-bottom: 10px;
  }
  .container ul {
    display: block;
    margin: 30px auto;
    width: 90%;
  }
  .container ul li {
    width: 100%;
    margin-bottom: 0;
  }
  /* サイトロゴ説明 */
  .container ul ~ p {
    width: 300px;
  }
  .container .paper li {
    width: 100%;
    margin: 0 auto 30px;
  }

  /* photosページ */
  .photos-topimg {
    width: 100%;
    height: 170px;
  }
  .photos-topimg img {
    height: 100%;
  }
  .edit-photo p {
    font-size: 0.9rem;
  }
  .edit-photo ul {
    margin-left: -40px;
    margin-bottom: 30px;
  }
  .edit-photo ul::before {
    top: 70px;
    width: 8px;
    height: 8px;
    border-top: 2px solid rgb(178, 218, 206);
    border-right: 2px solid rgb(178, 218, 206);
  }

  /* contactページ */
  .contact-page {
    padding-top: 80px;
  }
  .form {
    padding: 30px 20px;
  }
  .contact-page p {
    font-size: 0.7rem;
  }
  .form input {
    height: 25px;
  }
  .form textarea {
    height: 80px;
  }
  .form p > input {
    width: 120px;
    height: 50px;
  }

  /* ハンバーガーメニュー */
  header nav {
    display: none;
  }
  header {
    background-color: #ffffff;
  }
  /* ボタン */
  .hamburger {
    background-color: #ffffff;
    opacity: 0.7;
    width: 60px;
    height: 60px;
    position: fixed;
    z-index: 5;
    right: 0;
    cursor: pointer;
  }
  .hamburger span:nth-child(1) {
    background-color: #4d4d4d;
    width: 40px;
    height: 2px;
    right: 10px;
    top: 18px;
    position: fixed;
    transition: all.5s;
  }
  .hamburger span:nth-child(2) {
    background-color: #4d4d4d;
    width: 40px;
    height: 2px;
    right: 10px;
    top: 28px;
    position: fixed;
  }
  .hamburger span:nth-child(3) {
    background-color: #4d4d4d;
    width: 40px;
    height: 2px;
    right: 10px;
    top: 38px;
    position: fixed;
    transition: all.5s;
  }

  .hamburger.show {
    top: -60px;
  }
  /* メニューが開いた時に×になる */
  .hamburger.show span:nth-child(1) {
    transform: rotate(135deg);
    top: 28px;
    right: 10px;
    transition: all.5s;
  }
  .hamburger.show span:nth-child(2) {
    display: none;
  }
  .hamburger.show span:nth-child(3) {
    transform: rotate(-135deg);
    top: 28px;
    right: 10px;
    transition: all.5s;
  }
  /* 開く時の動き */
  .show {
    transform: translate3d(0, 100%, 0);
  }
  /*  開いた時のナビメニュー */
  #global-nav {
    width: 100%;
    height: 100%;
    position: fixed;
    display: block;
    top: -100%;
    text-align: center;
    background-color: rgb(178, 218, 206);
    opacity: 0.9;
    z-index: 4;
    transition: all 0.6s;
  }
  #global-nav ul {
    padding-top: 80px;
  }
  #global-nav li {
    margin-bottom: 50px;
    font-size: 22px;
    font-weight: 600;
    display: block;
  }
  #global-nav li a:hover {
    transition: 0.3s;
    transform: scale(1.1);
    border-bottom: 2px solid #ffffff;
    color: #ffffff;
  }
  #global-nav a {
    display: inline-block;
    padding-bottom: 10px;
    letter-spacing: 0.9rem;
  }
}
