/* ========================================
   リセットと基本設定
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.8;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: #333;
  background-color: #fff;
}

a {
  color: #5cb3cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ========================================
   レイアウト
   ======================================== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================
   ヘッダー
   ======================================== */
.site-header {
  background-color: #5cb3cc;
  padding: 1.5rem 0;
}

.site-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: bold;
}

.site-title:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* ========================================
   フッター
   ======================================== */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  background-color: #d4eef5;
  text-align: center;
  font-size: 0.875rem;
  color: #666;
}

/* ========================================
   ナビゲーションバー
   ======================================== */
.site-nav {
  background-color: #f0f8fa;
  border-bottom: 1px solid #c5e4ed;
  padding: 0.75rem 0;
  margin-bottom: 2rem;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  display: inline-block;
  color: #666;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav__link:hover {
  color: #5cb3cc;
  background-color: #e8f4f8;
  text-decoration: none;
}

.site-nav__link--icon {
  font-weight: bold;
}

/* ========================================
   記事一覧（トップページ）
   ======================================== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-card {
  display: flex;
  flex-direction: row;
  background-color: #fff;
  border: 1px solid #c5e4ed;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-card--pinned {
  border-color: #5cb3cc;
  border-width: 2px;
}

.post-card__thumbnail {
  width: 200px;
  min-height: 150px;
  object-fit: cover;
  flex-shrink: 0;
}

.post-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  flex: 1;
}

.post-card__pinned-label {
  display: inline-block;
  font-size: 0.75rem;
  color: #5cb3cc;
  margin-bottom: 0.25rem;
}

.post-card__title {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.post-card__title a {
  color: #333;
}

.post-card__title a:hover {
  color: #5cb3cc;
}

.post-card__date {
  font-size: 0.875rem;
  color: #666;
  display: block;
  margin-bottom: 0.5rem;
}

.post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ========================================
   タグ
   ======================================== */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background-color: #e8f4f8;
  color: #5cb3cc;
  border-radius: 20px;
}

.tag:hover {
  background-color: #5cb3cc;
  color: #fff;
  text-decoration: none;
}

/* ========================================
   記事詳細
   ======================================== */
.post__header {
  margin-bottom: 2rem;
}

.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.post__title {
  font-size: 1.75rem;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.post__date {
  font-size: 0.875rem;
  color: #666;
}

.post__thumbnail {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 2rem;
}

/* ========================================
   目次
   ======================================== */
.toc {
  background-color: #f0f8fa;
  border: 1px solid #c5e4ed;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc__title {
  font-size: 1rem;
  font-weight: bold;
  color: #5cb3cc;
  margin-bottom: 1rem;
}

.toc nav,
.toc #TableOfContents {
  font-size: 0.875rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.5rem;
}

.toc li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.toc li ol {
  margin-top: 0.5rem;
}

.toc a {
  color: #333;
}

.toc a:hover {
  color: #5cb3cc;
}

.post__content {
  line-height: 2;
}

.post__content h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #5cb3cc;
}

.post__content h3 {
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post__content p {
  margin-bottom: 1.5rem;
}

.post__content ul,
.post__content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post__content li {
  margin-bottom: 0.5rem;
}

.post__content blockquote {
  background-color: #f0f8fa;
  border-left: 4px solid #5cb3cc;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

/* ========================================
   記事ナビゲーション
   ======================================== */
.post__nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #c5e4ed;
}

.post__back {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #5cb3cc;
  color: #fff;
  border-radius: 8px;
}

.post__back:hover {
  background-color: #4a9fb8;
  text-decoration: none;
}

/* ========================================
   タグページ
   ======================================== */
.tag-page__title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #5cb3cc;
}

/* ========================================
   会話形式（インタビュー）
   ======================================== */
.talk {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.talk__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.talk__content {
  flex: 1;
}

.talk__name {
  display: block;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.talk__body {
  background-color: #f0f8fa;
  border-radius: 8px;
  padding: 1rem;
}

.talk__body p {
  margin-bottom: 0;
}

.talk__body p + p {
  margin-top: 1rem;
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 640px) {
  .post-card {
    flex-direction: column;
  }

  .post-card__thumbnail {
    width: 100%;
    height: 180px;
  }

  .post__title {
    font-size: 1.375rem;
  }

  .talk {
    gap: 0.75rem;
  }

  .talk__icon {
    width: 48px;
    height: 48px;
  }
}

/* ========================================
   Agency（相談所導線）セクション
   ======================================== */

.agency {
  margin: 3rem 0 1rem;
  padding: 1.5rem;
  background-color: #f0f4ff;
  border-radius: 8px;
  border-left: 4px solid #2563eb;
}

.agency-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agency-body {
  font-size: 0.9375rem;
  color: #475569;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.agency-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.agency-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  background-color: #2563eb;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: background-color 0.2s, transform 0.1s;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.agency-button:hover {
  background-color: #1d4ed8;
  text-decoration: none;
  transform: translateY(-1px);
}

.agency-button-secondary {
  background-color: #475569;
}

.agency-button-secondary:hover {
  background-color: #334155;
}

@media (max-width: 640px) {
  .agency-button {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
}
