@charset "utf-8";

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

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

body {
  font-family: Rufina;
  color: #706e6b;
  margin: 0;
  font-size: 18px;
  line-height: 1;
  background-color: #F2B1B6;
}

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;
}

/* ヘッダー */
.header {
  height: 80px;
}

.header-container img {
  display: block;
  width: clamp(30px, 7.81vw, 60px);
  height: auto;
}


.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: #FEF7E2;
  font-size: 30px;
}

.open .navbtn {
  z-index: 110;
  color: #FEF7E2;
}

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

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

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

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


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

/* ナビゲーションメニュー：モバイル */
@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: #FEF7E2;
  }
}

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


/* ラインタグ */
#about h2 {  
  border-top: solid 1px;
  border-bottom: solid 1px;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
}

/* アバウト */
#about h3, h4 {
  text-align: center;
}

.figure {
  margin: 0;
  padding: 0;
}

.figure img {
  max-width: 200px;
  height: auto;
}

.about-box p {
  margin-top: 1em;
  margin-bottom: 2em;
  font-size: 18px;
}

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

.skill-section {
  width: 90%;
  max-width: 1200px;
  margin: 60px auto;
  display: grid;
  gap: 10px;
  aspect-ratio: 1 / 1;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto auto;
  justify-items: start;
}

.skill-box {
  position: relative;
  padding: 60px 0;
  border-top: 1px solid #ccc;
}

.skill-box:last-child {
  border-bottom: 1px solid #ccc;
}

.step-tag {
  position: absolute;
  top: 40px;
  left: 0;
  background: #222;
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
}

.skill-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  padding-top: 20px;
}

.text-area {
  flex: 1;
  padding-top: 20px;
}

.text-area h2 {
  font-size: 38px;
  margin-bottom: 30px;
  color: #1f2b46;
}

.text-area p {
  font-size: 18px;
  margin-bottom: 18px;
}

.image-area {
  width: 200px;
  flex-shrink: 0;
}

.image-area img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* レスポンシブ */
@media screen and (max-width: 900px) {

  .skill-content {
    flex-direction: column;
  }

  .image-area {
    width: 100%;
  }

  .text-area h2 {
    font-size: 30px;
  }

  .text-area p {
    font-size: 16px;
  }
}











@media (min-width: 768px) {
  #about {
    flex-direction: row;
    align-items: center;
  }

.about-box > .text {
  flex: 1;
  min-width: 17em;
}

.about-box img {
  flex: 2;
}
}