@import url("./root.css");

/*=============================================
base
=============================================*/

body {
  background-color: var(--bg-color);
  font-family: 'Noto Sans JP', sans-serif, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, "メイリオ", Meiryo, sans-serif;
  background-color: var(--bg-color);
  color: #fff;
  font-size: 16px;
  padding: 20px;
  line-height: 1.8;
  padding-top: 70px;
}

main {
  position: relative;
}

h1 {
  display: none;
}

.manual-home h1{
  display: block;
  padding-left: 20px;
  padding-top: 10px;
}

@media screen and (min-width:480px) {
  body {
    padding-right: 40px;
    padding-left: 40px;
    padding-bottom: 40px;
  }
}

body.item__text{
  padding: 1rem;
}
/*
back-btn
---------------------------------*/
.back-btn {
  display: block;
  margin-right: auto;
  margin-left: auto;
  /* margin-top: -40px; */
  width: 60%;
  max-width: 500px;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  margin-right: auto;
  margin-left: auto;
  z-index: 1;
}

.back-btn a {
  background-color: #3cb323;
  display: block;
  font-weight: bold;
  padding: 5px 0;
  border-radius: 0 0 20px 20px;
  text-align: center;
}

.manual-home .back-btn {
  display: none;
}

@media screen and (min-width:768px) {
  /* .back-btn {
    margin-top: -80px;
  } */
}

/*
header
---------------------------------*/
header {
  /* display: flex;
  margin-bottom: 40px; */
  /* justify-content: space-between; */
  justify-content: flex-end;
  /* align-items: center; */
  position: fixed;
  background-color: rgba(0,0,0,0.6);
  width: 100%;
  height: 70px;
  left: 0;
  top: 0;
  z-index: 1;
}

header h1 {
  font-size: clamp(1.375rem, 1.3285rem + 0.2326vw, 1.5rem);
  font-weight: bold;
}

header .bar {
  display: grid;
  justify-content: center;
  text-align: center;
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 1;
}

header .bar span:nth-child(1),
header .bar span:nth-child(2) {
  width: 30px;
  height: 4px;
  border-radius: 3px;
  background-color: #fff;
  margin-bottom: 8px;
}

header .bar span:nth-child(2) {
  width: 25px;
}

header .bar span:nth-child(3) {
  font-size: clamp(0.625rem, 0.5785rem + 0.2326vw, 0.75rem);
  line-height: 1;
}


header nav>div:first-child {
  border-bottom: solid 1px #fff;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

header nav p {
  font-size: clamp(1.125rem, 0.9886rem + 0.6818vw, 1.5rem);
  margin-bottom: 10px;
  font-weight: bold;
  text-align: center;
}

header nav ul {
  display: flex;
  gap: 20px;
}



@media screen and (min-width:480px) {
  header nav {
    display: flex;
    gap: 40px;
  }

  header nav>div:first-child {
    border: none;
    padding: 0;
    border-right: solid 1px #fff;
    padding-right: 40px;
  }

}

/*
btn
---------------------------------*/
.btn {
  text-align: center;
}

.btn>a,
.btn>span {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  font-weight: bold;
  padding: 10px 30px;
  border-radius: 100px;
  text-decoration: none !important;
}

.btn.--blue>a,
.btn.--blue>span {
  background-color: #689fda;
}

/*=============================================
TOP
=============================================*/
/*
recipe-list
---------------------------------*/
.recipe-list {
  margin-bottom: 30px;
}

.recipe-list h2 {
  font-size: clamp(1.25rem, 1.1105rem + 0.6977vw, 1.625rem);
  margin-bottom: 20px;
  font-weight: bold;
}

.recipe-list h2 i {
  margin-right: 15px;
}

.recipe-list ul {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  font-size: clamp(1.125rem, 1.0320rem + 0.4651vw, 1.375rem);
}

.recipe-list li a {
  width: 100%;
}

@media screen and (min-width:480px) {
  .recipe-list ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*=============================================
.manual-article
=============================================*/
.manual-article .item {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.manual-article .item__info {
  height: 70vh;
  overflow: auto;
  font-weight: bold;
  font-size: clamp(1rem, 0.9091rem + 0.4545vw, 1.25rem);
  padding-right: 20px;
}

.manual-article .item__title {
  font-size: clamp(1.25rem, 1.1105rem + 0.6977vw, 1.625rem);
  font-weight: bold;
  margin-bottom: 20px;
}


video {
  width: 100%;
}

.item__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  white-space: nowrap;

}

@media screen and (min-width:768px) {
  .manual-article .item {
    flex-wrap: nowrap;
  }

  .manual-article .item__photo {
    width: 50%;
  }

}

/*=============================================
modal
=============================================*/

.modal-container {
  position: fixed;
  display: grid;
  place-content: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
  z-index: 99;
  background-color: rgba(0, 0, 0, .5);
}

.modal-container.active {
  opacity: 1;
  visibility: visible;
}

.modal-body {
  display: grid;
  place-content: center;
  background-color: #000;
  border: solid 1px #fff;
  border-radius: 10px;
  margin: auto;
  position: relative;
}

.modal-content {
  margin: auto;
  padding: 20px;
  width: 100%;
}

.modal-close {
  margin: auto;
  margin-top: -20px;
  color: #000;
  background-color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-content: center;
}

.modal-close:hover,
.has-modal {
  cursor: pointer;
}

@media screen and (min-width:768px) {
  .modal-content {
    padding: 40px;
  }
}