/*
 Theme Name:   退職のまえに
 Theme URI:    https://soudan-navi.jp/taishoku-kyokan/blog
 Description:  退職代行アフィリエイト向け軽量テーマ。_sベース子テーマ。
 Author:       s-komatsu
 Template:     flavor-developer
 Version:      1.0.0
 Text Domain:  taishoku-kyokan-blog
*/

/* === Reset & Base === */
html {
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  background: #fafbfc;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #2a7ae2;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* === Layout === */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e8edf2;
  padding: 1rem 0;
}

.site-header .container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}
.site-title a {
  color: #333;
}
.site-title a:hover {
  text-decoration: none;
  color: #2a7ae2;
}

.site-nav a {
  color: #666;
  font-size: 14px;
  margin-left: 1.25rem;
}

.site-content {
  max-width: 780px;
  margin: 2rem auto;
  padding: 0 1.25rem;
}

.site-footer {
  background: #f5f7fa;
  border-top: 1px solid #e8edf2;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-top: 3rem;
}

/* === Breadcrumb === */
.breadcrumb {
  font-size: 12px;
  color: #999;
  margin-bottom: 24px;
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.breadcrumb li {
  display: flex;
  align-items: center;
}
.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin: 0 8px;
  color: #ccc;
}
.breadcrumb a {
  color: #999;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb li:last-child {
  color: #666;
}

/* === Article === */
.entry-header {
  margin-bottom: 2rem;
}

.entry-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.5rem;
  color: #222;
}

.entry-meta {
  font-size: 13px;
  color: #888;
}

.entry-content {
  font-size: 16px;
  line-height: 1.9;
}
.entry-content p {
  margin-bottom: 1.5em;
}

/* === Headings === */
.entry-content h2 {
  font-size: 18px;
  font-weight: 700;
  border-left: 4px solid #4a90d9;
  padding-left: 0.75rem;
  margin: 3.5rem 0 1.25rem;
  color: #222;
}

.entry-content h3 {
  font-size: 16px;
  font-weight: 700;
  border-bottom: 2px solid #e8edf2;
  padding-bottom: 0.375rem;
  margin: 2rem 0 0.75rem;
  color: #333;
}

.entry-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: #444;
}

/* === Lists === */
.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.entry-content li {
  margin-bottom: 0.375rem;
}

/* === Blockquote === */
.entry-content blockquote {
  border-left: 4px solid #dde3ea;
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  background: #f8f9fb;
  color: #555;
  font-style: italic;
}

/* === Table === */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.entry-content th,
.entry-content td {
  border: 1px solid #e0e5eb;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.entry-content th {
  background: #f5f7fa;
  font-weight: 700;
}

/* === Code === */
.entry-content code {
  background: #f0f2f5;
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.875em;
}

.entry-content pre {
  background: #282c34;
  color: #abb2bf;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.entry-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* === Flow Chart === */
.flow-chart {
  background: #f8f9fb;
  border-left: 3px solid #dee2e6;
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 2;
}

/* === Mail CTA === */
.mail-cta {
  margin: 48px 0;
  padding: 32px 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  text-align: center;
}
.mail-cta p {
  font-size: 14px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 1em;
}
.mail-cta p:last-of-type {
  margin-bottom: 1.5em;
}
.mail-cta-link {
  display: inline-block;
  font-size: 15px;
  color: #2c3e6b;
  text-decoration: none;
  padding: 8px 0;
}
.mail-cta-link:hover {
  text-decoration: underline;
}

/* === Hub Navigation === */
.hub-back {
  margin-top: 3rem;
  padding: 1.25rem;
  background: #f0f4f8;
  border-radius: 8px;
  text-align: center;
}

.hub-back__label {
  font-size: 14px;
  color: #666;
  margin: 0 0 0.5rem;
}
.hub-back a {
  font-weight: 700;
  font-size: 15px;
}

/* === Related Posts === */
.related-posts {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: #f8f9fb;
  border: 1px solid #e8edf2;
  border-radius: 8px;
}
.related-posts__title {
  font-weight: 700;
  font-size: 15px;
  color: #444;
  margin: 0 0 0.75rem;
}
.related-posts__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-posts__list li {
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 6px;
}
.related-posts__list li:last-child {
  margin-bottom: 0;
}
.related-posts__list li a {
  color: #2a7ae2;
  font-weight: 600;
  font-size: 14px;
}

/* === Hub Page (page-retire) === */
.hub-intro {
  margin-bottom: 2rem;
  font-size: 16px;
  line-height: 1.9;
}

.hub-section {
  margin-bottom: 2.5rem;
}

.hub-section h2 {
  font-size: 18px;
  border-left: 4px solid #4a90d9;
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.hub-article-list {
  list-style: none;
  padding: 0;
}

.hub-article-list li {
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 6px;
}

.hub-article-list li a {
  font-weight: 600;
}

/* === TOC (目次) === */
.post-toc {
  background: #f8f9fb;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
}
.post-toc__title {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 0.75rem;
  color: #444;
}
.post-toc ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.post-toc li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
  line-height: 1.5;
}
.post-toc li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.post-toc li:first-child {
  padding-top: 0;
}
.post-toc a {
  color: #2a7ae2;
}

/* === Footer === */
.footer-brand {
  font-weight: 700;
  font-size: 15px;
  color: #555;
  margin: 0 0 0.75rem;
}
.footer-disclaimer {
  font-size: 12px;
  line-height: 1.7;
  color: #999;
  margin: 0 0 0.75rem;
}

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  background: #fff;
  border: 2px solid #4a90d9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #4a90d9;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(74,144,217,0.2);
  transition: background 0.2s, color 0.2s;
}
.back-to-top:hover {
  background: #4a90d9;
  color: #fff;
  text-decoration: none;
}

/* === Responsive === */
@media (max-width: 600px) {
  .entry-title {
    font-size: 20px;
  }
  .entry-content h2 {
    font-size: 16px;
  }
  .entry-content h3 {
    font-size: 15px;
  }
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .site-nav a {
    margin-left: 0;
    margin-right: 1rem;
  }
}

/* === 404 Page === */
.error-404 {
  max-width: 560px;
  margin: 3rem auto;
  padding: 0 1.25rem 4rem;
}
.error-404__inner {
  text-align: center;
  padding: 3rem 2rem;
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 10px;
  margin-bottom: 2.5rem;
}
.error-404__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #999;
  margin: 0 0 1rem;
}
.error-404__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.65;
  color: #222;
  margin: 0 0 1rem;
}
.error-404__body {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin: 0 0 1.75rem;
}
.error-404__home {
  display: inline-block;
  font-size: 14px;
  color: #2a7ae2;
  border: 1px solid #2a7ae2;
  border-radius: 4px;
  padding: 0.5rem 1.25rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.error-404__home:hover {
  background: #2a7ae2;
  color: #fff;
}
.error-404__recent {
  background: #f5f7fa;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
}
.error-404__recent-title {
  font-size: 14px;
  font-weight: 700;
  color: #444;
  margin: 0 0 1rem;
}
.error-404__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.error-404__item {
  border-bottom: 1px solid #e8edf2;
  padding: 0.65rem 0;
  font-size: 14px;
}
.error-404__item:last-child {
  border-bottom: none;
}
.error-404__item a {
  color: #333;
  text-decoration: none;
  line-height: 1.5;
}
.error-404__item a:hover {
  color: #2a7ae2;
}
