/*
Theme Name: 婚活セカンド
Theme URI: https://konkatsu-second.jp
Description: 婚活セカンド専用テーマ — 再婚メディア向けのクリーンデザイン
Version: 1.0.0
Author: Emposy
Text Domain: konkatsu-second
*/

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink: #e8596e;
  --pink-light: #fef8f8;
  --pink-lighter: #fef5f6;
  --pink-border: #fce8e8;
  --pink-hover: #f0868f;
  --dark: #333;
  --muted: #666;
  --light-muted: #999;
  --faint: #ccc;
  --bg: #fff;
  --bg-sub: #f9fafb;
  --border: #e5e7eb;
  --max-w: 780px;
  --side-w: 300px;
}

html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.8;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pink); text-decoration: none; transition: color .15s; }
a:hover { color: var(--pink-hover); }
img { max-width: 100%; height: auto; display: block; }

/* ===== Layout ===== */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: calc(var(--max-w) + var(--side-w) + 3rem);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: 0.03em;
}
.site-logo a { color: inherit; }
.site-logo a:hover { color: var(--pink); }

.site-content {
  max-width: calc(var(--max-w) + var(--side-w) + 3rem);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  gap: 3rem;
}
.main-content { flex: 1; min-width: 0; max-width: var(--max-w); }
.sidebar {
  width: var(--side-w);
  flex-shrink: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--light-muted);
}

@media (max-width: 900px) {
  .site-content { flex-direction: column; padding: 1.5rem 1rem; gap: 2rem; }
  .sidebar { width: 100%; }
}

/* ===== Article Card (archive) ===== */
.post-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.post-card:first-child { padding-top: 0; }
.post-card-thumb {
  width: 200px;
  height: 130px;
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--bg-sub);
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { flex: 1; min-width: 0; }
.post-card-cat {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--pink);
  background: var(--pink-light);
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.375rem;
}
.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--dark);
  margin-bottom: 0.375rem;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--pink); }
.post-card-date { font-size: 0.75rem; color: var(--light-muted); }

@media (max-width: 600px) {
  .post-card { flex-direction: column; gap: 0.75rem; }
  .post-card-thumb { width: 100%; height: 180px; }
}

/* ===== Single Article ===== */
.article-header { margin-bottom: 2rem; }
.article-cat {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  background: var(--pink);
  padding: 0.2rem 0.625rem;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
}
.article-title {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 0.75rem;
}
.article-meta {
  font-size: 0.8125rem;
  color: var(--light-muted);
}

/* ===== Article Body ===== */
.article-body {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
}
.article-body p { margin-bottom: 1.5em; }

.article-body h2 {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 3.5rem 0 1.25rem;
  padding: 0.75rem 1.25rem;
  background: var(--pink-light);
  border-left: 4px solid var(--pink);
  border-radius: 0 0.5rem 0.5rem 0;
  line-height: 1.5;
  color: var(--dark);
}
.article-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
  line-height: 1.5;
  color: var(--dark);
}
.article-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--dark);
}
.article-body ul, .article-body ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}
.article-body li {
  margin-bottom: 0.5em;
  line-height: 1.8;
}
.article-body strong {
  color: var(--dark);
  font-weight: 700;
}
.article-body blockquote {
  background: #faf9f8;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.article-body blockquote::before {
  content: "\275D";
  display: block;
  font-size: 1.375rem;
  color: rgba(232, 89, 110, 0.3);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.article-body blockquote p {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 0.5em;
}
.article-body blockquote p:last-child {
  margin-bottom: 0;
  font-size: 0.6875rem;
  color: var(--muted);
}
.article-body a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover { color: var(--pink-hover); }
.article-body img {
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.8125rem;
}
.article-body th {
  background: var(--pink-light);
  font-weight: 900;
  padding: 0.5rem 0.75rem;
  text-align: left;
  border: 1px solid var(--pink-border);
}
.article-body td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  line-height: 1.6;
}

/* Callouts */
.article-body .callout {
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  line-height: 1.8;
}
.article-body .callout-point {
  background: var(--pink-light);
  border-left: 4px solid var(--pink);
}
.article-body .callout-warning {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
}
.article-body .callout-info {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
}
.article-body .callout p { margin-bottom: 0.75em; }
.article-body .callout p:last-child { margin-bottom: 0; }

/* Luminous figure (引用画像) */
.article-body figure.luminous {
  margin: 1.5rem 0;
  text-align: center;
}
.article-body figure.luminous img {
  border-radius: 0.5rem;
  margin: 0 auto;
}
.article-body figure.luminous figcaption {
  font-size: 0.75rem;
  color: var(--light-muted);
  margin-top: 0.5rem;
}

/* ===== Sidebar ===== */
.widget {
  margin-bottom: 2rem;
}
.widget-title {
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--dark);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pink);
  margin-bottom: 1rem;
}
.widget ul {
  list-style: none;
  padding: 0;
}
.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}
.widget li:last-child { border-bottom: none; }
.widget li a { color: var(--dark); }
.widget li a:hover { color: var(--pink); }

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2.5rem;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--dark);
}
.pagination .current {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}
.pagination a:hover {
  background: var(--pink-light);
  border-color: var(--pink-border);
}

/* ===== 404 ===== */
.not-found {
  text-align: center;
  padding: 4rem 1rem;
}
.not-found h1 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--pink);
  margin-bottom: 0.5rem;
}
.not-found p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ===== TOC (auto-generated) ===== */
.toc-wrap {
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.toc-title {
  font-size: 0.875rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 0.75rem;
  text-align: center;
}
.toc-list {
  list-style: none;
  padding: 0;
  counter-reset: toc-h2;
}
.toc-list li {
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.toc-list li::before {
  counter-increment: toc-h2;
  content: counter(toc-h2) ".";
  color: var(--pink);
  font-weight: 700;
  margin-right: 0.375rem;
}
.toc-list li a { color: var(--dark); }
.toc-list li a:hover { color: var(--pink); }
.toc-sub {
  list-style: none;
  padding-left: 1.25rem;
  margin-top: 0.25rem;
  counter-reset: toc-h3;
}
.toc-sub li::before {
  counter-increment: toc-h3;
  content: "– ";
  color: var(--faint);
}
