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

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

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

/* ヘッダー */

header {
  width: 80vw;
  height: 70vh;
  margin: 20vh auto;
  display: flex;
  flex-direction: column;
  writing-mode: vertical-rl;
  position: relative;
}

header a {
  position: absolute;
  color: #000;
  font-style: italic;
  font-size: 32px;
  letter-spacing: 0.3em;
  line-height: 1.8;
  right: 0;
  top: 0;
}

header a:hover {
  color: gray;
}

header p {
  font-family: 'Noto serif JP' ,serif;
}

.message {
  position: absolute;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  line-height: 2;
  font-size: 16px;
}

.arrow {
  writing-mode: horizontal-tb;
  position: fixed;
  top: auto;
  left: 5vw;
  bottom: 5vh;
  display: flex;
  flex-direction: column;
  font-size: 24px;
  transition: opacity .6s ease;
  z-index: 100;
  opacity: 1;
}

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

html.is-loaded .arrow:not(.hide) {
  opacity: 1;
  transition: opacity 1.2s ease;
}

.arrow.hide {
  opacity: 0;
  pointer-events: none;
}

.arrow p {
  margin: 5px;
  font-style: normal;
}

/* スタイル */

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

.arrow-right {
  display: flex;
  justify-content: end;
  color: #000;
}

.arrow-right:hover {
  color: gray;
}

.arrow-right p {
  font-size: 24px;
  margin: 100px 5px 0 5px;
}

/* aboutセクション */

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

.about-content {
  display: flex;
  justify-content: center;
}

.about-box {
  display: flex;
  flex-direction: column;
  width: 40%;
  padding: 5% 0 3% 0 ;
  gap: 1%;
  background-color: rgb(255, 255, 255,0.4);
  margin: 0 auto;
}

#profile-img {
  filter: grayscale(100%);
  width: auto;
  height: 60%;
}

h2 {
  font-size: 24px;
  margin: 5%;
  letter-spacing: 0.3em;
  font-weight: normal;
}

.about-box p {
  margin: 0 5%;
  line-height: 1.5;
  letter-spacing: 0.2em;
  color: gray;
}

#technique-icon {
  display: grid;
  grid-template-columns: repeat(2, 45%);
  justify-content: end;
  height: 60%;
}

#technique-icon img {
  margin-top: 10%;
}

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

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

.works-content {
  display: flex;
  justify-content: space-between;
}

.works-box {
  width: 30%;
  padding: 5% 0 3% 0 ;
  background-color: rgb(255, 255, 255,0.4);
  display: flex;
  flex-direction: column;
}

.works-box img {
  width: 80%;
  margin: 0 auto;
  display: block;
  filter: grayscale(100%);
}

.works-box p {
  width: 80%;
  margin: 10% auto 0 auto;
  display: block;
}

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

.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;
  font-size: 12px;
}

/* レスポンシブ */

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


/* ヘッダー */
  
.arrow {
  font-size: 16px;
}

/* スタイル */

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

.arrow-right {
  justify-content: center;
}

.arrow-right p {
  font-size: 20px;
  margin: 0 5px;

}

/* aboutセクション */

#about {
  width: 90%;
}

.about-content {
  display: block;
}

.about-box {
  width: 100%;
  margin: 10% auto;
}

#technique-icon {
  display: grid;
  grid-template-columns: repeat(2, 45%);
  justify-content: center;
  margin: 0 auto 10% auto;
  gap: 20%;
  height: 60%;
}

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

#works {
  width: 90%;
}

.works-content {
  display: block;
}

.works-box {
  width: 100%;
  margin: 10% auto;
  padding-top: 10%;
  padding-bottom: 10%;
}

.works-box p {
  width: 80%;
  margin-top: 5%;
}

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

.contact {
  width: 90%;
}

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

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

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

}