body,html {
  position: static;
  font-family: 'Noto Sans JP', sans-serif;
  background-image: url(img/backgraund.jpg);
  scroll-behavior: smooth;
}

html:not(.is-loaded) body {
  opacity: 0;
}

html.is-loaded body {
  opacity: 1;
  transition: opacity 3s ease;
}

/* ヘッダー */

header {
  width: 90%;
  margin: 0 auto;
  padding: 0 5%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
background-color: rgb(255, 255, 255,0.4);
}

header a {
  color: #000;
  letter-spacing: 0.3em;
  line-height: 1.8;
}

a:hover {
  color: gray;
}

.header-top {
  font-style: italic;
  font-size: 32px;
}

.header-menu {
  width: 30%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
}

/* スタイル */

h1 {
  font-weight: bold;
  font-size: 250px;
  opacity: 0.1;
  margin: 50px 3%;
}

/* ワークスセクション */

#works {
  width: 80%;
  margin: 0 auto;
}

.works-content {
  display: flex;
  flex-direction: column;
}

.works-box {
  width:  100%;
  margin: 0 auto 10% auto;
  background-color: rgb(255, 255, 255,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.works-box img {
  width: 450px;
}

.box-text {
  width: 40%;
  margin: 8% 0 8% 5%;
  display: flex;
  flex-direction: column;
}

.box-text h3 {
  letter-spacing: 0.3em;
  line-height: 1.8;
  text-align: center;
}

.box-text p {
  margin-top: 10%;
  line-height: 1.5;
  letter-spacing: 0.3em;
  color: gray;
}

.box-text a {
  color: #000;
  text-decoration: none;
}

.box-text a:hover {
  color: gray;
}

.works-content > .works-box:last-child {
  margin-bottom: 0;
}

/* コンタクトセクション */

.contact {
  width: 60%;
  margin: 0 auto;
}

.contact-box {
  display: flex;
  align-items: center;
}

.contact-message {
  writing-mode: vertical-rl;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  font-family: 'Noto serif JP' ,serif;
  font-size: 16px;
  line-height: 3;
}

#noun {
  background-color: rgb(255, 255, 255,0.4);
  width: 50%;
  height: 80%;
}

#noun p {
  width: 80%;
  margin: 70px auto 20px auto;
  font-style: italic;
}

.noun-box {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background-color: #fff;
  margin: 0 auto 90px auto;
  width: 80%;
}

#noun img {
  width: 24px;
  padding: 8px;
}

.noun-box a {
  color: gray;
}

.noun-box a:hover {
  color: #000;
}

.copyright {
  margin: 90px auto 30px auto;
  text-align: center;
}

/* レスポンシブ */

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

/* ヘッダー */

.header-top {
  font-size: 20px;
}

.header-menu {
  width: 50%;
  font-size: 12px;
}

/* スタイル */

h1 {
  font-size: 150px;
  margin: 6% 0 0 3%;
}

/* ワークスセクション */

#works {
  width: 90%;
  margin: 0 auto;
}

.works-content {
  display: flex;
  flex-direction: column;
}

.works-box {
  margin: 10% auto 10% auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.works-box img {
  width: 450px;
  margin: 10% auto 0 auto;
}

.box-text {
  width: 90%;
  margin: 10% 0 10% 5%;
  display: flex;
  flex-direction: column;
}

.box-text h3 {
  letter-spacing: 0.3em;
  line-height: 1.8;
  text-align: center;
}

.box-text p {
  margin-bottom: 3%;
  line-height: 1.5;
  letter-spacing: 0.3em;
  color: gray;
}

.works-content > .works-box:last-child {
  margin-bottom: 0;
}



/* コンタクトセクション */

.contact {
  width: 90%;
}

.contact-box {
  display: flex;
  flex-direction: column;
}

.contact-message {
  order: 1;
  writing-mode: horizontal-tb;
  margin: 20px auto 20px auto;
}

#noun {
  width: 80%;
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 18px;
  order: 2;
}

}