@charset "utf-8";

*, ::before, ::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:target {
  scroll-margin-top: 50px;
}

:root {
  --colorpink :#f2b1b6;
  --colorgry :#706e6b;
  --coloryellow : #FEF7E2;
  --fontru: Rufina;
  --fontzen: 'Zen Kaku Gothic New';
}

body {
  font-family: var(--fontru);
  color: var(--colorgry);
  margin: 0;
  font-size: 18px;
  line-height: 1;
  background-color: var(--colorpink);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.6;
}

.w-container {
  width: min(90%, 1200px);
  margin-left: auto;
  margin-right: auto;
}

/* ローディング */
/* #loading {
  background-color: #F2B1B6;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}

#loading p {
  font-size: 3rem;
} */

/* フェード */
.fadein {
  opacity: 0;
}

/* ヘディング */
#heading {
  grid-column: 2;
  justify-self: center;
}

h2 {
  margin-bottom: 1.2em;
  text-align: center;
  font-size: 25px;
}

/* ヘッダー */
.header {
  height: 80px;
  position: fixed;
  inset: 0;
}

.header-container img {
  display: block;
  width: clamp(100px, 26.41vw, 200px);
  height: auto;
  margin-top: 40px;
}


.header-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8em 2em;
  font-size: 16px;
}


.navbtn {
  height: 100%;
  padding: 0;
  outline: none;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--coloryellow);
  font-size: 30px;
}

.open .navbtn {
  z-index: 110;
  color: var(--coloryellow);
}

.navbtn .fa-bars {
  display: revert;
}

.open .navbtn .fa-bars {
  display: none;
}

.navbtn .fa-xmark {
  display: none;
}

.open .navbtn .fa-xmark {
  display: revert;
}

.nav ul {
  display: flex;
  margin-left: 20px;
  margin-right: 20px;
  gap: 32px;
}


@media (min-width: 768px) {
  .navbtn {
    display: none;
  }
}

/* メインビジュアル */
/* .main-visual h1 {
  margin-bottom: 42px;
  font-size: clamp(45px, 5vw, 68px);
  min-height: 0vw;
  line-height: 1.3;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: repeat(1, 1fr);
} */

.main-visual {
 height: calc(100vh - 80px);
 background-image: url(../images/IMG_6670.png);
 background-position: center;
 background-size: cover;
 background-repeat: no-repeat;
 border-radius: 80px;
 border: 3px solid #FEF7E2;
 margin-top: 80px;
 padding-top: 40px;
 margin-bottom: 80px;
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 grid-template-rows: repeat(4, 1fr);
}

.main-txt {
  color: #fff;
  font-size: 35px;
  font-weight: 300;
  grid-column: 2;
  grid-row: 4;
  padding-bottom: 20px;
}

/* 曲線タグ */
.wrap {
  overflow: hidden;
}

.content03 {
  background-color: var(--coloryellow);
  border-top-left-radius: 100%;
  border-top-right-radius: 100%;
  height: 100px;
  margin-left: -100px;
  margin-right: -100px;
  padding-left: 100px;
  padding-right: 100px;
}

#works-countainer {
  background-color: var(--coloryellow);
  padding-bottom: 20px;
}

/* つくったものリスト */
#works-countainer h2 {
  border-top: solid 1px;
  border-bottom: solid 1px;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  margin-top: 0px;
  margin-bottom: 40px;
}

.work-site {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-left: auto;
  margin-right: auto;
  padding: 50px;
  gap: 32px;
}

.works-list {
  width: calc((100% - 2rem) / 2);
  gap: 32px;
  background-color: #fff;
  padding: 1em;
}


.works-list img {
  width: 100%;
  padding: 10px;
}

.work-tag p {
  display: inline-block;
  background-color: #e7eae7;
  padding: 0.5em 1em;
  border-radius: 30px;
  margin: 0.3em;
  font-family: var(--fontzen);
}




/* アバウト私について */

#about {
  background-color: var(--colorpink);
}

#about h2 {  
  border-top: solid 1px;
  border-bottom: solid 1px;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  margin-top: 40px;
  margin-bottom: 40px;
}

.about-list {
  max-width: 90%;
  width: 1080px;
  margin: 90px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  padding: 0;
}

.ul {
  list-style: none;
}

.myname {
  font-size: 26px;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

.myname span {
  display: inline;
  margin-top: 0;
  margin-bottom: 10px;
  color: #e7eae7;
  font-size: 16px;
  font-family: var(--fontzen);
}

.about-text {
  text-align: left;
  font: var(--fontzen);
  font-size: 18px;
}

.img {
  max-width: 100%;
}

.more-btn {
  background-color: #b4c6db;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 250px;
  margin: 10px auto;
  padding: 20px 50px;
  color: #fff;
}



/* スキル紹介 */
#skill {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto; 
}

#skill h2 {
  border-top: solid 1px;
  border-bottom: solid 1px;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  margin-top: 40px;
  margin-bottom: 40px;
}


.skill-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  font-family: 'Zen Kaku Gothic New';
  font-size: 18px;
}

.skill-container img {
  width: 150px;
  margin: 1em 0;
}

.skill-container dl {
  text-align: center;
  background-color: #fff;
  border-radius: 30px;
}

.skill-container dt {
  padding: 1em;
}

.skill-container dd {
  padding: 1em;
}

.skill-container p {
  padding: 1em;
}

.more1 {
  background-color: #b4c6db;
  color: #fff;
  padding: 0.8em 2em;
  margin-left: auto;
  margin-right: 10%;
  width: 125px;
}

/* コンタクト連作先 */
#contact h2 {
  border-top: solid 1px;
  border-bottom: solid 1px;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  margin-top: 40px;
  margin-bottom: 40px;
}

.contact-container  {
  display: flex;
  justify-content: center;
}


/* フッター */
footer {
  background-color: #FEF7E2;
}

.site-menu ul {
  display: flex;
  justify-content: start;
}

.site-menu li {
  list-style: none;
  margin: 20px;
}

footer p {
  text-align: center;
}


/* ==========================================================================
   ここからモバイル用のレイアウト（画面幅768px以下で適用）
   ========================================================================== */

/* ナビゲーションメニュー：モバイル */
@media (max-width: 767.9px) {
  .header-site-menu {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 0 -100% 0 100%;
    z-index: 100;
    background-color: #a57b5b;
    transition: transform 0.3s;
  }

  .open .header-site-menu {
    display: block;
  }

  .open .nav {
    transform: translate(-100%, 0);
  }

  .open body {
    position: fixed;
    overflow: hidden;
  }

  .nav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 40px;
    color: var(--coloryellow);
  }

  .main-visual {
    border-radius: 40px;
  }

  .main-txt {
    font-size: 24px;
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .content03 {
    height: 50px;
  }

  .work-site {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px;
    width: 100%;
  }
  .works-list {
    width: 100%;
    background-color: #fff;
    padding: 1em;
  }

  .about-list {
    width: 100%;
    max-width: 100%;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0 20px;
  }

  .myname span {
    display: block;
  }

  .about-text {
    line-height: 1.6;
  }

  .skill-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .skill-container img {
    width: 120px;
  }

  .skill-container dl {
    padding-bottom: 1em;
  }

  .skill-container dt {
    padding: 1em;
    font-weight: bold;
  }

  .skill-container dd {
    padding: 0 1em 1em;
  }

  .more1 {
    margin: 30px auto 0;
    text-align: center;
  }

  .contact-container {
    padding-bottom: 40px;
  }

  footer {
    padding: 20px 0;
  }

  .site-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-menu li {
    margin: 10px 20px;
  }

  footer p {
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
  }
}