@charset "utf-8";

@media print {
  * {
    -webkit-print-color-adjust: exact;
  }
}

/* 背景もプリントOK*/

img {
  pointer-events: none;
  /* 画像がポインターで抜き取れなくなる */
}

/*========= ページ共通のCSS ===============*/
*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

ul,
ol {
  list-style: none;
}


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

body {
  font-family: sans-serif;
  font-size: 16px;
  color: #000000;
  line-height: 1;
  background-color: #ffffff;
}

img {
  max-width: 100%;
}

/* 全体の余白 */

.first-view {
  max-width: 1300px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.first-view {
  background: url(../../images/howto/howto-top/back-photo.jpg) no-repeat left top / 42vw auto;
  padding: 40px 19% 800px;
  z-index: 15;
}

.first-view h1 {
  margin-top: 10px;
  font-size: 50px;
  font-weight: normal;
  margin-left: 25px;
  line-height: 1.2;
  font-family: 'Noto Serif JP', serif;
  color: #000;
}

.first-view h2 {
  padding-top: 30px;
  font-size: 20px;
  margin-left: 20px;
  line-height: 1.2;
  font-family: 'Noto Serif JP', serif;
  color: #000;
}

.first-view p {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 23px;
  margin-left: 25px;
  padding-bottom: 10px;
}

.howto-title {
  background-color: rgba(255, 255, 255, 0.7);
}

.howto-title img {
  position: absolute;
  right: 20px;
  width: 22%;
}

.sumai-item {
  padding: 25px;
  display: grid;
  grid-template-columns: repeat(4, 210px);
  width: 960px;
  column-gap: 25px;
  row-gap: 35px;
  justify-content: center;
}

.item-area {
  width: 210px;
  height: 166px;
  background-color: #f5f3f2;
  border-color: #3e3a39;
  border-radius: 2px;
  box-shadow: 1px 2px 2px #504f4e;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 20;
  position: relative;
}

.item-area img {
  width: 100%;
  position: absolute;
top: 0;
left: 0;  
z-index: 30;
}


.item-area h3 {
  font-size: 18px;
  font-weight: normal;
  color: #504f4e;
  position: absolute;
  bottom: 12px;
  z-index: 30;
}

/*hoverをしたらボックスに影がつき、上に上がる*/
.item-area:hover {
  top: -10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


@media screen and (max-width: 1200px) {

  .sumai-item {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, 210px);
    width: 85vw;
    column-gap: 25px;
    row-gap: 35px;
  }




}


@media screen and (max-width: 580px) {


  .first-view {
    padding: 30px 30px 800px;
  }


  .first-view h1 {
    padding-top: 0;
    font-size: 28px;
    line-height: 1.4;
    font-family: 'Noto Serif JP', serif;
    color: #000;
  }

  .first-view p {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 23px;
  }


  .sumai-item {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, 159px);
    max-width: 90%;
    column-gap: 20px;
    row-gap: 25px;
    justify-content: center;
  }

  .item-area {
    width: 159px;
    height: 126px;
    background-color: #f5f3f2;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    position: relative;
  }


  .item-area img {
    width: 100%;
    position: absolute;
    top: 0;
    z-index: 30;
  }


  .item-area h3 {
    font-size: 14px;
    color: #504f4e;
    position: absolute;
    bottom: 10px;
    z-index: 30;
  }

}