/* ブログページ - 無印良品スタイル */

/* ページヘッダー */
.page-header {
  background-color: var(--color-bg-white);
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-header__title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.15em;
  font-weight: 400;
}

.page-header__description {
  color: var(--color-text-light);
  font-size: 15px;
  line-height: 2.0;
}

/* 検索バー */
.blog-search {
  background-color: var(--color-bg);
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.search-form {
  display: flex;
  gap: var(--spacing-sm);
  max-width: 700px;
  margin: 0 auto;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: var(--color-text-light);
  font-size: 16px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 48px 14px 48px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text);
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-base);
  letter-spacing: 0.05em;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-natural-brown);
}

.search-input::placeholder {
  color: var(--color-text-light);
}

.search-clear {
  position: absolute;
  right: 16px;
  color: var(--color-text-light);
  font-size: 16px;
  cursor: pointer;
  transition: color var(--transition-base);
  padding: 4px;
}

.search-clear:hover {
  color: var(--color-natural-brown);
}

.search-button {
  padding: 14px 32px;
  background-color: var(--color-natural-brown);
  color: var(--color-bg-white);
  border: 1px solid var(--color-natural-brown);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.search-button:hover {
  opacity: 0.8;
}

.search-result-info {
  text-align: center;
  margin-top: var(--spacing-md);
  font-size: 14px;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

/* カテゴリフィルター */
.blog-filter {
  background-color: var(--color-off-white);
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.filter-tabs {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.filter-tab {
  padding: 10px 24px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-white);
  color: var(--color-text);
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: all var(--transition-base);
}

.filter-tab:hover {
  opacity: 0.7;
}

.filter-tab--active {
  background-color: var(--color-natural-brown);
  color: var(--color-bg-white);
  border-color: var(--color-natural-brown);
}

/* ブログ一覧 */
.blog-list {
  padding: var(--spacing-xxl) 0;
  background-color: var(--color-bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

.blog-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.blog-card__link {
  display: block;
  color: inherit;
}

.blog-card__image {
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background-color: var(--color-light-gray);
  position: relative;
  overflow: hidden;
}

.blog-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__content {
  padding: var(--spacing-lg);
}

.blog-card__meta {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  margin-bottom: var(--spacing-sm);
  font-size: 13px;
  color: var(--color-text-light);
}

.blog-card__date {
  letter-spacing: 0.05em;
}

.blog-card__category {
  padding: 4px 12px;
  background-color: var(--color-beige);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.blog-card__title {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.08em;
}

.blog-card__excerpt {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.blog-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  color: var(--color-natural-brown);
  letter-spacing: 0.05em;
}

/* ブログ記事詳細 */
.blog-article {
  padding: var(--spacing-xl) 0 var(--spacing-xxl);
  background-color: var(--color-bg-white);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-light);
  flex-wrap: wrap;
  letter-spacing: 0.05em;
  max-width: 100%;
  overflow-wrap: break-word;
}

.breadcrumb__link {
  color: var(--color-text-light);
  transition: all var(--transition-base);
  text-decoration: none;
}

.breadcrumb__link:hover {
  color: var(--color-natural-brown);
}

.breadcrumb__separator {
  color: var(--color-text-light);
  opacity: 0.5;
  margin: 0 4px;
}

.breadcrumb__current {
  color: var(--color-text);
  font-weight: 400;
}

.article-header {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border);
}

.article-meta {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  margin-bottom: var(--spacing-md);
  font-size: 14px;
  color: var(--color-text-light);
}

.article-date {
  letter-spacing: 0.05em;
}

.article-category {
  padding: 4px 12px;
  background-color: var(--color-beige);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.article-title {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.08em;
  font-weight: 400;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.article-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.article-lead {
  margin: var(--spacing-lg) 0 var(--spacing-xl);
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
}

.article-lead p {
  margin: 0;
}

.article-cta {
  margin: var(--spacing-xxl) 0;
  padding: var(--spacing-lg);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  text-align: center;
}

.article-cta__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.article-cta__link {
  color: var(--color-natural-brown);
  text-decoration: underline;
  font-weight: 500;
  transition: opacity var(--transition-base);
}

.article-cta__link:hover {
  opacity: 0.7;
}

.article-thumbnail {
  margin-bottom: var(--spacing-xl);
}

.article-thumbnail img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
}

.article-content {
  font-size: 16px;
  line-height: 2.0;
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-xl);
  color: var(--color-text);
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  overflow-x: hidden; /* 横スクロールを完全に防止 */
}

/* すべての子要素に幅制限と文字折り返しを強制適用 */
.article-content *:not(table):not(tr):not(thead):not(tbody) {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

/* テキスト要素に特に強い制約 */
.article-content p,
.article-content li,
.article-content div,
.article-content span,
.article-content a,
.article-content strong,
.article-content em,
.article-content blockquote {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* 見出し - H2 */
.article-content h2 {
  font-size: 24px;
  margin-top: var(--spacing-xxl);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md) 0 var(--spacing-md) var(--spacing-lg);
  border-left: 4px solid var(--color-natural-brown);
  border-bottom: 1px solid var(--color-border);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-charcoal);
  position: relative;
}

.article-content h2::before {
  content: '\f0da';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 8px;
  color: var(--color-natural-brown);
  font-size: 18px;
}

/* 見出し - H3 */
.article-content h3 {
  font-size: 20px;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-md);
  border-left: 3px solid var(--color-beige);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-charcoal);
}

/* 見出し - H4 */
.article-content h4 {
  font-size: 18px;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-content h4::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-natural-brown);
  border-radius: 50%;
  flex-shrink: 0;
}

/* 段落 */
.article-content p {
  margin-bottom: var(--spacing-lg);
  line-height: 2.0;
}

/* 強調 */
.article-content strong {
  font-weight: 500;
  color: var(--color-natural-brown);
  background: linear-gradient(transparent 60%, rgba(229, 221, 213, 0.5) 60%);
  padding: 0 4px;
}

.article-content em {
  font-style: normal;
  font-weight: 500;
  color: var(--color-natural-brown);
}

/* リスト - 順序なし */
.article-content ul {
  margin-bottom: var(--spacing-lg);
  padding-left: 0;
  list-style: none;
}

.article-content ul li {
  margin-bottom: var(--spacing-md);
  padding-left: 28px;
  position: relative;
  line-height: 1.9;
}

.article-content ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--color-natural-brown);
  font-size: 14px;
}

/* リスト - 順序あり */
.article-content ol {
  margin-bottom: var(--spacing-lg);
  padding-left: 0;
  list-style: none;
  counter-reset: list-counter;
}

.article-content ol li {
  margin-bottom: var(--spacing-md);
  padding-left: 32px;
  position: relative;
  line-height: 1.9;
  counter-increment: list-counter;
}

.article-content ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 0;
  width: 24px;
  height: 24px;
  background-color: var(--color-natural-brown);
  color: var(--color-bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
}

/* 画像 */
.article-content img {
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: var(--spacing-lg) 0;
  border: 1px solid var(--color-border);
  display: block;
  box-sizing: border-box;
  object-fit: contain;
}

/* リンク（ボタンを除く） */
.article-content a:not(.btn) {
  color: var(--color-natural-brown);
  text-decoration: underline;
  text-decoration-color: rgba(139, 115, 85, 0.3);
  text-underline-offset: 3px;
  transition: all var(--transition-base);
}

.article-content a:not(.btn):hover {
  text-decoration-color: var(--color-natural-brown);
}

/* ボタンの色を強制的に保持（二度とミスを防ぐ） */
.article-content .btn-primary {
  color: var(--color-bg-white) !important;
  background-color: var(--color-natural-brown) !important;
  border-color: var(--color-natural-brown) !important;
  text-decoration: none !important;
}

.article-content .btn-primary:hover {
  color: var(--color-bg-white) !important;
  opacity: 0.8;
}

.article-content .btn-secondary {
  color: var(--color-natural-brown) !important;
  background-color: transparent !important;
  border-color: var(--color-natural-brown) !important;
  text-decoration: none !important;
}

.article-content .btn-secondary:hover {
  color: var(--color-bg-white) !important;
  background-color: var(--color-natural-brown) !important;
}

/* 引用 */
.article-content blockquote {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg);
  background-color: var(--color-off-white);
  border-left: 4px solid var(--color-beige);
  font-style: italic;
  color: var(--color-text-light);
  position: relative;
}

.article-content blockquote::before {
  content: '\f10d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  font-size: 24px;
  color: var(--color-beige);
  opacity: 0.5;
}

.article-content blockquote p {
  margin-top: 32px;
  margin-bottom: 0;
  padding-left: 8px;
}

/* コードブロック */
.article-content pre {
  background-color: var(--color-charcoal);
  color: #E5DDD5;
  padding: var(--spacing-lg);
  border-radius: 4px;
  overflow-x: auto;
  margin: var(--spacing-lg) 0;
  line-height: 1.6;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  word-wrap: normal;
  white-space: pre;
}

.article-content code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.article-content p code,
.article-content li code {
  background-color: var(--color-off-white);
  color: var(--color-natural-brown);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 14px;
}

/* テーブル */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-lg) 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.article-content th,
.article-content td {
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
  text-align: left;
  line-height: 1.8;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.article-content th {
  background-color: var(--color-beige);
  font-weight: 500;
  color: var(--color-charcoal);
}

.article-content tr:nth-child(even) {
  background-color: var(--color-off-white);
}

/* 注意書きボックス */
.article-content .note {
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  background-color: #FFF9E6;
  border-left: 4px solid #FFD700;
  border-radius: 4px;
}

.article-content .note::before {
  content: '\f06a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #FFD700;
  margin-right: 8px;
}

/* ヒントボックス */
.article-content .tip {
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  background-color: #E8F5E9;
  border-left: 4px solid #4CAF50;
  border-radius: 4px;
}

.article-content .tip::before {
  content: '\f0eb';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #4CAF50;
  margin-right: 8px;
}

/* 警告ボックス */
.article-content .warning {
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  background-color: #FFEBEE;
  border-left: 4px solid #F44336;
  border-radius: 4px;
}

.article-content .warning::before {
  content: '\f071';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #F44336;
  margin-right: 8px;
}

.article-footer {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-xl);
}

.article-author {
  margin-bottom: 8px;
}

.article-back {
  text-align: center;
  margin-top: var(--spacing-xl);
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.pagination__link {
  padding: 10px 24px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-white);
  color: var(--color-text);
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: all var(--transition-base);
}

.pagination__link:hover {
  opacity: 0.7;
}

.pagination__current {
  font-size: 14px;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

.no-posts {
  text-align: center;
  padding: var(--spacing-xxl);
  color: var(--color-text-light);
  font-size: 15px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .search-form {
    flex-direction: column;
  }

  .search-button {
    width: 100%;
    justify-content: center;
  }

  .search-input {
    font-size: 16px; /* iOSでズームを防ぐ */
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    gap: 8px;
  }

  .filter-tab {
    padding: 8px 16px;
    font-size: 13px;
  }

  .article-content {
    font-size: 15px;
    overflow-x: hidden;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

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

  .article-content h3 {
    font-size: 18px;
  }

  .article-content pre {
    padding: var(--spacing-md);
    font-size: 13px;
  }

  .article-content table {
    font-size: 13px;
    display: table;
    width: 100%;
  }

  .article-content th,
  .article-content td {
    padding: 10px 8px;
    min-width: 0;
    font-size: 13px;
  }

  .article-content img {
    width: 100%;
    margin: var(--spacing-md) 0;
  }

  .article-content pre {
    padding: var(--spacing-sm);
    font-size: 12px;
    border-radius: 4px;
    margin: var(--spacing-md) 0;
  }

  .article-content code {
    font-size: 12px;
  }
}

/* 関連記事セクション */
.related-articles {
  margin-top: var(--spacing-xxl);
  padding-top: var(--spacing-xxl);
  border-top: 1px solid var(--color-border);
}

.related-articles__title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
  color: var(--color-charcoal);
  letter-spacing: 0.08em;
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-natural-brown);
  display: inline-block;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.related-article-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.related-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--color-natural-brown);
}

.related-article-card__link {
  display: block;
  padding: var(--spacing-lg);
  text-decoration: none;
  color: inherit;
}

.related-article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.related-article-card__date {
  font-size: 12px;
  color: var(--color-text-light);
}

.related-article-card__category {
  font-size: 11px;
  background-color: var(--color-beige);
  color: var(--color-natural-brown);
  padding: 4px 8px;
  border-radius: 3px;
  font-weight: 500;
}

.related-article-card__title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--color-charcoal);
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.related-article-card__excerpt {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .related-articles__grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================================
   写真カルーセル
   =========================================== */
.photo-carousel-section {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg);
  background-color: var(--color-off-white);
  border-radius: 8px;
}

.photo-carousel-section h3 {
  margin-bottom: var(--spacing-lg);
  font-size: 18px;
  color: var(--color-charcoal);
}

.photo-carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-container {
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--color-charcoal);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0;
  border: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
  background-color: var(--color-bg-white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.carousel-dot:hover {
  background-color: var(--color-natural-brown);
  opacity: 0.7;
}

.carousel-dot.active {
  background-color: var(--color-natural-brown);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .photo-carousel-section {
    padding: var(--spacing-md);
  }

  .carousel-slide {
    min-height: 250px;
  }

  .carousel-slide img {
    max-height: 300px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .carousel-prev {
    left: 8px;
  }

  .carousel-next {
    right: 8px;
  }
}

/* ============================================
   人気記事セクション
   ============================================ */
.popular-articles-section {
  padding: var(--spacing-2xl) 0;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.popular-articles {
  padding-top: var(--spacing-xxl);
  border-top: 1px solid var(--color-border);
  max-width: 100%;
  overflow: hidden;
}

.popular-articles__header {
  margin-bottom: var(--spacing-xl);
}

.popular-articles__title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--color-charcoal);
  letter-spacing: 0.08em;
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-natural-brown);
  display: inline-block;
}

.popular-articles__period {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: var(--spacing-xs);
  letter-spacing: 0.05em;
}

.popular-articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-xxl);
}

.popular-article-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.popular-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--color-natural-brown);
}

.popular-article-card__link {
  display: flex;
  text-decoration: none;
  color: inherit;
  padding: var(--spacing-lg);
  gap: var(--spacing-md);
  width: 100%;
  box-sizing: border-box;
}

.popular-article-card__rank {
  flex-shrink: 0;
}

.rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--color-beige);
  color: var(--color-natural-brown);
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

.popular-article-card__content {
  flex: 1;
  min-width: 0;
}

.popular-article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.popular-article-card__date {
  font-size: 12px;
  color: var(--color-text-light);
}

.popular-article-card__category {
  font-size: 11px;
  background-color: var(--color-beige);
  color: var(--color-natural-brown);
  padding: 4px 8px;
  border-radius: 3px;
  font-weight: 500;
}

.popular-article-card__title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--color-charcoal);
  line-height: 1.6;
  letter-spacing: 0.05em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-article-card__excerpt {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .popular-articles-section {
    padding: var(--spacing-xl) 0;
  }

  .popular-articles__grid {
    grid-template-columns: 1fr;
  }

  .popular-article-card__link {
    padding: var(--spacing-md);
  }

  .rank-badge {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

/* ============================================
   記事内コンテンツグリッド
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  max-width: 100%;
}

.feature-item {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--spacing-lg);
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--color-charcoal);
}

.feature-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

/* ============================================
   記事内ボックス（統一デザイン）
   ============================================ */
.info-box,
.warning-box,
.success-box,
.summary-box,
.highlight-box,
.example-box,
.definition-box,
.tips-box,
.note-box,
.caution-box {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.info-box h3,
.info-box h4,
.warning-box h3,
.warning-box h4,
.success-box h3,
.success-box h4,
.summary-box h3,
.summary-box h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--color-charcoal);
}

/* リンクボックス */
.internal-link-box,
.link-box,
.related-links,
.external-links {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.internal-link-box h3,
.internal-link-box h4,
.link-box h3,
.link-box h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: var(--spacing-md);
  color: var(--color-charcoal);
}

/* 比較ボックス */
.comparison-box {
  display: flex;
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.comparison-item {
  flex: 1;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--spacing-lg);
}

@media (max-width: 768px) {
  .comparison-box {
    flex-direction: column;
  }
}

/* FAQ */
.faq-section {
  margin: var(--spacing-xl) 0;
}

.faq-item {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.faq-item h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: var(--color-charcoal);
}

.faq-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
}

/* リード文 */
.lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--spacing-xl);
}

/* チェックリスト */
.checklist {
  list-style: none;
  padding: 0;
  margin: var(--spacing-lg) 0;
}

.checklist li {
  padding-left: 1.5em;
  position: relative;
  margin-bottom: var(--spacing-sm);
}

.checklist li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-natural-brown);
}

/* ステップリスト */
.step-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: var(--spacing-lg) 0;
}

.step-list li {
  counter-increment: step-counter;
  padding-left: 2.5em;
  position: relative;
  margin-bottom: var(--spacing-md);
}

.step-list li:before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  width: 1.8em;
  height: 1.8em;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  font-weight: 500;
  font-size: 14px;
}

/* 内部リンク */
.internal-link {
  color: var(--color-natural-brown);
  text-decoration: none;
  border-bottom: 1px solid var(--color-natural-brown);
}

.internal-link:hover {
  opacity: 0.7;
}

/* 外部リンク */
.external-link {
  color: var(--color-charcoal);
  text-decoration: none;
  border-bottom: 1px dashed var(--color-border);
}

.external-link:hover {
  opacity: 0.7;
}
