@charset "utf-8";

html {
  font-size: 100%;
}
body {
  color: #2d2d2d;
  font-family: 'Crimson Text', serif;
}
img {
  max-width: 100%;
  vertical-align: bottom;
}
ul {
  list-style: none;
}
a {
  color: #2d2d2d;
  text-decoration: none;
}

/* mainvisual */
#mainvisual {
  width: 90vw;
  margin: 4% auto 0 auto;
}
#mainvisual img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}


/* header */
#header {
  width: 90vw;
  display: flex;
  align-items: center;
  padding: 32px 0;
  margin: 0 auto 30px auto;
}
#header .site-title {
  width: 150px;
  font-size: 16px;
  font-weight: bold;
}
#header ul {
  display: flex;
}
#header li {
  font-size: 0.875rem;
  margin-right: 30px;
}
#header li:last-child {
  margin-right: 0;
}

/* container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 18px;
}
.section-title {
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 4px;
}

.section-title-en {
  display: inline-block;
  margin-bottom: 25px;
}

/* work */
.content {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}
.content .img {
  width: 50%;
}
.content .text {
  width: 50%;
  padding: 0 7%;
}

/* top */
#top {
  padding-top: 80px;
  padding-bottom: 40px;
}
.product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
}
.product-list img {
  margin-bottom: 10px;
  vertical-align: top;
  height: 200px;
  object-fit: cover;
}
.product-list p {
  font-size: 0.75rem;
}
.link-text {
  display: block;
  margin-top: 40px;
  text-align: center;
}
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.pagination li {
  padding: 0 20px;
}
#item {
  max-width: 800px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}
#item .item-text {
  width: 42%;
}
#item .item-text p {
  margin-bottom: 30px;
  text-align: justify;
}
#item .item-text dl {
  display: flex;
  flex-wrap: wrap;
}
#item .item-text dt {
  width: 30%;
}
#item .item-text dd {
  width: 70%;
}
#item .item-img {
  width: 50%;
}

/* products */
.products {
  display: flex;
  margin: 100px 0 20px;
}
.products .section-title {
  font-weight: normal;
  line-height: 1;
}
.products .section-title .ja {
  font-size: 2rem;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.products .img {
  width: 65%;
  margin-top: 100px;
  position: relative;
}
.products .text {
  width: 56%;
  color: #fff;
  padding: 50px 0;
  text-align: center;
  position: absolute;
  bottom: -20px;
}
#products1 {
  flex-direction: row-reverse;
}
#products1 .section-title {
  margin-left: 20px;
  writing-mode: vertical-lr;
}
#products1 .text {
  background: rgba(249, 233, 6, 0.744);
  left: -20px;
  font-weight: bold;
}
#products2 .section-title {
  margin-right: 20px;
  writing-mode: vertical-rl;
}
#products2 .text {
  background: rgba(149, 42, 38, 0.6);
  right: -20px;
  font-weight: bold;
}

/* footer */
#footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 20px 0;
}

/* SP */
@media screen and (max-width: 767px) {
  .section-title {
    font-size: 1.25rem;
  }

  /* mainvisual */
  #mainvisual {
    width: 100%;
    margin: 0;
  }
  #mainvisual img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
  }

  /* header */
  #header {
    width: 100%;
    padding: 20px 18px;
  }

  /* work */
  #work {
    flex-direction: column-reverse;
  }
  .content {
    flex-direction: column;
  }
  .content .img {
    width: 100%;
    margin-bottom: 10px;
  }
  .content .text {
    width: 100%;
    padding: 0;
  }

  /* top */
  #top {
  padding-top: 0;
  padding-bottom: 0;
}
  .product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }

  /* products */
  .products {
  margin: 100px 0 50px;
  }
  .products .section-title .ja {
    font-size: 1.5rem;
  }
  .products .img {
    width: 90%;
    margin-top: 70px;
  }
  .products .text {
    width: 64%;
    font-size: 0.875rem;
    padding: 30px 0;
  }
  #products1 .section-title {
    margin-left: 10px;
  }
  #products2 .section-title {
    margin-right: 10px;
  }

  
  /* item */
  #item {
    flex-direction: column;
  }
  #item .item-text {
    width: 100%;
  }
  #item .item-img {
    width: 100%;
    margin-bottom: 30px;
  }
}