/* =========================
   TOP コラム一覧
========================= */

.up-d_column-section {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 24px;
}

/* 4列 */
.up-d_column-toplist {
  width: calc((100% - 72px) / 4);
}

/* リンク全体 */
.up-d_column-toplist a {
  display: block;
  text-decoration: none;
  color: #222;
  transition: transform 0.3s ease;
}

/* hover */
.up-d_column-toplist a:hover {
  transform: translateY(-4px);
}

/* =========================
   サムネイル
========================= */

.up-d_column-toplist img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.up-d_column-toplist a:hover img {
  transform: scale(1.02);
  opacity: 0.92;
}

/* 日付 */
.column-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

/* タイトル */
.column-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
  color: #222;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.up-d_back {
  width: 100%;
  margin: 40px auto 0;
  text-align: center;
  margin-bottom: 90px;
}

.up-d_back a,
.up-d_back a:link,
.up-d_back a:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 32px;

  /* デザイン変更 */
  background: #ffffff;
  color: #551a86 !important;
  border: 2px solid #551a86;

  text-decoration: none;

  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

/* hover */
.up-d_back a:hover {
  background: #551a86;
  color: #ffffff !important;

  transform: translateY(-3px);

  box-shadow: 0 10px 24px rgba(85, 26, 134, 0.18);
}
/* =========================
   SP
========================= */

@media screen and (max-width: 768px) {

  .up-d_column-section {
    gap: 28px 14px;
  }

  /* 2列 */
  .up-d_column-toplist {
    width: calc((100% - 14px) / 2);
  }

  .column-title {
    font-size: 14px;
    line-height: 1.6;
  }
    .up-d_back {
    margin-top: 20px;
  }

  .up-d_back a,
  .up-d_back a:link,
  .up-d_back a:visited {
    width: 100%;
    max-width: 260px;
    padding: 13px 24px;
    font-size: 15px;
  }

}


/* =========================
   見たまま編集
========================= */

/* 一覧全体 */
[data-headless-selector] .up-d_column-section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 24px;
  margin-bottom: 30px;
}

/* 4列 */
[data-headless-selector] .up-d_column-toplist {
  width: calc((100% - 72px) / 4);
}

/* リンク */
[data-headless-selector] .up-d_column-toplist a {
  display: block;
  text-decoration: none;
  color: #222;
  transition: transform 0.3s ease;
}

/* hover */
[data-headless-selector] .up-d_column-toplist a:hover {
  transform: translateY(-4px);
}

/* 画像 */
[data-headless-selector] .up-d_column-toplist img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  margin-bottom: 8px;
}

/* 日付 */
[data-headless-selector] .column-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
  line-height: 1.7;
}

/* タイトル */
[data-headless-selector] .column-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: #222;
}

/* =========================
   SP
========================= */

@media screen and (max-width: 768px) {

  [data-headless-selector] .up-d_column-section > div {
    gap: 24px 14px;
  }

  [data-headless-selector] .up-d_column-toplist {
    width: calc((100% - 14px) / 2);
  }
  
  /* タイトル */
  [data-headless-selector] .column-title {
  font-size: 14px;
}

}


/* =========================
   Instagram
========================= */

/* 見出し */
.insta-heading {
  text-align: center;
  margin-bottom: 32px;
}

.insta-heading-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.insta-heading-title img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.insta-heading-title span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.05em;
}

.insta-heading-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #000;
}

/* =========================
   画像一覧
========================= */

.up-d_inst-photo {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* 4列 */
.up-d_inst {
  width: calc((100% - 72px) / 4);
}

.up-d_inst a {
  display: block;
  overflow: hidden;
}

.up-d_inst img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

/* hover */
.up-d_inst a:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}

/* =========================
   SP
========================= */

@media screen and (max-width: 768px) {

  .up-d_inst-photo {
    gap: 14px;
  }

  /* 2列 */
  .up-d_inst {
    width: calc((100% - 14px) / 2);
  }

  .insta-heading {
    margin-bottom: 24px;
  }

  .insta-heading-title span {
    font-size: 1.1rem;
  }

  .insta-heading-text {
    font-size: 0.95rem;
    line-height: 1.7;
  }

}


/* =========================
   見たまま編集対応
========================= */

[data-headless-selector] .up-d_inst-photo > div {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
