/* ===== 服サブスク研究所 カスタムスタイル ===== */

/* フォント */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ===== PaperModのCSS変数を上書き（bodyに設定しないと効かない） ===== */
body {
  --theme: #fdfaf8 !important;
  --entry: #ffffff !important;
  --primary: #3d3d3d !important;
  --secondary: #888888 !important;
  --tertiary: #f0e6e8 !important;
  --content: #3d3d3d !important;
  --code-bg: #f9e8eb !important;
  --border: #f0e6e8 !important;

  background-color: #fdfaf8 !important;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif !important;
  color: #3d3d3d !important;
}

/* ===== ヘッダー：ピンクアクセント ===== */
header,
.header,
#header {
  background: #ffffff !important;
  border-bottom: 3px solid #d4687a !important;
  box-shadow: 0 2px 12px rgba(212, 104, 122, 0.15) !important;
}

.nav {
  background: #ffffff !important;
}

/* ロゴ */
.logo a,
.logo span,
a.logo {
  color: #d4687a !important;
  font-weight: 700 !important;
  font-size: 1.3rem !important;
}

/* ナビゲーション */
#menu a,
.menu a,
nav a {
  color: #3d3d3d !important;
  font-weight: 500 !important;
}

#menu a:hover,
.menu a:hover,
nav a:hover {
  color: #d4687a !important;
}

/* ===== ヒーロー（トップページ） ===== */
.home-info {
  background: linear-gradient(135deg, #fce8ed 0%, #fdf3f0 50%, #fef9f0 100%) !important;
  border-radius: 16px !important;
  padding: 2.5rem 2rem !important;
  margin-bottom: 2rem !important;
  border: 1px solid #f0e6e8 !important;
  box-shadow: 0 4px 16px rgba(212, 104, 122, 0.1) !important;
  text-align: center;
}

.home-info h1,
.home-info .entry-content h1 {
  color: #d4687a !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  margin-bottom: 1rem !important;
  text-decoration: none !important;
}

.home-info h1 a {
  color: #d4687a !important;
  text-decoration: none !important;
}

.home-info p,
.home-info .entry-content p {
  font-size: 1rem !important;
  color: #555 !important;
  line-height: 1.8 !important;
}

/* ===== 記事カード ===== */
.post-entry {
  background: #ffffff !important;
  border: 1px solid #f0e6e8 !important;
  border-radius: 12px !important;
  padding: 1.4rem 1.6rem !important;
  margin-bottom: 1.2rem !important;
  box-shadow: 0 2px 8px rgba(212, 104, 122, 0.06) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.post-entry:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(212, 104, 122, 0.15) !important;
  border-color: #d4687a !important;
}

/* ピン留め記事 */
.first-entry {
  background: linear-gradient(135deg, #fce8ed 0%, #fdf3f0 100%) !important;
  border: 1px solid #f0d0d5 !important;
  border-radius: 12px !important;
}

/* カード内タイトル */
.entry-header h2,
.post-entry h2 {
  font-size: 1.0rem !important;
  font-weight: 700 !important;
  color: #3d3d3d !important;
  line-height: 1.65 !important;
  margin-bottom: 0.5rem !important;
  border-left: 3px solid #d4687a !important;
  padding-left: 0.65rem !important;
}

.post-entry:hover .entry-header h2,
.post-entry:hover h2 {
  color: #d4687a !important;
}

/* 日付・読了時間 */
.post-meta,
.entry-footer,
.post-meta span,
span.post-meta {
  color: #aaa !important;
  font-size: 0.8rem !important;
}

/* サマリー */
.entry-content p,
.entry-summary p {
  color: #666 !important;
  font-size: 0.9rem !important;
  line-height: 1.7 !important;
}

/* ヒントラベル（"New"バッジ等）非表示 — h2自体は消さない */
.entry-hint-parent .entry-hint {
  display: none !important;
}

/* ヒーロー下部の空フッター非表示 */
.home-info .entry-footer {
  display: none !important;
}

/* ===== 記事ページ ===== */
.post-title,
h1.post-title {
  color: #3d3d3d !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  padding-bottom: 0.8rem !important;
  border-bottom: 3px solid #f9e8eb !important;
  margin-bottom: 1.5rem !important;
}

/* 記事本文 h2 */
article .post-content h2,
.post-content h2 {
  color: #d4687a !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  border-left: 4px solid #d4687a !important;
  padding-left: 0.8rem !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
  background: transparent !important;
}

/* 記事本文 h3 */
article .post-content h3,
.post-content h3 {
  color: #c8956c !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #f9e8eb !important;
  padding-bottom: 0.3rem !important;
  margin-top: 1.5rem !important;
}

/* ===== テーブル ===== */
article .post-content table,
.post-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 1.5rem 0 !important;
  font-size: 0.9rem !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

article .post-content th,
.post-content th {
  background: #d4687a !important;
  color: #ffffff !important;
  padding: 0.7rem 1rem !important;
  font-weight: 600 !important;
  text-align: left !important;
}

article .post-content td,
.post-content td {
  padding: 0.6rem 1rem !important;
  border-bottom: 1px solid #f0e6e8 !important;
  color: #3d3d3d !important;
  background: #ffffff !important;
}

article .post-content tr:nth-child(even) td,
.post-content tr:nth-child(even) td {
  background: #f9e8eb !important;
}

/* ===== 引用（口コミ） ===== */
article .post-content blockquote,
.post-content blockquote {
  background: #f9e8eb !important;
  border-left: 4px solid #d4687a !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 1rem 1.2rem !important;
  margin: 1rem 0 !important;
  color: #555 !important;
  font-style: normal !important;
}

/* ===== リスト ===== */
article .post-content ul li::marker,
.post-content ul li::marker {
  color: #d4687a !important;
}

/* ===== 水平線 ===== */
article .post-content hr,
.post-content hr {
  border-color: #f0e6e8 !important;
  margin: 2rem 0 !important;
}

/* ===== リンク ===== */
article .post-content a,
.post-content a {
  color: #d4687a !important;
  text-decoration: underline !important;
  font-weight: 500 !important;
}

article .post-content a:hover,
.post-content a:hover {
  color: #c8956c !important;
}

/* ===== アフィリエイトCTAボタン ===== */
article .post-content p a[href*="air-closet"],
article .post-content p a[href*="mechakari"],
article .post-content p a[href*="rcawaii"],
article .post-content p a[href*="anotheraddress"],
.post-content p a[href*="air-closet"],
.post-content p a[href*="mechakari"],
.post-content p a[href*="rcawaii"],
.post-content p a[href*="anotheraddress"] {
  display: inline-block !important;
  background: linear-gradient(135deg, #d4687a, #c45a6d) !important;
  color: #ffffff !important;
  padding: 0.7rem 1.6rem !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  margin: 0.5rem 0 !important;
  box-shadow: 0 4px 12px rgba(212, 104, 122, 0.35) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

article .post-content p a[href*="air-closet"]:hover,
article .post-content p a[href*="mechakari"]:hover,
article .post-content p a[href*="rcawaii"]:hover,
article .post-content p a[href*="anotheraddress"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(212, 104, 122, 0.45) !important;
  color: #ffffff !important;
}

/* ===== ページネーション ===== */
.pagination .page-link,
.paginator a {
  color: #d4687a !important;
  border-color: #f0e6e8 !important;
}

.pagination .page-link:hover,
.paginator a:hover {
  background: #f9e8eb !important;
}

/* ===== タグ ===== */
.post-tags a,
.terms-tags li a {
  background: #f9e8eb !important;
  color: #d4687a !important;
  border-radius: 50px !important;
  padding: 0.2rem 0.8rem !important;
  font-size: 0.8rem !important;
  text-decoration: none !important;
  border: 1px solid #f0d0d5 !important;
  font-weight: 500 !important;
}

.post-tags a:hover,
.terms-tags li a:hover {
  background: #d4687a !important;
  color: #ffffff !important;
}

/* ===== パンくず ===== */
.breadcrumbs,
.breadcrumbs a {
  color: #aaa !important;
  font-size: 0.8rem !important;
}

.breadcrumbs a:hover {
  color: #d4687a !important;
}

/* ===== 目次 ===== */
#TableOfContents,
.toc {
  background: #f9e8eb !important;
  border: 1px solid #f0d0d5 !important;
  border-radius: 10px !important;
  padding: 1rem 1.5rem !important;
  margin-bottom: 2rem !important;
}

.toc-label,
#TableOfContents > ul::before {
  font-weight: 700 !important;
  color: #d4687a !important;
}

#TableOfContents a {
  color: #3d3d3d !important;
  text-decoration: none !important;
}

#TableOfContents a:hover {
  color: #d4687a !important;
}

/* ===== フッター ===== */
footer,
.footer {
  border-top: 2px solid #f9e8eb !important;
  background: #ffffff !important;
  color: #aaa !important;
  font-size: 0.85rem !important;
  text-align: center !important;
  padding: 2rem 0 !important;
}

footer a,
.footer a {
  color: #d4687a !important;
}

/* ===== コードブロック ===== */
.post-content code {
  background: #f9e8eb !important;
  color: #c45a6d !important;
  border-radius: 4px !important;
  padding: 0.1rem 0.4rem !important;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .post-title,
  h1.post-title {
    font-size: 1.3rem !important;
  }

  .home-info {
    padding: 1.5rem 1rem !important;
  }

  article .post-content h2,
  .post-content h2 {
    font-size: 1.1rem !important;
  }
}
