.insta_body {
  /* background-color: #f3f3f3; */
  display: flex;
  align-items: center;
  justify-content: center;
  /* min-height: 100vh; */
  margin: 0;
  font-family: Arial, sans-serif;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 20px;
  width: 80%;
  /* max-width: 800px; */
}

.grid_index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 20px;
  width: 80%;
  /* max-width: 800px; */
}

.post {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.post img {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* 正方形を維持 */
  object-fit: cover;
}

.caption {
  width: 90%;
  margin-left: 8px;
  padding: 10px;
  font-size: 14px;
  text-align: left;
  color: #363636;
  flex-grow: 1;
  /* キャプションが長くてもレイアウトを保持 */
}

.caption_hash {
  width: 90%;
  margin-left: 8px;
  padding: 10px;
  font-size: 14px;
  text-align: left;
  color: #94cfff;
  /* color: #a5d7ff; */
  flex-grow: 1;
  /* キャプションが長くてもレイアウトを保持 */
}

@media screen and (width <=1279px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .grid_index {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
}

@media screen and (width <=1023px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .grid_index {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .grid_index .post:nth-child(n + 5) {
    display: none;
  }

  .caption {
    font-size: 24px;
  }

  .caption_hash {
    font-size: 24px;
  }

  .explain{
    font-size: 24px;
  }
}

/* =========================
   Pop: Instagram Cards
   ========================= */
body.page-index .post {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.92);
}

body.page-index .post::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  /* background: linear-gradient(90deg, rgba(53,167,255,.75), rgba(0,209,178,.75), rgba(255,217,61,.75), rgba(255,77,157,.75)); */
  z-index: -1;
  filter: blur(0.2px);
}

body.page-index .post::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 2px dashed rgba(0, 0, 0, 0.08);
  pointer-events: none;
  opacity: 0.85;
}

body.page-index .post:hover {
  transform: translateY(-7px) rotate(0.25deg);
}

body.page-index .caption_hash {
  color: rgba(53, 167, 255, 0.95);
  font-weight: 800;
}