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

/* 全体の余白 */
.container {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.first-view {
  background: url(../../images/category/category-top//top-main.jpg) no-repeat right top / 42vw auto;
  padding: 0 55px 800px;
}

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

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


.sumai-item {
  padding: 25px;
  display: grid;
  grid-template-columns: repeat(4, 210px);
  width: 960px;
  column-gap: 25px;
  row-gap: 35px;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.7);
  position: absolute;
  top: 350px;
}

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


.item-area img {
  width: 88%;
  position: absolute;
  top: 11px;
  z-index: 30;
}


.item-area h3 {
  font-size: 18px;
  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: 1050px) {

  .sumai-item {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, 210px);
    width: 90vw;
    column-gap: 25px;
    row-gap: 35px;
    background-color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 350px;
  }




}


@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;
    background-color: rgba(255, 255, 255, 0.7);
    position: absolute;
    top: 280px;
  }

  .item-area {
    width: 159px;
    height: 126px;
    background-color: #f5f3f2;
    border-color: #3e3a39;
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    position: relative;
  }


  .item-area img {
    width: 88%;
    position: absolute;
    top: 9px;
    z-index: 30;
  }


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

}