/* ==============================
  microCMS Styling
============================== */

.mc-styling {
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
  box-sizing: border-box;
}

.mc-styling *,
.mc-styling *::before,
.mc-styling *::after {
  box-sizing: border-box;
}

/* ==============================
  Meta
============================== */

.mc-styling__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-bottom: 20px;
}

.mc-styling__date {
  font-size: 13px;
  line-height: 1.5;
  color: #777;
  display: none;
}

.mc-styling__category {
  display: flex;
  gap: 8px;
  align-items: center;
  display: none;
}

.mc-styling__meta-label {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
}

.mc-styling__meta-text {
  font-size: 13px;
  line-height: 1.5;
  color: #222;
}

/* ==============================
  Writer
============================== */

.mc-styling__writer {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mc-styling__writer-image {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
}

.mc-styling__writer-body {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.mc-styling__writer-name {
  font-size: 14px;
  line-height: 1.5;
  color: #222;
  font-weight: 600;
  grid-column: span 2 / span 2;
}

.mc-styling__writer-height,
.mc-styling__writer-store {
  font-size: 12px;
  line-height: 1.5;
  color: #555;
}

.mc-styling__writer-insta {
  font-size: 12px;
  line-height: 1.5;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==============================
  Title
============================== */

.mc-styling__title {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.45;
  font-weight: 600;
  color: #222;
}

/* ==============================
  Main Visual
============================== */

.mc-styling__main-visual {
  margin: 0 0 32px;
}

.mc-styling__main-visual-image {
  display: block;
  width: 100%;
  height: auto;
}

/* ==============================
  Comment
============================== */

.mc-styling__comment {
  margin-top: 32px;
}

.mc-styling__comment-body {
  font-size: 15px;
  line-height: 1.9;
  color: #222;
}

.mc-styling__comment-body > *:first-child {
  margin-top: 0;
}

.mc-styling__comment-body > *:last-child {
  margin-bottom: 0;
}

.mc-styling__comment-body p {
  margin: 0 0 1em;
}

/* ==============================
  Product List
============================== */

.mc-styling__products {
  margin-top: 40px;
}

.mc-styling__section-title {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  color: #222;
}

.mc-styling__product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mc-styling__product-item {
  margin: 0;
  padding: 0;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.mc-styling__product-link {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  width: 100%;
  height: 100%;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.mc-styling__product-link:hover {
  opacity: 0.75;
}

.mc-styling__product-thumbnail-wrap {
  width: 100%;
}

.mc-styling__product-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.mc-styling__product-body {
  min-width: 0;
}

.mc-styling__product-name {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  color: #222;
}

.mc-styling__product-info {
  display: flex;
  gap: 8px;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.mc-styling__product-info-label {
  min-width: 40px;
  color: #777;
}

.mc-styling__product-info-text {
  color: #222;
}

/* ==============================
  Loading / Error
============================== */

.mc-styling__loading,
.mc-styling__error {
  font-size: 14px;
  line-height: 1.7;
  color: #777;
}

/* ==============================
  SP
============================== */

@media (max-width: 767px) {
  .mc-styling__meta {
    gap: 10px 16px;
    margin-bottom: 16px;
  }

  .mc-styling__title {
    margin-bottom: 20px;
    font-size: 22px;
  }

  .mc-styling__main-visual {
    margin-bottom: 28px;
  }

  .mc-styling__comment {
    margin-top: 28px;
    margin-bottom: 0;
  }

  .mc-styling__comment-body {
    font-size: 14px;
    line-height: 1.85;
  }

  .mc-styling__products {
    margin-top: 36px;
  }

  .mc-styling__product-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mc-styling__product-link {
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .mc-styling__product-name {
    font-size: 14px;
  }

  .mc-styling__product-info {
    font-size: 12px;
  }
}

@media (min-width: 768px) {

  .mc-styling__layoutbody {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 8px 40px;
  }
  .mc-styling__main-visual {
    grid-row: span 2 / span 2;
  }
  .mc-styling__products {
    grid-column-start: 2;
    grid-row-start: 2;
    margin: 0;
  }
  .mc-styling__comment {
    margin: 0;
  }
  .mc-styling__product-list {
    display: flex;
    flex-direction: column;
  }

}