/* ================================================
   NICENAIL公式コラム - スタイルシート
   清潔感・女性向けのブランドトーン
   ================================================ */

/* --- リセット・ベース --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: #333;
  background-color: #faf8f6;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #c27a8e;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #a85d72;
}

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

/* --- ヘッダー --- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #f0e8e4;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #c27a8e;
  letter-spacing: 0.05em;
}

.logo-img {
  height: 40px;
  width: auto;
}

.site-logo span {
  font-size: 0.7rem;
  font-weight: 400;
  color: #999;
  letter-spacing: 0.1em;
}

.global-nav {
  display: flex;
  gap: 24px;
}

.global-nav a {
  font-size: 0.875rem;
  color: #666;
}

.global-nav a:hover {
  color: #c27a8e;
}

/* --- パンくずリスト --- */
.breadcrumb {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 20px;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.8rem;
  color: #999;
}

.breadcrumb li + li::before {
  content: ">";
  margin-right: 4px;
}

.breadcrumb a {
  color: #999;
}

.breadcrumb a:hover {
  color: #c27a8e;
}

/* --- コラム一覧 --- */
.column-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.column-title {
  font-size: 1.75rem;
  text-align: center;
  color: #c27a8e;
  margin-bottom: 8px;
}

.column-lead {
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* カテゴリフィルター */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}

.filter-btn {
  background: #fff;
  border: 1px solid #e0d6d0;
  color: #888;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: #c27a8e;
  color: #fff;
  border-color: #c27a8e;
}

/* 記事カード一覧 */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.card-thumbnail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f0e8e4;
}

.card-body {
  padding: 16px 20px 20px;
}

.card-category {
  display: inline-block;
  font-size: 0.75rem;
  color: #c27a8e;
  background: #fdf0f3;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.card-body time {
  display: block;
  font-size: 0.75rem;
  color: #aaa;
  margin-bottom: 6px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
  color: #333;
}

.card-excerpt {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.6;
}

/* --- 記事詳細 --- */
.article-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.article-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}

.article-content {
  width: 100%;
  max-width: 720px;
}

.article-header {
  margin-bottom: 24px;
}

.article-category {
  display: inline-block;
  font-size: 0.8rem;
  color: #c27a8e;
  background: #fdf0f3;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.article-header time {
  display: block;
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 12px;
}

.article-header h1 {
  font-size: 1.6rem;
  line-height: 1.5;
  color: #333;
}

.article-thumbnail {
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.article-thumbnail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f0e8e4;
}

/* 記事本文 */
.article-body {
  margin-bottom: 48px;
}

.article-body p {
  margin-bottom: 1.5em;
}

.article-body h2 {
  font-size: 1.3rem;
  color: #c27a8e;
  margin-top: 2em;
  margin-bottom: 0.8em;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0e8e4;
}

.article-body h3 {
  font-size: 1.1rem;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  color: #555;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.article-body li {
  margin-bottom: 0.4em;
}

.article-image {
  margin: 2em 0;
}

.article-image img {
  border-radius: 8px;
}

.article-image figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 8px;
}

/* CTA ボックス */
.cta-box {
  background: linear-gradient(135deg, #fdf0f3, #f8e8ec);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin-bottom: 48px;
}

.cta-box h2 {
  font-size: 1.2rem;
  color: #c27a8e;
  margin-bottom: 8px;
}

.cta-box p {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background: #c27a8e;
  color: #fff;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s;
}

.cta-button:hover {
  background: #a85d72;
  color: #fff;
}

/* 関連記事 */
.related-articles {
  border-top: 1px solid #f0e8e4;
  padding-top: 32px;
}

.related-articles h2 {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 16px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.related-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s;
  display: block;
  color: inherit;
}

.related-card:hover {
  transform: translateY(-2px);
}

.related-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f0e8e4;
}

.related-title {
  display: block;
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

/* 記事ページャー */
.article-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0e8e4;
  margin-top: 40px;
  padding-top: 24px;
}

.article-pager a {
  color: #c27a8e;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.article-pager a:hover {
  color: #a85d72;
}

.pager-prev,
.pager-next,
.article-pager span {
  flex: 1;
}

.pager-prev {
  text-align: left;
}

.pager-center {
  text-align: center;
  flex: 1;
}

.pager-next {
  text-align: right;
}

/* --- フッター --- */
.site-footer {
  background: #fff;
  border-top: 1px solid #f0e8e4;
  padding: 24px 20px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #aaa;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: #aaa;
  font-size: 0.8rem;
}

.footer-nav a:hover {
  color: #c27a8e;
}

/* --- キーワード検索 --- */
.search-box {
  max-width: 600px;
  margin: 0 auto 32px;
  text-align: center;
}

.search-box label {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}

.search-input-wrap {
  display: flex;
  border: 1px solid #e0d6d0;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-family: inherit;
  background: transparent;
}

.search-submit {
  background: #c27a8e;
  color: #fff;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.search-submit:hover {
  background: #a85d72;
}

/* --- 2カラムレイアウト（中央寄せ＋右余白にサイドバー） --- */
.column-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}

.column-content {
  width: 100%;
  max-width: 720px;
}

.column-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

.section-heading {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0e8e4;
}

/* --- サイドバー --- */
.sidebar-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
}

.sidebar-heading {
  font-size: 0.95rem;
  color: #c27a8e;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0e8e4;
}

/* タグリスト */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-btn {
  font-size: 0.8rem;
  padding: 4px 14px;
}

/* 人気記事ランキング */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.ranking-item:hover {
  opacity: 0.7;
}

.ranking-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: #c27a8e;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.ranking-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0e8e4;
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

  .column-sidebar {
    width: 100%;
    position: static;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 8px;
  }

  .column-title {
    font-size: 1.4rem;
  }

  .article-header h1 {
    font-size: 1.3rem;
  }

  .article-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cta-box {
    padding: 24px 16px;
  }
}
