@charset "utf-8";

/* 変数定義 */
:root {
  --v-space: clamp(90px, 9vw, 100px);
}
/* リセット */
*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
ul,
ol {
  list-style: none;
}
a {
  display: block;
  color: inherit;
  text-decoration: none;
}
h1,h2,h3 {
  font-weight: 400;
}

/* 基本 */
body {
  max-width: 100vw;
  background-color: #f5f5f4;
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}
p {
  line-height: 1.8;
}
img {
  display: block;
}
.vertical {
  writing-mode: vertical-lr;
}
.w-container {
  width: min(92%, 1160px);
  margin: auto;
}

/* 共通 */
h2 {
  font-size: 32px;
  text-shadow: 4px 4px 5px #666;
}
h2::after {
  display: block;
  content: '';
  width: 160px;
  height: 0;
  border-top: 1px solid #666;
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}
.morebtn {
  display: inline-block;
  width: fit-content;
  border-bottom: 1px solid #000;
  margin-top: 2em;
  font-size: 16px;
}

/* ローディング画面 */
#loading {
  background-color: #f5f5f4;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}
#loading-screen {
  background: linear-gradient(90deg,#666,#f8fbff);
  position: fixed;
  inset: 0;
  z-index: 9998;
  translate: 100vw 0;
}
#loading p {
  font-size: 3rem;
  font-family: "Hina Mincho", serif;
}

/* ファーストビュー */
.first-view {
  width: 100%;
  display: flex;
  position: relative;
  padding-bottom: var(--v-space);
}
h1 {
  position: absolute;
  z-index: 100;
  top: 10vh;
  font-family: "Hina Mincho", serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 0.8rem;
}
.mv p {
  position: absolute;
  z-index: 100;
  margin-top: 7em;
  margin-left: 1em;
}
.mv img {
  width: 60vw;
  height: 100vh;
}
.pc-nav ul li {
  margin-top: 2em;
  margin-bottom: 3em;
  margin-left: 1em;
  font-size: 24px;
  transition: .6s;
}
.pc-nav ul li:hover {
  transition: .6s;
  letter-spacing: 0.35em;
}
.pc-nav ul li:first-child {
  margin-left: 10em;
}

/* 作ったもの */
.worksec {
  padding-bottom: var(--v-space);
}
.work {
  display: flex;
  padding-bottom: 5em;
}
.work img {
  max-width: clamp(400px, 75vw, 600px);
  box-shadow: 4px 4px 5px #666;
}
.work img:hover {
  transition-duration: .5s;
  transform: scale(1.1);
}
.meishi-image {
  display: flex;
  gap: 1em;
}
.meishi-image img {
  max-width: 15vw;
  box-shadow: 4px 4px 5px #666;
}
.work_text {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(5 1fr);
  gap: 1em;
  align-content: center;
  padding-left: 5em;
}
.work_text h3 {
  font-size: 24px;
  font-weight: bold;
}
.work_text span {
  font-weight: bold;
  margin-top: 0.5em;
}
.reverse {
  flex-direction: row-reverse;
}
.reverse .work_text {
  padding-left: 0;
  padding-right: 5em;
}

/* わたしについて */
.aboutsec {
  padding-bottom: var(--v-space);
}
.aboutsec a {
  display: block;
  margin: 0 auto;
  margin-top: 5em;
}
.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
}
.about img {
  padding: 3em 1em;
  max-width: 60%;
  width: 100%;
  grid-column: 1/2;
  justify-self: center;
}
.about_text {
  grid-column: 2/3;
  align-content: center;
}
.about_text h3 {
  display: block;
  padding-bottom: 1rem;
  font-size: 24px;
  text-shadow: 3px 3px 4px #666;
}
.about_text p {
  padding-bottom: 1rem;
}
.about_text img {
  max-width: 40%;
  justify-self: baseline;
  padding: 1em;
}
.skill,
.future {
  display: block;
  margin: 0 auto;
}
.skill h3,
.future h3 {
  font-size: 1.5em;
  margin-bottom: 1em;
  text-shadow: 3px 3px 4px #666;
  text-align: center;
}
.skill span,
.future span {
  border-bottom: 1px dotted #000;
}
.skill-container {
  display: flex;
  justify-content: space-evenly;
}
.design,
.coding,
.skill {
  padding-bottom: 2em;
}
.skill-about {
  margin-top: 2em;
}

/* 連絡先 */
.contactsec {
  text-align: center;
}
.contactsec h2::after{
  display: none;
}
.contactsec p {
  margin: 2em auto;
  font-size: 1.5em;
}
.contactsec a {
  font-size: 1.5em;
  border-bottom: 1px solid #71684b;
  width: fit-content;
  margin: 0 auto;
  padding-top: 0.5em;
}

/* トップへ戻る */
.page_top_btn {
  width: fit-content;
  margin: 0 auto;
  margin-top: 3em;
  margin-bottom: 3em;
  padding: 1em;
  border: 1px dotted #000;
  border-radius: 30px;
  background-color: #E0DCCF;
}

/* フッター */
footer {
  width: 100%;
  height: auto;
  color: #E0DCCF;
  background-color: #71684b;
}
footer p {
  text-align: center;
}


/* メディアクエリ 951px以上(pc-only) */
@media (min-width: 951px) {
  .header-container {
    display: none;
  }
}

/* メディアクエリ 950px以下（sp-only） */
@media (max-width: 950px) {
  #loading p{
    font-size: 2rem;
    place-items: center;
  }
  .w-container {
    width: min(92%, 900px);
    margin: 0 auto;
  }
  main {
    text-align: center;
    margin: 0 auto;
  }
  ::after {
    margin: 0 auto;
  }
  .morebtn {
    margin: 0 auto;
    padding-top: 2em;
  }
  .first-view {
    flex-direction: column;
  }
  .first-view img {
    width: 100vw;
    object-fit: cover;
  }
  .nav {
    display: flex;
    justify-content: flex-end;
  }
  .work {
    flex-direction: column;
    justify-content: center;
  }
  .work h3 {
    margin-top: 2em;
  }
  .work a img {
    max-width: 80vw;
    margin: 0 auto;
  }
  .work_text {
    padding: 0;
  }
  .reverse {
    flex-direction: column;
  }
  .reverse .work_text {
    padding-right: 0;
  }
  .meishi-image {
    display: flex;
    justify-content: center;
  }
  .meishi-image img {
    max-width: 30vw;
  }
  .about {
    display: flex;
    flex-direction: column;
    margin-bottom: 3em;
  }
  .about img {
    margin: 0 auto;
  }
}