@charset "UTF-8";

/*==================================================
アコーディオンのためのcss
===================================*/

/*アコーディオン全体*/
.accordion-area {
  list-style: none;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin: 0 auto 40px auto;
  padding: 0 4%;
}

.Shokuzai {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.accordion-area li {
  text-align: center;
  margin: 10px 0;
  /* border: #143c1a solid 2px; */
  border-radius: 10px;
  padding: 10px;
}

.accordion-area li img {
  aspect-ratio: 4/3;
  border-radius: 8px;
  margin-bottom: 5px;
}

.accordion-area section {
  border: 1px solid #ccc;
}

/*アコーディオンタイトル*/
.title {
  position: relative; /*+マークの位置基準とするためrelative指定*/
  cursor: pointer;
  font-size: 1rem;
  font-weight: normal;
  padding: 3% 3% 3% 50px;
  transition: all 0.5s ease;
}

/*アイコンの＋と×*/
.title::before,
.title::after {
  position: absolute;
  content: "";
  width: 15px;
  height: 2px;
  background-color: #333;
}
.title::before {
  top: 48%;
  left: 15px;
  transform: rotate(0deg);
}
.title::after {
  top: 48%;
  left: 15px;
  transform: rotate(90deg);
}

/*　closeというクラスがついたら形状変化　*/

.title.close::before {
  transform: rotate(45deg);
}

.title.close::after {
  transform: rotate(-45deg);
}

/*アコーディオンで現れるエリア*/
.box {
  display: none; /*はじめは非表示*/
  background: #f3f3f3;
  margin: 0 3% 3% 3%;
  padding: 3%;
}

@media (max-width: 768px) {
  .Shokuzai {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}
