@charset "utf-8";

*,
::before,
::after {
  padding: 0;
  margin: 0;
  text-decoration: none;
  box-sizing: border-box;
  list-style: none;
  vertical-align: bottom;
}

a {
  color: black;
}

body {
  background-color: #f8f8f8;
}

.works {
  max-width: 1200px;
  margin: auto;
  padding:0 20px;
}

.works h1 {
  font-size: clamp(26px, 4vw, 40px);
  margin: 40px 0 20px;
}

.works h2 {
  margin-bottom: 20px;
}

.list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.work {
  box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
  padding: 20px;
  background: white;
  margin: auto;
}

.work h3 {
  margin-bottom: 20px;
}

.smn {
  width: 530px;
  height: 300px;
  overflow: hidden;
  margin: 0 auto;
}

.smn img {
  width: 530px;
  height: 300px;
  transition: transform 0.3s ease;
}

.smn:hover img {
  transform: scale(1.05);
}

.description {
  padding: 20px 0;
}

.btn-area {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 6px;
  background-color: #f4dd64;
  transition: .3s;
}

.btn:hover {
  background-color: #e6c94a;
}

/* レスポンシブ */

/* ---------------- */
/* タブレット */
/* ---------------- */
@media (max-width: 1200px) {

  .list {
    grid-template-columns: 1fr;
  }

  .smn img {
    width: 100%;
    height: auto;
  }

  .smn {
    width: 100%;
    height: auto;
  }

}

/* ---------------- */
/* スマホ */
/* ---------------- */

@media (max-width:800px) {

  .btn-area {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 200px;
    text-align: center;
  }

}