/* =========================================
   SINGLE PAGE LAYOUT
   左：本文 2/3 ／ 右：サイド 300px
   下：3カラムのウィジェット
========================================= */

.single-main {
  padding: 2rem 1rem;
}

.single-main-grid {
  max-width: 1080px;
  margin: 0 auto;
}

/* PC：2カラム（左：本文、右：サイドバー300px） */
@media (min-width: 1024px) {

  .single-main-grid {
    display: flex;
    align-items: flex-start;
    gap: 32px;
  }

  /* 左カラム：本文 */
  .single-main-left {
    flex: 0 0 calc(100% - 300px - 32px);
    max-width: calc(100% - 300px - 32px);
  }

  /* 右カラム：サイドバー */
  .single-main-right {
    flex: 0 0 300px;
    max-width: 300px;
  }
}

/* タブレット以下：縦並び */
@media (max-width: 1023px) {

  .single-main-grid {
    display: block;
  }

  .single-main-right {
    margin-top: 24px;
  }
}

/* 右カラム内のウィジェットの見た目 */
.single-main-right .widget {
  background: #fff;
  border: 1px solid #eee;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* =========================================
   Single Article
========================================= */

.single-article {
  max-width: 900px;
  margin: 2.2rem auto 3rem;
  background: #ffffff;
  padding: 1.8rem 1.7rem 2.1rem;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.single-title {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.single-content {
  font-size: 0.98rem;
  line-height: 1.9;
}

.single-content h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

.single-content h3 {
  font-size: 1.1rem;
  margin-top: 1.6rem;
}

.single-content img {
  margin: 1.2rem auto;
  border-radius: 0;
}


.single-thumbnail {
  margin: 24px 0;
}

.single-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================================
   下部ウィジェットエリア（3カラム）
========================================= */

.single-bottom-widgets {
  max-width: 1080px;
  margin: 40px auto 0;
  display: grid;
  gap: 24px;
}

/* PC：3カラム */
@media (min-width: 1024px) {
  .single-bottom-widgets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* タブレット：2カラム */
@media (min-width: 768px) and (max-width: 1023px) {
  .single-bottom-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* スマホ：1カラム */
@media (max-width: 767px) {
  .single-bottom-widgets {
    grid-template-columns: 1fr;
  }
}

/* 下部ウィジェットのカード風デザイン */
.single-bottom-widgets .widget {
  background: #fff;
  border: 1px solid #eee;
  padding: 1rem;
  font-size: 0.9rem;
}

/* =========================================
   モバイル時の「サムネ小さめ＋タイトル横」用
   （必要に応じて single-main-section 内の
    HTML構造に合わせて微調整）
========================================= */

/* 例：関連記事リストなどを横並びにする場合のイメージ */
@media (max-width: 767px) {
  .single-related-list .related-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .single-related-list .related-thumb {
    flex: 0 0 80px;
    max-width: 80px;
  }

  .single-related-list .related-thumb img {
    width: 100%;
    height: auto;
  }

  .single-related-list .related-body {
    flex: 1 1 auto;
    min-width: 0;
  }

  .single-related-list .related-title {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 2px;
  }
}

/* ==============================
   Single: Porsche Design Layout
   ============================== */

.single-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

/* セクション + 日付（タイトル上） */
.single-section-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

/* セクション：最重要＝ブラックのソリッドピル */
.badge--section {
  background-color: #111;
  color: #fff;
  border: 1px solid #111;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.badge--section:hover {
  background-color: #fff;
  color: #111;
  transform: translateY(-1px);
}

/* 日付：細めのサンセリフ */
.single-meta-date--subtle {
  font-size: 0.8rem;
  color: #9ca3af;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* タイトル：シンプル＆力強い */
.single-title {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* カテゴリー（タイトル下） */
.single-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge--category {
  border: 1px solid #d1d5db;
  color: #4b5563;
  background-color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              transform 0.2s ease;
}

.badge--category:hover {
  background-color: #111;
  border-color: #111;
  color: #fff;
  transform: translateY(-1px);
}

/* 本文 */
.single-content {
  font-size: 1rem;
  line-height: 1.9;
  color: #111827;
}

/* タグ：記事下フッター */
.single-footer-tags {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.single-tags-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
  min-width: 80px;
}

.single-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* タグチップ：ライトグレーで控えめ */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.chip--tag {
  background-color: #f3f4f6;
  color: #4b5563;
}

.chip--tag:hover {
  background-color: #111;
  color: #fff;
  transform: translateY(-1px);
}

/* --------------------------
   Responsive
--------------------------- */

@media (max-width: 767px) {

  .single-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
  }

  .single-section-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .single-title {
    font-size: 1.6rem;
  }

  .single-footer-tags {
    flex-direction: column;
    align-items: flex-start;
  }

  .single-tags-label {
    margin-bottom: 0.25rem;
  }
}


/* --------------------------
   固定ページ用
--------------------------- */

/* 固定ページは少し読み物寄りに */
.page-content {
  line-height: 1.9;
  font-size: 0.95rem;
}

/* 見出し間を少し整理 */
.page-content h2 {
  margin-top: 3.5rem;
}

.page-content h3 {
  margin-top: 2.5rem;
}

.page-content ul,
.page-content ol {
  margin-left: 1.5em;
}

.page-content li {
  margin-bottom: 0.5em;
}
