/* ---- 横並び画像のキャプション位置揃え ---- */
.sgt-entry-media-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.sgt-entry-media-row .sgt-entry-media-item {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-end;
}
.sgt-entry-media-row .sgt-entry-media-caption {
  margin-top: 8px;
  text-align: center;
  min-height: 2.5em;
  margin-bottom: 0;
}
/* ==========================================================
   SHIZGAS TIMES 詳細ページ専用スタイル
   ========================================================== */

/* ---- 詳細ラッパー ------------------------------------------- */
.sgt-detail {
  max-width: 860px;
  margin: 34px auto 0;
  padding: 0 24px 64px;
}

/* ---- タイトルエリア ----------------------------------------- */
.sgt-ttlwrap {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e7e7e7;
}
.sgt-ttlrow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
@media screen and (max-width: 768px) {
  .sgt-ttlrow {
    gap: 8px;
  }
}
.sgt-ttlrow__left {
  display: none;
}
.sgt-ttlrow__right {
  align-self: stretch;
  text-align: right;
  white-space: nowrap;
}
.sgt-ttlrow__center {
  min-width: 0;
  text-align: center;
}
.sgt-ttlrow__right .sgt-date {
  color: #6b7280;
  margin: 4px 0 0;
}
.sgt-articletitle {
  font-weight: 700;
  color: #1f2328;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}
/* ---- 本文 ---------------------------------------------------- */
.sgt-entry {
  line-height: 1.9;
  color: #333;
  margin-bottom: 48px;
}
.sgt-entry h2 { font-weight: 700; margin: 2em 0 0.75em; color: #1f2328; }
.sgt-entry h3 { font-weight: 700; margin: 1.75em 0 0.5em; color: #1f2328; }
.sgt-entry p  { margin: 0 0 1.25em; }
.sgt-entry p.sgt-entry-signature {
  text-align: right;
}

@media screen and (min-width: 641px) {
  .sgt-entry .sgt-entry-text,
  .sgt-entry .sgt-entry-text-right {
    font-size: 15px;
  }
}

.sgt-entry img { max-width: 100%; height: auto; }
.sgt-entry a  { color: #0d5fa8; text-decoration: underline; }

.sgt-entry-media-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 16px;
}

.sgt-entry-media-row.is-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.sgt-entry-media-item {
  margin: 0;
}

.sgt-entry-media-item img {
  display: block;
  width: 100%;
}

.sgt-entry-media-row.is-single .sgt-entry-media-item.is-portrait {
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.sgt-entry-media-link {
  display: block;
}

.sgt-entry-media-item iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.sgt-entry-media-caption {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  text-align: center;
}

@media screen and (min-width: 641px) {
  .sgt-entry-media-caption {
    font-size: 15px;
  }
}

@media screen and (max-width: 768px) {
  .sgt-entry-media-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sgt-entry-media-row.is-single .sgt-entry-media-item.is-portrait {
    max-width: 70%;
  }
}

/* ---- 前後ナビゲーション ------------------------------------- */
.sgt-bottomnav {
  margin-bottom: 50px;
}
.sgt-prevnext {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.sgt-prevnext .sgt-btnline {
  width: 170px;
  box-sizing: border-box;
  text-align: center;
}

@media screen and (max-width: 540px) {
  .sgt-prevnext {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .sgt-prevnext .sgt-btnline {
    width: auto;
    min-width: 0;
    padding: 10px 8px;
  }
}

/* ---- 新着記事サイドリスト ----------------------------------- */
.sgt-recent {
  border-top: 1px solid #e7e7e7;
  padding-top: 32px;
}
.sgt-recent h2 {
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin: 0 0 22px;
}
.sgt-recentList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 22px;
  align-items: stretch;
}

.sgt-recentList > li {
  display: flex;
}

/* 新着カード */
.sgt-recentList .sgt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  border: 1px solid #e5dcc8;
  background: #faf6ed;
  padding: 12px 52px 12px 12px;
  height: 100%;
  min-height: 0;
  flex: 1;
  transition: box-shadow 0.2s, transform 0.2s;
}

.sgt-recentList .sgt-card::after {
  content: "\203A";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f2bf3d;
  color: #111;
  line-height: 1;
  font-weight: 500;
}

.sgt-recentList .sgt-card:hover {
  box-shadow: 0 7px 18px rgba(31, 35, 40, 0.14);
  transform: translateY(-1px);
}

.sgt-recentList .sgt-thumb {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d8dde3;
}

.sgt-recentList .sgt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sgt-recentList .sgt-thumb .sgt-thumb--placeholder {
  width: 100%;
  height: 100%;
  background: #d8dde3;
}

.sgt-recentList .sgt-meta {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.sgt-recentList .sgt-meta .sgt-title {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.35;
  font-weight: 700;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sgt-recentList .sgt-meta .sgt-date {
  margin: 8px 0 0;
  color: #555;
  font-size: 0.78rem;
}

.sgt-recentList .sgt-recent-tags {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sgt-recentList .sgt-recent-tags .sgt-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: rgba(255,255,255,0.65);
  border-radius: 20px;
  color: #555;
}

@media screen and (max-width: 980px) {
  .sgt-recentList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .sgt-recentList {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .sgt-recentList .sgt-card {
    padding: 12px 52px 12px 12px;
    height: auto;
  }

  .sgt-recentList .sgt-card::after {
    right: 10px;
    width: 34px;
    height: 34px;
  }

}