/* ==========================================================
   aruku（アルク） — コラム記事 / 一覧ページ
   "歩くジャーナル" 編集誌テーマ
   ========================================================== */

.column-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 22px 80px;
  font-size: 1.06rem;
  color: var(--ink);
  line-height: 1.98;
}

/* ===== パンくず ===== */
.breadcrumb-bar { max-width: var(--maxw); margin: 0 auto; padding: 16px 24px 0; }
.breadcrumb-bar .column-breadcrumb { margin-bottom: 0; }
.column-breadcrumb {
  font-family: var(--font-label);
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--muted);
  margin-bottom: 22px;
}
.column-breadcrumb a { color: var(--forest-700); text-decoration: none; }
.column-breadcrumb a:hover { color: var(--clay-600); }
.column-breadcrumb span { color: var(--ink-2); }

/* 会員ページ（マイページ等）のパンくずは目立たせる（枠なし・文字で強調） */
.member-wrap .column-breadcrumb {
  font-size: .98rem;
  margin-bottom: 26px;
}
.member-wrap .column-breadcrumb a { font-weight: 700; }
.member-wrap .column-breadcrumb a::before { content: "🏠 "; }
.member-wrap .column-breadcrumb span { color: var(--forest-800); font-weight: 800; }

/* ===== 記事ヘッダー ===== */
.column-thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 26px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 600 / 240;
  border: 1px solid var(--line);
}
.column-thumb svg { display: block; width: 100%; height: 100%; }

.column-header h1 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
  line-height: 1.4;
  margin: 0 0 16px;
  letter-spacing: -.015em;
}
.column-header h1 small {
  display: block;
  font-size: .5em;
  font-weight: 600;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--clay-600);
  margin-top: 12px;
  line-height: 1.5;
}

.column-meta {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  font-family: var(--font-label);
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.column-cat-tag {
  background: var(--forest-100);
  color: var(--forest-800);
  padding: 3px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .78rem;
  border: 1px solid var(--forest-300);
}

.column-lead {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.85;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper-2), transparent);
  border-left: 3px solid var(--clay-500);
  padding: 18px 24px;
  border-radius: 0 10px 10px 0;
  margin: 26px 0 34px;
}
.column-lead strong { color: var(--forest-700); }

/* ===== 目次 ===== */
.column-toc {
  position: relative;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 28px 24px;
  margin: 0 0 44px;
}
.column-toc h2 {
  font-family: var(--font-label);
  font-weight: 600;
  margin: 0 0 14px;
  font-size: .9rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay-600);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.column-toc ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: toc;
  font-size: .96rem;
}
.column-toc li {
  margin: 9px 0;
  padding-left: 32px;
  position: relative;
  counter-increment: toc;
}
.column-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0; top: .12em;
  font-family: var(--font-label);
  font-size: .82rem;
  font-weight: 600;
  color: var(--clay-500);
}
.column-toc a { color: var(--ink-2); text-decoration: none; transition: color .15s; }
.column-toc a:hover { color: var(--clay-600); }

/* ===== 本文セクション ===== */
.column-section { margin: 0 0 44px; scroll-margin-top: 90px; }
.column-section h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 1.78rem);
  margin: 0 0 20px;
  padding-bottom: 14px;
  line-height: 1.45;
  letter-spacing: -.01em;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.column-section h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 64px; height: 2px;
  background: var(--clay-500);
}
.column-section h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.22rem;
  margin: 32px 0 14px;
  color: var(--forest-800);
  padding-left: 16px;
  border-left: 4px solid var(--forest-300);
}
.column-section p { margin: 0 0 18px; }
.column-section ul,
.column-section ol { margin: 0 0 20px; padding-left: 26px; }
.column-section li { margin: 9px 0; }
.column-section ul li::marker { color: var(--clay-500); }
.column-section ol li::marker { color: var(--clay-600); font-family: var(--font-label); }
.column-section strong { color: var(--forest-800); font-weight: 700; }
.column-section a { color: var(--forest-700); text-underline-offset: 3px; }
.column-section a:hover { color: var(--clay-600); }

/* ===== 表 ===== */
.column-table-wrap { overflow-x: auto; margin: 0 0 24px; border-radius: var(--radius); }
.column-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  min-width: 460px;
  background: var(--paper-3);
}
.column-table th, .column-table td {
  border: 1px solid var(--line);
  padding: 11px 14px;
  text-align: center;
}
.column-table thead th {
  background: var(--forest-700);
  color: var(--paper);
  font-weight: 700;
  font-family: var(--font-label);
  letter-spacing: .02em;
}
.column-table tbody tr:nth-child(even) { background: var(--paper-2); }
.column-table td:first-child, .column-table th:first-child { text-align: left; font-weight: 600; }
.column-table caption {
  caption-side: bottom;
  font-size: .78rem;
  color: var(--muted);
  padding-top: 10px;
  text-align: left;
}

/* ===== コールアウト ===== */
.column-callout {
  position: relative;
  background: var(--forest-100);
  border: 1px solid var(--forest-300);
  border-radius: 12px;
  padding: 18px 22px 18px 24px;
  margin: 26px 0;
  font-size: 1rem;
}
.column-callout::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--forest-500);
  border-radius: 12px 0 0 12px;
}
.column-callout strong { color: var(--forest-700); }

.column-note {
  background: #fff6d9;
  border-left: 4px solid var(--amber-500);
  padding: 14px 20px;
  border-radius: 0 8px 8px 0;
  margin: 22px 0;
  font-size: .96rem;
}

/* ===== アフィリエイト枠（プレースホルダー） ===== */
.affiliate-box {
  border: 1.5px dashed var(--clay-300);
  background: var(--clay-100);
  border-radius: 14px;
  padding: 24px;
  margin: 34px 0;
}
.affiliate-box .aff-label {
  font-family: var(--font-label);
  font-size: .72rem;
  font-weight: 600;
  color: var(--clay-700);
  letter-spacing: .14em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}
.affiliate-box h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.affiliate-box p { margin: 0 0 16px; font-size: .94rem; color: var(--ink-2); }
.affiliate-slot {
  /* ▼ ここに各ASP（A8.net / もしも / Amazon / 楽天）の広告タグを貼り付け */
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: .86rem;
}
.aff-btn {
  display: inline-block;
  background: var(--clay-500);
  color: #fff;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 4px;
  transition: background .18s, transform .15s;
}
.aff-btn:hover { background: var(--clay-600); transform: translateY(-1px); }

/* ===== 前後ナビ ===== */
.column-nav-prevnext {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin: 48px 0 34px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.column-nav-prevnext a { color: var(--forest-700); text-decoration: none; font-weight: 600; transition: color .15s; }
.column-nav-prevnext a:hover { color: var(--clay-600); }
.column-nav-back {
  background: var(--forest-100);
  border: 1px solid var(--forest-300);
  padding: 7px 18px;
  border-radius: 999px;
  font-family: var(--font-label);
}
.column-nav-prevnext .disabled { color: #b3bcae; }

/* ===== 執筆者 ===== */
.column-author {
  position: relative;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 36px 0;
}
.column-author::before {
  content: "✍";
  position: absolute;
  top: 20px; right: 22px;
  font-size: 1.4rem;
  opacity: .4;
}
.column-author-name { font-size: 1.05rem; }
.column-author-name strong { color: var(--forest-800); font-family: var(--font-serif); }
.column-author-role { font-size: .85rem; color: var(--muted); margin: 4px 0 10px; }
.column-author-bio { font-size: .94rem; margin: 0 0 10px; }
.column-author-link { font-size: .88rem; font-weight: 700; text-decoration: none; color: var(--clay-600); }
.column-author-link:hover { color: var(--clay-700); }

/* ===== FAQ ===== */
.column-faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--paper-3);
}
.column-faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: baseline;
  transition: background .18s;
}
.column-faq-item summary::-webkit-details-marker { display: none; }
.column-faq-item summary::before {
  content: 'Q';
  font-family: var(--font-label);
  color: var(--clay-600);
  font-weight: 600;
  font-size: 1.05rem;
  flex: none;
}
.column-faq-item summary:hover { background: var(--paper-2); }
.column-faq-item[open] summary { background: var(--forest-100); }
.column-faq-a {
  padding: 16px 20px;
  font-size: .96rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}
.column-faq-a::before {
  content: 'A';
  font-family: var(--font-label);
  color: var(--forest-600);
  font-weight: 600;
  font-size: 1.05rem;
  flex: none;
}

/* ===== 関連記事カード / 結論見出し ===== */
.column-related-block h2, .column-conclusion h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  padding-bottom: 12px;
  margin: 0 0 22px;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.column-related-block h2::after, .column-conclusion h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 56px; height: 2px;
  background: var(--clay-500);
}
.column-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.column-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-3);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.column-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--forest-300);
}
.column-card .column-thumb {
  margin: 0; border-radius: 0; box-shadow: none; border: 0;
  border-bottom: 1px solid var(--line);
}
.column-card-body { padding: 16px 18px 18px; }
.column-card-num {
  font-family: var(--font-label);
  font-size: .72rem; font-weight: 600; color: var(--clay-600);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.column-card h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 6px 0 7px; font-size: 1.08rem; line-height: 1.45;
}
.column-card p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.7; }

/* ===== 結論CTA ===== */
.column-conclusion {
  background: var(--forest-100);
  border: 1px solid var(--forest-300);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin: 44px 0 0;
}
.column-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0 10px; }
.column-cta-note { font-size: .82rem; color: var(--muted); }

/* ==========================================================
   コラム一覧ページ
   ========================================================== */
.column-list-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 80% at 90% -10%, rgba(41,177,131,.18), transparent 60%),
    radial-gradient(60% 70% at 6% 0%, rgba(91,187,242,.13), transparent 60%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  padding: 72px 24px 40px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.column-list-hero::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 240px; height: 10px;
  background-image: var(--trail);
  background-size: 12px 10px;
  opacity: .6;
}
.column-list-hero h1 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -.02em;
  margin: 0 0 14px;
}
.column-list-hero p { color: var(--ink-2); margin: 0 auto; max-width: 38em; line-height: 1.9; }
.column-back-link { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; color: var(--forest-700); }
.column-back-link:hover { color: var(--clay-600); }

/* ===== note.com 風 会員投稿フィード ===== */
.note-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.note-card {
  display: block;
  position: relative;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s, border-color .22s;
}
/* ホバー時に上辺へ緑のアクセントライン */
.note-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--forest-500), var(--forest-700));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.note-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--forest-300); }
.note-card:hover::before { transform: scaleX(1); }
.note-card.has-cover { padding: 0; overflow: hidden; }
.note-card-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.note-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.note-card.has-cover .note-card-title { margin: 16px 22px 8px; }
.note-card.has-cover .note-card-excerpt { margin: 0 22px 16px; }
.note-card.has-cover .note-card-foot { margin: 0 22px 18px; }
.note-card-title { font-weight: 700; font-size: 1.1rem; line-height: 1.5; margin: 0 0 8px; }
.note-card-excerpt { font-size: .88rem; color: var(--muted); line-height: 1.7; margin: 0 0 16px; }
.note-card-meta { margin: 0 0 6px; min-height: 0; }
.note-card.has-cover .note-card-meta { margin: 16px 22px 0; }
.note-cat { display: inline-block; background: var(--forest-100); color: var(--forest-800); border: 1px solid var(--forest-300); border-radius: 999px; padding: 2px 10px; font-size: .72rem; font-weight: 700; }
.note-tag { display: inline-block; color: var(--forest-700); font-size: .72rem; font-weight: 700; margin-left: 6px; }

/* note.com 風 左サイドバー レイアウト */
.column-layout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 34px;
  padding: 30px 22px 80px;
  align-items: start;
}
.column-side { position: sticky; top: 100px; }
/* トップの３．コラム内に置く場合（外側 section-inner が余白を持つため詰める） */
.col-layout--flush { max-width: none; padding: 0; }
.col-layout--flush .note-rail { min-width: 0; }
/* 中央も左ナビと同じ枠で囲む（コラムが無くても枠だけ表示） */
.col-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  min-height: 220px;
}
.col-box > .cat-rail-block:last-child { margin-bottom: 0; }
@media (max-width: 880px) { .col-box { padding: 16px; } }
.column-layout .column-article,
.column-layout .column-main { max-width: none; margin: 0; padding: 0; min-width: 0; }
.cat-nav { display: flex; flex-direction: column; gap: 2px; background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-sm); }
.cat-nav-head { font-size: .72rem; font-weight: 800; color: var(--muted); letter-spacing: .08em; padding: 6px 12px 8px; }
.cat-nav-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; transition: background .15s, color .15s; }
.cat-nav-item:hover { background: var(--paper-2); color: var(--ink); }
.cat-nav-item.active { background: var(--forest-100); color: var(--forest-800); font-weight: 800; }
@media (max-width: 880px) {
  .column-layout { grid-template-columns: 1fr; gap: 18px; }
  .column-side { position: static; }
  .cat-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .cat-nav-head { width: 100%; padding: 0 4px 4px; }
  .cat-nav-item { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; }
}

/* カテゴリチップ（全カテゴリの探す導線） */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.cat-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--paper-3); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .86rem; font-weight: 700; color: var(--forest-800); text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.cat-chip:hover { background: var(--forest-100); border-color: var(--forest-300); transform: translateY(-1px); }

/* note.com 風 カテゴリ別 横スクロールレール */
.cat-rail-block { margin-bottom: 30px; }
.cat-rail-block.is-empty { opacity: .96; }
.cat-rail-empty { border: 1.5px dashed var(--line-2); border-radius: 16px; padding: 26px 22px; background: #fafcfb; color: var(--ink-2); font-size: .92rem; text-align: center; }
.cat-rail-empty a { color: var(--forest-800); font-weight: 700; text-decoration: none; white-space: nowrap; }
.cat-rail-empty a:hover { text-decoration: underline; }
.cat-rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cat-rail-title { font-size: 1.12rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.cat-rail-more { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--forest-700); text-decoration: none; }
.cat-rail-more::after {
  content: "→";
  font-size: 1.5em;
  line-height: 1;
  font-weight: 900;
  color: var(--clay-500);
  transition: transform .2s ease;
}
.cat-rail-more:hover { color: var(--clay-600); }
.cat-rail-more:hover::after { transform: translateX(5px); }
.note-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  margin: 0 -4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--forest-300) transparent;
}
.note-rail::-webkit-scrollbar { height: 8px; }
.note-rail::-webkit-scrollbar-thumb { background: var(--forest-300); border-radius: 999px; }
.note-rail::-webkit-scrollbar-track { background: transparent; }
.note-rail .note-card {
  flex: 0 0 280px;
  width: 280px;
  scroll-snap-align: start;
}
.cat-rail-scroller { position: relative; }
.rail-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--forest-700);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-md); display: grid; place-items: center;
  transition: opacity .2s, background .15s, transform .15s;
}
.rail-arrow.prev { left: -8px; }
.rail-arrow.next { right: -8px; }
.rail-arrow:hover { background: var(--forest-100); }
.rail-arrow.is-hidden { opacity: 0; pointer-events: none; }
.rail-empty { color: var(--muted); font-size: .9rem; padding: 6px 0 4px; }
.rail-empty a { color: var(--forest-700); font-weight: 700; text-decoration: none; }
@media (max-width: 700px) { .rail-arrow { display: none; } }
@media (max-width: 600px) {
  .note-rail .note-card { flex-basis: 78vw; width: 78vw; }
}
.note-card-foot { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-2); flex-wrap: wrap; }

/* 検索ボックス・人気タグ */
.column-search { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 22px; }
.column-search input { flex: 1; font: inherit; font-size: 1rem; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 11px 18px; background: #fff; }
.column-search input:focus { outline: none; border-color: var(--forest-500); box-shadow: 0 0 0 3px rgba(41,177,131,.16); }
.column-search button { background: var(--forest-700); color: #fff; border: 0; border-radius: 999px; padding: 0 22px; font-weight: 700; cursor: pointer; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 30px; }
.tag-cloud-label { font-weight: 700; color: var(--muted); font-size: .85rem; margin-right: 4px; }
.tag-cloud a { background: var(--paper-3); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 700; color: var(--forest-800); text-decoration: none; }
.tag-cloud a:hover { border-color: var(--forest-300); background: var(--forest-100); }
.tag-cloud a small { color: var(--muted); margin-left: 5px; font-weight: 500; }

/* 記事ページのタグ */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.post-tag { background: var(--paper-2); border-radius: 999px; padding: 4px 12px; font-size: .82rem; font-weight: 700; color: var(--forest-800); text-decoration: none; }
.post-tag:hover { background: var(--forest-100); }

/* フォロー・公開プロフィール */
.profile-head { display: flex; gap: 18px; align-items: center; padding: 8px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--forest-500); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 2rem; flex: none; }
.profile-name { font-size: 1.5rem; margin: 0 0 6px; }
.profile-stats { display: flex; gap: 18px; color: var(--muted); font-size: .9rem; margin-bottom: 12px; flex-wrap: wrap; }
.profile-stats b { color: var(--ink); }
.follow-btn { display: inline-block; background: var(--forest-700); color: #fff; border: 1.5px solid var(--forest-700); border-radius: 999px; padding: 8px 22px; font-weight: 700; font-size: .9rem; cursor: pointer; text-decoration: none; }
.follow-btn:hover { background: var(--forest-600); }
.follow-btn.following { background: #fff; color: var(--forest-700); }
.follow-btn.ghost { background: #fff; color: var(--ink-2); border-color: var(--line-2); }

/* ===== いいねランキング ===== */
.note-stats { margin-left: auto; color: var(--muted); white-space: nowrap; }
.note-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--forest-500); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.note-author { font-weight: 700; }
.note-dot { color: var(--line-2); }
.note-date { color: var(--muted); }

/* ===== いいねランキング ===== */
.rank-list { display: flex; flex-direction: column; gap: 2px; }
.rank-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line); transition: background .15s;
}
.rank-item:hover { background: var(--paper-2); }
.rank-num {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
  background: var(--forest-100); color: var(--forest-800);
}
.rank-item:nth-child(1) .rank-num { background: #ffd400; color: #7a5b00; }
.rank-item:nth-child(2) .rank-num { background: #d8dde0; color: #4a525a; }
.rank-item:nth-child(3) .rank-num { background: #f0c69a; color: #7a4a1c; }
.rank-title { flex: 1; font-weight: 700; line-height: 1.5; }
.rank-likes { flex: none; color: var(--clay-600); font-weight: 700; font-size: .9rem; white-space: nowrap; }

/* ===== 会員投稿の記事ページ ===== */
.post-article { max-width: 720px; margin: 0 auto; padding: 8px 0 20px; }
.post-breadcrumb { margin-bottom: 18px; font-size: .85rem; }
.post-breadcrumb a { color: var(--forest-700); text-decoration: none; }
.post-title { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.4; margin: 0 0 18px; }
.post-byline { display: flex; align-items: center; gap: 12px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.post-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--forest-500); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; flex: none; }
.post-byline-text { display: flex; flex-direction: column; }
.post-author { font-weight: 700; }
.post-date { font-size: .82rem; color: var(--muted); }
.post-badge { margin-left: auto; background: var(--forest-100); color: var(--forest-800); border: 1px solid var(--forest-300); border-radius: 999px; padding: 3px 12px; font-size: .76rem; font-weight: 700; }
.post-cover { margin: 0 0 26px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.post-cover img { width: 100%; height: auto; display: block; }
.post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 6px 0 24px; }
.post-gallery img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }
.post-disclaimer { margin: 2em 0 0; padding: 14px 18px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); font-size: .86rem; line-height: 1.8; }
.post-disclaimer a { color: var(--forest-800); font-weight: 700; }
.post-updated { color: var(--ink-2); font-size: .82rem; margin-left: 10px; }
.post-updated::before { content: "・"; margin-right: 6px; color: var(--line-2); }
.post-faq { margin: 2.4em 0 0; padding-top: 1.6em; border-top: 1px solid var(--line); }
.post-faq h2 { font-size: 1.32rem; font-weight: 800; color: var(--forest-800); margin: 0 0 .8em; padding-left: 14px; border-left: 5px solid var(--forest-500); }
.site-search { display: flex; gap: 10px; max-width: 560px; margin: 16px auto 0; }
.site-search input[type="search"] { flex: 1; min-width: 0; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 1rem; font-family: inherit; }
.site-search input[type="search"]:focus { outline: none; border-color: var(--forest-500); box-shadow: 0 0 0 3px rgba(62,198,144,.2); }
.site-search button { white-space: nowrap; }
.search-count { color: var(--ink-2); font-size: .95rem; margin: 0 0 16px; }
.search-count b { color: var(--forest-800); }
.post-body { font-size: 1.05rem; line-height: 1.95; color: var(--ink); word-break: break-word; }
.post-cat { display: inline-block; margin-bottom: 12px; background: var(--forest-100); color: var(--forest-800); border: 1px solid var(--forest-300); border-radius: 999px; padding: 3px 14px; font-size: .8rem; font-weight: 700; text-decoration: none; }
.post-cat:hover { background: var(--forest-300); }

/* 本文内のMarkdown要素（記事ページ・プレビュー共通） */
.post-body h2, .md-preview h2 { font-size: 1.32rem; font-weight: 800; line-height: 1.5; color: var(--forest-800); margin: 1.8em 0 .6em; padding-left: 14px; border-left: 5px solid var(--forest-500); }
.post-body h3, .md-preview h3 { font-size: 1.12rem; font-weight: 800; color: var(--ink); margin: 1.5em 0 .5em; }
.post-body h4, .md-preview h4 { font-size: 1.02rem; font-weight: 800; color: var(--ink-2); margin: 1.3em 0 .45em; }
.post-body p, .md-preview p { margin: 0 0 1.2em; }
.post-body ul, .post-body ol, .md-preview ul, .md-preview ol { margin: 0 0 1.3em; padding-left: 1.5em; }
.post-body li, .md-preview li { margin: .35em 0; line-height: 1.8; }
.post-body ul li, .md-preview ul li { list-style: none; position: relative; padding-left: 4px; }
.post-body ul li::before, .md-preview ul li::before { content: ""; position: absolute; left: -1.1em; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--forest-500); }
.post-body ol, .md-preview ol { list-style: decimal; }
.post-body blockquote, .md-preview blockquote { margin: 0 0 1.3em; padding: 12px 18px; background: var(--forest-100); border-left: 4px solid var(--forest-300); border-radius: 0 12px 12px 0; color: var(--ink-2); }
.post-body a, .md-preview a { color: var(--forest-800); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; word-break: break-all; }
.post-body code, .md-preview code { background: #f1f4f2; border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; font-size: .92em; font-family: "Consolas", "メイリオ", monospace; }
.post-body strong, .md-preview strong { font-weight: 800; background: linear-gradient(transparent 62%, rgba(255,212,0,.45) 62%); }

/* コラムエディタ ツールバー＆プレビュー */
.md-field > span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.md-hint { font-weight: 400; font-size: .78rem; color: var(--ink-2); }
.md-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; margin: 6px 0 0; background: var(--forest-100); border: 1.5px solid var(--line-2); border-bottom: none; border-radius: 12px 12px 0 0; }
.md-btn { background: #fff; border: 1.5px solid var(--line-2); border-radius: 8px; padding: 6px 12px; font-size: .86rem; font-weight: 700; color: var(--ink-2); cursor: pointer; line-height: 1.2; transition: all .15s; font-family: inherit; }
.md-btn:hover { border-color: var(--forest-500); color: var(--forest-800); }
.md-btn i { font-style: italic; }
.md-toggle-preview { margin-left: auto; border-color: var(--forest-300); color: var(--forest-800); }
.md-toggle-preview[aria-pressed="true"] { background: var(--forest-800); color: #fff; border-color: var(--forest-800); }
.md-field textarea { border-radius: 0 0 12px 12px !important; border-top: none !important; }
.md-preview { min-height: 280px; padding: 18px 20px; background: #fff; border: 1.5px solid var(--line-2); border-top: none; border-radius: 0 0 12px 12px; font-size: 1.02rem; line-height: 1.9; color: var(--ink); }
.md-preview .md-empty { color: var(--ink-2); }

/* 本文内のインライン画像 */
.post-inline-img { max-width: 100%; height: auto; border-radius: 12px; margin: 8px 0; display: block; }

/* 「画像を追加」ファイルのドラッグ&ドロップゾーン */
.file-drop { display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 18px; text-align: center; cursor: pointer; border: 2px dashed var(--line-2); border-radius: 14px; background: #fafcfb; transition: border-color .18s, background .18s; }
.file-drop:hover { border-color: var(--forest-500); }
.file-drop.is-dragover { border-color: var(--forest-500); background: rgba(62,198,144,.10); }
.file-drop { flex-direction: column; gap: 12px; }
.file-drop input[type="file"] { display: none; }
.file-drop-empty { color: var(--ink-2); font-size: .92rem; font-weight: 600; }
/* ボックス内：サムネイル1枚のプレビュー＋サイズ調整 */
.file-drop-filled { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.file-drop-preview { width: 320px; max-width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2); display: block; background: #fff; }
.file-size-ctrl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; font-size: .85rem; color: var(--ink-2); cursor: default; }
.file-size-ctrl input[type="range"] { width: 200px; accent-color: var(--forest-700); }
.file-clear { background: none; border: none; color: #d64533; font-weight: 700; cursor: pointer; font-size: .85rem; }
.file-clear:hover { text-decoration: underline; }

/* 画像ドロップゾーン */
.md-editzone { position: relative; }
.md-editzone .md-dropmsg { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; pointer-events: none; background: rgba(62,198,144,.12); border: 2.5px dashed var(--forest-500); border-radius: 0 0 12px 12px; color: var(--forest-800); font-weight: 800; font-size: 1.1rem; z-index: 2; }
.md-editzone.is-dragover .md-dropmsg { display: flex; }
.md-editzone.is-dragover textarea { border-color: var(--forest-500) !important; }

/* ステータスバー（文字数・自動保存） */
.md-statusbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: .82rem; color: var(--ink-2); }
.md-count { font-weight: 700; }
.md-autosave { color: var(--forest-800); font-weight: 700; min-height: 1.2em; }

/* 復元バー */
.md-restore { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 16px; background: var(--forest-100); border: 1.5px solid var(--forest-300); border-radius: 12px; font-weight: 700; color: var(--forest-800); }
.md-restore .lp-btn { padding: 6px 16px; font-size: .9rem; }
.md-restore-no { background: none; border: none; color: var(--ink-2); text-decoration: underline; cursor: pointer; font-weight: 700; font-family: inherit; }

/* 集中モード（全画面） */
.md-fullscreen { padding: 6px 10px; }
body.md-fs-lock { overflow: hidden; }
.post-editor.is-fullscreen { position: fixed; inset: 0; z-index: 1000; margin: 0; border-radius: 0; overflow-y: auto; max-width: none; padding: 24px clamp(16px, 6vw, 120px); background: #fff; }
.post-editor.is-fullscreen .md-field textarea { min-height: 60vh; }
.post-editor.is-fullscreen .md-preview { min-height: 60vh; }

/* いいね */
.post-actions { margin: 28px 0 8px; }
.like-form { display: inline; }
.like-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line-2); color: var(--ink-2); border-radius: 999px; padding: 9px 22px; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; transition: all .18s; }
.like-btn:hover { border-color: var(--clay-500); color: var(--clay-600); }
.like-btn.liked { background: var(--clay-500); border-color: var(--clay-500); color: #fff; }
.bm-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--line-2); color: var(--ink-2); border-radius: 999px; padding: 9px 20px; font-weight: 700; font-size: 1rem; cursor: pointer; }
.bm-btn:hover { border-color: var(--forest-500); color: var(--forest-700); }
.bm-btn.marked { background: var(--forest-100); border-color: var(--forest-300); color: var(--forest-800); }
.like-form { display: inline-block; }
.post-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ランキングの期間タブ */
.rank-tabs { display: flex; gap: 8px; margin: 0 0 14px; }
.rank-tab { padding: 6px 16px; border-radius: 999px; font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--ink-2); background: var(--paper-3); border: 1px solid var(--line); }
.rank-tab.active { background: var(--forest-700); color: #fff; border-color: var(--forest-700); }

/* SNSシェア */
.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 9px 18px; font-size: .9rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: all .18s; }
.sns-ico { width: 16px; height: 16px; flex: none; }
.share-btn.x .sns-ico { fill: #000; }
.share-btn.line .sns-ico { fill: #06c755; }
.share-btn.fb .sns-ico { fill: #1877f2; }
.share-btn.copy .sns-ico { fill: var(--forest-700); }
.share-btn.x:hover { background: #000; color: #fff; border-color: #000; }
.share-btn.line:hover { background: #06c755; color: #fff; border-color: #06c755; }
.share-btn.fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn.copy:hover { background: var(--forest-100); border-color: var(--forest-300); }
.share-btn.x:hover .sns-ico, .share-btn.line:hover .sns-ico, .share-btn.fb:hover .sns-ico { fill: #fff; }

/* 通報 */
.report-box { margin: 16px 0; font-size: .85rem; }
.report-box summary { cursor: pointer; color: var(--muted); }
.report-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.report-form input[type=text] { flex: 1; min-width: 200px; border: 1.5px solid var(--line-2); border-radius: 8px; padding: 8px 12px; font: inherit; }
.report-form button { background: var(--clay-600); color: #fff; border: 0; border-radius: 999px; padding: 8px 18px; font-weight: 700; cursor: pointer; }
.cmt-del button { background: none; border: 0; color: var(--muted); font-size: .8rem; cursor: pointer; text-decoration: underline; margin-left: 8px; }

/* 並び替えタブ・ページャ */
.sort-tabs { display: flex; gap: 8px; margin: 0 0 16px; }
.sort-tab { padding: 6px 16px; border-radius: 999px; font-size: .85rem; font-weight: 700; text-decoration: none; color: var(--ink-2); background: var(--paper-3); border: 1px solid var(--line); }
.sort-tab.active { background: var(--forest-700); color: #fff; border-color: var(--forest-700); }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 26px 0 0; }
.pager-link { color: var(--forest-700); font-weight: 700; text-decoration: none; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; }
.pager-link.disabled { color: var(--line-2); border-color: var(--line); pointer-events: none; }
.pager-info { color: var(--muted); font-size: .9rem; }
.related { margin-top: 36px; }

/* 通知一覧 */
.notif-list { display: flex; flex-direction: column; }
.notif-item { display: flex; align-items: center; gap: 12px; padding: 14px 12px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.notif-item:hover { background: var(--paper-2); }
.notif-item.unread { background: var(--forest-100); }
.notif-item.unread:hover { background: var(--forest-100); }
.notif-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--forest-500); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.notif-text { font-size: .94rem; line-height: 1.6; }
.notif-date { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }

/* コメント */
.comments { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.comments-title { font-size: 1.2rem; margin: 0 0 18px; }
.cmt { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cmt-head { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.cmt-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--forest-500); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.cmt-name { font-weight: 700; color: var(--ink-2); }
.cmt-del { margin-left: auto; }
.cmt-del button { background: none; border: 0; color: var(--muted); font-size: .8rem; cursor: pointer; text-decoration: underline; }
.cmt-body { font-size: .96rem; line-height: 1.8; color: var(--ink); white-space: normal; }
.cmt-empty { color: var(--muted); }
.cmt-form { margin-top: 20px; }
.cmt-form textarea { width: 100%; font-family: var(--font-sans); font-size: 1rem; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 12px 14px; resize: vertical; line-height: 1.8; margin-bottom: 12px; }
.cmt-form textarea:focus { outline: none; border-color: var(--forest-500); box-shadow: 0 0 0 3px rgba(41,177,131,.16); }
.cmt-login { color: var(--muted); margin-top: 18px; }
.cmt-login a, .comments a { color: var(--forest-700); font-weight: 700; }

.column-cat-section { margin: 0 0 60px; counter-increment: catsec; }
.column-article { counter-reset: catsec; }
.column-cat-title {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.column-cat-title::before {
  content: counter(catsec, decimal-leading-zero);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--clay-500);
}
.column-cat-title .cat-emoji {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--forest-100);
  border: 1px solid var(--forest-300);
  font-size: 1.45rem;
}
.column-cat-desc {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: .94rem;
  padding-left: 2px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

/* 開閉式インデックス */
.column-toc-index {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 auto 48px;
  max-width: 760px;
  overflow: hidden;
}
.column-toc-index summary {
  padding: 16px 22px;
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .18s;
}
.column-toc-index summary:hover { background: var(--paper-2); }
.column-toc-index summary::-webkit-details-marker { display: none; }
.column-toc-index summary::after { content: '＋'; color: var(--clay-600); font-size: 1.1rem; }
.column-toc-index[open] summary { border-bottom: 1px solid var(--line); }
.column-toc-index[open] summary::after { content: '－'; }
.column-toc-index-list { padding: 14px 22px 20px; columns: 2; column-gap: 28px; font-size: .9rem; }
.column-toc-index-list a {
  display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none;
  break-inside: avoid;
  transition: color .15s;
}
.column-toc-index-list a:hover { color: var(--clay-600); }
@media (max-width: 600px) { .column-toc-index-list { columns: 1; } }

@media (max-width: 600px) {
  .column-article { padding: 28px 18px 64px; font-size: 1.02rem; }
  .column-cta { flex-direction: column; }
  .column-cta .lp-btn { width: 100%; }
}
