/* ==========================================================================
   single_page.css
   各投稿タイプ個別ページ共通スタイル
   ========================================================================== */


/* --------------------------------------------------------------------------
   SP用ヘッダー（個別ページ用）
   -------------------------------------------------------------------------- */

.sp-header--single {
  position: relative;
  justify-content: center;
}

/* Backリンク（SP左上） */
.sp-back-link {
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #111;
  text-decoration: none;
  transition: opacity 0.2s;
}

.sp-back-link:hover {
  opacity: 0.5;
}

/* SP表示時のみ .sp-header--single を表示（styles.css の media 指定に合わせる） */
@media (min-width: 769px) {
  .sp-header--single {
    display: none;
  }
}


/* --------------------------------------------------------------------------
   サイドバー（個別ページ用：Backのみ）
   -------------------------------------------------------------------------- */

.l-sidebar--single .site-nav--single {
  flex: 0 0 auto;
  margin-bottom: auto;
}

.single-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #111;
  text-decoration: none;
  padding: 4px 0;
  transition: opacity 0.2s;
}

.single-back-link:hover {
  opacity: 0.5;
}


/* --------------------------------------------------------------------------
   個別ページ全体ラッパー
   -------------------------------------------------------------------------- */

.single-page {
  padding: 56px 0 80px;
  max-width: 860px;
}


/* --------------------------------------------------------------------------
   セクションラベル（"Product 製品" 見出し）
   -------------------------------------------------------------------------- */

.single-page-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.single-page-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.single-page-label-en {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #111;
}

.single-page-label-ja {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #888;
}


/* --------------------------------------------------------------------------
   記事
   -------------------------------------------------------------------------- */

.single-article {
  /* max-width は .single-page で制御 */
}

/* タイトル */
.single-article-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: #111;
  margin: 0 0 36px;
}

/* アイキャッチ */
.single-article-eyecatch {
  margin-bottom: 40px;
}

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

/* 本文 */
.single-article-content {
  font-size: 14px;
  line-height: 2.1;
  color: #333;
}

.single-article-content p {
  margin: 0 0 1.6em;
}

.single-article-content p:last-child {
  margin-bottom: 0;
}

.single-article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 32px 0;
}

.single-article-content h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #111;
  margin: 2.4em 0 1em;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.single-article-content h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #111;
  margin: 2em 0 0.8em;
}

.single-article-content ul,
.single-article-content ol {
  padding-left: 1.6em;
  margin-bottom: 1.6em;
}

.single-article-content li {
  margin-bottom: 0.4em;
}

.single-article-content a {
  color: #111;
  text-decoration: underline;
}

.single-article-content a:hover {
  opacity: 0.6;
}


/* --------------------------------------------------------------------------
   下部 Back リンク
   -------------------------------------------------------------------------- */

.single-page-back {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid #e0e0e0;
}

.single-back-link-bottom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #111;
  text-decoration: none;
  transition: opacity 0.2s;
}

.single-back-link-bottom:hover {
  opacity: 0.5;
}


/* --------------------------------------------------------------------------
   レスポンシブ（768px以下：スマートフォン）
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {

  .single-page {
    padding: 32px 0 60px;
  }

  .single-article-title {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .single-article-content {
    font-size: 14px;
    line-height: 1.9;
  }

  .single-article-content h2 {
    font-size: 16px;
  }

  .single-article-content img {
    margin: 24px 0;
  }

  .single-page-back {
    margin-top: 48px;
  }

}
