@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: 100%;
  height: auto;
}

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

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

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

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

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