/* ============================================================
   365LIFE コラム専用スタイル (column.css)
   既存 /css/common.css と併用する追加スタイル
   - 既存サイトのスタイルを継承
   - コラム部分の独自レイアウトのみここで定義
   ============================================================ */

/* ============================================================
   既存ヘッダーが position:fixed なので、上部余白を確保
   ============================================================ */
body {
  padding-top: 70px; /* SPでのヘッダー高さ分 */
}

@media print, screen and (min-width: 992px) {
  body {
    padding-top: 130px; /* PCでの2段ヘッダー分 */
  }
}

/* ============================================================
   コラム用パンくず
   ============================================================ */
.column-breadcrumbs {
  background: #fafaf7;
  border-bottom: 1px solid #e8e6e1;
  padding: 10px 0;
  font-size: 12px;
}

.column-breadcrumbs__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  color: #777;
}

.column-breadcrumbs__item {
  display: flex;
  align-items: center;
}

.column-breadcrumbs__item:not(:last-child)::after {
  content: ">";
  margin: 0 8px;
  color: #ccc;
}

.column-breadcrumbs__item a {
  color: #777;
  text-decoration: none;
}

.column-breadcrumbs__item a:hover {
  color: #c19a6b;
}

.column-breadcrumbs__item span {
  color: #333;
}

/* ============================================================
   コラムメインエリア
   ============================================================ */
.column-main {
  padding: 40px 0 60px;
  background: #fafaf7;
  min-height: 60vh;
}

.column-main .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   ページヘッダー
   ============================================================ */
.column-page-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px 0;
}

.column-page-header h1 {
  font-size: 28px;
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.column-page-header .description {
  color: #777;
  font-size: 14px;
}

/* ============================================================
   レイアウト (メイン + サイドバー)
   ============================================================ */
.column-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
}

@media (max-width: 768px) {
  .column-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

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

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

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

.column-card a {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.column-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee;
}

.column-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.column-card__body {
  padding: 18px 20px 22px;
}

.column-card__category {
  display: inline-block;
  font-size: 11px;
  color: #c19a6b;
  background: rgba(193, 154, 107, 0.1);
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.column-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
  color: #2c3e50;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.column-card__excerpt {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.column-card__date {
  font-size: 11px;
  color: #999;
}

/* ============================================================
   サイドバー
   ============================================================ */
.column-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.column-sidebar__block {
  background: #fff;
  padding: 22px 24px;
  border-radius: 8px;
}

.column-sidebar__block h3 {
  font-size: 15px;
  margin: 0 0 16px;
  color: #2c3e50;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8e6e1;
}

.column-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.column-category-list li {
  border-bottom: 1px solid #f1efe8;
}

.column-category-list li:last-child {
  border-bottom: none;
}

.column-category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  color: #333;
  text-decoration: none;
}

.column-category-list a:hover,
.column-category-list a.active {
  color: #c19a6b;
}

.column-category-list .count {
  color: #999;
  font-size: 11px;
}

/* ============================================================
   ページネーション
   ============================================================ */
.column-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.column-pagination a {
  padding: 8px 22px;
  background: #fff;
  border: 1px solid #e8e6e1;
  border-radius: 4px;
  color: #333;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}

.column-pagination a:hover {
  background: #c19a6b;
  color: #fff;
  border-color: #c19a6b;
}

.column-pagination__info {
  font-size: 13px;
  color: #777;
}

/* ============================================================
   記事詳細ページ
   ============================================================ */
.column-article {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  padding: 50px 60px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .column-article {
    padding: 30px 20px;
  }
}

.column-article__header {
  margin-bottom: 28px;
  text-align: center;
}

.column-article__category {
  display: inline-block;
  font-size: 12px;
  color: #c19a6b;
  background: rgba(193, 154, 107, 0.1);
  padding: 4px 14px;
  border-radius: 3px;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.column-article__title {
  font-size: 28px;
  line-height: 1.5;
  color: #2c3e50;
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .column-article__title {
    font-size: 22px;
  }
}

.column-article__meta {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.column-article__eyecatch {
  margin: 30px -20px;
  border-radius: 6px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .column-article__eyecatch {
    margin: 30px 0;
  }
}

.column-article__eyecatch img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   記事本文 (Markdown→HTML)
   ============================================================ */
.column-article__body {
  font-size: 16px;
  line-height: 2;
  color: #333;
}

.column-article__body h2 {
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  margin: 50px 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #c19a6b;
}

.column-article__body h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin: 35px 0 14px;
  padding-left: 12px;
  border-left: 4px solid #c19a6b;
}

.column-article__body p {
  margin: 0 0 1.5em;
}

.column-article__body ul,
.column-article__body ol {
  margin: 1em 0 1.5em 1.5em;
  padding: 0;
}

.column-article__body li {
  margin-bottom: 6px;
}

.column-article__body strong {
  color: #2c3e50;
  font-weight: 700;
}

.column-article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 14px;
}

.column-article__body th,
.column-article__body td {
  padding: 10px 14px;
  border: 1px solid #e8e6e1;
  text-align: left;
}

.column-article__body th {
  background: #fafaf7;
  font-weight: 600;
  color: #2c3e50;
}

.column-article__body img {
  margin: 25px auto;
  border-radius: 6px;
  max-width: 100%;
  height: auto;
  display: block;
}

.column-article__body a {
  color: #6b8e7f;
  text-decoration: underline;
}

.column-article__body a:hover {
  opacity: 0.7;
}

.column-article__body blockquote {
  border-left: 4px solid #c19a6b;
  padding: 12px 20px;
  margin: 25px 0;
  background: #fafaf7;
  color: #555;
  font-style: italic;
}

/* ============================================================
   記事フッター・著者情報
   ============================================================ */
.column-article__footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #e8e6e1;
}

.column-article__author-box {
  background: #fafaf7;
  padding: 20px;
  border-radius: 6px;
  font-size: 13px;
  color: #777;
}

.column-article__author-box h3 {
  font-size: 13px;
  color: #2c3e50;
  margin: 0 0 10px;
}

/* ============================================================
   関連記事
   ============================================================ */
.column-related {
  margin-top: 50px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.column-related h2 {
  font-size: 22px;
  text-align: center;
  margin: 0 0 28px;
  color: #2c3e50;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ============================================================
   CTA (記事末尾の物件誘導)
   ============================================================ */
.column-cta {
  margin-top: 50px;
  padding: 50px 30px;
  background: linear-gradient(135deg, #f5f1ea 0%, #ebe5d8 100%);
  border-radius: 8px;
  text-align: center;
}

.column-cta h2 {
  font-size: 22px;
  color: #2c3e50;
  margin: 0 0 14px;
  font-weight: 600;
}

.column-cta p {
  margin: 0 0 24px;
  color: #555;
  line-height: 1.8;
}

.column-cta__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.column-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.column-btn--primary {
  background: #2c3e50;
  color: #fff;
}

.column-btn--secondary {
  background: #fff;
  color: #2c3e50;
  border: 1px solid #2c3e50;
}

.column-btn:hover {
  opacity: 0.85;
}

/* ============================================================
   エラーページ・空状態
   ============================================================ */
.column-error {
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border-radius: 8px;
  margin: 0 auto;
  max-width: 600px;
}

.column-error h1 {
  font-size: 32px;
  margin: 0 0 18px;
  color: #2c3e50;
}

.column-empty {
  text-align: center;
  padding: 60px 20px;
  color: #777;
  background: #fff;
  border-radius: 8px;
}
